mada-design-system 0.0.9
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/.eslintrc.cjs +24 -0
- package/.prettierrc.json +15 -0
- package/index.cjs.js +1 -0
- package/index.cjs10.js +1 -0
- package/index.cjs100.js +2 -0
- package/index.cjs101.js +2 -0
- package/index.cjs102.js +1 -0
- package/index.cjs103.js +1 -0
- package/index.cjs104.js +1 -0
- package/index.cjs105.js +4 -0
- package/index.cjs106.js +1 -0
- package/index.cjs107.js +2 -0
- package/index.cjs108.js +1 -0
- package/index.cjs109.js +2 -0
- package/index.cjs11.js +1 -0
- package/index.cjs110.js +1 -0
- package/index.cjs111.js +1 -0
- package/index.cjs112.js +1 -0
- package/index.cjs113.js +1 -0
- package/index.cjs114.js +1 -0
- package/index.cjs115.js +1 -0
- package/index.cjs116.js +1 -0
- package/index.cjs117.js +20 -0
- package/index.cjs118.js +1 -0
- package/index.cjs119.js +1 -0
- package/index.cjs12.js +1 -0
- package/index.cjs120.js +1 -0
- package/index.cjs121.js +1 -0
- package/index.cjs122.js +1 -0
- package/index.cjs123.js +1 -0
- package/index.cjs124.js +1 -0
- package/index.cjs125.js +1 -0
- package/index.cjs126.js +1 -0
- package/index.cjs127.js +1 -0
- package/index.cjs128.js +1 -0
- package/index.cjs129.js +1 -0
- package/index.cjs13.js +1 -0
- package/index.cjs130.js +1 -0
- package/index.cjs131.js +1 -0
- package/index.cjs132.js +1 -0
- package/index.cjs133.js +1 -0
- package/index.cjs134.js +1 -0
- package/index.cjs135.js +1 -0
- package/index.cjs136.js +1 -0
- package/index.cjs137.js +1 -0
- package/index.cjs138.js +1 -0
- package/index.cjs139.js +1 -0
- package/index.cjs14.js +1 -0
- package/index.cjs140.js +1 -0
- package/index.cjs141.js +1 -0
- package/index.cjs142.js +1 -0
- package/index.cjs143.js +1 -0
- package/index.cjs144.js +1 -0
- package/index.cjs145.js +1 -0
- package/index.cjs146.js +1 -0
- package/index.cjs147.js +4 -0
- package/index.cjs148.js +1 -0
- package/index.cjs149.js +1 -0
- package/index.cjs15.js +1 -0
- package/index.cjs150.js +1 -0
- package/index.cjs151.js +1 -0
- package/index.cjs152.js +1 -0
- package/index.cjs153.js +1 -0
- package/index.cjs154.js +1 -0
- package/index.cjs155.js +3 -0
- package/index.cjs156.js +1 -0
- package/index.cjs157.js +1 -0
- package/index.cjs158.js +1 -0
- package/index.cjs159.js +1 -0
- package/index.cjs16.js +1 -0
- package/index.cjs160.js +1 -0
- package/index.cjs161.js +1 -0
- package/index.cjs162.js +1 -0
- package/index.cjs163.js +1 -0
- package/index.cjs164.js +1 -0
- package/index.cjs165.js +1 -0
- package/index.cjs166.js +1 -0
- package/index.cjs167.js +1 -0
- package/index.cjs168.js +1 -0
- package/index.cjs169.js +1 -0
- package/index.cjs17.js +1 -0
- package/index.cjs170.js +1 -0
- package/index.cjs171.js +1 -0
- package/index.cjs172.js +1 -0
- package/index.cjs173.js +1 -0
- package/index.cjs174.js +1 -0
- package/index.cjs175.js +1 -0
- package/index.cjs176.js +1 -0
- package/index.cjs177.js +1 -0
- package/index.cjs178.js +1 -0
- package/index.cjs179.js +1 -0
- package/index.cjs18.js +1 -0
- package/index.cjs180.js +1 -0
- package/index.cjs181.js +1 -0
- package/index.cjs182.js +1 -0
- package/index.cjs183.js +1 -0
- package/index.cjs184.js +1 -0
- package/index.cjs185.js +1 -0
- package/index.cjs186.js +1 -0
- package/index.cjs187.js +1 -0
- package/index.cjs188.js +1 -0
- package/index.cjs189.js +1 -0
- package/index.cjs19.js +1 -0
- package/index.cjs190.js +1 -0
- package/index.cjs191.js +1 -0
- package/index.cjs192.js +1 -0
- package/index.cjs193.js +1 -0
- package/index.cjs194.js +1 -0
- package/index.cjs195.js +2 -0
- package/index.cjs196.js +1 -0
- package/index.cjs197.js +1 -0
- package/index.cjs198.js +1 -0
- package/index.cjs199.js +1 -0
- package/index.cjs2.js +1 -0
- package/index.cjs20.js +1 -0
- package/index.cjs200.js +1 -0
- package/index.cjs201.js +1 -0
- package/index.cjs202.js +1 -0
- package/index.cjs203.js +1 -0
- package/index.cjs204.js +1 -0
- package/index.cjs205.js +1 -0
- package/index.cjs206.js +1 -0
- package/index.cjs207.js +1 -0
- package/index.cjs208.js +1 -0
- package/index.cjs209.js +1 -0
- package/index.cjs21.js +1 -0
- package/index.cjs210.js +1 -0
- package/index.cjs211.js +2 -0
- package/index.cjs212.js +1 -0
- package/index.cjs213.js +1 -0
- package/index.cjs214.js +1 -0
- package/index.cjs215.js +1 -0
- package/index.cjs216.js +1 -0
- package/index.cjs217.js +1 -0
- package/index.cjs218.js +1 -0
- package/index.cjs219.js +1 -0
- package/index.cjs22.js +1 -0
- package/index.cjs220.js +1 -0
- package/index.cjs221.js +1 -0
- package/index.cjs222.js +1 -0
- package/index.cjs223.js +1 -0
- package/index.cjs224.js +1 -0
- package/index.cjs225.js +1 -0
- package/index.cjs226.js +1 -0
- package/index.cjs227.js +1 -0
- package/index.cjs228.js +1 -0
- package/index.cjs229.js +15 -0
- package/index.cjs23.js +1 -0
- package/index.cjs230.js +1 -0
- package/index.cjs231.js +1 -0
- package/index.cjs232.js +1 -0
- package/index.cjs233.js +1 -0
- package/index.cjs234.js +1 -0
- package/index.cjs235.js +1 -0
- package/index.cjs236.js +1 -0
- package/index.cjs237.js +1 -0
- package/index.cjs238.js +1 -0
- package/index.cjs239.js +1 -0
- package/index.cjs24.js +1 -0
- package/index.cjs240.js +1 -0
- package/index.cjs241.js +1 -0
- package/index.cjs242.js +1 -0
- package/index.cjs243.js +1 -0
- package/index.cjs244.js +1 -0
- package/index.cjs245.js +1 -0
- package/index.cjs246.js +1 -0
- package/index.cjs247.js +1 -0
- package/index.cjs248.js +1 -0
- package/index.cjs249.js +1 -0
- package/index.cjs25.js +1 -0
- package/index.cjs250.js +1 -0
- package/index.cjs251.js +3 -0
- package/index.cjs252.js +1 -0
- package/index.cjs253.js +1 -0
- package/index.cjs254.js +1 -0
- package/index.cjs255.js +1 -0
- package/index.cjs256.js +1 -0
- package/index.cjs257.js +1 -0
- package/index.cjs258.js +1 -0
- package/index.cjs259.js +1 -0
- package/index.cjs26.js +2 -0
- package/index.cjs260.js +1 -0
- package/index.cjs261.js +1 -0
- package/index.cjs262.js +1 -0
- package/index.cjs263.js +1 -0
- package/index.cjs264.js +1 -0
- package/index.cjs265.js +1 -0
- package/index.cjs266.js +1 -0
- package/index.cjs267.js +1 -0
- package/index.cjs268.js +1 -0
- package/index.cjs269.js +1 -0
- package/index.cjs27.js +1 -0
- package/index.cjs270.js +1 -0
- package/index.cjs271.js +1 -0
- package/index.cjs272.js +1 -0
- package/index.cjs273.js +1 -0
- package/index.cjs274.js +1 -0
- package/index.cjs275.js +1 -0
- package/index.cjs276.js +1 -0
- package/index.cjs277.js +1 -0
- package/index.cjs278.js +1 -0
- package/index.cjs279.js +1 -0
- package/index.cjs28.js +1 -0
- package/index.cjs280.js +1 -0
- package/index.cjs281.js +1 -0
- package/index.cjs282.js +1 -0
- package/index.cjs283.js +1 -0
- package/index.cjs284.js +1 -0
- package/index.cjs285.js +1 -0
- package/index.cjs286.js +1 -0
- package/index.cjs287.js +1 -0
- package/index.cjs288.js +1 -0
- package/index.cjs289.js +1 -0
- package/index.cjs29.js +1 -0
- package/index.cjs290.js +1 -0
- package/index.cjs291.js +1 -0
- package/index.cjs292.js +1 -0
- package/index.cjs293.js +1 -0
- package/index.cjs294.js +1 -0
- package/index.cjs295.js +1 -0
- package/index.cjs296.js +1 -0
- package/index.cjs297.js +1 -0
- package/index.cjs298.js +1 -0
- package/index.cjs299.js +1 -0
- package/index.cjs3.js +1 -0
- package/index.cjs30.js +1 -0
- package/index.cjs300.js +1 -0
- package/index.cjs301.js +1 -0
- package/index.cjs302.js +1 -0
- package/index.cjs303.js +1 -0
- package/index.cjs304.js +1 -0
- package/index.cjs305.js +1 -0
- package/index.cjs306.js +1 -0
- package/index.cjs307.js +1 -0
- package/index.cjs308.js +1 -0
- package/index.cjs309.js +1 -0
- package/index.cjs31.js +1 -0
- package/index.cjs310.js +1 -0
- package/index.cjs311.js +1 -0
- package/index.cjs312.js +1 -0
- package/index.cjs313.js +1 -0
- package/index.cjs314.js +1 -0
- package/index.cjs315.js +1 -0
- package/index.cjs316.js +1 -0
- package/index.cjs317.js +1 -0
- package/index.cjs318.js +1 -0
- package/index.cjs319.js +1 -0
- package/index.cjs32.js +1 -0
- package/index.cjs320.js +1 -0
- package/index.cjs321.js +1 -0
- package/index.cjs322.js +1 -0
- package/index.cjs323.js +1 -0
- package/index.cjs324.js +2 -0
- package/index.cjs325.js +1 -0
- package/index.cjs326.js +1 -0
- package/index.cjs327.js +1 -0
- package/index.cjs328.js +1 -0
- package/index.cjs329.js +1 -0
- package/index.cjs33.js +1 -0
- package/index.cjs330.js +1 -0
- package/index.cjs331.js +1 -0
- package/index.cjs332.js +1 -0
- package/index.cjs333.js +1 -0
- package/index.cjs334.js +1 -0
- package/index.cjs335.js +1 -0
- package/index.cjs336.js +1 -0
- package/index.cjs337.js +1 -0
- package/index.cjs338.js +1 -0
- package/index.cjs339.js +1 -0
- package/index.cjs34.js +1 -0
- package/index.cjs340.js +74 -0
- package/index.cjs341.js +1 -0
- package/index.cjs342.js +1 -0
- package/index.cjs343.js +1 -0
- package/index.cjs344.js +1 -0
- package/index.cjs345.js +1 -0
- package/index.cjs346.js +1 -0
- package/index.cjs347.js +1 -0
- package/index.cjs348.js +1 -0
- package/index.cjs349.js +1 -0
- package/index.cjs35.js +1 -0
- package/index.cjs350.js +1 -0
- package/index.cjs351.js +1 -0
- package/index.cjs352.js +1 -0
- package/index.cjs353.js +1 -0
- package/index.cjs354.js +1 -0
- package/index.cjs355.js +1 -0
- package/index.cjs356.js +1 -0
- package/index.cjs357.js +1 -0
- package/index.cjs358.js +1 -0
- package/index.cjs359.js +1 -0
- package/index.cjs36.js +1 -0
- package/index.cjs360.js +1 -0
- package/index.cjs361.js +1 -0
- package/index.cjs362.js +1 -0
- package/index.cjs363.js +1 -0
- package/index.cjs364.js +1 -0
- package/index.cjs365.js +1 -0
- package/index.cjs37.js +1 -0
- package/index.cjs38.js +1 -0
- package/index.cjs39.js +1 -0
- package/index.cjs4.js +1 -0
- package/index.cjs40.js +1 -0
- package/index.cjs41.js +1 -0
- package/index.cjs42.js +1 -0
- package/index.cjs43.js +1 -0
- package/index.cjs44.js +1 -0
- package/index.cjs45.js +4 -0
- package/index.cjs46.js +1 -0
- package/index.cjs47.js +1 -0
- package/index.cjs48.js +1 -0
- package/index.cjs49.js +1 -0
- package/index.cjs5.js +1 -0
- package/index.cjs50.js +1 -0
- package/index.cjs51.js +1 -0
- package/index.cjs52.js +1 -0
- package/index.cjs53.js +1 -0
- package/index.cjs54.js +1 -0
- package/index.cjs55.js +1 -0
- package/index.cjs56.js +4 -0
- package/index.cjs57.js +1 -0
- package/index.cjs58.js +1 -0
- package/index.cjs59.js +1 -0
- package/index.cjs6.js +1 -0
- package/index.cjs60.js +4 -0
- package/index.cjs61.js +1 -0
- package/index.cjs62.js +1 -0
- package/index.cjs63.js +1 -0
- package/index.cjs64.js +1 -0
- package/index.cjs65.js +1 -0
- package/index.cjs66.js +1 -0
- package/index.cjs67.js +1 -0
- package/index.cjs68.js +1 -0
- package/index.cjs69.js +1 -0
- package/index.cjs7.js +1 -0
- package/index.cjs70.js +1 -0
- package/index.cjs71.js +1 -0
- package/index.cjs72.js +1 -0
- package/index.cjs73.js +1 -0
- package/index.cjs74.js +1 -0
- package/index.cjs75.js +1 -0
- package/index.cjs76.js +1 -0
- package/index.cjs77.js +1 -0
- package/index.cjs78.js +1 -0
- package/index.cjs79.js +1 -0
- package/index.cjs8.js +1 -0
- package/index.cjs80.js +1 -0
- package/index.cjs81.js +1 -0
- package/index.cjs82.js +1 -0
- package/index.cjs83.js +1 -0
- package/index.cjs84.js +1 -0
- package/index.cjs85.js +1 -0
- package/index.cjs86.js +1 -0
- package/index.cjs87.js +1 -0
- package/index.cjs88.js +1 -0
- package/index.cjs89.js +1 -0
- package/index.cjs9.js +3 -0
- package/index.cjs90.js +5 -0
- package/index.cjs91.js +1 -0
- package/index.cjs92.js +1 -0
- package/index.cjs93.js +1 -0
- package/index.cjs94.js +1 -0
- package/index.cjs95.js +1 -0
- package/index.cjs96.js +1 -0
- package/index.cjs97.js +1 -0
- package/index.cjs98.js +1 -0
- package/index.cjs99.js +1 -0
- package/index.es.d.ts +1981 -0
- package/index.es.js +351 -0
- package/index.es10.js +103 -0
- package/index.es100.js +5301 -0
- package/index.es101.js +117 -0
- package/index.es102.js +13 -0
- package/index.es103.js +13 -0
- package/index.es104.js +13 -0
- package/index.es105.js +2571 -0
- package/index.es106.js +143 -0
- package/index.es107.js +119 -0
- package/index.es108.js +139 -0
- package/index.es109.js +225 -0
- package/index.es11.js +20 -0
- package/index.es110.js +518 -0
- package/index.es111.js +13 -0
- package/index.es112.js +312 -0
- package/index.es113.js +13 -0
- package/index.es114.js +13 -0
- package/index.es115.js +13 -0
- package/index.es116.js +13 -0
- package/index.es117.js +207 -0
- package/index.es118.js +13 -0
- package/index.es119.js +13 -0
- package/index.es12.js +166 -0
- package/index.es120.js +13 -0
- package/index.es121.js +24 -0
- package/index.es122.js +13 -0
- package/index.es123.js +13 -0
- package/index.es124.js +14 -0
- package/index.es125.js +13 -0
- package/index.es126.js +2325 -0
- package/index.es127.js +2154 -0
- package/index.es128.js +4 -0
- package/index.es129.js +13 -0
- package/index.es13.js +43 -0
- package/index.es130.js +473 -0
- package/index.es131.js +141 -0
- package/index.es132.js +8 -0
- package/index.es133.js +235 -0
- package/index.es134.js +56 -0
- package/index.es135.js +8 -0
- package/index.es136.js +4 -0
- package/index.es137.js +3 -0
- package/index.es138.js +33 -0
- package/index.es139.js +14 -0
- package/index.es14.js +5 -0
- package/index.es140.js +4 -0
- package/index.es141.js +4 -0
- package/index.es142.js +20 -0
- package/index.es143.js +16 -0
- package/index.es144.js +10 -0
- package/index.es145.js +52 -0
- package/index.es146.js +4 -0
- package/index.es147.js +2263 -0
- package/index.es148.js +6 -0
- package/index.es149.js +10 -0
- package/index.es15.js +81 -0
- package/index.es150.js +9 -0
- package/index.es151.js +13 -0
- package/index.es152.js +15 -0
- package/index.es153.js +15 -0
- package/index.es154.js +108 -0
- package/index.es155.js +27 -0
- package/index.es156.js +53 -0
- package/index.es157.js +373 -0
- package/index.es158.js +64 -0
- package/index.es159.js +50 -0
- package/index.es16.js +189 -0
- package/index.es160.js +8 -0
- package/index.es161.js +7 -0
- package/index.es162.js +49 -0
- package/index.es163.js +24 -0
- package/index.es164.js +8 -0
- package/index.es165.js +12 -0
- package/index.es166.js +13 -0
- package/index.es167.js +19 -0
- package/index.es168.js +232 -0
- package/index.es169.js +27 -0
- package/index.es17.js +45 -0
- package/index.es170.js +14 -0
- package/index.es171.js +281 -0
- package/index.es172.js +264 -0
- package/index.es173.js +19 -0
- package/index.es174.js +17 -0
- package/index.es175.js +23 -0
- package/index.es176.js +10 -0
- package/index.es177.js +7 -0
- package/index.es178.js +7 -0
- package/index.es179.js +7 -0
- package/index.es18.js +72 -0
- package/index.es180.js +4 -0
- package/index.es181.js +60 -0
- package/index.es182.js +59 -0
- package/index.es183.js +6 -0
- package/index.es184.js +4 -0
- package/index.es185.js +15 -0
- package/index.es186.js +27 -0
- package/index.es187.js +13 -0
- package/index.es188.js +41 -0
- package/index.es189.js +2002 -0
- package/index.es19.js +56 -0
- package/index.es190.js +9 -0
- package/index.es191.js +74 -0
- package/index.es192.js +27 -0
- package/index.es193.js +4 -0
- package/index.es194.js +10 -0
- package/index.es195.js +329 -0
- package/index.es196.js +53 -0
- package/index.es197.js +32 -0
- package/index.es198.js +36 -0
- package/index.es199.js +55 -0
- package/index.es2.js +4 -0
- package/index.es20.js +26 -0
- package/index.es200.js +121 -0
- package/index.es201.js +11 -0
- package/index.es202.js +165 -0
- package/index.es203.js +312 -0
- package/index.es204.js +129 -0
- package/index.es205.js +182 -0
- package/index.es206.js +28 -0
- package/index.es207.js +64 -0
- package/index.es208.js +7 -0
- package/index.es209.js +38 -0
- package/index.es21.js +142 -0
- package/index.es210.js +28 -0
- package/index.es211.js +188 -0
- package/index.es212.js +140 -0
- package/index.es213.js +4 -0
- package/index.es214.js +10 -0
- package/index.es215.js +4 -0
- package/index.es216.js +100 -0
- package/index.es217.js +28 -0
- package/index.es218.js +41 -0
- package/index.es219.js +4 -0
- package/index.es22.js +39 -0
- package/index.es220.js +71 -0
- package/index.es221.js +87 -0
- package/index.es222.js +50 -0
- package/index.es223.js +11 -0
- package/index.es224.js +7 -0
- package/index.es225.js +54 -0
- package/index.es226.js +4 -0
- package/index.es227.js +62 -0
- package/index.es228.js +19 -0
- package/index.es229.js +246 -0
- package/index.es23.js +173 -0
- package/index.es230.js +76 -0
- package/index.es231.js +7 -0
- package/index.es232.js +60 -0
- package/index.es233.js +13 -0
- package/index.es234.js +9 -0
- package/index.es235.js +38 -0
- package/index.es236.js +29 -0
- package/index.es237.js +293 -0
- package/index.es238.js +93 -0
- package/index.es239.js +5 -0
- package/index.es24.js +14 -0
- package/index.es240.js +10 -0
- package/index.es241.js +18 -0
- package/index.es242.js +149 -0
- package/index.es243.js +40 -0
- package/index.es244.js +5 -0
- package/index.es245.js +13 -0
- package/index.es246.js +122 -0
- package/index.es247.js +9 -0
- package/index.es248.js +10 -0
- package/index.es249.js +10 -0
- package/index.es25.js +36 -0
- package/index.es250.js +353 -0
- package/index.es251.js +97 -0
- package/index.es252.js +12 -0
- package/index.es253.js +5 -0
- package/index.es254.js +208 -0
- package/index.es255.js +118 -0
- package/index.es256.js +9 -0
- package/index.es257.js +10 -0
- package/index.es258.js +18 -0
- package/index.es259.js +4 -0
- package/index.es26.js +24 -0
- package/index.es260.js +47 -0
- package/index.es261.js +54 -0
- package/index.es262.js +4 -0
- package/index.es263.js +4 -0
- package/index.es264.js +8 -0
- package/index.es265.js +26 -0
- package/index.es266.js +23 -0
- package/index.es267.js +34 -0
- package/index.es268.js +8 -0
- package/index.es269.js +5 -0
- package/index.es27.js +12 -0
- package/index.es270.js +9 -0
- package/index.es271.js +6 -0
- package/index.es272.js +21 -0
- package/index.es273.js +69 -0
- package/index.es274.js +18 -0
- package/index.es275.js +17 -0
- package/index.es276.js +6 -0
- package/index.es277.js +15 -0
- package/index.es278.js +145 -0
- package/index.es279.js +45 -0
- package/index.es28.js +109 -0
- package/index.es280.js +5 -0
- package/index.es281.js +43 -0
- package/index.es282.js +10 -0
- package/index.es283.js +78 -0
- package/index.es284.js +57 -0
- package/index.es285.js +10 -0
- package/index.es286.js +78 -0
- package/index.es287.js +26 -0
- package/index.es288.js +64 -0
- package/index.es289.js +7 -0
- package/index.es29.js +45 -0
- package/index.es290.js +61 -0
- package/index.es291.js +15 -0
- package/index.es292.js +6 -0
- package/index.es293.js +12 -0
- package/index.es294.js +57 -0
- package/index.es295.js +7 -0
- package/index.es296.js +19 -0
- package/index.es297.js +19 -0
- package/index.es298.js +19 -0
- package/index.es299.js +19 -0
- package/index.es3.js +15 -0
- package/index.es30.js +71 -0
- package/index.es300.js +19 -0
- package/index.es301.js +19 -0
- package/index.es302.js +19 -0
- package/index.es303.js +18 -0
- package/index.es304.js +338 -0
- package/index.es305.js +7 -0
- package/index.es306.js +7 -0
- package/index.es307.js +9 -0
- package/index.es308.js +21 -0
- package/index.es309.js +6 -0
- package/index.es31.js +125 -0
- package/index.es310.js +8 -0
- package/index.es311.js +5 -0
- package/index.es312.js +74 -0
- package/index.es313.js +6 -0
- package/index.es314.js +9 -0
- package/index.es315.js +32 -0
- package/index.es316.js +12 -0
- package/index.es317.js +10 -0
- package/index.es318.js +9 -0
- package/index.es319.js +4 -0
- package/index.es32.js +73 -0
- package/index.es320.js +4 -0
- package/index.es321.js +4 -0
- package/index.es322.js +68 -0
- package/index.es323.js +67 -0
- package/index.es324.js +80 -0
- package/index.es325.js +261 -0
- package/index.es326.js +34 -0
- package/index.es327.js +8 -0
- package/index.es328.js +134 -0
- package/index.es329.js +17 -0
- package/index.es33.js +57 -0
- package/index.es330.js +9 -0
- package/index.es331.js +13 -0
- package/index.es332.js +6 -0
- package/index.es333.js +11 -0
- package/index.es334.js +8 -0
- package/index.es335.js +6 -0
- package/index.es336.js +6 -0
- package/index.es337.js +48 -0
- package/index.es338.js +12 -0
- package/index.es339.js +4 -0
- package/index.es34.js +74 -0
- package/index.es340.js +253 -0
- package/index.es341.js +10 -0
- package/index.es342.js +5 -0
- package/index.es343.js +4 -0
- package/index.es344.js +4 -0
- package/index.es345.js +176 -0
- package/index.es346.js +4 -0
- package/index.es347.js +4 -0
- package/index.es348.js +10 -0
- package/index.es349.js +9 -0
- package/index.es35.js +1213 -0
- package/index.es350.js +22 -0
- package/index.es351.js +53 -0
- package/index.es352.js +251 -0
- package/index.es353.js +45 -0
- package/index.es354.js +18 -0
- package/index.es355.js +12 -0
- package/index.es356.js +50 -0
- package/index.es357.js +28 -0
- package/index.es358.js +131 -0
- package/index.es359.js +114 -0
- package/index.es36.js +47 -0
- package/index.es360.js +4 -0
- package/index.es361.js +4 -0
- package/index.es362.js +75 -0
- package/index.es363.js +11 -0
- package/index.es364.js +6 -0
- package/index.es365.js +9 -0
- package/index.es37.js +37 -0
- package/index.es38.js +10 -0
- package/index.es39.js +247 -0
- package/index.es4.js +112 -0
- package/index.es40.js +20 -0
- package/index.es41.js +118 -0
- package/index.es42.js +82 -0
- package/index.es43.js +25 -0
- package/index.es44.js +39 -0
- package/index.es45.js +27 -0
- package/index.es46.js +30 -0
- package/index.es47.js +79 -0
- package/index.es48.js +92 -0
- package/index.es49.js +20 -0
- package/index.es5.js +9 -0
- package/index.es50.js +145 -0
- package/index.es51.js +429 -0
- package/index.es52.js +8 -0
- package/index.es53.js +14 -0
- package/index.es54.js +30 -0
- package/index.es55.js +52 -0
- package/index.es56.js +56 -0
- package/index.es57.js +64 -0
- package/index.es58.js +86 -0
- package/index.es59.js +26 -0
- package/index.es6.js +9 -0
- package/index.es60.js +39 -0
- package/index.es61.js +34 -0
- package/index.es62.js +23 -0
- package/index.es63.js +95 -0
- package/index.es64.js +24 -0
- package/index.es65.js +10 -0
- package/index.es66.js +72 -0
- package/index.es67.js +9 -0
- package/index.es68.js +6 -0
- package/index.es69.js +71 -0
- package/index.es7.js +141 -0
- package/index.es70.js +34 -0
- package/index.es71.js +50 -0
- package/index.es72.js +10 -0
- package/index.es73.js +18 -0
- package/index.es74.js +47 -0
- package/index.es75.js +6 -0
- package/index.es76.js +117 -0
- package/index.es77.js +7 -0
- package/index.es78.js +9 -0
- package/index.es79.js +30 -0
- package/index.es8.js +59 -0
- package/index.es80.js +13 -0
- package/index.es81.js +76 -0
- package/index.es82.js +76 -0
- package/index.es83.js +37 -0
- package/index.es84.js +13 -0
- package/index.es85.js +90 -0
- package/index.es86.js +23 -0
- package/index.es87.js +26 -0
- package/index.es88.js +1711 -0
- package/index.es89.js +37 -0
- package/index.es9.js +198 -0
- package/index.es90.js +2598 -0
- package/index.es91.js +324 -0
- package/index.es92.js +13 -0
- package/index.es93.js +13 -0
- package/index.es94.js +13 -0
- package/index.es95.js +10 -0
- package/index.es96.js +40 -0
- package/index.es97.js +19 -0
- package/index.es98.js +13 -0
- package/index.es99.js +13 -0
- package/package.json +143 -0
- package/style.css +1 -0
- package/tailwind.config.cjs +385 -0
- package/tailwind.config.js +384 -0
- package/tsconfig.json +34 -0
package/index.cjs42.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),v=require("@radix-ui/react-navigation-menu"),N=require("./index.cjs89.js"),x=require("react"),o=require("./index.cjs69.js"),w=require("./index.cjs118.js");function c(e){const a=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(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return a.default=e,Object.freeze(a)}const n=c(v),s=c(x),l=s.forwardRef(({className:e,children:a,...t},r)=>i.jsxs(n.Root,{ref:r,className:o.cn("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...t,children:[a,i.jsx(d,{})]}));l.displayName=n.Root.displayName;const u=s.forwardRef(({className:e,...a},t)=>i.jsx(n.List,{ref:t,className:o.cn("group flex flex-1 list-none items-center justify-center space-x-1",e),...a}));u.displayName=n.List.displayName;const y=n.Item,m=N.cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),f=s.forwardRef(({className:e,children:a,...t},r)=>i.jsxs(n.Trigger,{ref:r,className:o.cn(m(),"group",e),...t,children:[a," ",i.jsx(w,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));f.displayName=n.Trigger.displayName;const g=s.forwardRef(({className:e,...a},t)=>i.jsx(n.Content,{ref:t,className:o.cn("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ",e),...a}));g.displayName=n.Content.displayName;const b=n.Link,d=s.forwardRef(({className:e,...a},t)=>i.jsx("div",{className:o.cn("absolute left-0 top-full flex justify-center"),children:i.jsx(n.Viewport,{className:o.cn("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:t,...a})}));d.displayName=n.Viewport.displayName;const p=s.forwardRef(({className:e,...a},t)=>i.jsx(n.Indicator,{ref:t,className:o.cn("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...a,children:i.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));p.displayName=n.Indicator.displayName;exports.NavigationMenu=l;exports.NavigationMenuContent=g;exports.NavigationMenuIndicator=p;exports.NavigationMenuItem=y;exports.NavigationMenuLink=b;exports.NavigationMenuList=u;exports.NavigationMenuTrigger=f;exports.NavigationMenuViewport=d;exports.navigationMenuTriggerStyle=m;
|
package/index.cjs43.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),c=require("@radix-ui/react-popover"),p=require("react"),l=require("./index.cjs69.js");function i(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const o=i(c),u=i(p),m=o.Root,f=o.Trigger,v=o.Arrow,P=o.Close,s=u.forwardRef(({className:e,align:r="center",sideOffset:t=4,...a},d)=>n.jsx(o.Portal,{children:n.jsx(o.Content,{ref:d,align:r,sideOffset:t,className:l.cn("z-50 rounded-2 border bg-popover p-4 text-popover-foreground shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...a})}));s.displayName=o.Content.displayName;exports.Popover=m;exports.PopoverArrow=v;exports.PopoverClose=P;exports.PopoverContent=s;exports.PopoverTrigger=f;
|
package/index.cjs44.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),f=require("@radix-ui/react-progress"),m=require("react"),c=require("./index.cjs69.js");function o(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const l in e)if(l!=="default"){const a=Object.getOwnPropertyDescriptor(e,l);Object.defineProperty(t,l,a.get?a:{enumerable:!0,get:()=>e[l]})}}return t.default=e,Object.freeze(t)}const s=o(f),g=o(m),u=g.forwardRef(({className:e,value:t,colors:l="bg-primary",rounded:a,icon:i,...r},d)=>n.jsxs("div",{className:"relative w-full",children:[n.jsx(s.Root,{ref:d,className:c.cn("relative h-space-02 w-full overflow-hidden bg-background-secondary",a&&"rounded-full",e),...r,children:n.jsx(s.Indicator,{className:c.cn("h-full w-full flex-1 transition-all",a&&"rounded-full",l),style:{transform:(r==null?void 0:r.dir)==="rtl"?`translateX(${100-(t||0)}%)`:`translateX(-${100-(t||0)}%)`}})}),!!i&&n.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 duration-200",style:{[(r==null?void 0:r.dir)==="rtl"?"right":"left"]:`calc(${t}% + -12px)`},children:i})]}));u.displayName=s.Root.displayName;exports.Progress=u;
|
package/index.cjs45.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),u=require("@radix-ui/react-radio-group"),f=require("react"),o=require("./index.cjs69.js"),p=require("./index.cjs116.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const i=c(u),d=c(f),n=d.forwardRef(({className:e,...t},r)=>a.jsx(i.Root,{className:o.cn("grid gap-2",e),...t,ref:r}));n.displayName=i.Root.displayName;const l=d.forwardRef(({className:e,...t},r)=>a.jsx("div",{className:"flex size-space-06 items-center justify-center",children:a.jsx(i.Item,{ref:r,className:o.cn(`flex aspect-square h-[20px] w-[20ps] rounded-full border-2 border-primary ring-offset-background data-[state=checked]:text-primary
|
|
2
|
+
hover:border-primary-dark hover:data-[state=checked]:text-primary-dark focus:outline-none focus-visible:ring-2
|
|
3
|
+
focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed
|
|
4
|
+
disabled:border-disabled disabled:data-[state=checked]:text-disabled`,e),...t,children:a.jsx(i.Indicator,{className:"flex h-full w-full items-center justify-center rounded-full",children:a.jsx(p,{className:"h-[10px] w-[10px]"})})})}));l.displayName=i.Item.displayName;exports.RadioGroup=n;exports.RadioGroupItem=l;
|
package/index.cjs46.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),d=require("@radix-ui/react-scroll-area"),f=require("react"),c=require("./index.cjs69.js");function n(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const l in r)if(l!=="default"){const o=Object.getOwnPropertyDescriptor(r,l);Object.defineProperty(e,l,o.get?o:{enumerable:!0,get:()=>r[l]})}}return e.default=r,Object.freeze(e)}const t=n(d),i=n(f),u=i.forwardRef(({className:r,children:e,...l},o)=>a.jsxs(t.Root,{ref:o,className:c.cn("relative overflow-hidden",r),...l,children:[a.jsx(t.Viewport,{className:"h-full w-full rounded-[inherit]",children:e}),a.jsx(s,{}),a.jsx(t.Corner,{})]}));u.displayName=t.Root.displayName;const s=i.forwardRef(({className:r,orientation:e="vertical",...l},o)=>a.jsx(t.ScrollAreaScrollbar,{ref:o,orientation:e,className:c.cn("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",r),...l,children:a.jsx(t.ScrollAreaThumb,{className:c.cn("relative rounded-full bg-border",e==="vertical"&&"flex-1")})}));s.displayName=t.ScrollAreaScrollbar.displayName;exports.ScrollArea=u;exports.ScrollBar=s;
|
package/index.cjs47.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("react"),p=require("./index.cjs69.js"),I=require("./index.cjs23.js"),S=require("./index.cjs36.js"),f=require("./index.cjs113.js"),v=require("./index.cjs41.js"),w=require("./index.cjs92.js"),h=c.forwardRef(({placeholder:x="Search...",value:o="",type:t,validationMessage:u,onSearch:n,disabled:m=!1,debounceTime:i=600,className:b="",...j},y)=>{const[r,a]=c.useState(o),l=c.useRef();c.useEffect(()=>{a(o)},[o]),c.useEffect(()=>{l.current=p.debounce(s=>n(s),i)},[n,i]);const g=s=>{s.key==="Enter"&&n(r.trim())},q=s=>{const d=s.target.value;a(d),t==="onType"&&l.current&&l.current(d)},N=()=>{a(""),n("")},k=()=>{t==="onButton"&&n(r)};return e.jsxs("div",{className:"space-y-space-01",children:[e.jsx(S.Input,{rounded:"full",type:"text",variant:"outline",placeholder:x,value:r,disabled:m,...j,onKeyDown:g,onChange:q,className:p.cn("w-full pe-space-01 transition-all duration-200 focus-within:border-success hover:border-success",b),"aria-invalid":!!u,"data-testid":"search-input",startAdornment:t==="onType"&&e.jsx(f,{className:"text-foreground-tertiary"}),endAdornment:e.jsxs(v.Stack,{gap:1,alignItems:"center",children:[r&&e.jsx("button",{type:"button",className:"rounded-full bg-background !p-space-01 text-foreground-tertiary",onClick:N,children:e.jsx(w,{})}),r&&t==="onButton"&&e.jsx("span",{className:"mx-space-01 block h-space-05 border"}),t==="onButton"&&e.jsx(I.Button,{variant:"outline",colors:"success",rounded:"full",size:"icon-sm",type:"button",className:"h-auto rounded-full border !p-space-01",onClick:k,children:e.jsx(f,{})})]}),ref:y}),u&&e.jsx("p",{className:"text-caption-01 text-error",children:u})]})});h.displayName="SearchInput";exports.SearchInput=h;
|
package/index.cjs48.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),S=require("react"),b=require("@radix-ui/react-select"),c=require("./index.cjs69.js"),g=require("./index.cjs84.js"),h=require("./index.cjs119.js"),j=require("./index.cjs118.js"),w=require("./index.cjs120.js");function i(a){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(s,t,o.get?o:{enumerable:!0,get:()=>a[t]})}}return s.default=a,Object.freeze(s)}const l=i(S),e=i(b),N=e.Root,v=e.Group,_=e.Value,p=l.forwardRef(({className:a,children:s,...t},o)=>r.jsxs(e.Trigger,{ref:o,className:c.cn("flex h-space-07 w-full items-center justify-between gap-space-01 whitespace-nowrap rounded-2 border border-input bg-transparent py-space-01 pe-space-02 ps-space-03 text-body-01 placeholder:text-foreground-secondary data-[placeholder]:text-foreground-secondary hover:border-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...t,children:[s,r.jsx(e.Icon,{asChild:!0,children:r.jsx(g,{className:"!size-[20px] shrink-0 text-foreground"})})]}));p.displayName=e.Trigger.displayName;const n=l.forwardRef(({className:a,...s},t)=>r.jsx(e.ScrollUpButton,{ref:t,className:c.cn("flex cursor-default items-center justify-center py-1",a),...s,children:r.jsx(h,{})}));n.displayName=e.ScrollUpButton.displayName;const d=l.forwardRef(({className:a,...s},t)=>r.jsx(e.ScrollDownButton,{ref:t,className:c.cn("flex cursor-default items-center justify-center py-1",a),...s,children:r.jsx(j,{})}));d.displayName=e.ScrollDownButton.displayName;const u=l.forwardRef(({className:a,children:s,position:t="popper",...o},y)=>r.jsx(e.Portal,{children:r.jsxs(e.Content,{ref:y,className:c.cn("relative z-50 max-h-96 overflow-hidden rounded-2 border bg-card p-space-02 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:t,...o,children:[r.jsx(n,{}),r.jsx(e.Viewport,{className:c.cn("p-1",t==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[calc(var(--radix-select-trigger-width)_-_16px)]"),children:s}),r.jsx(d,{})]})}));u.displayName=e.Content.displayName;const m=l.forwardRef(({className:a,...s},t)=>r.jsx(e.Label,{ref:t,className:c.cn("py-1.5 pl-8 pr-2 text-xs font-bold ",a),...s}));m.displayName=e.Label.displayName;const f=l.forwardRef(({className:a,children:s,...t},o)=>r.jsxs(e.Item,{ref:o,className:c.cn("relative flex w-full cursor-default select-none items-center rounded-1 py-space-02 pe-space-02 ps-space-05 text-sm leading-[2.2rem] outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 hover:bg-card-hover focus:bg-accent focus:text-accent-foreground",a),...t,children:[r.jsx("span",{className:"absolute start-space-01 flex h-space-04 w-space-04 items-baseline justify-center",children:r.jsx(e.ItemIndicator,{children:r.jsx(w,{className:"h-space-04 w-space-04"})})}),r.jsx(e.ItemText,{children:s})]}));f.displayName=e.Item.displayName;const x=l.forwardRef(({className:a,...s},t)=>r.jsx(e.Separator,{ref:t,className:c.cn("-mx-1 my-1 h-px bg-muted",a),...s}));x.displayName=e.Separator.displayName;exports.Select=N;exports.SelectContent=u;exports.SelectGroup=v;exports.SelectItem=f;exports.SelectLabel=m;exports.SelectScrollDownButton=d;exports.SelectScrollUpButton=n;exports.SelectSeparator=x;exports.SelectTrigger=p;exports.SelectValue=_;
|
package/index.cjs49.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),l=require("@radix-ui/react-separator"),u=require("react"),p=require("./index.cjs69.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const n=a(l),f=a(u),c=f.forwardRef(({className:e,orientation:t="horizontal",decorative:r=!0,...o},i)=>s.jsx(n.Root,{ref:i,decorative:r,orientation:t,className:p.cn("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));c.displayName=n.Root.displayName;exports.Separator=c;
|
package/index.cjs5.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const i=require("react/jsx-runtime"),a=require("@radix-ui/react-slot"),u=require("react"),e=u.forwardRef(({as:t,children:n,asChild:r,...o},s)=>{const c=r?a.Slot:t||"h1";return i.jsx(c,{ref:s,...o,children:n})});e.displayName="Heading";const d=e;module.exports=d;
|
package/index.cjs50.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),q=require("@radix-ui/react-dialog"),O=require("./index.cjs89.js"),n=require("react"),T=require("./index.cjs86.js"),D=require("./index.cjs87.js"),F=require("./index.cjs121.js"),l=require("./index.cjs69.js"),z=require("./index.cjs70.js"),P=require("./index.cjs23.js"),R=require("./index.cjs122.js"),k=require("./index.cjs123.js"),_=require("./index.cjs92.js");function I(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const r=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,r.get?r:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const o=I(q),d=F.create(t=>({isCenter:!1,isFooterUsed:!1,setIsCenter:e=>t(s=>({isCenter:e??!s.isCenter})),setIsFooterUsed:e=>t(()=>({isFooterUsed:e}))})),U=o.Root,B=o.Trigger,h=o.Close,b=o.Portal,m=n.forwardRef(({className:t,...e},s)=>a.jsx(o.Overlay,{className:l.cn("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:s}));m.displayName=o.Overlay.displayName;const A=O.cva("flex flex-col data-[side=bottom]:max-md:h-[93%] sm:max-w-[60rem] md:rounded-tl-none md:rounded-tr-none fixed z-50 bg-background overflow-y-auto p-space-00 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{center:"top-space-03 md:!rounded-4 inset-1/2 w-3/4 h-[calc(100%_-_24px)] ltr:-translate-x-1/2 rtl:translate-x-1/2",top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 h-full border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r ltr:data-[state=closed]:slide-out-to-right data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left ltr:data-[state=open]:slide-in-from-right ",right:"inset-y-0 right-0 h-full w-3/4 border-l ltr:data-[state=closed]:slide-out-to-left data-[state=closed]:slide-out-to-right ltr:data-[state=open]:slide-in-from-left data-[state=open]:slide-in-from-right "}},defaultVariants:{side:"right"}}),x=n.forwardRef(({className:t,side:e,ignoreInteractOutside:s=!1,hideOverlay:r=!1,children:c,...i},v)=>{const w=z(u=>u.isActive),f=D.useMediaQuery("(min-width: 600px)"),{isCenter:p,setIsCenter:C}=d();return a.jsxs(b,{children:[a.jsx(m,{className:T.clsx({"opacity-0":r})}),a.jsx(o.Content,{"aria-describedby":void 0,onInteractOutside:u=>s&&u.preventDefault(),onCloseAutoFocus:()=>C(!1),ref:v,className:l.cn(A({side:e||(f?p?"center":"left":"bottom")}),{grayscale:w},t),"data-side":e||(f?p?"center":"left":"bottom"),...i,children:c})]})});x.displayName=o.Content.displayName;const y=({className:t,title:e,children:s,...r})=>{const{setIsCenter:c,isCenter:i}=d();return a.jsxs("div",{className:l.cn("flex flex-row items-center gap-space-02 px-space-05 py-space-04",t),...r,children:[s,a.jsx("h1",{className:"text-body-01 font-semibold",children:e}),a.jsxs("div",{className:"ms-auto ",children:[a.jsxs(P.Button,{variant:"ghost",size:"icon-sm",onClick:()=>c(),className:"hidden sm:inline-flex",children:[!i&&a.jsx(R,{size:20,className:"-scale-100"}),i&&a.jsx(k,{size:20})]}),a.jsx(h,{className:"p-space-01","data-testid":"sheetClose",children:a.jsx(_,{className:"size-[20px]"})})]})]})};y.displayName="SheetHeader";const g=({className:t,...e})=>{const{setIsFooterUsed:s}=d();return n.useEffect(()=>(s(!0),()=>s(!1)),[s]),a.jsx("div",{className:l.cn("absolute bottom-0 left-0 z-20 mt-auto flex w-full flex-col-reverse bg-background p-space-04 sm:flex-row sm:justify-end sm:space-x-2 sm:p-space-05",t),...e})};g.displayName="SheetFooter";const S=n.forwardRef(({className:t,...e},s)=>a.jsx(o.Title,{ref:s,className:l.cn("text-body-01 font-semibold",t),...e}));S.displayName=o.Title.displayName;const N=n.forwardRef(({className:t,...e},s)=>a.jsx(o.Description,{ref:s,className:l.cn("text-sm text-muted-foreground",t),...e}));N.displayName=o.Description.displayName;const j=n.forwardRef(({className:t,...e},s)=>{const{isFooterUsed:r}=d();return a.jsx("div",{ref:s,className:l.cn("scrollbar-thumb-rounded-full scrollbar-track-rounded-full scrollbar-w-2.5 scrollbar-h-2.5 scrollbar scrollbar-track-transparent scrollbar-thumb-border",`${r?"mb-space-11":""} h-full overflow-auto rounded-4 bg-card p-space-05 text-foreground`,t),...e})});j.displayName="SheetBody";exports.Sheet=U;exports.SheetBody=j;exports.SheetClose=h;exports.SheetContent=x;exports.SheetDescription=N;exports.SheetFooter=g;exports.SheetHeader=y;exports.SheetOverlay=m;exports.SheetPortal=b;exports.SheetTitle=S;exports.SheetTrigger=B;
|
package/index.cjs51.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),x=require("@radix-ui/react-slot"),Z=require("./index.cjs89.js"),$=require("react"),ee=require("./index.cjs124.js"),s=require("./index.cjs69.js"),ae=require("./index.cjs23.js"),te=require("./index.cjs36.js"),re=require("./index.cjs49.js"),j=require("./index.cjs50.js"),M=require("./index.cjs52.js"),y=require("./index.cjs62.js"),ie=require("./index.cjs125.js");function ne(a){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>a[t]})}}return e.default=a,Object.freeze(e)}const i=ne($),se="sidebar:state",oe=60*60*24*7,de="88px",le="320px",ce="3rem",ue="b",_=i.createContext(null);function h(){const a=i.useContext(_);if(!a)throw new Error("useSidebar must be used within a SidebarProvider.");return a}const R=i.forwardRef(({defaultOpen:a=!0,open:e,onOpenChange:t,className:n,style:o,children:d,...u},g)=>{const c=ee.useIsMobile(),[f,b]=i.useState(!1),[v,J]=i.useState(a),m=e??v,S=i.useCallback(l=>{const p=typeof l=="function"?l(m):l;t?t(p):J(p),document.cookie=`${se}=${p}; path=/; max-age=${oe}`},[t,m]),w=i.useCallback(()=>c?b(l=>!l):S(l=>!l),[c,S,b]);i.useEffect(()=>{const l=p=>{p.key===ue&&(p.metaKey||p.ctrlKey)&&(p.preventDefault(),w())};return window.addEventListener("keydown",l),()=>window.removeEventListener("keydown",l)},[w]);const N=m?"expanded":"collapsed",Q=i.useMemo(()=>({state:N,open:m,setOpen:S,isMobile:c,openMobile:f,setOpenMobile:b,toggleSidebar:w}),[N,m,S,c,f,b,w]);return r.jsx(_.Provider,{value:Q,children:r.jsx(y.TooltipProvider,{delayDuration:0,children:r.jsx("div",{style:{"--sidebar-width":de,"--sidebar-width-icon":ce,...o},className:s.cn("group/sidebar-wrapper has-[[data-variant=inset]]:bg-sidebar flex min-h-svh w-full",n),ref:g,...u,children:d})})})});R.displayName="SidebarProvider";const I=i.forwardRef(({side:a="left",variant:e="sidebar",collapsible:t="offcanvas",className:n,children:o,...d},u)=>{const{isMobile:g,state:c,openMobile:f,setOpenMobile:b}=h();return t==="none"?r.jsx("div",{className:s.cn("bg-sidebar flex h-full w-[--sidebar-width] flex-col text-foreground-secondary",n),ref:u,...d,children:o}):g?r.jsx(j.Sheet,{open:f,onOpenChange:b,...d,children:r.jsx(j.SheetContent,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-card p-0 text-foreground-secondary [&>button]:hidden",style:{"--sidebar-width":le},side:a,children:r.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):r.jsxs("div",{ref:u,className:"group peer hidden text-foreground-secondary md:block","data-state":c,"data-collapsible":c==="collapsed"?t:"","data-variant":e,"data-side":a,children:[r.jsx("div",{className:s.cn("relative h-svh w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),r.jsx("div",{className:s.cn("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] pt-[72px] transition-[left,right,width] duration-200 ease-linear md:flex",a==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]",n),...d,children:r.jsx("div",{"data-sidebar":"sidebar",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow",children:o})})]})});I.displayName="Sidebar";const k=i.forwardRef(({className:a,onClick:e,...t},n)=>{const{toggleSidebar:o}=h();return r.jsxs(ae.Button,{ref:n,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:s.cn("h-7 w-7",a),onClick:d=>{e==null||e(d),o()},...t,children:[r.jsx(ie,{}),r.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});k.displayName="SidebarTrigger";const C=i.forwardRef(({className:a,...e},t)=>{const{toggleSidebar:n}=h();return r.jsx("button",{ref:t,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:n,title:"Toggle Sidebar",className:s.cn("hover:after:bg-sidebar-border absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...e})});C.displayName="SidebarRail";const z=i.forwardRef(({className:a,...e},t)=>r.jsx("main",{ref:t,className:s.cn("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-theme(spacing.4))] md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",a),...e}));z.displayName="SidebarInset";const B=i.forwardRef(({className:a,...e},t)=>r.jsx(te.Input,{ref:t,"data-sidebar":"input",className:s.cn("focus-visible:ring-sidebar-ring h-8 w-full bg-background shadow-none focus-visible:ring-2",a),...e}));B.displayName="SidebarInput";const O=i.forwardRef(({className:a,...e},t)=>r.jsx("div",{ref:t,"data-sidebar":"header",className:s.cn("flex flex-col gap-2",a),...e}));O.displayName="SidebarHeader";const T=i.forwardRef(({className:a,...e},t)=>r.jsx("div",{ref:t,"data-sidebar":"footer",className:s.cn("flex flex-col gap-space-02 pb-space-03",a),...e}));T.displayName="SidebarFooter";const A=i.forwardRef(({className:a,...e},t)=>r.jsx(re.Separator,{ref:t,"data-sidebar":"separator",className:s.cn("bg-sidebar-border mx-2 w-auto",a),...e}));A.displayName="SidebarSeparator";const E=i.forwardRef(({className:a,...e},t)=>r.jsx("div",{ref:t,"data-sidebar":"content",className:s.cn("flex min-h-0 flex-1 flex-col gap-2 overflow-auto py-space-03 group-data-[collapsible=icon]:overflow-hidden",a),...e}));E.displayName="SidebarContent";const q=i.forwardRef(({className:a,...e},t)=>r.jsx("div",{ref:t,"data-sidebar":"group",className:s.cn("relative flex w-full min-w-0 flex-col px-space-03 xl:px-space-01",a),...e}));q.displayName="SidebarGroup";const D=i.forwardRef(({className:a,asChild:e=!1,...t},n)=>{const o=e?x.Slot:"div";return r.jsx(o,{ref:n,"data-sidebar":"group-label",className:s.cn("text-foreground-secondary/70 ring-sidebar-ring flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium outline-none transition-[margin,opa] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...t})});D.displayName="SidebarGroupLabel";const G=i.forwardRef(({className:a,asChild:e=!1,...t},n)=>{const o=e?x.Slot:"button";return r.jsx(o,{ref:n,"data-sidebar":"group-action",className:s.cn("ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-foreground-secondary outline-none transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",a),...t})});G.displayName="SidebarGroupAction";const H=i.forwardRef(({className:a,...e},t)=>r.jsx("div",{ref:t,"data-sidebar":"group-content",className:s.cn("w-full text-sm",a),...e}));H.displayName="SidebarGroupContent";const P=i.forwardRef(({className:a,...e},t)=>r.jsx("ul",{ref:t,"data-sidebar":"menu",className:s.cn("flex w-full min-w-0 flex-col gap-space-02",a),...e}));P.displayName="SidebarMenu";const K=i.forwardRef(({className:a,...e},t)=>r.jsx("li",{ref:t,"data-sidebar":"menu-item",className:s.cn("group/menu-item relative flex items-center gap-space-02 text-body-01 xl:flex-col xl:gap-space-01 xl:text-caption-02",a),...e}));K.displayName="SidebarMenuItem";const be=Z.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),L=i.forwardRef(({asChild:a=!1,isActive:e=!1,variant:t="default",size:n="default",tooltip:o,className:d,...u},g)=>{const c=a?x.Slot:"button",{isMobile:f,state:b}=h(),v=r.jsx(c,{ref:g,"data-sidebar":"menu-button","data-size":n,"data-active":e,className:s.cn(be({variant:t,size:n}),d),...u});return o?(typeof o=="string"&&(o={children:o}),r.jsxs(y.Tooltip,{children:[r.jsx(y.TooltipTrigger,{asChild:!0,children:v}),r.jsx(y.TooltipContent,{side:"right",align:"center",hidden:b!=="collapsed"||f,...o})]})):v});L.displayName="SidebarMenuButton";const F=i.forwardRef(({className:a,asChild:e=!1,showOnHover:t=!1,...n},o)=>{const d=e?x.Slot:"button";return r.jsx(d,{ref:o,"data-sidebar":"menu-action",className:s.cn("ring-sidebar-ring peer-hover/menu-button:text-sidebar-accent-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-foreground-secondary outline-none transition-transform focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t&&"peer-data-[active=true]/menu-button:text-sidebar-accent-foreground group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 md:opacity-0",a),...n})});F.displayName="SidebarMenuAction";const V=i.forwardRef(({className:a,...e},t)=>r.jsx("div",{ref:t,"data-sidebar":"menu-badge",className:s.cn("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-foreground-secondary","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",a),...e}));V.displayName="SidebarMenuBadge";const W=i.forwardRef(({className:a,showIcon:e=!1,...t},n)=>{const o=i.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return r.jsxs("div",{ref:n,"data-sidebar":"menu-skeleton",className:s.cn("flex h-8 items-center gap-2 rounded-md px-2",a),...t,children:[e&&r.jsx(M.Skeleton,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),r.jsx(M.Skeleton,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})});W.displayName="SidebarMenuSkeleton";const U=i.forwardRef(({className:a,...e},t)=>r.jsx("ul",{ref:t,"data-sidebar":"menu-sub",className:s.cn("border-sidebar-border mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",a),...e}));U.displayName="SidebarMenuSub";const X=i.forwardRef(({...a},e)=>r.jsx("li",{ref:e,...a}));X.displayName="SidebarMenuSubItem";const Y=i.forwardRef(({asChild:a=!1,size:e="md",isActive:t,className:n,...o},d)=>{const u=a?x.Slot:"a";return r.jsx(u,{ref:d,"data-sidebar":"menu-sub-button","data-size":e,"data-active":t,className:s.cn("ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground active:bg-sidebar-accent active:text-sidebar-accent-foreground [&>svg]:text-sidebar-accent-foreground flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-foreground-secondary outline-none aria-disabled:pointer-events-none aria-disabled:opacity-50 focus-visible:ring-2 disabled:pointer-events-none disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",n),...o})});Y.displayName="SidebarMenuSubButton";exports.Sidebar=I;exports.SidebarContent=E;exports.SidebarFooter=T;exports.SidebarGroup=q;exports.SidebarGroupAction=G;exports.SidebarGroupContent=H;exports.SidebarGroupLabel=D;exports.SidebarHeader=O;exports.SidebarInput=B;exports.SidebarInset=z;exports.SidebarMenu=P;exports.SidebarMenuAction=F;exports.SidebarMenuBadge=V;exports.SidebarMenuButton=L;exports.SidebarMenuItem=K;exports.SidebarMenuSkeleton=W;exports.SidebarMenuSub=U;exports.SidebarMenuSubButton=Y;exports.SidebarMenuSubItem=X;exports.SidebarProvider=R;exports.SidebarRail=C;exports.SidebarSeparator=A;exports.SidebarTrigger=k;exports.useSidebar=h;
|
package/index.cjs52.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),o=require("./index.cjs69.js");function r({className:e,...t}){return n.jsx("div",{className:o.cn("bg-skeleton animate-pulse rounded-md",e),...t})}exports.Skeleton=r;
|
package/index.cjs53.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),a=require("@radix-ui/react-slider"),c=require("react"),u=require("./index.cjs69.js");function s(e){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(i,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return i.default=e,Object.freeze(i)}const o=s(a),d=s(c),l=d.forwardRef(({className:e,...i},r)=>t.jsxs(o.Root,{ref:r,className:u.cn("relative flex w-full touch-none select-none items-center",e),...i,children:[t.jsx(o.Track,{className:"relative h-space-02 w-full grow overflow-hidden rounded-3 bg-background-secondary",children:t.jsx(o.Range,{className:"absolute h-full bg-primary"})}),t.jsx(o.Thumb,{className:"block size-[20px] rounded-full border-2 border-primary-foreground bg-primary ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));l.displayName=o.Root.displayName;exports.Slider=l;
|
package/index.cjs54.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),d=require("@radix-ui/react-switch"),l=require("react"),c=require("./index.cjs69.js");function s(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const r in t)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:()=>t[r]})}}return e.default=t,Object.freeze(e)}const a=s(d),u=s(l),o=u.forwardRef(({className:t,...e},r)=>n.jsx(a.Root,{className:c.cn("peer inline-flex h-space-05 w-16 shrink-0 cursor-pointer items-center rounded-full border border-border transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-background-secondary hover:border-primary hover:data-[state=checked]:bg-primary-dark hover:data-[state=unchecked]:bg-primary-container focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:border-border disabled:!bg-disabled ",t),...e,ref:r,children:n.jsx(a.Thumb,{className:c.cn("pointer-events-none flex h-8 w-8 items-center justify-center rounded-full bg-white text-xs shadow-[0px_0px_1px_0px_rgba(34,35,35,0.20)] ring-0 transition-transform data-[state=checked]:-translate-x-7 data-[state=unchecked]:translate-x-0 data-[state=checked]:text-primary ltr:data-[state=checked]:translate-x-7"),children:(e==null?void 0:e.checked)&&"✓"})}));o.displayName=a.Root.displayName;exports.Switch=o;
|
package/index.cjs55.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),u=require("react"),r=require("./index.cjs69.js");function y(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const l=y(u),c=l.forwardRef(({className:e,...t},a)=>o.jsx("div",{className:"relative w-full overflow-auto",children:o.jsx("table",{ref:a,className:r.cn("w-full caption-bottom text-body-01",e),...t})}));c.displayName="Table";const n=l.forwardRef(({className:e,...t},a)=>o.jsx("thead",{ref:a,className:r.cn("",e),...t}));n.displayName="TableHeader";const d=l.forwardRef(({className:e,...t},a)=>o.jsx("tbody",{ref:a,className:r.cn("[&_tr:last-child]:border-0",e),...t}));d.displayName="TableBody";const b=l.forwardRef(({className:e,...t},a)=>o.jsx("tfoot",{ref:a,className:r.cn("bg-primary text-primary-foreground",e),...t}));b.displayName="TableFooter";const i=l.forwardRef(({className:e,...t},a)=>o.jsx("tr",{ref:a,className:r.cn("transition-colors data-[state=selected]:bg-background-brand hover:bg-card-hover",e),...t}));i.displayName="TableRow";const f=l.forwardRef(({className:e,...t},a)=>o.jsx("th",{ref:a,className:r.cn("bg-background px-space-03 py-space-04 text-center align-middle text-body-01 font-normal text-foreground-secondary [&:has([role=checkbox])]:pr-0",e),...t}));f.displayName="TableHead";const p=l.forwardRef(({isLast:e,className:t,...a},s)=>o.jsx("td",{ref:s,className:r.cn("border-b border-border p-space-03 py-space-04 text-center align-middle text-body-01 font-normal text-foreground [&:has([role=checkbox])]:pr-0",t,e&&"border-b-transparent"),...a}));p.displayName="TableCell";const m=l.forwardRef(({className:e,...t},a)=>o.jsx("caption",{ref:a,className:r.cn("mt-4 text-body-01 text-muted-foreground",e),...t}));m.displayName="TableCaption";exports.Table=c;exports.TableBody=d;exports.TableCaption=m;exports.TableCell=p;exports.TableFooter=b;exports.TableHead=f;exports.TableHeader=n;exports.TableRow=i;
|
package/index.cjs56.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),p=require("@radix-ui/react-tabs"),g=require("./index.cjs89.js"),m=require("react"),o=require("./index.cjs69.js");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const i=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,i.get?i:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const r=c(p),s=c(m),d=g.cva(`inline-flex items-center justify-center whitespace-nowrap text-body-02
|
|
2
|
+
text-foreground-secondary ring-offset-background transition-all hover:data-[state=inactive]:text-primary-dark focus-visible:ring-2 focus-visible:ring-ring
|
|
3
|
+
focus-visible:ring-offset-2 disabled:pointer-events-none disabled:text-disabled
|
|
4
|
+
data-[state=active]:font-semibold`,{variants:{container:{filled:"inline-flex items-center justify-center gap-space-01 rounded-full border border-input bg-muted p-space-01",underline:"",transparent:"inline-flex items-center justify-center gap-space-01 rounded-full"},variant:{filled:"hover:bg-card-hover rounded-full py-space-01 px-space-04 focus-visible:outline-none data-[state=active]:bg-primary data-[state=active]:text-primary-foreground data-[state=active]:shadow-sm hover:data-[state=active]:bg-primary-dark data-[state=active]:disabled:bg-disabled",underline:"hover:bg-card-hover py-space-02 px-space-04 data-[state=active]:text-primary border-b-2 border-b-transparent data-[state=active]:border-b-primary data-[state=active]:hover:border-b-primary-dark data-[state=active]:hover:text-primary-dark data-[state=active]:disabled:border-b-disabled",transparent:"hover:bg-card-hover hover:data-[state=inactive]:text-card-foreground rounded-full py-space-02 px-space-04 focus-visible:outline-none data-[state=active]:bg-background data-[state=active]:text-card-foreground data-[state=active]:shadow-sm hover:data-[state=active]:bg-background data-[state=active]:disabled:bg-disabled"}}}),y=r.Root,l=s.createContext({variant:"filled"}),b=s.forwardRef(({className:e,variant:t="filled",children:a,...i},v)=>n.jsx(r.List,{ref:v,className:o.cn(d({container:t}),e),...i,children:n.jsx(l.Provider,{value:{variant:t},children:a})}));b.displayName=r.List.displayName;const u=s.forwardRef(({className:e,...t},a)=>{const i=s.useContext(l);return n.jsx(r.Trigger,{ref:a,className:o.cn(d({variant:i.variant}),e),...t})});u.displayName=r.Trigger.displayName;const f=s.forwardRef(({className:e,...t},a)=>n.jsx(r.Content,{ref:a,className:o.cn("mt-2 ring-offset-background data-[state=inactive]:hidden focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));f.displayName=r.Content.displayName;exports.Tabs=y;exports.TabsContent=f;exports.TabsList=b;exports.TabsTrigger=u;exports.tabVariants=d;
|
package/index.cjs57.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),x=require("./index.cjs89.js"),m=require("react"),b=require("./index.cjs69.js"),v=require("./index.cjs14.js");require("./index.cjs34.js");const g=require("./index.cjs35.js");function h(a){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(a){for(const t in a)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(a,t);Object.defineProperty(n,t,s.get?s:{enumerable:!0,get:()=>a[t]})}}return n.default=a,Object.freeze(n)}const j=h(m),w=x.cva("flex relative min-h-[10rem] w-full border ps-space-04 text-base hover:border-foreground disabled:cursor-not-allowed disabled:text-disabled aria-[invalid=true]:border-error",{variants:{variant:{default:"bg-muted",outline:"bg-transparent"},rounded:{default:"rounded-2",full:"rounded-4"},colors:{default:"border-input",success:"border-success",destructive:"border-error"}},defaultVariants:{variant:"default",rounded:"default",colors:"default"}}),o=j.forwardRef(({className:a,variant:n,rounded:t,startAdornment:s,colors:u,endAdornment:c,maxLength:d,...r},f)=>{var i;const l=g.useFormContext();return e.jsxs("div",{className:"flex flex-col gap-space-01",children:[e.jsxs("div",{className:b.cn(w({variant:n,rounded:t,colors:u}),a),"aria-invalid":r["aria-invalid"],children:[s&&e.jsx("div",{className:"mr-space-02 mt-space-04 h-[2rem] w-[2rem] ",children:s}),e.jsx("textarea",{className:"w-full resize-none bg-transparent py-space-03 outline-none placeholder:text-foreground-secondary",ref:f,maxLength:d,...r}),c&&e.jsx("div",{className:"ml-space-02 h-[2rem] w-[2rem]",children:c})]}),e.jsx(v.ShouldRender,{shouldRender:!!(r!=null&&r.name)&&!!l&&!!d,children:e.jsxs("span",{className:"flex flex-row-reverse text-caption-01 text-foreground",children:[e.jsxs("span",{className:"text-foreground-secondary",children:[" ",d]}),"/",e.jsx("span",{children:(i=l==null?void 0:l.watch(String(r==null?void 0:r.name)))==null?void 0:i.length})]})})]})});o.displayName="Textarea";exports.Textarea=o;
|
package/index.cjs58.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),x=require("@radix-ui/react-toast"),g=require("./index.cjs89.js"),v=require("react"),r=require("./index.cjs69.js"),y=require("./index.cjs104.js");function c(e){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(s,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return s.default=e,Object.freeze(s)}const o=c(x),i=c(v),b=o.Provider,d=i.forwardRef(({className:e,...s},t)=>a.jsx(o.Viewport,{ref:t,className:r.cn("fixed bottom-space-05 z-[10000000000000] flex max-h-screen w-full flex-col p-4 sm:bottom-10 sm:left-1/2 sm:top-auto lg:max-w-[500px] ltr:sm:translate-x-1/2 rtl:sm:-translate-x-1/2",e),...s}));d.displayName=o.Viewport.displayName;const w=g.cva("group pointer-events-auto gap-space-03 relative bg-card flex sm:flex-row w-full items-center space-x-4 overflow-hidden rounded-3 border p-space-03 shadow-xsm transition-all data-[swipe=cancel]:translate-y-0 data-[swipe=end]:translate-y-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-y-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-bottom-full data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"border text-foreground",destructive:"destructive group border-error",success:"success group border-success text-foreground"}},defaultVariants:{variant:"default"}}),l=i.forwardRef(({className:e,variant:s,...t},n)=>a.jsx(o.Root,{ref:n,className:r.cn(w({variant:s}),e),...t}));l.displayName=o.Root.displayName;const u=i.forwardRef(({className:e,...s},t)=>a.jsx(o.Action,{ref:t,className:r.cn("group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 group-[.destructive]:focus:ring-destructive disabled:pointer-events-none disabled:opacity-50",e),...s}));u.displayName=o.Action.displayName;const p=i.forwardRef(({className:e,...s},t)=>a.jsx(o.Close,{ref:t,className:r.cn("text-foreground/50 flex h-space-06 w-space-06 items-center justify-center rounded-md transition-opacity group-hover:opacity-100 focus:opacity-100 focus:outline-none focus:ring-2 ",e),"toast-close":"",...s,children:a.jsx(y,{className:"size-[18px] text-foreground"})}));p.displayName=o.Close.displayName;const f=i.forwardRef(({className:e,...s},t)=>a.jsx(o.Title,{ref:t,className:r.cn("text-body-01 font-semibold group-[.destructive]:text-error group-[.success]:text-success",e),...s}));f.displayName=o.Title.displayName;const m=i.forwardRef(({className:e,...s},t)=>a.jsx(o.Description,{ref:t,className:r.cn("text-body-01 opacity-90",e),...s}));m.displayName=o.Description.displayName;exports.Toast=l;exports.ToastAction=u;exports.ToastClose=p;exports.ToastDescription=m;exports.ToastProvider=b;exports.ToastTitle=f;exports.ToastViewport=d;
|
package/index.cjs59.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),e=require("./index.cjs58.js"),n=require("./index.cjs63.js"),u=require("./index.cjs70.js");function d(){const{toasts:a}=n.useToast(),c=u(r=>r.isActive);return s.jsxs(e.ToastProvider,{children:[a.map(function({id:r,title:t,description:o,action:i,...l}){return s.jsxs(e.Toast,{...l,className:`${c?"grayscale":"grayscale-0"}`,children:[s.jsx(e.ToastClose,{}),s.jsx("span",{className:"!ml-0 !mr-0 h-space-07 self-center border border-border opacity-20"}),s.jsxs("div",{className:"flex grow flex-col justify-between sm:flex-row",children:[s.jsxs("div",{className:"grid flex-1 gap-1",children:[t&&s.jsx(e.ToastTitle,{children:t}),o&&s.jsx(e.ToastDescription,{children:o})]}),i]})]},r)}),s.jsx(e.ToastViewport,{})]})}exports.Toaster=d;
|
package/index.cjs6.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const a=require("react/jsx-runtime"),i=require("@radix-ui/react-slot"),u=require("react"),t=u.forwardRef(({as:e,children:r,asChild:s,...o},n)=>{const c=s?i.Slot:e||"span";return a.jsx(c,{ref:n,...o,children:r})});t.displayName="Text";const x=t;module.exports=x;
|
package/index.cjs60.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),c=require("@radix-ui/react-toggle"),u=require("./index.cjs89.js"),g=require("react"),b=require("./index.cjs69.js");function o(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const n=o(c),f=o(g),i=u.cva(`group inline-flex items-center justify-center rounded-full font-medium ring-offset-background transition-colors
|
|
2
|
+
focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2
|
|
3
|
+
disabled:bg-transparent disabled:text-disabled disabled:border-disabled disabled:pointer-events-none disabld:data-[state=on]:bg-disabled
|
|
4
|
+
`,{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent "},size:{default:"px-space-04 py-space-02 h-[4rem] text-body-02",sm:"px-space-03 py-[6px] h-[3.2rem] text-body-01",icon:"p-space-03",fit:""},colors:{default:"hover:bg-card-hover data-[state=on]:bg-primary data-[state=on]:text-primary-foreground hover:data-[state=on]:bg-primary-dark",gray:"hover:bg-card-hover hover:text-card-foreground data-[state=on]:bg-inverted data-[state=on]:text-inverted-foreground hover:data-[state=on]:bg-foreground-secondary"}},defaultVariants:{variant:"default",size:"default",colors:"default"}}),s=f.forwardRef(({className:e,variant:r,size:t,...a},d)=>l.jsx(n.Root,{ref:d,className:b.cn(i({variant:r,size:t,className:e})),...a}));s.displayName=n.Root.displayName;exports.Toggle=s;exports.toggleVariants=i;
|
package/index.cjs61.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react/jsx-runtime"),j=require("@radix-ui/react-toggle-group"),y=require("react"),v=require("./index.cjs60.js"),u=require("./index.cjs69.js");function g(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 n=g(j),a=g(y),m=a.createContext({size:"default",variant:"default"}),p=a.forwardRef(({className:e,variant:o,size:t,children:r,...s},c)=>l.jsx(n.Root,{ref:c,className:u.cn("flex items-center justify-center gap-1",e),...s,children:l.jsx(m.Provider,{value:{variant:o,size:t},children:r})}));p.displayName=n.Root.displayName;const f=a.forwardRef(({className:e,children:o,variant:t,size:r,colors:s,...c},d)=>{const i=a.useContext(m);return l.jsx(n.Item,{ref:d,className:u.cn(v.toggleVariants({variant:i.variant||t,size:i.size||r,colors:i.colors||s}),e),...c,children:o})});f.displayName=n.Item.displayName;exports.ToggleGroup=p;exports.ToggleGroupItem=f;
|
package/index.cjs62.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),s=require("react"),l=require("@radix-ui/react-tooltip"),c=require("./index.cjs69.js");function n(t){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(o,e,r.get?r:{enumerable:!0,get:()=>t[e]})}}return o.default=t,Object.freeze(o)}const p=n(s),i=n(l),m=i.Provider,u=i.Root,f=i.Trigger,a=p.forwardRef(({className:t,sideOffset:o=4,...e},r)=>d.jsx(i.Content,{ref:r,sideOffset:o,className:c.cn("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-body-01 text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...e}));a.displayName=i.Content.displayName;exports.Tooltip=u;exports.TooltipContent=a;exports.TooltipProvider=m;exports.TooltipTrigger=f;
|
package/index.cjs63.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react");function O(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const s in t)if(s!=="default"){const o=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,o.get?o:{enumerable:!0,get:()=>t[s]})}}return e.default=t,Object.freeze(e)}const T=O(p),l=1,A=1e6;let a=0;function m(){return a=(a+1)%Number.MAX_VALUE,a.toString()}const i=new Map,d=t=>{if(i.has(t))return;const e=setTimeout(()=>{i.delete(t),n({type:"REMOVE_TOAST",toastId:t})},A);i.set(t,e)},S=(t,e)=>{switch(e.type){case"ADD_TOAST":return{...t,toasts:[e.toast,...t.toasts].slice(0,l)};case"UPDATE_TOAST":return{...t,toasts:t.toasts.map(s=>s.id===e.toast.id?{...s,...e.toast}:s)};case"DISMISS_TOAST":{const{toastId:s}=e;return s?d(s):t.toasts.forEach(o=>{d(o.id)}),{...t,toasts:t.toasts.map(o=>o.id===s||s===void 0?{...o,open:!1}:o)}}case"REMOVE_TOAST":return e.toastId===void 0?{...t,toasts:[]}:{...t,toasts:t.toasts.filter(s=>s.id!==e.toastId)}}},r=[];let u={toasts:[]};function n(t){u=S(u,t),r.forEach(e=>{e(u)})}function f({...t}){const e=m(),s=c=>n({type:"UPDATE_TOAST",toast:{...c,id:e}}),o=()=>n({type:"DISMISS_TOAST",toastId:e});return n({type:"ADD_TOAST",toast:{...t,id:e,open:!0,onOpenChange:c=>{c||o()}}}),{id:e,dismiss:o,update:s}}function _(){const[t,e]=T.useState(u);return T.useEffect(()=>(r.push(e),()=>{const s=r.indexOf(e);s>-1&&r.splice(s,1)}),[t]),{...t,toast:f,dismiss:s=>n({type:"DISMISS_TOAST",toastId:s})}}exports.reducer=S;exports.toast=f;exports.useToast=_;
|
package/index.cjs64.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@tanstack/react-query");function r(c,t,a){const n=t.getQueryData(c),s=t.getQueryState(c),o=i.useIsFetching({queryKey:c},t);return{data:a?a(n):n,status:(s==null?void 0:s.status)??"idle",isError:!!(s!=null&&s.error),error:s==null?void 0:s.error,isFetching:!!o,isPending:(s==null?void 0:s.status)==="pending",isSuccess:(s==null?void 0:s.status)==="success",refetch:()=>{t.resetQueries({queryKey:c})}}}exports.useCachedData=r;
|
package/index.cjs65.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=require("./index.cjs130.js"),t=a=>(u,e)=>{a.setQueryData(u,r=>typeof e!="function"?e:d.produce(r,c=>{e(c)}))};exports.default=t;exports.useUpdateCachedData=t;
|
package/index.cjs66.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var d=Object.defineProperty;var g=(r,e,t)=>e in r?d(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var s=(r,e,t)=>(g(r,typeof e!="symbol"?e+"":e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./index.cjs126.js"),h=require("./index.cjs79.js"),i=class i{constructor(e){s(this,"userManager");s(this,"config");s(this,"user");s(this,"isLoading");s(this,"isAuthenticated");s(this,"error");s(this,"signout",async(e="")=>{var t;this.isLoading=!1,window.location.href=`${(t=this.config)==null?void 0:t.oauth20LogoutUrl}${e}`});this.config=e,this.userManager=new a.UserManager({...h.createIdentityConfig(e),metadata:h.createMetadataConfig(e.authUrl,(e==null?void 0:e.jwks)??"UP_Definition")}),this.isAuthenticated=!1,this.isLoading=!1,this.user=null,this.error=void 0,a.Log.setLogger(console),a.Log.setLevel(a.Log.DEBUG),this.setupEventListeners()}static getInstance(e){return i.instance||(i.instance=new i(e)),i.instance}setupEventListeners(){this.userManager.events.addUserLoaded(e=>{this.user=e,this.isAuthenticated=!(e!=null&&e.expired),this.error=void 0,this.isLoading=!1}),this.userManager.events.addUserUnloaded(()=>{this.isAuthenticated=!1,this.isLoading=!1,this.user=null,this.error=void 0}),this.userManager.events.addSilentRenewError(e=>{this.error=e,this.user=null,this.isAuthenticated=!1,this.isLoading=!1}),this.userManager.events.addAccessTokenExpired(()=>{this.signin()}),this.userManager.events.addUserSignedIn(()=>{this.isLoading=!1,this.error=void 0})}hasAuthParams(e=window.location){let t=new URLSearchParams(e.search);return!!((t.get("code")||t.get("error"))&&t.get("state")||(t=new URLSearchParams(e.hash.replace("#","?")),(t.get("code")||t.get("error"))&&t.get("state")))}signin(){return this.isLoading=!0,this.error=void 0,this.user=null,this.userManager.signinRedirect()}completeSignIn(){return this.userManager.signinRedirectCallback().then(async e=>(this.isLoading=!1,e?(this.user=e,this.isAuthenticated=!(e!=null&&e.expired)):this.user=await this.userManager.getUser(),e)).catch(e=>{throw this.isLoading=!1,this.error=e,Error(e)})}getUser(){return this.isLoading=!0,this.userManager.getUser().then(e=>(e&&(this.user=e,this.isAuthenticated=!(e!=null&&e.expired),this.isLoading=!1),e)).catch(e=>{throw this.error=e,this.isLoading=!1,e})}async clearSession(){return new Promise((e,t)=>{const o=window.open("https://iam-dev.moe.gov.sa/pkmslogout","_blank","width=800,height=600");o?setTimeout(()=>{o.close(),e()},1e3):t(new Error("Unable to open new popup window"))})}};s(i,"instance",null);let n=i;exports.AuthService=n;
|
package/index.cjs67.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./index.cjs71.js"),e=()=>{const{isAuthenticated:t,user:u,nationalId:s}=n(r=>r);return{isAuthenticated:t,user:u,nationalId:s}};exports.default=e;exports.useAuth=e;
|
package/index.cjs68.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),e=require("./index.cjs75.js"),o=()=>t.useContext(e.AuthContext);exports.useOIDCAuth=o;
|
package/index.cjs69.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs86.js"),o=require("./index.cjs105.js"),c=require("./index.cjs127.js"),i=require("./index.cjs128.js"),l=require("./index.cjs73.js"),d=require("./index.cjs129.js"),u=d.extendTailwindMerge({classGroups:{"font-size":["text-caption-01","text-subtitle-01","text-subtitle-02","text-body-01","text-body-02"]}});function m(...e){return u(s.clsx(e))}const g={enRegex:/^[a-zA-Z- ]+$/,arRegex:/^[\u0621-\u064A- ]+$/,bothArAndEnRegexonlyLetters:/^[a-zA-Z-\u0621-\u064A ]+$/,bothArAndEnRegexonlyLettersAndNumbers:/^[a-zA-Z0-9-\u0621-\u064A ]+$/,enletterAndNumbersRegex:/^[a-zA-Z0-9]*$/,mobileNumber:/^(5)(\d){8}$/,TelPhone:/^(0096611)(\d){7}$/,nationalId:/^1(\d){9}$/,nationalOrResidentId:/^[12](\d){9}$/,nonSaudianNationalId:/^2(\d){9}$/,tags:/<[^>]*>?/gm,specialCharcter:/[!@#$%^&*()_+\-'~<>/\\?|÷×]/,arSpaceRegex:/^[\u0621-\u064A\s]+$/},Y=(e,t)=>(!/^[0-9\u0660-\u0669]+$/.test(e.target.value)&&e.target.value!==""&&(e.target.value=t),e.target.value=e.target.value.replace(/[٠١٢٣٤٥٦٧٨٩]/g,n=>String(n.charCodeAt(0)-1632)).replace(/[۰۱۲۳۴۵۶۷۸۹]/g,n=>String(n.charCodeAt(0)-1776)),e),A=e=>new Intl.DateTimeFormat(e==="rtl"?"ar":"en",{day:"2-digit",month:"short",year:"numeric"}),b=e=>new Intl.DateTimeFormat(e==="ar"?"ar":"en",{timeStyle:"short"}),f=(...e)=>e.map(t=>t.split(" ").map(r=>process.env.NODE_ENV==="production"?`er-${r}`:r).join(" ")).join(" "),h=()=>{const{lang:e}=l.default(t=>t);return(t="",r="")=>String(e).toLocaleLowerCase()==="ar"?t:r||t};function x(e,t){let r=null;return function(...n){const a=()=>{r=null,e.apply(this,n)};r!==null&&clearTimeout(r),r=setTimeout(a,t)}}const D=({date:e,format:t,isHijri:r=!1,hasHijriFormat:n})=>{const a=document.dir==="rtl";switch(o.updateLocale(a?"ar-sa":"en",{}),t){case"short":return o(e).format(a?i.DateFormat.ArShort:i.DateFormat.EnShort);case"mid":return o(e).format("dddd");case"long":return r?c(e,n?"iDD/iMM/iYYYY":void 0).format(a?"iYYYY/iM/iD":"iD/iM/iYYYY"):o(new Date(e??""),"DD-MM-YYYY").format(a?"YYYY/M/D":"D/M/YYYY")}};exports.cn=m;exports.dateFormatter=D;exports.debounce=x;exports.formatter=A;exports.formatterTime=b;exports.handleArabicNumbers=Y;exports.langRegex=g;exports.tw=f;exports.twMerge=u;exports.useSwitchData=h;
|
package/index.cjs7.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),y=require("./index.cjs83.js"),f=require("./index.cjs69.js"),k=require("./index.cjs73.js"),R=require("./index.cjs23.js"),i=require("./index.cjs28.js"),A=require("./index.cjs34.js"),h=require("./index.cjs43.js"),E=require("./index.cjs46.js"),x=require("react"),P=require("./index.cjs80.js"),I=require("./index.cjs3.js"),B=require("./index.cjs14.js"),T=require("./index.cjs84.js"),N=h.Popover,G=i.CommandInput,O=i.CommandEmpty,w=i.CommandItem,q=x.forwardRef(({className:e,children:a,...t},l)=>r.jsx(h.PopoverContent,{className:"min-w-[var(--radix-popover-trigger-width)] p-space-02",ref:l,...t,children:r.jsx(i.Command,{children:a})}));q.displayName="ComboboxContent";const C=x.forwardRef(({className:e,children:a,placeholder:t,isLoading:l,isForm:c=!0,...n},s)=>c?r.jsx(h.PopoverTrigger,{asChild:!0,children:r.jsx(A.FormControl,{children:r.jsxs(R.Button,{rounded:(n==null?void 0:n.rounded)??"default",ref:s,variant:"outline",role:"combobox",disabled:l,className:f.cn("flex w-full items-center justify-between border border-input bg-transparent !px-space-03 placeholder:text-foreground-secondary aria-[invalid=true]:border-error data-[placeholder]:text-foreground-secondary hover:border-foreground hover:bg-transparent hover:text-foreground focus-visible:outline-none active:bg-transparent active:text-foreground disabled:cursor-not-allowed disabled:bg-card disabled:text-disabled",e),...n,children:[t&&!a&&r.jsx("span",{className:"text-body-01 text-foreground-secondary",children:t}),r.jsx("span",{className:"line-clamp-1 flex-1 text-right",children:a}),l?r.jsx(I,{}):r.jsx(T,{className:" h-space-05 w-space-05 shrink-0 text-primary-oncontainer"})]})})}):r.jsx(h.PopoverTrigger,{asChild:!0,children:r.jsxs(R.Button,{ref:s,rounded:(n==null?void 0:n.rounded)??"default",variant:"outline",role:"combobox",disabled:l,className:f.cn("flex w-auto items-center justify-between border border-input bg-transparent !px-space-03 placeholder:text-foreground-secondary aria-[invalid=true]:border-error data-[placeholder]:text-foreground-secondary hover:border-foreground hover:bg-transparent hover:text-foreground focus-visible:outline-none active:bg-transparent active:text-foreground disabled:cursor-not-allowed disabled:bg-card disabled:text-disabled",e),...n,children:[t&&!a&&r.jsx("span",{className:"text-body-01 text-foreground-secondary",children:t}),r.jsx("span",{className:"flex-1 truncate text-ellipsis text-right",children:a}),l?r.jsx(I,{}):r.jsx(T,{className:" h-space-05 w-space-05 shrink-0 text-background-foreground"})]})}));C.displayName="ComboboxTrigger";const j=x.forwardRef(({className:e,children:a,...t},l)=>{const{dir:c}=k.default(),n=x.Children.count(a);return r.jsxs(q,{children:[n>9&&r.jsxs(r.Fragment,{children:[r.jsx(G,{placeholder:t==null?void 0:t.placeholder}),r.jsx(O,{children:P.strings.Shared.NoDataFound})]}),r.jsx(E.ScrollArea,{className:y({"h-auto":n<=7,"h-48 sm:h-64":n>7}),dir:c,children:r.jsx(i.CommandGroup,{ref:l,...t,dir:document.dir,children:a})})]})});j.displayName="ComboboxGroup";const D=({options:e,optionLabel:a,placeholder:t,isLoading:l,optionValue:c,onChange:n,value:s,triggerProps:S,...u})=>{var m;const[g,b]=x.useState(!1),v=(e==null?void 0:e.length)&&((m=e==null?void 0:e.find(o=>String(o[c])===s))==null?void 0:m[a])||"";return r.jsxs(N,{open:g,onOpenChange:o=>b(o),children:[r.jsx(C,{...S,placeholder:t,isLoading:l,disabled:u==null?void 0:u.disabled,...u,children:v.toString()}),r.jsx(j,{placeholder:t,className:"w-space-10",children:!!(e!=null&&e.length)&&(e==null?void 0:e.map(o=>r.jsx(w,{className:y({relative:!0,"after:absolute after:bottom-auto after:right-space-01 after:top-auto after:h-[75%] after:w-[2px] after:rounded-full after:bg-primary":String(o[c])===s}),value:String(o[a]),onSelect:()=>{n(String(o[c])),b(!1)},children:String(o==null?void 0:o[a])},String(o[c]))))})]})},M=({options:e,optionLabel:a,placeholder:t,isLoading:l,optionValue:c,onChange:n,value:s,triggerProps:S,isDate:u,disabledOption:g,...b})=>{var F;const[v,m]=x.useState(!1),o=(e==null?void 0:e.length)&&((F=e==null?void 0:e.find(d=>String(d[c])===s))==null?void 0:F[a])||"";return r.jsxs(N,{open:v,onOpenChange:d=>m(d),children:[r.jsx(C,{isForm:!1,...S,placeholder:t,isLoading:l,disabled:b==null?void 0:b.disabled,...b,children:u?f.dateFormatter({date:String(o)??"",format:"long"}):o.toString()}),r.jsxs(j,{placeholder:t,children:[r.jsx(B.ShouldRender,{shouldRender:!e||(e==null?void 0:e.length)<1,children:r.jsx("span",{className:"flex items-center justify-center",children:P.strings.Shared.NoDataFound})}),!!(e!=null&&e.length)&&(e==null?void 0:e.map(d=>r.jsx(w,{className:y({relative:!0,"after:absolute after:bottom-auto after:right-space-01 after:top-auto after:h-[50%] after:w-[2px] after:rounded-full after:bg-primary":String(d[c])===s}),value:String(d[a]),disabled:g&&g(d),onSelect:()=>{n(String(d[c])),m(!1)},children:u?f.dateFormatter({date:String(d==null?void 0:d[a])??"",format:"long"}):String(d==null?void 0:d[a])},String(d[c]))))]})]})};exports.Combobox=N;exports.ComboboxContent=q;exports.ComboboxControl=D;exports.ComboboxControlNoForm=M;exports.ComboboxEmpty=O;exports.ComboboxGroup=j;exports.ComboboxInput=G;exports.ComboboxItem=w;exports.ComboboxTrigger=C;
|
package/index.cjs70.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./index.cjs121.js"),c=require("./index.cjs72.js"),f=({state:e})=>{var o,i,n,t,l,s;e.isDesktop&&Number((o=e.fontSize)==null?void 0:o.substring(0,e.fontSize.length-2))<12&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} + 1px)`),e.fontSize=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),e.isMax=Number((n=e.fontSize)==null?void 0:n.substring(0,e.fontSize.length-2))>=12,e.isMin=!1),!e.isDesktop&&Number((t=e.fontSize)==null?void 0:t.substring(0,e.fontSize.length-2))<10.2&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} + 0.7px)`),e.fontSize=(l=getComputedStyle(document.documentElement))==null?void 0:l.getPropertyValue("font-size"),e.isMax=Number((s=e.fontSize)==null?void 0:s.substring(0,e.fontSize.length-2))>=10.2,e.isMin=!1)},u=({state:e})=>{var o,i,n,t,l,s;e.isDesktop&&Number((o=e.fontSize)==null?void 0:o.substring(0,e.fontSize.length-2))>8&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} - 1px)`),e.fontSize=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),e.isMin=Number((n=e.fontSize)==null?void 0:n.substring(0,e.fontSize.length-2))<=8,e.isMax=!1),!e.isDesktop&&Number((t=e.fontSize)==null?void 0:t.substring(0,e.fontSize.length-2))>7.4&&(document.documentElement.style.setProperty("font-size",`calc(${e.fontSize} - 0.7px)`),e.fontSize=(l=getComputedStyle(document.documentElement))==null?void 0:l.getPropertyValue("font-size"),e.isMin=Number((s=e.fontSize)==null?void 0:s.substring(0,e.fontSize.length-2))<=7.4,e.isMax=!1)},m=r.create()(c(e=>({isActive:!!localStorage.getItem("Colors"),toggleColors:()=>e(o=>(o.isActive?localStorage.removeItem("Colors"):localStorage.setItem("Colors","true"),{isActive:!o.isActive})),isDesktop:window.innerWidth>=640||!1,fontSize:window.innerWidth>=640?"10px":"8.8px",isMax:!1,isMin:!1,increaseSize:()=>e(o=>{f({state:o})}),decreaseSize:()=>e(o=>{u({state:o})}),defaultSize:()=>e(o=>{var i;o.isDesktop?document.documentElement.style.setProperty("font-size","10px"):document.documentElement.style.setProperty("font-size","8.8px"),o.fontSize=(i=getComputedStyle(document.documentElement))==null?void 0:i.getPropertyValue("font-size"),o.isMax=!1,o.isMin=!1})}),{name:"accessibilityTools"})),z=m;module.exports=z;
|
package/index.cjs71.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./index.cjs121.js"),i=require("./index.cjs72.js"),m=r.create()(i(a=>({isAuthenticated:!!localStorage.getItem("nationalId")&&!!localStorage.getItem("accessToken"),accessToken:localStorage.getItem("accessToken")||void 0,refreshToken:localStorage.getItem("refreshToken")||void 0,nationalId:localStorage.getItem("nationalId"),sessionExpired:!1,user:{firstName:"",secondName:"",thridName:"",lastName:"",Id:"",roles:[],email:"",ssoEmail:"",defaultRole:localStorage.getItem("defaultRole")},login:e=>a(()=>(localStorage.setItem("nationalId",e),{isAuthenticated:!0,nationalId:e,sessionExpired:!1})),setUser:e=>a(()=>(e.defaultRole&&localStorage.setItem("defaultRole",e.defaultRole),localStorage.setItem("displayName",`${e.firstName} ${e.lastName}`),{user:e})),updateUser:e=>a(o=>(e.defaultRole&&localStorage.setItem("defaultRole",e.defaultRole),e.firstName&&e.lastName&&localStorage.setItem("displayName",`${e.firstName} ${e.lastName}`),{user:{...o==null?void 0:o.user,...e}})),logout:()=>a(e=>{var o,t;return localStorage.removeItem("nationalId"),localStorage.removeItem("accessToken"),localStorage.removeItem("refreshToken"),localStorage.removeItem("displayName"),localStorage.removeItem("defaultRole"),localStorage.removeItem("jwt"),localStorage.removeItem("ERAlertHidden"),localStorage.removeItem("registrationStartDate"),localStorage.removeItem("registrationEndDate"),(t=(o=e==null?void 0:e.user)==null?void 0:o.roles)==null||t.map(l=>{localStorage.removeItem(`${l}-evaluationCounter`),localStorage.removeItem(`${l}-evaluationSkipCounter`)}),{isAuthenticated:!1,nationalId:void 0,user:{roles:[]},accessToken:void 0,refreshToken:void 0,sessionExpired:!1}}),setExpireSession:()=>a(()=>({sessionExpired:!0})),setDefaultRole:e=>a(o=>{e&&(o!=null&&o.user)&&(localStorage.setItem("defaultRole",e),o.user.defaultRole=e)})}),{name:"auth"})),s=m;module.exports=s;
|
package/index.cjs72.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s=require("./index.cjs131.js"),t=require("./index.cjs132.js"),r={name:"Store",enabled:!0,serialize:{options:!1}},i=(e,o=r)=>s.devtools(t.immer(e),o),l=i;module.exports=l;
|
package/index.cjs73.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./index.cjs121.js"),o=require("./index.cjs72.js"),a=l.create()(o(n=>({lang:localStorage.getItem("lang")??"ar",dir:localStorage.getItem("lang")==="en"?"ltr":"rtl",changeLang:e=>n(t=>{e!==t.lang&&(localStorage.setItem("lang",e),window.location.pathname==="/login/verification"?window.location.replace("/login"):window.location.reload())})}),{name:"lanugage"})),g=a;exports.default=g;exports.useLanguage=a;
|
package/index.cjs74.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(r,e)=>{switch(e.type){case"INITIALISED":case"USER_LOADED":return{...r,user:e.user,isLoading:!1,isAuthenticated:e.user?!e.user.expired:!1,error:void 0};case"USER_SIGNED_OUT":case"USER_UNLOADED":return{...r,user:void 0,isAuthenticated:!1};case"NAVIGATOR_INIT":return{...r,isLoading:!0,activeNavigator:e.method};case"NAVIGATOR_CLOSE":return{...r,isLoading:!1,activeNavigator:void 0};case"ERROR":return{...r,isLoading:!1,error:e.error};default:return{...r,isLoading:!1,error:new Error(`unknown type ${e.type}`)}}};exports.reducer=s;
|
package/index.cjs75.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext(void 0);t.displayName="AuthContext";exports.AuthContext=t;
|
package/index.cjs76.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react/jsx-runtime"),s=require("react"),A=require("./index.cjs126.js"),C=require("./index.cjs75.js"),b=require("./index.cjs77.js"),I=require("./index.cjs74.js"),d=require("./index.cjs78.js"),M=["clearStaleState","querySessionStatus","revokeTokens","startSilentRenew","stopSilentRenew"],q=["signinPopup","signinSilent","signinRedirect","signinResourceOwnerCredentials","signoutPopup","signoutRedirect","signoutSilent"],g=i=>()=>{throw new Error(`UserManager#${i} was called from an unsupported context. If this is a server-rendered page, defer this call with useEffect() or pass a custom UserManager implementation.`)},h=typeof window>"u"?null:A.UserManager,P=i=>{const{children:m,onSigninCallback:o,skipSigninCallback:p,matchSignoutCallback:u,onSignoutCallback:c,onRemoveUser:R,userManager:E=null,...S}=i,[e]=s.useState(()=>E??(h?new h(S):{settings:S})),[f,n]=s.useReducer(I.reducer,b.initialAuthState),w=s.useMemo(()=>Object.assign({settings:e.settings,events:e.events},Object.fromEntries(M.map(t=>{var r;return[t,((r=e[t])==null?void 0:r.bind(e))??g(t)]})),Object.fromEntries(q.map(t=>[t,e[t]?async r=>{n({type:"NAVIGATOR_INIT",method:t});try{return await e[t](r)}catch(a){return n({type:"ERROR",error:a}),null}finally{n({type:"NAVIGATOR_CLOSE"})}}:g(t)]))),[e]),v=s.useRef(!1);s.useEffect(()=>{!e||v.current||(v.current=!0,(async()=>{let t=null;try{d.hasAuthParams()&&!p&&(t=await e.signinCallback(),o&&await o(t)),t=t||await e.getUser(),n({type:"INITIALISED",user:t})}catch(r){n({type:"ERROR",error:d.signinError(r)})}try{u&&u(e.settings)&&(await e.signoutCallback(),c&&await c())}catch(r){n({type:"ERROR",error:d.signoutError(r)})}})())},[e,p,o,c,u]),s.useEffect(()=>{if(!e)return;const t=l=>{n({type:"USER_LOADED",user:l})};e.events.addUserLoaded(t);const r=()=>{n({type:"USER_UNLOADED"})};e.events.addUserUnloaded(r);const a=()=>{n({type:"USER_SIGNED_OUT"})};e.events.addUserSignedOut(a);const U=l=>{n({type:"ERROR",error:l})};return e.events.addSilentRenewError(U),()=>{e.events.removeUserLoaded(t),e.events.removeUserUnloaded(r),e.events.removeUserSignedOut(a),e.events.removeSilentRenewError(U)}},[e]);const O=s.useCallback(e?()=>e.removeUser().then(R):g("removeUser"),[e,R]);return y.jsx(C.AuthContext.Provider,{value:{...f,...w,removeUser:O},children:m})};exports.AuthProvider=P;
|
package/index.cjs77.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={isLoading:!0,isAuthenticated:!1};exports.initialAuthState=t;
|
package/index.cjs78.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=(e=window.location)=>{let r=new URLSearchParams(e.search);return!!((r.get("code")||r.get("error"))&&r.get("state")||(r=new URLSearchParams(e.hash.replace("#","?")),(r.get("code")||r.get("error"))&&r.get("state")))},t=e=>r=>r instanceof Error?r:new Error(e),a=t("Sign-in failed"),o=t("Sign-out failed");exports.hasAuthParams=n;exports.signinError=a;exports.signoutError=o;
|
package/index.cjs79.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=e=>({authority:e.authUrl,client_id:e.clientId,client_secret:e.clientSecret,redirect_uri:`${e.baseUrl}/login/sso/callback`,login:e.authUrl,automaticSilentRenew:!0,loadUserInfo:!1,silent_redirect_uri:`${e.baseUrl}/login/sso/callback`,post_logout_redirect_uri:`${e.baseUrl}/logout/sso`,audience:e.baseUrl,responseType:"id_token token",grantType:"password",scope:"openid NationalID",webAuthResponseType:"id_token token"}),n=(e,t)=>({issuer:"https://iam-dev.moe.gov.sa",jwks_uri:`${e}/jwks/${t}`,authorization_endpoint:`${e}/authorize`,token_endpoint:`${e}/token`,userinfo_endpoint:`${e}/userinfo`,end_session_endpoint:`${e}/revoke`,check_session_iframe:`${e}/checksession`,revocation_endpoint:`${e}/revoke`,introspection_endpoint:`${e}/introspect`});exports.createIdentityConfig=o;exports.createMetadataConfig=n;
|
package/index.cjs8.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),b=require("./index.cjs89.js"),i=require("react"),n=require("./index.cjs69.js"),h=b.cva("grid border-b border-border-secondary",{variants:{variant:{default:"[&>dt]:text-foreground-secondary [&>dd]:font-medium",list:"[&>dd]:text-foreground-secondary [&>dt]:font-medium"},size:{default:"text-body-01",sm:"text-caption-01"},orientation:{vertical:"grid-cols-1 gap-space-01",horizental:"grid-cols-1 gap-space-02 sm:grid-cols-[min(50%,theme(spacing.80))_auto]"},lastItem:{true:"border-none"},stretch:{true:""},padding:{default:"p-space-04",none:"p-space-00"}},compoundVariants:[{orientation:"horizental",stretch:!0,className:"sm:grid-cols-2 sm:[&>dd]:text-end"}],defaultVariants:{orientation:"horizental",variant:"default",padding:"default",size:"default"}}),d=i.forwardRef(({children:t,className:r,...a},s)=>e.jsx("div",{ref:s,className:n.cn("rounded-2 bg-background",r),...a,children:t}));d.displayName="Description";const o=i.forwardRef(({icon:t,variant:r,title:a,children:s,orientation:c,stretch:l,lastItem:u,size:m,padding:p,className:f,...g},x)=>e.jsxs("dl",{ref:x,className:n.cn(h({variant:r,orientation:c,size:m,stretch:l,lastItem:u,padding:p}),f),...g,children:[e.jsxs("dt",{className:"col-start-1 inline-flex items-center gap-space-01",children:[t&&e.jsx(t,{className:"h-8 w-8 shrink-0"}),a,":"]}),e.jsx("dd",{className:"line-clamp-1",children:s})]}));o.displayName="DescriptionItem";exports.Description=d;exports.DescriptionItem=o;
|
package/index.cjs80.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react-localization"),r=require("./index.cjs81.js"),s=require("./index.cjs82.js"),t=new e({ar:r.ar,en:s.en}),a=n=>t.setLanguage(n);exports.default=e;exports.setLanguage=a;exports.strings=t;
|
package/index.cjs81.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={messages:{exceedlimitedField:"{0} يجب ان لا يتجاوز {1} حرف",required:"{0} اجباري"},Shared:{soon:"قريبًا",NationalId:"الهوية الوطنية",ResidentID:"الإقامة",Welcome:"أهلًا ",Login:"تسجيل الدخول",Logout:"تسجيل الخروج",InformationPanel:"لوحة المعلومات",AccountSettings:"إعدادات الحساب",Chat:"تواصل معنا",TechnicalSupport:"الدعم الفني",FullName:"الاسم الكامل",PersonalInformation:"المعلومات الشخصية",TicketInformation:"معلومات التذكرة",TicketDetails:"تفاصيل التذكرة",Title:"العنوان",Description:"الوصف",Enter:"ادخل",AddSupportingFiles:"أرفق ملفات داعمة",Send:"إرسال",Submit:"إرسال الطلب",Cancel:"إلغاء",Main:"الرئيسية",Select:"اختر",NotRobot:"الرجاء التحقق",Search:"بحث",Number:"الرقم",Date:"التاريخ",hijriCalendar:"التاريخ الهجري",male:"ذكر",female:"أنثى",submit:"ارسال",next:"التالي",previous:"السابق",morePages:"المزيد",Total:"الإجمالي",YearTitle:"السنة",MonthTitle:"الشهر",PaginationDesc:"الصفحة {0} من {1}",LinesPerPage:"عدد السطور بالصفحة",Actions:"الإجراءات",ViewDetails:"عرض التفاصيل",Language:"اللغة",Specify:"حدد",ServerError:"عفوًا، حدث خطأ ما",BackToHome:"العودة للصفحة الرئيسية",NoDataFound:"لا توجد بيانات",showResults:"عرض النتائج",reset:"إعادة التعيين"},Footer:{TermsOfUse:"شروط الاستخدام",PrivacyPolicy:"سياسة الخصوصية",InformationProtection:"حماية البيانات",Colors:"تباين الألوان",VoiceCommands:"الأوامر الصوتية",CopyRights:"جميع الحقوق محفوظة "},DragAndDrop:{SaveCustomization:"حفظ",Delete:"إزالة",Half:"تصغير",Full:"توسيع",Width:"العرض",Show:"اظهار",AddToDashboard:"تخصيص العرض"}};exports.ar=e;
|
package/index.cjs82.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={messages:{exceedlimitedField:"{0} field size is {1} characters",required:"{0} is required"},Shared:{soon:"soon",NationalId:"National ID",ResidentID:"Resident ID",Welcome:"Hi ",Login:"Login",Logout:"Log out",InformationPanel:"Information Panel",AccountSettings:"Account Settings",Chat:"Chat Now",TechnicalSupport:"Technical Support",FullName:"Full Name",PersonalInformation:"Personal Information",TicketInformation:"Ticket Information",TicketDetails:"Ticket Details",Title:"Title",Description:"Description",Enter:"Enter",AddSupportingFiles:"Attachments",Send:"Submit",Submit:"Submit Request",Cancel:"Cancel",Main:"Home",Select:"Select",NotRobot:"Please verify you are not a robot",Search:"Search",Number:"Number",Date:"Date",hijriCalendar:"Hijri Calendar",male:"Male",female:"Female",submit:"Submit",next:"Next",previous:"Previous",morePages:"More pages",Total:"Total",YearTitle:"Year",MonthTitle:"Month",PaginationDesc:"Page {0} of {1}",LinesPerPage:"Lines per page",Actions:"Actions",ViewDetails:"View Details",Language:"Language",Specify:"Specify",ServerError:"Sorry, something went wrong",BackToHome:"Back to Main Page",NoDataFound:"No data found",showResults:"Show results",reset:"Reset"},Footer:{TermsOfUse:"Terms Of Use",PrivacyPolicy:"Privacy Policy ",InformationProtection:" Information Protection ",Colors:"Colors (On/Off)",VoiceCommands:"Voice Commands",CopyRights:"All rights reserved "},DragAndDrop:{SaveCustomization:"Save",Delete:"Remove",Half:"Minimize",Full:"Expand",Width:"Width",Show:"Show",AddToDashboard:"Custom display"}};exports.en=e;
|
package/index.cjs83.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const f=require("./index.cjs135.js"),i=require("./index.cjs136.js");(function(s){(function(){var u={}.hasOwnProperty;function n(){for(var t="",r=0;r<arguments.length;r++){var e=arguments[r];e&&(t=o(t,c(e)))}return t}function c(t){if(typeof t=="string"||typeof t=="number")return t;if(typeof t!="object")return"";if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var r="";for(var e in t)u.call(t,e)&&t[e]&&(r=o(r,e));return r}function o(t,r){return r?t?t+" "+r:t+r:t}s.exports?(n.default=n,s.exports=n):window.classNames=n})()})(i.__module);var p=i.__module.exports;const a=f.getDefaultExportFromCjs(p);module.exports=a;
|
package/index.cjs84.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./index.cjs138.js");const r=e("ExpandMore",[["path",{d:"M16.59 8.29492L12 12.8749L7.41 8.29492L6 9.70492L12 15.7049L18 9.70492L16.59 8.29492Z",key:"1h4imv"}]]);module.exports=r;
|
package/index.cjs85.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),e=require("./index.cjs88.js");function c(t){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const i=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(n,o,i.get?i:{enumerable:!0,get:()=>t[o]})}}return n.default=t,Object.freeze(n)}const r=c(s);function g(t,n){return t?d(t)?r.createElement(t,n):t:null}function d(t){return m(t)||typeof t=="function"||f(t)}function m(t){return typeof t=="function"&&(()=>{const n=Object.getPrototypeOf(t);return n.prototype&&n.prototype.isReactComponent})()}function f(t){return typeof t=="object"&&typeof t.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(t.$$typeof.description)}function p(t){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[o]=r.useState(()=>({current:e.createTable(n)})),[i,l]=r.useState(()=>o.current.initialState);return o.current.setOptions(u=>({...u,...t,state:{...i,...t.state},onStateChange:a=>{l(a),t.onStateChange==null||t.onStateChange(a)}})),o.current}exports.ColumnFaceting=e.ColumnFaceting;exports.ColumnFiltering=e.ColumnFiltering;exports.ColumnGrouping=e.ColumnGrouping;exports.ColumnOrdering=e.ColumnOrdering;exports.ColumnPinning=e.ColumnPinning;exports.ColumnSizing=e.ColumnSizing;exports.ColumnVisibility=e.ColumnVisibility;exports.GlobalFaceting=e.GlobalFaceting;exports.GlobalFiltering=e.GlobalFiltering;exports.Headers=e.Headers;exports.RowExpanding=e.RowExpanding;exports.RowPagination=e.RowPagination;exports.RowPinning=e.RowPinning;exports.RowSelection=e.RowSelection;exports.RowSorting=e.RowSorting;exports._getVisibleLeafColumns=e._getVisibleLeafColumns;exports.aggregationFns=e.aggregationFns;exports.buildHeaderGroups=e.buildHeaderGroups;exports.createCell=e.createCell;exports.createColumn=e.createColumn;exports.createRow=e.createRow;exports.createTable=e.createTable;exports.defaultColumnSizing=e.defaultColumnSizing;exports.expandRows=e.expandRows;exports.filterFns=e.filterFns;exports.flattenBy=e.flattenBy;exports.functionalUpdate=e.functionalUpdate;exports.getCoreRowModel=e.getCoreRowModel;exports.getMemoOptions=e.getMemoOptions;exports.getPaginationRowModel=e.getPaginationRowModel;exports.isFunction=e.isFunction;exports.isNumberArray=e.isNumberArray;exports.isRowSelected=e.isRowSelected;exports.isSubRowSelected=e.isSubRowSelected;exports.makeStateUpdater=e.makeStateUpdater;exports.memo=e.memo;exports.orderColumns=e.orderColumns;exports.passiveEventSupported=e.passiveEventSupported;exports.reSplitAlphaNumeric=e.reSplitAlphaNumeric;exports.selectRowsFn=e.selectRowsFn;exports.shouldAutoRemoveFilter=e.shouldAutoRemoveFilter;exports.sortingFns=e.sortingFns;exports.flexRender=g;exports.useReactTable=p;
|
package/index.cjs86.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function n(r){var o,e,t="";if(typeof r=="string"||typeof r=="number")t+=r;else if(typeof r=="object")if(Array.isArray(r)){var u=r.length;for(o=0;o<u;o++)r[o]&&(e=n(r[o]))&&(t&&(t+=" "),t+=e)}else for(e in r)r[e]&&(t&&(t+=" "),t+=e);return t}function f(){for(var r,o,e=0,t="",u=arguments.length;e<u;e++)(r=arguments[e])&&(o=n(r))&&(t&&(t+=" "),t+=o);return t}exports.clsx=f;exports.default=f;
|
package/index.cjs87.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react");require("./index.cjs137.js");var s=typeof window<"u"?i.useLayoutEffect:i.useEffect,l=typeof window>"u";function f(a,e){const n=typeof e=="boolean"?e:(e==null?void 0:e.defaultValue)??!1,o=typeof e=="boolean"?void 0:(e==null?void 0:e.initializeWithValue)??void 0,r=t=>l?n:window.matchMedia(t).matches,[c,d]=i.useState(()=>o?r(a):n);function u(){d(r(a))}return s(()=>{const t=window.matchMedia(a);return u(),t.addListener?t.addListener(u):t.addEventListener("change",u),()=>{t.removeListener?t.removeListener(u):t.removeEventListener("change",u)}},[a]),c}function h(a){const[e,n]=i.useState(!!a),o=i.useCallback(()=>{n(r=>!r)},[]);return[e,o,n]}exports.useIsomorphicLayoutEffect=s;exports.useMediaQuery=f;exports.useToggle=h;
|
package/index.cjs88.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function V(e,o){return typeof e=="function"?e(o):e}function F(e,o){return t=>{o.setState(n=>({...n,[e]:V(t,n[e])}))}}function G(e){return e instanceof Function}function oe(e){return Array.isArray(e)&&e.every(o=>typeof o=="number")}function ie(e,o){const t=[],n=i=>{i.forEach(r=>{t.push(r);const l=o(r);l!=null&&l.length&&n(l)})};return n(e),t}function m(e,o,t){let n=[],i;return r=>{let l;t.key&&t.debug&&(l=Date.now());const s=e(r);if(!(s.length!==n.length||s.some((c,S)=>n[S]!==c)))return i;n=s;let a;if(t.key&&t.debug&&(a=Date.now()),i=o(...s),t==null||t.onChange==null||t.onChange(i),t.key&&t.debug&&t!=null&&t.debug()){const c=Math.round((Date.now()-l)*100)/100,d=Math.round((Date.now()-a)*100)/100/16,g=(f,p)=>{for(f=String(f);f.length<p;)f=" "+f;return f}}return i}}function C(e,o,t,n){return{debug:()=>{var i;return(i=e==null?void 0:e.debugAll)!=null?i:e[o]},key:process.env.NODE_ENV==="development"&&t,onChange:n}}function re(e,o,t,n){const i=()=>{var l;return(l=r.getValue())!=null?l:e.options.renderFallbackValue},r={id:`${o.id}_${t.id}`,row:o,column:t,getValue:()=>o.getValue(n),renderValue:i,getContext:m(()=>[e,t,o,r],(l,s,u,a)=>({table:l,column:s,row:u,cell:a,getValue:a.getValue,renderValue:a.renderValue}),C(e.options,"debugCells","cell.getContext"))};return e._features.forEach(l=>{l.createCell==null||l.createCell(r,t,o,e)},{}),r}function le(e,o,t,n){var i,r;const s={...e._getDefaultColumnDef(),...o},u=s.accessorKey;let a=(i=(r=s.id)!=null?r:u?typeof String.prototype.replaceAll=="function"?u.replaceAll(".","_"):u.replace(/\./g,"_"):void 0)!=null?i:typeof s.header=="string"?s.header:void 0,c;if(s.accessorFn?c=s.accessorFn:u&&(u.includes(".")?c=d=>{let g=d;for(const p of u.split(".")){var f;g=(f=g)==null?void 0:f[p],process.env.NODE_ENV}return g}:c=d=>d[s.accessorKey]),!a)throw process.env.NODE_ENV!=="production"?new Error(s.accessorFn?"Columns require an id when using an accessorFn":"Columns require an id when using a non-string header"):new Error;let S={id:`${String(a)}`,accessorFn:c,parent:n,depth:t,columnDef:s,columns:[],getFlatColumns:m(()=>[!0],()=>{var d;return[S,...(d=S.columns)==null?void 0:d.flatMap(g=>g.getFlatColumns())]},C(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:m(()=>[e._getOrderColumnsFn()],d=>{var g;if((g=S.columns)!=null&&g.length){let f=S.columns.flatMap(p=>p.getLeafColumns());return d(f)}return[S]},C(e.options,"debugColumns","column.getLeafColumns"))};for(const d of e._features)d.createColumn==null||d.createColumn(S,e);return S}const v="debugHeaders";function ne(e,o,t){var n;let r={id:(n=t.id)!=null?n:o.id,column:o,index:t.index,isPlaceholder:!!t.isPlaceholder,placeholderId:t.placeholderId,depth:t.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const l=[],s=u=>{u.subHeaders&&u.subHeaders.length&&u.subHeaders.map(s),l.push(u)};return s(r),l},getContext:()=>({table:e,header:r,column:o})};return e._features.forEach(l=>{l.createHeader==null||l.createHeader(r,e)}),r}const se={createTable:e=>{e.getHeaderGroups=m(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,t,n,i)=>{var r,l;const s=(r=n==null?void 0:n.map(S=>t.find(d=>d.id===S)).filter(Boolean))!=null?r:[],u=(l=i==null?void 0:i.map(S=>t.find(d=>d.id===S)).filter(Boolean))!=null?l:[],a=t.filter(S=>!(n!=null&&n.includes(S.id))&&!(i!=null&&i.includes(S.id)));return D(o,[...s,...a,...u],e)},C(e.options,v,"getHeaderGroups")),e.getCenterHeaderGroups=m(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,t,n,i)=>(t=t.filter(r=>!(n!=null&&n.includes(r.id))&&!(i!=null&&i.includes(r.id))),D(o,t,e,"center")),C(e.options,v,"getCenterHeaderGroups")),e.getLeftHeaderGroups=m(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(o,t,n)=>{var i;const r=(i=n==null?void 0:n.map(l=>t.find(s=>s.id===l)).filter(Boolean))!=null?i:[];return D(o,r,e,"left")},C(e.options,v,"getLeftHeaderGroups")),e.getRightHeaderGroups=m(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(o,t,n)=>{var i;const r=(i=n==null?void 0:n.map(l=>t.find(s=>s.id===l)).filter(Boolean))!=null?i:[];return D(o,r,e,"right")},C(e.options,v,"getRightHeaderGroups")),e.getFooterGroups=m(()=>[e.getHeaderGroups()],o=>[...o].reverse(),C(e.options,v,"getFooterGroups")),e.getLeftFooterGroups=m(()=>[e.getLeftHeaderGroups()],o=>[...o].reverse(),C(e.options,v,"getLeftFooterGroups")),e.getCenterFooterGroups=m(()=>[e.getCenterHeaderGroups()],o=>[...o].reverse(),C(e.options,v,"getCenterFooterGroups")),e.getRightFooterGroups=m(()=>[e.getRightHeaderGroups()],o=>[...o].reverse(),C(e.options,v,"getRightFooterGroups")),e.getFlatHeaders=m(()=>[e.getHeaderGroups()],o=>o.map(t=>t.headers).flat(),C(e.options,v,"getFlatHeaders")),e.getLeftFlatHeaders=m(()=>[e.getLeftHeaderGroups()],o=>o.map(t=>t.headers).flat(),C(e.options,v,"getLeftFlatHeaders")),e.getCenterFlatHeaders=m(()=>[e.getCenterHeaderGroups()],o=>o.map(t=>t.headers).flat(),C(e.options,v,"getCenterFlatHeaders")),e.getRightFlatHeaders=m(()=>[e.getRightHeaderGroups()],o=>o.map(t=>t.headers).flat(),C(e.options,v,"getRightFlatHeaders")),e.getCenterLeafHeaders=m(()=>[e.getCenterFlatHeaders()],o=>o.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),C(e.options,v,"getCenterLeafHeaders")),e.getLeftLeafHeaders=m(()=>[e.getLeftFlatHeaders()],o=>o.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),C(e.options,v,"getLeftLeafHeaders")),e.getRightLeafHeaders=m(()=>[e.getRightFlatHeaders()],o=>o.filter(t=>{var n;return!((n=t.subHeaders)!=null&&n.length)}),C(e.options,v,"getRightLeafHeaders")),e.getLeafHeaders=m(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(o,t,n)=>{var i,r,l,s,u,a;return[...(i=(r=o[0])==null?void 0:r.headers)!=null?i:[],...(l=(s=t[0])==null?void 0:s.headers)!=null?l:[],...(u=(a=n[0])==null?void 0:a.headers)!=null?u:[]].map(c=>c.getLeafHeaders()).flat()},C(e.options,v,"getLeafHeaders"))}};function D(e,o,t,n){var i,r;let l=0;const s=function(d,g){g===void 0&&(g=1),l=Math.max(l,g),d.filter(f=>f.getIsVisible()).forEach(f=>{var p;(p=f.columns)!=null&&p.length&&s(f.columns,g+1)},0)};s(e);let u=[];const a=(d,g)=>{const f={depth:g,id:[n,`${g}`].filter(Boolean).join("_"),headers:[]},p=[];d.forEach(w=>{const R=[...p].reverse()[0],_=w.column.depth===f.depth;let h,P=!1;if(_&&w.column.parent?h=w.column.parent:(h=w.column,P=!0),R&&(R==null?void 0:R.column)===h)R.subHeaders.push(w);else{const I=ne(t,h,{id:[n,g,h.id,w==null?void 0:w.id].filter(Boolean).join("_"),isPlaceholder:P,placeholderId:P?`${p.filter(q=>q.column===h).length}`:void 0,depth:g,index:p.length});I.subHeaders.push(w),p.push(I)}f.headers.push(w),w.headerGroup=f}),u.push(f),g>0&&a(p,g-1)},c=o.map((d,g)=>ne(t,d,{depth:l,index:g}));a(c,l-1),u.reverse();const S=d=>d.filter(f=>f.column.getIsVisible()).map(f=>{let p=0,w=0,R=[0];f.subHeaders&&f.subHeaders.length?(R=[],S(f.subHeaders).forEach(h=>{let{colSpan:P,rowSpan:I}=h;p+=P,R.push(I)})):p=1;const _=Math.min(...R);return w=w+_,f.colSpan=p,f.rowSpan=w,{colSpan:p,rowSpan:w}});return S((i=(r=u[0])==null?void 0:r.headers)!=null?i:[]),u}const ue=(e,o,t,n,i,r,l)=>{let s={id:o,index:n,original:t,depth:i,parentId:l,_valuesCache:{},_uniqueValuesCache:{},getValue:u=>{if(s._valuesCache.hasOwnProperty(u))return s._valuesCache[u];const a=e.getColumn(u);if(a!=null&&a.accessorFn)return s._valuesCache[u]=a.accessorFn(s.original,n),s._valuesCache[u]},getUniqueValues:u=>{if(s._uniqueValuesCache.hasOwnProperty(u))return s._uniqueValuesCache[u];const a=e.getColumn(u);if(a!=null&&a.accessorFn)return a.columnDef.getUniqueValues?(s._uniqueValuesCache[u]=a.columnDef.getUniqueValues(s.original,n),s._uniqueValuesCache[u]):(s._uniqueValuesCache[u]=[s.getValue(u)],s._uniqueValuesCache[u])},renderValue:u=>{var a;return(a=s.getValue(u))!=null?a:e.options.renderFallbackValue},subRows:r??[],getLeafRows:()=>ie(s.subRows,u=>u.subRows),getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let u=[],a=s;for(;;){const c=a.getParentRow();if(!c)break;u.push(c),a=c}return u.reverse()},getAllCells:m(()=>[e.getAllLeafColumns()],u=>u.map(a=>re(e,s,a,a.id)),C(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:m(()=>[s.getAllCells()],u=>u.reduce((a,c)=>(a[c.column.id]=c,a),{}),C(e.options,"debugRows","getAllCellsByColumnId"))};for(let u=0;u<e._features.length;u++){const a=e._features[u];a==null||a.createRow==null||a.createRow(s,e)}return s},ge={createColumn:(e,o)=>{e._getFacetedRowModel=o.options.getFacetedRowModel&&o.options.getFacetedRowModel(o,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():o.getPreFilteredRowModel(),e._getFacetedUniqueValues=o.options.getFacetedUniqueValues&&o.options.getFacetedUniqueValues(o,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=o.options.getFacetedMinMaxValues&&o.options.getFacetedMinMaxValues(o,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},ae=(e,o,t)=>{var n,i;const r=t==null||(n=t.toString())==null?void 0:n.toLowerCase();return!!(!((i=e.getValue(o))==null||(i=i.toString())==null||(i=i.toLowerCase())==null)&&i.includes(r))};ae.autoRemove=e=>$(e);const de=(e,o,t)=>{var n;return!!(!((n=e.getValue(o))==null||(n=n.toString())==null)&&n.includes(t))};de.autoRemove=e=>$(e);const ce=(e,o,t)=>{var n;return((n=e.getValue(o))==null||(n=n.toString())==null?void 0:n.toLowerCase())===(t==null?void 0:t.toLowerCase())};ce.autoRemove=e=>$(e);const fe=(e,o,t)=>{var n;return(n=e.getValue(o))==null?void 0:n.includes(t)};fe.autoRemove=e=>$(e)||!(e!=null&&e.length);const pe=(e,o,t)=>!t.some(n=>{var i;return!((i=e.getValue(o))!=null&&i.includes(n))});pe.autoRemove=e=>$(e)||!(e!=null&&e.length);const Se=(e,o,t)=>t.some(n=>{var i;return(i=e.getValue(o))==null?void 0:i.includes(n)});Se.autoRemove=e=>$(e)||!(e!=null&&e.length);const me=(e,o,t)=>e.getValue(o)===t;me.autoRemove=e=>$(e);const Ce=(e,o,t)=>e.getValue(o)==t;Ce.autoRemove=e=>$(e);const Y=(e,o,t)=>{let[n,i]=t;const r=e.getValue(o);return r>=n&&r<=i};Y.resolveFilterValue=e=>{let[o,t]=e,n=typeof o!="number"?parseFloat(o):o,i=typeof t!="number"?parseFloat(t):t,r=o===null||Number.isNaN(n)?-1/0:n,l=t===null||Number.isNaN(i)?1/0:i;if(r>l){const s=r;r=l,l=s}return[r,l]};Y.autoRemove=e=>$(e)||$(e[0])&&$(e[1]);const M={includesString:ae,includesStringSensitive:de,equalsString:ce,arrIncludes:fe,arrIncludesAll:pe,arrIncludesSome:Se,equals:me,weakEquals:Ce,inNumberRange:Y};function $(e){return e==null||e===""}const Re={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:F("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,o)=>{e.getAutoFilterFn=()=>{const t=o.getCoreRowModel().flatRows[0],n=t==null?void 0:t.getValue(e.id);return typeof n=="string"?M.includesString:typeof n=="number"?M.inNumberRange:typeof n=="boolean"||n!==null&&typeof n=="object"?M.equals:Array.isArray(n)?M.arrIncludes:M.weakEquals},e.getFilterFn=()=>{var t,n;return G(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(t=(n=o.options.filterFns)==null?void 0:n[e.columnDef.filterFn])!=null?t:M[e.columnDef.filterFn]},e.getCanFilter=()=>{var t,n,i;return((t=e.columnDef.enableColumnFilter)!=null?t:!0)&&((n=o.options.enableColumnFilters)!=null?n:!0)&&((i=o.options.enableFilters)!=null?i:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var t;return(t=o.getState().columnFilters)==null||(t=t.find(n=>n.id===e.id))==null?void 0:t.value},e.getFilterIndex=()=>{var t,n;return(t=(n=o.getState().columnFilters)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?t:-1},e.setFilterValue=t=>{o.setColumnFilters(n=>{const i=e.getFilterFn(),r=n==null?void 0:n.find(c=>c.id===e.id),l=V(t,r?r.value:void 0);if(K(i,l,e)){var s;return(s=n==null?void 0:n.filter(c=>c.id!==e.id))!=null?s:[]}const u={id:e.id,value:l};if(r){var a;return(a=n==null?void 0:n.map(c=>c.id===e.id?u:c))!=null?a:[]}return n!=null&&n.length?[...n,u]:[u]})}},createRow:(e,o)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=o=>{const t=e.getAllLeafColumns(),n=i=>{var r;return(r=V(o,i))==null?void 0:r.filter(l=>{const s=t.find(u=>u.id===l.id);if(s){const u=s.getFilterFn();if(K(u,l.value,s))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(n)},e.resetColumnFilters=o=>{var t,n;e.setColumnFilters(o?[]:(t=(n=e.initialState)==null?void 0:n.columnFilters)!=null?t:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function K(e,o,t){return(e&&e.autoRemove?e.autoRemove(o,t):!1)||typeof o>"u"||typeof o=="string"&&!o}const ze=(e,o,t)=>t.reduce((n,i)=>{const r=i.getValue(e);return n+(typeof r=="number"?r:0)},0),Oe=(e,o,t)=>{let n;return t.forEach(i=>{const r=i.getValue(e);r!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}),n},Be=(e,o,t)=>{let n;return t.forEach(i=>{const r=i.getValue(e);r!=null&&(n<r||n===void 0&&r>=r)&&(n=r)}),n},Te=(e,o,t)=>{let n,i;return t.forEach(r=>{const l=r.getValue(e);l!=null&&(n===void 0?l>=l&&(n=i=l):(n>l&&(n=l),i<l&&(i=l)))}),[n,i]},qe=(e,o)=>{let t=0,n=0;if(o.forEach(i=>{let r=i.getValue(e);r!=null&&(r=+r)>=r&&(++t,n+=r)}),t)return n/t},Ne=(e,o)=>{if(!o.length)return;const t=o.map(r=>r.getValue(e));if(!oe(t))return;if(t.length===1)return t[0];const n=Math.floor(t.length/2),i=t.sort((r,l)=>r-l);return t.length%2!==0?i[n]:(i[n-1]+i[n])/2},ke=(e,o)=>Array.from(new Set(o.map(t=>t.getValue(e))).values()),je=(e,o)=>new Set(o.map(t=>t.getValue(e))).size,Ue=(e,o)=>o.length,L={sum:ze,min:Oe,max:Be,extent:Te,mean:qe,median:Ne,unique:ke,uniqueCount:je,count:Ue},we={getDefaultColumnDef:()=>({aggregatedCell:e=>{var o,t;return(o=(t=e.getValue())==null||t.toString==null?void 0:t.toString())!=null?o:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:F("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,o)=>{e.toggleGrouping=()=>{o.setGrouping(t=>t!=null&&t.includes(e.id)?t.filter(n=>n!==e.id):[...t??[],e.id])},e.getCanGroup=()=>{var t,n;return((t=e.columnDef.enableGrouping)!=null?t:!0)&&((n=o.options.enableGrouping)!=null?n:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var t;return(t=o.getState().grouping)==null?void 0:t.includes(e.id)},e.getGroupedIndex=()=>{var t;return(t=o.getState().grouping)==null?void 0:t.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const t=o.getCoreRowModel().flatRows[0],n=t==null?void 0:t.getValue(e.id);if(typeof n=="number")return L.sum;if(Object.prototype.toString.call(n)==="[object Date]")return L.extent},e.getAggregationFn=()=>{var t,n;if(!e)throw new Error;return G(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(t=(n=o.options.aggregationFns)==null?void 0:n[e.columnDef.aggregationFn])!=null?t:L[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=o=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(o),e.resetGrouping=o=>{var t,n;e.setGrouping(o?[]:(t=(n=e.initialState)==null?void 0:n.grouping)!=null?t:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,o)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=t=>{if(e._groupingValuesCache.hasOwnProperty(t))return e._groupingValuesCache[t];const n=o.getColumn(t);return n!=null&&n.columnDef.getGroupingValue?(e._groupingValuesCache[t]=n.columnDef.getGroupingValue(e.original),e._groupingValuesCache[t]):e.getValue(t)},e._groupingValuesCache={}},createCell:(e,o,t,n)=>{e.getIsGrouped=()=>o.getIsGrouped()&&o.id===t.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&o.getIsGrouped(),e.getIsAggregated=()=>{var i;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((i=t.subRows)!=null&&i.length)}}};function he(e,o,t){if(!(o!=null&&o.length)||!t)return e;const n=e.filter(r=>!o.includes(r.id));return t==="remove"?n:[...o.map(r=>e.find(l=>l.id===r)).filter(Boolean),...n]}const ve={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:F("columnOrder",e)}),createColumn:(e,o)=>{e.getIndex=m(t=>[y(o,t)],t=>t.findIndex(n=>n.id===e.id),C(o.options,"debugColumns","getIndex")),e.getIsFirstColumn=t=>{var n;return((n=y(o,t)[0])==null?void 0:n.id)===e.id},e.getIsLastColumn=t=>{var n;const i=y(o,t);return((n=i[i.length-1])==null?void 0:n.id)===e.id}},createTable:e=>{e.setColumnOrder=o=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(o),e.resetColumnOrder=o=>{var t;e.setColumnOrder(o?[]:(t=e.initialState.columnOrder)!=null?t:[])},e._getOrderColumnsFn=m(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(o,t,n)=>i=>{let r=[];if(!(o!=null&&o.length))r=i;else{const l=[...o],s=[...i];for(;s.length&&l.length;){const u=l.shift(),a=s.findIndex(c=>c.id===u);a>-1&&r.push(s.splice(a,1)[0])}r=[...r,...s]}return he(r,t,n)},C(e.options,"debugTable","_getOrderColumnsFn"))}},N=()=>({left:[],right:[]}),_e={getInitialState:e=>({columnPinning:N(),...e}),getDefaultOptions:e=>({onColumnPinningChange:F("columnPinning",e)}),createColumn:(e,o)=>{e.pin=t=>{const n=e.getLeafColumns().map(i=>i.id).filter(Boolean);o.setColumnPinning(i=>{var r,l;if(t==="right"){var s,u;return{left:((s=i==null?void 0:i.left)!=null?s:[]).filter(S=>!(n!=null&&n.includes(S))),right:[...((u=i==null?void 0:i.right)!=null?u:[]).filter(S=>!(n!=null&&n.includes(S))),...n]}}if(t==="left"){var a,c;return{left:[...((a=i==null?void 0:i.left)!=null?a:[]).filter(S=>!(n!=null&&n.includes(S))),...n],right:((c=i==null?void 0:i.right)!=null?c:[]).filter(S=>!(n!=null&&n.includes(S)))}}return{left:((r=i==null?void 0:i.left)!=null?r:[]).filter(S=>!(n!=null&&n.includes(S))),right:((l=i==null?void 0:i.right)!=null?l:[]).filter(S=>!(n!=null&&n.includes(S)))}})},e.getCanPin=()=>e.getLeafColumns().some(n=>{var i,r,l;return((i=n.columnDef.enablePinning)!=null?i:!0)&&((r=(l=o.options.enableColumnPinning)!=null?l:o.options.enablePinning)!=null?r:!0)}),e.getIsPinned=()=>{const t=e.getLeafColumns().map(s=>s.id),{left:n,right:i}=o.getState().columnPinning,r=t.some(s=>n==null?void 0:n.includes(s)),l=t.some(s=>i==null?void 0:i.includes(s));return r?"left":l?"right":!1},e.getPinnedIndex=()=>{var t,n;const i=e.getIsPinned();return i?(t=(n=o.getState().columnPinning)==null||(n=n[i])==null?void 0:n.indexOf(e.id))!=null?t:-1:0}},createRow:(e,o)=>{e.getCenterVisibleCells=m(()=>[e._getAllVisibleCells(),o.getState().columnPinning.left,o.getState().columnPinning.right],(t,n,i)=>{const r=[...n??[],...i??[]];return t.filter(l=>!r.includes(l.column.id))},C(o.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=m(()=>[e._getAllVisibleCells(),o.getState().columnPinning.left],(t,n)=>(n??[]).map(r=>t.find(l=>l.column.id===r)).filter(Boolean).map(r=>({...r,position:"left"})),C(o.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=m(()=>[e._getAllVisibleCells(),o.getState().columnPinning.right],(t,n)=>(n??[]).map(r=>t.find(l=>l.column.id===r)).filter(Boolean).map(r=>({...r,position:"right"})),C(o.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=o=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(o),e.resetColumnPinning=o=>{var t,n;return e.setColumnPinning(o?N():(t=(n=e.initialState)==null?void 0:n.columnPinning)!=null?t:N())},e.getIsSomeColumnsPinned=o=>{var t;const n=e.getState().columnPinning;if(!o){var i,r;return!!((i=n.left)!=null&&i.length||(r=n.right)!=null&&r.length)}return!!((t=n[o])!=null&&t.length)},e.getLeftLeafColumns=m(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(o,t)=>(t??[]).map(n=>o.find(i=>i.id===n)).filter(Boolean),C(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=m(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(o,t)=>(t??[]).map(n=>o.find(i=>i.id===n)).filter(Boolean),C(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=m(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(o,t,n)=>{const i=[...t??[],...n??[]];return o.filter(r=>!i.includes(r.id))},C(e.options,"debugColumns","getCenterLeafColumns"))}},H={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},k=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),Fe={getDefaultColumnDef:()=>H,getInitialState:e=>({columnSizing:{},columnSizingInfo:k(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:F("columnSizing",e),onColumnSizingInfoChange:F("columnSizingInfo",e)}),createColumn:(e,o)=>{e.getSize=()=>{var t,n,i;const r=o.getState().columnSizing[e.id];return Math.min(Math.max((t=e.columnDef.minSize)!=null?t:H.minSize,(n=r??e.columnDef.size)!=null?n:H.size),(i=e.columnDef.maxSize)!=null?i:H.maxSize)},e.getStart=m(t=>[t,y(o,t),o.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((i,r)=>i+r.getSize(),0),C(o.options,"debugColumns","getStart")),e.getAfter=m(t=>[t,y(o,t),o.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((i,r)=>i+r.getSize(),0),C(o.options,"debugColumns","getAfter")),e.resetSize=()=>{o.setColumnSizing(t=>{let{[e.id]:n,...i}=t;return i})},e.getCanResize=()=>{var t,n;return((t=e.columnDef.enableResizing)!=null?t:!0)&&((n=o.options.enableColumnResizing)!=null?n:!0)},e.getIsResizing=()=>o.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,o)=>{e.getSize=()=>{let t=0;const n=i=>{if(i.subHeaders.length)i.subHeaders.forEach(n);else{var r;t+=(r=i.column.getSize())!=null?r:0}};return n(e),t},e.getStart=()=>{if(e.index>0){const t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=t=>{const n=o.getColumn(e.column.id),i=n==null?void 0:n.getCanResize();return r=>{if(!n||!i||(r.persist==null||r.persist(),j(r)&&r.touches&&r.touches.length>1))return;const l=e.getSize(),s=e?e.getLeafHeaders().map(R=>[R.column.id,R.column.getSize()]):[[n.id,n.getSize()]],u=j(r)?Math.round(r.touches[0].clientX):r.clientX,a={},c=(R,_)=>{typeof _=="number"&&(o.setColumnSizingInfo(h=>{var P,I;const q=o.options.columnResizeDirection==="rtl"?-1:1,b=(_-((P=h==null?void 0:h.startOffset)!=null?P:0))*q,ee=Math.max(b/((I=h==null?void 0:h.startSize)!=null?I:0),-.999999);return h.columnSizingStart.forEach(Ae=>{let[Le,te]=Ae;a[Le]=Math.round(Math.max(te+te*ee,0)*100)/100}),{...h,deltaOffset:b,deltaPercentage:ee}}),(o.options.columnResizeMode==="onChange"||R==="end")&&o.setColumnSizing(h=>({...h,...a})))},S=R=>c("move",R),d=R=>{c("end",R),o.setColumnSizingInfo(_=>({..._,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},g=t||typeof document<"u"?document:null,f={moveHandler:R=>S(R.clientX),upHandler:R=>{g==null||g.removeEventListener("mousemove",f.moveHandler),g==null||g.removeEventListener("mouseup",f.upHandler),d(R.clientX)}},p={moveHandler:R=>(R.cancelable&&(R.preventDefault(),R.stopPropagation()),S(R.touches[0].clientX),!1),upHandler:R=>{var _;g==null||g.removeEventListener("touchmove",p.moveHandler),g==null||g.removeEventListener("touchend",p.upHandler),R.cancelable&&(R.preventDefault(),R.stopPropagation()),d((_=R.touches[0])==null?void 0:_.clientX)}},w=$e()?{passive:!1}:!1;j(r)?(g==null||g.addEventListener("touchmove",p.moveHandler,w),g==null||g.addEventListener("touchend",p.upHandler,w)):(g==null||g.addEventListener("mousemove",f.moveHandler,w),g==null||g.addEventListener("mouseup",f.upHandler,w)),o.setColumnSizingInfo(R=>({...R,startOffset:u,startSize:l,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:n.id}))}}},createTable:e=>{e.setColumnSizing=o=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(o),e.setColumnSizingInfo=o=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(o),e.resetColumnSizing=o=>{var t;e.setColumnSizing(o?{}:(t=e.initialState.columnSizing)!=null?t:{})},e.resetHeaderSizeInfo=o=>{var t;e.setColumnSizingInfo(o?k():(t=e.initialState.columnSizingInfo)!=null?t:k())},e.getTotalSize=()=>{var o,t;return(o=(t=e.getHeaderGroups()[0])==null?void 0:t.headers.reduce((n,i)=>n+i.getSize(),0))!=null?o:0},e.getLeftTotalSize=()=>{var o,t;return(o=(t=e.getLeftHeaderGroups()[0])==null?void 0:t.headers.reduce((n,i)=>n+i.getSize(),0))!=null?o:0},e.getCenterTotalSize=()=>{var o,t;return(o=(t=e.getCenterHeaderGroups()[0])==null?void 0:t.headers.reduce((n,i)=>n+i.getSize(),0))!=null?o:0},e.getRightTotalSize=()=>{var o,t;return(o=(t=e.getRightHeaderGroups()[0])==null?void 0:t.headers.reduce((n,i)=>n+i.getSize(),0))!=null?o:0}}};let A=null;function $e(){if(typeof A=="boolean")return A;let e=!1;try{const o={get passive(){return e=!0,!1}},t=()=>{};window.addEventListener("test",t,o),window.removeEventListener("test",t)}catch{e=!1}return A=e,A}function j(e){return e.type==="touchstart"}const Me={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:F("columnVisibility",e)}),createColumn:(e,o)=>{e.toggleVisibility=t=>{e.getCanHide()&&o.setColumnVisibility(n=>({...n,[e.id]:t??!e.getIsVisible()}))},e.getIsVisible=()=>{var t,n;const i=e.columns;return(t=i.length?i.some(r=>r.getIsVisible()):(n=o.getState().columnVisibility)==null?void 0:n[e.id])!=null?t:!0},e.getCanHide=()=>{var t,n;return((t=e.columnDef.enableHiding)!=null?t:!0)&&((n=o.options.enableHiding)!=null?n:!0)},e.getToggleVisibilityHandler=()=>t=>{e.toggleVisibility==null||e.toggleVisibility(t.target.checked)}},createRow:(e,o)=>{e._getAllVisibleCells=m(()=>[e.getAllCells(),o.getState().columnVisibility],t=>t.filter(n=>n.column.getIsVisible()),C(o.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=m(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(t,n,i)=>[...t,...n,...i],C(o.options,"debugRows","getVisibleCells"))},createTable:e=>{const o=(t,n)=>m(()=>[n(),n().filter(i=>i.getIsVisible()).map(i=>i.id).join("_")],i=>i.filter(r=>r.getIsVisible==null?void 0:r.getIsVisible()),C(e.options,"debugColumns",t));e.getVisibleFlatColumns=o("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=o("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=o("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=o("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=o("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:(n=e.initialState.columnVisibility)!=null?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=(n=t)!=null?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((i,r)=>({...i,[r.id]:t||!(r.getCanHide!=null&&r.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(t=>!(t.getIsVisible!=null&&t.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(t=>t.getIsVisible==null?void 0:t.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible((n=t.target)==null?void 0:n.checked)}}};function y(e,o){return o?o==="center"?e.getCenterVisibleLeafColumns():o==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const Ve={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},Pe={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:F("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:o=>{var t;const n=(t=e.getCoreRowModel().flatRows[0])==null||(t=t._getAllCellsByColumnId()[o.id])==null?void 0:t.getValue();return typeof n=="string"||typeof n=="number"}}),createColumn:(e,o)=>{e.getCanGlobalFilter=()=>{var t,n,i,r;return((t=e.columnDef.enableGlobalFilter)!=null?t:!0)&&((n=o.options.enableGlobalFilter)!=null?n:!0)&&((i=o.options.enableFilters)!=null?i:!0)&&((r=o.options.getColumnCanGlobalFilter==null?void 0:o.options.getColumnCanGlobalFilter(e))!=null?r:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>M.includesString,e.getGlobalFilterFn=()=>{var o,t;const{globalFilterFn:n}=e.options;return G(n)?n:n==="auto"?e.getGlobalAutoFilterFn():(o=(t=e.options.filterFns)==null?void 0:t[n])!=null?o:M[n]},e.setGlobalFilter=o=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(o)},e.resetGlobalFilter=o=>{e.setGlobalFilter(o?void 0:e.initialState.globalFilter)}}},xe={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:F("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let o=!1,t=!1;e._autoResetExpanded=()=>{var n,i;if(!o){e._queue(()=>{o=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetExpanded)!=null?n:!e.options.manualExpanding){if(t)return;t=!0,e._queue(()=>{e.resetExpanded(),t=!1})}},e.setExpanded=n=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(n),e.toggleAllRowsExpanded=n=>{n??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=n=>{var i,r;e.setExpanded(n?{}:(i=(r=e.initialState)==null?void 0:r.expanded)!=null?i:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(n=>n.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>n=>{n.persist==null||n.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const n=e.getState().expanded;return n===!0||Object.values(n).some(Boolean)},e.getIsAllRowsExpanded=()=>{const n=e.getState().expanded;return typeof n=="boolean"?n===!0:!(!Object.keys(n).length||e.getRowModel().flatRows.some(i=>!i.getIsExpanded()))},e.getExpandedDepth=()=>{let n=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(r=>{const l=r.split(".");n=Math.max(n,l.length)}),n},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,o)=>{e.toggleExpanded=t=>{o.setExpanded(n=>{var i;const r=n===!0?!0:!!(n!=null&&n[e.id]);let l={};if(n===!0?Object.keys(o.getRowModel().rowsById).forEach(s=>{l[s]=!0}):l=n,t=(i=t)!=null?i:!r,!r&&t)return{...l,[e.id]:!0};if(r&&!t){const{[e.id]:s,...u}=l;return u}return n})},e.getIsExpanded=()=>{var t;const n=o.getState().expanded;return!!((t=o.options.getIsRowExpanded==null?void 0:o.options.getIsRowExpanded(e))!=null?t:n===!0||n!=null&&n[e.id])},e.getCanExpand=()=>{var t,n,i;return(t=o.options.getRowCanExpand==null?void 0:o.options.getRowCanExpand(e))!=null?t:((n=o.options.enableExpanding)!=null?n:!0)&&!!((i=e.subRows)!=null&&i.length)},e.getIsAllParentsExpanded=()=>{let t=!0,n=e;for(;t&&n.parentId;)n=o.getRow(n.parentId,!0),t=n.getIsExpanded();return t},e.getToggleExpandedHandler=()=>{const t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},J=0,Q=10,U=()=>({pageIndex:J,pageSize:Q}),Ie={getInitialState:e=>({...e,pagination:{...U(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:F("pagination",e)}),createTable:e=>{let o=!1,t=!1;e._autoResetPageIndex=()=>{var n,i;if(!o){e._queue(()=>{o=!0});return}if((n=(i=e.options.autoResetAll)!=null?i:e.options.autoResetPageIndex)!=null?n:!e.options.manualPagination){if(t)return;t=!0,e._queue(()=>{e.resetPageIndex(),t=!1})}},e.setPagination=n=>{const i=r=>V(n,r);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(i)},e.resetPagination=n=>{var i;e.setPagination(n?U():(i=e.initialState.pagination)!=null?i:U())},e.setPageIndex=n=>{e.setPagination(i=>{let r=V(n,i.pageIndex);const l=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return r=Math.max(0,Math.min(r,l)),{...i,pageIndex:r}})},e.resetPageIndex=n=>{var i,r;e.setPageIndex(n?J:(i=(r=e.initialState)==null||(r=r.pagination)==null?void 0:r.pageIndex)!=null?i:J)},e.resetPageSize=n=>{var i,r;e.setPageSize(n?Q:(i=(r=e.initialState)==null||(r=r.pagination)==null?void 0:r.pageSize)!=null?i:Q)},e.setPageSize=n=>{e.setPagination(i=>{const r=Math.max(1,V(n,i.pageSize)),l=i.pageSize*i.pageIndex,s=Math.floor(l/r);return{...i,pageIndex:s,pageSize:r}})},e.setPageCount=n=>e.setPagination(i=>{var r;let l=V(n,(r=e.options.pageCount)!=null?r:-1);return typeof l=="number"&&(l=Math.max(-1,l)),{...i,pageCount:l}}),e.getPageOptions=m(()=>[e.getPageCount()],n=>{let i=[];return n&&n>0&&(i=[...new Array(n)].fill(null).map((r,l)=>l)),i},C(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:n}=e.getState().pagination,i=e.getPageCount();return i===-1?!0:i===0?!1:n<i-1},e.previousPage=()=>e.setPageIndex(n=>n-1),e.nextPage=()=>e.setPageIndex(n=>n+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var n;return(n=e.options.pageCount)!=null?n:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var n;return(n=e.options.rowCount)!=null?n:e.getPrePaginationRowModel().rows.length}}},X=()=>({top:[],bottom:[]}),Ee={getInitialState:e=>({rowPinning:X(),...e}),getDefaultOptions:e=>({onRowPinningChange:F("rowPinning",e)}),createRow:(e,o)=>{e.pin=(t,n,i)=>{const r=n?e.getLeafRows().map(u=>{let{id:a}=u;return a}):[],l=i?e.getParentRows().map(u=>{let{id:a}=u;return a}):[],s=new Set([...l,e.id,...r]);o.setRowPinning(u=>{var a,c;if(t==="bottom"){var S,d;return{top:((S=u==null?void 0:u.top)!=null?S:[]).filter(p=>!(s!=null&&s.has(p))),bottom:[...((d=u==null?void 0:u.bottom)!=null?d:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)]}}if(t==="top"){var g,f;return{top:[...((g=u==null?void 0:u.top)!=null?g:[]).filter(p=>!(s!=null&&s.has(p))),...Array.from(s)],bottom:((f=u==null?void 0:u.bottom)!=null?f:[]).filter(p=>!(s!=null&&s.has(p)))}}return{top:((a=u==null?void 0:u.top)!=null?a:[]).filter(p=>!(s!=null&&s.has(p))),bottom:((c=u==null?void 0:u.bottom)!=null?c:[]).filter(p=>!(s!=null&&s.has(p)))}})},e.getCanPin=()=>{var t;const{enableRowPinning:n,enablePinning:i}=o.options;return typeof n=="function"?n(e):(t=n??i)!=null?t:!0},e.getIsPinned=()=>{const t=[e.id],{top:n,bottom:i}=o.getState().rowPinning,r=t.some(s=>n==null?void 0:n.includes(s)),l=t.some(s=>i==null?void 0:i.includes(s));return r?"top":l?"bottom":!1},e.getPinnedIndex=()=>{var t,n;const i=e.getIsPinned();if(!i)return-1;const r=(t=i==="top"?o.getTopRows():o.getBottomRows())==null?void 0:t.map(l=>{let{id:s}=l;return s});return(n=r==null?void 0:r.indexOf(e.id))!=null?n:-1}},createTable:e=>{e.setRowPinning=o=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(o),e.resetRowPinning=o=>{var t,n;return e.setRowPinning(o?X():(t=(n=e.initialState)==null?void 0:n.rowPinning)!=null?t:X())},e.getIsSomeRowsPinned=o=>{var t;const n=e.getState().rowPinning;if(!o){var i,r;return!!((i=n.top)!=null&&i.length||(r=n.bottom)!=null&&r.length)}return!!((t=n[o])!=null&&t.length)},e._getPinnedRows=(o,t,n)=>{var i;return((i=e.options.keepPinnedRows)==null||i?(t??[]).map(l=>{const s=e.getRow(l,!0);return s.getIsAllParentsExpanded()?s:null}):(t??[]).map(l=>o.find(s=>s.id===l))).filter(Boolean).map(l=>({...l,position:n}))},e.getTopRows=m(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(o,t)=>e._getPinnedRows(o,t,"top"),C(e.options,"debugRows","getTopRows")),e.getBottomRows=m(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(o,t)=>e._getPinnedRows(o,t,"bottom"),C(e.options,"debugRows","getBottomRows")),e.getCenterRows=m(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(o,t,n)=>{const i=new Set([...t??[],...n??[]]);return o.filter(r=>!i.has(r.id))},C(e.options,"debugRows","getCenterRows"))}},ye={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:F("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=o=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(o),e.resetRowSelection=o=>{var t;return e.setRowSelection(o?{}:(t=e.initialState.rowSelection)!=null?t:{})},e.toggleAllRowsSelected=o=>{e.setRowSelection(t=>{o=typeof o<"u"?o:!e.getIsAllRowsSelected();const n={...t},i=e.getPreGroupedRowModel().flatRows;return o?i.forEach(r=>{r.getCanSelect()&&(n[r.id]=!0)}):i.forEach(r=>{delete n[r.id]}),n})},e.toggleAllPageRowsSelected=o=>e.setRowSelection(t=>{const n=typeof o<"u"?o:!e.getIsAllPageRowsSelected(),i={...t};return e.getRowModel().rows.forEach(r=>{W(i,r.id,n,!0,e)}),i}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=m(()=>[e.getState().rowSelection,e.getCoreRowModel()],(o,t)=>Object.keys(o).length?z(e,t):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=m(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(o,t)=>Object.keys(o).length?z(e,t):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=m(()=>[e.getState().rowSelection,e.getSortedRowModel()],(o,t)=>Object.keys(o).length?z(e,t):{rows:[],flatRows:[],rowsById:{}},C(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{const o=e.getFilteredRowModel().flatRows,{rowSelection:t}=e.getState();let n=!!(o.length&&Object.keys(t).length);return n&&o.some(i=>i.getCanSelect()&&!t[i.id])&&(n=!1),n},e.getIsAllPageRowsSelected=()=>{const o=e.getPaginationRowModel().flatRows.filter(i=>i.getCanSelect()),{rowSelection:t}=e.getState();let n=!!o.length;return n&&o.some(i=>!t[i.id])&&(n=!1),n},e.getIsSomeRowsSelected=()=>{var o;const t=Object.keys((o=e.getState().rowSelection)!=null?o:{}).length;return t>0&&t<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const o=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:o.filter(t=>t.getCanSelect()).some(t=>t.getIsSelected()||t.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>o=>{e.toggleAllRowsSelected(o.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>o=>{e.toggleAllPageRowsSelected(o.target.checked)}},createRow:(e,o)=>{e.toggleSelected=(t,n)=>{const i=e.getIsSelected();o.setRowSelection(r=>{var l;if(t=typeof t<"u"?t:!i,e.getCanSelect()&&i===t)return r;const s={...r};return W(s,e.id,t,(l=n==null?void 0:n.selectChildren)!=null?l:!0,o),s})},e.getIsSelected=()=>{const{rowSelection:t}=o.getState();return T(e,t)},e.getIsSomeSelected=()=>{const{rowSelection:t}=o.getState();return O(e,t)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:t}=o.getState();return O(e,t)==="all"},e.getCanSelect=()=>{var t;return typeof o.options.enableRowSelection=="function"?o.options.enableRowSelection(e):(t=o.options.enableRowSelection)!=null?t:!0},e.getCanSelectSubRows=()=>{var t;return typeof o.options.enableSubRowSelection=="function"?o.options.enableSubRowSelection(e):(t=o.options.enableSubRowSelection)!=null?t:!0},e.getCanMultiSelect=()=>{var t;return typeof o.options.enableMultiRowSelection=="function"?o.options.enableMultiRowSelection(e):(t=o.options.enableMultiRowSelection)!=null?t:!0},e.getToggleSelectedHandler=()=>{const t=e.getCanSelect();return n=>{var i;t&&e.toggleSelected((i=n.target)==null?void 0:i.checked)}}}},W=(e,o,t,n,i)=>{var r;const l=i.getRow(o,!0);t?(l.getCanMultiSelect()||Object.keys(e).forEach(s=>delete e[s]),l.getCanSelect()&&(e[o]=!0)):delete e[o],n&&(r=l.subRows)!=null&&r.length&&l.getCanSelectSubRows()&&l.subRows.forEach(s=>W(e,s.id,t,n,i))};function z(e,o){const t=e.getState().rowSelection,n=[],i={},r=function(l,s){return l.map(u=>{var a;const c=T(u,t);if(c&&(n.push(u),i[u.id]=u),(a=u.subRows)!=null&&a.length&&(u={...u,subRows:r(u.subRows)}),c)return u}).filter(Boolean)};return{rows:r(o.rows),flatRows:n,rowsById:i}}function T(e,o){var t;return(t=o[e.id])!=null?t:!1}function O(e,o,t){var n;if(!((n=e.subRows)!=null&&n.length))return!1;let i=!0,r=!1;return e.subRows.forEach(l=>{if(!(r&&!i)&&(l.getCanSelect()&&(T(l,o)?r=!0:i=!1),l.subRows&&l.subRows.length)){const s=O(l,o);s==="all"?r=!0:(s==="some"&&(r=!0),i=!1)}}),i?"all":r?"some":!1}const B=/([0-9]+)/gm,Xe=(e,o,t)=>De(x(e.getValue(t)).toLowerCase(),x(o.getValue(t)).toLowerCase()),Ke=(e,o,t)=>De(x(e.getValue(t)),x(o.getValue(t))),Je=(e,o,t)=>Z(x(e.getValue(t)).toLowerCase(),x(o.getValue(t)).toLowerCase()),Qe=(e,o,t)=>Z(x(e.getValue(t)),x(o.getValue(t))),We=(e,o,t)=>{const n=e.getValue(t),i=o.getValue(t);return n>i?1:n<i?-1:0},Ye=(e,o,t)=>Z(e.getValue(t),o.getValue(t));function Z(e,o){return e===o?0:e>o?1:-1}function x(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function De(e,o){const t=e.split(B).filter(Boolean),n=o.split(B).filter(Boolean);for(;t.length&&n.length;){const i=t.shift(),r=n.shift(),l=parseInt(i,10),s=parseInt(r,10),u=[l,s].sort();if(isNaN(u[0])){if(i>r)return 1;if(r>i)return-1;continue}if(isNaN(u[1]))return isNaN(l)?-1:1;if(l>s)return 1;if(s>l)return-1}return t.length-n.length}const E={alphanumeric:Xe,alphanumericCaseSensitive:Ke,text:Je,textCaseSensitive:Qe,datetime:We,basic:Ye},He={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:F("sorting",e),isMultiSortEvent:o=>o.shiftKey}),createColumn:(e,o)=>{e.getAutoSortingFn=()=>{const t=o.getFilteredRowModel().flatRows.slice(10);let n=!1;for(const i of t){const r=i==null?void 0:i.getValue(e.id);if(Object.prototype.toString.call(r)==="[object Date]")return E.datetime;if(typeof r=="string"&&(n=!0,r.split(B).length>1))return E.alphanumeric}return n?E.text:E.basic},e.getAutoSortDir=()=>{const t=o.getFilteredRowModel().flatRows[0];return typeof(t==null?void 0:t.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var t,n;if(!e)throw new Error;return G(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(t=(n=o.options.sortingFns)==null?void 0:n[e.columnDef.sortingFn])!=null?t:E[e.columnDef.sortingFn]},e.toggleSorting=(t,n)=>{const i=e.getNextSortingOrder(),r=typeof t<"u"&&t!==null;o.setSorting(l=>{const s=l==null?void 0:l.find(g=>g.id===e.id),u=l==null?void 0:l.findIndex(g=>g.id===e.id);let a=[],c,S=r?t:i==="desc";if(l!=null&&l.length&&e.getCanMultiSort()&&n?s?c="toggle":c="add":l!=null&&l.length&&u!==l.length-1?c="replace":s?c="toggle":c="replace",c==="toggle"&&(r||i||(c="remove")),c==="add"){var d;a=[...l,{id:e.id,desc:S}],a.splice(0,a.length-((d=o.options.maxMultiSortColCount)!=null?d:Number.MAX_SAFE_INTEGER))}else c==="toggle"?a=l.map(g=>g.id===e.id?{...g,desc:S}:g):c==="remove"?a=l.filter(g=>g.id!==e.id):a=[{id:e.id,desc:S}];return a})},e.getFirstSortDir=()=>{var t,n;return((t=(n=e.columnDef.sortDescFirst)!=null?n:o.options.sortDescFirst)!=null?t:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=t=>{var n,i;const r=e.getFirstSortDir(),l=e.getIsSorted();return l?l!==r&&((n=o.options.enableSortingRemoval)==null||n)&&(!(t&&(i=o.options.enableMultiRemove)!=null)||i)?!1:l==="desc"?"asc":"desc":r},e.getCanSort=()=>{var t,n;return((t=e.columnDef.enableSorting)!=null?t:!0)&&((n=o.options.enableSorting)!=null?n:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var t,n;return(t=(n=e.columnDef.enableMultiSort)!=null?n:o.options.enableMultiSort)!=null?t:!!e.accessorFn},e.getIsSorted=()=>{var t;const n=(t=o.getState().sorting)==null?void 0:t.find(i=>i.id===e.id);return n?n.desc?"desc":"asc":!1},e.getSortIndex=()=>{var t,n;return(t=(n=o.getState().sorting)==null?void 0:n.findIndex(i=>i.id===e.id))!=null?t:-1},e.clearSorting=()=>{o.setSorting(t=>t!=null&&t.length?t.filter(n=>n.id!==e.id):[])},e.getToggleSortingHandler=()=>{const t=e.getCanSort();return n=>{t&&(n.persist==null||n.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?o.options.isMultiSortEvent==null?void 0:o.options.isMultiSortEvent(n):!1))}}},createTable:e=>{e.setSorting=o=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(o),e.resetSorting=o=>{var t,n;e.setSorting(o?[]:(t=(n=e.initialState)==null?void 0:n.sorting)!=null?t:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},Ze=[se,Me,ve,_e,ge,Re,Ve,Pe,He,we,xe,Ie,Ee,ye,Fe];function be(e){var o,t;process.env.NODE_ENV!=="production"&&(e.debugAll||e.debugTable);const n=[...Ze,...(o=e._features)!=null?o:[]];let i={_features:n};const r=i._features.reduce((d,g)=>Object.assign(d,g.getDefaultOptions==null?void 0:g.getDefaultOptions(i)),{}),l=d=>i.options.mergeOptions?i.options.mergeOptions(r,d):{...r,...d};let u={...{},...(t=e.initialState)!=null?t:{}};i._features.forEach(d=>{var g;u=(g=d.getInitialState==null?void 0:d.getInitialState(u))!=null?g:u});const a=[];let c=!1;const S={_features:n,options:{...r,...e},initialState:u,_queue:d=>{a.push(d),c||(c=!0,Promise.resolve().then(()=>{for(;a.length;)a.shift()();c=!1}).catch(g=>setTimeout(()=>{throw g})))},reset:()=>{i.setState(i.initialState)},setOptions:d=>{const g=V(d,i.options);i.options=l(g)},getState:()=>i.options.state,setState:d=>{i.options.onStateChange==null||i.options.onStateChange(d)},_getRowId:(d,g,f)=>{var p;return(p=i.options.getRowId==null?void 0:i.options.getRowId(d,g,f))!=null?p:`${f?[f.id,g].join("."):g}`},getCoreRowModel:()=>(i._getCoreRowModel||(i._getCoreRowModel=i.options.getCoreRowModel(i)),i._getCoreRowModel()),getRowModel:()=>i.getPaginationRowModel(),getRow:(d,g)=>{let f=(g?i.getPrePaginationRowModel():i.getRowModel()).rowsById[d];if(!f&&(f=i.getCoreRowModel().rowsById[d],!f))throw process.env.NODE_ENV!=="production"?new Error(`getRow could not find row with ID: ${d}`):new Error;return f},_getDefaultColumnDef:m(()=>[i.options.defaultColumn],d=>{var g;return d=(g=d)!=null?g:{},{header:f=>{const p=f.header.column.columnDef;return p.accessorKey?p.accessorKey:p.accessorFn?p.id:null},cell:f=>{var p,w;return(p=(w=f.renderValue())==null||w.toString==null?void 0:w.toString())!=null?p:null},...i._features.reduce((f,p)=>Object.assign(f,p.getDefaultColumnDef==null?void 0:p.getDefaultColumnDef()),{}),...d}},C(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>i.options.columns,getAllColumns:m(()=>[i._getColumnDefs()],d=>{const g=function(f,p,w){return w===void 0&&(w=0),f.map(R=>{const _=le(i,R,w,p),h=R;return _.columns=h.columns?g(h.columns,_,w+1):[],_})};return g(d)},C(e,"debugColumns","getAllColumns")),getAllFlatColumns:m(()=>[i.getAllColumns()],d=>d.flatMap(g=>g.getFlatColumns()),C(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:m(()=>[i.getAllFlatColumns()],d=>d.reduce((g,f)=>(g[f.id]=f,g),{}),C(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:m(()=>[i.getAllColumns(),i._getOrderColumnsFn()],(d,g)=>{let f=d.flatMap(p=>p.getLeafColumns());return g(f)},C(e,"debugColumns","getAllLeafColumns")),getColumn:d=>{const g=i._getAllFlatColumnsById()[d];return process.env.NODE_ENV,g}};Object.assign(i,S);for(let d=0;d<i._features.length;d++){const g=i._features[d];g==null||g.createTable==null||g.createTable(i)}return i}function et(){return e=>m(()=>[e.options.data],o=>{const t={rows:[],flatRows:[],rowsById:{}},n=function(i,r,l){r===void 0&&(r=0);const s=[];for(let a=0;a<i.length;a++){const c=ue(e,e._getRowId(i[a],a,l),i[a],a,r,void 0,l==null?void 0:l.id);if(t.flatRows.push(c),t.rowsById[c.id]=c,s.push(c),e.options.getSubRows){var u;c.originalSubRows=e.options.getSubRows(i[a],a),(u=c.originalSubRows)!=null&&u.length&&(c.subRows=n(c.originalSubRows,r+1,c))}}return s};return t.rows=n(o),t},C(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function Ge(e){const o=[],t=n=>{var i;o.push(n),(i=n.subRows)!=null&&i.length&&n.getIsExpanded()&&n.subRows.forEach(t)};return e.rows.forEach(t),{rows:o,flatRows:e.flatRows,rowsById:e.rowsById}}function tt(e){return o=>m(()=>[o.getState().pagination,o.getPrePaginationRowModel(),o.options.paginateExpandedRows?void 0:o.getState().expanded],(t,n)=>{if(!n.rows.length)return n;const{pageSize:i,pageIndex:r}=t;let{rows:l,flatRows:s,rowsById:u}=n;const a=i*r,c=a+i;l=l.slice(a,c);let S;o.options.paginateExpandedRows?S={rows:l,flatRows:s,rowsById:u}:S=Ge({rows:l,flatRows:s,rowsById:u}),S.flatRows=[];const d=g=>{S.flatRows.push(g),g.subRows.length&&g.subRows.forEach(d)};return S.rows.forEach(d),S},C(o.options,"debugTable","getPaginationRowModel"))}exports.ColumnFaceting=ge;exports.ColumnFiltering=Re;exports.ColumnGrouping=we;exports.ColumnOrdering=ve;exports.ColumnPinning=_e;exports.ColumnSizing=Fe;exports.ColumnVisibility=Me;exports.GlobalFaceting=Ve;exports.GlobalFiltering=Pe;exports.Headers=se;exports.RowExpanding=xe;exports.RowPagination=Ie;exports.RowPinning=Ee;exports.RowSelection=ye;exports.RowSorting=He;exports._getVisibleLeafColumns=y;exports.aggregationFns=L;exports.buildHeaderGroups=D;exports.createCell=re;exports.createColumn=le;exports.createRow=ue;exports.createTable=be;exports.defaultColumnSizing=H;exports.expandRows=Ge;exports.filterFns=M;exports.flattenBy=ie;exports.functionalUpdate=V;exports.getCoreRowModel=et;exports.getMemoOptions=C;exports.getPaginationRowModel=tt;exports.isFunction=G;exports.isNumberArray=oe;exports.isRowSelected=T;exports.isSubRowSelected=O;exports.makeStateUpdater=F;exports.memo=m;exports.orderColumns=he;exports.passiveEventSupported=$e;exports.reSplitAlphaNumeric=B;exports.selectRowsFn=z;exports.shouldAutoRemoveFilter=K;exports.sortingFns=E;
|
package/index.cjs89.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index.cjs86.js"),y=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,r=C.clsx,O=(t,l)=>e=>{var s;if((l==null?void 0:l.variants)==null)return r(t,e==null?void 0:e.class,e==null?void 0:e.className);const{variants:v,defaultVariants:u}=l,V=Object.keys(v).map(n=>{const a=e==null?void 0:e[n],d=u==null?void 0:u[n];if(a===null)return null;const i=y(a)||y(d);return v[n][i]}),c=e&&Object.entries(e).reduce((n,a)=>{let[d,i]=a;return i===void 0||(n[d]=i),n},{}),N=l==null||(s=l.compoundVariants)===null||s===void 0?void 0:s.reduce((n,a)=>{let{class:d,className:i,...b}=a;return Object.entries(b).every(f=>{let[m,o]=f;return Array.isArray(o)?o.includes({...u,...c}[m]):{...u,...c}[m]===o})?[...n,d,i]:n},[]);return r(t,V,N,e==null?void 0:e.class,e==null?void 0:e.className)};exports.cva=O;exports.cx=r;
|
package/index.cjs9.js
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),l=require("./index.cjs90.js"),C=require("./index.cjs91.js"),O=require("react"),w=require("react-dom"),W=require("./index.cjs69.js"),F=require("./index.cjs80.js"),H=require("./index.cjs3.js"),j=require("./index.cjs23.js"),L=require("./index.cjs49.js"),V=require("./index.cjs41.js"),J=require("./index.cjs92.js"),K=require("./index.cjs93.js"),Q=require("./index.cjs94.js"),U=require("./index.cjs95.js");function X({configs:r,isEditMode:o,componentMap:p,onConfigChange:g,onOrderChange:f,onSave:d,onCancel:y,onReset:S,onAdd:D,isSidePanelShown:q,isSaving:u}){const[x,N]=O.useState(null),[z,k]=O.useState(null),A=l.useSensor(l.MouseSensor,{activationConstraint:{distance:5}}),_=l.useSensor(l.TouchSensor,{activationConstraint:{delay:100,tolerance:5}}),$=l.useSensors(A,_),B=e=>{N(e.active.id)},P=e=>{const{over:t}=e;k(t?t.id:null)},R=e=>{const{active:t,over:n}=e;if(N(null),k(null),!n||t.id===n.id)return;if(n.id.toString().startsWith("placeholder-")){const c=parseInt(n.id.toString().split("-")[1]),m=r.find(h=>h.alias===t.id);if(m&&m.size==="half"){const h=r.findIndex(T=>T.alias===t.id),I=[...r];I.splice(c+1,0,...I.splice(h,1)),f(I)}return}const a=r.findIndex(c=>c.alias===t.id),i=r.findIndex(c=>c.alias===n.id),b=C.arrayMove(r,a,i);f(b)},v=r.filter(e=>(e==null?void 0:e.isVisible)&&p[e.alias]),G=Array(v.length).fill(0).map((e,t)=>`placeholder-${t}`);return s.jsxs(s.Fragment,{children:[u&&w.createPortal(s.jsx("div",{className:W.cn("fixed inset-0 z-[60000] bg-black transition-all duration-200",u?"opacity-50":"pointer-events-none opacity-0")}),document.body),s.jsxs(l.DndContext,{sensors:$,collisionDetection:l.closestCenter,onDragStart:B,onDragEnd:R,onDragOver:P,children:[s.jsx(C.SortableContext,{items:[...r.map(e=>e.alias),...G],children:s.jsx("div",{className:"grid grid-cols-1 items-center justify-center gap-space-05 px-space-04 pt-space-04 sm:grid-cols-2 sm:items-stretch sm:justify-stretch sm:px-space-06 xl:px-space-05",children:(()=>{let e=0;const t=[],n=r.find(a=>a.alias===x);for(let a=0;a<v.length;a++){const i=v[a],b=p[i.alias];if(!b)continue;t.push(s.jsx(b,{config:i,isEditMode:o,onConfigChange:g,isOver:i.alias===z,isDragging:i.alias===x},i.alias));const c=i.size==="full"?2:1;if(e+=c,o&&i.size==="half"&&e%2===1){const m=v[a+1];if(!m||m.size==="full"){const h=`placeholder-${a}`;t.push(s.jsx(Y,{id:h,isEditMode:o,activeId:x,overId:z,draggedWidgetSize:n==null?void 0:n.size},h)),e+=1}}}return t})()})}),s.jsx(l.DragOverlay,{children:x&&(()=>{const e=r.find(n=>n.alias===x);if(!e)return null;const t=p[e.alias];return t?s.jsx(t,{config:e,isEditMode:o,onConfigChange:g,isDragOverlay:!0,isOver:e.alias===z,isDragging:e.alias===x},e.alias):null})()})]}),w.createPortal(s.jsx("div",{className:`fixed bottom-4 left-0 right-0 flex justify-center transition-all duration-300 ${o?"z-[50000] opacity-100":"pointer-events-none opacity-0"}
|
|
2
|
+
${q?"hidden xl:flex":""}
|
|
3
|
+
`,children:s.jsxs("div",{className:`flex transform items-center gap-space-04 rounded-full border-t bg-background-brand p-space-02 shadow-card-shadow transition-all duration-300 ${o?"translate-y-[-10px]":"translate-y-full"}`,children:[s.jsxs(V.Stack,{gap:4,alignItems:"center",children:[s.jsx(j.Button,{variant:"outline",colors:"gray",size:"icon-sm",onClick:y,children:s.jsx(J,{})}),s.jsx(j.Button,{variant:"outline",colors:"gray",size:"icon-sm",onClick:S,children:s.jsx(K,{})}),s.jsx(L.Separator,{orientation:"vertical",className:"h-space-06"})]}),s.jsx(j.Button,{variant:"outline",colors:"primary",size:"icon-sm",className:"xl:hidden",onClick:D,children:s.jsx(Q,{})}),s.jsxs(j.Button,{variant:"default",onClick:d,size:"sm",colors:"primary",className:"gap-space-02",disabled:u,children:[s.jsx(U,{className:"size-space-05"}),F.strings.DragAndDrop.SaveCustomization,u&&s.jsx(H,{})]})]})}),document.body)]})}const Y=({id:r,isEditMode:o,activeId:p,overId:g,draggedWidgetSize:f})=>{const d=f==="half",{attributes:y,listeners:S,isOver:D,setNodeRef:q}=C.useSortable({id:r,disabled:!o||!d}),u=D||g===r;return s.jsx("div",{ref:q,...d?y:{},...d?S:{},className:W.cn("hidden sm:block","h-[440px] rounded-3 border-2 border-dashed transition-all duration-200",u?"border-primary":"border-border",!d&&p?"cursor-not-allowed":"cursor-default")})};exports.DraggableGrid=X;
|