@anoki/fse-ui 2.2.0-RC2 → 2.2.0-RC3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs146.js.map +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs249.js +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs268.js +1 -1
- package/dist/index.cjs272.js +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs310.js +1 -1
- package/dist/index.cjs311.js +1 -1
- package/dist/index.cjs312.js +1 -1
- package/dist/index.cjs353.js +1 -1
- package/dist/index.cjs362.js +1 -1
- package/dist/index.cjs381.js +1 -1
- package/dist/index.cjs382.js +1 -1
- package/dist/index.cjs405.js +1 -1
- package/dist/index.cjs410.js +1 -1
- package/dist/index.cjs419.js +1 -1
- package/dist/index.cjs427.js +1 -1
- package/dist/index.cjs427.js.map +1 -1
- package/dist/index.cjs433.js +1 -1
- package/dist/index.cjs447.js +1 -1
- package/dist/index.cjs447.js.map +1 -1
- package/dist/{index.cjs455.js → index.cjs448.js} +1 -1
- package/dist/index.cjs448.js.map +1 -0
- package/dist/{index.cjs456.js → index.cjs449.js} +1 -1
- package/dist/{index.cjs456.js.map → index.cjs449.js.map} +1 -1
- package/dist/index.cjs450.js +1 -1
- package/dist/index.cjs450.js.map +1 -1
- package/dist/index.cjs451.js +1 -1
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs454.js +1 -1
- package/dist/index.cjs454.js.map +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs460.js.map +1 -1
- package/dist/index.cjs461.js +1 -1
- package/dist/index.cjs461.js.map +1 -1
- package/dist/index.cjs462.js +1 -1
- package/dist/index.cjs462.js.map +1 -1
- package/dist/index.cjs463.js +1 -1
- package/dist/index.cjs463.js.map +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +1 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/index.cjs468.js +1 -1
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs469.js +1 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs470.js +1 -1
- package/dist/index.cjs470.js.map +1 -1
- package/dist/{index.cjs465.js → index.cjs471.js} +2 -2
- package/dist/{index.cjs465.js.map → index.cjs471.js.map} +1 -1
- package/dist/index.cjs472.js +2 -0
- package/dist/index.cjs472.js.map +1 -0
- package/dist/index.cjs473.js +2 -0
- package/dist/index.cjs473.js.map +1 -0
- package/dist/index.cjs474.js +2 -0
- package/dist/index.cjs474.js.map +1 -0
- package/dist/index.cjs475.js +2 -0
- package/dist/index.cjs475.js.map +1 -0
- package/dist/index.cjs476.js +2 -0
- package/dist/index.cjs476.js.map +1 -0
- package/dist/index.cjs481.js +1 -1
- package/dist/index.cjs481.js.map +1 -1
- package/dist/index.cjs482.js +2 -0
- package/dist/index.cjs482.js.map +1 -0
- package/dist/{index.cjs493.js → index.cjs484.js} +2 -2
- package/dist/{index.cjs493.js.map → index.cjs484.js.map} +1 -1
- package/dist/{index.cjs494.js → index.cjs485.js} +2 -2
- package/dist/{index.cjs494.js.map → index.cjs485.js.map} +1 -1
- package/dist/{index.cjs495.js → index.cjs486.js} +2 -2
- package/dist/{index.cjs495.js.map → index.cjs486.js.map} +1 -1
- package/dist/index.cjs500.js +1 -1
- package/dist/index.cjs500.js.map +1 -1
- package/dist/index.cjs503.js +2 -0
- package/dist/index.cjs503.js.map +1 -0
- package/dist/index.cjs542.js +2 -0
- package/dist/index.cjs542.js.map +1 -0
- package/dist/index.cjs545.js +27 -2
- package/dist/index.cjs545.js.map +1 -1
- package/dist/index.cjs546.js +1 -1
- package/dist/index.cjs546.js.map +1 -1
- package/dist/index.cjs547.js +1 -1
- package/dist/index.cjs547.js.map +1 -1
- package/dist/index.cjs548.js +1 -1
- package/dist/index.cjs548.js.map +1 -1
- package/dist/index.cjs549.js +1 -1
- package/dist/index.cjs549.js.map +1 -1
- package/dist/index.cjs550.js +1 -1
- package/dist/index.cjs550.js.map +1 -1
- package/dist/index.cjs551.js +1 -1
- package/dist/index.cjs551.js.map +1 -1
- package/dist/index.cjs552.js +1 -1
- package/dist/index.cjs552.js.map +1 -1
- package/dist/index.cjs553.js +1 -1
- package/dist/index.cjs553.js.map +1 -1
- package/dist/index.cjs554.js +1 -1
- package/dist/index.cjs554.js.map +1 -1
- package/dist/index.cjs555.js +1 -1
- package/dist/index.cjs555.js.map +1 -1
- package/dist/index.cjs556.js +1 -1
- package/dist/index.cjs556.js.map +1 -1
- package/dist/index.cjs557.js +1 -1
- package/dist/index.cjs557.js.map +1 -1
- package/dist/index.cjs558.js +1 -27
- package/dist/index.cjs558.js.map +1 -1
- package/dist/index.cjs559.js +1 -1
- package/dist/index.cjs559.js.map +1 -1
- package/dist/index.cjs560.js +1 -1
- package/dist/index.cjs560.js.map +1 -1
- package/dist/index.cjs598.js +1 -1
- package/dist/index.cjs599.js +1 -1
- package/dist/index.cjs600.js +1 -1
- package/dist/index.cjs600.js.map +1 -1
- package/dist/index.cjs601.js +2 -1
- package/dist/index.cjs601.js.map +1 -1
- package/dist/index.cjs602.js +8 -1
- package/dist/index.cjs602.js.map +1 -1
- package/dist/index.cjs603.js +1 -1
- package/dist/index.cjs603.js.map +1 -1
- package/dist/index.cjs604.js +1 -1
- package/dist/index.cjs604.js.map +1 -1
- package/dist/index.cjs605.js +6 -1
- package/dist/index.cjs605.js.map +1 -1
- package/dist/index.cjs606.js +1 -1
- package/dist/index.cjs606.js.map +1 -1
- package/dist/index.cjs607.js +2 -1
- package/dist/index.cjs607.js.map +1 -1
- package/dist/index.cjs608.js +3 -1
- package/dist/index.cjs608.js.map +1 -1
- package/dist/index.cjs609.js +1 -1
- package/dist/index.cjs609.js.map +1 -1
- package/dist/index.cjs610.js +1 -1
- package/dist/index.cjs610.js.map +1 -1
- package/dist/index.cjs611.js +1 -1
- package/dist/index.cjs611.js.map +1 -1
- package/dist/index.cjs612.js +1 -1
- package/dist/index.cjs612.js.map +1 -1
- package/dist/index.cjs613.js +1 -1
- package/dist/index.cjs613.js.map +1 -1
- package/dist/index.cjs614.js +1 -1
- package/dist/index.cjs614.js.map +1 -1
- package/dist/index.cjs615.js +1 -1
- package/dist/index.cjs615.js.map +1 -1
- package/dist/index.cjs616.js +1 -1
- package/dist/index.cjs616.js.map +1 -1
- package/dist/index.cjs617.js +1 -1
- package/dist/index.cjs617.js.map +1 -1
- package/dist/index.cjs618.js +1 -1
- package/dist/index.cjs618.js.map +1 -1
- package/dist/index.cjs619.js +1 -1
- package/dist/index.cjs619.js.map +1 -1
- package/dist/index.cjs620.js +1 -1
- package/dist/index.cjs620.js.map +1 -1
- package/dist/index.cjs621.js +1 -1
- package/dist/index.cjs621.js.map +1 -1
- package/dist/index.cjs622.js +1 -1
- package/dist/index.cjs622.js.map +1 -1
- package/dist/index.cjs623.js +1 -1
- package/dist/index.cjs623.js.map +1 -1
- package/dist/index.cjs624.js +1 -1
- package/dist/index.cjs624.js.map +1 -1
- package/dist/index.cjs625.js +1 -1
- package/dist/index.cjs625.js.map +1 -1
- package/dist/index.cjs626.js +1 -1
- package/dist/index.cjs626.js.map +1 -1
- package/dist/index.cjs627.js +1 -1
- package/dist/index.cjs627.js.map +1 -1
- package/dist/index.cjs628.js +1 -1
- package/dist/index.cjs628.js.map +1 -1
- package/dist/index.cjs629.js +1 -1
- package/dist/index.cjs629.js.map +1 -1
- package/dist/index.cjs630.js +1 -1
- package/dist/index.cjs630.js.map +1 -1
- package/dist/index.cjs631.js +1 -1
- package/dist/index.cjs631.js.map +1 -1
- package/dist/index.cjs632.js +1 -1
- package/dist/index.cjs632.js.map +1 -1
- package/dist/index.cjs633.js +1 -4
- package/dist/index.cjs633.js.map +1 -1
- package/dist/index.cjs634.js +1 -1
- package/dist/index.cjs634.js.map +1 -1
- package/dist/index.cjs635.js +1 -5
- package/dist/index.cjs635.js.map +1 -1
- package/dist/index.cjs636.js +1 -1
- package/dist/index.cjs636.js.map +1 -1
- package/dist/index.cjs637.js +1 -1
- package/dist/index.cjs637.js.map +1 -1
- package/dist/index.cjs638.js +1 -1
- package/dist/index.cjs638.js.map +1 -1
- package/dist/index.cjs639.js +1 -1
- package/dist/index.cjs639.js.map +1 -1
- package/dist/index.cjs640.js +1 -1
- package/dist/index.cjs640.js.map +1 -1
- package/dist/index.cjs641.js +1 -1
- package/dist/index.cjs641.js.map +1 -1
- package/dist/index.cjs642.js +1 -1
- package/dist/index.cjs642.js.map +1 -1
- package/dist/index.cjs643.js +1 -1
- package/dist/index.cjs643.js.map +1 -1
- package/dist/index.cjs644.js +1 -1
- package/dist/index.cjs644.js.map +1 -1
- package/dist/index.cjs645.js +1 -1
- package/dist/index.cjs645.js.map +1 -1
- package/dist/index.cjs646.js +1 -1
- package/dist/index.cjs646.js.map +1 -1
- package/dist/index.cjs647.js +1 -1
- package/dist/index.cjs647.js.map +1 -1
- package/dist/index.cjs648.js +1 -1
- package/dist/index.cjs648.js.map +1 -1
- package/dist/index.cjs649.js +1 -38
- package/dist/index.cjs649.js.map +1 -1
- package/dist/index.cjs650.js +7 -1
- package/dist/index.cjs650.js.map +1 -1
- package/dist/index.cjs651.js +1 -1
- package/dist/index.cjs651.js.map +1 -1
- package/dist/index.cjs652.js +1 -1
- package/dist/index.cjs652.js.map +1 -1
- package/dist/index.cjs653.js +1 -1
- package/dist/index.cjs653.js.map +1 -1
- package/dist/index.cjs654.js +2 -1
- package/dist/index.cjs654.js.map +1 -1
- package/dist/index.cjs655.js +1 -1
- package/dist/index.cjs655.js.map +1 -1
- package/dist/index.cjs656.js +2 -1
- package/dist/index.cjs656.js.map +1 -1
- package/dist/index.cjs657.js +3 -1
- package/dist/index.cjs657.js.map +1 -1
- package/dist/index.cjs658.js +4 -1
- package/dist/index.cjs658.js.map +1 -1
- package/dist/index.cjs659.js +1 -1
- package/dist/index.cjs659.js.map +1 -1
- package/dist/index.cjs660.js +1 -1
- package/dist/index.cjs660.js.map +1 -1
- package/dist/index.cjs661.js +1 -1
- package/dist/index.cjs661.js.map +1 -1
- package/dist/index.cjs662.js +1 -1
- package/dist/index.cjs662.js.map +1 -1
- package/dist/index.cjs663.js +1 -1
- package/dist/index.cjs663.js.map +1 -1
- package/dist/index.cjs664.js +1 -1
- package/dist/index.cjs664.js.map +1 -1
- package/dist/index.cjs665.js +2 -0
- package/dist/index.cjs665.js.map +1 -0
- package/dist/index.cjs666.js +2 -0
- package/dist/index.cjs666.js.map +1 -0
- package/dist/index.cjs667.js +2 -0
- package/dist/index.cjs667.js.map +1 -0
- package/dist/index.cjs668.js +5 -0
- package/dist/index.cjs668.js.map +1 -0
- package/dist/index.cjs669.js +2 -0
- package/dist/index.cjs669.js.map +1 -0
- package/dist/index.cjs670.js +2 -0
- package/dist/index.cjs670.js.map +1 -0
- package/dist/index.cjs671.js +2 -0
- package/dist/index.cjs671.js.map +1 -0
- package/dist/index.cjs672.js +2 -0
- package/dist/index.cjs672.js.map +1 -0
- package/dist/index.cjs673.js +2 -0
- package/dist/index.cjs673.js.map +1 -0
- package/dist/index.cjs674.js +2 -0
- package/dist/index.cjs674.js.map +1 -0
- package/dist/index.cjs675.js +2 -0
- package/dist/index.cjs675.js.map +1 -0
- package/dist/index.cjs676.js +2 -0
- package/dist/index.cjs676.js.map +1 -0
- package/dist/index.cjs677.js +3 -0
- package/dist/index.cjs677.js.map +1 -0
- package/dist/index.cjs678.js +2 -0
- package/dist/index.cjs678.js.map +1 -0
- package/dist/index.cjs679.js +2 -0
- package/dist/index.cjs679.js.map +1 -0
- package/dist/index.cjs680.js +2 -0
- package/dist/index.cjs680.js.map +1 -0
- package/dist/index.cjs681.js +2 -0
- package/dist/index.cjs681.js.map +1 -0
- package/dist/index.cjs682.js +2 -0
- package/dist/index.cjs682.js.map +1 -0
- package/dist/index.cjs683.js +2 -0
- package/dist/index.cjs683.js.map +1 -0
- package/dist/index.cjs684.js +2 -0
- package/dist/index.cjs684.js.map +1 -0
- package/dist/index.cjs685.js +2 -0
- package/dist/index.cjs685.js.map +1 -0
- package/dist/index.cjs686.js +2 -0
- package/dist/index.cjs686.js.map +1 -0
- package/dist/index.cjs687.js +2 -0
- package/dist/index.cjs687.js.map +1 -0
- package/dist/index.cjs688.js +2 -0
- package/dist/index.cjs688.js.map +1 -0
- package/dist/index.cjs689.js +6 -0
- package/dist/index.cjs689.js.map +1 -0
- package/dist/index.cjs690.js +2 -0
- package/dist/index.cjs690.js.map +1 -0
- package/dist/index.cjs691.js +13 -0
- package/dist/index.cjs691.js.map +1 -0
- package/dist/index.cjs692.js +2 -0
- package/dist/index.cjs692.js.map +1 -0
- package/dist/index.cjs693.js +2 -0
- package/dist/index.cjs693.js.map +1 -0
- package/dist/index.cjs694.js +6 -0
- package/dist/index.cjs694.js.map +1 -0
- package/dist/index.cjs695.js +2 -0
- package/dist/index.cjs695.js.map +1 -0
- package/dist/index.cjs696.js +2 -0
- package/dist/index.cjs696.js.map +1 -0
- package/dist/index.cjs697.js +2 -0
- package/dist/index.cjs697.js.map +1 -0
- package/dist/index.cjs698.js +2 -0
- package/dist/index.cjs698.js.map +1 -0
- package/dist/index.cjs699.js +2 -0
- package/dist/index.cjs699.js.map +1 -0
- package/dist/index.cjs700.js +2 -0
- package/dist/index.cjs700.js.map +1 -0
- package/dist/index.cjs701.js +2 -0
- package/dist/index.cjs701.js.map +1 -0
- package/dist/index.cjs702.js +2 -0
- package/dist/index.cjs702.js.map +1 -0
- package/dist/index.cjs703.js +2 -0
- package/dist/index.cjs703.js.map +1 -0
- package/dist/index.cjs704.js +2 -0
- package/dist/index.cjs704.js.map +1 -0
- package/dist/index.cjs705.js +2 -0
- package/dist/index.cjs705.js.map +1 -0
- package/dist/index.cjs706.js +2 -0
- package/dist/index.cjs706.js.map +1 -0
- package/dist/index.cjs707.js +2 -0
- package/dist/index.cjs707.js.map +1 -0
- package/dist/index.cjs708.js +39 -0
- package/dist/index.cjs708.js.map +1 -0
- package/dist/index.cjs709.js +2 -0
- package/dist/index.cjs709.js.map +1 -0
- package/dist/index.cjs710.js +2 -0
- package/dist/index.cjs710.js.map +1 -0
- package/dist/index.cjs711.js +2 -0
- package/dist/index.cjs711.js.map +1 -0
- package/dist/index.cjs712.js +2 -0
- package/dist/index.cjs712.js.map +1 -0
- package/dist/index.cjs713.js +2 -0
- package/dist/index.cjs713.js.map +1 -0
- package/dist/index.cjs714.js +2 -0
- package/dist/index.cjs714.js.map +1 -0
- package/dist/index.cjs715.js +2 -0
- package/dist/index.cjs715.js.map +1 -0
- package/dist/index.cjs716.js +2 -0
- package/dist/index.cjs716.js.map +1 -0
- package/dist/index.cjs717.js +2 -0
- package/dist/index.cjs717.js.map +1 -0
- package/dist/index.cjs718.js +2 -0
- package/dist/index.cjs718.js.map +1 -0
- package/dist/index.cjs719.js +2 -0
- package/dist/index.cjs719.js.map +1 -0
- package/dist/index.cjs720.js +2 -0
- package/dist/index.cjs720.js.map +1 -0
- package/dist/index.cjs721.js +2 -0
- package/dist/index.cjs721.js.map +1 -0
- package/dist/index.cjs722.js +2 -0
- package/dist/index.cjs722.js.map +1 -0
- package/dist/index.cjs723.js +2 -0
- package/dist/index.cjs723.js.map +1 -0
- package/dist/index.cjs724.js +2 -0
- package/dist/index.cjs724.js.map +1 -0
- package/dist/index.cjs725.js +2 -0
- package/dist/index.cjs725.js.map +1 -0
- package/dist/index.cjs726.js +2 -0
- package/dist/index.cjs726.js.map +1 -0
- package/dist/index.cjs727.js +2 -0
- package/dist/index.cjs727.js.map +1 -0
- package/dist/index.cjs728.js +2 -0
- package/dist/index.cjs728.js.map +1 -0
- package/dist/index.cjs729.js +2 -0
- package/dist/index.cjs729.js.map +1 -0
- package/dist/index.cjs730.js +2 -0
- package/dist/index.cjs730.js.map +1 -0
- package/dist/index.cjs731.js +2 -0
- package/dist/index.cjs731.js.map +1 -0
- package/dist/index.cjs732.js +2 -0
- package/dist/index.cjs732.js.map +1 -0
- package/dist/index.cjs733.js +2 -0
- package/dist/index.cjs733.js.map +1 -0
- package/dist/index.cjs734.js +2 -0
- package/dist/index.cjs734.js.map +1 -0
- package/dist/index.cjs735.js +2 -0
- package/dist/index.cjs735.js.map +1 -0
- package/dist/index.cjs736.js +2 -0
- package/dist/index.cjs736.js.map +1 -0
- package/dist/index.cjs737.js +2 -0
- package/dist/index.cjs737.js.map +1 -0
- package/dist/index.cjs738.js +2 -0
- package/dist/index.cjs738.js.map +1 -0
- package/dist/index.cjs739.js +2 -0
- package/dist/index.cjs739.js.map +1 -0
- package/dist/index.cjs740.js +2 -0
- package/dist/index.cjs740.js.map +1 -0
- package/dist/index.cjs741.js +2 -0
- package/dist/index.cjs741.js.map +1 -0
- package/dist/index.cjs742.js +2 -0
- package/dist/index.cjs742.js.map +1 -0
- package/dist/index.cjs743.js +2 -0
- package/dist/index.cjs743.js.map +1 -0
- package/dist/index.cjs744.js +2 -0
- package/dist/index.cjs744.js.map +1 -0
- package/dist/index.cjs745.js +2 -0
- package/dist/index.cjs745.js.map +1 -0
- package/dist/index.cjs746.js +2 -0
- package/dist/index.cjs746.js.map +1 -0
- package/dist/index.cjs747.js +2 -0
- package/dist/index.cjs747.js.map +1 -0
- package/dist/index.cjs748.js +2 -0
- package/dist/index.cjs748.js.map +1 -0
- package/dist/index.cjs749.js +2 -0
- package/dist/index.cjs749.js.map +1 -0
- package/dist/index.cjs750.js +2 -0
- package/dist/index.cjs750.js.map +1 -0
- package/dist/index.cjs751.js +2 -0
- package/dist/index.cjs751.js.map +1 -0
- package/dist/index.cjs752.js +2 -0
- package/dist/index.cjs752.js.map +1 -0
- package/dist/index.cjs753.js +2 -0
- package/dist/index.cjs753.js.map +1 -0
- package/dist/index.cjs754.js +2 -0
- package/dist/index.cjs754.js.map +1 -0
- package/dist/index.cjs755.js +2 -0
- package/dist/index.cjs755.js.map +1 -0
- package/dist/index.cjs756.js +2 -0
- package/dist/index.cjs756.js.map +1 -0
- package/dist/index.cjs757.js +2 -0
- package/dist/index.cjs757.js.map +1 -0
- package/dist/index.cjs758.js +2 -0
- package/dist/index.cjs758.js.map +1 -0
- package/dist/index.cjs759.js +2 -0
- package/dist/index.cjs759.js.map +1 -0
- package/dist/index.cjs760.js +2 -0
- package/dist/index.cjs760.js.map +1 -0
- package/dist/index.cjs761.js +2 -0
- package/dist/index.cjs761.js.map +1 -0
- package/dist/index.cjs762.js +2 -0
- package/dist/index.cjs762.js.map +1 -0
- package/dist/index.es146.js +9 -11
- package/dist/index.es146.js.map +1 -1
- package/dist/index.es238.js +1 -1
- package/dist/index.es249.js +1 -1
- package/dist/index.es251.js +1 -1
- package/dist/index.es252.js +1 -1
- package/dist/index.es263.js +4 -4
- package/dist/index.es268.js +1 -1
- package/dist/index.es272.js +14 -14
- package/dist/index.es297.js +8 -8
- package/dist/index.es310.js +3 -3
- package/dist/index.es311.js +2 -2
- package/dist/index.es312.js +3 -3
- package/dist/index.es353.js +7 -7
- package/dist/index.es362.js +1 -1
- package/dist/index.es381.js +6 -6
- package/dist/index.es382.js +2 -2
- package/dist/index.es405.js +7 -7
- package/dist/index.es410.js +8 -8
- package/dist/index.es419.js +1 -1
- package/dist/index.es427.js +19 -5
- package/dist/index.es427.js.map +1 -1
- package/dist/index.es433.js +3 -3
- package/dist/index.es447.js +20 -14
- package/dist/index.es447.js.map +1 -1
- package/dist/{index.es455.js → index.es448.js} +1 -1
- package/dist/index.es448.js.map +1 -0
- package/dist/{index.es456.js → index.es449.js} +1 -1
- package/dist/{index.es456.js.map → index.es449.js.map} +1 -1
- package/dist/index.es450.js +212 -66
- package/dist/index.es450.js.map +1 -1
- package/dist/index.es451.js +72 -25
- package/dist/index.es451.js.map +1 -1
- package/dist/index.es452.js +25 -6
- package/dist/index.es452.js.map +1 -1
- package/dist/index.es453.js +2 -57
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es454.js +14 -20
- package/dist/index.es454.js.map +1 -1
- package/dist/index.es460.js +68 -2
- package/dist/index.es460.js.map +1 -1
- package/dist/index.es461.js +26 -10
- package/dist/index.es461.js.map +1 -1
- package/dist/index.es462.js +6 -51
- package/dist/index.es462.js.map +1 -1
- package/dist/index.es463.js +52 -120
- package/dist/index.es463.js.map +1 -1
- package/dist/index.es466.js +13 -67
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +10 -33
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +50 -13
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +124 -8
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es470.js +133 -48
- package/dist/index.es470.js.map +1 -1
- package/dist/{index.es465.js → index.es471.js} +3 -3
- package/dist/{index.es465.js.map → index.es471.js.map} +1 -1
- package/dist/index.es472.js +72 -0
- package/dist/index.es472.js.map +1 -0
- package/dist/index.es473.js +37 -0
- package/dist/index.es473.js.map +1 -0
- package/dist/index.es474.js +18 -0
- package/dist/index.es474.js.map +1 -0
- package/dist/index.es475.js +12 -0
- package/dist/index.es475.js.map +1 -0
- package/dist/index.es476.js +53 -0
- package/dist/index.es476.js.map +1 -0
- package/dist/index.es481.js +5 -24
- package/dist/index.es481.js.map +1 -1
- package/dist/index.es482.js +28 -0
- package/dist/index.es482.js.map +1 -0
- package/dist/{index.es493.js → index.es484.js} +3 -3
- package/dist/{index.es493.js.map → index.es484.js.map} +1 -1
- package/dist/{index.es494.js → index.es485.js} +3 -3
- package/dist/{index.es494.js.map → index.es485.js.map} +1 -1
- package/dist/{index.es495.js → index.es486.js} +2 -2
- package/dist/{index.es495.js.map → index.es486.js.map} +1 -1
- package/dist/index.es500.js +621 -4
- package/dist/index.es500.js.map +1 -1
- package/dist/index.es503.js +8 -0
- package/dist/index.es503.js.map +1 -0
- package/dist/index.es542.js +37 -0
- package/dist/index.es542.js.map +1 -0
- package/dist/index.es545.js +3654 -516
- package/dist/index.es545.js.map +1 -1
- package/dist/index.es546.js +2 -4
- package/dist/index.es546.js.map +1 -1
- package/dist/index.es547.js +4 -11
- package/dist/index.es547.js.map +1 -1
- package/dist/index.es548.js +9 -10
- package/dist/index.es548.js.map +1 -1
- package/dist/index.es549.js +11 -9
- package/dist/index.es549.js.map +1 -1
- package/dist/index.es550.js +5 -184
- package/dist/index.es550.js.map +1 -1
- package/dist/index.es551.js +5 -4
- package/dist/index.es551.js.map +1 -1
- package/dist/index.es552.js +8 -131
- package/dist/index.es552.js.map +1 -1
- package/dist/index.es553.js +180 -42
- package/dist/index.es553.js.map +1 -1
- package/dist/index.es554.js +3 -13
- package/dist/index.es554.js.map +1 -1
- package/dist/index.es555.js +127 -213
- package/dist/index.es555.js.map +1 -1
- package/dist/index.es556.js +2 -183
- package/dist/index.es556.js.map +1 -1
- package/dist/index.es557.js +44 -32
- package/dist/index.es557.js.map +1 -1
- package/dist/index.es558.js +13 -3674
- package/dist/index.es558.js.map +1 -1
- package/dist/index.es559.js +219 -2
- package/dist/index.es559.js.map +1 -1
- package/dist/index.es560.js +183 -2
- package/dist/index.es560.js.map +1 -1
- package/dist/index.es598.js +3 -3
- package/dist/index.es599.js +3 -3
- package/dist/index.es600.js +5 -205
- package/dist/index.es600.js.map +1 -1
- package/dist/index.es601.js +536 -21
- package/dist/index.es601.js.map +1 -1
- package/dist/index.es602.js +683 -387
- package/dist/index.es602.js.map +1 -1
- package/dist/index.es603.js +70 -5
- package/dist/index.es603.js.map +1 -1
- package/dist/index.es604.js +9 -16
- package/dist/index.es604.js.map +1 -1
- package/dist/index.es605.js +21 -13
- package/dist/index.es605.js.map +1 -1
- package/dist/index.es606.js +74 -33
- package/dist/index.es606.js.map +1 -1
- package/dist/index.es607.js +69 -5
- package/dist/index.es607.js.map +1 -1
- package/dist/index.es608.js +50 -2
- package/dist/index.es608.js.map +1 -1
- package/dist/index.es609.js +83 -3
- package/dist/index.es609.js.map +1 -1
- package/dist/index.es610.js +205 -6
- package/dist/index.es610.js.map +1 -1
- package/dist/index.es611.js +22 -6
- package/dist/index.es611.js.map +1 -1
- package/dist/index.es612.js +400 -5
- package/dist/index.es612.js.map +1 -1
- package/dist/index.es613.js +5 -32
- package/dist/index.es613.js.map +1 -1
- package/dist/index.es614.js +16 -242
- package/dist/index.es614.js.map +1 -1
- package/dist/index.es615.js +13 -4
- package/dist/index.es615.js.map +1 -1
- package/dist/index.es616.js +35 -4
- package/dist/index.es616.js.map +1 -1
- package/dist/index.es617.js +5 -10
- package/dist/index.es617.js.map +1 -1
- package/dist/index.es618.js +2 -56
- package/dist/index.es618.js.map +1 -1
- package/dist/index.es619.js +3 -8
- package/dist/index.es619.js.map +1 -1
- package/dist/index.es620.js +6 -5
- package/dist/index.es620.js.map +1 -1
- package/dist/index.es621.js +5 -531
- package/dist/index.es621.js.map +1 -1
- package/dist/index.es622.js +5 -14
- package/dist/index.es622.js.map +1 -1
- package/dist/index.es623.js +32 -2
- package/dist/index.es623.js.map +1 -1
- package/dist/index.es624.js +240 -35
- package/dist/index.es624.js.map +1 -1
- package/dist/index.es625.js +4 -2
- package/dist/index.es625.js.map +1 -1
- package/dist/index.es626.js +4 -271
- package/dist/index.es626.js.map +1 -1
- package/dist/index.es627.js +10 -3
- package/dist/index.es627.js.map +1 -1
- package/dist/index.es628.js +55 -29
- package/dist/index.es628.js.map +1 -1
- package/dist/index.es629.js +7 -82
- package/dist/index.es629.js.map +1 -1
- package/dist/index.es630.js +6 -5
- package/dist/index.es630.js.map +1 -1
- package/dist/index.es631.js +532 -3
- package/dist/index.es631.js.map +1 -1
- package/dist/index.es632.js +14 -24
- package/dist/index.es632.js.map +1 -1
- package/dist/index.es633.js +2 -110
- package/dist/index.es633.js.map +1 -1
- package/dist/index.es634.js +36 -15
- package/dist/index.es634.js.map +1 -1
- package/dist/index.es635.js +2 -40
- package/dist/index.es635.js.map +1 -1
- package/dist/index.es636.js +272 -2
- package/dist/index.es636.js.map +1 -1
- package/dist/index.es637.js +3 -5
- package/dist/index.es637.js.map +1 -1
- package/dist/index.es638.js +30 -16
- package/dist/index.es638.js.map +1 -1
- package/dist/index.es639.js +2 -6
- package/dist/index.es639.js.map +1 -1
- package/dist/index.es640.js +258 -2
- package/dist/index.es640.js.map +1 -1
- package/dist/index.es641.js +85 -2
- package/dist/index.es641.js.map +1 -1
- package/dist/index.es642.js +341 -2
- package/dist/index.es642.js.map +1 -1
- package/dist/index.es643.js +16 -2
- package/dist/index.es643.js.map +1 -1
- package/dist/index.es644.js +41 -2
- package/dist/index.es644.js.map +1 -1
- package/dist/index.es645.js +2 -3
- package/dist/index.es645.js.map +1 -1
- package/dist/index.es646.js +2 -2
- package/dist/index.es646.js.map +1 -1
- package/dist/index.es647.js +19 -3
- package/dist/index.es647.js.map +1 -1
- package/dist/index.es648.js +12 -63
- package/dist/index.es648.js.map +1 -1
- package/dist/index.es649.js +218 -66
- package/dist/index.es649.js.map +1 -1
- package/dist/index.es650.js +54 -9
- package/dist/index.es650.js.map +1 -1
- package/dist/index.es651.js +16 -13
- package/dist/index.es651.js.map +1 -1
- package/dist/index.es652.js +20 -65
- package/dist/index.es652.js.map +1 -1
- package/dist/index.es653.js +43 -3
- package/dist/index.es653.js.map +1 -1
- package/dist/index.es654.js +122 -510
- package/dist/index.es654.js.map +1 -1
- package/dist/index.es655.js +342 -126
- package/dist/index.es655.js.map +1 -1
- package/dist/index.es656.js +20 -131
- package/dist/index.es656.js.map +1 -1
- package/dist/index.es657.js +257 -3
- package/dist/index.es657.js.map +1 -1
- package/dist/index.es658.js +23 -2
- package/dist/index.es658.js.map +1 -1
- package/dist/index.es659.js +40 -3
- package/dist/index.es659.js.map +1 -1
- package/dist/index.es660.js +27 -22
- package/dist/index.es660.js.map +1 -1
- package/dist/index.es661.js +36 -13
- package/dist/index.es661.js.map +1 -1
- package/dist/index.es662.js +21 -27
- package/dist/index.es662.js.map +1 -1
- package/dist/index.es663.js +12 -5
- package/dist/index.es663.js.map +1 -1
- package/dist/index.es664.js +23 -23
- package/dist/index.es664.js.map +1 -1
- package/dist/index.es665.js +8 -0
- package/dist/index.es665.js.map +1 -0
- package/dist/index.es666.js +6 -0
- package/dist/index.es666.js.map +1 -0
- package/dist/index.es667.js +27 -0
- package/dist/index.es667.js.map +1 -0
- package/dist/index.es668.js +113 -0
- package/dist/index.es668.js.map +1 -0
- package/dist/index.es669.js +19 -0
- package/dist/index.es669.js.map +1 -0
- package/dist/index.es670.js +5 -0
- package/dist/index.es670.js.map +1 -0
- package/dist/index.es671.js +228 -0
- package/dist/index.es671.js.map +1 -0
- package/dist/index.es672.js +5 -0
- package/dist/index.es672.js.map +1 -0
- package/dist/index.es673.js +360 -0
- package/dist/index.es673.js.map +1 -0
- package/dist/index.es674.js +5 -0
- package/dist/index.es674.js.map +1 -0
- package/dist/index.es675.js +5 -0
- package/dist/index.es675.js.map +1 -0
- package/dist/index.es676.js +5 -0
- package/dist/index.es676.js.map +1 -0
- package/dist/index.es677.js +37 -0
- package/dist/index.es677.js.map +1 -0
- package/dist/index.es678.js +49 -0
- package/dist/index.es678.js.map +1 -0
- package/dist/index.es679.js +62 -0
- package/dist/index.es679.js.map +1 -0
- package/dist/index.es680.js +64 -0
- package/dist/index.es680.js.map +1 -0
- package/dist/index.es681.js +76 -0
- package/dist/index.es681.js.map +1 -0
- package/dist/index.es682.js +55 -0
- package/dist/index.es682.js.map +1 -0
- package/dist/index.es683.js +93 -0
- package/dist/index.es683.js.map +1 -0
- package/dist/index.es684.js +9 -0
- package/dist/index.es684.js.map +1 -0
- package/dist/index.es685.js +14 -0
- package/dist/index.es685.js.map +1 -0
- package/dist/index.es686.js +7 -0
- package/dist/index.es686.js.map +1 -0
- package/dist/index.es687.js +93 -0
- package/dist/index.es687.js.map +1 -0
- package/dist/index.es688.js +21 -0
- package/dist/index.es688.js.map +1 -0
- package/dist/index.es689.js +172 -0
- package/dist/index.es689.js.map +1 -0
- package/dist/index.es690.js +13 -0
- package/dist/index.es690.js.map +1 -0
- package/dist/index.es691.js +197 -0
- package/dist/index.es691.js.map +1 -0
- package/dist/index.es692.js +323 -0
- package/dist/index.es692.js.map +1 -0
- package/dist/index.es693.js +95 -0
- package/dist/index.es693.js.map +1 -0
- package/dist/index.es694.js +43 -0
- package/dist/index.es694.js.map +1 -0
- package/dist/index.es695.js +5 -0
- package/dist/index.es695.js.map +1 -0
- package/dist/index.es696.js +8 -0
- package/dist/index.es696.js.map +1 -0
- package/dist/index.es697.js +9 -0
- package/dist/index.es697.js.map +1 -0
- package/dist/index.es698.js +19 -0
- package/dist/index.es698.js.map +1 -0
- package/dist/index.es699.js +5 -0
- package/dist/index.es699.js.map +1 -0
- package/dist/index.es700.js +5 -0
- package/dist/index.es700.js.map +1 -0
- package/dist/index.es701.js +5 -0
- package/dist/index.es701.js.map +1 -0
- package/dist/index.es702.js +5 -0
- package/dist/index.es702.js.map +1 -0
- package/dist/index.es703.js +5 -0
- package/dist/index.es703.js.map +1 -0
- package/dist/index.es704.js +6 -0
- package/dist/index.es704.js.map +1 -0
- package/dist/index.es705.js +5 -0
- package/dist/index.es705.js.map +1 -0
- package/dist/index.es706.js +7 -0
- package/dist/index.es706.js.map +1 -0
- package/dist/index.es707.js +68 -0
- package/dist/index.es707.js.map +1 -0
- package/dist/index.es708.js +72 -0
- package/dist/index.es708.js.map +1 -0
- package/dist/index.es709.js +12 -0
- package/dist/index.es709.js.map +1 -0
- package/dist/index.es710.js +17 -0
- package/dist/index.es710.js.map +1 -0
- package/dist/index.es711.js +69 -0
- package/dist/index.es711.js.map +1 -0
- package/dist/index.es712.js +5 -0
- package/dist/index.es712.js.map +1 -0
- package/dist/index.es713.js +148 -0
- package/dist/index.es713.js.map +1 -0
- package/dist/index.es714.js +5 -0
- package/dist/index.es714.js.map +1 -0
- package/dist/index.es715.js +5 -0
- package/dist/index.es715.js.map +1 -0
- package/dist/index.es716.js +5 -0
- package/dist/index.es716.js.map +1 -0
- package/dist/index.es717.js +5 -0
- package/dist/index.es717.js.map +1 -0
- package/dist/index.es718.js +5 -0
- package/dist/index.es718.js.map +1 -0
- package/dist/index.es719.js +5 -0
- package/dist/index.es719.js.map +1 -0
- package/dist/index.es720.js +5 -0
- package/dist/index.es720.js.map +1 -0
- package/dist/index.es721.js +14 -0
- package/dist/index.es721.js.map +1 -0
- package/dist/index.es722.js +14 -0
- package/dist/index.es722.js.map +1 -0
- package/dist/index.es723.js +57 -0
- package/dist/index.es723.js.map +1 -0
- package/dist/index.es724.js +5 -0
- package/dist/index.es724.js.map +1 -0
- package/dist/index.es725.js +5 -0
- package/dist/index.es725.js.map +1 -0
- package/dist/index.es726.js +115 -0
- package/dist/index.es726.js.map +1 -0
- package/dist/index.es727.js +5 -0
- package/dist/index.es727.js.map +1 -0
- package/dist/index.es728.js +5 -0
- package/dist/index.es728.js.map +1 -0
- package/dist/index.es729.js +528 -0
- package/dist/index.es729.js.map +1 -0
- package/dist/index.es730.js +131 -0
- package/dist/index.es730.js.map +1 -0
- package/dist/index.es731.js +137 -0
- package/dist/index.es731.js.map +1 -0
- package/dist/index.es732.js +7 -0
- package/dist/index.es732.js.map +1 -0
- package/dist/index.es733.js +6 -0
- package/dist/index.es733.js.map +1 -0
- package/dist/index.es734.js +5 -0
- package/dist/index.es734.js.map +1 -0
- package/dist/index.es735.js +7 -0
- package/dist/index.es735.js.map +1 -0
- package/dist/index.es736.js +26 -0
- package/dist/index.es736.js.map +1 -0
- package/dist/index.es737.js +5 -0
- package/dist/index.es737.js.map +1 -0
- package/dist/index.es738.js +91 -0
- package/dist/index.es738.js.map +1 -0
- package/dist/index.es739.js +111 -0
- package/dist/index.es739.js.map +1 -0
- package/dist/index.es740.js +5 -0
- package/dist/index.es740.js.map +1 -0
- package/dist/index.es741.js +5 -0
- package/dist/index.es741.js.map +1 -0
- package/dist/index.es742.js +5 -0
- package/dist/index.es742.js.map +1 -0
- package/dist/index.es743.js +16 -0
- package/dist/index.es743.js.map +1 -0
- package/dist/index.es744.js +31 -0
- package/dist/index.es744.js.map +1 -0
- package/dist/index.es745.js +8 -0
- package/dist/index.es745.js.map +1 -0
- package/dist/index.es746.js +5 -0
- package/dist/index.es746.js.map +1 -0
- package/dist/index.es747.js +228 -0
- package/dist/index.es747.js.map +1 -0
- package/dist/index.es748.js +50 -0
- package/dist/index.es748.js.map +1 -0
- package/dist/index.es749.js +52 -0
- package/dist/index.es749.js.map +1 -0
- package/dist/index.es750.js +5 -0
- package/dist/index.es750.js.map +1 -0
- package/dist/index.es751.js +26 -0
- package/dist/index.es751.js.map +1 -0
- package/dist/index.es752.js +5 -0
- package/dist/index.es752.js.map +1 -0
- package/dist/index.es753.js +14 -0
- package/dist/index.es753.js.map +1 -0
- package/dist/index.es754.js +14 -0
- package/dist/index.es754.js.map +1 -0
- package/dist/index.es755.js +57 -0
- package/dist/index.es755.js.map +1 -0
- package/dist/index.es756.js +5 -0
- package/dist/index.es756.js.map +1 -0
- package/dist/index.es757.js +16 -0
- package/dist/index.es757.js.map +1 -0
- package/dist/index.es758.js +5 -0
- package/dist/index.es758.js.map +1 -0
- package/dist/index.es759.js +5 -0
- package/dist/index.es759.js.map +1 -0
- package/dist/index.es760.js +5 -0
- package/dist/index.es760.js.map +1 -0
- package/dist/index.es761.js +5 -0
- package/dist/index.es761.js.map +1 -0
- package/dist/index.es762.js +5 -0
- package/dist/index.es762.js.map +1 -0
- package/dist/sections/Slider/Slider.css +1 -1
- package/package.json +3 -1
- package/dist/index.cjs455.js.map +0 -1
- package/dist/index.cjs457.js +0 -2
- package/dist/index.cjs457.js.map +0 -1
- package/dist/index.cjs458.js +0 -2
- package/dist/index.cjs458.js.map +0 -1
- package/dist/index.cjs459.js +0 -2
- package/dist/index.cjs459.js.map +0 -1
- package/dist/index.cjs464.js +0 -2
- package/dist/index.cjs464.js.map +0 -1
- package/dist/index.cjs477.js +0 -2
- package/dist/index.cjs477.js.map +0 -1
- package/dist/index.cjs480.js +0 -2
- package/dist/index.cjs480.js.map +0 -1
- package/dist/index.cjs497.js +0 -2
- package/dist/index.cjs497.js.map +0 -1
- package/dist/index.cjs544.js +0 -2
- package/dist/index.cjs544.js.map +0 -1
- package/dist/index.es455.js.map +0 -1
- package/dist/index.es457.js +0 -216
- package/dist/index.es457.js.map +0 -1
- package/dist/index.es458.js +0 -77
- package/dist/index.es458.js.map +0 -1
- package/dist/index.es459.js +0 -9
- package/dist/index.es459.js.map +0 -1
- package/dist/index.es464.js +0 -138
- package/dist/index.es464.js.map +0 -1
- package/dist/index.es477.js +0 -18
- package/dist/index.es477.js.map +0 -1
- package/dist/index.es480.js +0 -9
- package/dist/index.es480.js.map +0 -1
- package/dist/index.es497.js +0 -625
- package/dist/index.es497.js.map +0 -1
- package/dist/index.es544.js +0 -9
- package/dist/index.es544.js.map +0 -1
package/dist/index.cjs450.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs450.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","baseScope","scopeHooks","createScope2","overrideScopes","nextScopes","nextScopes2","useScope","currentScope"],"mappings":"kaAGA,SAASA,EAAeC,EAAmBC,EAAgB,CACzD,MAAMC,EAAUC,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3,"file":"index.cjs450.js","sources":["../node_modules/@anoki/fse-common/dist/constants.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.ServicePageUrlsEnum = exports.FaqTypesEnum = exports.EntitiesEnum = exports.LanguagesValues = exports.LanguagesEnum = exports.CategoriesUrlEnum = exports.EntityTypeTypesEnum = exports.ElementTypeEnum = exports.RegisterTypeEnum = exports.OrganizationStructureEnum = exports.ContestTypeEnum = exports.AnnouncementTypeEnum = exports.SectionTypeEnum = exports.PageTypeEnum = exports.AggregationPageTypeEnum = exports.ProcedureTypeEnum = exports.PublicationTypeEnum = exports.ReferenceEntityTypeEnum = exports.RenderTypeEnum = void 0;\nexports.RenderTypeEnum = {\n STATIC: 'Static',\n DYNAMIC: 'Dynamic',\n};\nexports.ReferenceEntityTypeEnum = {\n NEWS: 'News',\n SERVICE: 'Service',\n PAGE: 'Page',\n AGGREGATION_PAGE: 'AggregationPage',\n AGGREGATION_ITEM: 'AggregationItem',\n EVENT: 'Event',\n STRUCTURE: 'Structure',\n DOCUMENT: 'Document',\n CATEGORY: 'Category',\n ENTITY_TYPE: 'EntityType',\n FAQ: 'Faq',\n};\nexports.PublicationTypeEnum = {\n ANNOUNCEMENT: 'Announcement',\n ALERT: 'Alert',\n};\nexports.ProcedureTypeEnum = {\n OPEN_PROCEDURE: 'OpenProcedure',\n};\nexports.AggregationPageTypeEnum = {\n USER_TYPE: 'UserType',\n THEMATIC: 'Thematic',\n};\nexports.PageTypeEnum = {\n HOME: 'Home',\n STATIC_CONTENT: 'StaticContent',\n SERVICES: 'Services',\n EVENTS: 'Events',\n COMMUNICATION: 'Communication',\n FSE_COMMUNICATION: 'FseCommunication', // Used for FSE Communication main page\n};\n/**\n * These are the section types used to create section on CMS Pages\n * Work in progress, added day by day\n *\n * Each section that have items, used AggregationItem\n */\nexports.SectionTypeEnum = {\n SERVICES: 'SectionServices',\n SUGGESTED_SERVICES: 'SuggestedServices',\n LOGIN: 'Login', // The login section used to display the authentication methods\n WHAT_DO_YOU_NEED: 'WhatDoYouNeed', // Used to display the section \"Di cosa hai bisogno\"\n HOME_SERVICES: 'HomeServices', // Used for home page section \"Scopri cosa puoi fare\"\n SERVICES_BY_ENTITY_TYPE: 'ServicesByEntityType', // Used to display services for specif entityType\n NEED_HELP: 'NeedHelp', // Used to display Need Help section\n RICH_TEXT: 'RichText',\n FOLDER: 'Folder', // Used for amministrazione-trasparente\n FILES: 'Files', // Used for amministrazione-trasparente\n ENTITY_TYPE_ID: 'EntityTypeId', // Used to display entity type id,\n STEPPER_ACCORDION: 'StepperAccordion', // Used to display accordion with stepper\n EDITORIAL_WIDGET_ALERT: 'EditorialWidgetAlert', // Used to display editorial widget alert\n DOCUMENTS: 'Documents', // Used to display documents\n EDITORIAL_WIDGET_ACTION_BANNER: 'EditorialWidgetActionBanner', // U\n TAGS: 'Tags', // Used to display tags\n EDITORIAL_WIDGET: 'EditorialWidget', // Used to display editorial widget (Light/Evidence),\n EDITORIAL_WIDGET_BLOCK_QUOTE: 'EditorialWidgetBlockQuote', // Used to display editorial widget (Block Quote),\n EDITORIAL_WIDGET_CALLOUT: 'EditorialWidgetCallout', // Used to display editorial widget (Callout),\n GENERIC_CAROUSEL: 'GenericCarousel', // Used to display generic carousel\n INSIGHTS: 'InsightsSection', // Used to display insights\n VIDEO: 'Video', // Used to display video\n IMAGES: 'Images', // Used to display images\n VERTICAL_STEPPER_ACCORDION: 'VerticalStepperAccordion', // Used to display vertical stepper accordion\n TABLE_LIST: 'TableList', // Used to display table list\n TABLE_CARD: 'TableCard', // Used to display table card\n CARD_FAQ_CTA_SECTION: 'CardFaqCtaSection',\n CARD_PREVIEW_SECTION: 'CardPreviewSection',\n CARD_FEATURED_SECTION: 'CardFeaturedSection',\n ACCORDION_SECTION: 'AccordionSection',\n FEEDBACK_SECTION: 'FeedbackSection',\n TASK_FORCE_FORM_SECTION: 'TaskForceFormSection',\n SLIDER_SECTION: 'SliderSection', // Used to display slider section in home page and communication page\n COMMUNICATION_TAGS_SECTION: 'CommunicationTagsSection', // Tags section included in communication page\n COMMUNICATION_SEARCH_SECTION: 'CommunicationSearchSection', // Search section included in communication page\n COMMUNICATION_CONTENTS_SECTION: 'CommunicationContentsSection', // Content section included in communication page\n COMMUNICATION_CONTENTS_HOME_SECTION: 'CommunicationContentsHomeSection', // Content section included in home page\n LATEST_CLINICAL_DATA_SECTION: 'LatestClinicalDataSection',\n GP_HOME_SECTION: 'GpHomeSection',\n PROXIES_HOME_SECTION: 'ProxiesHomeSection',\n};\nexports.AnnouncementTypeEnum = {\n TENDER: 'Tender',\n CONTEST: 'Contest',\n PRAETORIAN_REGISTER: 'PraetorianRegister',\n};\nexports.ContestTypeEnum = {\n EXTERNAL: 'External',\n INTERNAL: 'Internal',\n};\nexports.OrganizationStructureEnum = {\n GENERAL_DIRECTION: 'GeneralDirection',\n UO: 'UO',\n PERSONNEL: 'Personnel',\n};\nexports.RegisterTypeEnum = {\n DIRECTOR_DETERMINED: 'DirectorDetermined',\n MANAGER_DETERMINED: 'ManagerDetermined',\n};\nexports.ElementTypeEnum = {\n AVATAR: 'Avatar',\n CARD_BASIC: 'CardBasic',\n CARD_EVENT: 'CardEvent',\n CARD_FEATURED: 'CardFeatured',\n CARD_LIFE: 'CardLife',\n CARD_FILE: 'CardFile',\n CARD_GHOST: 'CardGhost',\n CARD_GUIDE: 'CardGuide',\n CARD_LIST: 'CardList',\n CARD_NEWS: 'CardNews',\n CARD_PEOPLE: 'CardPeople',\n CARD_PLACE: 'CardPlace',\n CARD_SERVICE: 'CardService',\n CARD_USER: 'CardUser',\n CARD_DOCUMENT: 'CardDocument',\n CARD: 'Card',\n CHIP_LINK: 'ChipLink',\n ICONS: 'Icons',\n INDEX: 'Index',\n LINK: 'Link',\n PLACEHOLDER: 'Placeholder',\n TEXT: 'Text',\n RICH_TEXT: 'RichText',\n STEPPER_ITEM: 'StepperItem',\n EDITORIAL_WIDGET_ALERT: 'EditorialWidgetAlert',\n EDITORIAL_WIDGET_ACTION_BANNER: 'EditorialWidgetActionBanner',\n EDITORIAL_WIDGET: 'EditorialWidget',\n EDITORIAL_WIDGET_BLOCK_QUOTE: 'EditorialWidgetBlockQuote',\n EDITORIAL_WIDGET_CALLOUT: 'EditorialWidgetCallout',\n GENERIC_CAROUSEL_ITEM: 'GenericCarouselItem',\n INSIGHT_ITEM: 'InsightItem',\n VIDEO: 'Video',\n IMAGE: 'Image',\n VERTICAL_STEPPER_ITEM: 'VerticalStepperItem',\n TABLE_LIST_ITEM: 'TableListItem',\n TABLE_CARD_ITEM: 'TableCardItem',\n CARD_FAQ_CTA_ITEM: 'CardFaqCtaItem',\n CARD_PREVIEW_ITEM: 'CardPreviewItem',\n CARD_FEATURED_ITEM: 'CardFeaturedItem',\n ACCORDION_ITEM: 'AccordionItem',\n FEEDBACK_ITEM: 'FeedbackItem',\n TASK_FORCE_FORM_ITEM: 'TaskForceFormItem',\n SLIDER_ITEM: 'SliderItem', // Used to display slider section in home page and communication page\n COMMUNICATION_TAGS_ITEM: 'CommunicationTagsItem', // Tags section included in communication page\n COMMUNICATION_SEARCH_ITEM: 'CommunicationSearchItem', // Search section included in communication page\n COMMUNICATION_CONTENTS_ITEM: 'CommunicationContentsItem', // Content section included in communication page\n COMMUNICATION_CONTENTS_HOME_SECTION: 'CommunicationContentsHomeSection', // Content section included in home page\n LATEST_CLINICAL_DATA_SECTION: 'LatestClinicalDataSection',\n GP_HOME_SECTION: 'GpHomeSection',\n};\nexports.EntityTypeTypesEnum = {\n PARENT: 'Parent',\n CHILD: 'Child',\n};\nexports.CategoriesUrlEnum = {\n SERVIZI_E_PRESTAZIONI: 'servizi',\n ASL_COMUNICA: 'ast-comunica',\n AST_COMUNICA: 'ast-comunica',\n STRUTTURE: 'strutture',\n ORGANIZZAZIONE: 'organizzazione',\n COME_FARE_PER: 'come-fare-per',\n FAQ: 'supporto',\n};\nexports.LanguagesEnum = {\n it: 'it',\n en: 'en',\n};\nexports.LanguagesValues = Object.values(exports.LanguagesEnum);\nexports.EntitiesEnum = {\n AGGREGATION_ITEMS: 'aggregation-items',\n AGGREGATION_PAGES: 'aggregation-pages',\n SERVICES: 'services',\n STRUCTURES: 'structures',\n PAGES: 'pages',\n SECTIONS: 'sections',\n ELEMENTS: 'elements',\n NEWS: 'news',\n EVENTS: 'events',\n SETTINGS: 'settings',\n DOCUMENTS: 'documents',\n FAQS: 'faqs',\n DOCUMENT_FOLDERS: 'document-folders',\n};\nexports.FaqTypesEnum = {\n GENERIC_FAQS: 'FAQS Generiche',\n PAGE_FAQS: 'FAQS Pagina',\n};\n/**\n * Bind service as its own page url\n * This is the enum of services available on logged user.\n * Each of these service has itw own custom implementation page\n */\nexports.ServicePageUrlsEnum = {\n DOCTOR: 'medico-di-famiglia',\n FIND_STRUCTURES: 'cerca-una-struttura',\n ARCHIVE: 'tutti-i-documenti',\n HEALTH_PROFILE: 'profilo-della-salute',\n PAYMENTS: 'pagamenti',\n};\n//# sourceMappingURL=constants.js.map"],"names":["exports"],"mappings":"oKACA,OAAO,eAAcA,EAAU,aAAc,CAAE,MAAO,GAAM,EAC5DA,EAAA,oBAA8BA,eAAuBA,EAAA,aAAuBA,EAAA,gBAA0BA,gBAAwBA,EAAA,kBAA4BA,EAAA,oBAA8BA,kBAA0BA,EAAA,iBAA2BA,EAAA,0BAAoCA,kBAA0BA,EAAA,qBAA+BA,EAAA,gBAA0BA,eAAuBA,EAAA,wBAAkCA,EAAA,kBAA4BA,sBAA8BA,EAAA,wBAAkCA,EAAA,eAAyB,OAClhBA,EAAA,eAAyB,CACrB,OAAQ,SACR,QAAS,WAEbA,EAAA,wBAAkC,CAC9B,KAAM,OACN,QAAS,UACT,KAAM,OACN,iBAAkB,kBAClB,iBAAkB,kBAClB,MAAO,QACP,UAAW,YACX,SAAU,WACV,SAAU,WACV,YAAa,aACb,IAAK,OAETA,EAAA,oBAA8B,CAC1B,aAAc,eACd,MAAO,SAEXA,EAAA,kBAA4B,CACxB,eAAgB,iBAEpBA,EAA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Ac,cACd,uBAAwB,uBACxB,+BAAgC,8BAChC,iBAAkB,kBAClB,6BAA8B,4BAC9B,yBAA0B,yBAC1B,sBAAuB,sBACvB,aAAc,cACd,MAAO,QACP,MAAO,QACP,sBAAuB,sBACvB,gBAAiB,gBACjB,gBAAiB,gBACjB,kBAAmB,iBACnB,kBAAmB,kBACnB,mBAAoB,mBACpB,eAAgB,gBAChB,cAAe,eACf,qBAAsB,oBACtB,YAAa,aACb,wBAAyB,wBACzB,0BAA2B,0BAC3B,4BAA6B,4BAC7B,oCAAqC,mCACrC,6BAA8B,4BAC9B,gBAAiB,iBAErBA,EAAA,oBAA8B,CAC1B,OAAQ,SACR,MAAO,SAEXA,EAAA,kBAA4B,CACxB,sBAAuB,UACvB,aAAc,eACd,aAAc,eACd,UAAW,YACX,eAAgB,iBAChB,cAAe,gBACf,IAAK,YAETA,EAAA,cAAwB,CACpB,GAAI,KACJ,GAAI,MAERA,EAAA,gBAA0B,OAAO,OAAOA,EAAQ,aAAa,EAC7DA,EAAA,aAAuB,CACnB,kBAAmB,oBACnB,kBAAmB,oBACnB,SAAU,WACV,WAAY,aACZ,MAAO,QACP,SAAU,WACV,SAAU,WACV,KAAM,OACN,OAAQ,SACR,SAAU,WACV,UAAW,YACX,KAAM,OACN,iBAAkB,oBAEtBA,EAAA,aAAuB,CACnB,aAAc,iBACd,UAAW,eAOfA,EAAA,oBAA8B,CAC1B,OAAQ,qBACR,gBAAiB,sBACjB,QAAS,oBACT,eAAgB,uBAChB,SAAU","x_google_ignoreList":[0]}
|
package/dist/index.cjs451.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.cjs452.js"),d=require("./index.cjs453.js");var E=d.__module.exports,j;function R(){return j||(j=1,(function(_,L){(function(m,i){i()})(E,function(){function m(e,t){return typeof t>"u"?t={autoBom:!1}:typeof t!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\uFEFF",e],{type:e.type}):e}function i(e,t,r){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){c(o.response,t,r)},o.onerror=function(){console.error("could not download file")},o.send()}function v(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return 200<=t.status&&299>=t.status}function l(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var a=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof u.commonjsGlobal=="object"&&u.commonjsGlobal.global===u.commonjsGlobal?u.commonjsGlobal:void 0,w=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=a.saveAs||(typeof window!="object"||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!w?function(e,t,r){var o=a.URL||a.webkitURL,n=document.createElement("a");t=t||e.name||"download",n.download=t,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin===location.origin?l(n):v(n.href)?i(e,t,r):l(n,n.target="_blank")):(n.href=o.createObjectURL(e),setTimeout(function(){o.revokeObjectURL(n.href)},4e4),setTimeout(function(){l(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e!="string")navigator.msSaveOrOpenBlob(m(e,r),t);else if(v(e))i(e,t,r);else{var o=document.createElement("a");o.href=e,o.target="_blank",setTimeout(function(){l(o)})}}:function(e,t,r,o){if(o=o||open("","_blank"),o&&(o.document.title=o.document.body.innerText="downloading..."),typeof e=="string")return i(e,t,r);var n=e.type==="application/octet-stream",h=/constructor/i.test(a.HTMLElement)||a.safari,y=/CriOS\/[\d]+/.test(navigator.userAgent);if((y||n&&h||w)&&typeof FileReader<"u"){var f=new FileReader;f.onloadend=function(){var s=f.result;s=y?s:s.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=s:location=s,o=null},f.readAsDataURL(e)}else{var b=a.URL||a.webkitURL,p=b.createObjectURL(e);o?o.location=p:location.href=p,o=null,setTimeout(function(){b.revokeObjectURL(p)},4e4)}});a.saveAs=c.saveAs=c,_.exports=c})})(d.__module)),d.__module.exports}exports.__require=R;
|
|
2
2
|
//# sourceMappingURL=index.cjs451.js.map
|
package/dist/index.cjs451.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs451.js","sources":["../node_modules
|
|
1
|
+
{"version":3,"file":"index.cjs451.js","sources":["../node_modules/file-saver/dist/FileSaver.min.js"],"sourcesContent":["(function(a,b){if(\"function\"==typeof define&&define.amd)define([],b);else if(\"undefined\"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){\"use strict\";function b(a,b){return\"undefined\"==typeof b?b={autoBom:!1}:\"object\"!=typeof b&&(console.warn(\"Deprecated: Expected third argument to be a object\"),b={autoBom:!b}),b.autoBom&&/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(a.type)?new Blob([\"\\uFEFF\",a],{type:a.type}):a}function c(a,b,c){var d=new XMLHttpRequest;d.open(\"GET\",a),d.responseType=\"blob\",d.onload=function(){g(d.response,b,c)},d.onerror=function(){console.error(\"could not download file\")},d.send()}function d(a){var b=new XMLHttpRequest;b.open(\"HEAD\",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent(\"click\"))}catch(c){var b=document.createEvent(\"MouseEvents\");b.initMouseEvent(\"click\",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f=\"object\"==typeof window&&window.window===window?window:\"object\"==typeof self&&self.self===self?self:\"object\"==typeof global&&global.global===global?global:void 0,a=f.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g=f.saveAs||(\"object\"!=typeof window||window!==f?function(){}:\"download\"in HTMLAnchorElement.prototype&&!a?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement(\"a\");g=g||b.name||\"download\",j.download=g,j.rel=\"noopener\",\"string\"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target=\"_blank\")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:\"msSaveOrOpenBlob\"in navigator?function(f,g,h){if(g=g||f.name||\"download\",\"string\"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement(\"a\");i.href=f,i.target=\"_blank\",setTimeout(function(){e(i)})}}:function(b,d,e,g){if(g=g||open(\"\",\"_blank\"),g&&(g.document.title=g.document.body.innerText=\"downloading...\"),\"string\"==typeof b)return c(b,d,e);var h=\"application/octet-stream\"===b.type,i=/constructor/i.test(f.HTMLElement)||f.safari,j=/CriOS\\/[\\d]+/.test(navigator.userAgent);if((j||h&&i||a)&&\"undefined\"!=typeof FileReader){var k=new FileReader;k.onloadend=function(){var a=k.result;a=j?a:a.replace(/^data:[^;]*;/,\"data:attachment/file;\"),g?g.location.href=a:location=a,g=null},k.readAsDataURL(b)}else{var l=f.URL||f.webkitURL,m=l.createObjectURL(b);g?g.location=m:location.href=m,g=null,setTimeout(function(){l.revokeObjectURL(m)},4E4)}});f.saveAs=g.saveAs=g,\"undefined\"!=typeof module&&(module.exports=g)});\n\n//# sourceMappingURL=FileSaver.min.js.map"],"names":["a","b","this","c","d","g","e","f","global","h","i","j","k","l","m","module"],"mappings":"2NAAC,SAASA,EAAEC,EA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AAG,KAAK,GAAG,QAAQ,EAAEA,IAAIA,EAAE,SAAS,MAAMA,EAAE,SAAS,KAAK,UAAU,kBAA4B,OAAOJ,GAAjB,SAAmB,OAAOE,EAAEF,EAAEG,EAAEE,CAAC,EAAE,IAAIG,EAA+BR,EAAE,OAA/B,2BAAoCS,EAAE,eAAe,KAAKH,EAAE,WAAW,GAAGA,EAAE,OAAOI,EAAE,eAAe,KAAK,UAAU,SAAS,EAAE,IAAIA,GAAGF,GAAGC,GAAGV,IAAiB,OAAO,WAApB,IAA+B,CAAC,IAAIY,EAAE,IAAI,WAAWA,EAAE,UAAU,UAAU,CAAC,IAAIZ,EAAEY,EAAE,OAAOZ,EAAEW,EAAEX,EAAEA,EAAE,QAAQ,eAAe,uBAAuB,EAAEK,EAAEA,EAAE,SAAS,KAAKL,EAAE,SAASA,EAAEK,EAAE,IAAI,EAAEO,EAAE,cAAcX,CAAC,CAAC,KAAK,CAAC,IAAIY,EAAEN,EAAE,KAAKA,EAAE,UAAUO,EAAED,EAAE,gBAAgBZ,CAAC,EAAEI,EAAEA,EAAE,SAASS,EAAE,SAAS,KAAKA,EAAET,EAAE,KAAK,WAAW,UAAU,CAACQ,EAAE,gBAAgBC,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,GAAGP,EAAE,OAAOF,EAAE,OAAOA,EAA+BU,EAAA,QAAeV,CAAE,CAAC","x_google_ignoreList":[0]}
|
package/dist/index.cjs452.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var r=e.default;if(typeof r=="function"){var t=function o(){return this instanceof o?Reflect.construct(r,arguments,this.constructor):r.apply(this,arguments)};t.prototype=r.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t}exports.commonjsGlobal=u;exports.getAugmentedNamespace=f;exports.getDefaultExportFromCjs=l;
|
|
2
2
|
//# sourceMappingURL=index.cjs452.js.map
|
package/dist/index.cjs452.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs452.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs452.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs453.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={exports:{}};exports.__module=e;
|
|
2
2
|
//# sourceMappingURL=index.cjs453.js.map
|
package/dist/index.cjs453.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs453.js","sources":[
|
|
1
|
+
{"version":3,"file":"index.cjs453.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs454.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),l=(t,n)=>{a.useEffect(()=>{if(!n||!t.current)return;const o=t.current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'),u=o[0],s=o[o.length-1],r=e=>{e.key==="Tab"&&(e.shiftKey?document.activeElement===u&&(s.focus(),e.preventDefault()):document.activeElement===s&&(u.focus(),e.preventDefault()))},c=document.activeElement;return u.focus(),document.addEventListener("keydown",r),()=>{document.removeEventListener("keydown",r),n&&(c==null||c.focus())}},[n,t])};exports.useFocusTrap=l;
|
|
2
2
|
//# sourceMappingURL=index.cjs454.js.map
|
package/dist/index.cjs454.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs454.js","sources":["../
|
|
1
|
+
{"version":3,"file":"index.cjs454.js","sources":["../src/hooks/useFocusTrap.ts"],"sourcesContent":["import { useEffect } from \"react\";\n\nexport const useFocusTrap = (\n ref: React.RefObject<HTMLElement | null>,\n isActive: boolean,\n) => {\n useEffect(() => {\n if (!isActive || !ref.current) return;\n\n const focusableElements = ref.current.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n );\n const firstFocusableElement = focusableElements[0] as HTMLElement;\n const lastFocusableElement = focusableElements[\n focusableElements.length - 1\n ] as HTMLElement;\n\n const handleKeyDown = (e: KeyboardEvent) => {\n if (e.key !== \"Tab\") return;\n\n if (e.shiftKey) {\n if (document.activeElement === firstFocusableElement) {\n lastFocusableElement.focus();\n e.preventDefault();\n }\n } else {\n if (document.activeElement === lastFocusableElement) {\n firstFocusableElement.focus();\n e.preventDefault();\n }\n }\n };\n\n const previousActiveElement = document.activeElement as HTMLElement;\n\n firstFocusableElement.focus();\n\n document.addEventListener(\"keydown\", handleKeyDown);\n\n return () => {\n document.removeEventListener(\"keydown\", handleKeyDown);\n\n if (isActive) {\n previousActiveElement?.focus();\n }\n };\n }, [isActive, ref]);\n};\n"],"names":["useFocusTrap","ref","isActive","useEffect","focusableElements","firstFocusableElement","lastFocusableElement","handleKeyDown","previousActiveElement"],"mappings":"yGAEaA,EAAe,CAC1BC,EACAC,IACG,CACHC,EAAAA,UAAU,IAAM,CACd,GAAI,CAACD,GAAY,CAACD,EAAI,QAAS,OAE/B,MAAMG,EAAoBH,EAAI,QAAQ,iBACpC,0EAAA,EAEII,EAAwBD,EAAkB,CAAC,EAC3CE,EAAuBF,EAC3BA,EAAkB,OAAS,CAC7B,EAEMG,EAAiB,GAAqB,CACtC,EAAE,MAAQ,QAEV,EAAE,SACA,SAAS,gBAAkBF,IAC7BC,EAAqB,MAAA,EACrB,EAAE,eAAA,GAGA,SAAS,gBAAkBA,IAC7BD,EAAsB,MAAA,EACtB,EAAE,eAAA,GAGR,EAEMG,EAAwB,SAAS,cAEvC,OAAAH,EAAsB,MAAA,EAEtB,SAAS,iBAAiB,UAAWE,CAAa,EAE3C,IAAM,CACX,SAAS,oBAAoB,UAAWA,CAAa,EAEjDL,IACFM,GAAA,MAAAA,EAAuB,QAE3B,CACF,EAAG,CAACN,EAAUD,CAAG,CAAC,CACpB"}
|
package/dist/index.cjs460.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const j=require("react"),b=require("./index.cjs230.js");function P(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,s.get?s:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const i=P(j);function g(e,r){const t=i.createContext(r),s=c=>{const{children:n,...o}=c,u=i.useMemo(()=>o,Object.values(o));return b.jsxRuntimeExports.jsx(t.Provider,{value:u,children:n})};s.displayName=e+"Provider";function a(c){const n=i.useContext(t);if(n)return n;if(r!==void 0)return r;throw new Error(`\`${c}\` must be used within \`${e}\``)}return[s,a]}function _(e,r=[]){let t=[];function s(c,n){const o=i.createContext(n),u=t.length;t=[...t,n];const f=d=>{var S;const{scope:x,children:m,...p}=d,l=((S=x==null?void 0:x[e])==null?void 0:S[u])||o,C=i.useMemo(()=>p,Object.values(p));return b.jsxRuntimeExports.jsx(l.Provider,{value:C,children:m})};f.displayName=c+"Provider";function v(d,x){var l;const m=((l=x==null?void 0:x[e])==null?void 0:l[u])||o,p=i.useContext(m);if(p)return p;if(n!==void 0)return n;throw new Error(`\`${d}\` must be used within \`${c}\``)}return[f,v]}const a=()=>{const c=t.map(n=>i.createContext(n));return function(o){const u=(o==null?void 0:o[e])||c;return i.useMemo(()=>({[`__scope${e}`]:{...o,[e]:u}}),[o,u])}};return a.scopeName=e,[s,h(a,...r)]}function h(...e){const r=e[0];if(e.length===1)return r;const t=()=>{const s=e.map(a=>({useScope:a(),scopeName:a.scopeName}));return function(c){const n=s.reduce((o,{useScope:u,scopeName:f})=>{const d=u(c)[`__scope${f}`];return{...o,...d}},{});return i.useMemo(()=>({[`__scope${r.scopeName}`]:n}),[n])}};return t.scopeName=r.scopeName,t}exports.createContext=g;exports.createContextScope=_;
|
|
2
2
|
//# sourceMappingURL=index.cjs460.js.map
|
package/dist/index.cjs460.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs460.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.cjs460.js","sources":["../node_modules/@radix-ui/react-context/dist/index.mjs"],"sourcesContent":["// packages/react/context/src/create-context.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createContext2(rootComponentName, defaultContext) {\n const Context = React.createContext(defaultContext);\n const Provider = (props) => {\n const { children, ...context } = props;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName) {\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n}\nfunction createContextScope(scopeName, createContextScopeDeps = []) {\n let defaultContexts = [];\n function createContext3(rootComponentName, defaultContext) {\n const BaseContext = React.createContext(defaultContext);\n const index = defaultContexts.length;\n defaultContexts = [...defaultContexts, defaultContext];\n const Provider = (props) => {\n const { scope, children, ...context } = props;\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const value = React.useMemo(() => context, Object.values(context));\n return /* @__PURE__ */ jsx(Context.Provider, { value, children });\n };\n Provider.displayName = rootComponentName + \"Provider\";\n function useContext2(consumerName, scope) {\n const Context = scope?.[scopeName]?.[index] || BaseContext;\n const context = React.useContext(Context);\n if (context) return context;\n if (defaultContext !== void 0) return defaultContext;\n throw new Error(`\\`${consumerName}\\` must be used within \\`${rootComponentName}\\``);\n }\n return [Provider, useContext2];\n }\n const createScope = () => {\n const scopeContexts = defaultContexts.map((defaultContext) => {\n return React.createContext(defaultContext);\n });\n return function useScope(scope) {\n const contexts = scope?.[scopeName] || scopeContexts;\n return React.useMemo(\n () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),\n [scope, contexts]\n );\n };\n };\n createScope.scopeName = scopeName;\n return [createContext3, composeContextScopes(createScope, ...createContextScopeDeps)];\n}\nfunction composeContextScopes(...scopes) {\n const baseScope = scopes[0];\n if (scopes.length === 1) return baseScope;\n const createScope = () => {\n const scopeHooks = scopes.map((createScope2) => ({\n useScope: createScope2(),\n scopeName: createScope2.scopeName\n }));\n return function useComposedScopes(overrideScopes) {\n const nextScopes = scopeHooks.reduce((nextScopes2, { useScope, scopeName }) => {\n const scopeProps = useScope(overrideScopes);\n const currentScope = scopeProps[`__scope${scopeName}`];\n return { ...nextScopes2, ...currentScope };\n }, {});\n return React.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);\n };\n };\n createScope.scopeName = baseScope.scopeName;\n return createScope;\n}\nexport {\n createContext2 as createContext,\n createContextScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createContext2","rootComponentName","defaultContext","Context","React","Provider","props","children","context","value","jsx","useContext2","consumerName","createContextScope","scopeName","createContextScopeDeps","defaultContexts","createContext3","BaseContext","index","scope","_a","createScope","scopeContexts","contexts","composeContextScopes","scopes","ba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AU,GAAK,CAACA,CAAU,CAAC,CAC9F,CACF,EACA,OAAAT,EAAY,UAAYK,EAAU,UAC3BL,CACT","x_google_ignoreList":[0]}
|
package/dist/index.cjs461.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("react");function f(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=f(l);function r(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function s(...e){return t=>{let n=!1;const u=e.map(o=>{const c=r(o,t);return!n&&typeof c=="function"&&(n=!0),c});if(n)return()=>{for(let o=0;o<u.length;o++){const c=u[o];typeof c=="function"?c():r(e[o],null)}}}}function a(...e){return i.useCallback(s(...e),e)}exports.composeRefs=s;exports.useComposedRefs=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs461.js.map
|
package/dist/index.cjs461.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs461.js","sources":["../node_modules/@radix-ui/react-
|
|
1
|
+
{"version":3,"file":"index.cjs461.js","sources":["../node_modules/@radix-ui/react-compose-refs/dist/index.mjs"],"sourcesContent":["// packages/react/compose-refs/src/compose-refs.tsx\nimport * as React from \"react\";\nfunction setRef(ref, value) {\n if (typeof ref === \"function\") {\n return ref(value);\n } else if (ref !== null && ref !== void 0) {\n ref.current = value;\n }\n}\nfunction composeRefs(...refs) {\n return (node) => {\n let hasCleanup = false;\n const cleanups = refs.map((ref) => {\n const cleanup = setRef(ref, node);\n if (!hasCleanup && typeof cleanup == \"function\") {\n hasCleanup = true;\n }\n return cleanup;\n });\n if (hasCleanup) {\n return () => {\n for (let i = 0; i < cleanups.length; i++) {\n const cleanup = cleanups[i];\n if (typeof cleanup == \"function\") {\n cleanup();\n } else {\n setRef(refs[i], null);\n }\n }\n };\n }\n };\n}\nfunction useComposedRefs(...refs) {\n return React.useCallback(composeRefs(...refs), refs);\n}\nexport {\n composeRefs,\n useComposedRefs\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["setRef","ref","value","composeRefs","refs","node","hasCleanup","cleanups","cleanup","i","useComposedRefs","React"],"mappings":"mYAEA,SAASA,EAAOC,EAAKC,EAAO,CAC1B,GAAI,OAAOD,GAAQ,WACjB,OAAOA,EAAIC,CAAK,EACPD,GAAQ,OACjBA,EAAI,QAAUC,EAElB,CACA,SAASC,KAAeC,EAAM,CAC5B,OAAQC,GAAS,CACf,IAAIC,EAAa,GACjB,MAAMC,EAAWH,EAAK,IAAKH,GAAQ,CACjC,MAAMO,EAAUR,EAAOC,EAAKI,CAAI,EAChC,MAAI,CAACC,GAAc,OAAOE,GAAW,aACnCF,EAAa,IAERE,CACT,CAAC,EACD,GAAIF,EACF,MAAO,IAAM,CACX,QAASG,EAAI,EAAGA,EAAIF,EAAS,OAAQE,IAAK,CACxC,MAAMD,EAAUD,EAASE,CAAC,EACtB,OAAOD,GAAW,WACpBA,EAAO,EAEPR,EAAOI,EAAKK,CAAC,EAAG,IAAI,CAExB,CACF,CAEJ,CACF,CACA,SAASC,KAAmBN,EAAM,CAChC,OAAOO,EAAM,YAAYR,EAAY,GAAGC,CAAI,EAAGA,CAAI,CACrD","x_google_ignoreList":[0]}
|
package/dist/index.cjs462.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u(s,c,{checkForDefaultPrevented:t=!0}={}){return function(f){if(s==null||s(f),t===!1||!f.defaultPrevented)return c==null?void 0:c(f)}}exports.composeEventHandlers=u;
|
|
2
2
|
//# sourceMappingURL=index.cjs462.js.map
|
package/dist/index.cjs462.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs462.js","sources":["../node_modules/@radix-ui/
|
|
1
|
+
{"version":3,"file":"index.cjs462.js","sources":["../node_modules/@radix-ui/primitive/dist/index.mjs"],"sourcesContent":["// src/primitive.tsx\nvar canUseDOM = !!(typeof window !== \"undefined\" && window.document && window.document.createElement);\nfunction composeEventHandlers(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {\n return function handleEvent(event) {\n originalEventHandler?.(event);\n if (checkForDefaultPrevented === false || !event.defaultPrevented) {\n return ourEventHandler?.(event);\n }\n };\n}\nfunction getOwnerWindow(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access window outside of the DOM\");\n }\n return element?.ownerDocument?.defaultView ?? window;\n}\nfunction getOwnerDocument(element) {\n if (!canUseDOM) {\n throw new Error(\"Cannot access document outside of the DOM\");\n }\n return element?.ownerDocument ?? document;\n}\nfunction getActiveElement(node, activeDescendant = false) {\n const { activeElement } = getOwnerDocument(node);\n if (!activeElement?.nodeName) {\n return null;\n }\n if (isFrame(activeElement) && activeElement.contentDocument) {\n return getActiveElement(activeElement.contentDocument.body, activeDescendant);\n }\n if (activeDescendant) {\n const id = activeElement.getAttribute(\"aria-activedescendant\");\n if (id) {\n const element = getOwnerDocument(activeElement).getElementById(id);\n if (element) {\n return element;\n }\n }\n }\n return activeElement;\n}\nfunction isFrame(element) {\n return element.tagName === \"IFRAME\";\n}\nexport {\n canUseDOM,\n composeEventHandlers,\n getActiveElement,\n getOwnerDocument,\n getOwnerWindow,\n isFrame\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["composeEventHandlers","originalEventHandler","ourEventHandler","checkForDefaultPrevented","event"],"mappings":"gFAEA,SAASA,EAAqBC,EAAsBC,EAAiB,CAAE,yBAAAC,EAA2B,EAAI,EAAK,GAAI,CAC7G,OAAO,SAAqBC,EAAO,CAEjC,GADAH,GAAA,MAAAA,EAAuBG,GACnBD,IAA6B,IAAS,CAACC,EAAM,iBAC/C,OAAOF,GAAA,YAAAA,EAAkBE,EAE7B,CACF","x_google_ignoreList":[0]}
|
package/dist/index.cjs463.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("react"),b=require("./index.cjs461.js"),f=require("./index.cjs230.js");function x(e){const t=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(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const l=x(g);function d(e){const t=j(e),r=l.forwardRef((n,o)=>{const{children:i,...c}=n,s=l.Children.toArray(i),a=s.find(E);if(a){const u=a.props.children,S=s.map(p=>p===a?l.Children.count(u)>1?l.Children.only(null):l.isValidElement(u)?u.props.children:null:p);return f.jsxRuntimeExports.jsx(t,{...c,ref:o,children:l.isValidElement(u)?l.cloneElement(u,void 0,S):null})}return f.jsxRuntimeExports.jsx(t,{...c,ref:o,children:i})});return r.displayName=`${e}.Slot`,r}var m=d("Slot");function j(e){const t=l.forwardRef((r,n)=>{const{children:o,...i}=r;if(l.isValidElement(o)){const c=C(o),s=O(i,o.props);return o.type!==l.Fragment&&(s.ref=n?b.composeRefs(n,c):c),l.cloneElement(o,s)}return l.Children.count(o)>1?l.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var y=Symbol("radix.slottable");function R(e){const t=({children:r})=>f.jsxRuntimeExports.jsx(f.jsxRuntimeExports.Fragment,{children:r});return t.displayName=`${e}.Slottable`,t.__radixId=y,t}function E(e){return l.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===y}function O(e,t){const r={...t};for(const n in t){const o=e[n],i=t[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const a=i(...s);return o(...s),a}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...e,...r}}function C(e){var n,o;let t=(n=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:n.get,r=t&&"isReactWarning"in t&&t.isReactWarning;return r?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,r=t&&"isReactWarning"in t&&t.isReactWarning,r?e.props.ref:e.props.ref||e.ref)}exports.Root=m;exports.Slot=m;exports.createSlot=d;exports.createSlottable=R;
|
|
2
2
|
//# sourceMappingURL=index.cjs463.js.map
|
package/dist/index.cjs463.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs463.js","sources":["../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/dismissable-layer.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { Primitive, dispatchDiscreteCustomEvent } from \"@radix-ui/react-primitive\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useEscapeKeydown } from \"@radix-ui/react-use-escape-keydown\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DISMISSABLE_LAYER_NAME = \"DismissableLayer\";\nvar CONTEXT_UPDATE = \"dismissableLayer.update\";\nvar POINTER_DOWN_OUTSIDE = \"dismissableLayer.pointerDownOutside\";\nvar FOCUS_OUTSIDE = \"dismissableLayer.focusOutside\";\nvar originalBodyPointerEvents;\nvar DismissableLayerContext = React.createContext({\n layers: /* @__PURE__ */ new Set(),\n layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),\n branches: /* @__PURE__ */ new Set()\n});\nvar DismissableLayer = React.forwardRef(\n (props, forwardedRef) => {\n const {\n disableOutsidePointerEvents = false,\n onEscapeKeyDown,\n onPointerDownOutside,\n onFocusOutside,\n onInteractOutside,\n onDismiss,\n ...layerProps\n } = props;\n const context = React.useContext(DismissableLayerContext);\n const [node, setNode] = React.useState(null);\n const ownerDocument = node?.ownerDocument ?? globalThis?.document;\n const [, force] = React.useState({});\n const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));\n const layers = Array.from(context.layers);\n const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);\n const highestLayerWithOutsidePointerEventsDisabledIndex = layers.indexOf(highestLayerWithOutsidePointerEventsDisabled);\n const index = node ? layers.indexOf(node) : -1;\n const isBodyPointerEventsDisabled = context.layersWithOutsidePointerEventsDisabled.size > 0;\n const isPointerEventsEnabled = index >= highestLayerWithOutsidePointerEventsDisabledIndex;\n const pointerDownOutside = usePointerDownOutside((event) => {\n const target = event.target;\n const isPointerDownOnBranch = [...context.branches].some((branch) => branch.contains(target));\n if (!isPointerEventsEnabled || isPointerDownOnBranch) return;\n onPointerDownOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n const focusOutside = useFocusOutside((event) => {\n const target = event.target;\n const isFocusInBranch = [...context.branches].some((branch) => branch.contains(target));\n if (isFocusInBranch) return;\n onFocusOutside?.(event);\n onInteractOutside?.(event);\n if (!event.defaultPrevented) onDismiss?.();\n }, ownerDocument);\n useEscapeKeydown((event) => {\n const isHighestLayer = index === context.layers.size - 1;\n if (!isHighestLayer) return;\n onEscapeKeyDown?.(event);\n if (!event.defaultPrevented && onDismiss) {\n event.preventDefault();\n onDismiss();\n }\n }, ownerDocument);\n React.useEffect(() => {\n if (!node) return;\n if (disableOutsidePointerEvents) {\n if (context.layersWithOutsidePointerEventsDisabled.size === 0) {\n originalBodyPointerEvents = ownerDocument.body.style.pointerEvents;\n ownerDocument.body.style.pointerEvents = \"none\";\n }\n context.layersWithOutsidePointerEventsDisabled.add(node);\n }\n context.layers.add(node);\n dispatchUpdate();\n return () => {\n if (disableOutsidePointerEvents && context.layersWithOutsidePointerEventsDisabled.size === 1) {\n ownerDocument.body.style.pointerEvents = originalBodyPointerEvents;\n }\n };\n }, [node, ownerDocument, disableOutsidePointerEvents, context]);\n React.useEffect(() => {\n return () => {\n if (!node) return;\n context.layers.delete(node);\n context.layersWithOutsidePointerEventsDisabled.delete(node);\n dispatchUpdate();\n };\n }, [node, context]);\n React.useEffect(() => {\n const handleUpdate = () => force({});\n document.addEventListener(CONTEXT_UPDATE, handleUpdate);\n return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);\n }, []);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...layerProps,\n ref: composedRefs,\n style: {\n pointerEvents: isBodyPointerEventsDisabled ? isPointerEventsEnabled ? \"auto\" : \"none\" : void 0,\n ...props.style\n },\n onFocusCapture: composeEventHandlers(props.onFocusCapture, focusOutside.onFocusCapture),\n onBlurCapture: composeEventHandlers(props.onBlurCapture, focusOutside.onBlurCapture),\n onPointerDownCapture: composeEventHandlers(\n props.onPointerDownCapture,\n pointerDownOutside.onPointerDownCapture\n )\n }\n );\n }\n);\nDismissableLayer.displayName = DISMISSABLE_LAYER_NAME;\nvar BRANCH_NAME = \"DismissableLayerBranch\";\nvar DismissableLayerBranch = React.forwardRef((props, forwardedRef) => {\n const context = React.useContext(DismissableLayerContext);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n context.branches.add(node);\n return () => {\n context.branches.delete(node);\n };\n }\n }, [context.branches]);\n return /* @__PURE__ */ jsx(Primitive.div, { ...props, ref: composedRefs });\n});\nDismissableLayerBranch.displayName = BRANCH_NAME;\nfunction usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis?.document) {\n const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);\n const isPointerInsideReactTreeRef = React.useRef(false);\n const handleClickRef = React.useRef(() => {\n });\n React.useEffect(() => {\n const handlePointerDown = (event) => {\n if (event.target && !isPointerInsideReactTreeRef.current) {\n let handleAndDispatchPointerDownOutsideEvent2 = function() {\n handleAndDispatchCustomEvent(\n POINTER_DOWN_OUTSIDE,\n handlePointerDownOutside,\n eventDetail,\n { discrete: true }\n );\n };\n var handleAndDispatchPointerDownOutsideEvent = handleAndDispatchPointerDownOutsideEvent2;\n const eventDetail = { originalEvent: event };\n if (event.pointerType === \"touch\") {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n handleClickRef.current = handleAndDispatchPointerDownOutsideEvent2;\n ownerDocument.addEventListener(\"click\", handleClickRef.current, { once: true });\n } else {\n handleAndDispatchPointerDownOutsideEvent2();\n }\n } else {\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n }\n isPointerInsideReactTreeRef.current = false;\n };\n const timerId = window.setTimeout(() => {\n ownerDocument.addEventListener(\"pointerdown\", handlePointerDown);\n }, 0);\n return () => {\n window.clearTimeout(timerId);\n ownerDocument.removeEventListener(\"pointerdown\", handlePointerDown);\n ownerDocument.removeEventListener(\"click\", handleClickRef.current);\n };\n }, [ownerDocument, handlePointerDownOutside]);\n return {\n // ensures we check React component tree (not just DOM tree)\n onPointerDownCapture: () => isPointerInsideReactTreeRef.current = true\n };\n}\nfunction useFocusOutside(onFocusOutside, ownerDocument = globalThis?.document) {\n const handleFocusOutside = useCallbackRef(onFocusOutside);\n const isFocusInsideReactTreeRef = React.useRef(false);\n React.useEffect(() => {\n const handleFocus = (event) => {\n if (event.target && !isFocusInsideReactTreeRef.current) {\n const eventDetail = { originalEvent: event };\n handleAndDispatchCustomEvent(FOCUS_OUTSIDE, handleFocusOutside, eventDetail, {\n discrete: false\n });\n }\n };\n ownerDocument.addEventListener(\"focusin\", handleFocus);\n return () => ownerDocument.removeEventListener(\"focusin\", handleFocus);\n }, [ownerDocument, handleFocusOutside]);\n return {\n onFocusCapture: () => isFocusInsideReactTreeRef.current = true,\n onBlurCapture: () => isFocusInsideReactTreeRef.current = false\n };\n}\nfunction dispatchUpdate() {\n const event = new CustomEvent(CONTEXT_UPDATE);\n document.dispatchEvent(event);\n}\nfunction handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {\n const target = detail.originalEvent.target;\n const event = new CustomEvent(name, { bubbles: false, cancelable: true, detail });\n if (handler) target.addEventListener(name, handler, { once: true });\n if (discrete) {\n dispatchDiscreteCustomEvent(target, event);\n } else {\n target.dispatchEvent(event);\n }\n}\nvar Root = DismissableLayer;\nvar Branch = DismissableLayerBranch;\nexport {\n Branch,\n DismissableLayer,\n DismissableLayerBranch,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DISMISSABLE_LAYER_NAME","CONTEXT_UPDATE","POINTER_DOWN_OUTSIDE","FOCUS_OUTSIDE","originalBodyPointerEvents","DismissableLayerContext","React","DismissableLayer","props","forwardedRef","disableOutsidePointerEvents","onEscapeKeyDown","onPointerDownOutside","onFocusOutside","onInteractOutside","onDismiss","layerProps","context","node","setNode","ownerDocument","force","composedRefs","useComposedRefs","node2","layers","highestLayerWithOutsidePointerEventsDisabled","highestLayerWithOutsidePointerEventsDisabledIndex","index","isBodyPointerEventsDisabled","isPointerEventsEnabled","pointerDownOutside","usePointerDownOutside","event","target","isPointerDownOnBranch","branch","focusOutside","useFocusOutside","useEscapeKeydown","dispatchUpdate","handleUpdate","jsx","Primitive","composeEventHandlers","BRANCH_NAME","DismissableLayerBranch","ref","handlePointerDownOutside","useCallbackRef","isPointerInsideReactTreeRef","handleClickRef","handlePointerDown","handleAndDispatchPointerDownOutsideEvent2","handleAndDispatchCustomEvent","eventDetail","timerId","handleFocusOutside","isFocusInsideReactTreeRef","handleFocus","name","handler","detail","discrete","dispatchDiscreteCustomEvent"],"mappings":"6jBAUA,IAAIA,EAAyB,mBACzBC,EAAiB,0BACjBC,EAAuB,sCACvBC,EAAgB,gCAChBC,EACAC,EAA0BC,EAAM,cAAc,CAChD,OAAwB,IAAI,IAC5B,uCAAwD,IAAI,IAC5D,SAA0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AcD,CAAK,CAE9B","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs463.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\n// @__NO_SIDE_EFFECTS__\nfunction createSlot(ownerName) {\n const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);\n const Slot2 = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n });\n Slot2.displayName = `${ownerName}.Slot`;\n return Slot2;\n}\nvar Slot = /* @__PURE__ */ createSlot(\"Slot\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlotClone(ownerName) {\n const SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n });\n SlotClone.displayName = `${ownerName}.SlotClone`;\n return SlotClone;\n}\nvar SLOTTABLE_IDENTIFIER = Symbol(\"radix.slottable\");\n// @__NO_SIDE_EFFECTS__\nfunction createSlottable(ownerName) {\n const Slottable2 = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n };\n Slottable2.displayName = `${ownerName}.Slottable`;\n Slottable2.__radixId = SLOTTABLE_IDENTIFIER;\n return Slottable2;\n}\nvar Slottable = /* @__PURE__ */ createSlottable(\"Slottable\");\nfunction isSlottable(child) {\n return React.isValidElement(child) && typeof child.type === \"function\" && \"__radixId\" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n const result = childPropValue(...args);\n slotPropValue(...args);\n return result;\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nexport {\n Slot as Root,\n Slot,\n Slottable,\n createSlot,\n createSlottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createSlot","ownerName","SlotClone","createSlotClone","Slot2","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","Slot","childrenRef","getElementRef","props2","mergeProps","composeRefs","SLOTTABLE_IDENTIFIER","createSlottable","Slottable2","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","result","element","getter","_a","mayWarn","_b"],"mappings":"icAKA,SAASA,EAAWC,EAAW,CAC7B,MAAMC,EAA4BC,EAAgBF,CAAS,EACrDG,EAAQC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACtD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAgBL,EAAM,SAAS,QAAQG,CAAQ,EAC/CG,EAAYD,EAAc,KAAKE,CAAW,EAChD,GAAID,EAAW,CACb,MAAME,EAAaF,EAAU,MAAM,SAC7BG,EAAcJ,EAAc,IAAKK,GACjCA,IAAUJ,EACRN,EAAM,SAAS,MAAMQ,CAAU,EAAI,EAAUR,EAAM,SAAS,KAAK,IAAI,EAClEA,EAAM,eAAeQ,CAAU,EAAIA,EAAW,MAAM,SAAW,KAE/DE,CAEV,EACD,OAAuBC,EAAAA,kBAAAA,IAAId,EAAW,CAAE,GAAGO,EAAW,IAAKF,EAAc,SAAUF,EAAM,eAAeQ,CAAU,EAAIR,EAAM,aAAaQ,EAAY,OAAQC,CAAW,EAAI,KAAM,CACpL,CACA,OAAuBE,EAAAA,kBAAAA,IAAId,EAAW,CAAE,GAAGO,EAAW,IAAKF,EAAc,SAAAC,EAAU,CACrF,CAAC,EACD,OAAAJ,EAAM,YAAc,GAAGH,CAAS,QACzBG,CACT,CACG,IAACa,EAAuBjB,EAAW,MAAM,EAE5C,SAASG,EAAgBF,EAAW,CAClC,MAAMC,EAAYG,EAAM,WAAW,CAACC,EAAOC,IAAiB,CAC1D,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EACnC,GAAID,EAAM,eAAeG,CAAQ,EAAG,CAClC,MAAMU,EAAcC,EAAcX,CAAQ,EACpCY,EAASC,EAAWZ,EAAWD,EAAS,KAAK,EACnD,OAAIA,EAAS,OAASH,EAAM,WAC1Be,EAAO,IAAMb,EAAee,EAAAA,YAAYf,EAAcW,CAAW,EAAIA,GAEhEb,E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AAK,IAApD,YAAAE,EAAuD,IAChEC,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eAC7D,OAAIE,EACKH,EAAQ,KAEjBC,GAASG,EAAA,OAAO,yBAAyBJ,EAAS,KAAK,IAA9C,YAAAI,EAAiD,IAC1DD,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eACrDE,EACKH,EAAQ,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
|
package/dist/index.cjs466.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react");require("./index.cjs556.js");function i(){const[t,e]=o.useState(null),a=o.useCallback(async r=>{if(!(navigator!=null&&navigator.clipboard))return console.warn("Clipboard not supported"),!1;try{return await navigator.clipboard.writeText(r),e(r),!0}catch(n){return console.warn("Copy failed",n),e(null),!1}},[]);return[t,a]}exports.useCopyToClipboard=i;
|
|
2
2
|
//# sourceMappingURL=index.cjs466.js.map
|
package/dist/index.cjs466.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs466.js","sources":["../node_modules/@radix-ui/react-presence/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/presence.tsx\nimport * as React2 from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\n\n// src/use-state-machine.tsx\nimport * as React from \"react\";\nfunction useStateMachine(initialState, machine) {\n return React.useReducer((state, event) => {\n const nextState = machine[state][event];\n return nextState ?? state;\n }, initialState);\n}\n\n// src/presence.tsx\nvar Presence = (props) => {\n const { present, children } = props;\n const presence = usePresence(present);\n const child = typeof children === \"function\" ? children({ present: presence.isPresent }) : React2.Children.only(children);\n const ref = useComposedRefs(presence.ref, getElementRef(child));\n const forceMount = typeof children === \"function\";\n return forceMount || presence.isPresent ? React2.cloneElement(child, { ref }) : null;\n};\nPresence.displayName = \"Presence\";\nfunction usePresence(present) {\n const [node, setNode] = React2.useState();\n const stylesRef = React2.useRef(null);\n const prevPresentRef = React2.useRef(present);\n const prevAnimationNameRef = React2.useRef(\"none\");\n const initialState = present ? \"mounted\" : \"unmounted\";\n const [state, send] = useStateMachine(initialState, {\n mounted: {\n UNMOUNT: \"unmounted\",\n ANIMATION_OUT: \"unmountSuspended\"\n },\n unmountSuspended: {\n MOUNT: \"mounted\",\n ANIMATION_END: \"unmounted\"\n },\n unmounted: {\n MOUNT: \"mounted\"\n }\n });\n React2.useEffect(() => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n prevAnimationNameRef.current = state === \"mounted\" ? currentAnimationName : \"none\";\n }, [state]);\n useLayoutEffect(() => {\n const styles = stylesRef.current;\n const wasPresent = prevPresentRef.current;\n const hasPresentChanged = wasPresent !== present;\n if (hasPresentChanged) {\n const prevAnimationName = prevAnimationNameRef.current;\n const currentAnimationName = getAnimationName(styles);\n if (present) {\n send(\"MOUNT\");\n } else if (currentAnimationName === \"none\" || styles?.display === \"none\") {\n send(\"UNMOUNT\");\n } else {\n const isAnimating = prevAnimationName !== currentAnimationName;\n if (wasPresent && isAnimating) {\n send(\"ANIMATION_OUT\");\n } else {\n send(\"UNMOUNT\");\n }\n }\n prevPresentRef.current = present;\n }\n }, [present, send]);\n useLayoutEffect(() => {\n if (node) {\n let timeoutId;\n const ownerWindow = node.ownerDocument.defaultView ?? window;\n const handleAnimationEnd = (event) => {\n const currentAnimationName = getAnimationName(stylesRef.current);\n const isCurrentAnimation = currentAnimationName.includes(CSS.escape(event.animationName));\n if (event.target === node && isCurrentAnimation) {\n send(\"ANIMATION_END\");\n if (!prevPresentRef.current) {\n const currentFillMode = node.style.animationFillMode;\n node.style.animationFillMode = \"forwards\";\n timeoutId = ownerWindow.setTimeout(() => {\n if (node.style.animationFillMode === \"forwards\") {\n node.style.animationFillMode = currentFillMode;\n }\n });\n }\n }\n };\n const handleAnimationStart = (event) => {\n if (event.target === node) {\n prevAnimationNameRef.current = getAnimationName(stylesRef.current);\n }\n };\n node.addEventListener(\"animationstart\", handleAnimationStart);\n node.addEventListener(\"animationcancel\", handleAnimationEnd);\n node.addEventListener(\"animationend\", handleAnimationEnd);\n return () => {\n ownerWindow.clearTimeout(timeoutId);\n node.removeEventListener(\"animationstart\", handleAnimationStart);\n node.removeEventListener(\"animationcancel\", handleAnimationEnd);\n node.removeEventListener(\"animationend\", handleAnimationEnd);\n };\n } else {\n send(\"ANIMATION_END\");\n }\n }, [node, send]);\n return {\n isPresent: [\"mounted\", \"unmountSuspended\"].includes(state),\n ref: React2.useCallback((node2) => {\n stylesRef.current = node2 ? getComputedStyle(node2) : null;\n setNode(node2);\n }, [])\n };\n}\nfunction getAnimationName(styles) {\n return styles?.animationName || \"none\";\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Presence;\nexport {\n Presence,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useStateMachine","initialState","machine","React","state","event","Presence","props","present","children","presence","usePresence","child","React2","ref","useComposedRefs","getElementRef","node","setNode","stylesRef","prevPresentRef","prevAnimationNameRef","send","currentAnimationName","getAnimationName","useLayoutEffect","styles","wasPresent","prevAnimationName","timeoutId","ownerWindow","handleAnimationEnd","isCurrentAnimation","currentFillMode","handleAnimationStart","node2","element","getter","_a","mayWarn","_b"],"mappings":"icASA,SAASA,EAAgBC,EAAcC,EAAS,CAC9C,OAAOC,EAAM,WAAW,CAACC,EAAOC,IACZH,EAAQE,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BE,EAAQ,CAChC,OAAOA,GAAA,YAAAA,EAAQ,gBAAiB,MAClC,CACA,SAASV,EAAcoB,EAAS,SAC9B,IAAIC,GAASC,EAAA,OAAO,yBAAyBF,EAAQ,MAAO,KAAK,IAApD,YAAAE,EAAuD,IAChEC,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eAC7D,OAAIE,EACKH,EAAQ,KAEjBC,GAASG,EAAA,OAAO,yBAAyBJ,EAAS,KAAK,IAA9C,YAAAI,EAAiD,IAC1DD,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eACrDE,EACKH,EAAQ,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs466.js","sources":["../node_modules/usehooks-ts/dist/index.js"],"sourcesContent":["import { useState, useCallback, useLayoutEffect, useEffect, useRef, useMemo } from 'react';\nimport debounce from 'lodash.debounce';\n\n// src/useBoolean/useBoolean.ts\nfunction useBoolean(defaultValue = false) {\n if (typeof defaultValue !== \"boolean\") {\n throw new Error(\"defaultValue must be `true` or `false`\");\n }\n const [value, setValue] = useState(defaultValue);\n const setTrue = useCallback(() => {\n setValue(true);\n }, []);\n const setFalse = useCallback(() => {\n setValue(false);\n }, []);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return { value, setValue, setTrue, setFalse, toggle };\n}\nvar useIsomorphicLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\n// src/useEventListener/useEventListener.ts\nfunction useEventListener(eventName, handler, element, options) {\n const savedHandler = useRef(handler);\n useIsomorphicLayoutEffect(() => {\n savedHandler.current = handler;\n }, [handler]);\n useEffect(() => {\n const targetElement = (element == null ? void 0 : element.current) ?? window;\n if (!(targetElement && targetElement.addEventListener))\n return;\n const listener = (event) => {\n savedHandler.current(event);\n };\n targetElement.addEventListener(eventName, listener, options);\n return () => {\n targetElement.removeEventListener(eventName, listener, options);\n };\n }, [eventName, element, options]);\n}\n\n// src/useClickAnyWhere/useClickAnyWhere.ts\nfunction useClickAnyWhere(handler) {\n useEventListener(\"click\", (event) => {\n handler(event);\n });\n}\nfunction useCopyToClipboard() {\n const [copiedText, setCopiedText] = useState(null);\n const copy = useCallback(async (text) => {\n if (!(navigator == null ? void 0 : navigator.clipboard)) {\n console.warn(\"Clipboard not supported\");\n return false;\n }\n try {\n await navigator.clipboard.writeText(text);\n setCopiedText(text);\n return true;\n } catch (error) {\n console.warn(\"Copy failed\", error);\n setCopiedText(null);\n return false;\n }\n }, []);\n return [copiedText, copy];\n}\nfunction useCounter(initialValue) {\n const [count, setCount] = useState(initialValue ?? 0);\n const increment = useCallback(() => {\n setCount((x) => x + 1);\n }, []);\n const decrement = useCallback(() => {\n setCount((x) => x - 1);\n }, []);\n const reset = useCallback(() => {\n setCount(initialValue ?? 0);\n }, [initialValue]);\n return {\n count,\n increment,\n decrement,\n reset,\n setCount\n };\n}\nfunction useInterval(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (delay === null) {\n return;\n }\n const id = setInterval(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearInterval(id);\n };\n }, [delay]);\n}\n\n// src/useCountdown/useCountdown.ts\nfunction useCountdown({\n countStart,\n countStop = 0,\n intervalMs = 1e3,\n isIncrement = false\n}) {\n const {\n count,\n increment,\n decrement,\n reset: resetCounter\n } = useCounter(countStart);\n const {\n value: isCountdownRunning,\n setTrue: startCountdown,\n setFalse: stopCountdown\n } = useBoolean(false);\n const resetCountdown = useCallback(() => {\n stopCountdown();\n resetCounter();\n }, [stopCountdown, resetCounter]);\n const countdownCallback = useCallback(() => {\n if (count === countStop) {\n stopCountdown();\n return;\n }\n if (isIncrement) {\n increment();\n } else {\n decrement();\n }\n }, [count, countStop, decrement, increment, isIncrement, stopCountdown]);\n useInterval(countdownCallback, isCountdownRunning ? intervalMs : null);\n return [count, { startCountdown, stopCountdown, resetCountdown }];\n}\nfunction useEventCallback(fn) {\n const ref = useRef(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n useIsomorphicLayoutEffect(() => {\n ref.current = fn;\n }, [fn]);\n return useCallback((...args) => {\n var _a;\n return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);\n }, [ref]);\n}\n\n// src/useLocalStorage/useLocalStorage.ts\nvar IS_SERVER = typeof window === \"undefined\";\nfunction useLocalStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER) {\n return initialValueToUse;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER) {\n console.warn(\n `Tried setting localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.localStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting localStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER) {\n console.warn(\n `Tried removing localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.localStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nvar IS_SERVER2 = typeof window === \"undefined\";\nfunction useMediaQuery(query, {\n defaultValue = false,\n initializeWithValue = true\n} = {}) {\n const getMatches = (query2) => {\n if (IS_SERVER2) {\n return defaultValue;\n }\n return window.matchMedia(query2).matches;\n };\n const [matches, setMatches] = useState(() => {\n if (initializeWithValue) {\n return getMatches(query);\n }\n return defaultValue;\n });\n function handleChange() {\n setMatches(getMatches(query));\n }\n useIsomorphicLayoutEffect(() => {\n const matchMedia = window.matchMedia(query);\n handleChange();\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange);\n } else {\n matchMedia.addEventListener(\"change\", handleChange);\n }\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange);\n } else {\n matchMedia.removeEventListener(\"change\", handleChange);\n }\n };\n }, [query]);\n return matches;\n}\n\n// src/useDarkMode/useDarkMode.ts\nvar COLOR_SCHEME_QUERY = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY = \"usehooks-ts-dark-mode\";\nfunction useDarkMode(options = {}) {\n const {\n defaultValue,\n localStorageKey = LOCAL_STORAGE_KEY,\n initializeWithValue = true\n } = options;\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY, {\n initializeWithValue,\n defaultValue\n });\n const [isDarkMode, setDarkMode] = useLocalStorage(\n localStorageKey,\n defaultValue ?? isDarkOS ?? false,\n { initializeWithValue }\n );\n useIsomorphicLayoutEffect(() => {\n if (isDarkOS !== isDarkMode) {\n setDarkMode(isDarkOS);\n }\n }, [isDarkOS]);\n return {\n isDarkMode,\n toggle: () => {\n setDarkMode((prev) => !prev);\n },\n enable: () => {\n setDarkMode(true);\n },\n disable: () => {\n setDarkMode(false);\n },\n set: (value) => {\n setDarkMode(value);\n }\n };\n}\nfunction useUnmount(func) {\n const funcRef = useRef(func);\n funcRef.current = func;\n useEffect(\n () => () => {\n funcRef.current();\n },\n []\n );\n}\n\n// src/useDebounceCallback/useDebounceCallback.ts\nfunction useDebounceCallback(func, delay = 500, options) {\n const debouncedFunc = useRef();\n useUnmount(() => {\n if (debouncedFunc.current) {\n debouncedFunc.current.cancel();\n }\n });\n const debounced = useMemo(() => {\n const debouncedFuncInstance = debounce(func, delay, options);\n const wrappedFunc = (...args) => {\n return debouncedFuncInstance(...args);\n };\n wrappedFunc.cancel = () => {\n debouncedFuncInstance.cancel();\n };\n wrappedFunc.isPending = () => {\n return !!debouncedFunc.current;\n };\n wrappedFunc.flush = () => {\n return debouncedFuncInstance.flush();\n };\n return wrappedFunc;\n }, [func, delay, options]);\n useEffect(() => {\n debouncedFunc.current = debounce(func, delay, options);\n }, [func, delay, options]);\n return debounced;\n}\nfunction useDebounceValue(initialValue, delay, options) {\n const eq = (options == null ? void 0 : options.equalityFn) ?? ((left, right) => left === right);\n const unwrappedInitialValue = initialValue instanceof Function ? initialValue() : initialValue;\n const [debouncedValue, setDebouncedValue] = useState(unwrappedInitialValue);\n const previousValueRef = useRef(unwrappedInitialValue);\n const updateDebouncedValue = useDebounceCallback(\n setDebouncedValue,\n delay,\n options\n );\n if (!eq(previousValueRef.current, unwrappedInitialValue)) {\n updateDebouncedValue(unwrappedInitialValue);\n previousValueRef.current = unwrappedInitialValue;\n }\n return [debouncedValue, updateDebouncedValue];\n}\nfunction useDocumentTitle(title, options = {}) {\n const { preserveTitleOnUnmount = true } = options;\n const defaultTitle = useRef(null);\n useIsomorphicLayoutEffect(() => {\n defaultTitle.current = window.document.title;\n }, []);\n useIsomorphicLayoutEffect(() => {\n window.document.title = title;\n }, [title]);\n useUnmount(() => {\n if (!preserveTitleOnUnmount && defaultTitle.current) {\n window.document.title = defaultTitle.current;\n }\n });\n}\nfunction useHover(elementRef) {\n const [value, setValue] = useState(false);\n const handleMouseEnter = () => {\n setValue(true);\n };\n const handleMouseLeave = () => {\n setValue(false);\n };\n useEventListener(\"mouseenter\", handleMouseEnter, elementRef);\n useEventListener(\"mouseleave\", handleMouseLeave, elementRef);\n return value;\n}\nfunction useIntersectionObserver({\n threshold = 0,\n root = null,\n rootMargin = \"0%\",\n freezeOnceVisible = false,\n initialIsIntersecting = false,\n onChange\n} = {}) {\n var _a;\n const [ref, setRef] = useState(null);\n const [state, setState] = useState(() => ({\n isIntersecting: initialIsIntersecting,\n entry: void 0\n }));\n const callbackRef = useRef();\n callbackRef.current = onChange;\n const frozen = ((_a = state.entry) == null ? void 0 : _a.isIntersecting) && freezeOnceVisible;\n useEffect(() => {\n if (!ref)\n return;\n if (!(\"IntersectionObserver\" in window))\n return;\n if (frozen)\n return;\n let unobserve;\n const observer = new IntersectionObserver(\n (entries) => {\n const thresholds = Array.isArray(observer.thresholds) ? observer.thresholds : [observer.thresholds];\n entries.forEach((entry) => {\n const isIntersecting = entry.isIntersecting && thresholds.some((threshold2) => entry.intersectionRatio >= threshold2);\n setState({ isIntersecting, entry });\n if (callbackRef.current) {\n callbackRef.current(isIntersecting, entry);\n }\n if (isIntersecting && freezeOnceVisible && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n });\n },\n { threshold, root, rootMargin }\n );\n observer.observe(ref);\n return () => {\n observer.disconnect();\n };\n }, [\n ref,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(threshold),\n root,\n rootMargin,\n frozen,\n freezeOnceVisible\n ]);\n const prevRef = useRef(null);\n useEffect(() => {\n var _a2;\n if (!ref && ((_a2 = state.entry) == null ? void 0 : _a2.target) && !freezeOnceVisible && !frozen && prevRef.current !== state.entry.target) {\n prevRef.current = state.entry.target;\n setState({ isIntersecting: initialIsIntersecting, entry: void 0 });\n }\n }, [ref, state.entry, freezeOnceVisible, frozen, initialIsIntersecting]);\n const result = [\n setRef,\n !!state.isIntersecting,\n state.entry\n ];\n result.ref = result[0];\n result.isIntersecting = result[1];\n result.entry = result[2];\n return result;\n}\nfunction useIsClient() {\n const [isClient, setClient] = useState(false);\n useEffect(() => {\n setClient(true);\n }, []);\n return isClient;\n}\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return useCallback(() => isMounted.current, []);\n}\nfunction useMap(initialState = /* @__PURE__ */ new Map()) {\n const [map, setMap] = useState(new Map(initialState));\n const actions = {\n set: useCallback((key, value) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.set(key, value);\n return copy;\n });\n }, []),\n setAll: useCallback((entries) => {\n setMap(() => new Map(entries));\n }, []),\n remove: useCallback((key) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.delete(key);\n return copy;\n });\n }, []),\n reset: useCallback(() => {\n setMap(() => /* @__PURE__ */ new Map());\n }, [])\n };\n return [map, actions];\n}\n\n// src/useOnClickOutside/useOnClickOutside.ts\nfunction useOnClickOutside(ref, handler, eventType = \"mousedown\", eventListenerOptions = {}) {\n useEventListener(\n eventType,\n (event) => {\n const target = event.target;\n if (!target || !target.isConnected) {\n return;\n }\n const isOutside = Array.isArray(ref) ? ref.filter((r) => Boolean(r.current)).every((r) => r.current && !r.current.contains(target)) : ref.current && !ref.current.contains(target);\n if (isOutside) {\n handler(event);\n }\n },\n void 0,\n eventListenerOptions\n );\n}\nvar IS_SERVER3 = typeof window === \"undefined\";\nfunction useReadLocalStorage(key, options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER3) {\n initializeWithValue = false;\n }\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return null;\n }\n return parsed;\n },\n [options]\n );\n const readValue = useCallback(() => {\n if (IS_SERVER3) {\n return null;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : null;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return null;\n }\n }, [key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return void 0;\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return storedValue;\n}\nvar initialSize = {\n width: void 0,\n height: void 0\n};\nfunction useResizeObserver(options) {\n const { ref, box = \"content-box\" } = options;\n const [{ width, height }, setSize] = useState(initialSize);\n const isMounted = useIsMounted();\n const previousSize = useRef({ ...initialSize });\n const onResize = useRef(void 0);\n onResize.current = options.onResize;\n useEffect(() => {\n if (!ref.current)\n return;\n if (typeof window === \"undefined\" || !(\"ResizeObserver\" in window))\n return;\n const observer = new ResizeObserver(([entry]) => {\n const boxProp = box === \"border-box\" ? \"borderBoxSize\" : box === \"device-pixel-content-box\" ? \"devicePixelContentBoxSize\" : \"contentBoxSize\";\n const newWidth = extractSize(entry, boxProp, \"inlineSize\");\n const newHeight = extractSize(entry, boxProp, \"blockSize\");\n const hasChanged = previousSize.current.width !== newWidth || previousSize.current.height !== newHeight;\n if (hasChanged) {\n const newSize = { width: newWidth, height: newHeight };\n previousSize.current.width = newWidth;\n previousSize.current.height = newHeight;\n if (onResize.current) {\n onResize.current(newSize);\n } else {\n if (isMounted()) {\n setSize(newSize);\n }\n }\n }\n });\n observer.observe(ref.current, { box });\n return () => {\n observer.disconnect();\n };\n }, [box, ref, isMounted]);\n return { width, height };\n}\nfunction extractSize(entry, box, sizeType) {\n if (!entry[box]) {\n if (box === \"contentBoxSize\") {\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"];\n }\n return void 0;\n }\n return Array.isArray(entry[box]) ? entry[box][0][sizeType] : (\n // @ts-ignore Support Firefox's non-standard behavior\n entry[box][sizeType]\n );\n}\nvar IS_SERVER4 = typeof window === \"undefined\";\nfunction useScreen(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER4) {\n initializeWithValue = false;\n }\n const readScreen = () => {\n if (IS_SERVER4) {\n return void 0;\n }\n return window.screen;\n };\n const [screen, setScreen] = useState(() => {\n if (initializeWithValue) {\n return readScreen();\n }\n return void 0;\n });\n const debouncedSetScreen = useDebounceCallback(\n setScreen,\n options.debounceDelay\n );\n function handleSize() {\n const newScreen = readScreen();\n const setSize = options.debounceDelay ? debouncedSetScreen : setScreen;\n if (newScreen) {\n const {\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n } = newScreen;\n setSize({\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n });\n }\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return screen;\n}\nvar cachedScriptStatuses = /* @__PURE__ */ new Map();\nfunction getScriptNode(src) {\n const node = document.querySelector(\n `script[src=\"${src}\"]`\n );\n const status = node == null ? void 0 : node.getAttribute(\"data-status\");\n return {\n node,\n status\n };\n}\nfunction useScript(src, options) {\n const [status, setStatus] = useState(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return \"idle\";\n }\n if (typeof window === \"undefined\") {\n return \"loading\";\n }\n return cachedScriptStatuses.get(src) ?? \"loading\";\n });\n useEffect(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return;\n }\n const cachedScriptStatus = cachedScriptStatuses.get(src);\n if (cachedScriptStatus === \"ready\" || cachedScriptStatus === \"error\") {\n setStatus(cachedScriptStatus);\n return;\n }\n const script = getScriptNode(src);\n let scriptNode = script.node;\n if (!scriptNode) {\n scriptNode = document.createElement(\"script\");\n scriptNode.src = src;\n scriptNode.async = true;\n if (options == null ? void 0 : options.id) {\n scriptNode.id = options.id;\n }\n scriptNode.setAttribute(\"data-status\", \"loading\");\n document.body.appendChild(scriptNode);\n const setAttributeFromEvent = (event) => {\n const scriptStatus = event.type === \"load\" ? \"ready\" : \"error\";\n scriptNode == null ? void 0 : scriptNode.setAttribute(\"data-status\", scriptStatus);\n };\n scriptNode.addEventListener(\"load\", setAttributeFromEvent);\n scriptNode.addEventListener(\"error\", setAttributeFromEvent);\n } else {\n setStatus(script.status ?? cachedScriptStatus ?? \"loading\");\n }\n const setStateFromEvent = (event) => {\n const newStatus = event.type === \"load\" ? \"ready\" : \"error\";\n setStatus(newStatus);\n cachedScriptStatuses.set(src, newStatus);\n };\n scriptNode.addEventListener(\"load\", setStateFromEvent);\n scriptNode.addEventListener(\"error\", setStateFromEvent);\n return () => {\n if (scriptNode) {\n scriptNode.removeEventListener(\"load\", setStateFromEvent);\n scriptNode.removeEventListener(\"error\", setStateFromEvent);\n }\n if (scriptNode && (options == null ? void 0 : options.removeOnUnmount)) {\n scriptNode.remove();\n cachedScriptStatuses.delete(src);\n }\n };\n }, [src, options == null ? void 0 : options.shouldPreventLoad, options == null ? void 0 : options.removeOnUnmount, options == null ? void 0 : options.id]);\n return status;\n}\nvar IS_SERVER5 = typeof window === \"undefined\";\nfunction useScrollLock(options = {}) {\n const { autoLock = true, lockTarget, widthReflow = true } = options;\n const [isLocked, setIsLocked] = useState(false);\n const target = useRef(null);\n const originalStyle = useRef(null);\n const lock = () => {\n if (target.current) {\n const { overflow, paddingRight } = target.current.style;\n originalStyle.current = { overflow, paddingRight };\n if (widthReflow) {\n const offsetWidth = target.current === document.body ? window.innerWidth : target.current.offsetWidth;\n const currentPaddingRight = parseInt(window.getComputedStyle(target.current).paddingRight, 10) || 0;\n const scrollbarWidth = offsetWidth - target.current.scrollWidth;\n target.current.style.paddingRight = `${scrollbarWidth + currentPaddingRight}px`;\n }\n target.current.style.overflow = \"hidden\";\n setIsLocked(true);\n }\n };\n const unlock = () => {\n if (target.current && originalStyle.current) {\n target.current.style.overflow = originalStyle.current.overflow;\n if (widthReflow) {\n target.current.style.paddingRight = originalStyle.current.paddingRight;\n }\n }\n setIsLocked(false);\n };\n useIsomorphicLayoutEffect(() => {\n if (IS_SERVER5)\n return;\n if (lockTarget) {\n target.current = typeof lockTarget === \"string\" ? document.querySelector(lockTarget) : lockTarget;\n }\n if (!target.current) {\n target.current = document.body;\n }\n if (autoLock) {\n lock();\n }\n return () => {\n unlock();\n };\n }, [autoLock, lockTarget, widthReflow]);\n return { isLocked, lock, unlock };\n}\nvar IS_SERVER6 = typeof window === \"undefined\";\nfunction useSessionStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER6) {\n return initialValueToUse;\n }\n try {\n const raw = window.sessionStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading sessionStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER6) {\n console.warn(\n `Tried setting sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.sessionStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting sessionStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER6) {\n console.warn(\n `Tried removing sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.sessionStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"session-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nfunction useStep(maxStep) {\n const [currentStep, setCurrentStep] = useState(1);\n const canGoToNextStep = currentStep + 1 <= maxStep;\n const canGoToPrevStep = currentStep - 1 > 0;\n const setStep = useCallback(\n (step) => {\n const newStep = step instanceof Function ? step(currentStep) : step;\n if (newStep >= 1 && newStep <= maxStep) {\n setCurrentStep(newStep);\n return;\n }\n throw new Error(\"Step not valid\");\n },\n [maxStep, currentStep]\n );\n const goToNextStep = useCallback(() => {\n if (canGoToNextStep) {\n setCurrentStep((step) => step + 1);\n }\n }, [canGoToNextStep]);\n const goToPrevStep = useCallback(() => {\n if (canGoToPrevStep) {\n setCurrentStep((step) => step - 1);\n }\n }, [canGoToPrevStep]);\n const reset = useCallback(() => {\n setCurrentStep(1);\n }, []);\n return [\n currentStep,\n {\n goToNextStep,\n goToPrevStep,\n canGoToNextStep,\n canGoToPrevStep,\n setStep,\n reset\n }\n ];\n}\n\n// src/useTernaryDarkMode/useTernaryDarkMode.ts\nvar COLOR_SCHEME_QUERY2 = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY2 = \"usehooks-ts-ternary-dark-mode\";\nfunction useTernaryDarkMode({\n defaultValue = \"system\",\n localStorageKey = LOCAL_STORAGE_KEY2,\n initializeWithValue = true\n} = {}) {\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY2, { initializeWithValue });\n const [mode, setMode] = useLocalStorage(localStorageKey, defaultValue, {\n initializeWithValue\n });\n const isDarkMode = mode === \"dark\" || mode === \"system\" && isDarkOS;\n const toggleTernaryDarkMode = () => {\n const modes = [\"light\", \"system\", \"dark\"];\n setMode((prevMode) => {\n const nextIndex = (modes.indexOf(prevMode) + 1) % modes.length;\n return modes[nextIndex];\n });\n };\n return {\n isDarkMode,\n ternaryDarkMode: mode,\n setTernaryDarkMode: setMode,\n toggleTernaryDarkMode\n };\n}\nfunction useTimeout(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (!delay && delay !== 0) {\n return;\n }\n const id = setTimeout(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearTimeout(id);\n };\n }, [delay]);\n}\nfunction useToggle(defaultValue) {\n const [value, setValue] = useState(!!defaultValue);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return [value, toggle, setValue];\n}\nvar IS_SERVER7 = typeof window === \"undefined\";\nfunction useWindowSize(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER7) {\n initializeWithValue = false;\n }\n const [windowSize, setWindowSize] = useState(() => {\n if (initializeWithValue) {\n return {\n width: window.innerWidth,\n height: window.innerHeight\n };\n }\n return {\n width: void 0,\n height: void 0\n };\n });\n const debouncedSetWindowSize = useDebounceCallback(\n setWindowSize,\n options.debounceDelay\n );\n function handleSize() {\n const setSize = options.debounceDelay ? debouncedSetWindowSize : setWindowSize;\n setSize({\n width: window.innerWidth,\n height: window.innerHeight\n });\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return windowSize;\n}\n\nexport { useBoolean, useClickAnyWhere, useCopyToClipboard, useCountdown, useCounter, useDarkMode, useDebounceCallback, useDebounceValue, useDocumentTitle, useEventCallback, useEventListener, useHover, useIntersectionObserver, useInterval, useIsClient, useIsMounted, useIsomorphicLayoutEffect, useLocalStorage, useMap, useMediaQuery, useOnClickOutside, useReadLocalStorage, useResizeObserver, useScreen, useScript, useScrollLock, useSessionStorage, useStep, useTernaryDarkMode, useTimeout, useToggle, useUnmount, useWindowSize };\n"],"names":["useCopyToClipboard","copiedText","setCopiedText","useState","copy","useCallback","text","error"],"mappings":"sIAgDA,SAASA,GAAqB,CAC5B,KAAM,CAACC,EAAYC,CAAa,EAAIC,EAAAA,SAAS,IAAI,EAC3CC,EAAOC,cAAY,MAAOC,GAAS,CACvC,GAAI,EAAE,WAAa,MAAgB,UAAU,WAC3C,eAAQ,KAAK,yBAAyB,EAC/B,GAET,GAAI,CACF,aAAM,UAAU,UAAU,UAAUA,CAAI,EACxCJ,EAAcI,CAAI,EACX,EACT,OAASC,EAAO,CACd,eAAQ,KAAK,cAAeA,CAAK,EACjCL,EAAc,IAAI,EACX,EACT,CACF,EAAG,CAAA,CAAE,EACL,MAAO,CAACD,EAAYG,CAAI,CAC1B","x_google_ignoreList":[0]}
|
package/dist/index.cjs467.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./index.cjs547.js");function a(e){const t=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(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=a(u);var i=o[" useId ".trim().toString()]||(()=>{}),s=0;function d(e){const[t,r]=o.useState(i());return c.useLayoutEffect(()=>{r(n=>n??String(s++))},[e]),e||(t?`radix-${t}`:"")}exports.useId=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs467.js.map
|
package/dist/index.cjs467.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs467.js","sources":["../node_modules/@radix-ui/react-
|
|
1
|
+
{"version":3,"file":"index.cjs467.js","sources":["../node_modules/@radix-ui/react-id/dist/index.mjs"],"sourcesContent":["// packages/react/id/src/id.tsx\nimport * as React from \"react\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nvar useReactId = React[\" useId \".trim().toString()] || (() => void 0);\nvar count = 0;\nfunction useId(deterministicId) {\n const [id, setId] = React.useState(useReactId());\n useLayoutEffect(() => {\n if (!deterministicId) setId((reactId) => reactId ?? String(count++));\n }, [deterministicId]);\n return deterministicId || (id ? `radix-${id}` : \"\");\n}\nexport {\n useId\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useReactId","React","count","useId","deterministicId","id","setId","useLayoutEffect","reactId"],"mappings":"kaAGA,IAAIA,EAAaC,EAAM,UAAU,KAAI,EAAG,SAAQ,CAAE,IAAM,IAAA,IACpDC,EAAQ,EACZ,SAASC,EAAMC,EAAiB,CAC9B,KAAM,CAACC,EAAIC,CAAK,EAAIL,EAAM,SAASD,GAAY,EAC/CO,OAAAA,EAAAA,gBAAgB,IAAM,CACED,EAAOE,GAAYA,GAAW,OAAON,GAAO,CAAC,CACrE,EAAG,CAACE,CAAe,CAAC,EACbA,IAAoBC,EAAK,SAASA,CAAE,GAAK,GAClD","x_google_ignoreList":[0]}
|
package/dist/index.cjs468.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),v=require("./index.cjs547.js");function S(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const r=S(b);var g=r[" useInsertionEffect ".trim().toString()]||v.useLayoutEffect;function y({prop:e,defaultProp:o,onChange:t=()=>{},caller:c}){const[i,n,u]=O({defaultProp:o,onChange:t}),l=e!==void 0,d=l?e:i;{const s=r.useRef(e!==void 0);r.useEffect(()=>{const f=s.current;f!==l&&console.warn(`${c} is changing from ${f?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),s.current=l},[l,c])}const m=r.useCallback(s=>{var f;if(l){const a=j(s)?s(e):s;a!==e&&((f=u.current)==null||f.call(u,a))}else n(s)},[l,e,n,u]);return[d,m]}function O({defaultProp:e,onChange:o}){const[t,c]=r.useState(e),i=r.useRef(t),n=r.useRef(o);return g(()=>{n.current=o},[o]),r.useEffect(()=>{var u;i.current!==t&&((u=n.current)==null||u.call(n,t),i.current=t)},[t,i]),[t,c,n]}function j(e){return typeof e=="function"}exports.useControllableState=y;
|
|
2
2
|
//# sourceMappingURL=index.cjs468.js.map
|