@anoki/fse-ui 2.3.0-36-SNAPSHOT21 → 2.3.0-36-SNAPSHOT22
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.cjs100.js +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.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs11.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.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.cjs125.js +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs127.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.cjs134.js +1 -1
- package/dist/index.cjs135.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.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.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.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs169.js +1 -1
- package/dist/index.cjs170.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.cjs176.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.cjs181.js +1 -1
- package/dist/index.cjs184.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.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.cjs196.js +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs20.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.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.cjs210.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.cjs218.js +1 -1
- package/dist/index.cjs219.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs220.js +1 -1
- package/dist/index.cjs221.js +1 -1
- package/dist/index.cjs222.js +1 -1
- package/dist/index.cjs223.js +1 -1
- package/dist/index.cjs225.js +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs228.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs230.js +1 -1
- package/dist/index.cjs231.js +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs234.js +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs242.js +1 -1
- package/dist/index.cjs243.js +1 -1
- package/dist/index.cjs244.js +1 -1
- package/dist/index.cjs245.js +1 -1
- package/dist/index.cjs247.js +1 -1
- package/dist/index.cjs248.js +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs250.js +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs261.js +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs27.js +1 -1
- package/dist/index.cjs270.js +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs273.js +1 -1
- package/dist/index.cjs275.js +1 -1
- package/dist/index.cjs276.js +1 -1
- package/dist/index.cjs277.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs280.js +1 -1
- package/dist/index.cjs280.js.map +1 -1
- package/dist/index.cjs281.js +1 -1
- package/dist/index.cjs281.js.map +1 -1
- package/dist/index.cjs284.js +2 -0
- package/dist/index.cjs284.js.map +1 -0
- package/dist/index.cjs285.js +2 -0
- package/dist/index.cjs285.js.map +1 -0
- package/dist/index.cjs286.js +2 -0
- package/dist/index.cjs286.js.map +1 -0
- package/dist/index.cjs29.js +1 -1
- package/dist/index.cjs292.js +2 -0
- package/dist/index.cjs292.js.map +1 -0
- package/dist/index.cjs294.js +1 -1
- package/dist/index.cjs294.js.map +1 -1
- package/dist/index.cjs295.js +1 -1
- package/dist/index.cjs295.js.map +1 -1
- package/dist/{index.cjs330.js → index.cjs297.js} +2 -2
- package/dist/{index.cjs330.js.map → index.cjs297.js.map} +1 -1
- package/dist/index.cjs298.js +2 -0
- package/dist/index.cjs298.js.map +1 -0
- package/dist/{index.cjs332.js → index.cjs299.js} +2 -2
- package/dist/index.cjs299.js.map +1 -0
- package/dist/index.cjs301.js +1 -1
- package/dist/index.cjs301.js.map +1 -1
- package/dist/index.cjs305.js +2 -0
- package/dist/index.cjs305.js.map +1 -0
- package/dist/index.cjs306.js +1 -1
- package/dist/index.cjs306.js.map +1 -1
- package/dist/{index.cjs340.js → index.cjs307.js} +1 -1
- package/dist/{index.cjs340.js.map → index.cjs307.js.map} +1 -1
- package/dist/{index.cjs344.js → index.cjs311.js} +2 -2
- package/dist/{index.cjs344.js.map → index.cjs311.js.map} +1 -1
- package/dist/index.cjs315.js +2 -0
- package/dist/index.cjs315.js.map +1 -0
- package/dist/index.cjs316.js +2 -0
- package/dist/index.cjs316.js.map +1 -0
- package/dist/index.cjs317.js +1 -1
- package/dist/index.cjs317.js.map +1 -1
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs318.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.cjs354.js → index.cjs322.js} +2 -2
- package/dist/{index.cjs354.js.map → index.cjs322.js.map} +1 -1
- package/dist/index.cjs323.js +2 -0
- package/dist/index.cjs323.js.map +1 -0
- package/dist/{index.cjs356.js → index.cjs324.js} +1 -1
- package/dist/{index.cjs356.js.map → index.cjs324.js.map} +1 -1
- package/dist/index.cjs325.js +1 -1
- package/dist/index.cjs325.js.map +1 -1
- package/dist/{index.cjs358.js → index.cjs326.js} +2 -2
- package/dist/{index.cjs358.js.map → index.cjs326.js.map} +1 -1
- package/dist/index.cjs338.js +1 -1
- package/dist/index.cjs338.js.map +1 -1
- package/dist/index.cjs34.js +1 -1
- package/dist/{index.cjs373.js → index.cjs341.js} +1 -1
- package/dist/{index.cjs373.js.map → index.cjs341.js.map} +1 -1
- package/dist/{index.cjs377.js → index.cjs345.js} +2 -2
- package/dist/{index.cjs377.js.map → index.cjs345.js.map} +1 -1
- package/dist/index.cjs346.js +2 -0
- package/dist/index.cjs346.js.map +1 -0
- package/dist/index.cjs348.js +1 -1
- package/dist/index.cjs348.js.map +1 -1
- package/dist/index.cjs349.js +1 -1
- package/dist/index.cjs349.js.map +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs355.js +1 -1
- package/dist/index.cjs355.js.map +1 -1
- package/dist/index.cjs357.js +6 -1
- package/dist/index.cjs357.js.map +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/{index.cjs303.js → index.cjs363.js} +2 -2
- package/dist/{index.cjs303.js.map → index.cjs363.js.map} +1 -1
- package/dist/{index.cjs300.js → index.cjs364.js} +2 -2
- package/dist/{index.cjs300.js.map → index.cjs364.js.map} +1 -1
- package/dist/index.cjs365.js +2 -0
- package/dist/index.cjs365.js.map +1 -0
- package/dist/{index.cjs302.js → index.cjs366.js} +2 -2
- package/dist/{index.cjs302.js.map → index.cjs366.js.map} +1 -1
- package/dist/index.cjs37.js +1 -1
- package/dist/index.cjs372.js +2 -0
- package/dist/index.cjs372.js.map +1 -0
- package/dist/index.cjs375.js +2 -0
- package/dist/index.cjs375.js.map +1 -0
- package/dist/index.cjs376.js +2 -0
- package/dist/index.cjs376.js.map +1 -0
- package/dist/index.cjs378.js +1 -1
- package/dist/index.cjs378.js.map +1 -1
- package/dist/index.cjs379.js +2 -0
- package/dist/{index.cjs403.js.map → index.cjs379.js.map} +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs380.js.map +1 -1
- package/dist/index.cjs386.js +2 -0
- package/dist/{index.cjs410.js.map → index.cjs386.js.map} +1 -1
- package/dist/index.cjs387.js +1 -1
- package/dist/index.cjs387.js.map +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/{index.cjs419.js → index.cjs395.js} +2 -2
- package/dist/{index.cjs419.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 +2 -0
- package/dist/index.cjs397.js.map +1 -0
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs399.js.map +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs400.js +1 -1
- package/dist/index.cjs400.js.map +1 -1
- package/dist/{index.cjs430.js → index.cjs406.js} +2 -2
- package/dist/{index.cjs430.js.map → index.cjs406.js.map} +1 -1
- package/dist/{index.cjs431.js → index.cjs407.js} +2 -2
- package/dist/{index.cjs431.js.map → index.cjs407.js.map} +1 -1
- package/dist/{index.cjs432.js → index.cjs408.js} +1 -1
- package/dist/{index.cjs432.js.map → index.cjs408.js.map} +1 -1
- package/dist/{index.cjs433.js → index.cjs409.js} +2 -2
- package/dist/{index.cjs433.js.map → index.cjs409.js.map} +1 -1
- package/dist/index.cjs415.js +2 -0
- package/dist/index.cjs415.js.map +1 -0
- package/dist/index.cjs416.js +2 -0
- package/dist/index.cjs416.js.map +1 -0
- package/dist/index.cjs417.js +2 -0
- package/dist/{index.cjs441.js.map → index.cjs417.js.map} +1 -1
- package/dist/index.cjs42.js +1 -1
- package/dist/index.cjs420.js +1 -1
- package/dist/index.cjs420.js.map +1 -1
- package/dist/index.cjs421.js +1 -1
- package/dist/index.cjs421.js.map +1 -1
- package/dist/index.cjs43.js +1 -1
- package/dist/index.cjs439.js +1 -1
- package/dist/index.cjs439.js.map +1 -1
- package/dist/index.cjs44.js +1 -1
- package/dist/index.cjs440.js +1 -1
- package/dist/index.cjs440.js.map +1 -1
- package/dist/index.cjs46.js +1 -1
- package/dist/index.cjs463.js +1 -1
- package/dist/index.cjs463.js.map +1 -1
- package/dist/index.cjs464.js +1 -1
- package/dist/index.cjs464.js.map +1 -1
- package/dist/index.cjs47.js +1 -1
- package/dist/{index.cjs494.js → index.cjs470.js} +1 -1
- package/dist/{index.cjs494.js.map → index.cjs470.js.map} +1 -1
- package/dist/{index.cjs495.js → index.cjs471.js} +2 -2
- package/dist/{index.cjs495.js.map → index.cjs471.js.map} +1 -1
- package/dist/index.cjs477.js +2 -0
- package/dist/index.cjs477.js.map +1 -0
- package/dist/{index.cjs509.js → index.cjs485.js} +1 -1
- package/dist/{index.cjs509.js.map → index.cjs485.js.map} +1 -1
- package/dist/index.cjs488.js +1 -1
- package/dist/index.cjs488.js.map +1 -1
- package/dist/index.cjs49.js +1 -1
- package/dist/{index.cjs289.js → index.cjs496.js} +2 -2
- package/dist/{index.cjs289.js.map → index.cjs496.js.map} +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs500.js +2 -0
- package/dist/index.cjs500.js.map +1 -0
- package/dist/index.cjs501.js +1 -1
- package/dist/index.cjs501.js.map +1 -1
- package/dist/index.cjs504.js +2 -0
- package/dist/index.cjs504.js.map +1 -0
- package/dist/index.cjs51.js +1 -1
- package/dist/index.cjs513.js +1 -1
- package/dist/index.cjs514.js +1 -1
- package/dist/index.cjs515.js +1 -27
- package/dist/index.cjs515.js.map +1 -1
- package/dist/index.cjs516.js +1 -1
- package/dist/index.cjs517.js +1 -1
- package/dist/index.cjs518.js +27 -1
- package/dist/index.cjs518.js.map +1 -1
- package/dist/index.cjs519.js +1 -1
- package/dist/index.cjs519.js.map +1 -1
- package/dist/index.cjs520.js +1 -1
- package/dist/index.cjs520.js.map +1 -1
- package/dist/index.cjs521.js +1 -1
- package/dist/index.cjs521.js.map +1 -1
- package/dist/index.cjs522.js +1 -1
- package/dist/index.cjs522.js.map +1 -1
- package/dist/index.cjs523.js +1 -1
- package/dist/index.cjs523.js.map +1 -1
- package/dist/index.cjs524.js +1 -1
- package/dist/index.cjs524.js.map +1 -1
- package/dist/index.cjs53.js +1 -1
- package/dist/index.cjs530.js +1 -1
- package/dist/index.cjs530.js.map +1 -1
- package/dist/index.cjs531.js +1 -1
- package/dist/index.cjs531.js.map +1 -1
- package/dist/index.cjs532.js +2 -0
- package/dist/index.cjs532.js.map +1 -0
- package/dist/index.cjs533.js +2 -0
- package/dist/index.cjs533.js.map +1 -0
- package/dist/index.cjs538.js +2 -0
- package/dist/index.cjs538.js.map +1 -0
- package/dist/index.cjs539.js +1 -1
- package/dist/index.cjs539.js.map +1 -1
- package/dist/index.cjs54.js +1 -1
- package/dist/index.cjs540.js +1 -1
- package/dist/index.cjs540.js.map +1 -1
- package/dist/index.cjs541.js +1 -1
- package/dist/index.cjs541.js.map +1 -1
- package/dist/index.cjs542.js +1 -1
- package/dist/index.cjs542.js.map +1 -1
- package/dist/index.cjs546.js +1 -1
- package/dist/index.cjs546.js.map +1 -1
- package/dist/index.cjs547.js +1 -1
- package/dist/index.cjs547.js.map +1 -1
- package/dist/index.cjs548.js +1 -1
- package/dist/index.cjs548.js.map +1 -1
- package/dist/index.cjs549.js +1 -1
- package/dist/index.cjs549.js.map +1 -1
- package/dist/index.cjs550.js +1 -1
- package/dist/index.cjs550.js.map +1 -1
- package/dist/index.cjs551.js +1 -1
- package/dist/index.cjs551.js.map +1 -1
- package/dist/index.cjs554.js +2 -0
- package/dist/index.cjs554.js.map +1 -0
- package/dist/index.cjs555.js +2 -0
- package/dist/index.cjs555.js.map +1 -0
- package/dist/index.cjs556.js +1 -1
- package/dist/index.cjs556.js.map +1 -1
- package/dist/index.cjs557.js +1 -1
- package/dist/index.cjs557.js.map +1 -1
- package/dist/index.cjs558.js +1 -1
- package/dist/index.cjs558.js.map +1 -1
- package/dist/index.cjs559.js +1 -1
- package/dist/index.cjs559.js.map +1 -1
- package/dist/index.cjs56.js +1 -1
- package/dist/index.cjs560.js +1 -1
- package/dist/index.cjs560.js.map +1 -1
- package/dist/index.cjs57.js +1 -1
- package/dist/index.cjs571.js +2 -0
- package/dist/index.cjs571.js.map +1 -0
- package/dist/index.cjs575.js +2 -0
- package/dist/index.cjs575.js.map +1 -0
- package/dist/index.cjs578.js +1 -1
- package/dist/index.cjs578.js.map +1 -1
- package/dist/index.cjs579.js +8 -1
- package/dist/index.cjs579.js.map +1 -1
- package/dist/index.cjs58.js +1 -1
- package/dist/index.cjs580.js +1 -1
- package/dist/index.cjs580.js.map +1 -1
- package/dist/index.cjs581.js +1 -1
- package/dist/index.cjs581.js.map +1 -1
- package/dist/index.cjs582.js +6 -1
- package/dist/index.cjs582.js.map +1 -1
- package/dist/index.cjs583.js +1 -1
- package/dist/index.cjs583.js.map +1 -1
- package/dist/index.cjs584.js +2 -1
- package/dist/index.cjs584.js.map +1 -1
- package/dist/index.cjs585.js +3 -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.cjs587.js +1 -1
- package/dist/index.cjs587.js.map +1 -1
- package/dist/index.cjs588.js +1 -1
- package/dist/index.cjs588.js.map +1 -1
- package/dist/index.cjs589.js +1 -1
- package/dist/index.cjs589.js.map +1 -1
- package/dist/index.cjs59.js +1 -1
- package/dist/index.cjs590.js +1 -1
- package/dist/index.cjs590.js.map +1 -1
- package/dist/index.cjs591.js +1 -1
- package/dist/index.cjs591.js.map +1 -1
- package/dist/index.cjs592.js +1 -1
- package/dist/index.cjs592.js.map +1 -1
- package/dist/index.cjs593.js +1 -1
- package/dist/index.cjs593.js.map +1 -1
- package/dist/index.cjs594.js +1 -1
- package/dist/index.cjs594.js.map +1 -1
- package/dist/index.cjs595.js +1 -1
- package/dist/index.cjs595.js.map +1 -1
- package/dist/index.cjs596.js +1 -1
- package/dist/index.cjs596.js.map +1 -1
- package/dist/index.cjs597.js +1 -1
- package/dist/index.cjs597.js.map +1 -1
- package/dist/index.cjs598.js +1 -1
- package/dist/index.cjs598.js.map +1 -1
- package/dist/index.cjs599.js +1 -1
- package/dist/index.cjs599.js.map +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs60.js +1 -1
- package/dist/index.cjs600.js +1 -1
- package/dist/index.cjs600.js.map +1 -1
- package/dist/index.cjs601.js +1 -1
- package/dist/index.cjs601.js.map +1 -1
- package/dist/index.cjs602.js +1 -1
- package/dist/index.cjs602.js.map +1 -1
- package/dist/index.cjs603.js +1 -1
- package/dist/index.cjs603.js.map +1 -1
- package/dist/index.cjs604.js +1 -1
- package/dist/index.cjs604.js.map +1 -1
- package/dist/index.cjs605.js +1 -1
- package/dist/index.cjs605.js.map +1 -1
- package/dist/index.cjs606.js +1 -1
- package/dist/index.cjs606.js.map +1 -1
- package/dist/index.cjs607.js +1 -1
- package/dist/index.cjs607.js.map +1 -1
- package/dist/index.cjs608.js +1 -1
- package/dist/index.cjs608.js.map +1 -1
- package/dist/index.cjs609.js +1 -1
- package/dist/index.cjs609.js.map +1 -1
- package/dist/index.cjs61.js +1 -1
- package/dist/index.cjs610.js +1 -1
- package/dist/index.cjs610.js.map +1 -1
- package/dist/index.cjs611.js +1 -1
- package/dist/index.cjs611.js.map +1 -1
- package/dist/index.cjs612.js +1 -1
- package/dist/index.cjs612.js.map +1 -1
- package/dist/index.cjs613.js +1 -1
- package/dist/index.cjs613.js.map +1 -1
- package/dist/index.cjs614.js +1 -1
- package/dist/index.cjs614.js.map +1 -1
- package/dist/index.cjs615.js +1 -1
- package/dist/index.cjs615.js.map +1 -1
- package/dist/index.cjs616.js +1 -1
- package/dist/index.cjs616.js.map +1 -1
- package/dist/index.cjs617.js +1 -1
- package/dist/index.cjs617.js.map +1 -1
- package/dist/index.cjs618.js +2 -0
- package/dist/index.cjs618.js.map +1 -0
- package/dist/index.cjs619.js +2 -0
- package/dist/index.cjs619.js.map +1 -0
- package/dist/index.cjs62.js +1 -1
- package/dist/index.cjs620.js +1 -1
- package/dist/index.cjs620.js.map +1 -1
- package/dist/index.cjs621.js +1 -1
- package/dist/index.cjs621.js.map +1 -1
- package/dist/index.cjs622.js +1 -1
- package/dist/index.cjs622.js.map +1 -1
- package/dist/index.cjs623.js +1 -1
- package/dist/index.cjs623.js.map +1 -1
- package/dist/index.cjs624.js +1 -1
- package/dist/index.cjs624.js.map +1 -1
- package/dist/index.cjs625.js +1 -8
- package/dist/index.cjs625.js.map +1 -1
- package/dist/index.cjs626.js +1 -1
- package/dist/index.cjs626.js.map +1 -1
- package/dist/index.cjs627.js +1 -1
- package/dist/index.cjs627.js.map +1 -1
- package/dist/index.cjs628.js +1 -6
- package/dist/index.cjs628.js.map +1 -1
- package/dist/index.cjs629.js +1 -1
- package/dist/index.cjs629.js.map +1 -1
- package/dist/index.cjs63.js +1 -1
- package/dist/index.cjs630.js +1 -2
- package/dist/index.cjs630.js.map +1 -1
- package/dist/index.cjs631.js +1 -3
- package/dist/index.cjs631.js.map +1 -1
- package/dist/index.cjs632.js +1 -1
- package/dist/index.cjs632.js.map +1 -1
- package/dist/index.cjs633.js +1 -1
- package/dist/index.cjs633.js.map +1 -1
- package/dist/index.cjs634.js +1 -1
- package/dist/index.cjs634.js.map +1 -1
- package/dist/index.cjs635.js +1 -1
- package/dist/index.cjs635.js.map +1 -1
- package/dist/index.cjs637.js +1 -1
- package/dist/index.cjs637.js.map +1 -1
- package/dist/index.cjs638.js +1 -1
- package/dist/index.cjs638.js.map +1 -1
- package/dist/index.cjs639.js +1 -1
- package/dist/index.cjs639.js.map +1 -1
- package/dist/index.cjs640.js +1 -1
- package/dist/index.cjs640.js.map +1 -1
- package/dist/index.cjs641.js +1 -1
- package/dist/index.cjs641.js.map +1 -1
- package/dist/index.cjs643.js +1 -1
- package/dist/index.cjs644.js +1 -1
- package/dist/index.cjs644.js.map +1 -1
- package/dist/index.cjs645.js +1 -1
- package/dist/index.cjs645.js.map +1 -1
- package/dist/index.cjs646.js +1 -1
- package/dist/index.cjs646.js.map +1 -1
- package/dist/index.cjs647.js +7 -1
- package/dist/index.cjs647.js.map +1 -1
- package/dist/index.cjs648.js +1 -1
- package/dist/index.cjs648.js.map +1 -1
- package/dist/index.cjs649.js +1 -1
- package/dist/index.cjs649.js.map +1 -1
- package/dist/index.cjs65.js +1 -1
- package/dist/index.cjs650.js +1 -1
- package/dist/index.cjs650.js.map +1 -1
- package/dist/index.cjs651.js +2 -1
- package/dist/index.cjs651.js.map +1 -1
- package/dist/index.cjs652.js +1 -1
- package/dist/index.cjs652.js.map +1 -1
- package/dist/index.cjs653.js +2 -1
- package/dist/index.cjs653.js.map +1 -1
- package/dist/index.cjs654.js +3 -1
- package/dist/index.cjs654.js.map +1 -1
- package/dist/index.cjs655.js +4 -1
- package/dist/index.cjs655.js.map +1 -1
- package/dist/index.cjs656.js +1 -1
- package/dist/index.cjs656.js.map +1 -1
- package/dist/index.cjs657.js +1 -1
- package/dist/index.cjs657.js.map +1 -1
- package/dist/index.cjs658.js +1 -1
- package/dist/index.cjs658.js.map +1 -1
- package/dist/index.cjs659.js +1 -1
- package/dist/index.cjs659.js.map +1 -1
- package/dist/index.cjs66.js +1 -1
- package/dist/index.cjs660.js +1 -1
- package/dist/index.cjs660.js.map +1 -1
- package/dist/index.cjs661.js +1 -1
- package/dist/index.cjs661.js.map +1 -1
- package/dist/index.cjs665.js +1 -1
- package/dist/index.cjs668.js +1 -1
- package/dist/index.cjs668.js.map +1 -1
- package/dist/index.cjs669.js +1 -1
- package/dist/index.cjs669.js.map +1 -1
- package/dist/index.cjs67.js +1 -1
- package/dist/index.cjs670.js +1 -1
- package/dist/index.cjs670.js.map +1 -1
- package/dist/index.cjs671.js +1 -1
- package/dist/index.cjs671.js.map +1 -1
- package/dist/index.cjs673.js +1 -1
- package/dist/index.cjs673.js.map +1 -1
- package/dist/index.cjs674.js +1 -1
- package/dist/index.cjs674.js.map +1 -1
- package/dist/index.cjs675.js +1 -1
- package/dist/index.cjs675.js.map +1 -1
- package/dist/index.cjs676.js +1 -1
- package/dist/index.cjs676.js.map +1 -1
- package/dist/index.cjs677.js +1 -1
- package/dist/index.cjs677.js.map +1 -1
- package/dist/index.cjs678.js +1 -1
- package/dist/index.cjs679.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs680.js +1 -1
- package/dist/index.cjs680.js.map +1 -1
- package/dist/index.cjs681.js +1 -1
- package/dist/index.cjs681.js.map +1 -1
- package/dist/index.cjs682.js +1 -1
- package/dist/index.cjs682.js.map +1 -1
- package/dist/index.cjs683.js +1 -7
- package/dist/index.cjs683.js.map +1 -1
- package/dist/index.cjs684.js +1 -1
- package/dist/index.cjs684.js.map +1 -1
- package/dist/index.cjs685.js +1 -1
- package/dist/index.cjs685.js.map +1 -1
- package/dist/index.cjs686.js +1 -1
- package/dist/index.cjs686.js.map +1 -1
- package/dist/index.cjs687.js +1 -2
- package/dist/index.cjs687.js.map +1 -1
- package/dist/index.cjs688.js +1 -1
- package/dist/index.cjs688.js.map +1 -1
- package/dist/index.cjs689.js +1 -2
- package/dist/index.cjs689.js.map +1 -1
- package/dist/index.cjs69.js +1 -1
- package/dist/index.cjs690.js +1 -3
- package/dist/index.cjs690.js.map +1 -1
- package/dist/index.cjs691.js +1 -4
- package/dist/index.cjs691.js.map +1 -1
- package/dist/index.cjs692.js +1 -1
- package/dist/index.cjs692.js.map +1 -1
- package/dist/index.cjs693.js +1 -1
- package/dist/index.cjs693.js.map +1 -1
- package/dist/index.cjs694.js +1 -1
- package/dist/index.cjs694.js.map +1 -1
- package/dist/index.cjs695.js +1 -1
- package/dist/index.cjs695.js.map +1 -1
- package/dist/index.cjs696.js +1 -1
- package/dist/index.cjs696.js.map +1 -1
- package/dist/index.cjs697.js +1 -1
- package/dist/index.cjs697.js.map +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs701.js +1 -1
- package/dist/index.cjs701.js.map +1 -1
- package/dist/index.cjs702.js +1 -1
- package/dist/index.cjs702.js.map +1 -1
- package/dist/index.cjs703.js +1 -1
- package/dist/index.cjs703.js.map +1 -1
- package/dist/index.cjs704.js +1 -1
- package/dist/index.cjs704.js.map +1 -1
- package/dist/index.cjs705.js +1 -1
- package/dist/index.cjs705.js.map +1 -1
- package/dist/index.cjs706.js +1 -6
- package/dist/index.cjs706.js.map +1 -1
- package/dist/index.cjs707.js +1 -1
- package/dist/index.cjs707.js.map +1 -1
- package/dist/index.cjs708.js +1 -12
- package/dist/index.cjs708.js.map +1 -1
- package/dist/index.cjs709.js +1 -1
- package/dist/index.cjs709.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs710.js +1 -1
- package/dist/index.cjs710.js.map +1 -1
- package/dist/index.cjs711.js +1 -1
- package/dist/index.cjs711.js.map +1 -1
- package/dist/index.cjs712.js +1 -1
- package/dist/index.cjs712.js.map +1 -1
- package/dist/index.cjs713.js +1 -1
- package/dist/index.cjs713.js.map +1 -1
- package/dist/index.cjs714.js +1 -1
- package/dist/index.cjs714.js.map +1 -1
- package/dist/index.cjs715.js +1 -1
- package/dist/index.cjs715.js.map +1 -1
- package/dist/index.cjs716.js +1 -1
- package/dist/index.cjs716.js.map +1 -1
- package/dist/index.cjs717.js +1 -1
- package/dist/index.cjs717.js.map +1 -1
- package/dist/index.cjs718.js +1 -1
- package/dist/index.cjs718.js.map +1 -1
- package/dist/index.cjs719.js +1 -1
- package/dist/index.cjs719.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs720.js +1 -1
- package/dist/index.cjs720.js.map +1 -1
- package/dist/index.cjs721.js +1 -2
- package/dist/index.cjs721.js.map +1 -1
- package/dist/index.cjs722.js +1 -1
- package/dist/index.cjs722.js.map +1 -1
- package/dist/index.cjs723.js +1 -1
- package/dist/index.cjs723.js.map +1 -1
- package/dist/index.cjs724.js +1 -1
- package/dist/index.cjs724.js.map +1 -1
- package/dist/index.cjs725.js +1 -1
- package/dist/index.cjs725.js.map +1 -1
- package/dist/index.cjs726.js +1 -1
- package/dist/index.cjs726.js.map +1 -1
- package/dist/index.cjs727.js +1 -1
- package/dist/index.cjs727.js.map +1 -1
- package/dist/index.cjs728.js +1 -1
- package/dist/index.cjs728.js.map +1 -1
- package/dist/index.cjs729.js +1 -1
- package/dist/index.cjs729.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs730.js +1 -1
- package/dist/index.cjs730.js.map +1 -1
- package/dist/index.cjs731.js +1 -1
- package/dist/index.cjs731.js.map +1 -1
- package/dist/index.cjs732.js +1 -1
- package/dist/index.cjs732.js.map +1 -1
- package/dist/index.cjs733.js +1 -1
- package/dist/index.cjs733.js.map +1 -1
- package/dist/index.cjs734.js +1 -1
- package/dist/index.cjs734.js.map +1 -1
- package/dist/index.cjs735.js +6 -1
- package/dist/index.cjs735.js.map +1 -1
- package/dist/index.cjs736.js +1 -1
- package/dist/index.cjs736.js.map +1 -1
- package/dist/index.cjs737.js +12 -1
- package/dist/index.cjs737.js.map +1 -1
- package/dist/index.cjs738.js +1 -1
- package/dist/index.cjs738.js.map +1 -1
- package/dist/index.cjs739.js +1 -1
- package/dist/index.cjs739.js.map +1 -1
- package/dist/index.cjs74.js +1 -1
- package/dist/index.cjs740.js +1 -1
- package/dist/index.cjs740.js.map +1 -1
- package/dist/index.cjs741.js +1 -1
- package/dist/index.cjs741.js.map +1 -1
- package/dist/index.cjs742.js +1 -1
- package/dist/index.cjs742.js.map +1 -1
- package/dist/index.cjs743.js +1 -1
- package/dist/index.cjs743.js.map +1 -1
- package/dist/index.cjs744.js +1 -1
- package/dist/index.cjs744.js.map +1 -1
- package/dist/index.cjs745.js +1 -1
- package/dist/index.cjs745.js.map +1 -1
- package/dist/index.cjs746.js +1 -1
- package/dist/index.cjs746.js.map +1 -1
- package/dist/index.cjs747.js +2 -1
- package/dist/index.cjs747.js.map +1 -1
- package/dist/index.cjs748.js +1 -1
- package/dist/index.cjs748.js.map +1 -1
- package/dist/index.cjs749.js +1 -1
- package/dist/index.cjs749.js.map +1 -1
- package/dist/index.cjs75.js +1 -1
- package/dist/index.cjs750.js +1 -1
- package/dist/index.cjs750.js.map +1 -1
- package/dist/index.cjs751.js +1 -1
- package/dist/index.cjs751.js.map +1 -1
- package/dist/index.cjs752.js +1 -1
- package/dist/index.cjs752.js.map +1 -1
- package/dist/index.cjs753.js +1 -1
- package/dist/index.cjs753.js.map +1 -1
- package/dist/index.cjs755.js +1 -1
- package/dist/index.cjs756.js +1 -1
- package/dist/index.cjs757.js +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs764.js +1 -1
- package/dist/index.cjs764.js.map +1 -1
- package/dist/index.cjs765.js +1 -1
- package/dist/index.cjs765.js.map +1 -1
- package/dist/index.cjs766.js +1 -1
- package/dist/index.cjs766.js.map +1 -1
- package/dist/index.cjs768.js +1 -1
- package/dist/index.cjs768.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs773.js +1 -1
- package/dist/index.cjs773.js.map +1 -1
- package/dist/index.cjs774.js +1 -1
- package/dist/index.cjs774.js.map +1 -1
- package/dist/index.cjs775.js +1 -1
- package/dist/index.cjs775.js.map +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs782.js +1 -1
- package/dist/index.cjs789.js +1 -1
- package/dist/index.cjs789.js.map +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs790.js +1 -38
- package/dist/index.cjs790.js.map +1 -1
- package/dist/index.cjs791.js +1 -1
- package/dist/index.cjs791.js.map +1 -1
- package/dist/index.cjs792.js +1 -1
- package/dist/index.cjs792.js.map +1 -1
- package/dist/index.cjs793.js +1 -1
- package/dist/index.cjs793.js.map +1 -1
- package/dist/index.cjs795.js +38 -1
- package/dist/index.cjs795.js.map +1 -1
- package/dist/index.cjs796.js +1 -1
- package/dist/index.cjs796.js.map +1 -1
- package/dist/index.cjs797.js +1 -1
- package/dist/index.cjs797.js.map +1 -1
- package/dist/index.cjs798.js +1 -1
- package/dist/index.cjs798.js.map +1 -1
- package/dist/index.cjs799.js +1 -1
- package/dist/index.cjs799.js.map +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs800.js +1 -1
- package/dist/index.cjs800.js.map +1 -1
- package/dist/index.cjs801.js +1 -1
- package/dist/index.cjs801.js.map +1 -1
- package/dist/index.cjs802.js +1 -1
- package/dist/index.cjs802.js.map +1 -1
- package/dist/index.cjs803.js +1 -1
- package/dist/index.cjs803.js.map +1 -1
- package/dist/index.cjs804.js +1 -1
- package/dist/index.cjs804.js.map +1 -1
- package/dist/index.cjs805.js +1 -1
- package/dist/index.cjs805.js.map +1 -1
- package/dist/index.cjs806.js +1 -1
- package/dist/index.cjs806.js.map +1 -1
- package/dist/index.cjs807.js +1 -1
- package/dist/index.cjs807.js.map +1 -1
- package/dist/index.cjs808.js +1 -1
- package/dist/index.cjs808.js.map +1 -1
- package/dist/index.cjs809.js +1 -1
- package/dist/index.cjs809.js.map +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs810.js +1 -1
- package/dist/index.cjs810.js.map +1 -1
- package/dist/index.cjs811.js +1 -1
- package/dist/index.cjs811.js.map +1 -1
- package/dist/index.cjs812.js +1 -1
- package/dist/index.cjs812.js.map +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs86.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.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.es100.js +1 -1
- package/dist/index.es102.js +1 -1
- package/dist/index.es103.js +2 -2
- package/dist/index.es104.js +2 -2
- package/dist/index.es105.js +4 -4
- package/dist/index.es106.js +3 -3
- package/dist/index.es108.js +2 -2
- package/dist/index.es109.js +2 -2
- package/dist/index.es11.js +2 -2
- package/dist/index.es111.js +2 -2
- package/dist/index.es112.js +1 -1
- package/dist/index.es113.js +4 -4
- package/dist/index.es116.js +2 -2
- package/dist/index.es117.js +3 -3
- package/dist/index.es118.js +2 -2
- package/dist/index.es119.js +1 -1
- package/dist/index.es12.js +1 -1
- package/dist/index.es120.js +2 -2
- package/dist/index.es121.js +2 -2
- package/dist/index.es122.js +2 -2
- package/dist/index.es125.js +1 -1
- package/dist/index.es126.js +2 -2
- package/dist/index.es127.js +2 -2
- package/dist/index.es129.js +2 -2
- package/dist/index.es13.js +2 -2
- package/dist/index.es130.js +1 -1
- package/dist/index.es131.js +3 -3
- package/dist/index.es134.js +3 -3
- package/dist/index.es135.js +3 -3
- package/dist/index.es137.js +2 -2
- package/dist/index.es138.js +1 -1
- package/dist/index.es139.js +3 -3
- package/dist/index.es14.js +4 -4
- package/dist/index.es140.js +1 -1
- package/dist/index.es141.js +2 -2
- package/dist/index.es142.js +2 -2
- package/dist/index.es143.js +2 -2
- package/dist/index.es144.js +2 -2
- package/dist/index.es145.js +2 -2
- package/dist/index.es146.js +2 -2
- package/dist/index.es147.js +2 -2
- package/dist/index.es148.js +2 -2
- package/dist/index.es149.js +2 -2
- package/dist/index.es15.js +1 -1
- package/dist/index.es150.js +2 -2
- package/dist/index.es151.js +1 -1
- package/dist/index.es153.js +1 -1
- package/dist/index.es154.js +2 -2
- package/dist/index.es155.js +2 -2
- package/dist/index.es156.js +1 -1
- package/dist/index.es157.js +2 -2
- package/dist/index.es158.js +2 -2
- package/dist/index.es159.js +2 -2
- package/dist/index.es160.js +3 -3
- package/dist/index.es161.js +2 -2
- package/dist/index.es162.js +1 -1
- package/dist/index.es163.js +1 -1
- package/dist/index.es164.js +1 -1
- package/dist/index.es166.js +5 -5
- package/dist/index.es167.js +2 -2
- package/dist/index.es169.js +1 -1
- package/dist/index.es170.js +2 -2
- package/dist/index.es172.js +1 -1
- package/dist/index.es173.js +3 -3
- package/dist/index.es174.js +1 -1
- package/dist/index.es176.js +1 -1
- package/dist/index.es178.js +2 -2
- package/dist/index.es179.js +1 -1
- package/dist/index.es18.js +1 -1
- package/dist/index.es181.js +1 -1
- package/dist/index.es184.js +1 -1
- package/dist/index.es186.js +2 -2
- package/dist/index.es187.js +2 -2
- package/dist/index.es188.js +2 -2
- package/dist/index.es19.js +2 -2
- package/dist/index.es190.js +2 -2
- package/dist/index.es191.js +1 -1
- package/dist/index.es192.js +2 -2
- package/dist/index.es193.js +2 -2
- package/dist/index.es196.js +2 -2
- package/dist/index.es197.js +2 -2
- package/dist/index.es20.js +2 -2
- package/dist/index.es201.js +1 -1
- package/dist/index.es202.js +2 -2
- package/dist/index.es203.js +2 -2
- package/dist/index.es204.js +2 -2
- package/dist/index.es206.js +1 -1
- package/dist/index.es207.js +2 -2
- package/dist/index.es208.js +2 -2
- package/dist/index.es209.js +2 -2
- package/dist/index.es210.js +2 -2
- package/dist/index.es212.js +1 -1
- package/dist/index.es213.js +2 -2
- package/dist/index.es214.js +1 -1
- package/dist/index.es215.js +2 -2
- package/dist/index.es216.js +1 -1
- package/dist/index.es217.js +1 -1
- package/dist/index.es218.js +4 -4
- package/dist/index.es219.js +2 -2
- package/dist/index.es22.js +2 -2
- package/dist/index.es220.js +1 -1
- package/dist/index.es221.js +1 -1
- package/dist/index.es222.js +2 -2
- package/dist/index.es223.js +1 -1
- package/dist/index.es225.js +1 -1
- package/dist/index.es226.js +2 -2
- package/dist/index.es228.js +3 -3
- package/dist/index.es23.js +2 -2
- package/dist/index.es230.js +2 -2
- package/dist/index.es231.js +1 -1
- package/dist/index.es232.js +2 -2
- package/dist/index.es233.js +2 -2
- package/dist/index.es234.js +1 -1
- package/dist/index.es235.js +2 -2
- package/dist/index.es236.js +2 -2
- package/dist/index.es237.js +2 -2
- package/dist/index.es238.js +2 -2
- package/dist/index.es239.js +2 -2
- package/dist/index.es24.js +2 -2
- package/dist/index.es240.js +2 -2
- package/dist/index.es241.js +2 -2
- package/dist/index.es242.js +1 -1
- package/dist/index.es243.js +1 -1
- package/dist/index.es244.js +2 -2
- package/dist/index.es245.js +1 -1
- package/dist/index.es247.js +1 -1
- package/dist/index.es248.js +1 -1
- package/dist/index.es249.js +1 -1
- package/dist/index.es250.js +1 -1
- package/dist/index.es251.js +1 -1
- package/dist/index.es252.js +3 -3
- package/dist/index.es254.js +1 -1
- package/dist/index.es255.js +1 -1
- package/dist/index.es256.js +1 -1
- package/dist/index.es257.js +1 -1
- package/dist/index.es26.js +5 -5
- package/dist/index.es261.js +1 -1
- package/dist/index.es262.js +2 -2
- package/dist/index.es264.js +2 -2
- package/dist/index.es265.js +2 -2
- package/dist/index.es267.js +2 -2
- package/dist/index.es27.js +7 -7
- package/dist/index.es270.js +2 -2
- package/dist/index.es271.js +2 -2
- package/dist/index.es273.js +1 -1
- package/dist/index.es275.js +2 -2
- package/dist/index.es276.js +2 -2
- package/dist/index.es277.js +2 -2
- package/dist/index.es28.js +2 -2
- package/dist/index.es280.js +22 -15
- package/dist/index.es280.js.map +1 -1
- package/dist/index.es281.js +15 -3
- package/dist/index.es281.js.map +1 -1
- package/dist/index.es284.js +151 -0
- package/dist/index.es284.js.map +1 -0
- package/dist/index.es285.js +204 -0
- package/dist/index.es285.js.map +1 -0
- package/dist/index.es286.js +31 -0
- package/dist/index.es286.js.map +1 -0
- package/dist/index.es29.js +1 -1
- package/dist/index.es292.js +38 -0
- package/dist/index.es292.js.map +1 -0
- package/dist/index.es294.js +9 -9
- package/dist/index.es294.js.map +1 -1
- package/dist/index.es295.js +27 -55
- package/dist/index.es295.js.map +1 -1
- package/dist/{index.es330.js → index.es297.js} +2 -2
- package/dist/{index.es330.js.map → index.es297.js.map} +1 -1
- package/dist/index.es298.js +6 -0
- package/dist/index.es298.js.map +1 -0
- package/dist/index.es299.js +6 -0
- package/dist/index.es299.js.map +1 -0
- package/dist/index.es301.js +1 -227
- package/dist/index.es301.js.map +1 -1
- package/dist/index.es305.js +29 -0
- package/dist/index.es305.js.map +1 -0
- package/dist/index.es306.js +17 -45
- package/dist/index.es306.js.map +1 -1
- package/dist/{index.es340.js → index.es307.js} +1 -1
- package/dist/{index.es340.js.map → index.es307.js.map} +1 -1
- package/dist/{index.es344.js → index.es311.js} +6 -6
- package/dist/{index.es344.js.map → index.es311.js.map} +1 -1
- package/dist/index.es315.js +6 -0
- package/dist/index.es315.js.map +1 -0
- package/dist/index.es316.js +24 -0
- package/dist/index.es316.js.map +1 -0
- package/dist/index.es317.js +5 -147
- package/dist/index.es317.js.map +1 -1
- package/dist/index.es318.js +5 -201
- package/dist/index.es318.js.map +1 -1
- package/dist/index.es319.js +2 -28
- package/dist/index.es319.js.map +1 -1
- package/dist/index.es32.js +6 -6
- package/dist/{index.es354.js → index.es322.js} +15 -15
- package/dist/{index.es354.js.map → index.es322.js.map} +1 -1
- package/dist/index.es323.js +83 -0
- package/dist/index.es323.js.map +1 -0
- package/dist/{index.es356.js → index.es324.js} +1 -1
- package/dist/{index.es356.js.map → index.es324.js.map} +1 -1
- package/dist/index.es325.js +14 -34
- package/dist/index.es325.js.map +1 -1
- package/dist/{index.es358.js → index.es326.js} +2 -2
- package/dist/{index.es358.js.map → index.es326.js.map} +1 -1
- package/dist/index.es338.js +34 -26
- package/dist/index.es338.js.map +1 -1
- package/dist/index.es34.js +1 -1
- package/dist/{index.es373.js → index.es341.js} +1 -1
- package/dist/{index.es373.js.map → index.es341.js.map} +1 -1
- package/dist/{index.es377.js → index.es345.js} +2 -2
- package/dist/{index.es377.js.map → index.es345.js.map} +1 -1
- package/dist/index.es346.js +31 -0
- package/dist/index.es346.js.map +1 -0
- package/dist/index.es348.js +249 -3
- package/dist/index.es348.js.map +1 -1
- package/dist/index.es349.js +20 -21
- package/dist/index.es349.js.map +1 -1
- package/dist/index.es35.js +2 -2
- package/dist/index.es355.js +60 -79
- package/dist/index.es355.js.map +1 -1
- package/dist/index.es357.js +58 -14
- package/dist/index.es357.js.map +1 -1
- package/dist/index.es36.js +3 -3
- package/dist/index.es36.js.map +1 -1
- package/dist/{index.es303.js → index.es363.js} +4 -4
- package/dist/{index.es303.js.map → index.es363.js.map} +1 -1
- package/dist/{index.es300.js → index.es364.js} +3 -3
- package/dist/{index.es300.js.map → index.es364.js.map} +1 -1
- package/dist/index.es365.js +228 -0
- package/dist/index.es365.js.map +1 -0
- package/dist/{index.es302.js → index.es366.js} +4 -4
- package/dist/{index.es302.js.map → index.es366.js.map} +1 -1
- package/dist/index.es37.js +1 -1
- package/dist/index.es372.js +11 -0
- package/dist/index.es372.js.map +1 -0
- package/dist/index.es375.js +30 -0
- package/dist/index.es375.js.map +1 -0
- package/dist/index.es376.js +5 -0
- package/dist/index.es376.js.map +1 -0
- package/dist/index.es378.js +19 -20
- package/dist/index.es378.js.map +1 -1
- package/dist/{index.es403.js → index.es379.js} +2 -2
- package/dist/{index.es403.js.map → index.es379.js.map} +1 -1
- package/dist/index.es38.js +2 -2
- package/dist/index.es380.js +8 -249
- package/dist/index.es380.js.map +1 -1
- package/dist/{index.es410.js → index.es386.js} +2 -2
- package/dist/{index.es410.js.map → index.es386.js.map} +1 -1
- package/dist/index.es387.js +8 -61
- package/dist/index.es387.js.map +1 -1
- package/dist/index.es39.js +2 -2
- package/dist/{index.es419.js → index.es395.js} +2 -2
- package/dist/{index.es419.js.map → index.es395.js.map} +1 -1
- package/dist/index.es396.js +26 -8
- package/dist/index.es396.js.map +1 -1
- package/dist/index.es397.js +9 -0
- package/dist/index.es397.js.map +1 -0
- package/dist/index.es399.js +8 -27
- package/dist/index.es399.js.map +1 -1
- package/dist/index.es4.js +2 -2
- package/dist/index.es400.js +4 -2
- package/dist/index.es400.js.map +1 -1
- package/dist/{index.es430.js → index.es406.js} +2 -2
- package/dist/{index.es430.js.map → index.es406.js.map} +1 -1
- package/dist/{index.es431.js → index.es407.js} +2 -2
- package/dist/{index.es431.js.map → index.es407.js.map} +1 -1
- package/dist/{index.es432.js → index.es408.js} +1 -1
- package/dist/{index.es432.js.map → index.es408.js.map} +1 -1
- package/dist/{index.es433.js → index.es409.js} +8 -8
- package/dist/{index.es433.js.map → index.es409.js.map} +1 -1
- package/dist/index.es415.js +35 -0
- package/dist/index.es415.js.map +1 -0
- package/dist/index.es416.js +111 -0
- package/dist/index.es416.js.map +1 -0
- package/dist/index.es417.js +8 -0
- package/dist/{index.es441.js.map → index.es417.js.map} +1 -1
- package/dist/index.es42.js +1 -1
- package/dist/index.es420.js +75 -22
- package/dist/index.es420.js.map +1 -1
- package/dist/index.es421.js +15 -6
- package/dist/index.es421.js.map +1 -1
- package/dist/index.es43.js +1 -1
- package/dist/index.es439.js +25 -32
- package/dist/index.es439.js.map +1 -1
- package/dist/index.es44.js +1 -1
- package/dist/index.es440.js +6 -108
- package/dist/index.es440.js.map +1 -1
- package/dist/index.es46.js +2 -2
- package/dist/index.es463.js +32 -25
- package/dist/index.es463.js.map +1 -1
- package/dist/index.es464.js +28 -6
- package/dist/index.es464.js.map +1 -1
- package/dist/index.es47.js +1 -1
- package/dist/{index.es494.js → index.es470.js} +1 -1
- package/dist/{index.es494.js.map → index.es470.js.map} +1 -1
- package/dist/{index.es495.js → index.es471.js} +8 -8
- package/dist/{index.es495.js.map → index.es471.js.map} +1 -1
- package/dist/index.es477.js +18 -0
- package/dist/index.es477.js.map +1 -0
- package/dist/{index.es509.js → index.es485.js} +1 -1
- package/dist/{index.es509.js.map → index.es485.js.map} +1 -1
- package/dist/index.es488.js +3 -28
- package/dist/index.es488.js.map +1 -1
- package/dist/index.es49.js +1 -1
- package/dist/{index.es289.js → index.es496.js} +2 -2
- package/dist/{index.es289.js.map → index.es496.js.map} +1 -1
- package/dist/index.es50.js +2 -2
- package/dist/index.es500.js +12 -0
- package/dist/index.es500.js.map +1 -0
- package/dist/index.es501.js +57 -15
- package/dist/index.es501.js.map +1 -1
- package/dist/index.es504.js +48 -0
- package/dist/index.es504.js.map +1 -0
- package/dist/index.es51.js +3 -3
- package/dist/index.es513.js +1 -1
- package/dist/index.es514.js +1 -1
- package/dist/index.es515.js +2 -3692
- package/dist/index.es515.js.map +1 -1
- package/dist/index.es516.js +2 -26
- package/dist/index.es516.js.map +1 -1
- package/dist/index.es517.js +26 -2
- package/dist/index.es517.js.map +1 -1
- package/dist/index.es518.js +3681 -2023
- package/dist/index.es518.js.map +1 -1
- package/dist/index.es519.js +2 -60
- package/dist/index.es519.js.map +1 -1
- package/dist/index.es520.js +5 -190
- package/dist/index.es520.js.map +1 -1
- package/dist/index.es521.js +2034 -5
- package/dist/index.es521.js.map +1 -1
- package/dist/index.es522.js +60 -2
- package/dist/index.es522.js.map +1 -1
- package/dist/index.es523.js +190 -2
- package/dist/index.es523.js.map +1 -1
- package/dist/index.es524.js +2 -135
- package/dist/index.es524.js.map +1 -1
- package/dist/index.es53.js +2 -2
- package/dist/index.es530.js +66 -5
- package/dist/index.es530.js.map +1 -1
- package/dist/index.es531.js +24 -54
- package/dist/index.es531.js.map +1 -1
- package/dist/index.es532.js +10 -0
- package/dist/index.es532.js.map +1 -0
- package/dist/index.es533.js +60 -0
- package/dist/index.es533.js.map +1 -0
- package/dist/index.es538.js +55 -0
- package/dist/index.es538.js.map +1 -0
- package/dist/index.es539.js +5 -51
- package/dist/index.es539.js.map +1 -1
- package/dist/index.es54.js +2 -2
- package/dist/index.es540.js +24 -5
- package/dist/index.es540.js.map +1 -1
- package/dist/index.es541.js +67 -23
- package/dist/index.es541.js.map +1 -1
- package/dist/index.es542.js +32 -67
- package/dist/index.es542.js.map +1 -1
- package/dist/index.es546.js +20 -10
- package/dist/index.es546.js.map +1 -1
- package/dist/index.es547.js +2 -125
- package/dist/index.es547.js.map +1 -1
- package/dist/index.es548.js +54 -134
- package/dist/index.es548.js.map +1 -1
- package/dist/index.es549.js +225 -14
- package/dist/index.es549.js.map +1 -1
- package/dist/index.es550.js +73 -14
- package/dist/index.es550.js.map +1 -1
- package/dist/index.es551.js +2 -9
- package/dist/index.es551.js.map +1 -1
- package/dist/index.es554.js +14 -0
- package/dist/index.es554.js.map +1 -0
- package/dist/index.es555.js +128 -0
- package/dist/index.es555.js.map +1 -0
- package/dist/index.es556.js +134 -20
- package/dist/index.es556.js.map +1 -1
- package/dist/index.es557.js +14 -2
- package/dist/index.es557.js.map +1 -1
- package/dist/index.es558.js +13 -53
- package/dist/index.es558.js.map +1 -1
- package/dist/index.es559.js +9 -225
- package/dist/index.es559.js.map +1 -1
- package/dist/index.es56.js +1 -1
- package/dist/index.es560.js +52 -2
- package/dist/index.es560.js.map +1 -1
- package/dist/index.es57.js +1 -1
- package/dist/index.es571.js +8 -0
- package/dist/index.es571.js.map +1 -0
- package/dist/index.es575.js +625 -0
- package/dist/index.es575.js.map +1 -0
- package/dist/index.es578.js +36 -5
- package/dist/index.es578.js.map +1 -1
- package/dist/index.es579.js +700 -608
- package/dist/index.es579.js.map +1 -1
- package/dist/index.es58.js +1 -1
- package/dist/index.es580.js +70 -2
- package/dist/index.es580.js.map +1 -1
- package/dist/index.es581.js +6 -3
- package/dist/index.es581.js.map +1 -1
- package/dist/index.es582.js +20 -13
- package/dist/index.es582.js.map +1 -1
- package/dist/index.es583.js +76 -5
- package/dist/index.es583.js.map +1 -1
- package/dist/index.es584.js +68 -5
- package/dist/index.es584.js.map +1 -1
- package/dist/index.es585.js +49 -5
- package/dist/index.es585.js.map +1 -1
- package/dist/index.es586.js +9 -5
- package/dist/index.es586.js.map +1 -1
- package/dist/index.es587.js +183 -5
- package/dist/index.es587.js.map +1 -1
- package/dist/index.es588.js +3 -5
- package/dist/index.es588.js.map +1 -1
- package/dist/index.es589.js +132 -5
- package/dist/index.es589.js.map +1 -1
- package/dist/index.es59.js +1 -1
- package/dist/index.es590.js +2 -6
- package/dist/index.es590.js.map +1 -1
- package/dist/index.es591.js +3 -3
- package/dist/index.es591.js.map +1 -1
- package/dist/index.es592.js +10 -2
- package/dist/index.es592.js.map +1 -1
- package/dist/index.es593.js +3 -3
- package/dist/index.es593.js.map +1 -1
- package/dist/index.es594.js +3 -3
- package/dist/index.es594.js.map +1 -1
- package/dist/index.es595.js +3 -3
- package/dist/index.es595.js.map +1 -1
- package/dist/index.es596.js +1 -1
- package/dist/index.es596.js.map +1 -1
- package/dist/index.es597.js +5 -5
- package/dist/index.es597.js.map +1 -1
- package/dist/index.es598.js +4 -8
- package/dist/index.es598.js.map +1 -1
- package/dist/index.es599.js +3 -3
- package/dist/index.es599.js.map +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es60.js +1 -1
- package/dist/index.es600.js +3 -3
- package/dist/index.es600.js.map +1 -1
- package/dist/index.es601.js +1 -1
- package/dist/index.es601.js.map +1 -1
- package/dist/index.es602.js +3 -3
- package/dist/index.es602.js.map +1 -1
- package/dist/index.es603.js +3 -3
- package/dist/index.es603.js.map +1 -1
- package/dist/index.es604.js +5 -10
- package/dist/index.es604.js.map +1 -1
- package/dist/index.es605.js +3 -3
- package/dist/index.es605.js.map +1 -1
- package/dist/index.es606.js +3 -3
- package/dist/index.es606.js.map +1 -1
- package/dist/index.es607.js +3 -3
- package/dist/index.es607.js.map +1 -1
- package/dist/index.es608.js +8 -4
- package/dist/index.es608.js.map +1 -1
- package/dist/index.es609.js +3 -3
- package/dist/index.es609.js.map +1 -1
- package/dist/index.es61.js +2 -2
- package/dist/index.es610.js +3 -3
- package/dist/index.es610.js.map +1 -1
- package/dist/index.es611.js +4 -10
- package/dist/index.es611.js.map +1 -1
- package/dist/index.es612.js +3 -3
- package/dist/index.es612.js.map +1 -1
- package/dist/index.es613.js +3 -3
- package/dist/index.es613.js.map +1 -1
- package/dist/index.es614.js +10 -8
- package/dist/index.es614.js.map +1 -1
- package/dist/index.es615.js +4 -15
- package/dist/index.es615.js.map +1 -1
- package/dist/index.es616.js +5 -10
- package/dist/index.es616.js.map +1 -1
- package/dist/index.es617.js +6 -2
- package/dist/index.es617.js.map +1 -1
- package/dist/index.es618.js +9 -0
- package/dist/index.es618.js.map +1 -0
- package/dist/index.es619.js +9 -0
- package/dist/index.es619.js.map +1 -0
- package/dist/index.es62.js +1 -1
- package/dist/index.es620.js +6 -4
- package/dist/index.es620.js.map +1 -1
- package/dist/index.es621.js +11 -10
- package/dist/index.es621.js.map +1 -1
- package/dist/index.es622.js +5 -11
- package/dist/index.es622.js.map +1 -1
- package/dist/index.es623.js +5 -82
- package/dist/index.es623.js.map +1 -1
- package/dist/index.es624.js +9 -36
- package/dist/index.es624.js.map +1 -1
- package/dist/index.es625.js +16 -713
- package/dist/index.es625.js.map +1 -1
- package/dist/index.es626.js +10 -69
- package/dist/index.es626.js.map +1 -1
- package/dist/index.es627.js +2 -9
- package/dist/index.es627.js.map +1 -1
- package/dist/index.es628.js +80 -18
- package/dist/index.es628.js.map +1 -1
- package/dist/index.es629.js +4 -77
- package/dist/index.es629.js.map +1 -1
- package/dist/index.es63.js +1 -1
- package/dist/index.es630.js +10 -68
- package/dist/index.es630.js.map +1 -1
- package/dist/index.es631.js +11 -49
- package/dist/index.es631.js.map +1 -1
- package/dist/index.es632.js +46 -2
- package/dist/index.es632.js.map +1 -1
- package/dist/index.es633.js +14 -2
- package/dist/index.es633.js.map +1 -1
- package/dist/index.es634.js +219 -2
- package/dist/index.es634.js.map +1 -1
- package/dist/index.es635.js +181 -2
- package/dist/index.es635.js.map +1 -1
- package/dist/index.es636.js +2 -2
- package/dist/index.es637.js +258 -2
- package/dist/index.es637.js.map +1 -1
- package/dist/index.es638.js +85 -2
- package/dist/index.es638.js.map +1 -1
- package/dist/index.es639.js +341 -2
- package/dist/index.es639.js.map +1 -1
- package/dist/index.es640.js +16 -2
- package/dist/index.es640.js.map +1 -1
- package/dist/index.es641.js +41 -2
- package/dist/index.es641.js.map +1 -1
- package/dist/index.es642.js +2 -2
- package/dist/index.es643.js +2 -2
- package/dist/index.es644.js +20 -2
- package/dist/index.es644.js.map +1 -1
- package/dist/index.es645.js +14 -2
- package/dist/index.es645.js.map +1 -1
- package/dist/index.es646.js +221 -2
- package/dist/index.es646.js.map +1 -1
- package/dist/index.es647.js +54 -2
- package/dist/index.es647.js.map +1 -1
- package/dist/index.es648.js +17 -2
- package/dist/index.es648.js.map +1 -1
- package/dist/index.es649.js +21 -2
- package/dist/index.es649.js.map +1 -1
- package/dist/index.es65.js +4 -4
- package/dist/index.es650.js +44 -2
- package/dist/index.es650.js.map +1 -1
- package/dist/index.es651.js +137 -2
- package/dist/index.es651.js.map +1 -1
- package/dist/index.es652.js +344 -2
- package/dist/index.es652.js.map +1 -1
- package/dist/index.es653.js +23 -2
- package/dist/index.es653.js.map +1 -1
- package/dist/index.es654.js +257 -2
- package/dist/index.es654.js.map +1 -1
- package/dist/index.es655.js +23 -2
- package/dist/index.es655.js.map +1 -1
- package/dist/index.es656.js +41 -2
- package/dist/index.es656.js.map +1 -1
- package/dist/index.es657.js +28 -2
- package/dist/index.es657.js.map +1 -1
- package/dist/index.es658.js +36 -2
- package/dist/index.es658.js.map +1 -1
- package/dist/index.es659.js +22 -2
- package/dist/index.es659.js.map +1 -1
- package/dist/index.es66.js +1 -1
- package/dist/index.es660.js +12 -2
- package/dist/index.es660.js.map +1 -1
- package/dist/index.es661.js +23 -2
- package/dist/index.es661.js.map +1 -1
- package/dist/index.es662.js +2 -2
- package/dist/index.es663.js +2 -2
- package/dist/index.es664.js +2 -2
- package/dist/index.es665.js +2 -2
- package/dist/index.es666.js +2 -2
- package/dist/index.es667.js +2 -2
- package/dist/index.es668.js +2 -46
- package/dist/index.es668.js.map +1 -1
- package/dist/index.es669.js +2 -14
- package/dist/index.es669.js.map +1 -1
- package/dist/index.es67.js +1 -1
- package/dist/index.es670.js +2 -219
- package/dist/index.es670.js.map +1 -1
- package/dist/index.es671.js +2 -181
- package/dist/index.es671.js.map +1 -1
- package/dist/index.es672.js +2 -2
- package/dist/index.es673.js +2 -258
- package/dist/index.es673.js.map +1 -1
- package/dist/index.es674.js +2 -85
- package/dist/index.es674.js.map +1 -1
- package/dist/index.es675.js +2 -341
- package/dist/index.es675.js.map +1 -1
- package/dist/index.es676.js +2 -16
- package/dist/index.es676.js.map +1 -1
- package/dist/index.es677.js +2 -41
- package/dist/index.es677.js.map +1 -1
- package/dist/index.es679.js +2 -2
- package/dist/index.es68.js +2 -2
- package/dist/index.es680.js +2 -20
- package/dist/index.es680.js.map +1 -1
- package/dist/index.es681.js +2 -14
- package/dist/index.es681.js.map +1 -1
- package/dist/index.es682.js +2 -221
- package/dist/index.es682.js.map +1 -1
- package/dist/index.es683.js +2 -54
- package/dist/index.es683.js.map +1 -1
- package/dist/index.es684.js +2 -17
- package/dist/index.es684.js.map +1 -1
- package/dist/index.es685.js +2 -21
- package/dist/index.es685.js.map +1 -1
- package/dist/index.es686.js +2 -44
- package/dist/index.es686.js.map +1 -1
- package/dist/index.es687.js +2 -137
- package/dist/index.es687.js.map +1 -1
- package/dist/index.es688.js +2 -344
- package/dist/index.es688.js.map +1 -1
- package/dist/index.es689.js +2 -23
- package/dist/index.es689.js.map +1 -1
- package/dist/index.es69.js +2 -2
- package/dist/index.es690.js +2 -257
- package/dist/index.es690.js.map +1 -1
- package/dist/index.es691.js +2 -23
- package/dist/index.es691.js.map +1 -1
- package/dist/index.es692.js +2 -41
- package/dist/index.es692.js.map +1 -1
- package/dist/index.es693.js +2 -28
- package/dist/index.es693.js.map +1 -1
- package/dist/index.es694.js +2 -36
- package/dist/index.es694.js.map +1 -1
- package/dist/index.es695.js +2 -22
- package/dist/index.es695.js.map +1 -1
- package/dist/index.es696.js +2 -12
- package/dist/index.es696.js.map +1 -1
- package/dist/index.es697.js +2 -23
- package/dist/index.es697.js.map +1 -1
- package/dist/index.es7.js +2 -2
- package/dist/index.es701.js +5 -6
- package/dist/index.es701.js.map +1 -1
- package/dist/index.es702.js +16 -11
- package/dist/index.es702.js.map +1 -1
- package/dist/index.es703.js +13 -4
- package/dist/index.es703.js.map +1 -1
- package/dist/index.es704.js +32 -86
- package/dist/index.es704.js.map +1 -1
- package/dist/index.es705.js +5 -18
- package/dist/index.es705.js.map +1 -1
- package/dist/index.es706.js +2 -180
- package/dist/index.es706.js.map +1 -1
- package/dist/index.es707.js +3 -10
- package/dist/index.es707.js.map +1 -1
- package/dist/index.es708.js +6 -193
- package/dist/index.es708.js.map +1 -1
- package/dist/index.es709.js +6 -320
- package/dist/index.es709.js.map +1 -1
- package/dist/index.es71.js +2 -2
- package/dist/index.es710.js +5 -92
- package/dist/index.es710.js.map +1 -1
- package/dist/index.es711.js +32 -230
- package/dist/index.es711.js.map +1 -1
- package/dist/index.es712.js +240 -20
- package/dist/index.es712.js.map +1 -1
- package/dist/index.es713.js +4 -401
- package/dist/index.es713.js.map +1 -1
- package/dist/index.es714.js +5 -2
- package/dist/index.es714.js.map +1 -1
- package/dist/index.es715.js +9 -224
- package/dist/index.es715.js.map +1 -1
- package/dist/index.es716.js +56 -2
- package/dist/index.es716.js.map +1 -1
- package/dist/index.es717.js +7 -356
- package/dist/index.es717.js.map +1 -1
- package/dist/index.es718.js +6 -2
- package/dist/index.es718.js.map +1 -1
- package/dist/index.es719.js +532 -2
- package/dist/index.es719.js.map +1 -1
- package/dist/index.es72.js +2 -2
- package/dist/index.es720.js +14 -2
- package/dist/index.es720.js.map +1 -1
- package/dist/index.es721.js +2 -34
- package/dist/index.es721.js.map +1 -1
- package/dist/index.es722.js +35 -44
- package/dist/index.es722.js.map +1 -1
- package/dist/index.es723.js +2 -59
- package/dist/index.es723.js.map +1 -1
- package/dist/index.es724.js +263 -52
- package/dist/index.es724.js.map +1 -1
- package/dist/index.es725.js +3 -73
- package/dist/index.es725.js.map +1 -1
- package/dist/index.es726.js +29 -51
- package/dist/index.es726.js.map +1 -1
- package/dist/index.es727.js +225 -85
- package/dist/index.es727.js.map +1 -1
- package/dist/index.es728.js +22 -5
- package/dist/index.es728.js.map +1 -1
- package/dist/index.es729.js +401 -16
- package/dist/index.es729.js.map +1 -1
- package/dist/index.es73.js +2 -2
- package/dist/index.es730.js +6 -13
- package/dist/index.es730.js.map +1 -1
- package/dist/index.es731.js +10 -35
- package/dist/index.es731.js.map +1 -1
- package/dist/index.es732.js +4 -5
- package/dist/index.es732.js.map +1 -1
- package/dist/index.es733.js +90 -2
- package/dist/index.es733.js.map +1 -1
- package/dist/index.es734.js +18 -3
- package/dist/index.es734.js.map +1 -1
- package/dist/index.es735.js +179 -6
- package/dist/index.es735.js.map +1 -1
- package/dist/index.es736.js +10 -6
- package/dist/index.es736.js.map +1 -1
- package/dist/index.es737.js +194 -5
- package/dist/index.es737.js.map +1 -1
- package/dist/index.es738.js +320 -32
- package/dist/index.es738.js.map +1 -1
- package/dist/index.es739.js +88 -238
- package/dist/index.es739.js.map +1 -1
- package/dist/index.es74.js +3 -3
- package/dist/index.es740.js +2 -4
- package/dist/index.es740.js.map +1 -1
- package/dist/index.es741.js +224 -4
- package/dist/index.es741.js.map +1 -1
- package/dist/index.es742.js +2 -10
- package/dist/index.es742.js.map +1 -1
- package/dist/index.es743.js +353 -52
- package/dist/index.es743.js.map +1 -1
- package/dist/index.es744.js +2 -8
- package/dist/index.es744.js.map +1 -1
- package/dist/index.es745.js +2 -6
- package/dist/index.es745.js.map +1 -1
- package/dist/index.es746.js +2 -532
- package/dist/index.es746.js.map +1 -1
- package/dist/index.es747.js +34 -14
- package/dist/index.es747.js.map +1 -1
- package/dist/index.es748.js +46 -2
- package/dist/index.es748.js.map +1 -1
- package/dist/index.es749.js +57 -35
- package/dist/index.es749.js.map +1 -1
- package/dist/index.es75.js +3 -3
- package/dist/index.es750.js +61 -2
- package/dist/index.es750.js.map +1 -1
- package/dist/index.es751.js +61 -260
- package/dist/index.es751.js.map +1 -1
- package/dist/index.es752.js +52 -3
- package/dist/index.es752.js.map +1 -1
- package/dist/index.es753.js +90 -30
- package/dist/index.es753.js.map +1 -1
- package/dist/index.es755.js +1 -1
- package/dist/index.es756.js +2 -2
- package/dist/index.es757.js +4 -4
- package/dist/index.es76.js +2 -2
- package/dist/index.es764.js +2 -11
- package/dist/index.es764.js.map +1 -1
- package/dist/index.es765.js +144 -10
- package/dist/index.es765.js.map +1 -1
- package/dist/index.es766.js +2 -54
- package/dist/index.es766.js.map +1 -1
- package/dist/index.es767.js +2 -2
- package/dist/index.es768.js +2 -145
- package/dist/index.es768.js.map +1 -1
- package/dist/index.es769.js +2 -2
- package/dist/index.es77.js +2 -2
- package/dist/index.es770.js +2 -2
- package/dist/index.es771.js +2 -2
- package/dist/index.es772.js +2 -2
- package/dist/index.es773.js +11 -2
- package/dist/index.es773.js.map +1 -1
- package/dist/index.es774.js +11 -2
- package/dist/index.es774.js.map +1 -1
- package/dist/index.es775.js +54 -2
- package/dist/index.es775.js.map +1 -1
- package/dist/index.es78.js +2 -2
- package/dist/index.es782.js +2 -2
- package/dist/index.es789.js +2 -65
- package/dist/index.es789.js.map +1 -1
- package/dist/index.es79.js +2 -2
- package/dist/index.es790.js +88 -69
- package/dist/index.es790.js.map +1 -1
- package/dist/index.es791.js +108 -9
- package/dist/index.es791.js.map +1 -1
- package/dist/index.es792.js +2 -14
- package/dist/index.es792.js.map +1 -1
- package/dist/index.es793.js +2 -66
- package/dist/index.es793.js.map +1 -1
- package/dist/index.es794.js +2 -2
- package/dist/index.es795.js +69 -88
- package/dist/index.es795.js.map +1 -1
- package/dist/index.es796.js +9 -108
- package/dist/index.es796.js.map +1 -1
- package/dist/index.es797.js +14 -2
- package/dist/index.es797.js.map +1 -1
- package/dist/index.es798.js +66 -2
- package/dist/index.es798.js.map +1 -1
- package/dist/index.es799.js +65 -2
- package/dist/index.es799.js.map +1 -1
- package/dist/index.es8.js +2 -2
- package/dist/index.es80.js +2 -2
- package/dist/index.es800.js +3 -529
- package/dist/index.es800.js.map +1 -1
- package/dist/index.es801.js +3 -126
- package/dist/index.es801.js.map +1 -1
- package/dist/index.es802.js +2 -134
- package/dist/index.es802.js.map +1 -1
- package/dist/index.es803.js +529 -3
- package/dist/index.es803.js.map +1 -1
- package/dist/index.es804.js +126 -3
- package/dist/index.es804.js.map +1 -1
- package/dist/index.es805.js +134 -2
- package/dist/index.es805.js.map +1 -1
- package/dist/index.es806.js +2 -4
- package/dist/index.es806.js.map +1 -1
- package/dist/index.es807.js +222 -20
- package/dist/index.es807.js.map +1 -1
- package/dist/index.es808.js +47 -2
- package/dist/index.es808.js.map +1 -1
- package/dist/index.es809.js +45 -221
- package/dist/index.es809.js.map +1 -1
- package/dist/index.es81.js +2 -2
- package/dist/index.es810.js +2 -47
- package/dist/index.es810.js.map +1 -1
- package/dist/index.es811.js +3 -48
- package/dist/index.es811.js.map +1 -1
- package/dist/index.es812.js +23 -2
- package/dist/index.es812.js.map +1 -1
- package/dist/index.es82.js +4 -4
- package/dist/index.es83.js +1 -1
- package/dist/index.es86.js +1 -1
- package/dist/index.es88.js +2 -2
- package/dist/index.es89.js +4 -4
- package/dist/index.es9.js +2 -2
- package/dist/index.es91.js +2 -2
- package/dist/index.es92.js +2 -2
- package/dist/index.es93.js +3 -3
- package/dist/index.es94.js +2 -2
- package/dist/index.es95.js +2 -2
- package/dist/index.es96.js +1 -1
- package/dist/index.es97.js +1 -1
- package/dist/index.es98.js +1 -1
- package/dist/index.es99.js +1 -1
- package/package.json +1 -1
- package/dist/index.cjs290.js +0 -7
- package/dist/index.cjs290.js.map +0 -1
- package/dist/index.cjs296.js +0 -2
- package/dist/index.cjs296.js.map +0 -1
- package/dist/index.cjs314.js +0 -2
- package/dist/index.cjs314.js.map +0 -1
- package/dist/index.cjs327.js +0 -2
- package/dist/index.cjs327.js.map +0 -1
- package/dist/index.cjs328.js +0 -2
- package/dist/index.cjs328.js.map +0 -1
- package/dist/index.cjs331.js +0 -2
- package/dist/index.cjs331.js.map +0 -1
- package/dist/index.cjs332.js.map +0 -1
- package/dist/index.cjs334.js +0 -2
- package/dist/index.cjs334.js.map +0 -1
- package/dist/index.cjs339.js +0 -2
- package/dist/index.cjs339.js.map +0 -1
- package/dist/index.cjs350.js +0 -2
- package/dist/index.cjs350.js.map +0 -1
- package/dist/index.cjs351.js +0 -2
- package/dist/index.cjs351.js.map +0 -1
- package/dist/index.cjs370.js +0 -2
- package/dist/index.cjs370.js.map +0 -1
- package/dist/index.cjs381.js +0 -2
- package/dist/index.cjs381.js.map +0 -1
- package/dist/index.cjs402.js +0 -2
- package/dist/index.cjs402.js.map +0 -1
- package/dist/index.cjs403.js +0 -2
- package/dist/index.cjs404.js +0 -2
- package/dist/index.cjs404.js.map +0 -1
- package/dist/index.cjs410.js +0 -2
- package/dist/index.cjs411.js +0 -2
- package/dist/index.cjs411.js.map +0 -1
- package/dist/index.cjs423.js +0 -2
- package/dist/index.cjs423.js.map +0 -1
- package/dist/index.cjs424.js +0 -2
- package/dist/index.cjs424.js.map +0 -1
- package/dist/index.cjs441.js +0 -2
- package/dist/index.cjs444.js +0 -2
- package/dist/index.cjs444.js.map +0 -1
- package/dist/index.cjs445.js +0 -2
- package/dist/index.cjs445.js.map +0 -1
- package/dist/index.cjs487.js +0 -2
- package/dist/index.cjs487.js.map +0 -1
- package/dist/index.cjs525.js +0 -2
- package/dist/index.cjs525.js.map +0 -1
- package/dist/index.cjs526.js +0 -2
- package/dist/index.cjs526.js.map +0 -1
- package/dist/index.cjs527.js +0 -2
- package/dist/index.cjs527.js.map +0 -1
- package/dist/index.cjs528.js +0 -2
- package/dist/index.cjs528.js.map +0 -1
- package/dist/index.cjs529.js +0 -2
- package/dist/index.cjs529.js.map +0 -1
- package/dist/index.cjs543.js +0 -2
- package/dist/index.cjs543.js.map +0 -1
- package/dist/index.cjs544.js +0 -2
- package/dist/index.cjs544.js.map +0 -1
- package/dist/index.cjs545.js +0 -2
- package/dist/index.cjs545.js.map +0 -1
- package/dist/index.cjs552.js +0 -2
- package/dist/index.cjs552.js.map +0 -1
- package/dist/index.es290.js +0 -62
- package/dist/index.es290.js.map +0 -1
- package/dist/index.es296.js +0 -8
- package/dist/index.es296.js.map +0 -1
- package/dist/index.es314.js +0 -25
- package/dist/index.es314.js.map +0 -1
- package/dist/index.es327.js +0 -12
- package/dist/index.es327.js.map +0 -1
- package/dist/index.es328.js +0 -32
- package/dist/index.es328.js.map +0 -1
- package/dist/index.es331.js +0 -6
- package/dist/index.es331.js.map +0 -1
- package/dist/index.es332.js +0 -6
- package/dist/index.es332.js.map +0 -1
- package/dist/index.es334.js +0 -2
- package/dist/index.es334.js.map +0 -1
- package/dist/index.es339.js +0 -20
- package/dist/index.es339.js.map +0 -1
- package/dist/index.es350.js +0 -9
- package/dist/index.es350.js.map +0 -1
- package/dist/index.es351.js +0 -5
- package/dist/index.es351.js.map +0 -1
- package/dist/index.es370.js +0 -37
- package/dist/index.es370.js.map +0 -1
- package/dist/index.es381.js +0 -23
- package/dist/index.es381.js.map +0 -1
- package/dist/index.es402.js +0 -30
- package/dist/index.es402.js.map +0 -1
- package/dist/index.es404.js +0 -11
- package/dist/index.es404.js.map +0 -1
- package/dist/index.es411.js +0 -11
- package/dist/index.es411.js.map +0 -1
- package/dist/index.es423.js +0 -11
- package/dist/index.es423.js.map +0 -1
- package/dist/index.es424.js +0 -7
- package/dist/index.es424.js.map +0 -1
- package/dist/index.es441.js +0 -8
- package/dist/index.es444.js +0 -82
- package/dist/index.es444.js.map +0 -1
- package/dist/index.es445.js +0 -18
- package/dist/index.es445.js.map +0 -1
- package/dist/index.es487.js +0 -35
- package/dist/index.es487.js.map +0 -1
- package/dist/index.es525.js +0 -187
- package/dist/index.es525.js.map +0 -1
- package/dist/index.es526.js +0 -13
- package/dist/index.es526.js.map +0 -1
- package/dist/index.es527.js +0 -7
- package/dist/index.es527.js.map +0 -1
- package/dist/index.es528.js +0 -71
- package/dist/index.es528.js.map +0 -1
- package/dist/index.es529.js +0 -30
- package/dist/index.es529.js.map +0 -1
- package/dist/index.es543.js +0 -37
- package/dist/index.es543.js.map +0 -1
- package/dist/index.es544.js +0 -77
- package/dist/index.es544.js.map +0 -1
- package/dist/index.es545.js +0 -5
- package/dist/index.es545.js.map +0 -1
- package/dist/index.es552.js +0 -53
- package/dist/index.es552.js.map +0 -1
- /package/dist/components/ui/{CreateReservationModal/CreateReservationModalContent/CreateReservationModalContent.css → ChangeProfileModal/ChangeProfileModalContent/ChangeProfileModalContent.css} +0 -0
- /package/dist/components/ui/{CreateReservationModal/CreateReservationModalFooter/CreateReservationModalFooter.css → ConsentModal/ConsentModalFooter/ConsentModalFooter.css} +0 -0
|
@@ -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.cjs524.js");function n(){const[a,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(l){return console.warn("Copy failed",l),e(null),!1}},[]);return[a,o]}function u(a){const[e,o]=r.useState(!!a),t=r.useCallback(()=>{o(l=>!l)},[]);return[e,t,o]}exports.useCopyToClipboard=n;exports.useToggle=u;
|
|
2
|
+
//# sourceMappingURL=index.cjs297.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs330.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,EACT,OAASC,EAAO,CACd,eAAQ,KAAK,cAAeA,CAAK,EACjCL,EAAc,IAAI,EACX,EACT,CACF,EAAG,CAAA,CAAE,EACL,MAAO,CAACD,EAAYG,CAAI,CAC1B,CAw6BA,SAASI,EAAUC,EAAc,CAC/B,KAAM,CAACC,EAAOC,CAAQ,EAAIR,EAAAA,SAAS,CAAC,CAACM,CAAY,EAC3CG,EAASP,EAAAA,YAAY,IAAM,CAC/BM,EAAUE,GAAM,CAACA,CAAC,CACpB,EAAG,CAAA,CAAE,EACL,MAAO,CAACH,EAAOE,EAAQD,CAAQ,CACjC","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs297.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,EACT,OAASC,EAAO,CACd,eAAQ,KAAK,cAAeA,CAAK,EACjCL,EAAc,IAAI,EACX,EACT,CACF,EAAG,CAAA,CAAE,EACL,MAAO,CAACD,EAAYG,CAAI,CAC1B,CAw6BA,SAASI,EAAUC,EAAc,CAC/B,KAAM,CAACC,EAAOC,CAAQ,EAAIR,EAAAA,SAAS,CAAC,CAACM,CAAY,EAC3CG,EAASP,EAAAA,YAAY,IAAM,CAC/BM,EAAUE,GAAM,CAACA,CAAC,CACpB,EAAG,CAAA,CAAE,EACL,MAAO,CAACH,EAAOE,EAAQD,CAAQ,CACjC","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs298.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -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.cjs550.js");var r=e.__require();exports.FileSaver_minExports=r;
|
|
2
|
+
//# sourceMappingURL=index.cjs299.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs299.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs301.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
2
|
//# sourceMappingURL=index.cjs301.js.map
|
package/dist/index.cjs301.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs301.js","sources":["../node_modules/swiper/modules/pagination.mjs"],"sourcesContent":["import { c as classesToSelector } from '../shared/classes-to-selector.mjs';\nimport { c as createElementIfNotDefined } from '../shared/create-element-if-not-defined.mjs';\nimport { m as makeElementsArray, h as elementOuterSize, i as elementIndex, s as setInnerHTML, b as elementParents } from '../shared/utils.mjs';\n\nfunction Pagination(_ref) {\n let {\n swiper,\n extendParams,\n on,\n emit\n } = _ref;\n const pfx = 'swiper-pagination';\n extendParams({\n pagination: {\n el: null,\n bulletElement: 'span',\n clickable: false,\n hideOnClick: false,\n renderBullet: null,\n renderProgressbar: null,\n renderFraction: null,\n renderCustom: null,\n progressbarOpposite: false,\n type: 'bullets',\n // 'bullets' or 'progressbar' or 'fraction' or 'custom'\n dynamicBullets: false,\n dynamicMainBullets: 1,\n formatFractionCurrent: number => number,\n formatFractionTotal: number => number,\n bulletClass: `${pfx}-bullet`,\n bulletActiveClass: `${pfx}-bullet-active`,\n modifierClass: `${pfx}-`,\n currentClass: `${pfx}-current`,\n totalClass: `${pfx}-total`,\n hiddenClass: `${pfx}-hidden`,\n progressbarFillClass: `${pfx}-progressbar-fill`,\n progressbarOppositeClass: `${pfx}-progressbar-opposite`,\n clickableClass: `${pfx}-clickable`,\n lockClass: `${pfx}-lock`,\n horizontalClass: `${pfx}-horizontal`,\n verticalClass: `${pfx}-vertical`,\n paginationDisabledClass: `${pfx}-disabled`\n }\n });\n swiper.pagination = {\n el: null,\n bullets: []\n };\n let bulletSize;\n let dynamicBulletIndex = 0;\n function isPaginationDisabled() {\n return !swiper.params.pagination.el || !swiper.pagination.el || Array.isArray(swiper.pagination.el) && swiper.pagination.el.length === 0;\n }\n function setSideBullets(bulletEl, position) {\n const {\n bulletActiveClass\n } = swiper.params.pagination;\n if (!bulletEl) return;\n bulletEl = bulletEl[`${position === 'prev' ? 'previous' : 'next'}ElementSibling`];\n if (bulletEl) {\n bulletEl.classList.add(`${bulletActiveClass}-${position}`);\n bulletEl = bulletEl[`${position === 'prev' ? 'previous' : 'next'}ElementSibling`];\n if (bulletEl) {\n bulletEl.classList.add(`${bulletActiveClass}-${position}-${position}`);\n }\n }\n }\n function getMoveDirection(prevIndex, nextIndex, length) {\n prevIndex = prevIndex % length;\n nextIndex = nextIndex % length;\n if (nextIndex === prevIndex + 1) {\n return 'next';\n } else if (nextIndex === prevIndex - 1) {\n return 'previous';\n }\n return;\n }\n function onBulletClick(e) {\n const bulletEl = e.target.closest(classesToSelector(swiper.params.pagination.bulletClass));\n if (!bulletEl) {\n return;\n }\n e.preventDefault();\n const index = elementIndex(bulletEl) * swiper.params.slidesPerGroup;\n if (swiper.params.loop) {\n if (swiper.realIndex === index) return;\n const moveDirection = getMoveDirection(swiper.realIndex, index, swiper.slides.length);\n if (moveDirection === 'next') {\n swiper.slideNext();\n } else if (moveDirection === 'previous') {\n swiper.slidePrev();\n } else {\n swiper.slideToLoop(index);\n }\n } else {\n swiper.slideTo(index);\n }\n }\n function update() {\n // Render || Update Pagination bullets/items\n const rtl = swiper.rtl;\n const params = swiper.params.pagination;\n if (isPaginationDisabled()) return;\n let el = swiper.pagination.el;\n el = makeElementsArray(el);\n // Current/Total\n let current;\n let previousIndex;\n const slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.slides.length;\n const total = swiper.params.loop ? Math.ceil(slidesLength / swiper.params.slidesPerGroup) : swiper.snapGrid.length;\n if (swiper.params.loop) {\n previousIndex = swiper.previousRealIndex || 0;\n current = swiper.params.slidesPerGroup > 1 ? Math.floor(swiper.realIndex / swiper.params.slidesPerGroup) : swiper.realIndex;\n } else if (typeof swiper.snapIndex !== 'undefined') {\n current = swiper.snapIndex;\n previousIndex = swiper.previousSnapIndex;\n } else {\n previousIndex = swiper.previousIndex || 0;\n current = swiper.activeIndex || 0;\n }\n // Types\n if (params.type === 'bullets' && swiper.pagination.bullets && swiper.pagination.bullets.length > 0) {\n const bullets = swiper.pagination.bullets;\n let firstIndex;\n let lastIndex;\n let midIndex;\n if (params.dynamicBullets) {\n bulletSize = elementOuterSize(bullets[0], swiper.isHorizontal() ? 'width' : 'height', true);\n el.forEach(subEl => {\n subEl.style[swiper.isHorizontal() ? 'width' : 'height'] = `${bulletSize * (params.dynamicMainBullets + 4)}px`;\n });\n if (params.dynamicMainBullets > 1 && previousIndex !== undefined) {\n dynamicBulletIndex += current - (previousIndex || 0);\n if (dynamicBulletIndex > params.dynamicMainBullets - 1) {\n dynamicBulletIndex = params.dynamicMainBullets - 1;\n } else if (dynamicBulletIndex < 0) {\n dynamicBulletIndex = 0;\n }\n }\n firstIndex = Math.max(current - dynamicBulletIndex, 0);\n lastIndex = firstIndex + (Math.min(bullets.length, params.dynamicMainBullets) - 1);\n midIndex = (lastIndex + firstIndex) / 2;\n }\n bullets.forEach(bulletEl => {\n const classesToRemove = [...['', '-next', '-next-next', '-prev', '-prev-prev', '-main'].map(suffix => `${params.bulletActiveClass}${suffix}`)].map(s => typeof s === 'string' && s.includes(' ') ? s.split(' ') : s).flat();\n bulletEl.classList.remove(...classesToRemove);\n });\n if (el.length > 1) {\n bullets.forEach(bullet => {\n const bulletIndex = elementIndex(bullet);\n if (bulletIndex === current) {\n bullet.classList.add(...params.bulletActiveClass.split(' '));\n } else if (swiper.isElement) {\n bullet.setAttribute('part', 'bullet');\n }\n if (params.dynamicBullets) {\n if (bulletIndex >= firstIndex && bulletIndex <= lastIndex) {\n bullet.classList.add(...`${params.bulletActiveClass}-main`.split(' '));\n }\n if (bulletIndex === firstIndex) {\n setSideBullets(bullet, 'prev');\n }\n if (bulletIndex === lastIndex) {\n setSideBullets(bullet, 'next');\n }\n }\n });\n } else {\n const bullet = bullets[current];\n if (bullet) {\n bullet.classList.add(...params.bulletActiveClass.split(' '));\n }\n if (swiper.isElement) {\n bullets.forEach((bulletEl, bulletIndex) => {\n bulletEl.setAttribute('part', bulletIndex === current ? 'bullet-active' : 'bullet');\n });\n }\n if (params.dynamicBullets) {\n const firstDisplayedBullet = bullets[firstIndex];\n const lastDisplayedBullet = bullets[lastIndex];\n for (let i = firstIndex; i <= lastIndex; i += 1) {\n if (bullets[i]) {\n bullets[i].classList.add(...`${params.bulletActiveClass}-main`.split(' '));\n }\n }\n setSideBullets(firstDisplayedBullet, 'prev');\n setSideBullets(lastDisplayedBullet, 'next');\n }\n }\n if (params.dynamicBullets) {\n const dynamicBulletsLength = Math.min(bullets.length, params.dynamicMainBullets + 4);\n const bulletsOffset = (bulletSize * dynamicBulletsLength - bulletSize) / 2 - midIndex * bulletSize;\n const offsetProp = rtl ? 'right' : 'left';\n bullets.forEach(bullet => {\n bullet.style[swiper.isHorizontal() ? offsetProp : 'top'] = `${bulletsOffset}px`;\n });\n }\n }\n el.forEach((subEl, subElIndex) => {\n if (params.type === 'fraction') {\n subEl.querySelectorAll(classesToSelector(params.currentClass)).forEach(fractionEl => {\n fractionEl.textContent = params.formatFractionCurrent(current + 1);\n });\n subEl.querySelectorAll(classesToSelector(params.totalClass)).forEach(totalEl => {\n totalEl.textContent = params.formatFractionTotal(total);\n });\n }\n if (params.type === 'progressbar') {\n let progressbarDirection;\n if (params.progressbarOpposite) {\n progressbarDirection = swiper.isHorizontal() ? 'vertical' : 'horizontal';\n } else {\n progressbarDirection = swiper.isHorizontal() ? 'horizontal' : 'vertical';\n }\n const scale = (current + 1) / total;\n let scaleX = 1;\n let scaleY = 1;\n if (progressbarDirection === 'horizontal') {\n scaleX = scale;\n } else {\n scaleY = scale;\n }\n subEl.querySelectorAll(classesToSelector(params.progressbarFillClass)).forEach(progressEl => {\n progressEl.style.transform = `translate3d(0,0,0) scaleX(${scaleX}) scaleY(${scaleY})`;\n progressEl.style.transitionDuration = `${swiper.params.speed}ms`;\n });\n }\n if (params.type === 'custom' && params.renderCustom) {\n setInnerHTML(subEl, params.renderCustom(swiper, current + 1, total));\n if (subElIndex === 0) emit('paginationRender', subEl);\n } else {\n if (subElIndex === 0) emit('paginationRender', subEl);\n emit('paginationUpdate', subEl);\n }\n if (swiper.params.watchOverflow && swiper.enabled) {\n subEl.classList[swiper.isLocked ? 'add' : 'remove'](params.lockClass);\n }\n });\n }\n function render() {\n // Render Container\n const params = swiper.params.pagination;\n if (isPaginationDisabled()) return;\n const slidesLength = swiper.virtual && swiper.params.virtual.enabled ? swiper.virtual.slides.length : swiper.grid && swiper.params.grid.rows > 1 ? swiper.slides.length / Math.ceil(swiper.params.grid.rows) : swiper.slides.length;\n let el = swiper.pagination.el;\n el = makeElementsArray(el);\n let paginationHTML = '';\n if (params.type === 'bullets') {\n let numberOfBullets = swiper.params.loop ? Math.ceil(slidesLength / swiper.params.slidesPerGroup) : swiper.snapGrid.length;\n if (swiper.params.freeMode && swiper.params.freeMode.enabled && numberOfBullets > slidesLength) {\n numberOfBullets = slidesLength;\n }\n for (let i = 0; i < numberOfBullets; i += 1) {\n if (params.renderBullet) {\n paginationHTML += params.renderBullet.call(swiper, i, params.bulletClass);\n } else {\n // prettier-ignore\n paginationHTML += `<${params.bulletElement} ${swiper.isElement ? 'part=\"bullet\"' : ''} class=\"${params.bulletClass}\"></${params.bulletElement}>`;\n }\n }\n }\n if (params.type === 'fraction') {\n if (params.renderFraction) {\n paginationHTML = params.renderFraction.call(swiper, params.currentClass, params.totalClass);\n } else {\n paginationHTML = `<span class=\"${params.currentClass}\"></span>` + ' / ' + `<span class=\"${params.totalClass}\"></span>`;\n }\n }\n if (params.type === 'progressbar') {\n if (params.renderProgressbar) {\n paginationHTML = params.renderProgressbar.call(swiper, params.progressbarFillClass);\n } else {\n paginationHTML = `<span class=\"${params.progressbarFillClass}\"></span>`;\n }\n }\n swiper.pagination.bullets = [];\n el.forEach(subEl => {\n if (params.type !== 'custom') {\n setInnerHTML(subEl, paginationHTML || '');\n }\n if (params.type === 'bullets') {\n swiper.pagination.bullets.push(...subEl.querySelectorAll(classesToSelector(params.bulletClass)));\n }\n });\n if (params.type !== 'custom') {\n emit('paginationRender', el[0]);\n }\n }\n function init() {\n swiper.params.pagination = createElementIfNotDefined(swiper, swiper.originalParams.pagination, swiper.params.pagination, {\n el: 'swiper-pagination'\n });\n const params = swiper.params.pagination;\n if (!params.el) return;\n let el;\n if (typeof params.el === 'string' && swiper.isElement) {\n el = swiper.el.querySelector(params.el);\n }\n if (!el && typeof params.el === 'string') {\n el = [...document.querySelectorAll(params.el)];\n }\n if (!el) {\n el = params.el;\n }\n if (!el || el.length === 0) return;\n if (swiper.params.uniqueNavElements && typeof params.el === 'string' && Array.isArray(el) && el.length > 1) {\n el = [...swiper.el.querySelectorAll(params.el)];\n // check if it belongs to another nested Swiper\n if (el.length > 1) {\n el = el.find(subEl => {\n if (elementParents(subEl, '.swiper')[0] !== swiper.el) return false;\n return true;\n });\n }\n }\n if (Array.isArray(el) && el.length === 1) el = el[0];\n Object.assign(swiper.pagination, {\n el\n });\n el = makeElementsArray(el);\n el.forEach(subEl => {\n if (params.type === 'bullets' && params.clickable) {\n subEl.classList.add(...(params.clickableClass || '').split(' '));\n }\n subEl.classList.add(params.modifierClass + params.type);\n subEl.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n if (params.type === 'bullets' && params.dynamicBullets) {\n subEl.classList.add(`${params.modifierClass}${params.type}-dynamic`);\n dynamicBulletIndex = 0;\n if (params.dynamicMainBullets < 1) {\n params.dynamicMainBullets = 1;\n }\n }\n if (params.type === 'progressbar' && params.progressbarOpposite) {\n subEl.classList.add(params.progressbarOppositeClass);\n }\n if (params.clickable) {\n subEl.addEventListener('click', onBulletClick);\n }\n if (!swiper.enabled) {\n subEl.classList.add(params.lockClass);\n }\n });\n }\n function destroy() {\n const params = swiper.params.pagination;\n if (isPaginationDisabled()) return;\n let el = swiper.pagination.el;\n if (el) {\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.classList.remove(params.hiddenClass);\n subEl.classList.remove(params.modifierClass + params.type);\n subEl.classList.remove(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n if (params.clickable) {\n subEl.classList.remove(...(params.clickableClass || '').split(' '));\n subEl.removeEventListener('click', onBulletClick);\n }\n });\n }\n if (swiper.pagination.bullets) swiper.pagination.bullets.forEach(subEl => subEl.classList.remove(...params.bulletActiveClass.split(' ')));\n }\n on('changeDirection', () => {\n if (!swiper.pagination || !swiper.pagination.el) return;\n const params = swiper.params.pagination;\n let {\n el\n } = swiper.pagination;\n el = makeElementsArray(el);\n el.forEach(subEl => {\n subEl.classList.remove(params.horizontalClass, params.verticalClass);\n subEl.classList.add(swiper.isHorizontal() ? params.horizontalClass : params.verticalClass);\n });\n });\n on('init', () => {\n if (swiper.params.pagination.enabled === false) {\n // eslint-disable-next-line\n disable();\n } else {\n init();\n render();\n update();\n }\n });\n on('activeIndexChange', () => {\n if (typeof swiper.snapIndex === 'undefined') {\n update();\n }\n });\n on('snapIndexChange', () => {\n update();\n });\n on('snapGridLengthChange', () => {\n render();\n update();\n });\n on('destroy', () => {\n destroy();\n });\n on('enable disable', () => {\n let {\n el\n } = swiper.pagination;\n if (el) {\n el = makeElementsArray(el);\n el.forEach(subEl => subEl.classList[swiper.enabled ? 'remove' : 'add'](swiper.params.pagination.lockClass));\n }\n });\n on('lock unlock', () => {\n update();\n });\n on('click', (_s, e) => {\n const targetEl = e.target;\n const el = makeElementsArray(swiper.pagination.el);\n if (swiper.params.pagination.el && swiper.params.pagination.hideOnClick && el && el.length > 0 && !targetEl.classList.contains(swiper.params.pagination.bulletClass)) {\n if (swiper.navigation && (swiper.navigation.nextEl && targetEl === swiper.navigation.nextEl || swiper.navigation.prevEl && targetEl === swiper.navigation.prevEl)) return;\n const isHidden = el[0].classList.contains(swiper.params.pagination.hiddenClass);\n if (isHidden === true) {\n emit('paginationShow');\n } else {\n emit('paginationHide');\n }\n el.forEach(subEl => subEl.classList.toggle(swiper.params.pagination.hiddenClass));\n }\n });\n const enable = () => {\n swiper.el.classList.remove(swiper.params.pagination.paginationDisabledClass);\n let {\n el\n } = swiper.pagination;\n if (el) {\n el = makeElementsArray(el);\n el.forEach(subEl => subEl.classList.remove(swiper.params.pagination.paginationDisabledClass));\n }\n init();\n render();\n update();\n };\n const disable = () => {\n swiper.el.classList.add(swiper.params.pagination.paginationDisabledClass);\n let {\n el\n } = swiper.pagination;\n if (el) {\n el = makeElementsArray(el);\n el.forEach(subEl => subEl.classList.add(swiper.params.pagination.paginationDisabledClass));\n }\n destroy();\n };\n Object.assign(swiper.pagination, {\n enable,\n disable,\n render,\n update,\n init,\n destroy\n });\n}\n\nexport { Pagination as default };\n"],"names":["Pagination","_ref","swiper","extendParams","on","emit","pfx","number","bulletSize","dynamicBulletIndex","isPaginationDisabled","setSideBullets","bulletEl","position","bulletActiveClass","getMoveDirection","prevIndex","nextIndex","length","onBulletClick","e","classesToSelector","index","elementIndex","moveDirection","update","rtl","params","el","makeElementsArray","current","previousIndex","slidesLength","total","bullets","firstIndex","lastIndex","midIndex","elementOuterSize","subEl","classesToRemove","suffix","s","bullet","bulletIndex","firstDisplayedBullet","lastDisplayedBullet","i","dynamicBulletsLength","bulletsOffset","offsetProp","subElIndex","fractionEl","totalEl","progressbarDirection","scale","scaleX","scaleY","progressEl","setInnerHTML","render","paginationHTML","numberOfBullets","init","createElementIfNotDefined","elementParents","destroy","disable","_s","targetEl","isHidden","enable"],"mappings":"gHAIA,SAASA,EAAWC,EAAM,CACxB,GAAI,CACF,OAAAC,EACA,aAAAC,EACA,GAAAC,EACA,KAAAC,CACJ,EAAMJ,EACJ,MAAMK,EAAM,oBACZH,EAAa,CACX,WAAY,CACV,GAAI,KACJ,cAAe,OACf,UAAW,GACX,YAAa,GACb,aAAc,KACd,kBAAmB,KACnB,eAAgB,KAChB,aAAc,KACd,oBAAqB,GACrB,KAAM,UAEN,eAAgB,GAChB,mBAAoB,EACpB,sBAAuBI,GAAUA,EACjC,oBAAqBA,GAAUA,EAC/B,YAAa,GAAGD,CAAG,UACnB,kBAAmB,GAAGA,CAAG,iBACzB,cAAe,GAAGA,CAAG,IACrB,aAAc,GAAGA,CAAG,WACpB,WAAY,GAAGA,CAAG,SAClB,YAAa,GAAGA,CAAG,UACnB,qBAAsB,GAAGA,CAAG,oBAC5B,yBAA0B,GAAGA,CAAG,wBAChC,eAAgB,GAAGA,CAAG,aACtB,UAAW,GAAGA,CAAG,QACjB,gBAAiB,GAAGA,CAAG,cACvB,cAAe,GAAGA,CAAG,YACrB,wBAAyB,GAAGA,CAAG,WACrC,CACA,CAAG,EACDJ,EAAO,WAAa,CAClB,GAAI,KACJ,QAAS,CAAA,CACb,EACE,IAAIM,EACAC,EAAqB,EACzB,SAASC,GAAuB,CAC9B,MAAO,CAACR,EAAO,OAAO,WAAW,IAAM,CAACA,EAAO,WAAW,IAAM,MAAM,QAAQA,EAAO,WAAW,EAAE,GAAKA,EAAO,WAAW,GAAG,SAAW,CACzI,CACA,SAASS,EAAeC,EAAUC,EA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AG,CACH","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs301.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/AddNewModal/AddNewModalHeader/AddNewModalHeader.css');const e=require("./index.cjs278.js"),s=require("./index.cjs322.js"),a=require("./index.cjs36.js");;/* empty css */const d=require("./index.cjs80.js"),r=({closeButton:i="Annulla",onCloseClick:t,children:l})=>e.jsxRuntimeExports.jsxs("header",{className:"ui-add-new-modal-header bg-white",children:[e.jsxRuntimeExports.jsx(s.Title,{className:"fs-7 md-fs-custom text-slate-20 fw-bold",children:l}),e.jsxRuntimeExports.jsx(s.Close,{asChild:!0,className:"ui-add-new-modal-header-close",children:e.jsxRuntimeExports.jsxs(a.Button,{size:"4",variant:"closeModal","aria-label":"Chiudi modale",onClick:t,children:[e.jsxRuntimeExports.jsx("div",{className:"close-label-mobile",children:i}),e.jsxRuntimeExports.jsx(d.Close,{className:"ml-x8",width:32,height:32})]})})]});exports.AddNewModalHeader=r;
|
|
2
|
+
//# sourceMappingURL=index.cjs305.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs305.js","sources":["../src/components/ui/AddNewModal/AddNewModalHeader/index.tsx"],"sourcesContent":["import * as Dialog from \"@radix-ui/react-dialog\";\nimport { Button } from \"../../Button\";\nimport { Close } from \"@/icons\";\nimport \"./AddNewModalHeader.scss\";\nimport { ReactNode } from \"react\";\n\ntype AddNewModalHeaderProps = {\n closeButton?: string;\n onCloseClick?: () => void;\n children?: ReactNode;\n};\n\nexport const AddNewModalHeader = ({\n closeButton = \"Annulla\",\n onCloseClick,\n children,\n}: AddNewModalHeaderProps) => {\n return (\n <header className=\"ui-add-new-modal-header bg-white\">\n <Dialog.Title className=\"fs-7 md-fs-custom text-slate-20 fw-bold\">\n {children}\n </Dialog.Title>\n <Dialog.Close asChild className=\"ui-add-new-modal-header-close\">\n <Button\n size=\"4\"\n variant={\"closeModal\"}\n aria-label=\"Chiudi modale\"\n onClick={onCloseClick}\n >\n <div className={\"close-label-mobile\"}>{closeButton}</div>\n <Close className=\"ml-x8\" width={32} height={32} />\n </Button>\n </Dialog.Close>\n </header>\n );\n};\n"],"names":["AddNewModalHeader","closeButton","onCloseClick","children","jsxs","jsx","Dialog.Title","Dialog.Close","Button","Close"],"mappings":"mPAYaA,EAAoB,CAAC,CAChC,YAAAC,EAAc,UACd,aAAAC,EACA,SAAAC,CACF,IAEIC,EAAAA,kBAAAA,KAAC,SAAA,CAAO,UAAU,mCAChB,SAAA,CAAAC,EAAAA,kBAAAA,IAACC,EAAAA,MAAA,CAAa,UAAU,0CACrB,SAAAH,CAAA,CACH,0BACCI,EAAAA,MAAA,CAAa,QAAO,GAAC,UAAU,gCAC9B,SAAAH,EAAAA,kBAAAA,KAACI,EAAAA,OAAA,CACC,KAAK,IACL,QAAS,aACT,aAAW,gBACX,QAASN,EAET,SAAA,CAAAG,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAW,qBAAuB,SAAAJ,EAAY,0BAClDQ,EAAAA,MAAA,CAAM,UAAU,QAAQ,MAAO,GAAI,OAAQ,EAAA,CAAI,CAAA,CAAA,CAAA,CAClD,CACF,CAAA,EACF"}
|
package/dist/index.cjs306.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/AddNewModal/AddNewModalContent/AddNewModalContent.css');const o=require("./index.cjs278.js"),n=require("./index.cjs281.js");;/* empty css */const d=({overrideClassNames:e,children:t})=>o.jsxRuntimeExports.jsx("div",{className:n.clsx("ui-add-new-modal-body ui-modal-content-scrollable",e),children:t});exports.AddNewModalContent=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs306.js.map
|
package/dist/index.cjs306.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs306.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index.cjs306.js","sources":["../src/components/ui/AddNewModal/AddNewModalContent/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./AddNewModalContent.scss\";\nimport { ReactNode } from \"react\";\n\ntype AddNewModalContentProps = {\n overrideClassNames?: string;\n children?: ReactNode;\n};\n\nexport const AddNewModalContent = ({\n overrideClassNames,\n children,\n}: AddNewModalContentProps) => {\n return (\n <div\n className={clsx(\n \"ui-add-new-modal-body ui-modal-content-scrollable\",\n overrideClassNames,\n )}\n >\n {children}\n </div>\n );\n};\n"],"names":["AddNewModalContent","overrideClassNames","children","jsx","clsx"],"mappings":"iLASO,MAAMA,EAAqB,CAAC,CACjC,mBAAAC,EACA,SAAAC,CACF,IAEIC,EAAAA,kBAAAA,IAAC,MAAA,CACC,UAAWC,EAAAA,KACT,oDACAH,CAAA,EAGD,SAAAC,CAAA,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/AddNewModal/AddNewModalFooter/AddNewModalFooter.css');const o=require("./index.cjs278.js");;/* empty css */const t=({children:e})=>o.jsxRuntimeExports.jsx("footer",{className:"ui-add-new-modal-footer bg-white shadow ui-modal-footer",children:e});exports.AddNewModalFooter=t;
|
|
2
|
-
//# sourceMappingURL=index.
|
|
2
|
+
//# sourceMappingURL=index.cjs307.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.
|
|
1
|
+
{"version":3,"file":"index.cjs307.js","sources":["../src/components/ui/AddNewModal/AddNewModalFooter/index.tsx"],"sourcesContent":["import \"./AddNewModalFooter.scss\";\nimport { ReactNode } from \"react\";\n\ntype AddNewModalFooterProps = {\n children?: ReactNode;\n};\n\nexport const AddNewModalFooter = ({ children }: AddNewModalFooterProps) => {\n return (\n <footer className=\"ui-add-new-modal-footer bg-white shadow ui-modal-footer\">\n {children}\n </footer>\n );\n};\n"],"names":["AddNewModalFooter","children","jsx"],"mappings":"kJAOO,MAAMA,EAAoB,CAAC,CAAE,SAAAC,KAEhCC,EAAAA,kBAAAA,IAAC,SAAA,CAAO,UAAU,0DACf,SAAAD,CAAA,CACH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),T=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),T=require("./index.cjs530.js"),E=require("./index.cjs531.js"),n=require("./index.cjs322.js"),h=require("./index.cjs532.js"),w=require("./index.cjs533.js"),i=require("./index.cjs278.js");function M(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=M(b);var j="AlertDialog",[q]=T.createContextScope(j,[n.createDialogScope]),s=n.createDialogScope(),d=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Root,{...r,...t,modal:!0})};d.displayName=j;var I="AlertDialogTrigger",_=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Trigger,{...a,...r,ref:o})});_.displayName=I;var $="AlertDialogPortal",A=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Portal,{...r,...t})};A.displayName=$;var L="AlertDialogOverlay",D=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Overlay,{...a,...r,ref:o})});D.displayName=L;var c="AlertDialogContent",[F,G]=q(c),W=w.createSlottable("AlertDialogContent"),v=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,children:r,...a}=e,g=s(t),u=l.useRef(null),P=E.useComposedRefs(o,u),R=l.useRef(null);return i.jsxRuntimeExports.jsx(n.WarningProvider,{contentName:c,titleName:C,docsSlug:"alert-dialog",children:i.jsxRuntimeExports.jsx(F,{scope:t,cancelRef:R,children:i.jsxRuntimeExports.jsxs(n.Content,{role:"alertdialog",...g,...a,ref:P,onOpenAutoFocus:h.composeEventHandlers(a.onOpenAutoFocus,p=>{var y;p.preventDefault(),(y=R.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[i.jsxRuntimeExports.jsx(W,{children:r}),i.jsxRuntimeExports.jsx(k,{contentRef:u})]})})})});v.displayName=c;var C="AlertDialogTitle",f=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Title,{...a,...r,ref:o})});f.displayName=C;var N="AlertDialogDescription",x=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Description,{...a,...r,ref:o})});x.displayName=N;var Y="AlertDialogAction",S=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Close,{...a,...r,ref:o})});S.displayName=Y;var O="AlertDialogCancel",m=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,{cancelRef:a}=G(O,t),g=s(t),u=E.useComposedRefs(o,a);return i.jsxRuntimeExports.jsx(n.Close,{...g,...r,ref:u})});m.displayName=O;var k=({contentRef:e})=>{const o=`\`${c}\` requires a description for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
You can add a description to the \`${c}\` by passing a \`${N}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
4
|
|
|
5
5
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${c}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
6
6
|
|
|
7
7
|
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return l.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(o)},[o,e]),null},z=d,B=A,H=D,V=v,J=m,K=f,Q=x;exports.AlertDialog=d;exports.AlertDialogAction=S;exports.AlertDialogCancel=m;exports.AlertDialogContent=v;exports.AlertDialogDescription=x;exports.AlertDialogOverlay=D;exports.AlertDialogPortal=A;exports.AlertDialogTitle=f;exports.AlertDialogTrigger=_;exports.Cancel=J;exports.Content=V;exports.Description=Q;exports.Overlay=H;exports.Portal=B;exports.Root=z;exports.Title=K;
|
|
8
|
-
//# sourceMappingURL=index.
|
|
8
|
+
//# sourceMappingURL=index.cjs311.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs344.js","sources":["../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createSlottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar Slottable = createSlottable(\"AlertDialogContent\");\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ROOT_NAME","createAlertDialogContext","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","TRIGGER_NAME","AlertDialogTrigger","React","forwardedRef","triggerProps","DialogPrimitive.Trigger","PORTAL_NAME","AlertDialogPortal","portalProps","DialogPrimitive.Portal","OVERLAY_NAME","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","Slottable","createSlottable","AlertDialogContent","children","contentProps","contentRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","TITLE_NAME","jsxs","DialogPrimitive.Content","composeEventHandlers","event","_a","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","ACTION_NAME","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","ref","MESSAGE","Root2","Portal2","Overlay2","Content2","Cancel","Title2","Description2"],"mappings":"6jBAWA,IAAIA,EAAY,cACZ,CAACC,CAAgD,EAAIC,EAAAA,mBAAmBF,EAAW,CACrFG,EAAAA,iBACF,CAAC,EACGC,EAAiBD,EAAAA,kBAAiB,EAClCE,EAAeC,GAAU,CAC3B,KAAM,CAAE,mBAAAC,EAAoB,GAAGC,CAAgB,EAAKF,EAC9CG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIC,EAAAA,KAAsB,CAAE,GAAGF,EAAa,GAAGD,EAAkB,MAAO,GAAM,CACvG,EACAH,EAAY,YAAcL,EAC1B,IAAIY,EAAe,qBACfC,EAAqBC,EAAM,WAC7B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,GAAGS,CAAY,EAAKV,EAC1CG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIO,EAAAA,QAAyB,CAAE,GAAGR,EAAa,GAAGO,EAAc,IAAKD,EAAc,CAC5G,CACF,EACAF,EAAmB,YAAcD,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5C,EAAM,WAC5B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,GAAGoD,CAAW,EAAKrD,EACzC,CAAE,UAAA+B,CAAS,EAAKT,EAA6B6B,EAAalD,CAAkB,EAC5EE,EAAcL,EAAeG,CAAkB,EAC/CqD,EAAMxB,EAAAA,gBAAgBrB,EAAcsB,CAAS,EACnD,OAAuB3B,EAAAA,kBAAAA,IAAI8C,EAAAA,MAAuB,CAAE,GAAG/C,EAAa,GAAGkD,EAAa,IAAAC,EAAK,CAC3F,CACF,EACAF,EAAkB,YAAcD,EAChC,IAAIZ,EAAqB,CAAC,CAAE,WAAAX,KAAiB,CAC3C,MAAM2B,EAAU,KAAKnC,CAAY;AAAA;AAAA,qCAEEA,CAAY,qBAAqBuB,CAAgB;AAAA;AAAA,4JAEsEvB,CAAY;AAAA;AAAA,wFAGtKZ,OAAAA,EAAM,UAAU,IAAM,OACG,SAAS,gBAC9B8B,EAAAV,EAAW,UAAX,YAAAU,EAAoB,aAAa,mBACvC,GACyB,QAAQ,KAAKiB,CAAO,CAC3C,EAAG,CAACA,EAAS3B,CAAU,CAAC,EACjB,IACT,EACI4B,EAAQzD,EAER0D,EAAU5C,EACV6C,EAAWzC,EACX0C,EAAWlC,EAEXmC,EAASR,EACTS,EAASrB,EACTsB,EAAelB","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs311.js","sources":["../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createSlottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar Slottable = createSlottable(\"AlertDialogContent\");\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ROOT_NAME","createAlertDialogContext","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","TRIGGER_NAME","AlertDialogTrigger","React","forwardedRef","triggerProps","DialogPrimitive.Trigger","PORTAL_NAME","AlertDialogPortal","portalProps","DialogPrimitive.Portal","OVERLAY_NAME","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","Slottable","createSlottable","AlertDialogContent","children","contentProps","contentRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","TITLE_NAME","jsxs","DialogPrimitive.Content","composeEventHandlers","event","_a","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","ACTION_NAME","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","ref","MESSAGE","Root2","Portal2","Overlay2","Content2","Cancel","Title2","Description2"],"mappings":"6jBAWA,IAAIA,EAAY,cACZ,CAACC,CAAgD,EAAIC,EAAAA,mBAAmBF,EAAW,CACrFG,EAAAA,iBACF,CAAC,EACGC,EAAiBD,EAAAA,kBAAiB,EAClCE,EAAeC,GAAU,CAC3B,KAAM,CAAE,mBAAAC,EAAoB,GAAGC,CAAgB,EAAKF,EAC9CG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIC,EAAAA,KAAsB,CAAE,GAAGF,EAAa,GAAGD,EAAkB,MAAO,GAAM,CACvG,EACAH,EAAY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} from \"luxon\";\n\nexport const fromISODateToRangeFormat = (\n ISODateStartAt: string | null,\n ISODateEndAt: string | null,\n t: (key: string) => string,\n locale = \"it\",\n) => {\n if (!ISODateStartAt || !ISODateEndAt) return null;\n const startDate = DateTime.fromISO(ISODateStartAt).setLocale(locale);\n const endDate = DateTime.fromISO(ISODateEndAt).setLocale(locale);\n\n if (startDate.hasSame(endDate, \"month\")) {\n return `${t(\"from\")} ${startDate.toFormat(\"d\")} ${t(\"to\")} ${endDate.toFormat(\"d MMMM\")}`;\n }\n return `${t(\"from\")} ${startDate.toFormat(\"d MMMM\")} ${t(\"to\")} ${endDate.toFormat(\"d MMMM\")}`;\n};\n\nexport const fromISODateToDateFormatted = (\n ISODate: string | null,\n locale: string = \"it\",\n) => {\n if (!ISODate) return null;\n const date = DateTime.fromISO(ISODate).setLocale(locale);\n return date.toFormat(\"dd/MM/yyyy\");\n};\n\nexport const fromISOToFormat = (ISODate: string | null) => {\n if (!ISODate) return \" - \";\n const date = DateTime.fromISO(ISODate).setLocale(\"it\");\n return date.toFormat(\"dd/MM/yyyy\");\n};\n\nexport const formatRangeDateToISO = (startDate: string, endDate: string) => {\n const startDateTime = DateTime.fromFormat(startDate, \"yyyy-MM-dd\");\n const endDateTime = DateTime.fromFormat(endDate, \"yyyy-MM-dd\");\n\n if (!startDateTime.isValid) {\n console.error(\"Invalid start date:\", startDateTime.invalidExplanation);\n }\n\n if (!endDateTime.isValid) {\n console.error(\"Invalid end date:\", endDateTime.invalidExplanation);\n }\n\n return [\n startDateTime.startOf(\"day\").toISO() ?? \"\",\n endDateTime.endOf(\"day\").toISO() ?? \"\",\n ];\n};\n\nexport const isActiveDate = (expirationDate: string | null) => {\n if (!expirationDate) return false;\n return DateTime.fromISO(expirationDate).toMillis() > Date.now();\n};\n"],"names":["fromISODateToDateFormatted","ISODate","locale","DateTime"],"mappings":"mHAkBaA,EAA6B,CACxCC,EACAC,EAAiB,OAEZD,EACQE,EAAAA,SAAS,QAAQF,CAAO,EAAE,UAAUC,CAAM,EAC3C,SAAS,YAAY,EAFZ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs297.js"),s=require("react"),p=()=>{const[o,t]=c.useCopyToClipboard(),[r,e]=s.useState(!1);return{isCopied:r,copiedText:o,copyToClipboard:()=>{if(typeof window>"u")return;const i=window.location.href;t(i).then(()=>{e(()=>!0),setTimeout(()=>{e(!1)},1500)}).catch(n=>{console.debug("Failed to copy!",n)})}}};exports.useCopyToClipboardCurrentPage=p;
|
|
2
|
+
//# sourceMappingURL=index.cjs316.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs316.js","sources":["../src/hooks/useCopyToClipboardCurrentPage.ts"],"sourcesContent":["import { useCopyToClipboard as useCopyToClipboardNative } from \"usehooks-ts\";\n\nimport { useState } from \"react\";\n\nexport const useCopyToClipboardCurrentPage = () => {\n const [copiedText, copy] = useCopyToClipboardNative();\n const [isCopied, setIsCopied] = useState(false);\n\n const copyToClipboard = () => {\n if (typeof window === \"undefined\") return;\n const completeUrl = window.location.href;\n copy(completeUrl)\n .then(() => {\n setIsCopied(() => true);\n setTimeout(() => {\n setIsCopied(false);\n }, 1500);\n })\n .catch((error) => {\n console.debug(\"Failed to copy!\", error);\n });\n };\n\n return {\n isCopied,\n copiedText,\n copyToClipboard,\n };\n};\n"],"names":["useCopyToClipboardCurrentPage","copiedText","copy","useCopyToClipboardNative","isCopied","setIsCopied","useState","completeUrl","error"],"mappings":"wIAIaA,EAAgC,IAAM,CACjD,KAAM,CAACC,EAAYC,CAAI,EAAIC,qBAAA,EACrB,CAACC,EAAUC,CAAW,EAAIC,EAAAA,SAAS,EAAK,EAiB9C,MAAO,CACL,SAAAF,EACA,WAAAH,EACA,gBAlBsB,IAAM,CAC5B,GAAI,OAAO,OAAW,IAAa,OACnC,MAAMM,EAAc,OAAO,SAAS,KACpCL,EAAKK,CAAW,EACb,KAAK,IAAM,CACVF,EAAY,IAAM,EAAI,EACtB,WAAW,IAAM,CACfA,EAAY,EAAK,CACnB,EAAG,IAAI,CACT,CAAC,EACA,MAAOG,GAAU,CAChB,QAAQ,MAAM,kBAAmBA,CAAK,CACxC,CAAC,CACL,CAKE,CAEJ"}
|
package/dist/index.cjs317.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 r=(t,e)=>{if(!t&&!e)return"";const i=t?t.charAt(0).toLocaleUpperCase():"",l=e?e.charAt(0).toLocaleUpperCase():"";return i+l};exports.getFullNameInitials=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs317.js.map
|
package/dist/index.cjs317.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs317.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.cjs317.js","sources":["../src/utils/getFullNameInitials.ts"],"sourcesContent":["export const getFullNameInitials = (name: string, lastName: string): string => {\n if (!name && !lastName) return \"\";\n\n const nameInitial = name ? name.charAt(0).toLocaleUpperCase() : \"\";\n const lastNameInitial = lastName\n ? lastName.charAt(0).toLocaleUpperCase()\n : \"\";\n\n return nameInitial + lastNameInitial;\n};\n"],"names":["getFullNameInitials","name","lastName","nameInitial","lastNameInitial"],"mappings":"gFAAO,MAAMA,EAAsB,CAACC,EAAcC,IAA6B,CAC7E,GAAI,CAACD,GAAQ,CAACC,EAAU,MAAO,GAE/B,MAAMC,EAAcF,EAAOA,EAAK,OAAO,CAAC,EAAE,oBAAsB,GAC1DG,EAAkBF,EACpBA,EAAS,OAAO,CAAC,EAAE,oBACnB,GAEJ,OAAOC,EAAcC,CACvB"}
|
package/dist/index.cjs318.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"});function e(o){const t=o.trim().split(/\s+/),n=Math.ceil(t.length/2),s=t.slice(0,n).join(" "),i=t.slice(n).join(" ");return[s,i]}exports.splitInTwo=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs318.js.map
|
package/dist/index.cjs318.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs318.js","sources":["../src/components/navigations/HeaderDesktop/index.tsx"],"sourcesContent":["import { Divider } from \"@/components/ui/Divider\";\nimport { LOGOS, Region } from \"../Header\";\nimport { HeaderSlim } from \"@/components\";\nimport clsx from \"clsx\";\nimport { Balancer } from \"react-wrap-balancer\";\nimport { Button } from \"@/components/ui/Button\";\nimport { Container } from \"@/components/ui/Container\";\nimport \"./HeaderDesktop.scss\";\nimport { Row } from \"@/components\";\n\nimport { WithVariant } from \"@/types/variant\";\n\ntype NavigationItem = {\n label: string;\n href: string;\n active?: boolean;\n isNewTab?: boolean;\n};\n\ntype NavigationLabels = {\n closeMenu: string;\n login: string;\n};\n\nexport type HeaderDesktopProps = WithVariant<{\n title: React.ReactNode | string;\n region: Region;\n asLink?: \"a\" | React.ComponentType<any>;\n children?: React.ReactNode;\n labels: NavigationLabels;\n navigatonItems: NavigationItem[];\n supportLink?: NavigationItem;\n loginLink?: string;\n shortTitle?: React.ReactNode;\n headerTitleClassname?: string;\n headerLogoUrl2?: string;\n}>;\n\nexport const HeaderDesktop = ({\n title,\n region,\n asLink = \"a\",\n labels,\n navigatonItems,\n supportLink,\n loginLink = \"/\",\n shortTitle,\n headerTitleClassname,\n children,\n headerLogoUrl2,\n variant = \"default\",\n}: HeaderDesktopProps) => {\n const LinkComponent = asLink;\n const NationalIcon = LOGOS[\"nazionale\"];\n const RegionIcon = LOGOS[region];\n\n const textLinkVariant =\n variant === \"operator\" ? \"text-white\" : \"text-primary\";\n const activeLinkVariant =\n variant === \"operator\" ? \"text-white\" : \"text-blue-30\";\n\n return (\n <div\n className={clsx(\n \"sticky-header bg-white\",\n variant === \"operator\" && \"ui-header-desktop-operator\",\n )}\n >\n <HeaderSlim\n pt=\"x16\"\n pb=\"x16\"\n display=\"flex\"\n justifyContent=\"space-between\"\n alignItems=\"center\"\n containerClassName={clsx(\n variant === \"operator\" ? \"ui-slim-operator\" : \"bg-slate-20\",\n )}\n >\n <LinkComponent\n href=\"/\"\n className={clsx(\n \"fw-semibold text-decoration-none fs-7 hover-underline base-row align-items-center justify-content-center gap-x8\",\n variant === \"default\" ? \"text-white\" : \"text-slate-20\",\n )}\n >\n {headerLogoUrl2 && (\n <div\n style={{ backgroundImage: `url(${headerLogoUrl2})` }}\n className={\"ui-header-item-image\"}\n ></div>\n )}\n\n {shortTitle ? shortTitle : title}\n <span className=\"visually-hidden\">Vai alla homepage</span>\n </LinkComponent>\n\n {children}\n </HeaderSlim>\n <header\n className={clsx(variant === \"operator\" ? \"bg-radial\" : \"bg-white\")}\n >\n <Row\n py={\"x20\"}\n gap={\"x16\"}\n alignItems=\"center\"\n justifyContent={\"space-between\"}\n className=\"max-h-x116 ui-container\"\n >\n <Row gap={\"x16\"} alignItems=\"center\">\n <Row gap={\"x16\"} alignItems=\"center\" justifyContent={\"center\"}>\n <NationalIcon height={44} width={27} variant={variant} />\n {region !== \"nazionale\" && (\n <>\n <Divider bg=\"border-divider\" direction=\"vertical\" />\n <RegionIcon\n width={44}\n height={44}\n color={variant === \"operator\" ? \"lightblue-a03\" : \"white\"}\n />\n </>\n )}\n </Row>\n <h1 className={clsx(headerTitleClassname, \"ui-header-title\")}>\n {variant === \"default\" ? (\n <Balancer>\n <LinkComponent\n href=\"/\"\n className={\"text-decoration-none hover-underline_dark\"}\n >\n <span className={\"ui-title-line-height\"}>{title}</span>\n <span className=\"visually-hidden\">Vai alla homepage</span>\n </LinkComponent>\n </Balancer>\n ) : (\n <LinkComponent\n href=\"/\"\n className={\"text-decoration-none hover-underline_dark\"}\n >\n <span className={\"ui-title-line-height\"}>{title}</span>\n <span className=\"visually-hidden\">Vai alla homepage</span>\n </LinkComponent>\n )}\n </h1>\n </Row>\n <Button\n size=\"2\"\n href={loginLink}\n asLink=\"a\"\n className=\"login-button\"\n variant={variant === \"operator\" ? \"secondary\" : \"primary\"}\n >\n <span style={{ fontSize: 14 }}> {labels.login} </span>\n <span className=\"visually-hidden\"> Accedi con Cohesion</span>\n </Button>\n </Row>\n <nav aria-label=\"Menu di navigazione\" className=\"shadow-bottom\">\n <Container\n containerClass=\"ui-container\"\n className=\"base-row align-items-center justify-content-between max-h-x52\"\n >\n <Row as={\"ul\"} className=\"list-style-none\" role=\"list\">\n {navigatonItems.map((item, index) => {\n return (\n <li\n key={index}\n className={clsx(\n \"py-x12 px-x16 ui-header-desktop-nav-item max-h-x52\",\n item.active && \"active\",\n )}\n >\n <LinkComponent\n href={item.href}\n className={clsx(\n \"text-decoration-none fs-custom\",\n item.active\n ? `fw-bold ${textLinkVariant}`\n : `fw-semibold ${textLinkVariant}`,\n )}\n target={item.isNewTab ? \"_blank\" : undefined}\n rel={item.isNewTab ? \"noopener noreferrer\" : undefined}\n >\n {item.label}\n {item.active && (\n <span className=\"visually-hidden\">Attivo</span>\n )}\n </LinkComponent>\n </li>\n );\n })}\n </Row>\n {supportLink && (\n <LinkComponent\n href={supportLink.href}\n className={clsx(\n \"text-decoration-none fs-custom py-x12 px-x0\",\n supportLink.active\n ? `fw-bold ${activeLinkVariant}`\n : `fw-semibold ${textLinkVariant}`,\n \"ui-header-desktop-support-link\",\n supportLink.active &&\n (variant === \"operator\" ? \"active-operator\" : \"active\"),\n )}\n >\n {supportLink.label}\n {supportLink.active && (\n <span className=\"visually-hidden\">Attivo</span>\n )}\n </LinkComponent>\n )}\n </Container>\n </nav>\n </header>\n </div>\n );\n};\n"],"names":["HeaderDesktop","title","region","asLink","labels","navigatonItems","supportLink","loginLink","shortTitle","headerTitleClassname","children","headerLogoUrl2","variant","LinkComponent","NationalIcon","LOGOS","RegionIcon","textLinkVariant","activeLinkVariant","jsxs","clsx","HeaderSlim","jsx","Row","Fragment","Divider","Balancer","Button","Container","item","index"],"mappings":"8YAsCaA,EAAgB,CAAC,CAC5B,MAAAC,EACA,OAAAC,EACA,OAAAC,EAAS,IACT,OAAAC,EACA,eAAAC,EACA,YAAAC,EACA,UAAAC,EAAY,IACZ,WAAAC,EACA,qBAAAC,EACA,SAAAC,EACA,eAAAC,EACA,QAAAC,EAAU,SACZ,IAA0B,CACxB,MAAMC,EAAgBV,EAChBW,EAAeC,EAAAA,MAAM,UACrBC,EAAaD,EAAAA,MAAMb,CAAM,EAEzBe,EACJL,IAAY,WAAa,aAAe,eACpCM,EACJN,IAAY,WAAa,aAAe,eAE1C,OACEO,EAAAA,kBAAAA,KAAC,MAAA,CACC,UAAWC,EAAAA,KACT,yBACAR,IAAY,YAAc,4BAAA,EAG5B,SAAA,CAAAO,EAAAA,kBAAAA,KAACE,EAAAA,WAAA,CACC,GAAG,MACH,GAAG,MACH,QAAQ,OACR,eAAe,gBACf,WAAW,SACX,mBAAoBD,EAAAA,KAClBR,IAAY,WAAa,mBAAqB,aAAA,EAGhD,SAAA,CAAAO,EAAAA,kBAAAA,KAACN,EAAA,CACC,KAAK,IACL,UAAWO,EAAAA,KACT,kHACAR,IAAY,UAAY,aAAe,eAAA,EAGxC,SAAA,CAAAD,GACCW,EAAAA,kBAAAA,IAAC,MAAA,CACC,MAAO,CAAE,gBAAiB,OAAOX,CAAc,GAAA,EAC/C,UAAW,sBAAA,CAAA,EAIdH,GAA0BP,EAC3BqB,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,kBAAkB,SAAA,mBAAA,CAAiB,CAAA,CAAA,CAAA,EAGpDZ,CAAA,CAAA,CAAA,EAEHS,EAAAA,kBAAAA,KAAC,SAAA,CACC,UAAWC,EAAAA,KAAKR,IAAY,WAAa,YAAc,UAAU,EAEjE,SAAA,CAAAO,EAAAA,kBAAAA,KAACI,EAAAA,IAAA,CACC,G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AY,SACTM,IAAY,WAAa,kBAAoB,SAAA,EAGjD,SAAA,CAAAN,EAAY,MACZA,EAAY,QACXgB,EAAAA,kBAAAA,IAAC,OAAA,CAAK,UAAU,kBAAkB,SAAA,QAAA,CAAM,CAAA,CAAA,CAAA,CAE5C,CAAA,CAAA,CAEJ,CACF,CAAA,CAAA,CAAA,CACF,CAAA,CAAA,CAGN"}
|
|
1
|
+
{"version":3,"file":"index.cjs318.js","sources":["../src/utils/splitInTwo.ts"],"sourcesContent":["export function splitInTwo(text: string): [string, string] {\n const words = text.trim().split(/\\s+/);\n const half = Math.ceil(words.length / 2);\n\n const firstPart = words.slice(0, half).join(\" \");\n const secondPart = words.slice(half).join(\" \");\n\n return [firstPart, secondPart];\n}\n"],"names":["splitInTwo","text","words","half","firstPart","secondPart"],"mappings":"gFAAO,SAASA,EAAWC,EAAgC,CACzD,MAAMC,EAAQD,EAAK,KAAA,EAAO,MAAM,KAAK,EAC/BE,EAAO,KAAK,KAAKD,EAAM,OAAS,CAAC,EAEjCE,EAAYF,EAAM,MAAM,EAAGC,CAAI,EAAE,KAAK,GAAG,EACzCE,EAAaH,EAAM,MAAMC,CAAI,EAAE,KAAK,GAAG,EAE7C,MAAO,CAACC,EAAWC,CAAU,CAC/B"}
|