useblocks 1.0.100 → 1.0.101-alpha.13
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 +4 -2
- package/asset-manifest.json +897 -117
- package/fileManager.d.ts +605 -0
- package/iframe/429.js +1 -1
- package/iframe/766.js +1 -1
- package/iframe/766.js.LICENSE.txt +1 -0
- package/iframe/css/main.css +128 -0
- package/iframe/css/main.css.js +0 -0
- package/iframe/css/sandbox-dark.css +122 -120
- package/iframe/css/sandbox-darktheme.css +161 -131
- package/iframe/css/sandbox-light.css +91 -90
- package/iframe/css/sandbox.css +1377 -1121
- package/iframe/css/sandbox.locale.en_en.css +13 -8
- package/iframe/css/sandbox.locale.ru_ru.css +13 -8
- package/iframe/iframe-eblock.78ec4e17aa120003241a.html +1 -0
- package/iframe/iframe.78ec4e17aa120003241a.html +1 -0
- package/iframe/index.html +16 -0
- package/iframe/js/174.bd1811ef.js +1 -0
- package/iframe/js/{330.cc568d8d.js.LICENSE.txt → 174.bd1811ef.js.LICENSE.txt} +0 -2
- package/iframe/sandbox-eblock.js +1 -1
- package/iframe/sandbox-eblock.js.LICENSE.txt +2 -0
- package/iframe/sandbox.js +1 -1
- package/iframe/sandbox.js.LICENSE.txt +2 -0
- package/js/amplitude.min.js +10861 -0
- package/js/sourcebuster.min.js +673 -0
- package/package.json +1 -1
- package/react/index.d.ts +1 -1
- package/react/index.mjs +1 -1
- package/static/css/57.dced65d4.chunk.css +1 -0
- package/static/css/{6501.e131603e.chunk.css → 6501.f06bd28a.chunk.css} +1 -1
- package/static/css/9599.7e858636.chunk.css +1 -0
- package/static/css/main.d1013206.css +1 -0
- package/static/js/{1169.858b5ac7.chunk.js → 1169.ac36c90b.js} +2 -2
- package/static/js/1241.f0324229.js +1 -0
- package/static/js/1330.1e6d0a10.js +1 -0
- package/static/js/1332.8e3ea1dc.js +1 -0
- package/static/js/1377.f1151015.js +1 -0
- package/static/js/1454.8b08646c.js +1 -0
- package/static/js/1502.6756ba01.js +1 -0
- package/static/js/1510.94001d08.js +1 -0
- package/static/js/1538.04863579.js +2 -0
- package/static/js/1626.e4bdfa2b.js +1 -0
- package/static/js/1640.3b46361c.js +1 -0
- package/static/js/1788.ef0d8c8e.js +1 -0
- package/static/js/1872.cc1f0f56.js +1 -0
- package/static/js/197.5029ea36.js +1 -0
- package/static/js/2066.33e12cfb.js +1 -0
- package/static/js/2114.43424efe.js +1 -0
- package/static/js/2248.a1cd5bb3.js +1 -0
- package/static/js/2408.46a8ce6d.js +1 -0
- package/static/js/2438.08ac662b.js +1 -0
- package/static/js/2466.594765fd.js +1 -0
- package/static/js/2827.8afbce30.js +1 -0
- package/static/js/2844.2f68d816.js +1 -0
- package/static/js/290.3aa233eb.js +1 -0
- package/static/js/2917.471cc88a.js +1 -0
- package/static/js/2988.4a05dc9d.js +1 -0
- package/static/js/3017.0cfa521e.js +1 -0
- package/static/js/{3019.8534e1e7.chunk.js → 3019.b5f316a5.js} +1 -1
- package/static/js/{3085.bcc62ca0.chunk.js → 3085.0ddbb320.js} +1 -1
- package/static/js/3302.2a33af61.js +1 -0
- package/static/js/3411.2aec36ca.js +1 -0
- package/static/js/3467.aff9e25f.js +2 -0
- package/static/js/3467.aff9e25f.js.LICENSE.txt +9 -0
- package/static/js/3554.771c4212.js +2 -0
- package/static/js/3582.c0c7fbf5.js +2 -0
- package/static/js/3624.b380cc8b.js +1 -0
- package/static/js/3711.c1588dec.js +1 -0
- package/static/js/3816.1b3f2ec6.js +1 -0
- package/static/js/3914.40066823.js +1 -0
- package/static/js/4425.a1cc2ddc.js +1 -0
- package/static/js/4607.a1f4a2ee.js +1 -0
- package/static/js/4686.b5e42917.js +1 -0
- package/static/js/4702.75dc6403.js +1 -0
- package/static/js/4813.a8ae6d4b.js +1 -0
- package/static/js/4823.3b54f4c4.js +1 -0
- package/static/js/494.ba00ca3a.js +1 -0
- package/static/js/{4972.a230fee4.js → 4972.d9c59bfc.js} +1 -1
- package/static/js/5108.f3b33a5b.js +1 -0
- package/static/js/5261.68047848.js +1 -0
- package/static/js/5322.3b6bfddc.js +1 -0
- package/static/js/5447.648b4f5d.js +2 -0
- package/static/js/{8473.88a48c70.chunk.js.LICENSE.txt → 5447.648b4f5d.js.LICENSE.txt} +4 -27
- package/static/js/5466.453457a0.js +1 -0
- package/static/js/5653.2af0a7fe.js +1 -0
- package/static/js/57.864cdbd4.js +1 -0
- package/static/js/5827.52b65a1a.js +1 -0
- package/static/js/5862.1e4b27da.js +1 -0
- package/static/js/5864.63d0b187.js +1 -0
- package/static/js/5902.83e732d3.js +1 -0
- package/static/js/5980.924bfbf0.js +1 -0
- package/static/js/6033.09c630f9.js +1 -0
- package/static/js/6135.3694348e.js +1 -0
- package/static/js/{6144.a3bf0881.chunk.js → 6144.5d2c141c.js} +1 -1
- package/static/js/6418.cd76b6b1.js +1 -0
- package/static/js/6428.38ca14cb.js +1 -0
- package/static/js/6501.0e7051f8.js +1 -0
- package/static/js/6552.8e749864.js +1 -0
- package/static/js/6618.bc3805ae.js +1 -0
- package/static/js/6764.50a3ffc6.js +1 -0
- package/static/js/{6801.61475a49.chunk.js → 6801.1ec5fd97.js} +2 -2
- package/static/js/6819.3e90e2de.js +2 -0
- package/static/js/6832.2550caa5.js +1 -0
- package/static/js/6859.7a79e21e.js +1 -0
- package/static/js/7288.007d40b4.js +1 -0
- package/static/js/737.6b20bceb.js +1 -0
- package/static/js/7426.995979c0.js +1 -0
- package/static/js/{7463.51929d73.chunk.js → 7463.45a04221.js} +1 -1
- package/static/js/77.9f47a065.js +1 -0
- package/static/js/7918.467d1321.js +2 -0
- package/static/js/{8090.37ef8847.js.LICENSE.txt → 7918.467d1321.js.LICENSE.txt} +7 -0
- package/static/js/7974.1be3257a.js +1 -0
- package/static/js/{7995.417293e5.js → 7995.f6fcba7b.js} +2 -2
- package/static/js/84.bc6ea4f1.js +1 -0
- package/static/js/8466.caa088c9.js +1 -0
- package/static/js/{8521.0e5efd08.chunk.js → 8521.e891fa18.js} +1 -1
- package/static/js/8534.b07438c3.js +1 -0
- package/static/js/8590.904c3e1c.js +1 -0
- package/static/js/8682.0708405f.js +1 -0
- package/static/js/8796.42497042.js +1 -0
- package/static/js/8839.69f9da33.js +1 -0
- package/static/js/9051.6562e5d8.js +1 -0
- package/static/js/9169.428a6bc7.js +1 -0
- package/static/js/9200.927570db.js +1 -0
- package/static/js/931.249dc209.js +2 -0
- package/static/js/{6798.5d7d1e5f.chunk.js.LICENSE.txt → 931.249dc209.js.LICENSE.txt} +0 -7
- package/static/js/{ant-locale/locale-kmr_IQ-js.6903b04d.chunk.js → 9508.5bbab7e6.js} +1 -1
- package/static/js/9599.15817e1f.js +2 -0
- package/static/js/{3595.5d3d29a5.js.LICENSE.txt → 9599.15817e1f.js.LICENSE.txt} +0 -7
- package/static/js/{9644.eb778968.chunk.js → 9644.c8707a98.js} +1 -1
- package/static/js/9716.e2678a29.js +1 -0
- package/static/js/{9960.6fbe3e6d.chunk.js → 9960.3ac0c626.js} +2 -2
- package/static/js/useblocks_core.fd7b9a50.js +2 -0
- package/static/media/image-editor/fonts/TrashHand.ttf +0 -0
- package/static/media/image-editor/fonts/aleo-v4-latin-ext_latin-700.woff2 +0 -0
- package/static/media/image-editor/fonts/amatic-sc-v16-latin-ext_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/bungee-inline-v6-latin-ext_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/carter-one-v12-latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/codystar-v10-latin-ext_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/corinthia-v7-latin-ext_latin-700.woff2 +0 -0
- package/static/media/image-editor/fonts/fira-sans-v11-latin-ext_latin_cyrillic-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/fuzzy-bubbles-v3-latin-700.woff2 +0 -0
- package/static/media/image-editor/fonts/krona-one-v9-latin-ext_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/kumar-one-outline-v8-latin-ext_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/lobster-two-v13-latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/molle-v11-latin-ext_latin-italic.woff2 +0 -0
- package/static/media/image-editor/fonts/monoton-v10-latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/nixie-one-v11-latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/open-sans-v27-latin-ext_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/permanent-marker-v10-latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/roboto-slab-v16-latin-ext_latin-500.woff2 +0 -0
- package/static/media/image-editor/fonts/sancreek-v13-latin-ext_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/stint-ultra-expanded-v10-latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/vt323-v12-latin-ext_latin-regular.woff2 +0 -0
- package/static/media/image-editor/images/brushes/black/circle.png +0 -0
- package/static/media/image-editor/images/brushes/black/diamond.png +0 -0
- package/static/media/image-editor/images/brushes/black/hline.png +0 -0
- package/static/media/image-editor/images/brushes/black/pencil.png +0 -0
- package/static/media/image-editor/images/brushes/black/spray.png +0 -0
- package/static/media/image-editor/images/brushes/black/square.png +0 -0
- package/static/media/image-editor/images/brushes/black/vline.png +0 -0
- package/static/media/image-editor/images/brushes/white/circle.png +0 -0
- package/static/media/image-editor/images/brushes/white/diamond.png +0 -0
- package/static/media/image-editor/images/brushes/white/hline.png +0 -0
- package/static/media/image-editor/images/brushes/white/pencil.png +0 -0
- package/static/media/image-editor/images/brushes/white/spray.png +0 -0
- package/static/media/image-editor/images/brushes/white/square.png +0 -0
- package/static/media/image-editor/images/brushes/white/vline.png +0 -0
- package/static/media/image-editor/images/empty-canvas-bg.png +0 -0
- package/static/media/image-editor/images/filter/blackWhite.jpg +0 -0
- package/static/media/image-editor/images/filter/blendColor.jpg +0 -0
- package/static/media/image-editor/images/filter/blur.jpg +0 -0
- package/static/media/image-editor/images/filter/brightness.jpg +0 -0
- package/static/media/image-editor/images/filter/brownie.jpg +0 -0
- package/static/media/image-editor/images/filter/emboss.jpg +0 -0
- package/static/media/image-editor/images/filter/gamma.jpg +0 -0
- package/static/media/image-editor/images/filter/grayscale.jpg +0 -0
- package/static/media/image-editor/images/filter/invert.jpg +0 -0
- package/static/media/image-editor/images/filter/kodachrome.jpg +0 -0
- package/static/media/image-editor/images/filter/noise.jpg +0 -0
- package/static/media/image-editor/images/filter/original.jpg +0 -0
- package/static/media/image-editor/images/filter/pixelate.jpg +0 -0
- package/static/media/image-editor/images/filter/polaroid.jpg +0 -0
- package/static/media/image-editor/images/filter/removeColor.jpg +0 -0
- package/static/media/image-editor/images/filter/sepia.jpg +0 -0
- package/static/media/image-editor/images/filter/sharpen.jpg +0 -0
- package/static/media/image-editor/images/filter/technicolor.jpg +0 -0
- package/static/media/image-editor/images/filter/vintage.jpg +0 -0
- package/static/media/image-editor/images/frames/art1/bottom.png +0 -0
- package/static/media/image-editor/images/frames/art1/bottomLeft.png +0 -0
- package/static/media/image-editor/images/frames/art1/bottomRight.png +0 -0
- package/static/media/image-editor/images/frames/art1/left.png +0 -0
- package/static/media/image-editor/images/frames/art1/right.png +0 -0
- package/static/media/image-editor/images/frames/art1/thumbnail.png +0 -0
- package/static/media/image-editor/images/frames/art1/top.png +0 -0
- package/static/media/image-editor/images/frames/art1/topLeft.png +0 -0
- package/static/media/image-editor/images/frames/art1/topRight.png +0 -0
- package/static/media/image-editor/images/frames/art2/bottom.png +0 -0
- package/static/media/image-editor/images/frames/art2/bottomLeft.png +0 -0
- package/static/media/image-editor/images/frames/art2/bottomRight.png +0 -0
- package/static/media/image-editor/images/frames/art2/left.png +0 -0
- package/static/media/image-editor/images/frames/art2/right.png +0 -0
- package/static/media/image-editor/images/frames/art2/thumbnail.png +0 -0
- package/static/media/image-editor/images/frames/art2/top.png +0 -0
- package/static/media/image-editor/images/frames/art2/topLeft.png +0 -0
- package/static/media/image-editor/images/frames/art2/topRight.png +0 -0
- package/static/media/image-editor/images/frames/basic/thumbnail.png +0 -0
- package/static/media/image-editor/images/frames/ebony/bottom.png +0 -0
- package/static/media/image-editor/images/frames/ebony/bottomLeft.png +0 -0
- package/static/media/image-editor/images/frames/ebony/bottomRight.png +0 -0
- package/static/media/image-editor/images/frames/ebony/left.png +0 -0
- package/static/media/image-editor/images/frames/ebony/right.png +0 -0
- package/static/media/image-editor/images/frames/ebony/thumbnail.png +0 -0
- package/static/media/image-editor/images/frames/ebony/top.png +0 -0
- package/static/media/image-editor/images/frames/ebony/topLeft.png +0 -0
- package/static/media/image-editor/images/frames/ebony/topRight.png +0 -0
- package/static/media/image-editor/images/frames/grunge1/bottom.png +0 -0
- package/static/media/image-editor/images/frames/grunge1/bottomLeft.png +0 -0
- package/static/media/image-editor/images/frames/grunge1/bottomRight.png +0 -0
- package/static/media/image-editor/images/frames/grunge1/left.png +0 -0
- package/static/media/image-editor/images/frames/grunge1/right.png +0 -0
- package/static/media/image-editor/images/frames/grunge1/thumbnail.png +0 -0
- package/static/media/image-editor/images/frames/grunge1/top.png +0 -0
- package/static/media/image-editor/images/frames/grunge1/topLeft.png +0 -0
- package/static/media/image-editor/images/frames/grunge1/topRight.png +0 -0
- package/static/media/image-editor/images/frames/grunge2/bottom.png +0 -0
- package/static/media/image-editor/images/frames/grunge2/bottomLeft.png +0 -0
- package/static/media/image-editor/images/frames/grunge2/bottomRight.png +0 -0
- package/static/media/image-editor/images/frames/grunge2/left.png +0 -0
- package/static/media/image-editor/images/frames/grunge2/right.png +0 -0
- package/static/media/image-editor/images/frames/grunge2/thumbnail.png +0 -0
- package/static/media/image-editor/images/frames/grunge2/top.png +0 -0
- package/static/media/image-editor/images/frames/grunge2/topLeft.png +0 -0
- package/static/media/image-editor/images/frames/grunge2/topRight.png +0 -0
- package/static/media/image-editor/images/frames/oak/bottom.png +0 -0
- package/static/media/image-editor/images/frames/oak/bottomLeft.png +0 -0
- package/static/media/image-editor/images/frames/oak/bottomRight.png +0 -0
- package/static/media/image-editor/images/frames/oak/left.png +0 -0
- package/static/media/image-editor/images/frames/oak/right.png +0 -0
- package/static/media/image-editor/images/frames/oak/thumbnail.png +0 -0
- package/static/media/image-editor/images/frames/oak/top.png +0 -0
- package/static/media/image-editor/images/frames/oak/topLeft.png +0 -0
- package/static/media/image-editor/images/frames/oak/topRight.png +0 -0
- package/static/media/image-editor/images/frames/pine/bottom.png +0 -0
- package/static/media/image-editor/images/frames/pine/bottomLeft.png +0 -0
- package/static/media/image-editor/images/frames/pine/bottomRight.png +0 -0
- package/static/media/image-editor/images/frames/pine/left.png +0 -0
- package/static/media/image-editor/images/frames/pine/right.png +0 -0
- package/static/media/image-editor/images/frames/pine/thumbnail.png +0 -0
- package/static/media/image-editor/images/frames/pine/top.png +0 -0
- package/static/media/image-editor/images/frames/pine/topLeft.png +0 -0
- package/static/media/image-editor/images/frames/pine/topRight.png +0 -0
- package/static/media/image-editor/images/frames/rainbow/bottom.png +0 -0
- package/static/media/image-editor/images/frames/rainbow/bottomLeft.png +0 -0
- package/static/media/image-editor/images/frames/rainbow/bottomRight.png +0 -0
- package/static/media/image-editor/images/frames/rainbow/left.png +0 -0
- package/static/media/image-editor/images/frames/rainbow/right.png +0 -0
- package/static/media/image-editor/images/frames/rainbow/thumbnail.png +0 -0
- package/static/media/image-editor/images/frames/rainbow/top.png +0 -0
- package/static/media/image-editor/images/frames/rainbow/topLeft.png +0 -0
- package/static/media/image-editor/images/frames/rainbow/topRight.png +0 -0
- package/static/media/image-editor/images/gradients/0.png +0 -0
- package/static/media/image-editor/images/gradients/1.png +0 -0
- package/static/media/image-editor/images/gradients/10.png +0 -0
- package/static/media/image-editor/images/gradients/11.png +0 -0
- package/static/media/image-editor/images/gradients/12.png +0 -0
- package/static/media/image-editor/images/gradients/2.png +0 -0
- package/static/media/image-editor/images/gradients/3.png +0 -0
- package/static/media/image-editor/images/gradients/4.png +0 -0
- package/static/media/image-editor/images/gradients/5.png +0 -0
- package/static/media/image-editor/images/gradients/6.png +0 -0
- package/static/media/image-editor/images/gradients/7.png +0 -0
- package/static/media/image-editor/images/gradients/8.png +0 -0
- package/static/media/image-editor/images/gradients/9.png +0 -0
- package/static/media/image-editor/images/samples/large_sample.jpg +0 -0
- package/static/media/image-editor/images/samples/sample1.jpg +0 -0
- package/static/media/image-editor/images/samples/sample1_thumbnail.jpg +0 -0
- package/static/media/image-editor/images/samples/sample2.jpg +0 -0
- package/static/media/image-editor/images/samples/sample2_thumbnail.jpg +0 -0
- package/static/media/image-editor/images/samples/sample3.jpg +0 -0
- package/static/media/image-editor/images/samples/sample3_thumbnail.jpg +0 -0
- package/static/media/image-editor/images/samples/sample4.json +871 -0
- package/static/media/image-editor/images/samples/sample4_preview.jpg +0 -0
- package/static/media/image-editor/images/stickers/beach/0.svg +25 -0
- package/static/media/image-editor/images/stickers/beach/1.svg +14 -0
- package/static/media/image-editor/images/stickers/beach/10.svg +34 -0
- package/static/media/image-editor/images/stickers/beach/11.svg +27 -0
- package/static/media/image-editor/images/stickers/beach/12.svg +10 -0
- package/static/media/image-editor/images/stickers/beach/13.svg +25 -0
- package/static/media/image-editor/images/stickers/beach/14.svg +16 -0
- package/static/media/image-editor/images/stickers/beach/15.svg +14 -0
- package/static/media/image-editor/images/stickers/beach/16.svg +44 -0
- package/static/media/image-editor/images/stickers/beach/17.svg +35 -0
- package/static/media/image-editor/images/stickers/beach/18.svg +32 -0
- package/static/media/image-editor/images/stickers/beach/19.svg +23 -0
- package/static/media/image-editor/images/stickers/beach/2.svg +14 -0
- package/static/media/image-editor/images/stickers/beach/20.svg +24 -0
- package/static/media/image-editor/images/stickers/beach/21.svg +11 -0
- package/static/media/image-editor/images/stickers/beach/3.svg +26 -0
- package/static/media/image-editor/images/stickers/beach/4.svg +25 -0
- package/static/media/image-editor/images/stickers/beach/5.svg +22 -0
- package/static/media/image-editor/images/stickers/beach/6.svg +20 -0
- package/static/media/image-editor/images/stickers/beach/7.svg +32 -0
- package/static/media/image-editor/images/stickers/beach/8.svg +28 -0
- package/static/media/image-editor/images/stickers/beach/9.svg +18 -0
- package/static/media/image-editor/images/stickers/bubbles/0.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/1.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/10.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/100.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/101.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/102.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/103.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/105.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/11.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/12.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/13.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/14.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/15.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/16.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/17.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/18.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/19.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/2.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/20.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/21.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/22.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/23.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/24.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/25.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/26.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/27.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/28.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/29.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/3.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/30.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/31.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/32.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/33.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/34.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/35.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/36.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/37.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/38.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/39.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/4.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/40.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/41.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/42.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/43.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/44.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/45.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/46.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/47.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/48.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/49.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/5.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/50.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/51.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/52.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/53.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/54.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/55.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/56.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/57.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/58.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/59.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/6.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/60.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/61.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/62.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/63.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/64.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/65.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/66.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/67.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/68.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/69.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/7.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/70.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/71.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/72.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/73.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/74.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/75.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/76.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/77.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/78.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/79.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/8.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/80.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/81.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/82.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/83.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/84.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/85.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/86.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/87.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/88.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/89.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/9.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/90.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/91.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/92.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/93.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/94.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/95.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/96.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/97.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/98.png +0 -0
- package/static/media/image-editor/images/stickers/bubbles/99.png +0 -0
- package/static/media/image-editor/images/stickers/categories/beach.svg +18 -0
- package/static/media/image-editor/images/stickers/categories/clouds.svg +15 -0
- package/static/media/image-editor/images/stickers/categories/doodles.svg +13 -0
- package/static/media/image-editor/images/stickers/categories/emoticon.svg +10 -0
- package/static/media/image-editor/images/stickers/categories/landmark.svg +20 -0
- package/static/media/image-editor/images/stickers/categories/speech-bubble.svg +6 -0
- package/static/media/image-editor/images/stickers/categories/star.svg +6 -0
- package/static/media/image-editor/images/stickers/categories/transportation.svg +18 -0
- package/static/media/image-editor/images/stickers/clouds/0.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/1.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/10.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/11.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/12.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/13.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/14.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/2.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/3.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/4.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/5.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/6.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/7.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/8.png +0 -0
- package/static/media/image-editor/images/stickers/clouds/9.png +0 -0
- package/static/media/image-editor/images/stickers/doodles/0.svg +201 -0
- package/static/media/image-editor/images/stickers/doodles/1.svg +255 -0
- package/static/media/image-editor/images/stickers/doodles/10.svg +160 -0
- package/static/media/image-editor/images/stickers/doodles/11.svg +393 -0
- package/static/media/image-editor/images/stickers/doodles/12.svg +293 -0
- package/static/media/image-editor/images/stickers/doodles/13.svg +251 -0
- package/static/media/image-editor/images/stickers/doodles/14.svg +370 -0
- package/static/media/image-editor/images/stickers/doodles/15.svg +194 -0
- package/static/media/image-editor/images/stickers/doodles/16.svg +383 -0
- package/static/media/image-editor/images/stickers/doodles/17.svg +346 -0
- package/static/media/image-editor/images/stickers/doodles/18.svg +286 -0
- package/static/media/image-editor/images/stickers/doodles/19.svg +241 -0
- package/static/media/image-editor/images/stickers/doodles/2.svg +227 -0
- package/static/media/image-editor/images/stickers/doodles/20.svg +330 -0
- package/static/media/image-editor/images/stickers/doodles/21.svg +200 -0
- package/static/media/image-editor/images/stickers/doodles/22.svg +308 -0
- package/static/media/image-editor/images/stickers/doodles/23.svg +518 -0
- package/static/media/image-editor/images/stickers/doodles/24.svg +207 -0
- package/static/media/image-editor/images/stickers/doodles/25.svg +260 -0
- package/static/media/image-editor/images/stickers/doodles/26.svg +380 -0
- package/static/media/image-editor/images/stickers/doodles/27.svg +222 -0
- package/static/media/image-editor/images/stickers/doodles/28.svg +164 -0
- package/static/media/image-editor/images/stickers/doodles/29.svg +271 -0
- package/static/media/image-editor/images/stickers/doodles/3.svg +272 -0
- package/static/media/image-editor/images/stickers/doodles/30.svg +283 -0
- package/static/media/image-editor/images/stickers/doodles/31.svg +257 -0
- package/static/media/image-editor/images/stickers/doodles/32.svg +276 -0
- package/static/media/image-editor/images/stickers/doodles/33.svg +198 -0
- package/static/media/image-editor/images/stickers/doodles/34.svg +314 -0
- package/static/media/image-editor/images/stickers/doodles/35.svg +236 -0
- package/static/media/image-editor/images/stickers/doodles/36.svg +273 -0
- package/static/media/image-editor/images/stickers/doodles/37.svg +284 -0
- package/static/media/image-editor/images/stickers/doodles/38.svg +167 -0
- package/static/media/image-editor/images/stickers/doodles/39.svg +381 -0
- package/static/media/image-editor/images/stickers/doodles/4.svg +216 -0
- package/static/media/image-editor/images/stickers/doodles/40.svg +198 -0
- package/static/media/image-editor/images/stickers/doodles/41.svg +259 -0
- package/static/media/image-editor/images/stickers/doodles/42.svg +371 -0
- package/static/media/image-editor/images/stickers/doodles/43.svg +198 -0
- package/static/media/image-editor/images/stickers/doodles/44.svg +174 -0
- package/static/media/image-editor/images/stickers/doodles/45.svg +178 -0
- package/static/media/image-editor/images/stickers/doodles/46.svg +211 -0
- package/static/media/image-editor/images/stickers/doodles/47.svg +195 -0
- package/static/media/image-editor/images/stickers/doodles/48.svg +293 -0
- package/static/media/image-editor/images/stickers/doodles/49.svg +191 -0
- package/static/media/image-editor/images/stickers/doodles/5.svg +179 -0
- package/static/media/image-editor/images/stickers/doodles/50.svg +323 -0
- package/static/media/image-editor/images/stickers/doodles/51.svg +308 -0
- package/static/media/image-editor/images/stickers/doodles/52.svg +162 -0
- package/static/media/image-editor/images/stickers/doodles/53.svg +263 -0
- package/static/media/image-editor/images/stickers/doodles/54.svg +175 -0
- package/static/media/image-editor/images/stickers/doodles/55.svg +177 -0
- package/static/media/image-editor/images/stickers/doodles/56.svg +160 -0
- package/static/media/image-editor/images/stickers/doodles/57.svg +115 -0
- package/static/media/image-editor/images/stickers/doodles/58.svg +327 -0
- package/static/media/image-editor/images/stickers/doodles/59.svg +197 -0
- package/static/media/image-editor/images/stickers/doodles/6.svg +388 -0
- package/static/media/image-editor/images/stickers/doodles/60.svg +414 -0
- package/static/media/image-editor/images/stickers/doodles/61.svg +287 -0
- package/static/media/image-editor/images/stickers/doodles/62.svg +193 -0
- package/static/media/image-editor/images/stickers/doodles/63.svg +329 -0
- package/static/media/image-editor/images/stickers/doodles/64.svg +150 -0
- package/static/media/image-editor/images/stickers/doodles/65.svg +275 -0
- package/static/media/image-editor/images/stickers/doodles/66.svg +174 -0
- package/static/media/image-editor/images/stickers/doodles/67.svg +343 -0
- package/static/media/image-editor/images/stickers/doodles/68.svg +242 -0
- package/static/media/image-editor/images/stickers/doodles/69.svg +160 -0
- package/static/media/image-editor/images/stickers/doodles/7.svg +194 -0
- package/static/media/image-editor/images/stickers/doodles/70.svg +365 -0
- package/static/media/image-editor/images/stickers/doodles/71.svg +454 -0
- package/static/media/image-editor/images/stickers/doodles/72.svg +162 -0
- package/static/media/image-editor/images/stickers/doodles/73.svg +393 -0
- package/static/media/image-editor/images/stickers/doodles/74.svg +206 -0
- package/static/media/image-editor/images/stickers/doodles/75.svg +275 -0
- package/static/media/image-editor/images/stickers/doodles/76.svg +350 -0
- package/static/media/image-editor/images/stickers/doodles/77.svg +323 -0
- package/static/media/image-editor/images/stickers/doodles/78.svg +316 -0
- package/static/media/image-editor/images/stickers/doodles/79.svg +503 -0
- package/static/media/image-editor/images/stickers/doodles/8.svg +185 -0
- package/static/media/image-editor/images/stickers/doodles/80.svg +235 -0
- package/static/media/image-editor/images/stickers/doodles/81.svg +184 -0
- package/static/media/image-editor/images/stickers/doodles/82.svg +246 -0
- package/static/media/image-editor/images/stickers/doodles/83.svg +125 -0
- package/static/media/image-editor/images/stickers/doodles/84.svg +168 -0
- package/static/media/image-editor/images/stickers/doodles/85.svg +138 -0
- package/static/media/image-editor/images/stickers/doodles/86.svg +223 -0
- package/static/media/image-editor/images/stickers/doodles/87.svg +475 -0
- package/static/media/image-editor/images/stickers/doodles/88.svg +172 -0
- package/static/media/image-editor/images/stickers/doodles/89.svg +199 -0
- package/static/media/image-editor/images/stickers/doodles/9.svg +368 -0
- package/static/media/image-editor/images/stickers/doodles/90.svg +298 -0
- package/static/media/image-editor/images/stickers/doodles/91.svg +176 -0
- package/static/media/image-editor/images/stickers/doodles/92.svg +152 -0
- package/static/media/image-editor/images/stickers/doodles/93.svg +206 -0
- package/static/media/image-editor/images/stickers/doodles/94.svg +202 -0
- package/static/media/image-editor/images/stickers/doodles/95.svg +114 -0
- package/static/media/image-editor/images/stickers/doodles/96.svg +149 -0
- package/static/media/image-editor/images/stickers/doodles/97.svg +197 -0
- package/static/media/image-editor/images/stickers/doodles/98.svg +397 -0
- package/static/media/image-editor/images/stickers/doodles/99.svg +502 -0
- package/static/media/image-editor/images/stickers/emoticons/afro-1.svg +122 -0
- package/static/media/image-editor/images/stickers/emoticons/afro.svg +85 -0
- package/static/media/image-editor/images/stickers/emoticons/agent.svg +114 -0
- package/static/media/image-editor/images/stickers/emoticons/alien-1.svg +60 -0
- package/static/media/image-editor/images/stickers/emoticons/alien.svg +64 -0
- package/static/media/image-editor/images/stickers/emoticons/angel.svg +47 -0
- package/static/media/image-editor/images/stickers/emoticons/angry-1.svg +83 -0
- package/static/media/image-editor/images/stickers/emoticons/angry-2.svg +48 -0
- package/static/media/image-editor/images/stickers/emoticons/angry-3.svg +45 -0
- package/static/media/image-editor/images/stickers/emoticons/angry-4.svg +52 -0
- package/static/media/image-editor/images/stickers/emoticons/angry-5.svg +62 -0
- package/static/media/image-editor/images/stickers/emoticons/angry.svg +78 -0
- package/static/media/image-editor/images/stickers/emoticons/arguing.svg +49 -0
- package/static/media/image-editor/images/stickers/emoticons/arrogant.svg +98 -0
- package/static/media/image-editor/images/stickers/emoticons/asian-1.svg +52 -0
- package/static/media/image-editor/images/stickers/emoticons/asian.svg +54 -0
- package/static/media/image-editor/images/stickers/emoticons/avatar.svg +49 -0
- package/static/media/image-editor/images/stickers/emoticons/baby-1.svg +51 -0
- package/static/media/image-editor/images/stickers/emoticons/baby-2.svg +54 -0
- package/static/media/image-editor/images/stickers/emoticons/baby.svg +66 -0
- package/static/media/image-editor/images/stickers/emoticons/bully.svg +68 -0
- package/static/media/image-editor/images/stickers/emoticons/burglar.svg +75 -0
- package/static/media/image-editor/images/stickers/emoticons/businessman.svg +52 -0
- package/static/media/image-editor/images/stickers/emoticons/cheeky-1.svg +83 -0
- package/static/media/image-editor/images/stickers/emoticons/cheeky.svg +73 -0
- package/static/media/image-editor/images/stickers/emoticons/clown.svg +75 -0
- package/static/media/image-editor/images/stickers/emoticons/confused-1.svg +74 -0
- package/static/media/image-editor/images/stickers/emoticons/confused-2.svg +55 -0
- package/static/media/image-editor/images/stickers/emoticons/confused-3.svg +45 -0
- package/static/media/image-editor/images/stickers/emoticons/confused.svg +66 -0
- package/static/media/image-editor/images/stickers/emoticons/creepy.svg +60 -0
- package/static/media/image-editor/images/stickers/emoticons/crying-1.svg +55 -0
- package/static/media/image-editor/images/stickers/emoticons/crying-2.svg +83 -0
- package/static/media/image-editor/images/stickers/emoticons/crying-3.svg +53 -0
- package/static/media/image-editor/images/stickers/emoticons/crying.svg +59 -0
- package/static/media/image-editor/images/stickers/emoticons/dazed-1.svg +63 -0
- package/static/media/image-editor/images/stickers/emoticons/dazed-2.svg +51 -0
- package/static/media/image-editor/images/stickers/emoticons/dazed-3.svg +55 -0
- package/static/media/image-editor/images/stickers/emoticons/dazed.svg +56 -0
- package/static/media/image-editor/images/stickers/emoticons/dead-1.svg +61 -0
- package/static/media/image-editor/images/stickers/emoticons/dead-2.svg +80 -0
- package/static/media/image-editor/images/stickers/emoticons/dead-3.svg +66 -0
- package/static/media/image-editor/images/stickers/emoticons/dead-4.svg +54 -0
- package/static/media/image-editor/images/stickers/emoticons/dead-5.svg +52 -0
- package/static/media/image-editor/images/stickers/emoticons/dead-6.svg +53 -0
- package/static/media/image-editor/images/stickers/emoticons/dead.svg +54 -0
- package/static/media/image-editor/images/stickers/emoticons/desperate-1.svg +47 -0
- package/static/media/image-editor/images/stickers/emoticons/desperate.svg +75 -0
- package/static/media/image-editor/images/stickers/emoticons/detective.svg +75 -0
- package/static/media/image-editor/images/stickers/emoticons/dissapointment.svg +70 -0
- package/static/media/image-editor/images/stickers/emoticons/doctor.svg +61 -0
- package/static/media/image-editor/images/stickers/emoticons/drunk.svg +55 -0
- package/static/media/image-editor/images/stickers/emoticons/dumb.svg +50 -0
- package/static/media/image-editor/images/stickers/emoticons/emo-1.svg +104 -0
- package/static/media/image-editor/images/stickers/emoticons/emo-2.svg +111 -0
- package/static/media/image-editor/images/stickers/emoticons/emo.svg +56 -0
- package/static/media/image-editor/images/stickers/emoticons/emoticon.svg +84 -0
- package/static/media/image-editor/images/stickers/emoticons/evil.svg +59 -0
- package/static/media/image-editor/images/stickers/emoticons/faint-1.svg +75 -0
- package/static/media/image-editor/images/stickers/emoticons/faint.svg +84 -0
- package/static/media/image-editor/images/stickers/emoticons/flirt-1.svg +81 -0
- package/static/media/image-editor/images/stickers/emoticons/flirt-2.svg +68 -0
- package/static/media/image-editor/images/stickers/emoticons/flirt.svg +71 -0
- package/static/media/image-editor/images/stickers/emoticons/flirty.svg +60 -0
- package/static/media/image-editor/images/stickers/emoticons/gangster.svg +54 -0
- package/static/media/image-editor/images/stickers/emoticons/geek-1.svg +76 -0
- package/static/media/image-editor/images/stickers/emoticons/geek.svg +69 -0
- package/static/media/image-editor/images/stickers/emoticons/gentleman-1.svg +82 -0
- package/static/media/image-editor/images/stickers/emoticons/gentleman-2.svg +58 -0
- package/static/media/image-editor/images/stickers/emoticons/gentleman-3.svg +54 -0
- package/static/media/image-editor/images/stickers/emoticons/gentleman-4.svg +59 -0
- package/static/media/image-editor/images/stickers/emoticons/gentleman.svg +57 -0
- package/static/media/image-editor/images/stickers/emoticons/ginger.svg +55 -0
- package/static/media/image-editor/images/stickers/emoticons/girl-1.svg +70 -0
- package/static/media/image-editor/images/stickers/emoticons/girl.svg +73 -0
- package/static/media/image-editor/images/stickers/emoticons/goofy-1.svg +46 -0
- package/static/media/image-editor/images/stickers/emoticons/goofy-2.svg +79 -0
- package/static/media/image-editor/images/stickers/emoticons/goofy-3.svg +79 -0
- package/static/media/image-editor/images/stickers/emoticons/goofy-4.svg +46 -0
- package/static/media/image-editor/images/stickers/emoticons/goofy.svg +79 -0
- package/static/media/image-editor/images/stickers/emoticons/grubby-1.svg +114 -0
- package/static/media/image-editor/images/stickers/emoticons/grubby.svg +165 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-1.svg +49 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-10.svg +62 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-11.svg +55 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-12.svg +53 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-13.svg +58 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-14.svg +62 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-15.svg +49 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-16.svg +49 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-2.svg +71 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-3.svg +74 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-4.svg +77 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-5.svg +52 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-6.svg +54 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-7.svg +58 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-8.svg +42 -0
- package/static/media/image-editor/images/stickers/emoticons/happy-9.svg +45 -0
- package/static/media/image-editor/images/stickers/emoticons/happy.svg +48 -0
- package/static/media/image-editor/images/stickers/emoticons/harry-potter.svg +68 -0
- package/static/media/image-editor/images/stickers/emoticons/heisenberg.svg +80 -0
- package/static/media/image-editor/images/stickers/emoticons/hipster-1.svg +118 -0
- package/static/media/image-editor/images/stickers/emoticons/hipster-2.svg +49 -0
- package/static/media/image-editor/images/stickers/emoticons/hipster.svg +48 -0
- package/static/media/image-editor/images/stickers/emoticons/in-love-1.svg +62 -0
- package/static/media/image-editor/images/stickers/emoticons/in-love-2.svg +48 -0
- package/static/media/image-editor/images/stickers/emoticons/in-love-3.svg +49 -0
- package/static/media/image-editor/images/stickers/emoticons/in-love-4.svg +50 -0
- package/static/media/image-editor/images/stickers/emoticons/in-love-5.svg +49 -0
- package/static/media/image-editor/images/stickers/emoticons/in-love-6.svg +53 -0
- package/static/media/image-editor/images/stickers/emoticons/in-love.svg +57 -0
- package/static/media/image-editor/images/stickers/emoticons/japan.svg +79 -0
- package/static/media/image-editor/images/stickers/emoticons/jew.svg +83 -0
- package/static/media/image-editor/images/stickers/emoticons/joyful-1.svg +72 -0
- package/static/media/image-editor/images/stickers/emoticons/joyful-2.svg +45 -0
- package/static/media/image-editor/images/stickers/emoticons/joyful.svg +47 -0
- package/static/media/image-editor/images/stickers/emoticons/kiss-1.svg +48 -0
- package/static/media/image-editor/images/stickers/emoticons/kiss-2.svg +59 -0
- package/static/media/image-editor/images/stickers/emoticons/kiss-3.svg +53 -0
- package/static/media/image-editor/images/stickers/emoticons/kiss-4.svg +59 -0
- package/static/media/image-editor/images/stickers/emoticons/kiss.svg +67 -0
- package/static/media/image-editor/images/stickers/emoticons/laughing-1.svg +54 -0
- package/static/media/image-editor/images/stickers/emoticons/laughing-2.svg +57 -0
- package/static/media/image-editor/images/stickers/emoticons/laughing-3.svg +55 -0
- package/static/media/image-editor/images/stickers/emoticons/laughing.svg +56 -0
- package/static/media/image-editor/images/stickers/emoticons/listening.svg +55 -0
- package/static/media/image-editor/images/stickers/emoticons/love.svg +74 -0
- package/static/media/image-editor/images/stickers/emoticons/manly.svg +75 -0
- package/static/media/image-editor/images/stickers/emoticons/miserly-1.svg +90 -0
- package/static/media/image-editor/images/stickers/emoticons/miserly.svg +82 -0
- package/static/media/image-editor/images/stickers/emoticons/nerd-1.svg +88 -0
- package/static/media/image-editor/images/stickers/emoticons/nerd-2.svg +73 -0
- package/static/media/image-editor/images/stickers/emoticons/nerd-3.svg +60 -0
- package/static/media/image-editor/images/stickers/emoticons/nerd-4.svg +70 -0
- package/static/media/image-editor/images/stickers/emoticons/nerd.svg +88 -0
- package/static/media/image-editor/images/stickers/emoticons/ninja.svg +51 -0
- package/static/media/image-editor/images/stickers/emoticons/pirate-1.svg +92 -0
- package/static/media/image-editor/images/stickers/emoticons/pirate-2.svg +48 -0
- package/static/media/image-editor/images/stickers/emoticons/pirate.svg +286 -0
- package/static/media/image-editor/images/stickers/emoticons/punk-1.svg +134 -0
- package/static/media/image-editor/images/stickers/emoticons/punk-2.svg +153 -0
- package/static/media/image-editor/images/stickers/emoticons/punk.svg +82 -0
- package/static/media/image-editor/images/stickers/emoticons/rapper.svg +51 -0
- package/static/media/image-editor/images/stickers/emoticons/relieved.svg +56 -0
- package/static/media/image-editor/images/stickers/emoticons/rich-1.svg +59 -0
- package/static/media/image-editor/images/stickers/emoticons/rich-2.svg +93 -0
- package/static/media/image-editor/images/stickers/emoticons/rich.svg +88 -0
- package/static/media/image-editor/images/stickers/emoticons/rockstar.svg +177 -0
- package/static/media/image-editor/images/stickers/emoticons/sad-1.svg +43 -0
- package/static/media/image-editor/images/stickers/emoticons/sad-2.svg +49 -0
- package/static/media/image-editor/images/stickers/emoticons/sad-3.svg +49 -0
- package/static/media/image-editor/images/stickers/emoticons/sad-4.svg +49 -0
- package/static/media/image-editor/images/stickers/emoticons/sad-5.svg +45 -0
- package/static/media/image-editor/images/stickers/emoticons/sad-6.svg +47 -0
- package/static/media/image-editor/images/stickers/emoticons/sad.svg +47 -0
- package/static/media/image-editor/images/stickers/emoticons/scared-1.svg +79 -0
- package/static/media/image-editor/images/stickers/emoticons/scared-2.svg +59 -0
- package/static/media/image-editor/images/stickers/emoticons/scared-3.svg +52 -0
- package/static/media/image-editor/images/stickers/emoticons/scared.svg +45 -0
- package/static/media/image-editor/images/stickers/emoticons/sceptic-1.svg +59 -0
- package/static/media/image-editor/images/stickers/emoticons/sceptic-2.svg +80 -0
- package/static/media/image-editor/images/stickers/emoticons/sceptic-3.svg +59 -0
- package/static/media/image-editor/images/stickers/emoticons/sceptic-4.svg +46 -0
- package/static/media/image-editor/images/stickers/emoticons/sceptic-5.svg +43 -0
- package/static/media/image-editor/images/stickers/emoticons/sceptic-6.svg +42 -0
- package/static/media/image-editor/images/stickers/emoticons/sceptic-7.svg +50 -0
- package/static/media/image-editor/images/stickers/emoticons/sceptic.svg +44 -0
- package/static/media/image-editor/images/stickers/emoticons/secret.svg +48 -0
- package/static/media/image-editor/images/stickers/emoticons/shocked-1.svg +67 -0
- package/static/media/image-editor/images/stickers/emoticons/shocked-2.svg +44 -0
- package/static/media/image-editor/images/stickers/emoticons/shocked-3.svg +48 -0
- package/static/media/image-editor/images/stickers/emoticons/shocked.svg +46 -0
- package/static/media/image-editor/images/stickers/emoticons/sick-1.svg +55 -0
- package/static/media/image-editor/images/stickers/emoticons/sick-2.svg +48 -0
- package/static/media/image-editor/images/stickers/emoticons/sick-3.svg +49 -0
- package/static/media/image-editor/images/stickers/emoticons/sick-4.svg +52 -0
- package/static/media/image-editor/images/stickers/emoticons/sick.svg +52 -0
- package/static/media/image-editor/images/stickers/emoticons/silent.svg +43 -0
- package/static/media/image-editor/images/stickers/emoticons/skeleton.svg +64 -0
- package/static/media/image-editor/images/stickers/emoticons/smile.svg +43 -0
- package/static/media/image-editor/images/stickers/emoticons/smiling-1.svg +47 -0
- package/static/media/image-editor/images/stickers/emoticons/smiling.svg +75 -0
- package/static/media/image-editor/images/stickers/emoticons/smoked.svg +131 -0
- package/static/media/image-editor/images/stickers/emoticons/smug-1.svg +74 -0
- package/static/media/image-editor/images/stickers/emoticons/smug-2.svg +82 -0
- package/static/media/image-editor/images/stickers/emoticons/smug-3.svg +71 -0
- package/static/media/image-editor/images/stickers/emoticons/smug-4.svg +50 -0
- package/static/media/image-editor/images/stickers/emoticons/smug-5.svg +64 -0
- package/static/media/image-editor/images/stickers/emoticons/smug-6.svg +82 -0
- package/static/media/image-editor/images/stickers/emoticons/smug.svg +96 -0
- package/static/media/image-editor/images/stickers/emoticons/sporty.svg +68 -0
- package/static/media/image-editor/images/stickers/emoticons/stunned.svg +72 -0
- package/static/media/image-editor/images/stickers/emoticons/superhero-1.svg +60 -0
- package/static/media/image-editor/images/stickers/emoticons/superhero-2.svg +47 -0
- package/static/media/image-editor/images/stickers/emoticons/superhero-3.svg +48 -0
- package/static/media/image-editor/images/stickers/emoticons/superhero-4.svg +52 -0
- package/static/media/image-editor/images/stickers/emoticons/superhero.svg +45 -0
- package/static/media/image-editor/images/stickers/emoticons/surprised-1.svg +47 -0
- package/static/media/image-editor/images/stickers/emoticons/surprised.svg +58 -0
- package/static/media/image-editor/images/stickers/emoticons/thinking.svg +43 -0
- package/static/media/image-editor/images/stickers/emoticons/tired-1.svg +78 -0
- package/static/media/image-editor/images/stickers/emoticons/tired-2.svg +65 -0
- package/static/media/image-editor/images/stickers/emoticons/tired-3.svg +59 -0
- package/static/media/image-editor/images/stickers/emoticons/tired.svg +83 -0
- package/static/media/image-editor/images/stickers/emoticons/tough-1.svg +65 -0
- package/static/media/image-editor/images/stickers/emoticons/tough.svg +158 -0
- package/static/media/image-editor/images/stickers/emoticons/trendy.svg +57 -0
- package/static/media/image-editor/images/stickers/emoticons/vampire-1.svg +56 -0
- package/static/media/image-editor/images/stickers/emoticons/vampire.svg +59 -0
- package/static/media/image-editor/images/stickers/emoticons/wink-1.svg +54 -0
- package/static/media/image-editor/images/stickers/emoticons/wink-2.svg +64 -0
- package/static/media/image-editor/images/stickers/emoticons/wink.svg +73 -0
- package/static/media/image-editor/images/stickers/emoticons/winking-1.svg +52 -0
- package/static/media/image-editor/images/stickers/emoticons/winking.svg +43 -0
- package/static/media/image-editor/images/stickers/emoticons/yawning-1.svg +62 -0
- package/static/media/image-editor/images/stickers/emoticons/yawning-2.svg +51 -0
- package/static/media/image-editor/images/stickers/emoticons/yawning-3.svg +51 -0
- package/static/media/image-editor/images/stickers/emoticons/yawning.svg +73 -0
- package/static/media/image-editor/images/stickers/emoticons/yelling.svg +80 -0
- package/static/media/image-editor/images/stickers/emoticons/zombie.svg +65 -0
- package/static/media/image-editor/images/stickers/landmarks/0.svg +38 -0
- package/static/media/image-editor/images/stickers/landmarks/1.svg +46 -0
- package/static/media/image-editor/images/stickers/landmarks/10.svg +18 -0
- package/static/media/image-editor/images/stickers/landmarks/11.svg +81 -0
- package/static/media/image-editor/images/stickers/landmarks/12.svg +77 -0
- package/static/media/image-editor/images/stickers/landmarks/13.svg +42 -0
- package/static/media/image-editor/images/stickers/landmarks/14.svg +78 -0
- package/static/media/image-editor/images/stickers/landmarks/15.svg +84 -0
- package/static/media/image-editor/images/stickers/landmarks/16.svg +87 -0
- package/static/media/image-editor/images/stickers/landmarks/17.svg +60 -0
- package/static/media/image-editor/images/stickers/landmarks/18.svg +30 -0
- package/static/media/image-editor/images/stickers/landmarks/19.svg +36 -0
- package/static/media/image-editor/images/stickers/landmarks/2.svg +28 -0
- package/static/media/image-editor/images/stickers/landmarks/20.svg +137 -0
- package/static/media/image-editor/images/stickers/landmarks/21.svg +63 -0
- package/static/media/image-editor/images/stickers/landmarks/22.svg +26 -0
- package/static/media/image-editor/images/stickers/landmarks/23.svg +52 -0
- package/static/media/image-editor/images/stickers/landmarks/24.svg +56 -0
- package/static/media/image-editor/images/stickers/landmarks/25.svg +40 -0
- package/static/media/image-editor/images/stickers/landmarks/26.svg +34 -0
- package/static/media/image-editor/images/stickers/landmarks/27.svg +32 -0
- package/static/media/image-editor/images/stickers/landmarks/28.svg +19 -0
- package/static/media/image-editor/images/stickers/landmarks/29.svg +23 -0
- package/static/media/image-editor/images/stickers/landmarks/3.svg +36 -0
- package/static/media/image-editor/images/stickers/landmarks/30.svg +36 -0
- package/static/media/image-editor/images/stickers/landmarks/31.svg +27 -0
- package/static/media/image-editor/images/stickers/landmarks/32.svg +25 -0
- package/static/media/image-editor/images/stickers/landmarks/33.svg +29 -0
- package/static/media/image-editor/images/stickers/landmarks/34.svg +72 -0
- package/static/media/image-editor/images/stickers/landmarks/35.svg +18 -0
- package/static/media/image-editor/images/stickers/landmarks/36.svg +45 -0
- package/static/media/image-editor/images/stickers/landmarks/37.svg +46 -0
- package/static/media/image-editor/images/stickers/landmarks/38.svg +44 -0
- package/static/media/image-editor/images/stickers/landmarks/39.svg +23 -0
- package/static/media/image-editor/images/stickers/landmarks/4.svg +33 -0
- package/static/media/image-editor/images/stickers/landmarks/40.svg +25 -0
- package/static/media/image-editor/images/stickers/landmarks/41.svg +69 -0
- package/static/media/image-editor/images/stickers/landmarks/42.svg +75 -0
- package/static/media/image-editor/images/stickers/landmarks/43.svg +44 -0
- package/static/media/image-editor/images/stickers/landmarks/44.svg +65 -0
- package/static/media/image-editor/images/stickers/landmarks/45.svg +19 -0
- package/static/media/image-editor/images/stickers/landmarks/46.svg +47 -0
- package/static/media/image-editor/images/stickers/landmarks/47.svg +544 -0
- package/static/media/image-editor/images/stickers/landmarks/48.svg +162 -0
- package/static/media/image-editor/images/stickers/landmarks/49.svg +70 -0
- package/static/media/image-editor/images/stickers/landmarks/5.svg +36 -0
- package/static/media/image-editor/images/stickers/landmarks/50.svg +52 -0
- package/static/media/image-editor/images/stickers/landmarks/51.svg +110 -0
- package/static/media/image-editor/images/stickers/landmarks/52.svg +41 -0
- package/static/media/image-editor/images/stickers/landmarks/53.svg +74 -0
- package/static/media/image-editor/images/stickers/landmarks/54.svg +36 -0
- package/static/media/image-editor/images/stickers/landmarks/55.svg +84 -0
- package/static/media/image-editor/images/stickers/landmarks/56.svg +93 -0
- package/static/media/image-editor/images/stickers/landmarks/57.svg +67 -0
- package/static/media/image-editor/images/stickers/landmarks/58.svg +101 -0
- package/static/media/image-editor/images/stickers/landmarks/59.svg +47 -0
- package/static/media/image-editor/images/stickers/landmarks/6.svg +59 -0
- package/static/media/image-editor/images/stickers/landmarks/60.svg +134 -0
- package/static/media/image-editor/images/stickers/landmarks/61.svg +79 -0
- package/static/media/image-editor/images/stickers/landmarks/62.svg +43 -0
- package/static/media/image-editor/images/stickers/landmarks/63.svg +83 -0
- package/static/media/image-editor/images/stickers/landmarks/64.svg +99 -0
- package/static/media/image-editor/images/stickers/landmarks/65.svg +79 -0
- package/static/media/image-editor/images/stickers/landmarks/66.svg +37 -0
- package/static/media/image-editor/images/stickers/landmarks/67.svg +82 -0
- package/static/media/image-editor/images/stickers/landmarks/68.svg +216 -0
- package/static/media/image-editor/images/stickers/landmarks/69.svg +17 -0
- package/static/media/image-editor/images/stickers/landmarks/7.svg +16 -0
- package/static/media/image-editor/images/stickers/landmarks/70.svg +45 -0
- package/static/media/image-editor/images/stickers/landmarks/71.svg +37 -0
- package/static/media/image-editor/images/stickers/landmarks/72.svg +28 -0
- package/static/media/image-editor/images/stickers/landmarks/73.svg +25 -0
- package/static/media/image-editor/images/stickers/landmarks/74.svg +23 -0
- package/static/media/image-editor/images/stickers/landmarks/75.svg +88 -0
- package/static/media/image-editor/images/stickers/landmarks/76.svg +25 -0
- package/static/media/image-editor/images/stickers/landmarks/77.svg +23 -0
- package/static/media/image-editor/images/stickers/landmarks/78.svg +63 -0
- package/static/media/image-editor/images/stickers/landmarks/79.svg +25 -0
- package/static/media/image-editor/images/stickers/landmarks/8.svg +52 -0
- package/static/media/image-editor/images/stickers/landmarks/80.svg +29 -0
- package/static/media/image-editor/images/stickers/landmarks/81.svg +44 -0
- package/static/media/image-editor/images/stickers/landmarks/82.svg +83 -0
- package/static/media/image-editor/images/stickers/landmarks/83.svg +65 -0
- package/static/media/image-editor/images/stickers/landmarks/84.svg +31 -0
- package/static/media/image-editor/images/stickers/landmarks/85.svg +30 -0
- package/static/media/image-editor/images/stickers/landmarks/86.svg +26 -0
- package/static/media/image-editor/images/stickers/landmarks/87.svg +132 -0
- package/static/media/image-editor/images/stickers/landmarks/88.svg +93 -0
- package/static/media/image-editor/images/stickers/landmarks/89.svg +91 -0
- package/static/media/image-editor/images/stickers/landmarks/9.svg +70 -0
- package/static/media/image-editor/images/stickers/landmarks/90.svg +65 -0
- package/static/media/image-editor/images/stickers/landmarks/91.svg +36 -0
- package/static/media/image-editor/images/stickers/landmarks/92.svg +66 -0
- package/static/media/image-editor/images/stickers/landmarks/93.svg +65 -0
- package/static/media/image-editor/images/stickers/landmarks/94.svg +28 -0
- package/static/media/image-editor/images/stickers/landmarks/95.svg +31 -0
- package/static/media/image-editor/images/stickers/landmarks/96.svg +25 -0
- package/static/media/image-editor/images/stickers/landmarks/97.svg +31 -0
- package/static/media/image-editor/images/stickers/landmarks/98.svg +52 -0
- package/static/media/image-editor/images/stickers/landmarks/99.svg +56 -0
- package/static/media/image-editor/images/stickers/stars/0.png +0 -0
- package/static/media/image-editor/images/stickers/stars/1.png +0 -0
- package/static/media/image-editor/images/stickers/stars/2.png +0 -0
- package/static/media/image-editor/images/stickers/stars/3.png +0 -0
- package/static/media/image-editor/images/stickers/stars/4.png +0 -0
- package/static/media/image-editor/images/stickers/stars/5.png +0 -0
- package/static/media/image-editor/images/stickers/transportation/0.svg +26 -0
- package/static/media/image-editor/images/stickers/transportation/1.svg +10 -0
- package/static/media/image-editor/images/stickers/transportation/10.svg +16 -0
- package/static/media/image-editor/images/stickers/transportation/11.svg +30 -0
- package/static/media/image-editor/images/stickers/transportation/12.svg +22 -0
- package/static/media/image-editor/images/stickers/transportation/13.svg +24 -0
- package/static/media/image-editor/images/stickers/transportation/14.svg +19 -0
- package/static/media/image-editor/images/stickers/transportation/15.svg +23 -0
- package/static/media/image-editor/images/stickers/transportation/16.svg +25 -0
- package/static/media/image-editor/images/stickers/transportation/17.svg +34 -0
- package/static/media/image-editor/images/stickers/transportation/18.svg +29 -0
- package/static/media/image-editor/images/stickers/transportation/19.svg +24 -0
- package/static/media/image-editor/images/stickers/transportation/2.svg +27 -0
- package/static/media/image-editor/images/stickers/transportation/20.svg +25 -0
- package/static/media/image-editor/images/stickers/transportation/21.svg +22 -0
- package/static/media/image-editor/images/stickers/transportation/3.svg +18 -0
- package/static/media/image-editor/images/stickers/transportation/4.svg +24 -0
- package/static/media/image-editor/images/stickers/transportation/5.svg +15 -0
- package/static/media/image-editor/images/stickers/transportation/6.svg +25 -0
- package/static/media/image-editor/images/stickers/transportation/7.svg +17 -0
- package/static/media/image-editor/images/stickers/transportation/8.svg +28 -0
- package/static/media/image-editor/images/stickers/transportation/9.svg +23 -0
- package/static/media/image-editor/images/textures/0.png +0 -0
- package/static/media/image-editor/images/textures/1.png +0 -0
- package/static/media/image-editor/images/textures/10.png +0 -0
- package/static/media/image-editor/images/textures/11.png +0 -0
- package/static/media/image-editor/images/textures/12.png +0 -0
- package/static/media/image-editor/images/textures/13.png +0 -0
- package/static/media/image-editor/images/textures/14.png +0 -0
- package/static/media/image-editor/images/textures/15.png +0 -0
- package/static/media/image-editor/images/textures/16.png +0 -0
- package/static/media/image-editor/images/textures/17.png +0 -0
- package/static/media/image-editor/images/textures/18.png +0 -0
- package/static/media/image-editor/images/textures/19.png +0 -0
- package/static/media/image-editor/images/textures/2.png +0 -0
- package/static/media/image-editor/images/textures/20.png +0 -0
- package/static/media/image-editor/images/textures/21.png +0 -0
- package/static/media/image-editor/images/textures/22.png +0 -0
- package/static/media/image-editor/images/textures/23.png +0 -0
- package/static/media/image-editor/images/textures/24.png +0 -0
- package/static/media/image-editor/images/textures/25.png +0 -0
- package/static/media/image-editor/images/textures/26.png +0 -0
- package/static/media/image-editor/images/textures/27.png +0 -0
- package/static/media/image-editor/images/textures/28.png +0 -0
- package/static/media/image-editor/images/textures/3.png +0 -0
- package/static/media/image-editor/images/textures/4.png +0 -0
- package/static/media/image-editor/images/textures/5.png +0 -0
- package/static/media/image-editor/images/textures/6.png +0 -0
- package/static/media/image-editor/images/textures/7.png +0 -0
- package/static/media/image-editor/images/textures/8.png +0 -0
- package/static/media/image-editor/images/textures/9.png +0 -0
- package/useblocks-esm.js +1 -1
- package/useblocks.d.ts +323 -132
- package/useblocks.js +1 -1
- package/vite/index.d.ts +2 -3
- package/vite/index.js +35 -36
- package/vite/mime-types.js +177 -177
- package/vite/utils.js +28 -34
- package/webpack/index.d.ts +3 -3
- package/webpack/index.js +43 -30
- package/android-chrome-192x192.png +0 -0
- package/android-chrome-512x512.png +0 -0
- package/apple-touch-icon-b.png +0 -0
- package/apple-touch-icon.png +0 -0
- package/favicon-16x16.png +0 -0
- package/favicon-32x32.png +0 -0
- package/icon-192.png +0 -0
- package/icon-512.png +0 -0
- package/icon.svg +0 -2
- package/iframe/iframe-eblock.6c850bc11cabad0b571f.html +0 -1
- package/iframe/iframe.6c850bc11cabad0b571f.html +0 -1
- package/iframe/js/330.cc568d8d.js +0 -1
- package/manifest-b.json +0 -16
- package/plugin.html +0 -294
- package/plugin_blocks_test.html +0 -144
- package/plugin_default.html +0 -56
- package/plugin_idigital.html +0 -254
- package/plugin_nota.html +0 -861
- package/plugin_s.html +0 -31
- package/robots.txt +0 -3
- package/static/css/57.c4280089.chunk.css +0 -1
- package/static/css/6798.4b23f0cb.chunk.css +0 -1
- package/static/js/1538.68b12a82.chunk.js +0 -2
- package/static/js/251.265981e1.js +0 -2
- package/static/js/3017.3a202a56.chunk.js +0 -1
- package/static/js/3554.28f2b7dd.js +0 -2
- package/static/js/3595.5d3d29a5.js +0 -2
- package/static/js/57.2a8fdc70.chunk.js +0 -1
- package/static/js/6501.eae0b964.chunk.js +0 -1
- package/static/js/6798.5d7d1e5f.chunk.js +0 -2
- package/static/js/6819.16ca9581.chunk.js +0 -2
- package/static/js/8090.37ef8847.js +0 -2
- package/static/js/84.b9fbf4db.chunk.js +0 -1
- package/static/js/8473.88a48c70.chunk.js +0 -2
- package/static/js/9950.70868fc5.js +0 -1
- package/static/js/ant-locale/locale-ar_EG-js.a068e3a8.chunk.js +0 -1
- package/static/js/ant-locale/locale-az_AZ-js.b84a560f.chunk.js +0 -1
- package/static/js/ant-locale/locale-bg_BG-js.3d7c7e4f.chunk.js +0 -1
- package/static/js/ant-locale/locale-bn_BD-js.dd1a7e84.chunk.js +0 -1
- package/static/js/ant-locale/locale-by_BY-js.49b7fc6b.chunk.js +0 -1
- package/static/js/ant-locale/locale-ca_ES-js.24fe4aef.chunk.js +0 -1
- package/static/js/ant-locale/locale-cs_CZ-js.1e90fb24.chunk.js +0 -1
- package/static/js/ant-locale/locale-da_DK-js.61788209.chunk.js +0 -1
- package/static/js/ant-locale/locale-de_DE-js.8e7fdd44.chunk.js +0 -1
- package/static/js/ant-locale/locale-el_GR-js.6c5e0839.chunk.js +0 -1
- package/static/js/ant-locale/locale-en_GB-js.92cc4647.chunk.js +0 -1
- package/static/js/ant-locale/locale-es_ES-js.a31d70e0.chunk.js +0 -1
- package/static/js/ant-locale/locale-et_EE-js.337814a0.chunk.js +0 -1
- package/static/js/ant-locale/locale-eu_ES-js.18f1c965.chunk.js +0 -1
- package/static/js/ant-locale/locale-fa_IR-js.f0f50266.chunk.js +0 -1
- package/static/js/ant-locale/locale-fi_FI-js.e2e08d8a.chunk.js +0 -1
- package/static/js/ant-locale/locale-fr_BE-js.2e2298ab.chunk.js +0 -1
- package/static/js/ant-locale/locale-fr_CA-js.b2f59d9c.chunk.js +0 -1
- package/static/js/ant-locale/locale-fr_FR-js.5d07a79a.chunk.js +0 -1
- package/static/js/ant-locale/locale-ga_IE-js.afa510f9.chunk.js +0 -1
- package/static/js/ant-locale/locale-gl_ES-js.72e19ffc.chunk.js +0 -1
- package/static/js/ant-locale/locale-he_IL-js.47b71730.chunk.js +0 -1
- package/static/js/ant-locale/locale-hi_IN-js.7af15f51.chunk.js +0 -1
- package/static/js/ant-locale/locale-hr_HR-js.4ebb11e0.chunk.js +0 -1
- package/static/js/ant-locale/locale-hu_HU-js.ecde5d7e.chunk.js +0 -1
- package/static/js/ant-locale/locale-hy_AM-js.15e07ba1.chunk.js +0 -1
- package/static/js/ant-locale/locale-id_ID-js.ab0888b9.chunk.js +0 -1
- package/static/js/ant-locale/locale-is_IS-js.fdbfc750.chunk.js +0 -1
- package/static/js/ant-locale/locale-it_IT-js.59a531ef.chunk.js +0 -1
- package/static/js/ant-locale/locale-ja_JP-js.7870613a.chunk.js +0 -1
- package/static/js/ant-locale/locale-ka_GE-js.853f3af0.chunk.js +0 -1
- package/static/js/ant-locale/locale-kk_KZ-js.5fdcc75b.chunk.js +0 -1
- package/static/js/ant-locale/locale-km_KH-js.988792d2.chunk.js +0 -1
- package/static/js/ant-locale/locale-kn_IN-js.5fbd9645.chunk.js +0 -1
- package/static/js/ant-locale/locale-ko_KR-js.07676057.chunk.js +0 -1
- package/static/js/ant-locale/locale-ku_IQ-js.8d56188e.chunk.js +0 -1
- package/static/js/ant-locale/locale-lt_LT-js.976c50a6.chunk.js +0 -1
- package/static/js/ant-locale/locale-lv_LV-js.d2b7eb7a.chunk.js +0 -1
- package/static/js/ant-locale/locale-mk_MK-js.1a324243.chunk.js +0 -1
- package/static/js/ant-locale/locale-ml_IN-js.9ca0875e.chunk.js +0 -1
- package/static/js/ant-locale/locale-mn_MN-js.e5c5e6b3.chunk.js +0 -1
- package/static/js/ant-locale/locale-ms_MY-js.68d51cfa.chunk.js +0 -1
- package/static/js/ant-locale/locale-my_MM-js.1d798fbf.chunk.js +0 -1
- package/static/js/ant-locale/locale-nb_NO-js.85b15451.chunk.js +0 -1
- package/static/js/ant-locale/locale-ne_NP-js.db143616.chunk.js +0 -1
- package/static/js/ant-locale/locale-nl_BE-js.71247744.chunk.js +0 -1
- package/static/js/ant-locale/locale-nl_NL-js.26845b27.chunk.js +0 -1
- package/static/js/ant-locale/locale-pl_PL-js.44a62852.chunk.js +0 -1
- package/static/js/ant-locale/locale-pt_BR-js.17328a86.chunk.js +0 -1
- package/static/js/ant-locale/locale-pt_PT-js.05d4d804.chunk.js +0 -1
- package/static/js/ant-locale/locale-ro_RO-js.3e1e40bb.chunk.js +0 -1
- package/static/js/ant-locale/locale-ru_RU-js.d1216154.chunk.js +0 -1
- package/static/js/ant-locale/locale-si_LK-js.facbc144.chunk.js +0 -1
- package/static/js/ant-locale/locale-sk_SK-js.32bd8996.chunk.js +0 -1
- package/static/js/ant-locale/locale-sl_SI-js.f054d794.chunk.js +0 -1
- package/static/js/ant-locale/locale-sr_RS-js.317370b5.chunk.js +0 -1
- package/static/js/ant-locale/locale-sv_SE-js.ecd8298d.chunk.js +0 -1
- package/static/js/ant-locale/locale-ta_IN-js.ee264565.chunk.js +0 -1
- package/static/js/ant-locale/locale-th_TH-js.f1d32c8f.chunk.js +0 -1
- package/static/js/ant-locale/locale-tk_TK-js.015ee01f.chunk.js +0 -1
- package/static/js/ant-locale/locale-tr_TR-js.4c6d775a.chunk.js +0 -1
- package/static/js/ant-locale/locale-uk_UA-js.cef1c751.chunk.js +0 -1
- package/static/js/ant-locale/locale-ur_PK-js.b5d52218.chunk.js +0 -1
- package/static/js/ant-locale/locale-vi_VN-js.c5140ea5.chunk.js +0 -1
- package/static/js/ant-locale/locale-zh_CN-js.861c7ef0.chunk.js +0 -1
- package/static/js/ant-locale/locale-zh_HK-js.ca14eb1f.chunk.js +0 -1
- package/static/js/ant-locale/locale-zh_TW-js.69bb4746.chunk.js +0 -1
- package/static/js/mergeTags/locale0.24c6e2da.chunk.js +0 -1
- package/static/js/mergeTags/locale1.24fd0fd2.chunk.js +0 -1
- package/static/js/useblocks_core.dae94c9f.js +0 -2
- package/translations.pot +0 -4923
- /package/static/js/{1169.858b5ac7.chunk.js.LICENSE.txt → 1169.ac36c90b.js.LICENSE.txt} +0 -0
- /package/static/js/{1538.68b12a82.chunk.js.LICENSE.txt → 1538.04863579.js.LICENSE.txt} +0 -0
- /package/static/js/{1729.a0be903e.chunk.js → 1729.a0be903e.js} +0 -0
- /package/static/js/{1880.5668de7d.chunk.js → 1880.5668de7d.js} +0 -0
- /package/static/js/{2642.b60a63f6.chunk.js → 2642.b60a63f6.js} +0 -0
- /package/static/js/{3019.8534e1e7.chunk.js.LICENSE.txt → 3019.b5f316a5.js.LICENSE.txt} +0 -0
- /package/static/js/{3085.bcc62ca0.chunk.js.LICENSE.txt → 3085.0ddbb320.js.LICENSE.txt} +0 -0
- /package/static/js/{3554.28f2b7dd.js.LICENSE.txt → 3554.771c4212.js.LICENSE.txt} +0 -0
- /package/static/js/{251.265981e1.js.LICENSE.txt → 3582.c0c7fbf5.js.LICENSE.txt} +0 -0
- /package/static/js/{4309.6c1989bb.chunk.js → 4309.6c1989bb.js} +0 -0
- /package/static/js/{6144.a3bf0881.chunk.js.LICENSE.txt → 6144.5d2c141c.js.LICENSE.txt} +0 -0
- /package/static/js/{6801.61475a49.chunk.js.LICENSE.txt → 6801.1ec5fd97.js.LICENSE.txt} +0 -0
- /package/static/js/{6819.16ca9581.chunk.js.LICENSE.txt → 6819.3e90e2de.js.LICENSE.txt} +0 -0
- /package/static/js/{6957.7ea22637.chunk.js → 6957.7ea22637.js} +0 -0
- /package/static/js/{7463.51929d73.chunk.js.LICENSE.txt → 7463.45a04221.js.LICENSE.txt} +0 -0
- /package/static/js/{7995.417293e5.js.LICENSE.txt → 7995.f6fcba7b.js.LICENSE.txt} +0 -0
- /package/static/js/{8521.0e5efd08.chunk.js.LICENSE.txt → 8521.e891fa18.js.LICENSE.txt} +0 -0
- /package/static/js/{9644.eb778968.chunk.js.LICENSE.txt → 9644.c8707a98.js.LICENSE.txt} +0 -0
- /package/static/js/{9960.6fbe3e6d.chunk.js.LICENSE.txt → 9960.3ac0c626.js.LICENSE.txt} +0 -0
- /package/static/js/{useblocks_core.dae94c9f.js.LICENSE.txt → useblocks_core.fd7b9a50.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[57],{10653:(e,t,i)=>{i.r(t),i.d(t,{default:()=>$});var r=i(98173),s=i(2604),n=i(30150),o=i(40120),a=i(48753),l=i(98447),d=i(38826),h=i(871),c=i(47014),u=i(23424),v=i(80772),f=i(84572),m=i(48956),p=i(27941),I=i(5558),y=i(90614),g=i(73180);let w;var _;(_=w||(w={})).isEqual=function(e,t,i=(e,t)=>e===t){if(e===t)return!0;const r=e.length;if(r!==t.length)return!1;for(let s=0;s<r;s++)if(!i(e[s],t[s]))return!1;return!0},_.unique=function(e,t){t||(t=e=>e);const i=new Set;return e.filter(e=>{const r=t(e),s=!i.has(r);return i.add(r),s})};var F=i(12543),P=i(15626),C=i(51213);function E(e){return null==e||""===e?"":e}function S(e){if(null==e)return 1/0;const t=Number(e);return Number.isFinite(t)&&t>=0?t:1/0}function b(e){if(!e)return null;const t=e.folderId;return null==t?null:String(t)}function A(e){return!!e&&e.isFolder}function O(){var e;if("function"===typeof(null===globalThis||void 0===globalThis||null===(e=globalThis.crypto)||void 0===e?void 0:e.randomUUID))return globalThis.crypto.randomUUID();try{const e=globalThis.crypto||globalThis.msCrypto;if(e&&"function"===typeof e.getRandomValues){const t=new Uint8Array(16);e.getRandomValues(t);let i="";for(let e=0;e<t.length;e++)i+=t[e].toString(16).padStart(2,"0");return`id_${i}`}}catch{}return`id_fallback_${Date.now().toString(36)}_${Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(36).slice(0,8)}`}function T(e){const t=new WeakSet;try{return function e(i){if(null===i)return"null";if("boolean"===typeof i)return i?"true":"false";if("number"===typeof i)return Number.isNaN(i)?"NaN":i===1/0?"Infinity":i===-1/0?"-Infinity":Object.is(i,-0)?"-0":String(i);if("string"===typeof i)return JSON.stringify(i);if("undefined"===typeof i)return"undefined";if("symbol"===typeof i)return String(i.toString());if("function"===typeof i)return'"[function]"';if(i instanceof Date)return`"Date(${i.toISOString()})"`;if(i instanceof RegExp)return`"RegExp(${i.toString()})"`;if("object"===typeof i)return t.has(i)?'"[Circular]"':(t.add(i),i instanceof Map?`{Map:${Array.from(i.entries()).sort(([e],[t])=>T(e).localeCompare(T(t))).map(([t,i])=>`[${e(t)}:${e(i)}]`).join(",")}}`:i instanceof Set?`{Set:[${Array.from(i.values()).map(t=>e(t)).sort().join(",")}]}`:Array.isArray(i)?`[${i.map(t=>e(t)).join(",")}]`:`{${Object.entries(i).sort(([e],[t])=>e.localeCompare(t)).map(([t,i])=>`${JSON.stringify(t)}:${e(i)}`).join(",")}}`);return JSON.stringify(String(i))}(e)}catch(i){try{return JSON.stringify(e)}catch{return String(e)}}}class M{constructor(){this.entities=new Map,this.childrenByParent=new Map}now(){return Date.now()}getEntity(e){var t;return null===(t=this.entities.get(e))||void 0===t?void 0:t.value}getRecord(e){return this.entities.get(e)}getFileSystemItem(e){const t=this.getEntity(e);return t&&!A(t)?t:void 0}getFolder(e){const t=this.getEntity(e);return t&&A(t)?t:void 0}getChildrenIds(e,t={}){const i=E(e),r=this.childrenByParent.get(i);return r?t.onlyFileSystemItems?Array.from(r.files):t.onlyFolders?Array.from(r.folders):[...Array.from(r.folders),...Array.from(r.files)]:[]}upsertEntity(e){var t;const i=null!==(t=this.entities.get(e.id))&&void 0!==t?t:null,r=i?i.value:null,s=r?b(r):null,n=b(e),o=!!r&&A(r),a=A(e);let l;if(r&&A(r)&&a){const t=r.childrenCount,i=e.childrenCount;void 0!==t&&void 0===i&&(l=t)}if(r&&(s!==n||o!==a)){const t=E(s),i=this.childrenByParent.get(t);i&&(o?i.folders.delete(e.id):i.files.delete(e.id),0===i.files.size&&0===i.folders.size&&this.childrenByParent.delete(t))}let d=e;void 0!==l&&(d={...e,childrenCount:l}),this.entities.set(e.id,{value:{...d},updatedAt:this.now()});const h=E(n);let c=this.childrenByParent.get(h);c||(c={files:new Set,folders:new Set},this.childrenByParent.set(h,c)),a?c.folders.add(e.id):c.files.add(e.id)}updateServerChildrenCount(e,t){if(null==e||null==t||Number.isNaN(t))return;const i=this.entities.get(e);if(!i||!A(i.value))return;const r={...i.value,childrenCount:t};this.entities.set(e,{value:r,updatedAt:this.now()})}deleteEntityById(e){var t;const i=null!==(t=this.entities.get(e))&&void 0!==t?t:null;if(!i)return{entity:null,parentId:null};const r=i.value,s=b(r),n=E(s),o=this.childrenByParent.get(n);return o&&(A(r)?o.folders.delete(e):o.files.delete(e),0===o.files.size&&0===o.folders.size&&this.childrenByParent.delete(n)),this.entities.delete(e),{entity:{...r},parentId:s}}deleteFolderRecursive(e){const t=this.entities.get(e);if(!t||!A(t.value))return{deletedFolderRecords:[],deletedFileSystemItemRecords:[]};const i=[{id:e,parentId:b(t.value)}],r=[],s=[];for(;i.length;){const e=i.shift();r.push(e);const t=this.childrenByParent.get(E(e.id));if(t){for(const e of Array.from(t.folders)){const t=this.entities.get(e);t&&i.push({id:e,parentId:b(t.value)})}for(const e of Array.from(t.files))s.push(e)}}const n=[];for(const a of s){const e=this.entities.get(a);if(!e)continue;const t=e.value,i=E(b(t)),r=this.childrenByParent.get(i);r&&(r.files.delete(a),0===r.files.size&&0===r.folders.size&&this.childrenByParent.delete(i)),this.entities.delete(a),n.push({...t})}const o=[];for(let a=r.length-1;a>=0;a--){const{id:e,parentId:t}=r[a],i=this.entities.get(e);if(!i)continue;const s=i.value,n=E(s.id);this.childrenByParent.delete(n);const l=E(t),d=this.childrenByParent.get(l);d&&(d.folders.delete(e),0===d.files.size&&0===d.folders.size&&this.childrenByParent.delete(l)),this.entities.delete(e),o.push({...s})}return{deletedFolderRecords:o,deletedFileSystemItemRecords:n}}moveEntityById(e,t){var i;const r=null!==(i=this.entities.get(e))&&void 0!==i?i:null;if(!r)return null;const s=r.value,n=E(b(s)),o=this.childrenByParent.get(n);o&&(A(s)?o.folders.delete(e):o.files.delete(e),0===o.files.size&&0===o.folders.size&&this.childrenByParent.delete(n));const a={...s,folderId:t};if(A(s)&&A(a)){const e=s.childrenCount;void 0!==e&&(a.childrenCount=e)}this.entities.set(e,{value:a,updatedAt:this.now()});const l=E(t);let d=this.childrenByParent.get(l);return d||(d={files:new Set,folders:new Set},this.childrenByParent.set(l,d)),A(a)?d.folders.add(e):d.files.add(e),{...a}}copyFileSystemItem(e,t,i){var r;const s=null!==(r=this.entities.get(e))&&void 0!==r?r:null;if(!s||A(s.value))return null;const n={...s.value,id:t,folderId:i};return this.upsertEntity(n),{...n}}copyFolderShallow(e,t,i){var r;const s=null!==(r=this.entities.get(e))&&void 0!==r?r:null;if(!s||!A(s.value))return null;const n={...s.value,id:t,folderId:i};return this.upsertEntity(n),{...n}}isEntityStale(e,t){var i;const r=null!==(i=this.entities.get(e))&&void 0!==i?i:null;return!r||t!==1/0&&this.now()-r.updatedAt>t}touch(e,t){const i=this.entities.get(e);i&&(i.updatedAt=null!==t&&void 0!==t?t:this.now())}getEntitiesByIds(e){return e.map(e=>{var t,i;return null!==(t=null===(i=this.entities.get(e))||void 0===i?void 0:i.value)&&void 0!==t?t:null})}toJSON(){return{entities:Array.from(this.entities.entries()),childrenByParent:Array.from(this.childrenByParent.entries()).map(([e,t])=>[e,{files:Array.from(t.files),folders:Array.from(t.folders)}])}}static fromJSON(e){const t=new M;for(const[s,n]of null!==(i=e.entities)&&void 0!==i?i:[]){var i;t.entities.set(s,{value:n.value,updatedAt:n.updatedAt})}for(const[s,n]of null!==(r=e.childrenByParent)&&void 0!==r?r:[]){var r;t.childrenByParent.set(s,{files:new Set(n.files),folders:new Set(n.folders)})}return t}}class D{constructor(e={},t=3e5,i=3e4,r){var s,n,o;this.views=new Map,this.strategy=void 0,this.ttl=void 0,this.errorTtl=void 0,this.entityTtl=void 0,this.strategy={allowSortedInsert:null===(s=e.allowSortedInsert)||void 0===s||s,allowSearchInsert:null===(n=e.allowSearchInsert)||void 0===n||n,invalidateOnPaginationFull:null===(o=e.invalidateOnPaginationFull)||void 0===o||o,comparator:e.comparator,filterMatch:e.filterMatch},this.ttl=t,this.errorTtl=i,this.entityTtl=null!==r&&void 0!==r?r:t}now(){return Date.now()}parentKey(e){return E(null!==e&&void 0!==e?e:null)}isExpired(e){return null==e||this.ttl!==1/0&&this.now()-e>this.ttl}isErrorExpired(e){return null==e||this.errorTtl!==1/0&&this.now()-e>this.errorTtl}areEntitiesStale(e,t){if(!e)return!0;for(const i of e)if(t.isEntityStale(i,this.entityTtl))return!0;return!1}isEntityTypeCompatible(e,t){return!t||"all"===t||("file"===t&&!A(e)||!("folder"!==t||!A(e)))}async getOrCreateChildren(e,t,i,r){var s;const n=this.parentKey(e),o=T(null!==t&&void 0!==t?t:{});let a=this.views.get(n);a||(a=new Map,this.views.set(n,a));let l=a.get(o);if(!l){l={params:t,view:{promise:null,value:void 0,meta:void 0,error:void 0,updatedAt:0}},a.set(o,l)}if(l.view.error&&!this.isErrorExpired(l.view.updatedAt))throw l.view.error;if(l.view.value&&!this.isExpired(l.view.updatedAt)&&!this.areEntitiesStale(l.view.value,r)&&(null===(s=l.view.meta)||void 0===s||!s.stale)){var d;return{items:l.view.value.map(e=>r.getEntity(e)).filter(Boolean),...null!==(d=l.view.meta)&&void 0!==d?d:{}}}if(l.view.promise)return l.view.promise;const h=(async()=>{try{const s=await i(e,t);for(const e of s.items)r.upsertEntity(e);l.view.value=s.items.map(e=>e.id);const{items:n,...o}=s,a={...o};return"number"!==typeof a.total&&(a.total=a.total),l.view.meta=a,l.view.meta.stale=!1,l.view.error=null,l.view.updatedAt=this.now(),"number"===typeof a.total&&r.updateServerChildrenCount(e,a.total),s}catch(s){throw l.view.error=s,l.view.value=void 0,l.view.updatedAt=this.now(),s}finally{l.view.promise=null}})();return l.view.promise=h,h}tryInsertSorted(e,t,i){const r=this.strategy.comparator;if(!r)return!1;if(!e.view.value)return!1;const s=e.view.value.map(e=>i.getEntity(e));if(s.some(e=>!e))return!1;let n=0,o=s.length;for(;n<o;){const i=Math.floor((n+o)/2),a=r(t,s[i],e.params);if("number"!==typeof a||Number.isNaN(a))return!1;a>=0?n=i+1:o=i}return e.view.value.includes(t.id)?(e.view.updatedAt=this.now(),!0):(e.view.value=[...e.view.value.slice(0,n),t.id,...e.view.value.slice(n)],e.view.updatedAt=this.now(),e.view.meta&&"number"===typeof e.view.meta.total&&(e.view.meta.total=Number(e.view.meta.total)+1),!0)}updateChildrenCountForOperation(e,t,i,r){const s=b(t);switch(e){case"delete":this.adjustChildrenCount(r,s,-1);break;case"insert":case"copy":this.adjustChildrenCount(r,s,1);break;case"move":this.adjustChildrenCount(r,i,-1),this.adjustChildrenCount(r,s,1)}}adjustChildrenCount(e,t,i){if(!t)return;const r=e.getFolder(t);if(r&&"number"===typeof r.childrenCount){const s=Math.max(0,r.childrenCount+i);e.updateServerChildrenCount(t,s)}}smartInvalidateChildrenViews(e,t,i,r,s,n){if(!t)return;r&&this.updateChildrenCountForOperation(i,t,s,r);const o=this.parentKey(e),a=this.views.get(o);if(a)for(const[,f]of a){var l,d;const e=null!==(l=f.params)&&void 0!==l?l:{},n=null!==(d=null===e||void 0===e?void 0:e.page)&&void 0!==d?d:1,a=S(null===e||void 0===e?void 0:e.pageSize),m=Number.isFinite(a),p=!!(null!==e&&void 0!==e&&e.sortBy||null!==e&&void 0!==e&&e.sortOrder),I=!(null===e||void 0===e||!e.search),y=(null===e||void 0===e?void 0:e.itemType)||"all";if(!this.isEntityTypeCompatible(t,y))continue;if(I&&this.strategy.filterMatch&&!this.strategy.filterMatch(t,f.params)){var h;null!==(h=f.view.value)&&void 0!==h&&h.includes(t.id)&&(f.view.value=f.view.value.filter(e=>e!==t.id),f.view.meta&&"number"===typeof f.view.meta.total&&(f.view.meta.total=Math.max(0,f.view.meta.total-1)),f.view.updatedAt=Date.now());continue}if(!f.view.value){f.view.meta&&(f.view.meta.stale=!0);continue}const g=f.view.value.includes(t.id);var c;if(this.shouldInvalidateCompletely(f,i,t,p,m,n))f.view.meta={...null!==(c=f.view.meta)&&void 0!==c?c:{},stale:!0};else switch(i){case"delete":g&&(f.view.value=f.view.value.filter(e=>e!==t.id),f.view.meta&&"number"===typeof f.view.meta.total&&(f.view.meta.total=Math.max(0,f.view.meta.total-1)),f.view.updatedAt=Date.now());break;case"insert":case"copy":if(!g)if(p&&this.strategy.allowSortedInsert&&this.strategy.comparator&&r){this.tryInsertSorted(f,t,r)&&f.view.meta&&"number"===typeof f.view.meta.total&&(f.view.meta.total+=1)}else if(!m||f.view.value.length<a)f.view.value.push(t.id),f.view.meta&&"number"===typeof f.view.meta.total&&(f.view.meta.total+=1),f.view.updatedAt=Date.now();else{var u;f.view.meta={...null!==(u=f.view.meta)&&void 0!==u?u:{},stale:!0}}break;case"update":if(g){if(p||I){f.view.value=f.view.value.filter(e=>e!==t.id);this.tryReinsertEntity(f,t,r,m,a)||f.view.meta&&"number"===typeof f.view.meta.total&&(f.view.meta.total=Math.max(0,f.view.meta.total-1))}f.view.updatedAt=Date.now()}break;case"move":const e=o===this.parentKey(s),i=o===this.parentKey(t.folderId);if(e&&g&&(f.view.value=f.view.value.filter(e=>e!==t.id),f.view.meta&&"number"===typeof f.view.meta.total&&(f.view.meta.total=Math.max(0,f.view.meta.total-1)),f.view.updatedAt=Date.now()),i&&!g)if(p&&this.strategy.allowSortedInsert&&this.strategy.comparator&&r){this.tryInsertSorted(f,t,r)&&f.view.meta&&"number"===typeof f.view.meta.total&&(f.view.meta.total+=1)}else if(!m||f.view.value.length<a)f.view.value.push(t.id),f.view.meta&&"number"===typeof f.view.meta.total&&(f.view.meta.total+=1),f.view.updatedAt=Date.now();else{var v;f.view.meta={...null!==(v=f.view.meta)&&void 0!==v?v:{},stale:!0}}}}}shouldInvalidateCompletely(e,t,i,r,s,n){return!(!(s&&n>1)||"insert"!==t&&"delete"!==t&&"move"!==t)||(!(!r||this.strategy.comparator||"insert"!==t&&"move"!==t)||!!this.isExpired(e.view.updatedAt))}tryReinsertEntity(e,t,i,r,s){if(this.strategy.comparator&&this.strategy.filterMatch){if(!this.strategy.filterMatch(t,e.params))return!1;if(this.tryInsertSorted(e,t,i))return!0}return(!r||e.view.value.length<s)&&(e.view.value.push(t.id),!0)}forceInvalidateChildrenViews(e){const t=this.parentKey(null!==e&&void 0!==e?e:null),i=this.views.get(t);if(i)for(const[,r]of i)r.view.value=void 0,r.view.error=null,r.view.meta=void 0,r.view.promise=null,r.view.updatedAt=0}getKnownTotal(e){const t=this.parentKey(null!==e&&void 0!==e?e:null),i=this.views.get(t);if(!i)return;let r=null;for(const[,o]of i){const e=o.view.meta;var s,n;if(e&&"number"===typeof e.total)if(!r||(null!==(s=o.view.updatedAt)&&void 0!==s?s:0)>r.updatedAt)r={total:Number(e.total),updatedAt:null!==(n=o.view.updatedAt)&&void 0!==n?n:0}}return r?r.total:void 0}toJSON(){return{views:Array.from(this.views.entries()).map(([e,t])=>[e,Array.from(t.entries())]),ttl:this.ttl,errorTtl:this.errorTtl,entityTtl:this.entityTtl,strategy:{allowSortedInsert:this.strategy.allowSortedInsert,allowSearchInsert:this.strategy.allowSearchInsert,invalidateOnPaginationFull:this.strategy.invalidateOnPaginationFull}}}static fromJSON(e,t){var i,r,s;const n=new D(null!==t&&void 0!==t?t:{},null!==(i=null===e||void 0===e?void 0:e.ttl)&&void 0!==i?i:3e5,null!==(r=null===e||void 0===e?void 0:e.errorTtl)&&void 0!==r?r:3e4,null!==(s=null===e||void 0===e?void 0:e.entityTtl)&&void 0!==s?s:void 0);for(const[v,f]of null!==(o=null===e||void 0===e?void 0:e.views)&&void 0!==o?o:[]){var o;const e=new Map;for(const[t,i]of f){var a,l,d,h,c,u;const r=null!==(a=i.params)&&void 0!==a?a:{},s=null!==(l=i.view)&&void 0!==l?l:{},n={promise:null,value:null!==(d=s.value)&&void 0!==d?d:void 0,meta:null!==(h=s.meta)&&void 0!==h?h:void 0,error:null!==(c=s.error)&&void 0!==c?c:null,updatedAt:null!==(u=s.updatedAt)&&void 0!==u?u:0};e.set(t,{params:r,view:n})}n.views.set(v,e)}return n}}class U{constructor(e={},t=3e5,i=3e4){this.entities=void 0,this.views=void 0,this.ttl=void 0,this.errorTtl=void 0,this.childrenCountPromises=new Map,this.ttl=t,this.errorTtl=i,this.entities=new M,this.views=new D(e,t,i)}getEntity(e){var t;return null!==(t=this.entities.getEntity(e))&&void 0!==t?t:null}getFileSystemItem(e){var t;return null!==(t=this.entities.getFileSystemItem(e))&&void 0!==t?t:null}getFolder(e){var t;return null!==(t=this.entities.getFolder(e))&&void 0!==t?t:null}async getOrCreateChildren(e,t,i){return this.views.getOrCreateChildren(e,t,i,this.entities)}upsertEntity(e){const t=this.entities.getEntity(e.id),i=t?b(t):null,r=b(e),s=!!t&&A(t),n=A(e);if(this.entities.upsertEntity(e),t){if(i!==r||s!==n)return this.views.smartInvalidateChildrenViews(i,t,"delete",this.entities),void this.views.smartInvalidateChildrenViews(r,e,"insert",this.entities);this.views.smartInvalidateChildrenViews(r,e,"update",this.entities,void 0,t)}else this.views.smartInvalidateChildrenViews(r,e,"insert",this.entities)}isAncestor(e,t){let i=t;const r=new Set;for(;i&&!r.has(i);){r.add(i);if(E(i)===E(e))return!0;const t=this.entities.getEntity(i);if(!t)break;i=b(t),null===i&&(i="")}return!1}moveEntity(e,t){const i=this.entities.getEntity(e);if(!i)return null;if(A(i)&&null!==t&&this.isAncestor(e,t))return null;const r=b(i),s=this.entities.moveEntityById(e,t);return s?(this.views.smartInvalidateChildrenViews(r,i,"delete",this.entities),this.views.smartInvalidateChildrenViews(t,s,"insert",this.entities),s):null}copyEntity(e,t,i){var r;const s=this.entities.getEntity(e);if(!s)return null;if(!A(s)){const r=null!==i&&void 0!==i?i:O(),s=this.entities.copyFileSystemItem(e,r,null!==t&&void 0!==t?t:null);return s?(this.views.smartInvalidateChildrenViews(t,s,"copy",this.entities),s):null}const n=[e],o=[];for(;n.length;){const e=n.shift();o.push(e);const t=this.entities.getChildrenIds(e,{onlyFolders:!0});for(const i of t)n.push(i)}const a=new Map;for(const c of o)a.set(c,O());const l={...s,id:a.get(e),folderId:t};this.views.smartInvalidateChildrenViews(t,l,"copy",this.entities);for(const c of o){var d;const i=this.entities.getFolder(c),r=a.get(c),s=b(i),n=null===s?t:null!==(d=a.get(s))&&void 0!==d?d:null,o={...i,id:r,folderId:n};this.entities.upsertEntity(o),c!==e&&this.views.smartInvalidateChildrenViews(n,o,"copy",this.entities)}for(const c of o){const e=a.get(c),t=this.entities.getChildrenIds(c,{onlyFileSystemItems:!0});for(const i of t){const t=this.entities.getFileSystemItem(i);if(!t)continue;const r=O(),s={...t,id:r,folderId:e};this.entities.upsertEntity(s),this.views.smartInvalidateChildrenViews(e,s,"copy",this.entities)}}const h=a.get(e);return h&&null!==(r=this.entities.getEntity(h))&&void 0!==r?r:null}deleteEntity(e){const t=this.entities.getEntity(e);if(!t)return null;if(A(t)){const{deletedFolderRecords:i,deletedFileSystemItemRecords:r}=this.entities.deleteFolderRecursive(e);for(const e of r)this.views.smartInvalidateChildrenViews(e.folderId,e,"delete",this.entities);for(const e of i)this.views.smartInvalidateChildrenViews(e.folderId,e,"delete",this.entities);return t}{const{entity:t,parentId:i}=this.entities.deleteEntityById(e);return t&&this.views.smartInvalidateChildrenViews(i,t,"delete",this.entities),t}}deleteFolderRecursive(e){const{deletedFolderRecords:t,deletedFileSystemItemRecords:i}=this.entities.deleteFolderRecursive(e);for(const r of i)this.views.smartInvalidateChildrenViews(r.folderId,r,"delete",this.entities);for(const r of t)this.views.smartInvalidateChildrenViews(r.folderId,r,"delete",this.entities);return{deletedFileSystemItemIds:i.map(e=>e.id),deletedFolderIds:t.map(e=>e.id)}}forceInvalidate(e){const t=this.entities.getEntity(e);if(!t)return;const i=new Set;if(A(t)){const t=[e];for(;t.length;){const e=t.pop();if(i.has(e))continue;i.add(e),this.views.forceInvalidateChildrenViews(e);const r=this.entities.getChildrenIds(e,{onlyFolders:!0});for(const i of r)t.push(i)}}else{var r;const e=null!==(r=t.folderId)&&void 0!==r?r:null;this.views.forceInvalidateChildrenViews(e)}}getChildrenIds(e){return this.entities.getChildrenIds(e)}async getChildrenCount(e="",t){let i=!1;const r=E(e),s=this.childrenCountPromises.get(r);if(s)return s;const n=(async()=>{try{const i=this.entities.getFolder(e);if(i&&"number"===typeof i.childrenCount)return i.childrenCount;const r=this.views.getKnownTotal(e);if("number"===typeof r)return i&&this.entities.updateServerChildrenCount(e,r),r;if(t){const i=await t(e);return this.entities.getFolder(e)&&this.entities.updateServerChildrenCount(e,i),i}return this.entities.getChildrenIds(e).length}finally{i=!0,this.childrenCountPromises.delete(r)}})();return i||this.childrenCountPromises.set(r,n),n}toJSON(){return{entities:this.entities.toJSON(),views:this.views.toJSON(),ttl:this.ttl,errorTtl:this.errorTtl}}static fromJSON(e,t){var i,r,s,n;const o=new U(null!==t&&void 0!==t?t:{},null!==(i=null===e||void 0===e?void 0:e.ttl)&&void 0!==i?i:3e5,null!==(r=null===e||void 0===e?void 0:e.errorTtl)&&void 0!==r?r:3e4),a=M.fromJSON(null!==(s=null===e||void 0===e?void 0:e.entities)&&void 0!==s?s:{}),l=D.fromJSON(null!==(n=null===e||void 0===e?void 0:e.views)&&void 0!==n?n:{},null!==t&&void 0!==t?t:{});return o.entities=a,o.views=l,o}}var N;function B({childrenCount:e,...t}){return{...t,childCount:e}}let G=(0,C.A)(N=class{async _findOrCreateFolderByPath(e){const t=(i=e)?i.replaceAll("\\","/").split("/").filter(Boolean):[];var i;if(t.length>10)throw new Error("Path depth exceeds maximum limit of 10");let r;for(const o of t){var s;const{files:t}=await this.getFiles({folderId:(null===(s=r)||void 0===s?void 0:s.id)||"",itemType:"folder"});let i=t.find(e=>e.name===o);if(i){if(!i.isFolder)throw new Error(`Path component '${o}' in '${e}' is not a folder`);r={id:i.id,name:i.name,parentId:i.folderId}}else{var n;if(!this._dataProvider.createFolder)throw new Error("Create folder operation is not supported by data provider");r=await this.createFolder({name:o,parentId:null===(n=r)||void 0===n?void 0:n.id})}}return r}getTrashFolder(){return this._findOrCreateFolderByPath(this._pathOptions.trashPath||"Trash")}getTempFolder(){return this._findOrCreateFolderByPath(this._pathOptions.tempPath||"Edited")}constructor(e,t={},i){var r,s;this._dataProvider=e,this._options=t,this._pathOptions=i,this._cache=void 0,this._rootId=void 0,this._useSoftDelete=void 0,this._enableTrash=void 0,this._useSoftDelete=this._pathOptions.useSoftDelete,this._rootId=this._pathOptions.rootId||"",this._enableTrash=void 0===this._options.enableTrash||this._options.enableTrash,this._cache=new U(t.cacheStrategy||{},null===(r=t.cacheStrategy)||void 0===r?void 0:r.ttl,null===(s=t.cacheStrategy)||void 0===s?void 0:s.errorTtl),this.setController({invalidateItemCache:e=>{this._cache.forceInvalidate(e)},getCachedItem:e=>this._cache.getEntity(e)})}setController(e){var t,i;null===(t=(i=this._dataProvider).setController)||void 0===t||t.call(i,e)}_normalizeId(e){return e?"root"===e?this._rootId:e:this._rootId}async getFiles({folderId:e,search:t,sortBy:i,sortOrder:r,page:s,limit:n,itemType:o="all"}){const a=this._normalizeId(null!==e&&void 0!==e?e:this._rootId),l=this._options.clientSideFilter,d=this._options.clientSideSorting,h=this._options.clientSidePaging,c={folderId:a,itemType:o};l||(c.search=t),d||(c.sortBy=null!==i&&void 0!==i?i:"folder"!==o?"date":void 0,c.sortOrder=null!==r&&void 0!==r?r:"folder"!==o?"desc":void 0),h||(c.page=s,c.limit=n);const u={folderId:a,itemType:o,search:l?void 0:t,sortBy:d?void 0:c.sortBy,sortOrder:d?void 0:c.sortOrder,page:h?void 0:s,pageSize:h?void 0:n},v=await this._cache.getOrCreateChildren(a,u,async()=>{const e=await this._dataProvider.getItems(c);return{items:e.items,...e.pagination}});let f,m=v.items;if(l)if("function"===typeof this._options.clientSideFilter)m=this._options.clientSideFilter(m,t);else if(t){const e=t.toLowerCase();m=m.filter(t=>{var i;return null===(i=t.name)||void 0===i?void 0:i.toLowerCase().includes(e)})}d&&(m="function"===typeof this._options.clientSideSorting?this._options.clientSideSorting(m,i,r):this._defaultClientSideSort(m,i,r)),f=h||l?m.length:v.total;let p=m;if(h&&s&&n)if("function"===typeof this._options.clientSidePaging)p=this._options.clientSidePaging(m,s,n);else{const e=(s-1)*n,t=e+n;p=m.slice(e,t)}if(this._dataProvider.getUrl||this._dataProvider.getThumbnailUrl){const e=p.map(async e=>{if(e.isFolder)return e;const[t,i]=await Promise.all([e.url?Promise.resolve(e.url):this._dataProvider.getUrl?this._dataProvider.getUrl(e):Promise.resolve(void 0),e.thumbnailUrl?Promise.resolve(e.thumbnailUrl):this._dataProvider.getThumbnailUrl?this._dataProvider.getThumbnailUrl(e):Promise.resolve(void 0)]);return{...e,url:t,thumbnailUrl:i}});p=await Promise.all(e)}const I={page:s,limit:n,total:f,...!h&&v.totalPages&&{totalPages:v.totalPages},...!h&&v.hasNextPage&&{hasNextPage:v.hasNextPage}};return{files:p.map(B),pagination:I}}_defaultClientSideSort(e,t,i){return e.sort((e,r)=>{let s=0;switch(t){case"name":default:s=(e.name||"").localeCompare(r.name||"");break;case"date":s=new Date(e.date||0).getTime()-new Date(r.date||0).getTime();break;case"size":s=(Number(e.size)||0)-(Number(r.size)||0)}return"desc"===i?-s:s})}async getFileData(e){const t=this._cache.getEntity(e.id);if(this._dataProvider.getFileData)return this._dataProvider.getFileData(t);if(!e.url&&!this._dataProvider.getUrl)throw new Error("Cannot read file");const i=e.url||await this._dataProvider.getUrl(t);if(i)return(await fetch(i)).blob();throw new Error("Unable to get file data")}async getChildrenCount(e){if(!e)return 0;const t=this._normalizeId(null!==e&&void 0!==e?e:this._rootId);return this._cache.getChildrenCount(t,async()=>{const{pagination:e}=await this._dataProvider.getItems({folderId:t,limit:0,itemType:"all"});return(null===e||void 0===e?void 0:e.total)||0})}async uploadFile(e){var t;const i=this._normalizeId(null!==(t=e.folderId)&&void 0!==t?t:this._rootId),r={...this._cache.getEntity(i),...await this._dataProvider.uploadFile({...e,folderId:i}),folderId:i};return this._cache.upsertEntity(r),r}async deleteFile(e){const t=this._normalizeId(e);if(this._useSoftDelete&&this._enableTrash)try{const e=await this.getTrashFolder();return await this.moveItem({itemId:t,targetFolderId:e.id,isFolder:!1})}catch(i){return await this.hardDeleteItem(t)}return await this.hardDeleteItem(t)}async deleteItems(e,t){if(this._useSoftDelete&&this._enableTrash&&!0!==t.permanent)try{const t=await this.getTrashFolder();return await this.moveItems(t.id,e)}catch(i){return await this.hardDeleteItems(e,t)}return await this.hardDeleteItems(e,t)}async hardDeleteItems(e,t){let i={success:!0,detailed:[]};if(this._dataProvider.deleteItems){if(i=await this._dataProvider.deleteItems(e.map(e=>this._cache.getEntity(e)),t),i.success){const t=i.detailed||e.map(e=>({id:e,success:!0,error:void 0}));for(const e of t)e.success?this._cache.deleteEntity(e.id):e.error}}else this._dataProvider.deleteItem&&(i.detailed=await Promise.all(e.map(async e=>{try{return await this._dataProvider.deleteItem(this._cache.getEntity(e),t),this._cache.deleteEntity(e),{id:e,success:!0}}catch(i){return{id:e,error:i,success:!1}}})),i.success=!i.detailed.some(e=>!e.success));if(i.success&&this._enableTrash){const e=await this.getTrashFolder();e&&this._cache.forceInvalidate(e.id)}return i}async hardDeleteItem(e){const t=this._cache.getEntity(e);try{if(await this._dataProvider.deleteItem(t,{permanent:!0}),this._enableTrash){const e=await this.getTrashFolder();e&&this._cache.forceInvalidate(e.id)}return!0}catch(i){return!1}}async createFolder({name:e,parentId:t}){const i=this._normalizeId(null!==t&&void 0!==t?t:this._rootId),r=await this._dataProvider.createFolder(e,i);return this._cache.upsertEntity({id:r.id,folderId:i,name:r.name,isFolder:!0,childrenCount:r.childrenCount}),B(r)}async deleteFolder(e){const t=this._normalizeId(e);if(this._useSoftDelete&&this._enableTrash)try{const e=await this.getTrashFolder();return!!await this.moveItem({itemId:t,targetFolderId:e.id,isFolder:!0})&&(this._cache.deleteFolderRecursive(t),!0)}catch(i){return await this.hardDeleteItem(t)}return await this.hardDeleteItem(t)}async renameFolder(e,t){if(!this._dataProvider.renameItem)throw new Error("Rename folder is not supported");const i=this._normalizeId(e),r=this._cache.getEntity(i),s=await this._dataProvider.renameItem(r,t);return this._cache.upsertEntity({...this._cache.getEntity(s.id),...s}),this._cache.getEntity(s.id)}async renameFile(e,t){if(!this._dataProvider.renameItem)throw new Error("Rename file is not supported");const i=this._cache.getEntity(e),r=this._normalizeId(e),s=await this._dataProvider.renameItem(i,t);return s&&this._cache.upsertEntity({...this._cache.getEntity(r),...s}),this._cache.getEntity(r)}async moveItem({itemId:e,targetFolderId:t}){const i=this._normalizeId(t),r=this._cache.getEntity(e),s=await this._dataProvider.moveItem(r,i);if(s.id===e){const t=this._cache.moveEntity(e,i);return this._cache.upsertEntity({...t,...s}),!0}{const t=this._cache.deleteEntity(e);return this._cache.upsertEntity({...t,...s,folderId:i}),!0}}async moveItems(e,t){const i=this._normalizeId(e),r=t.map(e=>this._cache.getEntity(e));let s={detailed:new Array(r.length),success:!0};if(this._dataProvider.moveItems)s=await this._dataProvider.moveItems(r,i);else{if(!this._dataProvider.moveItem)throw new Error("Move items is not supported");s.detailed=await Promise.all(r.map(async(e,t)=>{try{return{id:r[t].id,data:await this._dataProvider.moveItem(e,i),success:!0}}catch(s){return{id:e.id,success:!1,error:s}}}))}if(s.success){const e=s.detailed||t.map(e=>({id:e,success:!0,data:void 0}));for(const t of e)if(t.success)if(t.data&&t.data.id!==t.id){const e=this._cache.deleteEntity(t.id);this._cache.upsertEntity({...e,...t.data,folderId:i})}else this._cache.moveEntity(t.id,i),t.data&&this._cache.upsertEntity({...this._cache.getEntity(t.id),...t.data,folderId:i});return s}return{success:!1,error:s.error}}async copyItem({itemId:e,targetFolderId:t}){if(!this._dataProvider.copyItem)throw new Error("Copy item is not supported");const i=this._normalizeId(t),r=this._cache.getEntity(e),s=await this._dataProvider.copyItem(r,i),n=this._cache.copyEntity(e,i,s.id);return this._cache.upsertEntity({...n,...s,folderId:i}),!0}async copyItems(e,t){const i=this._normalizeId(e),r=t.map(e=>this._cache.getEntity(e));let s={detailed:new Array(r.length),success:!0};if(this._dataProvider.copyItems)s=await this._dataProvider.copyItems(r,i);else{if(!this._dataProvider.copyItem)return{error:"Copy item is not supported",success:!1};s.detailed=await Promise.all(r.map(async e=>{try{return{id:e.id,data:await this._dataProvider.copyItem(e,i),success:!0}}catch(t){return{id:e.id,success:!1,error:t}}}))}if(!s.success||!s.detailed)return{error:"batchResult in copy method must have detailed results",success:!1};for(let a=0,l=s.detailed.length;a<l;a++){const e=s.detailed[a];var n;if(e.success)if(null!==(n=e.data)&&void 0!==n&&n.id){var o;const t=this._cache.copyEntity(e.id,(null===(o=e.data)||void 0===o?void 0:o.folderId)||i,e.data.id);e.data&&this._cache.upsertEntity({...t,...e.data,folderId:i})}}return s}async uploadFileByUrl(e){var t;if(e.noFolder){const t=await this.getTempFolder();e={...e,folderId:t.id}}const i=this._normalizeId(null!==(t=e.folderId)&&void 0!==t?t:this._rootId),r=await this._dataProvider.uploadFileByUrl(e.url,i);return this._cache.upsertEntity({...r,folderId:i}),r}async updateFile(e,t){if(!this._dataProvider.updateFile)throw new Error("Update file is not supported");const i=this._normalizeId(e),r=this._cache.getEntity(i),s=await this._dataProvider.updateFile(r,{...t});return this._cache.upsertEntity({...this._cache.getEntity(i),...s,...t}),this._cache.getEntity(i)}})||N;var L=i(39416),R=i(32947),k=(i(51731),i(82900));class z{constructor(e,t="",i="Trash",r="Trash",s=!0){this._inner=e,this.rootPath=t,this.trashId=i,this.trashPath=r,this.ensureFolderTrailingSlash=s,this.getUrl=void 0,this.getThumbnailUrl=void 0,this._pathToId=new Map,this._idToPath=new Map,e.getUrl&&(this.getUrl=t=>e.getUrl({...t,id:this._pathForId(t.id,!1),folderId:t.folderId?this._pathForId(t.folderId,!0):this.rootPath})),e.getThumbnailUrl&&(this.getThumbnailUrl=t=>e.getThumbnailUrl({...t,id:this._pathForId(t.id,!1),folderId:t.folderId?this._pathForId(t.folderId,!0):this.rootPath})),this._inner.deleteItems||(this.deleteItems=void 0),this._inner.moveItems||(this.moveItems=void 0),this._inner.copyItems||(this.copyItems=void 0),this._getOrGenerateId(this.rootPath)}setController(e){var t,i;null===(t=(i=this._inner).setController)||void 0===t||t.call(i,{invalidateItemCache:t=>{const i=t.replace(/^\/+|\/+$/g,""),r=this._pathToId.get(i);r&&e.invalidateItemCache(r)},getCachedItem:t=>{const i=t.replace(/^\/+|\/+$/g,""),r=this._pathToId.get(i);if(r){let t=e.getCachedItem(r);if(t)return{...t,id:this._pathForId(t.id,t.isFolder),folderId:this._pathForId(t.folderId,t.isFolder)}}}})}_getOrGenerateId(e){if(e===this.rootPath)return;const t=e.replaceAll(/^\/+|\/+$/g,"");if(t===this.trashPath.replaceAll(/^\/+|\/+$/g,""))return this.trashId;if(this._pathToId.has(t))return this._pathToId.get(t);const i=(0,k.A)();return this._pathToId.set(t,i),this._idToPath.set(i,t),i}_pathForId(e,t){if(""===e||void 0===e)return this.rootPath;if(e===this.trashId)return this.trashPath;let i=this._idToPath.get(e);if(!i)throw new Error(`path for id ${e} not found`);let r=0;for(;r<this.rootPath.length&&"/"===this.rootPath[r];)r++;if(r){let e=0;for(;e<i.length&&"/"===i[e];)e++;const t=i.slice(e);i="/".repeat(r)+t}return t&&this.ensureFolderTrailingSlash&&!i.endsWith("/")&&(i+="/"),i}_updateIdMapping(e,t){const i=t.replace(/^\/+|\/+$/g,""),r=this._idToPath.get(e);r&&this._pathToId.delete(r),this._idToPath.set(e,i),this._pathToId.set(i,e)}async getItems(e){const t=e.folderId?this._pathForId(e.folderId,!0):this.rootPath,i=await this._inner.getItems({...e,folderId:t}),r=i.items.map(e=>{const t=this._getOrGenerateId(e.id),i=e.folderId?this._getOrGenerateId(e.folderId):this._getOrGenerateId(this.rootPath);return{...e,id:t,folderId:i}});return{...i,items:r}}async createFolder(e,t){const i=t?this._pathForId(t,!0):this.rootPath,r=await this._inner.createFolder(e,i),s=this._getOrGenerateId(r.id),n=r.folderId?this._getOrGenerateId(r.folderId):this._getOrGenerateId(this.rootPath);return{...r,id:s,folderId:n}}async renameItem(e,t){if(!this._inner.renameItem)throw new Error("renameItem not supported by inner storage");const i=this._pathForId(e.id,e.isFolder),r=i;let{...s}=await this._inner.renameItem({...e,id:i,folderId:this._pathForId(e.folderId,!0)},t);return this._updateIdMapping(e.id,s.id),e.isFolder&&this.remapCachedFolderContents(e.id,r,s.id),s.folderId&&(s={...s,folderId:this._getOrGenerateId(s.folderId)}),{...s,id:this._getOrGenerateId(s.id)}}async deleteItem(e,t){const i=this._pathForId(e.id,e.isFolder);await this._inner.deleteItem({...e,id:i,folderId:this._pathForId(e.folderId,!0)},t),this.recursivelyRemoveMappings(e.id,i)}async uploadFile(e){const t=e.folderId?this._pathForId(e.folderId,!0):this.rootPath,i=await this._inner.uploadFile({...e,folderId:t}),r=this._getOrGenerateId(i.id),s=e.folderId?e.folderId:this._getOrGenerateId(this.rootPath);return{...i,id:r,folderId:s}}async uploadFileByUrl(e,t){const i=t?this._pathForId(t,!0):this.rootPath,r=await this._inner.uploadFileByUrl(e,i),s=this._getOrGenerateId(r.id),n=r.folderId?this._getOrGenerateId(r.folderId):this._getOrGenerateId(this.rootPath);return{...r,id:s,folderId:n}}async moveItem(e,t){const i=this._pathForId(e.id,e.isFolder),r=this._pathForId(t,!0),s=await this._inner.moveItem({...e,id:i,folderId:this._pathForId(e.folderId,!0)},r);return this._updateIdMapping(e.id,s.id),e.isFolder&&this.remapCachedFolderContents(e.id,i,s.id),{...s,id:this._getOrGenerateId(s.id),folderId:t}}async moveItems(e,t){if(!this._inner.moveItems)throw new Error("moveItems not supported by inner storage");const i=t?this._pathForId(t,!0):this.rootPath,r=e.map(e=>({...e,id:this._pathForId(e.id,e.isFolder),folderId:e.folderId?this._pathForId(e.folderId,!0):this.rootPath})),s=await this._inner.moveItems(r,i),n=[];if(s.detailed&&s.detailed.length===e.length)for(let o=0;o<s.detailed.length;o++){const i=s.detailed[o],r=e[o];if(i.success&&i.data){if(this._updateIdMapping(r.id,i.data.id),r.isFolder){const e=this._pathForId(r.id,r.isFolder);this.remapCachedFolderContents(r.id,e,i.data.id)}n.push({id:r.id,success:!0,data:{...i.data,id:this._getOrGenerateId(i.data.id),folderId:t||this._getOrGenerateId(this.rootPath)}})}else n.push({id:r.id,success:!1,error:i.error})}else for(const o of e)n.push({id:o.id,success:!1,error:"Move operation failed - no detailed results"});return{success:s.success,detailed:n,error:s.error}}async copyItems(e,t){if(!this._inner.copyItems)throw new Error("copyItems not supported by inner storage");const i=t?this._pathForId(t,!0):this.rootPath,r=e.map(e=>({...e,id:this._pathForId(e.id,e.isFolder),folderId:e.folderId?this._pathForId(e.folderId,!0):this.rootPath})),s=await this._inner.copyItems(r,i),n=[];if(s.detailed&&s.detailed.length===e.length)for(let l=0;l<s.detailed.length;l++){var o;const i=s.detailed[l],r=e[l];if(i.success&&null!==(o=i.data)&&void 0!==o&&o.id){const e=this._getOrGenerateId(i.data.id);n.push({id:r.id,success:!0,data:{...i.data,id:e,folderId:t||this._getOrGenerateId(this.rootPath)}})}else{const e=i.success?i.data?i.data.id?"Unknown copy error":"No ID in copied item data":"No data returned from copy operation":i.error;n.push({id:r.id,success:!1,error:e})}}else for(const l of e)n.push({id:l.id,success:!1,error:s.detailed?"Mismatched result count":"No detailed results from copy operation"});const a=n.every(e=>e.success);return{success:a,detailed:n,error:a?void 0:s.error||"Copy operation completed with errors"}}async deleteItems(e,t){if(!this._inner.deleteItems)throw new Error("deleteItems not supported by inner storage");const i=e.map(e=>({...e,id:this._pathForId(e.id,e.isFolder),folderId:e.folderId?this._pathForId(e.folderId,!0):this.rootPath})),r=await this._inner.deleteItems(i,t),s=[];if(r.detailed&&r.detailed.length===e.length)for(let o=0;o<r.detailed.length;o++){const t=r.detailed[o],i=e[o];if(t.success){const e=this._pathForId(i.id,i.isFolder);this.recursivelyRemoveMappings(i.id,e),s.push({id:i.id,success:!0})}else s.push({id:i.id,success:!1,error:t.error})}else for(const o of e)if(r.success){const e=this._pathForId(o.id,o.isFolder);this.recursivelyRemoveMappings(o.id,e),s.push({id:o.id,success:!0})}else s.push({id:o.id,success:!1,error:r.error||"Delete operation failed"});const n=s.every(e=>e.success);return{success:n,detailed:s,error:n?void 0:r.error||"Some items failed to delete"}}remapCachedFolderContents(e,t,i){const r=t.replace(/\/+$/,""),s=i.replace(/\/+$/,""),n=[];for(const[o,a]of this._idToPath.entries()){const e=a.replace(/\/+$/,"");e!==r&&e.startsWith(r+"/")&&n.push({id:o,oldPath:e})}for(const{id:o,oldPath:a}of n){const e=s+a.substring(r.length);this._updateIdMapping(o,e)}}recursivelyRemoveMappings(e,t){const i=t.replace(/\/+$/,""),r=[],s=[];for(const[n,o]of this._idToPath.entries()){const e=o.replace(/\/+$/,"");(e===i||e.startsWith(i+"/"))&&(r.push(n),s.push(e))}for(let n=0;n<r.length;n++)this._idToPath.delete(r[n]),this._pathToId.delete(s[n])}async copyItem(e,t){const i=this._pathForId(e.id,e.isFolder),r=this._pathForId(t,!0),s=await this._inner.copyItem({...e,id:i,folderId:this._pathForId(e.folderId,e.isFolder)},r),n=this._getOrGenerateId(s.id);return{...s,id:n,folderId:t}}async updateFile(e,t){if(!this._inner.updateFile)throw new Error("updateFile not supported by inner storage");const i=this._pathForId(e.id,!1);let{...r}=await this._inner.updateFile({...e,id:i,folderId:this._pathForId(e.folderId,!0)},t);return this._updateIdMapping(e.id,r.id),r.folderId&&(r={...r,folderId:this._getOrGenerateId(r.folderId)}),{...r,id:this._getOrGenerateId(r.id)}}async getFileData(e){const t=this._pathForId(e.id,!1);if(this._inner.getFileData)return this._inner.getFileData({...e,id:t,folderId:this._pathForId(e.folderId,!0)});const i=e.url||this.getUrl&&await this.getUrl(e);if(!i)throw new Error("Cannot get file data: no url and no inner.getFileData");return fetch(i).then(e=>e.blob())}}const{useToken:x}=o.A,$=({storageProvider:e})=>{var t,i,o,_,C,E,S,b,A,O,T,M,D,U,N;const B=(0,p.rD)(),{projectId:k,emailId:$,blockId:V}=(0,n.g)(),{__:K}=(0,F.s9)(),{token:j}=x(),{error:J}=(0,I.hN)(),q=(0,s.wA)(),W=(0,s.d4)(c.B$),Y=(0,s.d4)(c.C1),H=(0,s.d4)(u.cL),Q=(0,s.d4)(v.Ac),X=(0,s.d4)(f.yN),Z=(0,s.d4)(v.js),[ee,te]=(0,r.useState)(""),[ie,re]=(0,r.useState)("my_files"),[se,ne]=(0,r.useState)(!1),[oe,ae]=(0,r.useState)(0),[le,de]=(0,r.useState)(""),[he,ce]=(0,r.useState)(()=>[]),ue=()=>{q((0,u.Oo)()),setTimeout(()=>te(""),600)},ve=!(W||(null===(t=Y.id)||void 0===t?void 0:t.toString())!==(null===X||void 0===X||null===(i=X.members)||void 0===i?void 0:i.owner.ID))&&!1,fe=(0,r.useMemo)(()=>({img:Z,background:Q}),[Z,Q]);(0,r.useEffect)(()=>{H.includes("UPLOAD_BACKGROUND_MODAL")?(te("background"),fe.background&&de(fe.background)):H.includes("UPLOAD_IMAGE_MODAL")&&(te("img"),fe.img&&de(fe.img)),H===R.lx.UPLOAD_IMAGE_MODAL||H===R.lx.UPLOAD_BACKGROUND_MODAL?re("editor"):H===R.lx.UPLOAD_IMAGE_MODAL_AI||H===R.lx.UPLOAD_BACKGROUND_MODAL_AI?ve?(ne(!0),ae(2)):re("ai"):H===R.lx.UPLOAD_IMAGE_MODAL_UPLOAD||H===R.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD?re("my_files"):H===R.lx.UPLOAD_IMAGE_MODAL_STOCK||H===R.lx.UPLOAD_BACKGROUND_MODAL_STOCK?ve?(ne(!0),ae(3)):re("stock_images"):H===R.lx.UPLOAD_IMAGE_MODAL_GIF||H===R.lx.UPLOAD_BACKGROUND_MODAL_GIF?ve?(ne(!0),ae(3)):re("gif"):H===R.lx.UPLOAD_IMAGE_MODAL_EDIT||H===R.lx.UPLOAD_BACKGROUND_MODAL_EDIT?(ve?(ne(!0),ae(5)):re("editor"),q((0,u.Wz)(R.lx.IMAGE_EDITOR_MODAL))):re("my_files")},[H,q,ve,fe]);const me=(0,g.mx)(async()=>e?(e=e.pathMode?new z(e,e.rootId,"Trash",e.trashPath):e,new G(e,B.fileManager,{...e,trashPath:e.pathMode?"trash":e.trashPath,rootId:e.pathMode?"":e.rootId})):(J(K("Error when initializing file manager")),null),[e,J,K,B.fileManager]),pe=r.createElement(d.A,{style:{fontSize:32,margin:-16},spin:!0}),Ie=(0,r.useCallback)(e=>{w.isEqual(e,he)||ce(e)},[he]),[ye]=(0,h.Mv)(),ge=(0,r.useCallback)(async()=>{if(me){const e=he[0];if(e){const t=e.url||e.thumbnailUrl;"img"===ee?q((0,v.tm)(t)):"background"===ee&&q((0,v.e_)(t))}}ue()},[me,q,u.Oo,he,ee]),we=(0,r.useCallback)(async e=>{if(me&&e){const t=e.url||e.thumbnailUrl;"img"===ee?q((0,v.tm)(t)):"background"===ee&&q((0,v.e_)(t))}ue()},[me,q,u.Oo,ee]),_e=(0,r.useCallback)(async()=>{ue()},[q,u.Oo]),[Fe,{data:Pe=[]}]=(0,h.gg)(),Ce=(null===B||void 0===B?void 0:B.handleLimitUsageEmitter)||(0,y.ml)(P.AZ.ON_LIMIT_ID),Ee=(0,r.useCallback)(async function(e){try{await Fe(e).unwrap()}catch(t){}},[Fe]);return ee&&me?r.createElement(r.Fragment,null,!ve&&r.createElement(a.A,{className:"file-manager",closable:!0,footer:null,open:!!ie&&H.includes("UPLOAD_IMAGE_"),width:"100vw",onOk:ge,onCancel:ue},r.createElement(l.A,{spinning:!me,indicator:pe},me&&("editor"===ie?r.createElement(L.BC,{onSave:we,onClose:_e,dataProviders:me,theme:Y.theme,file:le}):r.createElement(L.KG,{dataProviders:me,onChangeSelection:Ie,onEditorOk:we,config:{activeLibraryItem:ie,REACT_APP_GIPHY_KEY:"Nh77eBlPeMn1ed9MBAvL542NUGeNO26F",UNSPLASH_KEY:"S5iNcLqYgRBIOLQdluHdTsCJnjCvahzhG7JfYQOrV7o",APP_NAME_UNSPLASH:"Nh77eBlPeMn1ed9MBAvL542NUGeNO26F",fileForEdit:le,projectId:k,elementId:$||V,pushToGTM:null===B||void 0===B?void 0:B.pushToGTM,handleLimitUsageEmitter:Ce,sseQuery:Ee,messages:Pe,sendAIImageRequest:(null===B||void 0===B?void 0:B.sendAIImageRequest)||ye,locale:Y.locale,theme:Y.theme,customTheme:j,enableTrashFolder:null===(o=B.fileManager)||void 0===o?void 0:o.enableTrash,features:{enableRenameFile:!1!==(null===(_=B.fileManager)||void 0===_?void 0:_.enableRenameFile),enableRenameFolder:!1!==(null===(C=B.fileManager)||void 0===C?void 0:C.enableRenameFolder),enableUpdateFile:!1!==(null===(E=B.fileManager)||void 0===E?void 0:E.enableUpdateFile),enableCopyItem:!1!==(null===(S=B.fileManager)||void 0===S?void 0:S.enableMoveFile),enableCopyFolder:!1!==(null===(b=B.fileManager)||void 0===b?void 0:b.enableCopyFolder),enableDelete:!1!==(null===(A=B.fileManager)||void 0===A?void 0:A.enableDelete),enableEdit:!1!==(null===(O=B.fileManager)||void 0===O?void 0:O.enableEdit),enableMoveItem:!1!==(null===(T=B.fileManager)||void 0===T?void 0:T.enableMoveFile),enableMoveFolder:!1!==(null===(M=B.fileManager)||void 0===M?void 0:M.enableMoveFolder)},disablePagination:!1===(null===(D=B.fileManager)||void 0===D?void 0:D.enablePagination),multiSelect:!1!==(null===(U=B.fileManager)||void 0===U?void 0:U.multiSelect),defaultFolderName:null===(N=B.fileManager)||void 0===N?void 0:N.defaultFolderName}})))),r.createElement(m.A,{open:se,onCancel:()=>ne(!1),initialSlide:oe,sideOnOk:void 0})):null}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(globalThis.webpackChunkemail_maker=globalThis.webpackChunkemail_maker||[]).push([[6501],{36501:(e,t,a)=>{a.r(t),a.d(t,{default:()=>ve});var l=a(98173),i=a(2604),n=a(55415),s=a(35491),r=a(69550),o=a(8218),c=a(48753),m=a(98447),u=a(93511),d=a(5558),g=a(5889),p=a(38826),h=a(12543),f=a(30150),A=a(8122),E=a(40835),y=a(871),v=a(47014),k=a(23424),w=a(80772),I=a(84572),b=a(32947);function L(e,t){return{[e]:{Filter:t("Filter"),filter:t("filter"),Resize:t("Resize"),resize:t("resize"),Crop:t("Crop"),Width:t("Width"),width:t("width"),Height:t("Height"),height:t("height"),"Background color":t("Background color"),Cancel:t("Cancel"),Create:t("Create"),Objects:t("Objects"),Quality:t("Quality"),Save:t("Save"),"Loading Canvas":t("Loading Canvas"),"Loading Image":t("Loading Image"),"Loading State":t("Loading State"),"Processing Image":t("Processing Image"),Close:t("Close"),Apply:t("Apply"),Font:t("Font"),Color:t("Color"),Background:t("Background"),Image:t("Image"),Opacity:t("Opacity"),Outline:t("Outline"),Shadow:t("Shadow"),Gradient:t("Gradient"),Texture:t("Texture"),"Replace Image":t("Replace Image"),"Outline Color":t("Outline Color"),"Shadow Color":t("Shadow Color"),"Font Size":t("Font Size"),Radius:t("Radius"),"Brush Color":t("Brush Color"),"Brush Type":t("Brush Type"),"Brush Size":t("Brush Size"),History:t("History"),"Maintain aspect ratio":t("Maintain aspect ratio"),"New Text":t("New Text"),Size:t("Size"),Draw:t("Draw"),Text:t("Text"),Stickers:t("Stickers"),Frame:t("Frame"),Shapes:t("Shapes"),Corners:t("Corners"),corners:t("corners"),Done:t("Done"),"Applied Filters":t("Applied Filters"),"Resized Image":t("Resized Image"),"Cropped Image":t("Cropped Image"),"Added Drawing":t("Added Drawing"),"Added Text":t("Added Text"),"Added Shape":t("Added Shape"),"Added Sticker":t("Added Sticker"),"Added Frame":t("Added Frame"),"Merged Objects":t("Merged Objects"),"Rounded Corner":t("Rounded Corner"),"Replaced Background Image":t("Replaced Background Image"),"Added Image":t("Added Image"),Initial:t("Initial"),"Loaded State":t("Loaded State"),"Changed Style":t("Changed Style"),"Deleted object":t("Deleted object"),Merge:t("Merge"),Emoticons:t("Emoticons"),Doodles:t("Doodles"),Landmarks:t("Landmarks"),Bubbles:t("Bubbles"),Transportation:t("Transportation"),Beach:t("Beach"),PencilBrush:t("PencilBrush"),SprayBrush:t("SprayBrush"),CircleBrush:t("CircleBrush"),DiamondBrush:t("DiamondBrush"),VLineBrush:t("VLineBrush"),HLineBrush:t("HLineBrush"),SquareBrush:t("SquareBrush"),Square:t("Square"),square:t("square")}}}var R=a(85466),C=a(37969),S=a(76293),_=a(80320),B=a(96734),N=a(90614),O=a(3792),M=a(15626),x=a(12352);const D={text:{replaceDefault:!0,defaultCategory:"handwriting",items:[{family:"Montserrat Light",src:"customFonts/Montserrat-Light.woff2"},{family:"Montserrat Regular",src:"customFonts/Montserrat-Regular.woff2"},{family:"Montserrat Bold",src:"customFonts/Montserrat-Bold.woff2"},{family:"Montserrat Black",src:"customFonts/Montserrat-Black.woff2"},{family:"Roboto Light",src:"customFonts/Roboto-Light.woff2"},{family:"Roboto Regular",src:"customFonts/Roboto-Regular.woff2"},{family:"Roboto Bold",src:"customFonts/Roboto-Bold.woff2"},{family:"Roboto Black",src:"customFonts/Roboto-Black.woff2"},{family:"Lato Light",src:"customFonts/Lato-Light.woff2"},{family:"Lato Regular",src:"customFonts/Lato-Regular.woff2"},{family:"Lato Bold",src:"customFonts/Lato-Bold.woff2"},{family:"Lato Black",src:"customFonts/Lato-Black.woff2"},{family:"Rubik Light",src:"customFonts/Rubik-Light.woff2"},{family:"Rubik Regular",src:"customFonts/Rubik-Regular.woff2"},{family:"Rubik Bold",src:"customFonts/Rubik-Bold.woff2"},{family:"Rubik Black",src:"customFonts/Rubik-Black.woff2"},{family:"Bebas Neue Light",src:"customFonts/BebasNeueLight.woff2"},{family:"Bebas Neue Regular",src:"customFonts/BebasNeueRegular.woff2"},{family:"Bebas Neue Book",src:"customFonts/BebasNeueBook.woff2"},{family:"Bebas Neue Bold",src:"customFonts/BebasNeueBold.woff2"},{family:"Arial",src:"customFonts/ArialMT.woff2"},{family:"Arial Bold",src:"customFonts/Arial-BoldMT.woff2"}]}};function G(e,t){if("json"===e)return new Blob([t],{type:"application/json"});if("svg"===e)return new Blob([t],{type:"image/svg+xml"});const a=`image/${e}`;return((e,t="application/octet-stream")=>fetch(`data:${t};base64,${e}`).then(e=>e.blob()))(t=t.replace(/data:image\/([a-z]*)?;base64,/,""),a)}const U=l.createElement(p.A,{style:{fontSize:48},spin:!0}),T=({currentImageLink:e,newLink:t,onSave:n,uploadImageResultIsLoading:s})=>{const r=(0,B.p)(),[o,u]=(0,l.useState)(),[d,g]=(0,l.useState)(),{__:p}=(0,h.s9)();let f=(0,i.wA)();const A=(0,i.Pj)(),E=(0,i.d4)(v.C1),y=(0,i.d4)(k.sK),T=(0,i.d4)(I.yN),F=(0,l.useRef)(!1),[P,q]=(0,l.useState)(),z=(0,N.ml)(M.AZ.FILE_PROXY_EVENT_ID);(0,l.useEffect)(()=>{(async()=>{let t;try{const a=await fetch(e);t=await a.blob()}catch{if(t=await z.fire({url:e,project:T}).filter(e=>e instanceof Blob)[0],!t){const a=r.get(b.A9.em_token)||await O.di.getInstance(A,x.Y),l=await fetch(`https://app.useblocks.io/api/wp-json/cors-proxy/v1/get?url=${encodeURIComponent(e)}`,{headers:{authorization:`Bearer ${a}`}});t=await l.blob()}}if(t){let e=new FileReader;e.onload=()=>{null===P||void 0===P||P.tools.import.openBackgroundImage(o),e.result!==o&&(u(e.result),g(t.type))},e.readAsDataURL(t)}})().catch(e=>{})},[e,t,u,r,o,P,z,T,A]);const j=(0,l.useCallback)(()=>{u(null),g(null),f((0,w.BK)()),f((0,k.Os)()),f((0,k.Oo)(b.lx.UPLOAD_IMAGE_MODAL))},[f]),H=(0,l.useRef)();H.current=async function(e,t,a){const l=await G(a,e);n&&n(new File([l],t,{lastModified:(new Date).getTime(),type:l.type}))};const W=(0,l.useCallback)(e=>{if(e)if(F.current&&P);else{F.current=!0;const e=E.locale?E.locale.replace("_","-"):"en-US",t=E.theme===b.IJ?matchMedia(b.F3).matches?b.nd:b.T:E.theme;R.A.init({selector:"#pixie-editor",baseUrl:a.p+"assets/pixie",image:o,activeLanguage:e,languages:L(e,p),tools:D,ui:{menubar:{replaceDefaultItems:!0,items:[{type:"undoWidget",align:"left"},{type:"zoomWidget",align:"center",desktopOnly:!0},{type:"button",icon:l.createElement(S.A,{style:{fontSize:20}}),align:"right",desktopOnly:!0,action:e=>{e.togglePanel("history")}},{type:"button",icon:l.createElement(_.A,{style:{fontSize:20}}),align:"right",desktopOnly:!0,action:()=>j()}]},nav:{position:"top"},activeTheme:t,mode:"inline",forceOverlayModeOnMobile:!1},onSave:async function(e,t,a){H.current(e,t,a)}}).then(e=>{q(e)}).catch(e=>{})}},[E.theme,o,P,q,E.locale,p,j]),K=(0,l.useCallback)(()=>{null===P||void 0===P||P.tools.export.save(null===e||void 0===e?void 0:e.split("/").pop().split(".")[0],null===d||void 0===d?void 0:d.split("/")[1])},[P,e,d]);return l.createElement(c.A,{afterOpenChange:W,width:"100%",style:{maxWidth:"100%",minHeight:"100vh"},className:"image-editor-modal blocks-modal",centered:!0,closable:!1,zIndex:1100,mask:!1,open:y,footer:[l.createElement(C.Ay,{key:"Cancel",className:"em-analytics__profile-cancel",onClick:j},p("Cancel")),l.createElement(C.Ay,{key:"Ok",className:"em-analytics__profile-updapixiete",id:"save",type:"primary",onClick:K},p("Update"))]},s&&l.createElement("div",{style:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--colorBgLayout)",zIndex:10,opacity:.7}},l.createElement(m.A,{size:"large",indicator:U})),l.createElement("div",{id:"pixie-editor"}))},F=l.createElement(p.A,{style:{fontSize:48},spin:!0}),P=({currentImageLink:e,newLink:t,onSave:a,uploadImageResultIsLoading:i})=>l.createElement(l.Fragment,null,l.createElement("div",null,l.createElement("div",{className:"image-preview"},i&&l.createElement("div",{style:{position:"absolute",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"var(--colorBgLayout)",zIndex:10,opacity:.7}},l.createElement(m.A,{size:"large",indicator:F})),(t||e)&&l.createElement("img",{alt:"uploadedImage",src:t||e}))),l.createElement(T,{currentImageLink:e,newLink:t,onSave:a,uploadImageResultIsLoading:i}));var q=a(201),z=a(66964),j=a(50483),H=a(13785),W=a(94674),K=a(20127),V=a(21867),Q=a(80293),$=a(8807);const Z="blocks",Y=({setCurrentImageLink:e,setModalHeight:t,setModalWidth:a,setImageStockList:i,imageStockList:n,currentReq:s,setCurrentReq:c,inputRef:u,setStockLink:d,customRequest:g})=>{const[f,A]=(0,l.useState)(!1),[E,v]=(0,l.useState)(2),{__:k}=(0,h.s9)(),[w]=(0,y.Jg)(),[I]=(0,y.h4)();(0,l.useEffect)(()=>{""!==s.keywords&&b()},[s.color,s.orientation]);const b=async()=>{const e=await I({query:s,page:1});e.data.results.length>0&&(i(e.data.results),setTimeout(()=>{a(1060),t("84vh")},0))},[L,R]=(0,l.useState)(null),C=(e,t,a)=>{try{const l=new URL(e),i=l.pathname.split("/").filter(Boolean),n=i.pop()||"",s=i.join("/"),r=`https://${l.host}${s?"/"+s:""}`,o=`https://px0.useblocks.io/${n}`,c=l.search?l.search.slice(1):"",m=c?`${c}&w=${t}&q=${a}`:"w=644&q=96";return`${o}?${`${m}&proxy_url=${r}`}`}catch(l){return e}};return l.createElement("div",{className:"stock-tab"},l.createElement(r.A,{onValuesChange:b,className:n.length>0?"serach-results":""},l.createElement(q.A,{gutter:24},l.createElement(z.A,{span:n.length>0?"":24},l.createElement(r.A.Item,{className:"stock-search-input"},l.createElement(o.A,{onKeyDown:e=>"Space"===e.code&&b(),onPressEnter:e=>b(),allowClear:!0,size:n.length>0?"medium":"large",placeholder:k("Search image"),value:s.keywords,onChange:e=>c(t=>({...t,keywords:e.target.value})),ref:u,spellCheck:"false",suffix:l.createElement(Q.A,{onClick:b,className:"cards-search__search-icon, input-icon",style:{fontSize:"16px",cursor:"pointer"}})}))),n.length>0&&l.createElement(l.Fragment,null,l.createElement(z.A,null,l.createElement(j.Ay.Group,{defaultValue:"",onChange:e=>c(t=>({...t,orientation:e.target.value}))},l.createElement(H.A,{title:k("All"),placement:"top"},l.createElement(j.Ay.Button,{value:""},l.createElement($.A,{icon:"MixedView"}))),l.createElement(H.A,{title:k("Landscape"),placement:"top"},l.createElement(j.Ay.Button,{value:"landscape"},l.createElement($.A,{icon:"LandscapeView"}))),l.createElement(H.A,{title:k("Portrait"),placement:"top"},l.createElement(j.Ay.Button,{value:"portrait"},l.createElement($.A,{icon:"PortraitView"}))),l.createElement(H.A,{title:k("Squarish"),placement:"top"},l.createElement(j.Ay.Button,{value:"squarish"},l.createElement($.A,{icon:"SquareView"}))))),l.createElement(z.A,null,l.createElement(j.Ay.Group,{defaultValue:"",className:"stock-color-filter",onChange:e=>c(t=>({...t,color:e.target.value}))},l.createElement(H.A,{title:k("All"),placement:"top"},l.createElement(j.Ay.Button,{className:"all-colors",value:""},"All")),l.createElement(H.A,{title:k("Black"),placement:"top"},l.createElement(j.Ay.Button,{className:"black-color",value:"black"},"B")),l.createElement(H.A,{title:k("Black and White"),placement:"top"},l.createElement(j.Ay.Button,{className:"bw-color",value:"black_and_white"},"B&\xa7W")),l.createElement(H.A,{title:k("White"),placement:"top"},l.createElement(j.Ay.Button,{className:"white-color",value:"white"},"W")),l.createElement(H.A,{title:k("Orange"),placement:"top"},l.createElement(j.Ay.Button,{className:"orange-color",value:"orange"},"O")),l.createElement(H.A,{title:k("Red"),placement:"top"},l.createElement(j.Ay.Button,{className:"red-color",value:"red"},"R")),l.createElement(H.A,{title:k("Purple"),placement:"top"},l.createElement(j.Ay.Button,{className:"purple-color",value:"purple"},"P")),l.createElement(H.A,{title:k("Magenta"),placement:"top"},l.createElement(j.Ay.Button,{className:"magenta-color",value:"magenta"},"M")),l.createElement(H.A,{title:k("Green"),placement:"top"},l.createElement(j.Ay.Button,{className:"green-color",value:"green"},"G")),l.createElement(H.A,{title:k("Teal"),placement:"top"},l.createElement(j.Ay.Button,{className:"teal-color",value:"teal"},"T")),l.createElement(H.A,{title:k("Blue"),placement:"top"},l.createElement(j.Ay.Button,{className:"blue-color",value:"blue"},"Blue")))))),n.length>0&&l.createElement("div",{className:"blocks-search__divider-wrapper"},l.createElement("div",{className:"ant-divider ant-divider-horizontal",role:"separator"}))),l.createElement("div",{className:"serach-output-wrapper",style:{marginRight:-10}},n.length>0&&l.createElement("div",{id:"scrollableDiv",style:{width:"100%",height:"calc(84vh - 148px)",overflow:"auto",paddingTop:24,paddingRight:14,paddingLeft:24,marginLeft:-24,lineHeight:"0",boxSizing:"unset"}},l.createElement(K.A,{dataLength:n&&n.length,next:async()=>{f||(A(!0),I({query:s,page:E}).then(e=>{i(t=>[...t,...e.data.results]),A(!1),v(e=>e+1)}).catch(()=>{A(!1)}))},hasMore:n,endMessage:l.createElement(W.A,{plain:!0},k("That`s all we could find.")," \ud83e\udd10"),scrollableTarget:"scrollableDiv",style:{overflow:"visible"},loader:null},l.createElement(V.A,{breakpointCols:{default:3},className:"my-masonry-grid",columnClassName:"my-masonry-grid_column"},n.map(t=>l.createElement("div",{className:"list-item",key:t.id,onClick:()=>{return a=t.urls,l=t.links,i=t.id,w(l.download_location),R(i),setTimeout(()=>R(null),2e3),d(C(a.raw,1200,96)),e(C(a.raw,1200,96)),void g(C(a.raw,1200,96));var a,l,i}},l.createElement("img",{className:L===t.id?"loaded-image":"",width:"322px",src:C(t.urls.raw,644,96),alt:t.description,onLoad:e=>e.target.parentNode.classList.add("loaded")}),l.createElement("p",{className:"creator-info",onClick:e=>e.stopPropagation()},"Photo by"," ",l.createElement("a",{target:"_blank",href:`${t.user.links.html}?utm_source=${Z}&utm_medium=referral`,rel:"noreferrer"},t.user.name)," ","on"," ",l.createElement("a",{target:"_blank",href:`https://unsplash.com/?utm_source=${Z}&utm_medium=referral`,rel:"noreferrer"},"Unsplash")),L===t.id&&l.createElement(m.A,{className:"ant-spin",indicator:l.createElement(p.A,{spin:!0})}))))))))};var J=a(82021),X=a(35850),ee=a(50078),te=a(36236);const ae=({images:e,transitionDuration:t=1e3})=>{const[a,i]=(0,l.useState)([]);return(0,l.useEffect)(()=>{if(e.length>0){const t=e[e.length-1];i(e=>[...e,{src:t,opacity:0}]),setTimeout(()=>{i(e=>e.map((t,a)=>a===e.length-1?{...t,opacity:1}:t))},1e3)}},[e]),l.createElement("div",{className:"slideshow-container"},a.map((e,a)=>l.createElement("img",{key:a,src:`data:image/jpeg;base64, ${e.src}`,alt:`Slide ${a+1}`,className:"slideshow-image",style:{opacity:e.opacity,transition:`opacity ${t}ms linear`}})))};var le=a(30753),ie=a(27941),ne=a(89613);const se=(0,l.memo)(({className:e,onClick:t})=>l.createElement("div",{className:`image-ai__arrow image-ai__arrow--next ${e||""}`,onClick:t},l.createElement(C.Ay,{className:"image-ai__arrow-btn image-ai__arrow-btn--next",size:"large",icon:l.createElement(X.A,null)})));se.displayName="SampleNextArrow";const re=(0,l.memo)(({className:e,onClick:t})=>l.createElement("div",{className:`image-ai__arrow image-ai__arrow--prev ${e||""}`,onClick:t},l.createElement(C.Ay,{className:"image-ai__arrow-btn image-ai__arrow-btn--prev",size:"large",icon:l.createElement(ee.A,null)})));re.displayName="SamplePrevArrow";const oe=({setModalHeight:e,customRequest:t,aiTabRef:a,inputAiRef:i,isImageUploaded:n,setIsImageUploaded:s,aiImageRequest:c,setAiImageRequest:m,imageAiList:u,setImageAiList:g,isLoadingAi:A,setIsLoadingAi:E})=>{const{aiImageCounter:v,currentAiImgLimits:k,loadingDuringGeneration:w,requestStatus:I,handleGenerate:L,convertBase64ToFile:R,isShiftPressed:S,setIsShiftPressed:_,limitsInPlugin:B}=function({setModalHeight:e,customRequest:t,aiTabRef:a,isImageUploaded:i,setIsImageUploaded:n,aiImageRequest:s,imageAiList:r,setImageAiList:o,isLoadingAi:c,setIsLoadingAi:m}){const{__:u}=(0,h.s9)(),g=(0,ie.rD)(),p=(0,d.hN)(),A=(0,ne.u)(),{emailId:E,blockId:v,projectId:k}=(0,f.g)(),[w]=(0,y.Mv)(),[I,{data:L=[]}]=(0,y.gg)(),R=(null===g||void 0===g?void 0:g.sendAIImageRequest)||w,C=(null===g||void 0===g?void 0:g.trigger)||I,S=(null===g||void 0===g?void 0:g.handleLimitUsageEmitter)||(0,N.ml)(M.AZ.ON_LIMIT_ID),[_,B]=(0,l.useState)(0),[O,x]=(0,l.useState)(null),[D,G]=(0,l.useState)(!1),[U,T]=(0,l.useState)(u("Evaluating the task")),[F,P]=(0,l.useState)(!1),q=E||v,{limits:z}=null!==g&&void 0!==g&&g.limits?g:{limits:{ai_img_limit:0}},{ai_img_limit:j}=z,H=j>0&&_>=j,W=!(!g.limits||!g.counters)&&b.EW.isPlugin,K=(0,l.useCallback)(()=>{S.fire({name:"AiImgCount",count:_+1})},[S,_]),V=(0,l.useMemo)(()=>!H&&(!W||0===j||_<j),[H,W,_,j]),Q=(0,l.useCallback)(async()=>{T(u("Evaluating the task")),""===s||c||(m(!0),P(!0),o([]),A({event:"submit_form",action:"ai_image_generation",entity_id:E,project_id:k}),R({body:{project_id:k,request:"create-image",connection:"midjourney",message:s}}).then(({data:e,error:t})=>{if(t)throw t;if(401===e.data.status)throw new Error(b.ff);200===(null===e||void 0===e?void 0:e.data.status)?(null!==e&&void 0!==e&&e.data.task.id&&(T(e.data.task.message),x(e.data.task.id)),e.message&&p.success({id:"AI_IMAGE_SEND_SUCCESS",message:e.message,placement:"bottomRight",data:s}),C({task_id:null===e||void 0===e?void 0:e.data.task.id,entity_id:q})):(m(!1),P(!1),p.error({id:"AI_IMAGE_SEND_ERROR",message:(null===e||void 0===e?void 0:e.message)||u("Something went wrong, please try again"),placement:"bottomRight",data:s,innerException:e}))}).catch(e=>{m(!1),P(!1),(null!==e&&void 0!==e&&e.error||null!==e&&void 0!==e&&e.data)&&p.fromError("AI_IMAGE_SEND_ERROR",s,e.error||e)}))},[s,c,m,P,o,A,E,k,R,p,C,q,u]),$=(0,l.useCallback)(()=>{V?(W&&(B(e=>e+1),K()),Q()):W&&p.error({message:u("The usage limit has been exceeded"),description:u("The maximum number of requests for the current subscription period has been reached.\nSelect the appropriate plan to fulfil more requests"),placement:"bottomRight"})},[V,W,B,K,Q,p,u]);(0,l.useEffect)(()=>{var e;W&&B((null===g||void 0===g||null===(e=g.counters)||void 0===e?void 0:e.ai_img_counter)||0)},[g,W]);const Z=(0,l.useCallback)(e=>{if(!i){n(!0);const a=e.match(/^data:image\/([A-Za-z-+/]+);base64,(.+)$/);if(!a)return;const l=a[1],i=a[2],s=atob(i),r=new Array(s.length);for(let e=0;e<s.length;e++)r[e]=s.charCodeAt(e);const o=new Uint8Array(r),c=new Blob([o],{type:`image/${l}`}),m=new File([c],"image.jpeg",{type:c.type});t({file:m})}},[i,n,t]),Y=(0,l.useCallback)(e=>{"error"!==e.status&&"Canceled"!==e.status?e.images?(T(e.status),100===e.progress&&(o(e.images),T(u("Evaluating the task")),x(null),P(!1))):(o([e.data]),m(!1)):(m(!1),P(!1),p.error({id:"AI_IMAGE_GET_ERROR",message:u("Something went wrong, please try again"),placement:"bottomRight",data:O}))},[o,T,u,m,e,O,p,P]);return(0,l.useEffect)(()=>{L.length>1&&Y(L[L.length-1])},[L,Y]),(0,l.useEffect)(()=>{(c||r.length>0)&&setTimeout(()=>{let t=550;a.current&&(t=a.current.offsetHeight+68),e(t)},0)},[a,L,r.length,c,e]),{aiImageCounter:_,setAiImageCounter:B,currentAiImgLimits:j,isFieldsDisabled:H,canGenerateImage:V,aiImageRequest:s,imageAiList:r,setImageAiList:o,isLoadingAi:c,setIsLoadingAi:m,loadingDuringGeneration:F,setLoadingDuringGeneration:P,requestStatus:U,setRequestStatus:T,handleGenerate:$,handleLimitAiImgCount:K,convertBase64ToFile:Z,isShiftPressed:D,setIsShiftPressed:G,currentReqId:O,setCurrentReqId:x,limitsInPlugin:W}}({setModalHeight:e,customRequest:t,aiTabRef:a,isImageUploaded:n,setIsImageUploaded:s,aiImageRequest:c,imageAiList:u,setImageAiList:g,isLoadingAi:A,setIsLoadingAi:E}),{__:O}=(0,h.s9)(),[x,D]=(0,l.useState)(!1),G=(0,l.useCallback)(()=>D(!0),[]),U=(0,l.useCallback)(()=>D(!1),[]),T=(0,l.useCallback)(e=>m(e.target.value),[m]),F=(0,l.useCallback)(e=>{"Shift"===e.key?_(!0):"Enter"!==e.key||S||(e.preventDefault(),L())},[S,L,_]),P=(0,l.useCallback)(e=>{"Shift"===e.key&&_(!1)},[_]);return l.createElement("div",{className:"image-ai"},B&&l.createElement(le.A,{text:"images",counter:v,limits:k,wrapperStyles:{marginTop:-25}}),l.createElement(q.A,{gutter:24,className:"image-ai__row"},l.createElement(z.A,{span:24},l.createElement(r.A.Item,{style:{margin:0}},l.createElement("span",{className:"ant-input-affix-wrapper ant-input-affix-wrapper-lg image-ai__input-affix-wrapper"+(x?" ant-input-affix-wrapper-focused":"")},l.createElement(o.A.TextArea,{ref:i,onKeyDown:F,onKeyUp:P,onFocus:G,onBlur:U,autoSize:!0,allowClear:!0,className:"text-area-input-hybrid image-ai__textarea",placeholder:O("Generate image"),value:c,onChange:T,spellCheck:"false"}),l.createElement("span",{className:"ant-input-suffix image-ai__input-suffix"},A||w?l.createElement(p.A,{className:"input-icon image-ai__input-icon",spin:!0}):l.createElement($.A,{icon:"AI",className:"input-icon image-ai__input-icon",onClick:L})))))),(A||u.length>0)&&l.createElement(J.A,{dotPosition:"top",arrows:!0,nextArrow:l.createElement(se,null),prevArrow:l.createElement(re,null),className:"image-ai__carousel"},A&&l.createElement("div",{className:"image-ai__loading"},l.createElement("div",{className:"spin"},l.createElement(p.A,{style:{fontSize:48},spin:!0}),l.createElement("p",{className:"status"},I))),u.length>0&&u.map((e,t)=>l.createElement("div",{key:t,className:"image-ai__image-item"},l.createElement(ae,{images:u}),l.createElement("div",{className:"buttons"},u.length>0&&l.createElement(C.Ay,{onClick:()=>R(`data:image/jpeg;base64, ${e}`),icon:l.createElement(te.A,null)},O("Use this one")))))))},ce=({setNewLink:e,setCurrentImageLink:t,setModalHeight:a,setModalWidth:i,setImageGifList:n,imageGifList:s,currentReqGif:c,setCurrentReqGif:u,inputRef:d,setStockLink:g,customRequest:f})=>{const{__:A}=(0,h.s9)(),[E,v]=(0,l.useState)(null),[k,w]=(0,l.useState)(!1),[I,b]=(0,l.useState)(25),[L]=(0,y.eo)(),R=async()=>{var e,t;const l=await L({query:c,page:0});(null===l||void 0===l||null===(e=l.data)||void 0===e||null===(t=e.data)||void 0===t?void 0:t.length)>0&&(n(l.data.data),setTimeout(()=>{a("84vh"),i(1060)},0))},C=l.createElement(p.A,{style:{fontSize:20},spin:!0});return l.createElement("div",{className:"stock-tab"},l.createElement(r.A,{onValuesChange:R,className:s.length>0?"serach-results":""},l.createElement(q.A,{gutter:24},l.createElement(z.A,{span:s.length>0?"":24},l.createElement(r.A.Item,{className:"stock-search-input"},l.createElement(o.A,{onKeyDown:e=>"Space"===e.code&&R(),onPressEnter:e=>R(),allowClear:!0,size:s.length>0?"medium":"large",placeholder:A("Search GIFs"),value:c.keywords,onChange:e=>u(t=>({...t,keywords:e.target.value})),ref:d,spellCheck:"false",suffix:l.createElement(Q.A,{onClick:R,className:"cards-search__search-icon, input-icon",style:{fontSize:"16px",cursor:"pointer"}})})))),s.length>0&&l.createElement("div",{className:"blocks-search__divider-wrapper"},l.createElement("div",{className:"ant-divider ant-divider-horizontal blocks-search__divider",role:"separator"}))),l.createElement("div",{className:"serach-output-wrapper",style:{marginRight:-10}},s.length>0&&l.createElement("div",{id:"scrollableDiv",style:{width:"100%",height:"calc(84vh - 148px)",overflow:"auto",paddingTop:24,paddingRight:14,paddingLeft:24,marginLeft:-24,lineHeight:"0",boxSizing:"unset"}},l.createElement(K.A,{dataLength:s&&s.length,next:async()=>{k||(w(!0),L({query:c,page:I}).then(e=>{n(t=>[...t,...e.data.data]),w(!1),b(e=>e+25)}).catch(()=>{w(!1)}))},hasMore:s,endMessage:l.createElement(W.A,{plain:!0},A("That`s all we could find.")," \ud83e\udd10"),scrollableTarget:"scrollableDiv",style:{overflow:"visible"},loader:l.createElement(m.A,{indicator:C})},l.createElement(V.A,{breakpointCols:{default:3},className:"my-masonry-grid",columnClassName:"my-masonry-grid_column"},s.map((e,a)=>l.createElement("div",{className:"list-item",key:e.id+a,onClick:()=>{return a=e.images.downsized.url,l=e.id,v(l),setTimeout(()=>{v(null)},2e3),g(`${a}`),t(`${a}`),void f(`${a}`);var a,l}},l.createElement("img",{className:E===e.id?"loaded-image":"",width:"322px",src:`${e.images.downsized.url}`,alt:e.title,onLoad:e=>e.target.parentNode.classList.add("loaded")}),l.createElement("a",{rel:"noreferrer",href:"https://giphy.com/",target:"_blank",onClick:e=>e.stopPropagation()},l.createElement("div",{className:"overlay-image",style:{backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAkCAYAAAB/up84AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABSBJREFUeNrsWjFv2zoQVoMW8BZ18xaN3qLRW9QtW9OtW92to98vaPoP3K1b1S1b3c2jvWlUNm3lw1s8Mpu3PAo4Iocr70jKlp0COuCQlpKPx/t43x1pv3h8fEwGeT5yNoTgeclLZvza6NgxXoNaGRktjE6MpjC2NVqh92bwt4HxBI1ro0s0dgN2tvD5a8a/9vkq0M+xYKdG81A7Gp6pyBjZddrnO6N36Hkbqyn8u4L3vYC0hjLHeAbPVhC4TwAK/ewNvLsEhyxgFXLK2l/D4tvnOVrUiPEh1k/JjvLYyWENdeTcKazBBr6AdY4AqBTmbkIzhO4gvMumYLxAYKzgPTvhBBajYNwCksHYhOyYiow1KONaKYlfO8bPEWyGEfi5Iu+Vjizg7EzB3xvwWTMxWkHG4mDnMF6BnSnYncLzHWGG4BqiwZkKQMC7I0cOVTCJhvRUKNgNCmCOxhNmrBEWzwGi0Y6rIihbsnOH/JgE2hshKrLZv4Px9yhj1twafRlid/UIGWvlFdlVLirIkIM12nETGLeO2tTPECBUZuT/a7JBMpSxUybYLjulUCN2iEpHQoyuGWZJUCa8R/VGSZvGB0iOdjAO9n8EtC2zUxICSIoW0ICTmA53DCDKQzWZg89XAXZ2B2iMavBnjDKpBX6B1tnAM5aqQgGhnU2D6GmHuqw7AkaOPmP/bsHpFC1kTLqVhglS6fFNgX1MCXUHO1zR1h5AFOoSc1jjmKx/An/1PoBQasBSoZZ3hpyaOrg0IW2sRkG8JsU8CaCaLckAhfi6AG0cmeuzkyMQMtL+SiySkY3oA/EgGeICK0UOZYQKVsQpDAjm2BpsaAGQLMKnMdok3yLtpKS70yT7OUBcm7UTHb5grk5y1Csrj40MqUbUpgW7NXo+RunckODkQvdXM37iwm7b1VA7lAaVB4jUUZOUIzNxfOougAwy3GUN0qWG2IJJ09V2NcvIFE8c54nQelEHFM6C6chUhI+WZjjffDQkrenPhqmlrAC9Naof/aLhXZeNNfMZOk+MtPOVRjNmTpfcCut0+biGZ3PBj1ywWTOfqV3v+yjLFuDPRs8Ddu05vLtmsuHQ0s73wehvR0t7aGkPevfCM5fcGr0MbOW9NSSFwF52cP5KcLIv+X4EUGbCemcOqpoz73/haE4CZNkRjAR20vwENXHRc2bWEMyQuUuGVe4hc6K6rBmg7pKN0XdGX7dts9E3Rr8afUATFl1PqgLAG6T3AoX1nSVtMP9l5r5FVyiu+D14/YssRHOheGVQYNMeinrhsMcV2WVPRR1rIRT4QmiA5r4G6oxp0y6ZzFh4LvhmB84MHz1xta9vWQMrcFR/3iF+7DmEu2YoyTshRbuMvGE9hnwGPQR1tdR04aCueKrqAIgiu/AqcCf1JXPhfuoYosGHn4Hgqa6AnCK4IfSkCa1eCJRxLGnn+mX0rfDOJok4AsQAUpwQlND2++HIgNiOVO1LVRIgtXDPs0bpunEU08vktHLMpoJS1/d9qEo6h6gAzq7RRaPV+QmBeICzUUh2fIHzk0s3HedXwkEy2ReQmjn4XDzDjqkN4D/J04/y/np5KbSrrtbwAyx+kTxdf9tfpvSZIW9O3FScHJAF8PEFc5F2lQzSi5wJheoG3U/t0xYOcgBAcOHuAkr7mY9ditoAiCz2q8uvEcD8gJpSDuGNl5hfnaTJ0/fpheMUr4CitHCO6fqdesj359xh1tWiqggfdUCmcz9ZivZ7+BnQM5P/BRgABx8sJWqTxoYAAAAASUVORK5CYII=)"}})),E===e.id&&l.createElement(m.A,{className:"ant-spin",indicator:l.createElement(p.A,{spin:!0})}))))))))};var me=a(48956),ue=a(40277);const de="IMG",ge="BACKGROUND",pe="EDITOR",he="UPLOAD",fe="STOCK",Ae="GIF",Ee="AI",{Dragger:ye}=n.A,ve=()=>{var e,t;const a=(0,ie.rD)(),{__:n}=(0,h.s9)(),L=(0,i.wA)(),{projectId:R}=(0,f.g)(),[C,S]=(0,E.dS)(),[_]=(0,y.FQ)(),{modal:B}=s.A.useApp(),O=(0,d.hN)(),x=(0,i.d4)(v.B$),D=(0,i.d4)(v.C1),G=(0,i.d4)(k.cL),U=(0,i.d4)(w.js),T=(0,i.d4)(w.Ac),[F,q]=(0,l.useState)(""),[z,j]=(0,l.useState)(""),[H,W]=(0,l.useState)(""),[K,V]=(0,l.useState)(""),[Q,$]=(0,l.useState)(he),[Z,J]=(0,l.useState)({width:"",height:"",size:"",format:""}),[X,ee]=(0,l.useState)("success"),[te,ae]=(0,l.useState)(!1),le=l.useRef(null),ne=l.useRef(null),se=l.useRef(null),re=l.useRef(null),ve=l.useRef(null),ke=l.useRef(null),we=l.useRef(null),Ie=l.useRef(null),be=l.useRef(null),[Le,Re]=(0,l.useState)("auto"),[Ce,Se]=(0,l.useState)(572),[_e,Be]=(0,l.useState)(null),[Ne,Oe]=(0,l.useState)(!1),[Me,xe]=(0,l.useState)({keywords:"",color:"",orientation:""}),[De,Ge]=(0,l.useState)({keywords:""}),[Ue,Te]=(0,l.useState)([]),[Fe,Pe]=(0,l.useState)([]),[qe,ze]=(0,l.useState)([]),[je,He]=(0,l.useState)(!1),[We,Ke]=(0,l.useState)(""),[Ve,Qe]=(0,l.useState)(!1),[$e,Ze]=(0,l.useState)(0),Ye=(0,i.d4)(I.yN),Je=(0,N.ml)(M.AZ.FILE_PROXY_EVENT_ID);let Xe=!(x||(null===(e=D.id)||void 0===e?void 0:e.toString())!==(null===Ye||void 0===Ye||null===(t=Ye.members)||void 0===t?void 0:t.owner.ID))&&!1;const et=async e=>{if(e)try{const t=await tt(e);lt({url:e}),t&&it(t)&&nt({file:t})}catch(t){}},tt=async e=>{try{const t=(await Je.fire({url:e,project:Ye})).filter(e=>e instanceof Blob)[0];if(t)return t;const a=`https://api.useblocks.io/tools/file-proxy.php?url=${encodeURIComponent(e)}`,l=await fetch(a);if(!l.ok)throw new Error(`Server returned ${l.status}`);const i=await l.blob();return new File([i],e.split("/").pop(),{type:i.type})}catch(t){}};document.onpaste=function(e){const t=e.clipboardData.items[0];if(Q===he&&K){if(0===t.type.indexOf("image")){const e=t.getAsFile();it(e);const a={file:e};j(""),nt(a)}0===t.type.indexOf("text")&&t.getAsString(e=>{"http"===e.slice(0,4)?(j(""),q(e),lt({url:e})):"meta"===e.toString().slice(1,5)&&(j(""),q(e.toString().split('"')[1]),lt({url:e.toString().split('"')[1]}))})}};const at=(0,l.useMemo)(()=>({IMG:U,BACKGROUND:T}),[U,T]);(0,l.useEffect)(()=>{const e=e=>{let t=null;G.includes("UPLOAD_BACKGROUND_MODAL")?(t=ge,V(ge)):G.includes("UPLOAD_IMAGE_MODAL")&&(V(de),t=de),at[t]&&(q(at[t]),$(e))};G===b.lx.UPLOAD_IMAGE_MODAL||G===b.lx.UPLOAD_BACKGROUND_MODAL?e(pe):G===b.lx.UPLOAD_IMAGE_MODAL_AI||G===b.lx.UPLOAD_BACKGROUND_MODAL_AI?(Xe?(Qe(!0),Ze(2)):e(Ee),setTimeout(()=>{var e;return null===(e=be.current)||void 0===e?void 0:e.focus({cursor:"start"})},100)):G===b.lx.UPLOAD_IMAGE_MODAL_UPLOAD||G===b.lx.UPLOAD_BACKGROUND_MODAL_UPLOAD?(e(he),setTimeout(()=>{var e;return null===(e=ke.current)||void 0===e?void 0:e.focus({cursor:"start"})},100)):G===b.lx.UPLOAD_IMAGE_MODAL_STOCK||G===b.lx.UPLOAD_BACKGROUND_MODAL_STOCK?(Xe?(Qe(!0),Ze(3)):e(fe),setTimeout(()=>{var e;return null===(e=Ie.current)||void 0===e?void 0:e.focus({cursor:"start"})},100)):G===b.lx.UPLOAD_IMAGE_MODAL_GIF||G===b.lx.UPLOAD_BACKGROUND_MODAL_GIF?(Xe?(Qe(!0),Ze(3)):e(Ae),setTimeout(()=>{var e;return null===(e=we.current)||void 0===e?void 0:e.focus({cursor:"start"})},100)):G===b.lx.UPLOAD_IMAGE_MODAL_EDIT||G===b.lx.UPLOAD_BACKGROUND_MODAL_EDIT?(Xe?(Qe(!0),Ze(5)):e(pe),L((0,k.Wz)(b.lx.IMAGE_EDITOR_MODAL))):V("")},[G,L,Xe,at]);const lt=(0,l.useCallback)(({url:e=F||""})=>{q(e),K===de&&L((0,w.tm)(e)),K===ge&&L((0,w.e_)(e)),setTimeout(()=>{xe({keywords:"",color:"",orientation:""}),Ge({keywords:""}),Pe([]),Te([]),V(""),Ke(""),He(!1),W(""),j(""),$(he)},200),L((0,k.Oo)()),L((0,k.Os)())},[F,L,K]);(0,l.useEffect)(()=>{const e=z||H;e?(0,ue.DI)(e).then(t=>{ee(t),Se(572),setTimeout(()=>{let e=0;ne.current&&(e=ne.current.offsetHeight+62),Re(e)},0),lt(e)}).catch(e=>{ee(e)}):ee("")},[z,H,lt]),(0,l.useEffect)(()=>{F&&_(F).then(({data:e})=>{J({width:null===e||void 0===e?void 0:e.width,height:null===e||void 0===e?void 0:e.height,size:((null===e||void 0===e?void 0:e.fileSize)/1024).toFixed(2),format:null===e||void 0===e?void 0:e.format})})},[F,_]);(0,l.useEffect)(()=>{var e;""===Me.keywords&&(null===ke||void 0===ke||null===(e=ke.current)||void 0===e||e.focus({cursor:"start"}),Pe([]),setTimeout(()=>{Re("auto"),Se(572)},0))},[Me,Pe,Re,Se]);const it=e=>{const t="image/jpeg"===e.type||"image/png"===e.type||"image/jpg"===e.type||"image/webp"===e.type||"image/gif"===e.type||"image/svg+xml"===e.type;return t||O.error({id:"IMAGE_UPLOAD_WRONG_FORMAT",data:e,message:"Upload",description:"You can only upload JPG/JPEG/PNG/WEBP/GIF/SVG file!"}),t},nt=({file:e})=>{const t="image/svg+xml"===e.type,l="image/webp"===e.type,i=e=>{const t=new Image;t.src=URL.createObjectURL(e),t.onload=()=>{(async e=>{Oe(!0);const t=e.file;try{"image/gif"!==t.type&&(e.file=await(0,A.A)(t,{maxSizeMB:a.compressMaxSize||.45,maxWidthOrHeight:a.compressMaxWidthOrHeight||2e3})),C(e).then(({error:e,data:a})=>{var l;if(e)O.fromError("IMAGE_UPLOAD_ERROR",t,e);else if(400===(null===a||void 0===a||null===(l=a.data)||void 0===l?void 0:l.status))O.error({id:"IMAGE_UPLOAD_ERROR",data:t,innerException:null===a||void 0===a?void 0:a.data,message:a.code,description:a.message});else{var i;const e=null===a||void 0===a||null===(i=a[0])||void 0===i?void 0:i.file_url;e&&(Re("auto"),ae(!1),lt({url:e})),O.success({id:"IMAGE_UPLOAD_SUCCESS",data:t,message:n("The image was successfully uploaded.")})}}).catch(e=>{}).finally(()=>{Oe(!1)})}catch(l){Oe(!1)}})({user_id:D.id,folder:R,file:e})}};t?((e,t)=>{const a=new FileReader;a.onload=function(a){const l=a.target.result,i=new Blob([l],{type:"image/svg+xml;charset=utf-8"}),n=URL.createObjectURL(i),s=new Image;s.onload=function(){const a=document.createElement("canvas");a.width=2*s.width,a.height=2*s.height,a.getContext("2d").drawImage(s,0,0,a.width,a.height),a.toBlob(a=>{const l=new File([a],e.name.replace(".svg",".png"),{type:"image/png"});t(l),URL.revokeObjectURL(n)},"image/png")},s.src=n},a.readAsText(e)})(e,e=>i(e)):l?((e,t,a=90)=>{const l=new Image;l.src=URL.createObjectURL(e),l.onload=()=>{const e=document.createElement("canvas");e.width=l.width,e.height=l.height;const i=e.getContext("2d");i.imageSmoothingEnabled=!0,i.imageSmoothingQuality="high",i.drawImage(l,0,0,e.width,e.height),e.toBlob(e=>{const a=new File([e],"converted.jpg",{type:"image/jpeg"});t(a)},"image/jpeg",a/100)},l.onerror=e=>{t(null)}})(e,e=>i(e)):i(e)},st=e=>nt({file:e});let rt=[{label:n("Upload"),key:he,children:l.createElement("div",{ref:le,style:{paddingBottom:24}},l.createElement(ye,{showUploadList:!1,name:"Image",beforeUpload:it,customRequest:nt,style:{marginBottom:10},multiple:!1,accept:"image/png, image/jpeg, image/jpg, image/webp, image/gif, image/svg+xml"},l.createElement("p",{className:"ant-upload-drag-icon"},l.createElement(g.A,null)),l.createElement("p",{className:"ant-upload-text"},n("Click to select, paste from the clipboard, or drag and drop")),l.createElement("p",{className:"ant-upload-hint"},n("Accepted formats: PNG, JPG, WEBP, SVG or GIF."))),l.createElement(r.A,{style:{padding:"0 2px 0 2px"}},l.createElement(r.A.Item,{validateStatus:X},l.createElement(o.A,{ref:ke,allowClear:!0,size:"large",placeholder:n("Paste image URL here"),value:z,onChange:e=>{const t=e.target.value;j(t),_e&&clearTimeout(_e);const a=setTimeout(()=>et(t),1e3);Be(a)},spellCheck:"false"}))))}];a.imageCenterStockEnabled&&!Xe&&rt.push({label:n("Stock"),key:fe,children:l.createElement("div",{ref:se,style:{paddingBottom:24}},l.createElement(Y,{currentReq:Me,setCurrentReq:xe,imageStockList:Fe,setImageStockList:Pe,setModalWidth:Se,setModalHeight:Re,setStockLink:W,setCurrentImageLink:q,inputRef:Ie,customRequest:et}))}),a.imageCenterGifEnabled&&!Xe&&rt.push({label:n("GIF"),key:Ae,children:l.createElement("div",{ref:re,style:{paddingBottom:24}},l.createElement(ce,{currentReqGif:De,setCurrentReqGif:Ge,imageGifList:Ue,setImageGifList:Te,setModalWidth:Se,setModalHeight:Re,setStockLink:W,setCurrentImageLink:q,inputRef:we,customRequest:et}))}),a.elementAIimageEnabled&&!Xe&&rt.push({label:n("AI"),key:Ee,children:l.createElement("div",{ref:ve,style:{paddingBottom:24}},l.createElement(oe,{setModalHeight:Re,customRequest:nt,aiImageRequest:We,setAiImageRequest:Ke,imageAiList:qe,setImageAiList:ze,isLoadingAi:je,setIsLoadingAi:He,aiTabRef:ve,inputAiRef:be,isImageUploaded:te,setIsImageUploaded:ae}))}),a.imageCenterEditorEnabled&&rt.push({label:"",key:pe,children:l.createElement("div",{ref:ne},l.createElement(P,{currentImageLink:F,newLink:z,imageSize:Z,onSave:st,uploadImageResultIsLoading:S.isLoading||!1}))});const ot=l.createElement(p.A,{style:{fontSize:32,margin:-16},spin:!0});return l.createElement(l.Fragment,null,l.createElement(c.A,{width:Ce,className:"image-center blocks-modal",title:n("Image Center"),centered:!0,style:{minHeight:390},open:!!K,onOk:lt,onCancel:()=>{L((0,k.Oo)()),setTimeout(()=>{q(""),j(""),Pe([]),Pe([]),xe({keywords:"",color:"",orientation:""}),Ge({keywords:""}),Re("auto"),!je&&Ke(""),Se(572),$(he)},200)},footer:Q===pe?l.createElement(l.Fragment,null):null},l.createElement(m.A,{spinning:Ne,indicator:ot},l.createElement(u.A,{activeKey:Q,onChange:e=>{"GALLERY"===e?B.success({maskClosable:!0,centered:!0,title:n("Coming soon"),content:n("The feature is under development."),okText:n("Ok. I'll be waiting"),onOk:()=>{}}):e===pe&&""===F?B.warning({maskClosable:!0,centered:!0,title:n(""),content:n("To preview and edit the uploaded image"),okText:n("Upload Image"),onOk:()=>{$(he)}}):(setTimeout(()=>{let t=0,a=0;var l;if(e===he&&le.current)""===Me.keywords&&(null===(l=ke.current)||void 0===l||l.focus({cursor:"start"})),t=300,a=572;else if(e===pe&&ne.current)t=ne.current.offsetHeight+62,a=572;else if(e===fe&&se.current){var i;""===Me.keywords&&(null===(i=Ie.current)||void 0===i||i.focus({cursor:"start"})),t=130,a=572,Fe.length>0&&(a=1060,t="84vh")}else if(e===Ae&&re.current){var n;""===Me.keywords&&(null===(n=we.current)||void 0===n||n.focus({cursor:"start"})),t=130,a=572,Ue.length>0&&(a=1060,t="84vh")}else if(e===Ee&&ve.current){var s;if(""===We&&0===qe.length)null===(s=be.current)||void 0===s||s.focus({cursor:"start"}),t=130;else t=ve.current.offsetHeight+82;a=572}Re(t),Se(a)},0),$(e))},items:rt,style:{height:Le,minHeight:130}}))),l.createElement(me.A,{open:Ve,onCancel:()=>Qe(!1),initialSlide:$e}))}}}]);
|