@creaditor/newsletter-starterkit 1.0.0
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/README.md +258 -0
- package/dist/1030.creaditor.bundle.js +318 -0
- package/dist/1030.creaditor.bundle.js.LICENSE.txt +11 -0
- package/dist/1030.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/1030.creaditor.bundle.js.gz +0 -0
- package/dist/1101.creaditor.bundle.js +21 -0
- package/dist/1101.creaditor.bundle.js.gz +0 -0
- package/dist/116.creaditor.bundle.js +23 -0
- package/dist/116.creaditor.bundle.js.gz +0 -0
- package/dist/1199.creaditor.bundle.js +23 -0
- package/dist/1199.creaditor.bundle.js.gz +0 -0
- package/dist/132.creaditor.bundle.js +30 -0
- package/dist/132.creaditor.bundle.js.gz +0 -0
- package/dist/1366.creaditor.bundle.js +238 -0
- package/dist/1366.creaditor.bundle.js.LICENSE.txt +21 -0
- package/dist/1366.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/1366.creaditor.bundle.js.gz +0 -0
- package/dist/1381.creaditor.bundle.js +6 -0
- package/dist/1381.creaditor.bundle.js.gz +0 -0
- package/dist/1410.creaditor.bundle.js +236 -0
- package/dist/1410.creaditor.bundle.js.LICENSE.txt +21 -0
- package/dist/1410.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/1410.creaditor.bundle.js.gz +0 -0
- package/dist/1449.creaditor.bundle.js +604 -0
- package/dist/1449.creaditor.bundle.js.LICENSE.txt +10 -0
- package/dist/1449.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/1449.creaditor.bundle.js.gz +0 -0
- package/dist/1582.creaditor.bundle.js +23 -0
- package/dist/1582.creaditor.bundle.js.gz +0 -0
- package/dist/1650.creaditor.bundle.js +23 -0
- package/dist/1650.creaditor.bundle.js.gz +0 -0
- package/dist/168.creaditor.bundle.js +142 -0
- package/dist/168.creaditor.bundle.js.LICENSE.txt +20 -0
- package/dist/168.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/168.creaditor.bundle.js.gz +0 -0
- package/dist/1731.creaditor.bundle.js +51 -0
- package/dist/1731.creaditor.bundle.js.gz +0 -0
- package/dist/1790.creaditor.bundle.js +1 -0
- package/dist/1790.creaditor.bundle.js.gz +0 -0
- package/dist/185.creaditor.bundle.js +114 -0
- package/dist/185.creaditor.bundle.js.gz +0 -0
- package/dist/1867.creaditor.bundle.js +171 -0
- package/dist/1867.creaditor.bundle.js.gz +0 -0
- package/dist/19.creaditor.bundle.js +36 -0
- package/dist/19.creaditor.bundle.js.gz +0 -0
- package/dist/201.creaditor.bundle.js +98 -0
- package/dist/201.creaditor.bundle.js.gz +0 -0
- package/dist/2012.creaditor.bundle.js +6 -0
- package/dist/2012.creaditor.bundle.js.gz +0 -0
- package/dist/2022.creaditor.bundle.js +13 -0
- package/dist/2022.creaditor.bundle.js.gz +0 -0
- package/dist/2050.creaditor.bundle.js +16 -0
- package/dist/2050.creaditor.bundle.js.gz +0 -0
- package/dist/2087.creaditor.bundle.js +25 -0
- package/dist/2087.creaditor.bundle.js.gz +0 -0
- package/dist/2111.creaditor.bundle.js +23 -0
- package/dist/2111.creaditor.bundle.js.gz +0 -0
- package/dist/2118.creaditor.bundle.js +23 -0
- package/dist/2118.creaditor.bundle.js.gz +0 -0
- package/dist/2182.creaditor.bundle.js +27 -0
- package/dist/2182.creaditor.bundle.js.gz +0 -0
- package/dist/2340.creaditor.bundle.js +440 -0
- package/dist/2340.creaditor.bundle.js.LICENSE.txt +11 -0
- package/dist/2340.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/2340.creaditor.bundle.js.gz +0 -0
- package/dist/2357.creaditor.bundle.js +25 -0
- package/dist/2357.creaditor.bundle.js.gz +0 -0
- package/dist/2365.creaditor.bundle.js +25 -0
- package/dist/2365.creaditor.bundle.js.gz +0 -0
- package/dist/2397.creaditor.bundle.js +661 -0
- package/dist/2397.creaditor.bundle.js.LICENSE.txt +11 -0
- package/dist/2397.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/2397.creaditor.bundle.js.gz +0 -0
- package/dist/2416.creaditor.bundle.js +32 -0
- package/dist/2416.creaditor.bundle.js.gz +0 -0
- package/dist/2455.creaditor.bundle.js +75 -0
- package/dist/2455.creaditor.bundle.js.LICENSE.txt +1 -0
- package/dist/2455.creaditor.bundle.js.gz +0 -0
- package/dist/2475.creaditor.bundle.js +177 -0
- package/dist/2475.creaditor.bundle.js.LICENSE.txt +23 -0
- package/dist/2475.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/2475.creaditor.bundle.js.gz +0 -0
- package/dist/2543.creaditor.bundle.js +112 -0
- package/dist/2543.creaditor.bundle.js.gz +0 -0
- package/dist/2605.creaditor.bundle.js +171 -0
- package/dist/2605.creaditor.bundle.js.LICENSE.txt +11 -0
- package/dist/2605.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/2605.creaditor.bundle.js.gz +0 -0
- package/dist/2609.creaditor.bundle.js +2 -0
- package/dist/2609.creaditor.bundle.js.LICENSE.txt +10 -0
- package/dist/2609.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/2609.creaditor.bundle.js.gz +0 -0
- package/dist/2721.creaditor.bundle.js +11 -0
- package/dist/2721.creaditor.bundle.js.gz +0 -0
- package/dist/2757.creaditor.bundle.js +1 -0
- package/dist/2757.creaditor.bundle.js.gz +0 -0
- package/dist/296.creaditor.bundle.js +11 -0
- package/dist/296.creaditor.bundle.js.LICENSE.txt +11 -0
- package/dist/296.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/296.creaditor.bundle.js.gz +0 -0
- package/dist/2977.creaditor.bundle.js +53 -0
- package/dist/2977.creaditor.bundle.js.gz +0 -0
- package/dist/3020.creaditor.bundle.js +13 -0
- package/dist/3020.creaditor.bundle.js.gz +0 -0
- package/dist/308.creaditor.bundle.js +16 -0
- package/dist/308.creaditor.bundle.js.gz +0 -0
- package/dist/315.creaditor.bundle.js +142 -0
- package/dist/315.creaditor.bundle.js.LICENSE.txt +11 -0
- package/dist/315.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/315.creaditor.bundle.js.gz +0 -0
- package/dist/335.creaditor.bundle.js +23 -0
- package/dist/335.creaditor.bundle.js.gz +0 -0
- package/dist/3381.creaditor.bundle.js +40 -0
- package/dist/3381.creaditor.bundle.js.gz +0 -0
- package/dist/3453.creaditor.bundle.js +23 -0
- package/dist/3453.creaditor.bundle.js.gz +0 -0
- package/dist/3585.creaditor.bundle.js +1 -0
- package/dist/3585.creaditor.bundle.js.gz +0 -0
- package/dist/3614.creaditor.bundle.js +26 -0
- package/dist/3614.creaditor.bundle.js.gz +0 -0
- package/dist/3622.creaditor.bundle.js +236 -0
- package/dist/3622.creaditor.bundle.js.gz +0 -0
- package/dist/3691.creaditor.bundle.js +2 -0
- package/dist/3691.creaditor.bundle.js.LICENSE.txt +1 -0
- package/dist/3691.creaditor.bundle.js.gz +0 -0
- package/dist/3727.creaditor.bundle.js +227 -0
- package/dist/3727.creaditor.bundle.js.gz +0 -0
- package/dist/3732.creaditor.bundle.js +15 -0
- package/dist/3732.creaditor.bundle.js.gz +0 -0
- package/dist/3755.creaditor.bundle.js +94 -0
- package/dist/3755.creaditor.bundle.js.gz +0 -0
- package/dist/3778.creaditor.bundle.js +1 -0
- package/dist/3778.creaditor.bundle.js.gz +0 -0
- package/dist/3794.creaditor.bundle.js +34 -0
- package/dist/3794.creaditor.bundle.js.gz +0 -0
- package/dist/3831.creaditor.bundle.js +23 -0
- package/dist/3831.creaditor.bundle.js.gz +0 -0
- package/dist/3847.creaditor.bundle.js +34 -0
- package/dist/3847.creaditor.bundle.js.gz +0 -0
- package/dist/4.creaditor.bundle.js +6 -0
- package/dist/4.creaditor.bundle.js.gz +0 -0
- package/dist/4050.creaditor.bundle.js +424 -0
- package/dist/4050.creaditor.bundle.js.LICENSE.txt +10 -0
- package/dist/4050.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/4050.creaditor.bundle.js.gz +0 -0
- package/dist/4128.creaditor.bundle.js +395 -0
- package/dist/4128.creaditor.bundle.js.LICENSE.txt +10 -0
- package/dist/4128.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/4128.creaditor.bundle.js.gz +0 -0
- package/dist/4159.creaditor.bundle.js +453 -0
- package/dist/4159.creaditor.bundle.js.LICENSE.txt +10 -0
- package/dist/4159.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/4159.creaditor.bundle.js.gz +0 -0
- package/dist/42.creaditor.bundle.js +18 -0
- package/dist/42.creaditor.bundle.js.gz +0 -0
- package/dist/4212.creaditor.bundle.js +72 -0
- package/dist/4212.creaditor.bundle.js.gz +0 -0
- package/dist/4455.creaditor.bundle.js +16 -0
- package/dist/4455.creaditor.bundle.js.gz +0 -0
- package/dist/4473.creaditor.bundle.js +51 -0
- package/dist/4473.creaditor.bundle.js.gz +0 -0
- package/dist/4569.creaditor.bundle.js +23 -0
- package/dist/4569.creaditor.bundle.js.gz +0 -0
- package/dist/4648.creaditor.bundle.js +122 -0
- package/dist/4648.creaditor.bundle.js.gz +0 -0
- package/dist/4661.creaditor.bundle.js +25 -0
- package/dist/4661.creaditor.bundle.js.gz +0 -0
- package/dist/4807.creaditor.bundle.js +105 -0
- package/dist/4807.creaditor.bundle.js.gz +0 -0
- package/dist/4900.creaditor.bundle.js +19 -0
- package/dist/4900.creaditor.bundle.js.gz +0 -0
- package/dist/494.creaditor.bundle.js +23 -0
- package/dist/494.creaditor.bundle.js.gz +0 -0
- package/dist/5034.creaditor.bundle.js +27 -0
- package/dist/5034.creaditor.bundle.js.gz +0 -0
- package/dist/5090.creaditor.bundle.js +173 -0
- package/dist/5090.creaditor.bundle.js.gz +0 -0
- package/dist/5204.creaditor.bundle.js +1 -0
- package/dist/5204.creaditor.bundle.js.gz +0 -0
- package/dist/5246.creaditor.bundle.js +900 -0
- package/dist/5246.creaditor.bundle.js.LICENSE.txt +10 -0
- package/dist/5246.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/5246.creaditor.bundle.js.gz +0 -0
- package/dist/5320.creaditor.bundle.js +408 -0
- package/dist/5320.creaditor.bundle.js.LICENSE.txt +11 -0
- package/dist/5320.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/5320.creaditor.bundle.js.gz +0 -0
- package/dist/5349.creaditor.bundle.js +289 -0
- package/dist/5349.creaditor.bundle.js.LICENSE.txt +17 -0
- package/dist/5349.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/5349.creaditor.bundle.js.gz +0 -0
- package/dist/5478.creaditor.bundle.js +18 -0
- package/dist/5478.creaditor.bundle.js.gz +0 -0
- package/dist/5581.creaditor.bundle.js +23 -0
- package/dist/5581.creaditor.bundle.js.gz +0 -0
- package/dist/5848.creaditor.bundle.js +14 -0
- package/dist/5848.creaditor.bundle.js.LICENSE.txt +5 -0
- package/dist/5848.creaditor.bundle.js.gz +0 -0
- package/dist/5910.creaditor.bundle.js +11 -0
- package/dist/5910.creaditor.bundle.js.gz +0 -0
- package/dist/5978.creaditor.bundle.js +73 -0
- package/dist/5978.creaditor.bundle.js.gz +0 -0
- package/dist/5985.creaditor.bundle.js +109 -0
- package/dist/5985.creaditor.bundle.js.gz +0 -0
- package/dist/6046.creaditor.bundle.js +36 -0
- package/dist/6046.creaditor.bundle.js.gz +0 -0
- package/dist/6052.creaditor.bundle.js +113 -0
- package/dist/6052.creaditor.bundle.js.gz +0 -0
- package/dist/6069.creaditor.bundle.js +1 -0
- package/dist/6069.creaditor.bundle.js.gz +0 -0
- package/dist/6080.creaditor.bundle.js +9 -0
- package/dist/6080.creaditor.bundle.js.gz +0 -0
- package/dist/6178.creaditor.bundle.js +60 -0
- package/dist/6178.creaditor.bundle.js.gz +0 -0
- package/dist/6196.creaditor.bundle.js +12 -0
- package/dist/6196.creaditor.bundle.js.gz +0 -0
- package/dist/6220.creaditor.bundle.js +381 -0
- package/dist/6220.creaditor.bundle.js.LICENSE.txt +10 -0
- package/dist/6220.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/6220.creaditor.bundle.js.gz +0 -0
- package/dist/6234.creaditor.bundle.js +1 -0
- package/dist/6234.creaditor.bundle.js.gz +0 -0
- package/dist/6236.creaditor.bundle.js +51 -0
- package/dist/6236.creaditor.bundle.js.gz +0 -0
- package/dist/6308.creaditor.bundle.js +102 -0
- package/dist/6308.creaditor.bundle.js.gz +0 -0
- package/dist/6354.creaditor.bundle.js +179 -0
- package/dist/6354.creaditor.bundle.js.LICENSE.txt +21 -0
- package/dist/6354.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/6354.creaditor.bundle.js.gz +0 -0
- package/dist/6430.creaditor.bundle.js +131 -0
- package/dist/6430.creaditor.bundle.js.gz +0 -0
- package/dist/6479.creaditor.bundle.js +24 -0
- package/dist/6479.creaditor.bundle.js.gz +0 -0
- package/dist/6491.creaditor.bundle.js +79 -0
- package/dist/6491.creaditor.bundle.js.gz +0 -0
- package/dist/6524.creaditor.bundle.js +20 -0
- package/dist/6524.creaditor.bundle.js.gz +0 -0
- package/dist/6577.creaditor.bundle.js +21 -0
- package/dist/6577.creaditor.bundle.js.gz +0 -0
- package/dist/6588.creaditor.bundle.js +99 -0
- package/dist/6588.creaditor.bundle.js.gz +0 -0
- package/dist/6593.creaditor.bundle.js +14 -0
- package/dist/6593.creaditor.bundle.js.gz +0 -0
- package/dist/6652.creaditor.bundle.js +1 -0
- package/dist/6652.creaditor.bundle.js.gz +0 -0
- package/dist/6700.creaditor.bundle.js +1 -0
- package/dist/6700.creaditor.bundle.js.gz +0 -0
- package/dist/6724.creaditor.bundle.js +75 -0
- package/dist/6724.creaditor.bundle.js.LICENSE.txt +1 -0
- package/dist/6724.creaditor.bundle.js.gz +0 -0
- package/dist/6737.creaditor.bundle.js +61 -0
- package/dist/6737.creaditor.bundle.js.gz +0 -0
- package/dist/6807.creaditor.bundle.js +21 -0
- package/dist/6807.creaditor.bundle.js.gz +0 -0
- package/dist/6826.creaditor.bundle.js +23 -0
- package/dist/6826.creaditor.bundle.js.gz +0 -0
- package/dist/6848.creaditor.bundle.js +130 -0
- package/dist/6848.creaditor.bundle.js.gz +0 -0
- package/dist/6883.creaditor.bundle.js +14 -0
- package/dist/6883.creaditor.bundle.js.gz +0 -0
- package/dist/6892.creaditor.bundle.js +17 -0
- package/dist/6892.creaditor.bundle.js.LICENSE.txt +5 -0
- package/dist/6892.creaditor.bundle.js.gz +0 -0
- package/dist/6961.creaditor.bundle.js +8 -0
- package/dist/6961.creaditor.bundle.js.LICENSE.txt +11 -0
- package/dist/6961.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/6961.creaditor.bundle.js.gz +0 -0
- package/dist/6964.creaditor.bundle.js +162 -0
- package/dist/6964.creaditor.bundle.js.LICENSE.txt +17 -0
- package/dist/6964.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/6964.creaditor.bundle.js.gz +0 -0
- package/dist/6993.creaditor.bundle.js +46 -0
- package/dist/6993.creaditor.bundle.js.gz +0 -0
- package/dist/7035.creaditor.bundle.js +67 -0
- package/dist/7035.creaditor.bundle.js.gz +0 -0
- package/dist/709.creaditor.bundle.js +18 -0
- package/dist/709.creaditor.bundle.js.gz +0 -0
- package/dist/7149.creaditor.bundle.js +23 -0
- package/dist/7149.creaditor.bundle.js.gz +0 -0
- package/dist/7302.creaditor.bundle.js +2 -0
- package/dist/7302.creaditor.bundle.js.LICENSE.txt +1 -0
- package/dist/7302.creaditor.bundle.js.gz +0 -0
- package/dist/7490.creaditor.bundle.js +1 -0
- package/dist/7490.creaditor.bundle.js.gz +0 -0
- package/dist/7511.creaditor.bundle.js +21 -0
- package/dist/7511.creaditor.bundle.js.LICENSE.txt +5 -0
- package/dist/7511.creaditor.bundle.js.gz +0 -0
- package/dist/7576.creaditor.bundle.js +23 -0
- package/dist/7576.creaditor.bundle.js.gz +0 -0
- package/dist/7597.creaditor.bundle.js +47 -0
- package/dist/7597.creaditor.bundle.js.gz +0 -0
- package/dist/7804.creaditor.bundle.js +60 -0
- package/dist/7804.creaditor.bundle.js.gz +0 -0
- package/dist/7837.creaditor.bundle.js +63 -0
- package/dist/7837.creaditor.bundle.js.gz +0 -0
- package/dist/7911.creaditor.bundle.js +965 -0
- package/dist/7911.creaditor.bundle.js.gz +0 -0
- package/dist/7946.creaditor.bundle.js +1 -0
- package/dist/7946.creaditor.bundle.js.gz +0 -0
- package/dist/7988.creaditor.bundle.js +440 -0
- package/dist/7988.creaditor.bundle.js.LICENSE.txt +11 -0
- package/dist/7988.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/7988.creaditor.bundle.js.gz +0 -0
- package/dist/8073.creaditor.bundle.js +12 -0
- package/dist/8073.creaditor.bundle.js.gz +0 -0
- package/dist/8251.creaditor.bundle.js +23 -0
- package/dist/8251.creaditor.bundle.js.gz +0 -0
- package/dist/8287.creaditor.bundle.js +8 -0
- package/dist/8287.creaditor.bundle.js.gz +0 -0
- package/dist/8290.creaditor.bundle.js +23 -0
- package/dist/8290.creaditor.bundle.js.gz +0 -0
- package/dist/8312.creaditor.bundle.js +44 -0
- package/dist/8312.creaditor.bundle.js.gz +0 -0
- package/dist/8333.creaditor.bundle.js +40 -0
- package/dist/8333.creaditor.bundle.js.gz +0 -0
- package/dist/8522.creaditor.bundle.js +20 -0
- package/dist/8522.creaditor.bundle.js.gz +0 -0
- package/dist/8550.creaditor.bundle.js +2 -0
- package/dist/8550.creaditor.bundle.js.LICENSE.txt +11 -0
- package/dist/8550.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/8550.creaditor.bundle.js.gz +0 -0
- package/dist/8642.creaditor.bundle.js +274 -0
- package/dist/8642.creaditor.bundle.js.gz +0 -0
- package/dist/865.creaditor.bundle.js +28 -0
- package/dist/865.creaditor.bundle.js.gz +0 -0
- package/dist/8718.creaditor.bundle.js +93 -0
- package/dist/8718.creaditor.bundle.js.gz +0 -0
- package/dist/8724.creaditor.bundle.js +15 -0
- package/dist/8724.creaditor.bundle.js.gz +0 -0
- package/dist/8885.creaditor.bundle.js +23 -0
- package/dist/8885.creaditor.bundle.js.gz +0 -0
- package/dist/9000.creaditor.bundle.js +1 -0
- package/dist/9000.creaditor.bundle.js.gz +0 -0
- package/dist/9001.creaditor.bundle.js +12 -0
- package/dist/9001.creaditor.bundle.js.gz +0 -0
- package/dist/901.creaditor.bundle.js +274 -0
- package/dist/901.creaditor.bundle.js.gz +0 -0
- package/dist/9050.creaditor.bundle.js +19 -0
- package/dist/9050.creaditor.bundle.js.gz +0 -0
- package/dist/9113.creaditor.bundle.js +407 -0
- package/dist/9113.creaditor.bundle.js.gz +0 -0
- package/dist/9136.creaditor.bundle.js +33 -0
- package/dist/9136.creaditor.bundle.js.gz +0 -0
- package/dist/9201.creaditor.bundle.js +130 -0
- package/dist/9201.creaditor.bundle.js.LICENSE.txt +20 -0
- package/dist/9201.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/9201.creaditor.bundle.js.gz +0 -0
- package/dist/9203.creaditor.bundle.js +956 -0
- package/dist/9203.creaditor.bundle.js.LICENSE.txt +10 -0
- package/dist/9203.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/9203.creaditor.bundle.js.gz +0 -0
- package/dist/9265.creaditor.bundle.js +1 -0
- package/dist/9265.creaditor.bundle.js.gz +0 -0
- package/dist/9394.creaditor.bundle.js +25 -0
- package/dist/9394.creaditor.bundle.js.gz +0 -0
- package/dist/9476.creaditor.bundle.js +72 -0
- package/dist/9476.creaditor.bundle.js.LICENSE.txt +5 -0
- package/dist/9476.creaditor.bundle.js.gz +0 -0
- package/dist/9530.creaditor.bundle.js +69 -0
- package/dist/9530.creaditor.bundle.js.gz +0 -0
- package/dist/9628.creaditor.bundle.js +455 -0
- package/dist/9628.creaditor.bundle.js.LICENSE.txt +10 -0
- package/dist/9628.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/9628.creaditor.bundle.js.gz +0 -0
- package/dist/966.creaditor.bundle.js +23 -0
- package/dist/966.creaditor.bundle.js.gz +0 -0
- package/dist/9766.creaditor.bundle.js +267 -0
- package/dist/9766.creaditor.bundle.js.gz +0 -0
- package/dist/9800.creaditor.bundle.js +1 -0
- package/dist/9800.creaditor.bundle.js.gz +0 -0
- package/dist/9838.creaditor.bundle.js +65 -0
- package/dist/9838.creaditor.bundle.js.LICENSE.txt +17 -0
- package/dist/9838.creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/9838.creaditor.bundle.js.gz +0 -0
- package/dist/9928.creaditor.bundle.js +32 -0
- package/dist/9928.creaditor.bundle.js.gz +0 -0
- package/dist/creaditor-starterkit.js +5395 -0
- package/dist/creaditor-starterkit.js.LICENSE.txt +110 -0
- package/dist/creaditor-starterkit.js.LICENSE.txt.gz +0 -0
- package/dist/creaditor-starterkit.js.gz +0 -0
- package/dist/creaditor.bundle.js +5394 -0
- package/dist/creaditor.bundle.js.LICENSE.txt +110 -0
- package/dist/creaditor.bundle.js.LICENSE.txt.gz +0 -0
- package/dist/creaditor.bundle.js.gz +0 -0
- package/dist/index.html +1 -0
- package/dist/index.html.gz +0 -0
- package/dist/service-worker.js +1 -0
- package/dist/service-worker.js.gz +0 -0
- package/dist/workbox-e24b9bdc.js +1 -0
- package/dist/workbox-e24b9bdc.js.gz +0 -0
- package/package.json +35 -0
|
@@ -0,0 +1,661 @@
|
|
|
1
|
+
/*! For license information please see 2397.creaditor.bundle.js.LICENSE.txt */
|
|
2
|
+
"use strict";(("undefined"!=typeof self?self:this).webpackChunkCreaditor=("undefined"!=typeof self?self:this).webpackChunkCreaditor||[]).push([[2397,6961],{59051:(t,e,s)=>{s.d(e,{$:()=>i});const i=s(8427).iv`
|
|
3
|
+
:host {
|
|
4
|
+
direction: ltr;
|
|
5
|
+
}
|
|
6
|
+
.new-folder-form {
|
|
7
|
+
max-width: 250px;
|
|
8
|
+
}
|
|
9
|
+
.add-btn {
|
|
10
|
+
background: var(--primary);
|
|
11
|
+
color: #fff;
|
|
12
|
+
padding: 6px;
|
|
13
|
+
}
|
|
14
|
+
paper-listbox {
|
|
15
|
+
background: transparent;
|
|
16
|
+
}
|
|
17
|
+
.file-col {
|
|
18
|
+
position: relative;
|
|
19
|
+
}
|
|
20
|
+
vaadin-item,
|
|
21
|
+
vaadin-list-box,
|
|
22
|
+
lang-text {
|
|
23
|
+
direction: ltr;
|
|
24
|
+
text-align: left;
|
|
25
|
+
}
|
|
26
|
+
.moved {
|
|
27
|
+
position: absolute;
|
|
28
|
+
left: 0;
|
|
29
|
+
top: 0;
|
|
30
|
+
width: 100%;
|
|
31
|
+
background: #fff;
|
|
32
|
+
opacity: 0.8;
|
|
33
|
+
height: 100%;
|
|
34
|
+
z-index: 2;
|
|
35
|
+
height: 100%;
|
|
36
|
+
}
|
|
37
|
+
.onOver {
|
|
38
|
+
background: red;
|
|
39
|
+
}
|
|
40
|
+
paper-item {
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
font-family: Arial;
|
|
43
|
+
font-size: 16px;
|
|
44
|
+
}
|
|
45
|
+
.icon-btn {
|
|
46
|
+
min-width: 50px;
|
|
47
|
+
}
|
|
48
|
+
.divider-y {
|
|
49
|
+
width: 1px;
|
|
50
|
+
height: 30px;
|
|
51
|
+
background: #cccccc;
|
|
52
|
+
}
|
|
53
|
+
.list {
|
|
54
|
+
background: var(--alpha);
|
|
55
|
+
height: 100vh;
|
|
56
|
+
max-width: 210px;
|
|
57
|
+
}
|
|
58
|
+
.search {
|
|
59
|
+
--cdtr-input-height: 35px;
|
|
60
|
+
width: 200px;
|
|
61
|
+
}
|
|
62
|
+
.scroll-body {
|
|
63
|
+
max-height: calc(100vh - 260px);
|
|
64
|
+
overflow: auto;
|
|
65
|
+
padding: 5px;
|
|
66
|
+
}
|
|
67
|
+
.footer {
|
|
68
|
+
background: #fff;
|
|
69
|
+
width: 100%;
|
|
70
|
+
height: 40px;
|
|
71
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
|
|
72
|
+
justify-content: flex-end;
|
|
73
|
+
align-items: center;
|
|
74
|
+
gap: 0px;
|
|
75
|
+
position: absolute;
|
|
76
|
+
width: 100%;
|
|
77
|
+
top: 100%;
|
|
78
|
+
transform: translateY(-100%);
|
|
79
|
+
left: 0;
|
|
80
|
+
}
|
|
81
|
+
.scroll-body::-webkit-scrollbar {
|
|
82
|
+
width: 6px;
|
|
83
|
+
}
|
|
84
|
+
.scroll-body::-webkit-scrollbar-track {
|
|
85
|
+
background: #f1f1f1;
|
|
86
|
+
}
|
|
87
|
+
.scroll-body::-webkit-scrollbar-thumb {
|
|
88
|
+
background: #272727;
|
|
89
|
+
}
|
|
90
|
+
.scroll-body::-webkit-scrollbar-thumb:hover {
|
|
91
|
+
background: #555;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
paper-button.upload,
|
|
95
|
+
paper-button.add {
|
|
96
|
+
background: var(--primary);
|
|
97
|
+
color: var(--primaryText);
|
|
98
|
+
display: flex;
|
|
99
|
+
gap: 10px;
|
|
100
|
+
padding: 5px 22px;
|
|
101
|
+
}
|
|
102
|
+
paper-button.upload {
|
|
103
|
+
border-radius: 20px;
|
|
104
|
+
}
|
|
105
|
+
.upload-container {
|
|
106
|
+
padding: 44px 5px;
|
|
107
|
+
/* border:2px dashed grey; */
|
|
108
|
+
}
|
|
109
|
+
.gallery-container {
|
|
110
|
+
padding: 40px 20px;
|
|
111
|
+
}
|
|
112
|
+
`},62397:(t,e,s)=>{s.r(e),s.d(e,{CreaditorGalleryWrapper:()=>v});var i=s(56666),r=s(8427),o=s(40949),n=s(70235),l=s(9085),a=s(36351),d=s(61828),c=s(59051);function h(t){try{localStorage.setItem("creaditor-gallery-folder",t)}catch(t){console.warn("Could not write to localStorage:",t)}}class p extends r.oi{constructor(){super(),(0,i.Z)(this,"newFolderModalRef",(0,d.V)()),(0,i.Z)(this,"newFolderInputRef",(0,d.V)()),this.drop=this.drop.bind(this),this.controls=!0,this.sendFiles=this.sendFiles.bind(this),this.onSearch=this.onSearch.bind(this),this.coverEl=document.createElement("div"),this.sortItems=[{index:0,text:"fromNewToOld",value:{filter:"date",sortBy:"ASC"},checked:!0},{index:1,text:"fromOldToNew",value:{filter:"date",sortBy:"DESC"},checked:!1},{index:2,text:n.h.get("lang","aToZ"),value:{filter:"name",sortBy:"ASC"},checked:!1},{index:3,text:n.h.get("lang","zToA"),value:{filter:"name",sortBy:"DESC"},checked:!1}],this.filterItems=[{index:0,text:n.h.get("lang","folders"),value:"folders",checked:!0},{index:1,text:n.h.get("lang","images"),value:"images",checked:!0}]}openNewFolderModal(t){const e=this.newFolderModalRef.value;e&&(e.positionTarget=t.target,e.open(),this.newFolderInputRef.value.focus())}sendFiles(){const t={detail:this.files.filter((t=>t.selected)),bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("file",t))}onLiked(t){const e={detail:t,bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("like",e))}onClickFolder(t,e){this.freeImages=!1,this.controls=e;const s={detail:t,bubbles:!1,composed:!1};this.folderName=t.name,this.dispatchEvent(new CustomEvent("folder",s))}onSelectFile(t){const e={detail:t,bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("file",e))}onSelectPexelsImage(t){const e={detail:t,bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("file",e))}onUpload(){const t=(0,o.Z)("input",{hidden:!0,type:"file",accept:"image/*"});t.onchange=t=>{const e=t.target;if(e.files&&e.files[0]){const t=new FileReader,s=e.files[0];t.onload=t=>{const e={detail:s,bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("upload",e))},t.readAsDataURL(s)}},t.click()}onCreateNewFolder(){const t=this.newFolderInputRef.value.value;if(t.length<=30){const e={detail:t,bubbles:!1,composed:!1};this.newFolderModalRef.value.close(),this.dispatchEvent(new CustomEvent("newFolder",e)),this.newFolderInputRef.value.value=""}}onClickCategory(){}onReset(){h(null),this.freeImages=!1,this.folderName=n.h.get("lang","myImages"),this.dispatchEvent(new CustomEvent("reset",{}))}onSearch(t,e){h(null),this.freeImages=!1;let s=!1;"object"==typeof e&&e.isLiked&&(s=!0);const i=t.target.value;(0,a.Z)((()=>{const t={detail:{value:i,isLiked:s},bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("search",t))}))}drop(t,e){t.preventDefault();const s=t.dataTransfer.getData("fileId"),i=(t.dataTransfer.getData("folderId"),{detail:{fileId:s,folderId:e},bubbles:!1,composed:!1});this.dispatchEvent(new CustomEvent("moveFile",i))}onFilterMedia(t){const e=t.detail.value,s=e.index,i=[...this.filterItems];i[s].checked=!i[s].checked,this.filterItems=i}onSort(t){const e=t.detail.value,s={detail:e,bubbles:!1,composed:!1},i=e.index,r=[...this.sortItems];r.forEach(((t,e)=>{t.checked=i===e})),this.sortItems=r,this.dispatchEvent(new CustomEvent("filter",s))}onDeleteFile(t){const e={detail:t,bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("deleteFile",e))}onDeleteFolder(t){const e={detail:t,bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("deleteFolder",e))}dragStart(t,e){t.dataTransfer.setData("fileId",e)}dragOver(t,e){t.dataTransfer.setData("folderId",e),t.preventDefault()}onFreeImages(){this.freeImages=!0,h("freeImages"),s.e(901).then(s.bind(s,20901))}onScroll(t){const e=t.target;if(e.scrollTop+e.offsetHeight>=e.scrollHeight-50){const t={detail:{folderId:this.folderId,page:this.page},bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("loadMore",t))}}connectedCallback(){super.connectedCallback(),s.e(8718).then(s.bind(s,85910));"freeImages"===function(){try{return localStorage.getItem("creaditor-gallery-folder")}catch(t){return console.warn("Could not read from localStorage:",t),null}}()&&(this.freeImages=!0,s.e(901).then(s.bind(s,20901)))}render(){Array.isArray(this.files)||(this.files=[]),Array.isArray(this.folders)||(this.folders=[]);const t=this.folders.filter((t=>"public"!==t.visibility)),e=this.folders.filter((t=>"public"===t.visibility));return r.dy` <cdtr-row dir="rtl">
|
|
113
|
+
<cdtr-col class="list" sm="3">
|
|
114
|
+
<cdtr-row alignItems="center" class="upload-container">
|
|
115
|
+
<paper-button @click=${this.onUpload} class="upload">
|
|
116
|
+
<lang-text text="upload"></lang-text
|
|
117
|
+
><cdtr-upload-icon width="20"></cdtr-upload-icon>
|
|
118
|
+
</paper-button>
|
|
119
|
+
</cdtr-row>
|
|
120
|
+
<paper-listbox selected="${this.freeImages?"2":"0"}">
|
|
121
|
+
<paper-item @click=${this.onReset}
|
|
122
|
+
><lang-text text="myImages"></lang-text
|
|
123
|
+
></paper-item>
|
|
124
|
+
<paper-item @click=${t=>this.onSearch(t,{isLiked:!0})}
|
|
125
|
+
><lang-text text="favorites"></lang-text
|
|
126
|
+
></paper-item>
|
|
127
|
+
<paper-item @click=${this.onFreeImages}> <lang-text text="freeImages"></lang-text> </paper-item>
|
|
128
|
+
${Array.isArray(e)?e.map((t=>r.dy`<paper-item
|
|
129
|
+
@click=${()=>this.onClickFolder(t,!1)}
|
|
130
|
+
><lang-text text="${t.name}"></lang-text
|
|
131
|
+
></paper-item>`)):null}
|
|
132
|
+
</paper-listbox>
|
|
133
|
+
</cdtr-col>
|
|
134
|
+
${this.freeImages?r.dy`<cdtr-col>
|
|
135
|
+
<cdtr-pexels-gallery
|
|
136
|
+
@file=${t=>this.onSelectPexelsImage(t.detail)}
|
|
137
|
+
></cdtr-pexels-gallery>
|
|
138
|
+
</cdtr-col>`:r.dy`<cdtr-col>
|
|
139
|
+
<div class="gallery-container">
|
|
140
|
+
<cdtr-row alignItems="center">
|
|
141
|
+
<cdtr-input
|
|
142
|
+
type="search"
|
|
143
|
+
@input=${this.onSearch}
|
|
144
|
+
placeholder="${n.h.get("lang","search")}"
|
|
145
|
+
class="search"
|
|
146
|
+
></cdtr-input>
|
|
147
|
+
|
|
148
|
+
<div class="divider-y"></div>
|
|
149
|
+
|
|
150
|
+
<paper-button
|
|
151
|
+
@click=${this.openNewFolderModal}
|
|
152
|
+
class="icon-btn"
|
|
153
|
+
>
|
|
154
|
+
<cdtr-tooltip delay="500,0" arrow=${!1} content="newFolder"
|
|
155
|
+
><cdtr-new-folder-icon></cdtr-new-folder-icon> </cdtr-tooltip
|
|
156
|
+
></paper-button>
|
|
157
|
+
</cdtr-row>
|
|
158
|
+
<cdtr-row mt="1">
|
|
159
|
+
${this.folderName?r.dy`
|
|
160
|
+
<cdtr-title style="font-size:14px"
|
|
161
|
+
><lang-text text="main"></lang-text
|
|
162
|
+
></cdtr-title>
|
|
163
|
+
<cdtr-arrow-icon
|
|
164
|
+
width="16"
|
|
165
|
+
height="16"
|
|
166
|
+
to="left"
|
|
167
|
+
></cdtr-arrow-icon>
|
|
168
|
+
<cdtr-title style="font-size:14px;color:var(--primary);"
|
|
169
|
+
>${this.folderName}</cdtr-title
|
|
170
|
+
>
|
|
171
|
+
`:null}
|
|
172
|
+
</cdtr-row>
|
|
173
|
+
<cdtr-row mt="2" justify="space-between">
|
|
174
|
+
${this.filterItems[0].checked?r.dy` <cdtr-col sm="2">
|
|
175
|
+
<cdtr-row
|
|
176
|
+
spacing="2px"
|
|
177
|
+
class="scroll-body"
|
|
178
|
+
justify="space-between"
|
|
179
|
+
>
|
|
180
|
+
<cdtr-col sm="12">
|
|
181
|
+
<cdtr-editor-media-card
|
|
182
|
+
@click=${()=>{this.onReset()}}
|
|
183
|
+
.controls=${!1}
|
|
184
|
+
type="folder"
|
|
185
|
+
name=${n.h.get("lang","myImages")}
|
|
186
|
+
></cdtr-editor-media-card>
|
|
187
|
+
</cdtr-col>
|
|
188
|
+
${(0,l.r)(t||[],(t=>t.id),((t,e)=>r.dy`<cdtr-col sm="12">
|
|
189
|
+
<cdtr-editor-media-card
|
|
190
|
+
@deleteFolder=${()=>this.onDeleteFolder(t)}
|
|
191
|
+
@deleteFile=${()=>this.onDeleteFile(t)}
|
|
192
|
+
@dragover=${e=>this.dragOver(e,t.id)}
|
|
193
|
+
@drop=${e=>this.drop(e,t.id)}
|
|
194
|
+
@click=${()=>{this.onClickFolder(t,!0),this.folders.forEach((t=>t.selected=!1)),t.selected=!t.selected,this.folders=[...this.folders]}}
|
|
195
|
+
.selected=${t.selected}
|
|
196
|
+
.controls=${!0}
|
|
197
|
+
type="folder"
|
|
198
|
+
name=${t.name||"..."}
|
|
199
|
+
subTitle="${parseFloat(t.file_count)||""}"
|
|
200
|
+
></cdtr-editor-media-card>
|
|
201
|
+
</cdtr-col>`))}
|
|
202
|
+
</cdtr-row>
|
|
203
|
+
</cdtr-col>`:null}
|
|
204
|
+
${this.filterItems[1].checked?r.dy` <cdtr-col sm="10">
|
|
205
|
+
<cdtr-row
|
|
206
|
+
@scroll=${this.onScroll}
|
|
207
|
+
class="scroll-body"
|
|
208
|
+
justify="space-evenly"
|
|
209
|
+
>
|
|
210
|
+
${(0,l.r)(this.files||[],(t=>t.id),((t,e)=>r.dy`<cdtr-col class="file-col" sm="3">
|
|
211
|
+
${t.moved?r.dy` <div class="moved"></div> `:null}
|
|
212
|
+
<cdtr-editor-media-card
|
|
213
|
+
@deleteFile=${()=>this.onDeleteFile(t)}
|
|
214
|
+
@deleteFolder=${()=>this.onDeleteFolder(t)}
|
|
215
|
+
@like=${()=>this.onLiked(t)}
|
|
216
|
+
draggable=${!0}
|
|
217
|
+
@dragstart=${e=>this.dragStart(e,t.id)}
|
|
218
|
+
@dblclick=${()=>this.onSelectFile(t)}
|
|
219
|
+
@click=${e=>{e.shiftKey&&this.multi||this.files.forEach((t=>t.selected=!1)),t.selected=!t.selected,this.files=[...this.files]}}
|
|
220
|
+
.selected=${t.selected}
|
|
221
|
+
.controls=${this.controls}
|
|
222
|
+
.liked=${t.isLiked||t.isFavorite}
|
|
223
|
+
src=${t.src}
|
|
224
|
+
name=${t.name}
|
|
225
|
+
subTitle="${t.size}"
|
|
226
|
+
></cdtr-editor-media-card>
|
|
227
|
+
</cdtr-col>`))}
|
|
228
|
+
</cdtr-row>
|
|
229
|
+
</cdtr-col>`:null}
|
|
230
|
+
<cdtr-row alignItems="center" justify="flex-end" class="footer">
|
|
231
|
+
<paper-button @click=${this.sendFiles} class="add-btn"
|
|
232
|
+
><lang-text text="choose"></lang-text
|
|
233
|
+
></paper-button>
|
|
234
|
+
</cdtr-row>
|
|
235
|
+
</cdtr-row>
|
|
236
|
+
</div>
|
|
237
|
+
</cdtr-col>`}
|
|
238
|
+
<paper-dialog
|
|
239
|
+
${(0,d.i)(this.newFolderModalRef)}
|
|
240
|
+
no-overlap
|
|
241
|
+
horizontal-align="left"
|
|
242
|
+
vertical-align="top"
|
|
243
|
+
>
|
|
244
|
+
<form class="new-folder-form">
|
|
245
|
+
<cdtr-row spacing="5px">
|
|
246
|
+
<cdtr-col sm="10"
|
|
247
|
+
><h2><lang-text text="addFolder"></lang-text></h2
|
|
248
|
+
></cdtr-col>
|
|
249
|
+
<cdtr-col sm="10"
|
|
250
|
+
><cdtr-title><lang-text text="folderName"></lang-text></cdtr-title
|
|
251
|
+
></cdtr-col>
|
|
252
|
+
<cdtr-col sm="10"
|
|
253
|
+
><cdtr-input
|
|
254
|
+
@submit=${this.onCreateNewFolder}
|
|
255
|
+
${(0,d.i)(this.newFolderInputRef)}
|
|
256
|
+
autofocus=${!0}
|
|
257
|
+
maxLength=${30}
|
|
258
|
+
></cdtr-input
|
|
259
|
+
></cdtr-col>
|
|
260
|
+
<cdtr-col sm="10">
|
|
261
|
+
<paper-button @click=${this.onCreateNewFolder} class="add" raised
|
|
262
|
+
><lang-text text="yes,Create"></lang-text
|
|
263
|
+
></paper-button>
|
|
264
|
+
</cdtr-col>
|
|
265
|
+
</cdtr-row>
|
|
266
|
+
</form>
|
|
267
|
+
</paper-dialog>
|
|
268
|
+
</cdtr-row>`}}(0,i.Z)(p,"styles",c.$),(0,i.Z)(p,"properties",{folders:{type:Array},files:{type:Array},pageCount:{type:Number},prevUrl:{type:String},nextUrl:{type:String},folderName:{type:String},filterItems:{type:Array},multi:{type:Boolean},controls:{type:Boolean},freeImages:{type:Boolean}}),customElements.define("cdtr-gallery-files",p);class u extends r.oi{constructor(){super(),this.uploads={}}connectedCallback(){super.connectedCallback(),this.addEventListener("upload-start",this.handleUploadStart.bind(this)),this.addEventListener("upload-progress",this.handleUploadProgress.bind(this)),this.addEventListener("upload-complete",this.handleUploadComplete.bind(this)),this.addEventListener("upload-error",this.handleUploadError.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("upload-start",this.handleUploadStart.bind(this)),this.removeEventListener("upload-progress",this.handleUploadProgress.bind(this)),this.removeEventListener("upload-complete",this.handleUploadComplete.bind(this)),this.removeEventListener("upload-error",this.handleUploadError.bind(this))}handleUploadStart(t){const{uploadId:e,fileName:s}=t.detail;this.uploads[e]={fileName:s,status:"uploading",progress:0,error:null},this.requestUpdate()}handleUploadProgress(t){const{uploadId:e,progress:s}=t.detail;this.uploads[e]&&(this.uploads[e].progress=s,this.requestUpdate())}handleUploadComplete(t){const{uploadId:e}=t.detail;this.uploads[e]&&(this.uploads[e].status="completed",this.uploads[e].progress=100,this.requestUpdate(),setTimeout((()=>{this.removeUpload(e)}),3e3))}handleUploadError(t){const{uploadId:e,error:s}=t.detail;this.uploads[e]&&(this.uploads[e].status="error",this.uploads[e].error=s,this.requestUpdate(),setTimeout((()=>{this.removeUpload(e)}),5e3))}removeUpload(t){delete this.uploads[t],this.requestUpdate()}getStatusIcon(t){switch(t){case"uploading":default:return r.dy`<div class="status-icon uploading"></div>`;case"completed":return r.dy`<div class="status-icon completed"></div>`;case"error":return r.dy`<div class="status-icon error"></div>`}}getProgressFillClass(t){switch(t){case"completed":return"progress-fill completed";case"error":return"progress-fill error";default:return"progress-fill"}}render(){const t=Object.entries(this.uploads).map((t=>{let[e,s]=t;return r.dy`
|
|
269
|
+
<div class="upload-item">
|
|
270
|
+
<div class="upload-header">
|
|
271
|
+
<span class="file-name" title="${s.fileName}">${s.fileName}</span>
|
|
272
|
+
<div style="display: flex; align-items: center; gap: 8px;">
|
|
273
|
+
${this.getStatusIcon(s.status)}
|
|
274
|
+
<button
|
|
275
|
+
class="close-btn"
|
|
276
|
+
@click=${()=>this.removeUpload(e)}
|
|
277
|
+
title="Close"
|
|
278
|
+
>×</button>
|
|
279
|
+
</div>
|
|
280
|
+
</div>
|
|
281
|
+
|
|
282
|
+
<div class="progress-bar">
|
|
283
|
+
<div
|
|
284
|
+
class="${this.getProgressFillClass(s.status)}"
|
|
285
|
+
style="width: ${s.progress}%"
|
|
286
|
+
></div>
|
|
287
|
+
</div>
|
|
288
|
+
|
|
289
|
+
<div class="progress-text">
|
|
290
|
+
${"uploading"===s.status?`${s.progress}%`:"completed"===s.status?"Upload completed":"error"===s.status?"Upload failed":""}
|
|
291
|
+
</div>
|
|
292
|
+
|
|
293
|
+
${s.error?r.dy`
|
|
294
|
+
<div class="error-message">
|
|
295
|
+
${s.error.message||s.error}
|
|
296
|
+
</div>
|
|
297
|
+
`:""}
|
|
298
|
+
</div>
|
|
299
|
+
`}));return r.dy`
|
|
300
|
+
<div>
|
|
301
|
+
${t}
|
|
302
|
+
</div>
|
|
303
|
+
`}}(0,i.Z)(u,"styles",r.iv`
|
|
304
|
+
:host {
|
|
305
|
+
display: block;
|
|
306
|
+
position: fixed;
|
|
307
|
+
top: 20px;
|
|
308
|
+
right: 20px;
|
|
309
|
+
z-index: 9999;
|
|
310
|
+
max-width: 300px;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.upload-item {
|
|
314
|
+
background: white;
|
|
315
|
+
border: 1px solid #e0e0e0;
|
|
316
|
+
border-radius: 8px;
|
|
317
|
+
padding: 12px;
|
|
318
|
+
margin-bottom: 8px;
|
|
319
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
320
|
+
animation: slideIn 0.3s ease-out;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
@keyframes slideIn {
|
|
324
|
+
from {
|
|
325
|
+
transform: translateX(100%);
|
|
326
|
+
opacity: 0;
|
|
327
|
+
}
|
|
328
|
+
to {
|
|
329
|
+
transform: translateX(0);
|
|
330
|
+
opacity: 1;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.upload-header {
|
|
335
|
+
display: flex;
|
|
336
|
+
align-items: center;
|
|
337
|
+
justify-content: space-between;
|
|
338
|
+
margin-bottom: 8px;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.file-name {
|
|
342
|
+
font-size: 14px;
|
|
343
|
+
font-weight: 500;
|
|
344
|
+
color: #333;
|
|
345
|
+
overflow: hidden;
|
|
346
|
+
text-overflow: ellipsis;
|
|
347
|
+
white-space: nowrap;
|
|
348
|
+
max-width: 200px;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.status-icon {
|
|
352
|
+
width: 16px;
|
|
353
|
+
height: 16px;
|
|
354
|
+
border-radius: 50%;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.status-icon.uploading {
|
|
358
|
+
background: #007bff;
|
|
359
|
+
animation: pulse 1.5s infinite;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.status-icon.completed {
|
|
363
|
+
background: #28a745;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.status-icon.error {
|
|
367
|
+
background: #dc3545;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
@keyframes pulse {
|
|
371
|
+
0% {
|
|
372
|
+
opacity: 1;
|
|
373
|
+
}
|
|
374
|
+
50% {
|
|
375
|
+
opacity: 0.5;
|
|
376
|
+
}
|
|
377
|
+
100% {
|
|
378
|
+
opacity: 1;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
.progress-bar {
|
|
383
|
+
width: 100%;
|
|
384
|
+
height: 4px;
|
|
385
|
+
background: #f0f0f0;
|
|
386
|
+
border-radius: 2px;
|
|
387
|
+
overflow: hidden;
|
|
388
|
+
margin-bottom: 4px;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.progress-fill {
|
|
392
|
+
height: 100%;
|
|
393
|
+
background: linear-gradient(90deg, #007bff, #0056b3);
|
|
394
|
+
transition: width 0.3s ease;
|
|
395
|
+
border-radius: 2px;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.progress-fill.completed {
|
|
399
|
+
background: #28a745;
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.progress-fill.error {
|
|
403
|
+
background: #dc3545;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.progress-text {
|
|
407
|
+
font-size: 12px;
|
|
408
|
+
color: #666;
|
|
409
|
+
text-align: right;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
.error-message {
|
|
413
|
+
font-size: 12px;
|
|
414
|
+
color: #dc3545;
|
|
415
|
+
margin-top: 4px;
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.close-btn {
|
|
419
|
+
background: none;
|
|
420
|
+
border: none;
|
|
421
|
+
color: #999;
|
|
422
|
+
cursor: pointer;
|
|
423
|
+
font-size: 16px;
|
|
424
|
+
padding: 0;
|
|
425
|
+
width: 20px;
|
|
426
|
+
height: 20px;
|
|
427
|
+
display: flex;
|
|
428
|
+
align-items: center;
|
|
429
|
+
justify-content: center;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.close-btn:hover {
|
|
433
|
+
color: #666;
|
|
434
|
+
}
|
|
435
|
+
`),(0,i.Z)(u,"properties",{uploads:{type:Object}}),customElements.define("cdtr-upload-loading",u);s(6961);class f extends r.oi{constructor(){super(),this.isVisible=!1,this.fileName="",this.status="uploading",this.progress=0,this.timeElapsed=0,this.pollInterval=null,this.timeoutId=null,this.progressInterval=null,this.startTime=null,this.maxDuration=3e4,this.pollFrequency=7e3}connectedCallback(){super.connectedCallback(),window.addEventListener("cdtr-upload-start",this.handleUploadStart.bind(this))}disconnectedCallback(){super.disconnectedCallback(),this.cleanup(),window.removeEventListener("cdtr-upload-start",this.handleUploadStart.bind(this))}handleUploadStart(t){console.log("Upload monitor received event:",t.detail);const{fileName:e,file:s}=t.detail;this.startUploadMonitor(e,s)}startUploadMonitor(t,e){console.log("Starting upload monitor for:",t),this.fileName=t,this.isVisible=!0,this.status="uploading",this.progress=0,this.timeElapsed=0,this.startTime=Date.now(),this.uploadedFile=e,console.log("Component should be visible now, isVisible:",this.isVisible),this.requestUpdate(),this.simulateUploadProgress(),setTimeout((()=>{this.status="checking",this.startPolling(),this.startTimeout()}),this.pollFrequency)}simulateUploadProgress(){let t=0;this.progressInterval=setInterval((()=>{t+=15*Math.random(),t>=90&&(t=90,clearInterval(this.progressInterval),this.progressInterval=null),this.progress=Math.floor(t),this.requestUpdate()}),300)}startPolling(){this.progress=100,this.status="completed",this.requestUpdate(),setTimeout((()=>{this.isVisible=!1,this.requestUpdate()}),5e3)}startTimeout(){this.timeoutId=setTimeout((()=>{"completed"!==this.status&&this.handleTimeout()}),this.maxDuration)}handleUploadSuccess(){this.cleanup(),this.status="completed",this.progress=100,this.requestUpdate(),setTimeout((()=>{this.isVisible=!1,this.requestUpdate()}),2e3)}handleTimeout(){this.cleanup(),this.status="timeout",this.requestUpdate(),setTimeout((()=>{this.isVisible=!1,this.requestUpdate()}),1e4)}cleanup(){this.pollInterval&&(clearInterval(this.pollInterval),this.pollInterval=null),this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this.progressInterval&&(clearInterval(this.progressInterval),this.progressInterval=null)}getCircleProgress(){const t=2*Math.PI*26;return t-this.progress/100*t}renderContent(){switch(this.status){case"uploading":return r.dy`
|
|
436
|
+
<div class="progress-circle">
|
|
437
|
+
<svg class="progress-ring" width="60" height="60">
|
|
438
|
+
<circle class="progress-ring-bg" cx="30" cy="30" r="26"></circle>
|
|
439
|
+
<circle
|
|
440
|
+
class="progress-ring-progress"
|
|
441
|
+
cx="30"
|
|
442
|
+
cy="30"
|
|
443
|
+
r="26"
|
|
444
|
+
style="stroke-dashoffset: ${this.getCircleProgress()}"
|
|
445
|
+
></circle>
|
|
446
|
+
</svg>
|
|
447
|
+
<div class="progress-text">${this.progress}%</div>
|
|
448
|
+
</div>
|
|
449
|
+
<div class="status-text">
|
|
450
|
+
<lang-text text="uploading"></lang-text>
|
|
451
|
+
</div>
|
|
452
|
+
<div class="file-name" title="${this.fileName}">${this.fileName}</div>
|
|
453
|
+
`;case"checking":return r.dy`
|
|
454
|
+
<div class="spinner"></div>
|
|
455
|
+
<div class="status-text">
|
|
456
|
+
<lang-text text="verifying"></lang-text>
|
|
457
|
+
</div>
|
|
458
|
+
<div class="file-name" title="${this.fileName}">${this.fileName}</div>
|
|
459
|
+
`;case"completed":return r.dy`
|
|
460
|
+
<div class="success-icon"></div>
|
|
461
|
+
<div class="status-text">
|
|
462
|
+
<lang-text text="completed"></lang-text>
|
|
463
|
+
</div>
|
|
464
|
+
<div class="file-name" title="${this.fileName}">${this.fileName}</div>
|
|
465
|
+
`;case"timeout":return r.dy`
|
|
466
|
+
<div class="error-icon"></div>
|
|
467
|
+
<div class="status-text"><lang-text text="timeout"></lang-text></div>
|
|
468
|
+
<div class="file-name" title="${this.fileName}">${this.fileName}</div>
|
|
469
|
+
<div style="font-size: 10px; color: #666; margin-top: 4px;">
|
|
470
|
+
File may be uploaded. Refresh gallery.
|
|
471
|
+
</div>
|
|
472
|
+
`;default:return r.dy``}}render(){return console.log("Render called - isVisible:",this.isVisible,"status:",this.status,"progress:",this.progress),this.isVisible?r.dy` <div class="upload-card">${this.renderContent()}</div> `:r.dy``}}(0,i.Z)(f,"styles",r.iv`
|
|
473
|
+
:host {
|
|
474
|
+
display: block;
|
|
475
|
+
position: fixed;
|
|
476
|
+
bottom: 20px;
|
|
477
|
+
left: 20px;
|
|
478
|
+
z-index: 10000;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.upload-card {
|
|
482
|
+
background: white;
|
|
483
|
+
border-radius: 12px;
|
|
484
|
+
padding: 16px;
|
|
485
|
+
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
486
|
+
text-align: center;
|
|
487
|
+
min-width: 200px;
|
|
488
|
+
max-width: 250px;
|
|
489
|
+
animation: slideInLeft 0.3s ease-out;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
@keyframes slideInLeft {
|
|
493
|
+
from {
|
|
494
|
+
transform: translateX(-100%);
|
|
495
|
+
opacity: 0;
|
|
496
|
+
}
|
|
497
|
+
to {
|
|
498
|
+
transform: translateX(0);
|
|
499
|
+
opacity: 1;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.progress-circle {
|
|
504
|
+
position: relative;
|
|
505
|
+
width: 60px;
|
|
506
|
+
height: 60px;
|
|
507
|
+
margin: 0 auto 12px;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.progress-ring {
|
|
511
|
+
transform: rotate(-90deg);
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.progress-ring-circle {
|
|
515
|
+
transition: stroke-dashoffset 0.3s ease;
|
|
516
|
+
transform-origin: 50% 50%;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.progress-ring-bg {
|
|
520
|
+
fill: none;
|
|
521
|
+
stroke: #f0f0f0;
|
|
522
|
+
stroke-width: 6;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.progress-ring-progress {
|
|
526
|
+
fill: none;
|
|
527
|
+
stroke: #007bff;
|
|
528
|
+
stroke-width: 6;
|
|
529
|
+
stroke-linecap: round;
|
|
530
|
+
stroke-dasharray: 163.36; /* 2 * PI * 26 (radius) */
|
|
531
|
+
stroke-dashoffset: 163.36;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.progress-text {
|
|
535
|
+
position: absolute;
|
|
536
|
+
top: 50%;
|
|
537
|
+
left: 50%;
|
|
538
|
+
transform: translate(-50%, -50%);
|
|
539
|
+
font-size: 14px;
|
|
540
|
+
font-weight: 600;
|
|
541
|
+
color: #333;
|
|
542
|
+
font-family: var(--font-family);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.status-text {
|
|
546
|
+
font-size: 13px;
|
|
547
|
+
font-weight: 500;
|
|
548
|
+
color: #333;
|
|
549
|
+
margin-bottom: 6px;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.file-name {
|
|
553
|
+
font-size: 11px;
|
|
554
|
+
color: #666;
|
|
555
|
+
overflow: hidden;
|
|
556
|
+
text-overflow: ellipsis;
|
|
557
|
+
white-space: nowrap;
|
|
558
|
+
max-width: 220px;
|
|
559
|
+
margin: 0 auto;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.spinner {
|
|
563
|
+
width: 24px;
|
|
564
|
+
height: 24px;
|
|
565
|
+
border: 3px solid #f3f3f3;
|
|
566
|
+
border-top: 3px solid #007bff;
|
|
567
|
+
border-radius: 50%;
|
|
568
|
+
animation: spin 1s linear infinite;
|
|
569
|
+
margin: 0 auto 12px;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
@keyframes spin {
|
|
573
|
+
0% {
|
|
574
|
+
transform: rotate(0deg);
|
|
575
|
+
}
|
|
576
|
+
100% {
|
|
577
|
+
transform: rotate(360deg);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.success-icon {
|
|
582
|
+
width: 60px;
|
|
583
|
+
height: 60px;
|
|
584
|
+
margin: 0 auto 12px;
|
|
585
|
+
border-radius: 50%;
|
|
586
|
+
background: #28a745;
|
|
587
|
+
display: flex;
|
|
588
|
+
align-items: center;
|
|
589
|
+
justify-content: center;
|
|
590
|
+
animation: scaleIn 0.3s ease-out;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
.success-icon::after {
|
|
594
|
+
content: "✓";
|
|
595
|
+
font-size: 30px;
|
|
596
|
+
color: white;
|
|
597
|
+
font-weight: bold;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
@keyframes scaleIn {
|
|
601
|
+
from {
|
|
602
|
+
transform: scale(0);
|
|
603
|
+
}
|
|
604
|
+
to {
|
|
605
|
+
transform: scale(1);
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
.error-icon {
|
|
610
|
+
width: 60px;
|
|
611
|
+
height: 60px;
|
|
612
|
+
margin: 0 auto 12px;
|
|
613
|
+
border-radius: 50%;
|
|
614
|
+
background: #dc3545;
|
|
615
|
+
display: flex;
|
|
616
|
+
align-items: center;
|
|
617
|
+
justify-content: center;
|
|
618
|
+
animation: scaleIn 0.3s ease-out;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
.error-icon::after {
|
|
622
|
+
content: "✕";
|
|
623
|
+
font-size: 30px;
|
|
624
|
+
color: white;
|
|
625
|
+
font-weight: bold;
|
|
626
|
+
}
|
|
627
|
+
`),(0,i.Z)(f,"properties",{isVisible:{type:Boolean},fileName:{type:String},status:{type:String},progress:{type:Number},timeElapsed:{type:Number}}),customElements.define("cdtr-upload-progress-monitor",f);var m=s(85517),g=s(30814);class v extends r.oi{constructor(){super(),this.sortBy="ASC",this.files=[],this.folders=[],this.uploadStatus={},this.onSearch=this.onSearch.bind(this),this.close=this.close.bind(this),this.reset=this.reset.bind(this);const t=new m.Z;this.eventEmitter=t;const e=n.h.get("config","editor","configure","mediaGalleryManager");t.files=this.files,t.close=this.close,"function"==typeof e&&(t.render=this.reset,console.log("init mediaGalleryManager"),e(t)),this.reset()}reset(){this.dirId=null,this.eventEmitter.dispatch("load-folders",{resolve:t=>{this.folders=t}}),this.eventEmitter.dispatch("load-files",{resolve:t=>{this.files=[...t]}})}uploadFile(t){this.folders||(this.folders=[]);const e=t.detail,s=this.folders.find((t=>t.selected)),i=`${e.name}-${Date.now()}`;this.uploadStatus[i]={fileName:e.name,status:"uploading",progress:0,error:null},console.log("Dispatching cdtr-upload-start event for:",e.name),this.dispatchEvent(new CustomEvent("cdtr-upload-start",{detail:{uploadId:i,fileName:e.name,file:e},bubbles:!0,composed:!0})),console.log("Event dispatched"),this.eventEmitter.dispatch("upload-file",{file:e,dirId:s?s.id:null,uploadId:i,execCommand:(t,e)=>{n.h.get("editor").store().execCommand(t,e)},options:{},onProgress:t=>{this.uploadStatus[i]&&(this.uploadStatus[i].progress=t,this.requestUpdate("uploadStatus"),this.dispatchEvent(new CustomEvent("upload-progress",{detail:{uploadId:i,fileName:e.name,progress:t},bubbles:!0,composed:!0})))},onComplete:t=>{this.uploadStatus[i]&&(this.uploadStatus[i].status="completed",this.uploadStatus[i].progress=100,this.requestUpdate("uploadStatus"),this.dispatchEvent(new CustomEvent("cdtr-upload-complete",{detail:{uploadId:i,fileName:e.name,result:t},bubbles:!0,composed:!0})),setTimeout((()=>{delete this.uploadStatus[i],this.requestUpdate("uploadStatus")}),3e3))},onError:t=>{this.uploadStatus[i]&&(this.uploadStatus[i].status="error",this.uploadStatus[i].error=t,this.requestUpdate("uploadStatus"),this.dispatchEvent(new CustomEvent("cdtr-upload-error",{detail:{uploadId:i,fileName:e.name,error:t},bubbles:!0,composed:!0})),setTimeout((()=>{delete this.uploadStatus[i],this.requestUpdate("uploadStatus")}),5e3))}}),this.opened=!1}onSearch(t){const{value:e,isLiked:s}=t.detail;s?this.eventEmitter.dispatch("load-files",{isLiked:s,resolve:t=>{Array.isArray(t)?this.files=[...t]:console.error("files is not array",t)}}):e.trim().length>2?this.eventEmitter.dispatch("load-files",{filter:"name",search:e,resolve:t=>{this.files=[...t]}}):0===e.trim().length&&this.reset()}onFilter(t){const e=t.detail;this.eventEmitter.dispatch("load-files",{filter:"name",search:e.value})}onSelectFolder(t){const e=t.detail,s=this.sortBy,i=e.id;this.dirId=i,this.eventEmitter.dispatch("load-files",{filter:"dir",dirId:i,sortBy:s,resolve:t=>{this.files=t}})}oncreateNewFolder(t){const e=t.detail;this.eventEmitter.dispatch("create-folder",{name:e,resolve:t=>{this.folders||(this.folders=[]);const e=[...this.folders];e.forEach((t=>t.selected=!1)),t.selected=!0,e.unshift(t),this.folders=e,this.onSelectFolder({detail:t})}})}onMoveFile(t){const e=t.detail;this.eventEmitter.dispatch("on-move-file",{data:e,resolve:t=>{if(this.folders||(this.folders=[]),this.dirId===e.folderId)return;const s=this.files.findIndex((t=>t.id===e.fileId));if(-1!==s){const t=[...this.files];t[s].moved=!0,this.files=t}const i=this.folders.findIndex((t=>t.id===e.folderId));if(-1!==i){const t=[...this.folders];t[i].file_count+=1,this.folders=t}}})}onLike(t){const e=t.detail;this.eventEmitter.dispatch("on-like",{fileId:e.id,resolve:t=>{const s=this.files.findIndex((t=>t.id===e.id));if(-1!==s){const t=[...this.files];t[s].isLiked=!t[s].isLiked,this.files=t}}})}onselectFile(t){const e={detail:t.detail,bubbles:!1,composed:!1};this.dispatchEvent(new CustomEvent("file",e))}close(){this.dispatchEvent(new CustomEvent("close",{}))}onDleteFile(t){const e=t.detail;this.eventEmitter.dispatch("delete-file",{id:e.id,type:"image",resolve:t=>{const s=this.files.findIndex((t=>t.id===e.id));if(-1!==s){const t=[...this.files];t.splice(s,1),this.files=t}}})}onLoadMore(){this.eventEmitter.dispatch("lazy-load-files-on-scroll",{resolve:t=>{if(Array.isArray(t)&&t.length>0){const e=[...this.files,...t];this.files=e}}})}onDeleteFolder(t){const e=t.detail;this.eventEmitter.dispatch("delete-folder",{id:e.id,resolve:t=>{this.folders||(this.folders=[]);const s=this.folders.findIndex((t=>t.id===e.id));if(-1!==s){const t=[...this.folders];t.splice(s,1),this.folders=t}}})}connectedCallback(){super.connectedCallback(),g.td.on("on:upload-file","gallery:on:upload-file",(t=>{let{image:e,type:s}=t;if("base64"===s){const t=e.split(",")[1]||e,s=atob(t),i=new Array(s.length);for(let t=0;t<s.length;t++)i[t]=s.charCodeAt(t);const r=new Uint8Array(i),o=new Blob([r],{type:"image/png"}),n=new File([o],"uploaded-image.png",{type:"image/png"});this.uploadFile({detail:n})}}))}render(){return r.dy`
|
|
628
|
+
<cdtr-upload-loading></cdtr-upload-loading>
|
|
629
|
+
<cdtr-upload-progress-monitor></cdtr-upload-progress-monitor>
|
|
630
|
+
<cdtr-drawer
|
|
631
|
+
@close=${this.close}
|
|
632
|
+
width="50vw"
|
|
633
|
+
.opened=${this.opened}
|
|
634
|
+
>
|
|
635
|
+
<cdtr-gallery-files
|
|
636
|
+
@loadMore=${this.onLoadMore}
|
|
637
|
+
@deleteFile=${this.onDleteFile}
|
|
638
|
+
@deleteFolder=${this.onDeleteFolder}
|
|
639
|
+
@like=${this.onLike}
|
|
640
|
+
@newFolder=${this.oncreateNewFolder}
|
|
641
|
+
@moveFile=${this.onMoveFile}
|
|
642
|
+
@file=${this.onselectFile}
|
|
643
|
+
@filter=${this.onFilter}
|
|
644
|
+
@folder=${this.onSelectFolder}
|
|
645
|
+
@search=${this.onSearch}
|
|
646
|
+
@reset=${this.reset}
|
|
647
|
+
@upload=${this.uploadFile}
|
|
648
|
+
.nextUrl=${this.nextUrl}
|
|
649
|
+
.prevUrl=${this.prevUrl}
|
|
650
|
+
.pageCount=${this.pageCount}
|
|
651
|
+
.files=${this.files}
|
|
652
|
+
.multi=${this.multi}
|
|
653
|
+
.folders=${this.folders}
|
|
654
|
+
></cdtr-gallery-files>
|
|
655
|
+
</cdtr-drawer>`}}(0,i.Z)(v,"styles",r.iv``),(0,i.Z)(v,"properties",{folders:{type:Array},files:{type:Array},pageCount:{type:Number},prevUrl:{type:String},nextUrl:{type:String},opened:{type:Boolean},multi:{type:Boolean},uploadStatus:{type:Object}}),customElements.define("cdtr-gallery",v)},6961:(t,e,s)=>{s.r(e),s.d(e,{TitleEditor:()=>ft});var i=s(56666);const r=globalThis,o=r.ShadowRoot&&(void 0===r.ShadyCSS||r.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,n=Symbol(),l=new WeakMap;class a{constructor(t,e,s){if(this._$cssResult$=!0,s!==n)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(o&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=l.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&l.set(e,t))}return t}toString(){return this.cssText}}const d=(t,e)=>{if(o)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const s of e){const e=document.createElement("style"),i=r.litNonce;void 0!==i&&e.setAttribute("nonce",i),e.textContent=s.cssText,t.appendChild(e)}},c=o?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return(t=>new a("string"==typeof t?t:t+"",void 0,n))(e)})(t):t,{is:h,defineProperty:p,getOwnPropertyDescriptor:u,getOwnPropertyNames:f,getOwnPropertySymbols:m,getPrototypeOf:g}=Object,v=globalThis,y=v.trustedTypes,b=y?y.emptyScript:"",$=v.reactiveElementPolyfillSupport,x=(t,e)=>t,w={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},_=(t,e)=>!h(t,e),E={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:_};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;class A extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=E){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&p(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:r}=u(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:i,set(e){const o=i?.call(this);r?.call(this,e),this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??E}static _$Ei(){if(this.hasOwnProperty(x("elementProperties")))return;const t=g(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(x("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(x("properties"))){const t=this.properties,e=[...f(t),...m(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return d(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:w).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:w;this._$Em=i,this[i]=r.fromAttribute(e,t.type)??this._$Ej?.get(i)??null,this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){const i=this.constructor,r=this[t];if(s??=i.getPropertyOptions(t),!((s.hasChanged??_)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:r},o){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,o??e??this[t]),!0!==r||void 0!==o)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===i&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,i=this[e];!0!==t||this._$AL.has(e)||void 0===i||this.C(e,void 0,s,i)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}}A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[x("elementProperties")]=new Map,A[x("finalized")]=new Map,$?.({ReactiveElement:A}),(v.reactiveElementVersions??=[]).push("2.1.0");const S=globalThis,k=S.trustedTypes,C=k?k.createPolicy("lit-html",{createHTML:t=>t}):void 0,I="$lit$",U=`lit$${Math.random().toFixed(9).slice(2)}$`,F="?"+U,N=`<${F}>`,P=document,T=()=>P.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,O=Array.isArray,R=t=>O(t)||"function"==typeof t?.[Symbol.iterator],D="[ \t\n\f\r]",L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,z=/>/g,j=RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),B=/'/g,q=/"/g,V=/^(?:script|style|textarea|title)$/i,Z=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),W=Z(1),G=(Z(2),Z(3),Symbol.for("lit-noChange")),J=Symbol.for("lit-nothing"),K=new WeakMap,X=P.createTreeWalker(P,129);function Y(t,e){if(!O(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const Q=(t,e)=>{const s=t.length-1,i=[];let r,o=2===e?"<svg>":3===e?"<math>":"",n=L;for(let e=0;e<s;e++){const s=t[e];let l,a,d=-1,c=0;for(;c<s.length&&(n.lastIndex=c,a=n.exec(s),null!==a);)c=n.lastIndex,n===L?"!--"===a[1]?n=H:void 0!==a[1]?n=z:void 0!==a[2]?(V.test(a[2])&&(r=RegExp("</"+a[2],"g")),n=j):void 0!==a[3]&&(n=j):n===j?">"===a[0]?(n=r??L,d=-1):void 0===a[1]?d=-2:(d=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?j:'"'===a[3]?q:B):n===q||n===B?n=j:n===H||n===z?n=L:(n=j,r=void 0);const h=n===j&&t[e+1].startsWith("/>")?" ":"";o+=n===L?s+N:d>=0?(i.push(l),s.slice(0,d)+I+s.slice(d)+U+h):s+U+(-2===d?e:h)}return[Y(t,o+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class tt{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let r=0,o=0;const n=t.length-1,l=this.parts,[a,d]=Q(t,e);if(this.el=tt.createElement(a,s),X.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=X.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(I)){const e=d[o++],s=i.getAttribute(t).split(U),n=/([.?@])?(.*)/.exec(e);l.push({type:1,index:r,name:n[2],strings:s,ctor:"."===n[1]?ot:"?"===n[1]?nt:"@"===n[1]?lt:rt}),i.removeAttribute(t)}else t.startsWith(U)&&(l.push({type:6,index:r}),i.removeAttribute(t));if(V.test(i.tagName)){const t=i.textContent.split(U),e=t.length-1;if(e>0){i.textContent=k?k.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],T()),X.nextNode(),l.push({type:2,index:++r});i.append(t[e],T())}}}else if(8===i.nodeType)if(i.data===F)l.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(U,t+1));)l.push({type:7,index:r}),t+=U.length-1}r++}}static createElement(t,e){const s=P.createElement("template");return s.innerHTML=t,s}}function et(t,e,s=t,i){if(e===G)return e;let r=void 0!==i?s._$Co?.[i]:s._$Cl;const o=M(e)?void 0:e._$litDirective$;return r?.constructor!==o&&(r?._$AO?.(!1),void 0===o?r=void 0:(r=new o(t),r._$AT(t,s,i)),void 0!==i?(s._$Co??=[])[i]=r:s._$Cl=r),void 0!==r&&(e=et(t,r._$AS(t,e.values),r,i)),e}class st{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??P).importNode(e,!0);X.currentNode=i;let r=X.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let e;2===l.type?e=new it(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new at(r,this,t)),this._$AV.push(e),l=s[++n]}o!==l?.index&&(r=X.nextNode(),o++)}return X.currentNode=P,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class it{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=et(this,t,e),M(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==G&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):R(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==J&&M(this._$AH)?this._$AA.nextSibling.data=t:this.T(P.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=tt.createElement(Y(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new st(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new tt(t)),e}k(t){O(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const r of t)i===e.length?e.push(s=new it(this.O(T()),this.O(T()),this,this.options)):s=e[i],s._$AI(r),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class rt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,r){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=J}_$AI(t,e=this,s,i){const r=this.strings;let o=!1;if(void 0===r)t=et(this,t,e,0),o=!M(t)||t!==this._$AH&&t!==G,o&&(this._$AH=t);else{const i=t;let n,l;for(t=r[0],n=0;n<r.length-1;n++)l=et(this,i[s+n],e,n),l===G&&(l=this._$AH[n]),o||=!M(l)||l!==this._$AH[n],l===J?t=J:t!==J&&(t+=(l??"")+r[n+1]),this._$AH[n]=l}o&&!i&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ot extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}class nt extends rt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==J)}}class lt extends rt{constructor(t,e,s,i,r){super(t,e,s,i,r),this.type=5}_$AI(t,e=this){if((t=et(this,t,e,0)??J)===G)return;const s=this._$AH,i=t===J&&s!==J||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==J&&(s===J||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class at{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){et(this,t)}}const dt=S.litHtmlPolyfillSupport;dt?.(tt,it),(S.litHtmlVersions??=[]).push("3.3.0");const ct=globalThis;class ht extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const i=s?.renderBefore??e;let r=i._$litPart$;if(void 0===r){const t=s?.renderBefore??null;i._$litPart$=r=new it(e.insertBefore(T(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return G}}ht._$litElement$=!0,ht.finalized=!0,ct.litElementHydrateSupport?.({LitElement:ht});const pt=ct.litElementPolyfillSupport;pt?.({LitElement:ht});(ct.litElementVersions??=[]).push("4.2.0");var ut=s(70235);class ft extends ht{constructor(){super(),this.text="",this.whiteSpace="pre"}connectedCallback(){super.connectedCallback(),this.style.fontFamily="var(--font-family)",this.bold&&(this.style.fontWeight="bold")}render(){const t=ut.h.get("theme");t&&(this.style.direction=t.direction,this.style.textAlign=this.textAlign||t.textAlign);const e=ut.h.get("lang",this.text);return W`<slot
|
|
656
|
+
><span
|
|
657
|
+
style="-webkit-font-smoothing: antialiased;
|
|
658
|
+
display:inline-block;direction:var(--direction-locale);text-align:var(--text-align-locale);white-space:${this.whiteSpace}"
|
|
659
|
+
>${e||this.text}</span
|
|
660
|
+
></slot
|
|
661
|
+
>`}}(0,i.Z)(ft,"properties",{text:{type:String,reflect:!1},whiteSpace:{type:String},textAlign:{type:String},bold:{type:Boolean}}),customElements.get("lang-text")||customElements.define("lang-text",ft)},30814:(t,e,s)=>{s.d(e,{td:()=>c});const i=window.cdtrSignalKey||`___${Math.random().toString(36).substr(2,9)}`;window.cdtrSignalKey=i,window[i]||(window[i]={});const r=window[i],o=window.__cdtrEvents||{};function n(t){return crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t)).then((t=>Array.from(new Uint8Array(t)).map((t=>t.toString(16).padStart(2,"0"))).join("")))}function l(t){if(t.length%2!=0)throw new Error("Invalid hex string");const e=new Uint8Array(t.length/2);for(let s=0;s<t.length;s+=2)e[s/2]=parseInt(t.substr(s,2),16);return e}async function a(t){const e=await n(t),s=r[e];if(s){const t=await crypto.subtle.importKey("raw",l(e),{name:"AES-GCM"},!1,["encrypt","decrypt"]),i=await async function(t,e,s){const i=await crypto.subtle.decrypt({name:"AES-GCM",iv:e},t,s);return(new TextDecoder).decode(i)}(t,s.iv,s.encrypted);return JSON.parse(i)}return null}function d(t,e){if(o[t])for(const s in o[t])Object.prototype.hasOwnProperty.call(o[t],s)&&o[t][s].forEach((t=>t(e)));Array.isArray(o["*"])&&o["*"].forEach((t=>t(e)))}window.__cdtrEvents=o;const c={set:async function(t,e){const s=JSON.parse(JSON.stringify(e)),i=await n(t),a=await crypto.subtle.importKey("raw",l(i),{name:"AES-GCM"},!1,["encrypt","decrypt"]),c=await async function(t,e){const s=crypto.getRandomValues(new Uint8Array(12)),i=(new TextEncoder).encode(e),r=await crypto.subtle.encrypt({name:"AES-GCM",iv:s},t,i);return{iv:s,encrypted:new Uint8Array(r)}}(a,JSON.stringify(s));r[i]=c,o.set&&o.set[i]&&o.set[i].forEach((t=>t(s))),Array.isArray(o["*"])&&o["*"].forEach((t=>t(s))),d(t,s)},get:a,remove:async function(t){const e=await n(t);delete r[e]},on:async function(t,e,s){o[t]||(o[t]={});const i=await n(e);o[t][i]||(o[t][i]=[]),o[t][i].push((t=>{!function(){const t=(new Error).stack;if(t&&t.indexOf(" at <anonymous>:1")>-1)throw console.warn("Function call blocked: Detected console execution."),new Error("Function call blocked: Detected console execution.")}(),s(t)}));const r=await a(e);return r&&s(r),i},off:function(t,e){o[t]&&o[t][e]&&delete o[t][e]},dispatch:d,OPTIONS:{SET:"set"}}},9085:(t,e,s)=>{s.d(e,{r:()=>l});var i=s(93311),r=s(47514),o=s(68707);const n=(t,e,s)=>{const i=new Map;for(let r=e;r<=s;r++)i.set(t[r],r);return i},l=(0,r.XM)(class extends r.Xe{constructor(t){if(super(t),t.type!==r.pX.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,s){let i;void 0===s?s=e:void 0!==e&&(i=e);const r=[],o=[];let n=0;for(const e of t)r[n]=i?i(e,n):n,o[n]=s(e,n),n++;return{values:o,keys:r}}render(t,e,s){return this.ht(t,e,s).values}update(t,[e,s,r]){var l;const a=(0,o.i9)(t),{values:d,keys:c}=this.ht(e,s,r);if(!Array.isArray(a))return this.ut=c,d;const h=null!==(l=this.ut)&&void 0!==l?l:this.ut=[],p=[];let u,f,m=0,g=a.length-1,v=0,y=d.length-1;for(;m<=g&&v<=y;)if(null===a[m])m++;else if(null===a[g])g--;else if(h[m]===c[v])p[v]=(0,o.fk)(a[m],d[v]),m++,v++;else if(h[g]===c[y])p[y]=(0,o.fk)(a[g],d[y]),g--,y--;else if(h[m]===c[y])p[y]=(0,o.fk)(a[m],d[y]),(0,o._Y)(t,p[y+1],a[m]),m++,y--;else if(h[g]===c[v])p[v]=(0,o.fk)(a[g],d[v]),(0,o._Y)(t,a[m],a[g]),g--,v++;else if(void 0===u&&(u=n(c,v,y),f=n(h,m,g)),u.has(h[m]))if(u.has(h[g])){const e=f.get(c[v]),s=void 0!==e?a[e]:null;if(null===s){const e=(0,o._Y)(t,a[m]);(0,o.fk)(e,d[v]),p[v]=e}else p[v]=(0,o.fk)(s,d[v]),(0,o._Y)(t,a[m],s),a[e]=null;v++}else(0,o.ws)(a[g]),g--;else(0,o.ws)(a[m]),m++;for(;v<=y;){const e=(0,o._Y)(t,p[y+1]);(0,o.fk)(e,d[v]),p[v++]=e}for(;m<=g;){const t=a[m++];null!==t&&(0,o.ws)(t)}return this.ut=c,(0,o.hl)(t,p),i.Jb}})}}]);
|