@emailmaker/emailmaker 1.1.56 → 1.1.62
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/emailmaker-core.588c2a00.js +673 -0
- package/emailmaker-esm.js +886 -523
- package/emailmaker.d.ts +166 -158
- package/emailmaker.js +774 -403
- package/iframe/js/amp.V09Q6hy6.js +1 -1
- package/iframe/js/iframe-eblock.js +1 -1
- package/iframe/js/iframe.js +1 -1
- package/iframe/js/rules.B-wCbIo7.js +1 -1
- package/npm-publish.manifest.json +7 -7
- package/package.json +1 -1
- package/singlepage_headless_plugin.html +1 -1
- package/static/core/{e70f9e53.js → 149f1be2.js} +3 -3
- package/static/core/{afd04ca42.js → 14bac801.js} +13 -13
- package/static/core/{b4a6f1ca2.js → 15d6b9c02.js} +4 -4
- package/static/core/{8c25dd23.js → 17432659.js} +3 -3
- package/static/core/{8085f3fa2.js → 1ad06ad4.js} +3 -3
- package/static/core/{539230842.js → 1bfa4a862.js} +3 -3
- package/static/core/{87d6fa75.js → 1d8d16e5.js} +6 -6
- package/static/core/{1d75619c.js → 1dcbf663.js} +3 -3
- package/static/core/{17f94ad52.js → 227f9a41.js} +5 -5
- package/static/core/{4f78c021.js → 25988409.js} +3 -3
- package/static/core/{3250c950.js → 271a49fb.js} +7 -7
- package/static/core/27932b71.js +43109 -0
- package/static/core/{506daa27.js → 29051452.js} +3 -3
- package/static/core/{622296c02.js → 2cfb56bd2.js} +3 -3
- package/static/core/{ace72da12.js → 2d52ee4e2.js} +3 -3
- package/static/core/{9be94d262.js → 2d89e8f32.js} +3 -3
- package/static/core/{377ad6942.js → 310a7e6a2.js} +6 -6
- package/static/core/{5761661e.js → 3156997d.js} +3 -3
- package/static/core/{ca7f843e.js → 319db1a52.js} +3 -3
- package/static/core/{bad4a53d2.js → 34a063a22.js} +3 -3
- package/static/core/{1c4804a5.js → 35d38b9a.js} +3 -3
- package/static/core/{8cd348a92.js → 364eb3852.js} +3 -3
- package/static/core/{6593a8582.js → 371b11182.js} +5 -5
- package/static/core/{d2ea4cba2.js → 3a580bd62.js} +3 -3
- package/static/core/{c1472fa3.js → 3c9b91ec.js} +21 -21
- package/static/core/{adae989e.js → 3ee18f2b.js} +3 -3
- package/static/core/{3bec2ea52.js → 3f7f42ec2.js} +3 -3
- package/static/core/{e6b6e0ca.js → 4031d739.js} +195 -194
- package/static/core/{242c50bf.js → 434c7eda2.js} +3 -3
- package/static/core/{aa388327.js → 46e22b84.js} +3 -3
- package/static/core/{116ebe97.js → 48fd8092.js} +610 -556
- package/static/core/{96c4c9cb2.js → 4b2be4062.js} +3 -3
- package/static/core/{d05b5003.js → 4e33c418.js} +3 -3
- package/static/core/{ffd61885.js → 4e7df2bb.js} +17 -17
- package/static/core/{c661bd46.js → 51a22b29.js} +3 -3
- package/static/core/{1f738c722.js → 537db3fa2.js} +3 -3
- package/static/core/{41907e94.js → 5663df72.js} +2640 -2556
- package/static/core/{635a3376.js → 575c1be3.js} +3 -3
- package/static/core/{16c2710d.js → 57b7148c.js} +268 -327
- package/static/core/{90577da02.js → 57dfc32e2.js} +3 -3
- package/static/core/{318e82a82.js → 5964c48f2.js} +3 -3
- package/static/core/{95fcea69.js → 5b4bfdc0.js} +7 -7
- package/static/core/{78af8ee9.js → 5c2a668f.js} +3 -3
- package/static/core/{819fef65.js → 6076ed7e.js} +3 -3
- package/static/core/{7f6ab3812.js → 60dc03552.js} +3 -3
- package/static/core/613bcc0a.js +1072 -0
- package/static/core/{76f8b642.js → 6149e6d4.js} +1639 -1490
- package/static/core/{c6b26fc92.js → 668756522.js} +3 -3
- package/static/core/{5cf70dbb.js → 67a4e05c.js} +3 -3
- package/static/core/6df8804e.js +29 -0
- package/static/core/{51fd08fd.js → 6e7c1c68.js} +3 -3
- package/static/core/{86a167002.js → 6f213c532.js} +7 -7
- package/static/core/{aa8e5c1c2.js → 707c11bf2.js} +5 -5
- package/static/core/{5f47e3d2.js → 7144829c2.js} +3 -3
- package/static/core/{c874b7982.js → 7200aced.js} +3 -3
- package/static/core/{31dccbcb2.js → 72806c12.js} +5 -5
- package/static/core/{d7506406.js → 73d8bc22.js} +5 -5
- package/static/core/{b5a43dd2.js → 7463de00.js} +3 -3
- package/static/core/{100f1a1f.js → 75cf1a90.js} +118 -118
- package/static/core/{8c887aba.js → 7da0a678.js} +12342 -11901
- package/static/core/{12c04417.js → 80d7bfb8.js} +3 -3
- package/static/core/{6dcd0dc9.js → 81b72210.js} +114 -116
- package/static/core/{6bc4ff83.js → 8222ef9d.js} +1694 -1693
- package/static/core/{218f32382.js → 88d5dd5c2.js} +3 -3
- package/static/core/{4de323c6.js → 88e254d8.js} +3 -3
- package/static/core/{6f705512.js → 89779037.js} +3 -3
- package/static/core/{eed8c9102.js → 89a7f5e22.js} +3 -3
- package/static/core/{2f9af6ed2.js → 8b25ab0f2.js} +3 -3
- package/static/core/8eb0b7cd.js +389 -0
- package/static/core/{5d47492b2.js → 9106dd642.js} +3 -3
- package/static/core/{b1670e4f.js → 92d3d1a9.js} +3 -3
- package/static/core/{35e26acd.js → 93f3e6dc.js} +5 -5
- package/static/core/{c512e5ce2.js → 95fa393a2.js} +3 -3
- package/static/core/{69c56b8e2.js → 996d1d512.js} +3 -3
- package/static/core/9c8553be.js +2404 -0
- package/static/core/{5d5063cb2.js → 9c9dde252.js} +5 -5
- package/static/core/{1f7b8650.js → 9d20ebd5.js} +3 -3
- package/static/core/{270b3da62.js → 9fc67893.js} +3 -3
- package/static/core/{d804d9802.js → a11cd5642.js} +3 -3
- package/static/core/a53e376b.js +1241 -0
- package/static/core/{54db7dc92.js → a9e90b632.js} +5 -5
- package/static/core/{dca60a652.js → aae0d578.js} +4 -4
- package/static/core/{dd01e9a2.js → abbb437b2.js} +3 -3
- package/static/core/{d35a3615.js → adf38d4b.js} +3 -3
- package/static/core/{70ffba302.js → aebb34822.js} +3 -3
- package/static/core/{b8353d47.js → af6b87cb.js} +3 -3
- package/static/core/{5a6e1525.js → b1e55882.js} +6 -6
- package/static/core/{c3069a312.js → b3b3281c2.js} +3 -3
- package/static/core/{9555a8e62.js → b67fcff12.js} +3 -3
- package/static/core/{b654a72e.js → ba3f6ae3.js} +4685 -4315
- package/static/core/{66d60eb72.js → bae89f052.js} +3 -3
- package/static/core/{d76199d02.js → bcf642bb2.js} +13 -13
- package/static/core/{916b241e.js → bdf2af9d.js} +763 -766
- package/static/core/{d3ae23d5.js → c0fde0fe.js} +3 -3
- package/static/core/{fd0c6ce7.js → c48ee4d52.js} +15 -15
- package/static/core/c64d880f.js +68 -0
- package/static/core/{ea8cafa32.js → c6c12a4c2.js} +3 -3
- package/static/core/{7fe27a53.js → c6db3a31.js} +3 -3
- package/static/core/{3b0afd352.js → caf4f82e2.js} +16 -16
- package/static/core/{c3ea336f.js → cb05db0a2.js} +4 -4
- package/static/core/{597e1d75.js → cbf00549.js} +3 -3
- package/static/core/cc1c5d33.js +27 -0
- package/static/core/{8c9939fb.js → cec04bb12.js} +3 -3
- package/static/core/{7515f9852.js → cf4af6152.js} +3 -3
- package/static/core/{ec49e46f.js → cffc0d1c.js} +3 -3
- package/static/core/{2fde532a.js → d06b7a22.js} +3 -3
- package/static/core/{c1b1ba88.js → d1e45451.js} +5 -5
- package/static/core/d3d2bbf4.js +2695 -0
- package/static/core/{c5303e572.js → d40acbef2.js} +5 -5
- package/static/core/{11a666c2.js → d4c4a927.js} +3 -3
- package/static/core/{b6cc5b522.js → d4fae48f2.js} +11 -11
- package/static/core/{e57264b8.js → d5363339.js} +5 -5
- package/static/core/d67461aa.js +465 -0
- package/static/core/{2b5e60312.js → d8e8c189.js} +3 -3
- package/static/core/{58aad9f1.js → d95c732e.js} +3 -3
- package/static/core/{45f2fe4b.js → dc3e2e44.js} +3 -3
- package/static/core/{841878cb.js → dc6c47462.js} +3 -3
- package/static/core/{86ef0d53.js → e2f5fcb1.js} +9 -9
- package/static/core/{31662221.js → e3282461.js} +5 -5
- package/static/core/{6fa74330.js → e3f7dda5.js} +3 -3
- package/static/core/{cab478092.js → e47b96042.js} +3 -3
- package/static/core/{52eaf26f.js → ee605dd2.js} +3 -3
- package/static/core/{15b86cf0.js → ee84fb29.js} +3 -3
- package/static/core/{8e8884a02.js → f1c452562.js} +3 -3
- package/static/core/{f594ae6b.js → f341769b.js} +3 -3
- package/static/core/{1535e8cb.js → f577dd74.js} +3 -3
- package/static/core/f62e420c.js +15008 -0
- package/static/core/{99f9ee8b2.js → f63cbc642.js} +3 -3
- package/static/core/{29159a1e2.js → f88178782.js} +3 -3
- package/static/core/{c906b703.js → fabe8bf6.js} +3 -3
- package/static/core/fb984475.js +944 -0
- package/static/core/{559141b6.js → fde5b48c.js} +7 -7
- package/static/core/{cbbafcfd2.js → ff1278ae2.js} +3 -3
- package/static/core/{401e2e132.js → ff54d2c22.js} +3 -3
- package/static/core/{b67b272b.js → ffd09066.js} +3 -3
- package/static/esm/7cd4296a.js +131 -0
- package/static/esm/{8b0bebd1.js → adb3ef80.js} +48 -48
- package/static/media/image-editor/fonts/Rubik-Black.woff2 +0 -0
- package/static/media/image-editor/fonts/Rubik-Bold.woff2 +0 -0
- package/static/media/image-editor/fonts/Rubik-Light.woff2 +0 -0
- package/static/media/image-editor/fonts/Rubik-Regular.woff2 +0 -0
- package/static/media/image-editor/fonts/caveat-v23-cyrillic_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/commissioner-v24-cyrillic_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/inter-v20-cyrillic_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/oswald-v57-cyrillic_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/pacifico-v23-cyrillic_latin-regular.woff2 +0 -0
- package/static/media/image-editor/fonts/playfair-display-v40-cyrillic_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/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/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 -871
- package/static/media/image-editor/images/stickers/beach/0.svg +25 -25
- package/static/media/image-editor/images/stickers/beach/1.svg +14 -14
- package/static/media/image-editor/images/stickers/beach/10.svg +34 -34
- package/static/media/image-editor/images/stickers/beach/11.svg +27 -27
- package/static/media/image-editor/images/stickers/beach/12.svg +10 -10
- package/static/media/image-editor/images/stickers/beach/13.svg +25 -25
- package/static/media/image-editor/images/stickers/beach/14.svg +16 -16
- package/static/media/image-editor/images/stickers/beach/15.svg +14 -14
- package/static/media/image-editor/images/stickers/beach/16.svg +44 -44
- package/static/media/image-editor/images/stickers/beach/17.svg +35 -35
- package/static/media/image-editor/images/stickers/beach/18.svg +32 -32
- package/static/media/image-editor/images/stickers/beach/19.svg +23 -23
- package/static/media/image-editor/images/stickers/beach/2.svg +14 -14
- package/static/media/image-editor/images/stickers/beach/20.svg +24 -24
- package/static/media/image-editor/images/stickers/beach/21.svg +11 -11
- package/static/media/image-editor/images/stickers/beach/3.svg +26 -26
- package/static/media/image-editor/images/stickers/beach/4.svg +25 -25
- package/static/media/image-editor/images/stickers/beach/5.svg +22 -22
- package/static/media/image-editor/images/stickers/beach/6.svg +20 -20
- package/static/media/image-editor/images/stickers/beach/7.svg +32 -32
- package/static/media/image-editor/images/stickers/beach/8.svg +28 -28
- package/static/media/image-editor/images/stickers/beach/9.svg +18 -18
- 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 +17 -17
- package/static/media/image-editor/images/stickers/categories/clouds.svg +14 -14
- package/static/media/image-editor/images/stickers/categories/doodles.svg +12 -12
- package/static/media/image-editor/images/stickers/categories/emoticon.svg +9 -9
- package/static/media/image-editor/images/stickers/categories/landmark.svg +19 -19
- package/static/media/image-editor/images/stickers/categories/speech-bubble.svg +5 -5
- package/static/media/image-editor/images/stickers/categories/star.svg +5 -5
- package/static/media/image-editor/images/stickers/categories/transportation.svg +17 -17
- 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 -201
- package/static/media/image-editor/images/stickers/doodles/1.svg +255 -255
- package/static/media/image-editor/images/stickers/doodles/10.svg +160 -160
- package/static/media/image-editor/images/stickers/doodles/11.svg +393 -393
- package/static/media/image-editor/images/stickers/doodles/12.svg +293 -293
- package/static/media/image-editor/images/stickers/doodles/13.svg +251 -251
- package/static/media/image-editor/images/stickers/doodles/14.svg +370 -370
- package/static/media/image-editor/images/stickers/doodles/15.svg +194 -194
- package/static/media/image-editor/images/stickers/doodles/16.svg +383 -383
- package/static/media/image-editor/images/stickers/doodles/17.svg +346 -346
- package/static/media/image-editor/images/stickers/doodles/18.svg +286 -286
- package/static/media/image-editor/images/stickers/doodles/19.svg +241 -241
- package/static/media/image-editor/images/stickers/doodles/2.svg +227 -227
- package/static/media/image-editor/images/stickers/doodles/20.svg +330 -330
- package/static/media/image-editor/images/stickers/doodles/21.svg +200 -200
- package/static/media/image-editor/images/stickers/doodles/22.svg +308 -308
- package/static/media/image-editor/images/stickers/doodles/23.svg +518 -518
- package/static/media/image-editor/images/stickers/doodles/24.svg +207 -207
- package/static/media/image-editor/images/stickers/doodles/25.svg +260 -260
- package/static/media/image-editor/images/stickers/doodles/26.svg +380 -380
- package/static/media/image-editor/images/stickers/doodles/27.svg +222 -222
- package/static/media/image-editor/images/stickers/doodles/28.svg +164 -164
- package/static/media/image-editor/images/stickers/doodles/29.svg +271 -271
- package/static/media/image-editor/images/stickers/doodles/3.svg +272 -272
- package/static/media/image-editor/images/stickers/doodles/30.svg +283 -283
- package/static/media/image-editor/images/stickers/doodles/31.svg +257 -257
- package/static/media/image-editor/images/stickers/doodles/32.svg +276 -276
- package/static/media/image-editor/images/stickers/doodles/33.svg +198 -198
- package/static/media/image-editor/images/stickers/doodles/34.svg +314 -314
- package/static/media/image-editor/images/stickers/doodles/35.svg +236 -236
- package/static/media/image-editor/images/stickers/doodles/36.svg +273 -273
- package/static/media/image-editor/images/stickers/doodles/37.svg +284 -284
- package/static/media/image-editor/images/stickers/doodles/38.svg +167 -167
- package/static/media/image-editor/images/stickers/doodles/39.svg +381 -381
- package/static/media/image-editor/images/stickers/doodles/4.svg +216 -216
- package/static/media/image-editor/images/stickers/doodles/40.svg +198 -198
- package/static/media/image-editor/images/stickers/doodles/41.svg +259 -259
- package/static/media/image-editor/images/stickers/doodles/42.svg +371 -371
- package/static/media/image-editor/images/stickers/doodles/43.svg +198 -198
- package/static/media/image-editor/images/stickers/doodles/44.svg +174 -174
- package/static/media/image-editor/images/stickers/doodles/45.svg +178 -178
- package/static/media/image-editor/images/stickers/doodles/46.svg +211 -211
- package/static/media/image-editor/images/stickers/doodles/47.svg +195 -195
- package/static/media/image-editor/images/stickers/doodles/48.svg +293 -293
- package/static/media/image-editor/images/stickers/doodles/49.svg +191 -191
- package/static/media/image-editor/images/stickers/doodles/5.svg +179 -179
- package/static/media/image-editor/images/stickers/doodles/50.svg +323 -323
- package/static/media/image-editor/images/stickers/doodles/51.svg +308 -308
- package/static/media/image-editor/images/stickers/doodles/52.svg +162 -162
- package/static/media/image-editor/images/stickers/doodles/53.svg +263 -263
- package/static/media/image-editor/images/stickers/doodles/54.svg +175 -175
- package/static/media/image-editor/images/stickers/doodles/55.svg +177 -177
- package/static/media/image-editor/images/stickers/doodles/56.svg +160 -160
- package/static/media/image-editor/images/stickers/doodles/57.svg +115 -115
- package/static/media/image-editor/images/stickers/doodles/58.svg +327 -327
- package/static/media/image-editor/images/stickers/doodles/59.svg +197 -197
- package/static/media/image-editor/images/stickers/doodles/6.svg +388 -388
- package/static/media/image-editor/images/stickers/doodles/60.svg +414 -414
- package/static/media/image-editor/images/stickers/doodles/61.svg +287 -287
- package/static/media/image-editor/images/stickers/doodles/62.svg +193 -193
- package/static/media/image-editor/images/stickers/doodles/63.svg +329 -329
- package/static/media/image-editor/images/stickers/doodles/64.svg +150 -150
- package/static/media/image-editor/images/stickers/doodles/65.svg +275 -275
- package/static/media/image-editor/images/stickers/doodles/66.svg +174 -174
- package/static/media/image-editor/images/stickers/doodles/67.svg +343 -343
- package/static/media/image-editor/images/stickers/doodles/68.svg +242 -242
- package/static/media/image-editor/images/stickers/doodles/69.svg +160 -160
- package/static/media/image-editor/images/stickers/doodles/7.svg +194 -194
- package/static/media/image-editor/images/stickers/doodles/70.svg +365 -365
- package/static/media/image-editor/images/stickers/doodles/71.svg +454 -454
- package/static/media/image-editor/images/stickers/doodles/72.svg +162 -162
- package/static/media/image-editor/images/stickers/doodles/73.svg +393 -393
- package/static/media/image-editor/images/stickers/doodles/74.svg +206 -206
- package/static/media/image-editor/images/stickers/doodles/75.svg +275 -275
- package/static/media/image-editor/images/stickers/doodles/76.svg +350 -350
- package/static/media/image-editor/images/stickers/doodles/77.svg +323 -323
- package/static/media/image-editor/images/stickers/doodles/78.svg +316 -316
- package/static/media/image-editor/images/stickers/doodles/79.svg +503 -503
- package/static/media/image-editor/images/stickers/doodles/8.svg +185 -185
- package/static/media/image-editor/images/stickers/doodles/80.svg +235 -235
- package/static/media/image-editor/images/stickers/doodles/81.svg +184 -184
- package/static/media/image-editor/images/stickers/doodles/82.svg +246 -246
- package/static/media/image-editor/images/stickers/doodles/83.svg +125 -125
- package/static/media/image-editor/images/stickers/doodles/84.svg +168 -168
- package/static/media/image-editor/images/stickers/doodles/85.svg +138 -138
- package/static/media/image-editor/images/stickers/doodles/86.svg +223 -223
- package/static/media/image-editor/images/stickers/doodles/87.svg +475 -475
- package/static/media/image-editor/images/stickers/doodles/88.svg +172 -172
- package/static/media/image-editor/images/stickers/doodles/89.svg +199 -199
- package/static/media/image-editor/images/stickers/doodles/9.svg +368 -368
- package/static/media/image-editor/images/stickers/doodles/90.svg +298 -298
- package/static/media/image-editor/images/stickers/doodles/91.svg +176 -176
- package/static/media/image-editor/images/stickers/doodles/92.svg +152 -152
- package/static/media/image-editor/images/stickers/doodles/93.svg +206 -206
- package/static/media/image-editor/images/stickers/doodles/94.svg +202 -202
- package/static/media/image-editor/images/stickers/doodles/95.svg +114 -114
- package/static/media/image-editor/images/stickers/doodles/96.svg +149 -149
- package/static/media/image-editor/images/stickers/doodles/97.svg +197 -197
- package/static/media/image-editor/images/stickers/doodles/98.svg +397 -397
- package/static/media/image-editor/images/stickers/doodles/99.svg +502 -502
- package/static/media/image-editor/images/stickers/emoticons/afro-1.svg +122 -122
- package/static/media/image-editor/images/stickers/emoticons/afro.svg +85 -85
- package/static/media/image-editor/images/stickers/emoticons/agent.svg +114 -114
- package/static/media/image-editor/images/stickers/emoticons/alien-1.svg +60 -60
- package/static/media/image-editor/images/stickers/emoticons/alien.svg +64 -64
- package/static/media/image-editor/images/stickers/emoticons/angel.svg +47 -47
- package/static/media/image-editor/images/stickers/emoticons/angry-1.svg +83 -83
- package/static/media/image-editor/images/stickers/emoticons/angry-2.svg +48 -48
- package/static/media/image-editor/images/stickers/emoticons/angry-3.svg +45 -45
- package/static/media/image-editor/images/stickers/emoticons/angry-4.svg +52 -52
- package/static/media/image-editor/images/stickers/emoticons/angry-5.svg +62 -62
- package/static/media/image-editor/images/stickers/emoticons/angry.svg +78 -78
- package/static/media/image-editor/images/stickers/emoticons/arguing.svg +49 -49
- package/static/media/image-editor/images/stickers/emoticons/arrogant.svg +98 -98
- package/static/media/image-editor/images/stickers/emoticons/asian-1.svg +52 -52
- package/static/media/image-editor/images/stickers/emoticons/asian.svg +54 -54
- package/static/media/image-editor/images/stickers/emoticons/avatar.svg +49 -49
- package/static/media/image-editor/images/stickers/emoticons/baby-1.svg +51 -51
- package/static/media/image-editor/images/stickers/emoticons/baby-2.svg +54 -54
- package/static/media/image-editor/images/stickers/emoticons/baby.svg +66 -66
- package/static/media/image-editor/images/stickers/emoticons/bully.svg +68 -68
- package/static/media/image-editor/images/stickers/emoticons/burglar.svg +75 -75
- package/static/media/image-editor/images/stickers/emoticons/businessman.svg +52 -52
- package/static/media/image-editor/images/stickers/emoticons/cheeky-1.svg +83 -83
- package/static/media/image-editor/images/stickers/emoticons/cheeky.svg +73 -73
- package/static/media/image-editor/images/stickers/emoticons/clown.svg +75 -75
- package/static/media/image-editor/images/stickers/emoticons/confused-1.svg +74 -74
- package/static/media/image-editor/images/stickers/emoticons/confused-2.svg +55 -55
- package/static/media/image-editor/images/stickers/emoticons/confused-3.svg +45 -45
- package/static/media/image-editor/images/stickers/emoticons/confused.svg +66 -66
- package/static/media/image-editor/images/stickers/emoticons/creepy.svg +60 -60
- package/static/media/image-editor/images/stickers/emoticons/crying-1.svg +55 -55
- package/static/media/image-editor/images/stickers/emoticons/crying-2.svg +83 -83
- package/static/media/image-editor/images/stickers/emoticons/crying-3.svg +53 -53
- package/static/media/image-editor/images/stickers/emoticons/crying.svg +59 -59
- package/static/media/image-editor/images/stickers/emoticons/dazed-1.svg +63 -63
- package/static/media/image-editor/images/stickers/emoticons/dazed-2.svg +51 -51
- package/static/media/image-editor/images/stickers/emoticons/dazed-3.svg +55 -55
- package/static/media/image-editor/images/stickers/emoticons/dazed.svg +56 -56
- package/static/media/image-editor/images/stickers/emoticons/dead-1.svg +61 -61
- package/static/media/image-editor/images/stickers/emoticons/dead-2.svg +80 -80
- package/static/media/image-editor/images/stickers/emoticons/dead-3.svg +66 -66
- package/static/media/image-editor/images/stickers/emoticons/dead-4.svg +54 -54
- package/static/media/image-editor/images/stickers/emoticons/dead-5.svg +52 -52
- package/static/media/image-editor/images/stickers/emoticons/dead-6.svg +53 -53
- package/static/media/image-editor/images/stickers/emoticons/dead.svg +54 -54
- package/static/media/image-editor/images/stickers/emoticons/desperate-1.svg +47 -47
- package/static/media/image-editor/images/stickers/emoticons/desperate.svg +75 -75
- package/static/media/image-editor/images/stickers/emoticons/detective.svg +75 -75
- package/static/media/image-editor/images/stickers/emoticons/dissapointment.svg +70 -70
- package/static/media/image-editor/images/stickers/emoticons/doctor.svg +61 -61
- package/static/media/image-editor/images/stickers/emoticons/drunk.svg +55 -55
- package/static/media/image-editor/images/stickers/emoticons/dumb.svg +50 -50
- package/static/media/image-editor/images/stickers/emoticons/emo-1.svg +104 -104
- package/static/media/image-editor/images/stickers/emoticons/emo-2.svg +111 -111
- package/static/media/image-editor/images/stickers/emoticons/emo.svg +56 -56
- package/static/media/image-editor/images/stickers/emoticons/emoticon.svg +84 -84
- package/static/media/image-editor/images/stickers/emoticons/evil.svg +59 -59
- package/static/media/image-editor/images/stickers/emoticons/faint-1.svg +75 -75
- package/static/media/image-editor/images/stickers/emoticons/faint.svg +84 -84
- package/static/media/image-editor/images/stickers/emoticons/flirt-1.svg +81 -81
- package/static/media/image-editor/images/stickers/emoticons/flirt-2.svg +68 -68
- package/static/media/image-editor/images/stickers/emoticons/flirt.svg +71 -71
- package/static/media/image-editor/images/stickers/emoticons/flirty.svg +60 -60
- package/static/media/image-editor/images/stickers/emoticons/gangster.svg +54 -54
- package/static/media/image-editor/images/stickers/emoticons/geek-1.svg +76 -76
- package/static/media/image-editor/images/stickers/emoticons/geek.svg +69 -69
- package/static/media/image-editor/images/stickers/emoticons/gentleman-1.svg +82 -82
- package/static/media/image-editor/images/stickers/emoticons/gentleman-2.svg +58 -58
- package/static/media/image-editor/images/stickers/emoticons/gentleman-3.svg +54 -54
- package/static/media/image-editor/images/stickers/emoticons/gentleman-4.svg +59 -59
- package/static/media/image-editor/images/stickers/emoticons/gentleman.svg +57 -57
- package/static/media/image-editor/images/stickers/emoticons/ginger.svg +55 -55
- package/static/media/image-editor/images/stickers/emoticons/girl-1.svg +70 -70
- package/static/media/image-editor/images/stickers/emoticons/girl.svg +73 -73
- package/static/media/image-editor/images/stickers/emoticons/goofy-1.svg +46 -46
- package/static/media/image-editor/images/stickers/emoticons/goofy-2.svg +79 -79
- package/static/media/image-editor/images/stickers/emoticons/goofy-3.svg +79 -79
- package/static/media/image-editor/images/stickers/emoticons/goofy-4.svg +46 -46
- package/static/media/image-editor/images/stickers/emoticons/goofy.svg +79 -79
- package/static/media/image-editor/images/stickers/emoticons/grubby-1.svg +114 -114
- package/static/media/image-editor/images/stickers/emoticons/grubby.svg +165 -165
- package/static/media/image-editor/images/stickers/emoticons/happy-1.svg +49 -49
- package/static/media/image-editor/images/stickers/emoticons/happy-10.svg +62 -62
- package/static/media/image-editor/images/stickers/emoticons/happy-11.svg +55 -55
- package/static/media/image-editor/images/stickers/emoticons/happy-12.svg +53 -53
- package/static/media/image-editor/images/stickers/emoticons/happy-13.svg +58 -58
- package/static/media/image-editor/images/stickers/emoticons/happy-14.svg +62 -62
- package/static/media/image-editor/images/stickers/emoticons/happy-15.svg +49 -49
- package/static/media/image-editor/images/stickers/emoticons/happy-16.svg +49 -49
- package/static/media/image-editor/images/stickers/emoticons/happy-2.svg +71 -71
- package/static/media/image-editor/images/stickers/emoticons/happy-3.svg +74 -74
- package/static/media/image-editor/images/stickers/emoticons/happy-4.svg +77 -77
- package/static/media/image-editor/images/stickers/emoticons/happy-5.svg +52 -52
- package/static/media/image-editor/images/stickers/emoticons/happy-6.svg +54 -54
- package/static/media/image-editor/images/stickers/emoticons/happy-7.svg +58 -58
- package/static/media/image-editor/images/stickers/emoticons/happy-8.svg +42 -42
- package/static/media/image-editor/images/stickers/emoticons/happy-9.svg +45 -45
- package/static/media/image-editor/images/stickers/emoticons/happy.svg +48 -48
- package/static/media/image-editor/images/stickers/emoticons/harry-potter.svg +68 -68
- package/static/media/image-editor/images/stickers/emoticons/heisenberg.svg +80 -80
- package/static/media/image-editor/images/stickers/emoticons/hipster-1.svg +118 -118
- package/static/media/image-editor/images/stickers/emoticons/hipster-2.svg +49 -49
- package/static/media/image-editor/images/stickers/emoticons/hipster.svg +48 -48
- package/static/media/image-editor/images/stickers/emoticons/in-love-1.svg +62 -62
- package/static/media/image-editor/images/stickers/emoticons/in-love-2.svg +48 -48
- package/static/media/image-editor/images/stickers/emoticons/in-love-3.svg +49 -49
- package/static/media/image-editor/images/stickers/emoticons/in-love-4.svg +50 -50
- package/static/media/image-editor/images/stickers/emoticons/in-love-5.svg +49 -49
- package/static/media/image-editor/images/stickers/emoticons/in-love-6.svg +53 -53
- package/static/media/image-editor/images/stickers/emoticons/in-love.svg +57 -57
- package/static/media/image-editor/images/stickers/emoticons/japan.svg +79 -79
- package/static/media/image-editor/images/stickers/emoticons/jew.svg +83 -83
- package/static/media/image-editor/images/stickers/emoticons/joyful-1.svg +72 -72
- package/static/media/image-editor/images/stickers/emoticons/joyful-2.svg +45 -45
- package/static/media/image-editor/images/stickers/emoticons/joyful.svg +47 -47
- package/static/media/image-editor/images/stickers/emoticons/kiss-1.svg +48 -48
- package/static/media/image-editor/images/stickers/emoticons/kiss-2.svg +59 -59
- package/static/media/image-editor/images/stickers/emoticons/kiss-3.svg +53 -53
- package/static/media/image-editor/images/stickers/emoticons/kiss-4.svg +59 -59
- package/static/media/image-editor/images/stickers/emoticons/kiss.svg +67 -67
- package/static/media/image-editor/images/stickers/emoticons/laughing-1.svg +54 -54
- package/static/media/image-editor/images/stickers/emoticons/laughing-2.svg +57 -57
- package/static/media/image-editor/images/stickers/emoticons/laughing-3.svg +55 -55
- package/static/media/image-editor/images/stickers/emoticons/laughing.svg +56 -56
- package/static/media/image-editor/images/stickers/emoticons/listening.svg +55 -55
- package/static/media/image-editor/images/stickers/emoticons/love.svg +74 -74
- package/static/media/image-editor/images/stickers/emoticons/manly.svg +75 -75
- package/static/media/image-editor/images/stickers/emoticons/miserly-1.svg +90 -90
- package/static/media/image-editor/images/stickers/emoticons/miserly.svg +82 -82
- package/static/media/image-editor/images/stickers/emoticons/nerd-1.svg +88 -88
- package/static/media/image-editor/images/stickers/emoticons/nerd-2.svg +73 -73
- package/static/media/image-editor/images/stickers/emoticons/nerd-3.svg +60 -60
- package/static/media/image-editor/images/stickers/emoticons/nerd-4.svg +70 -70
- package/static/media/image-editor/images/stickers/emoticons/nerd.svg +88 -88
- package/static/media/image-editor/images/stickers/emoticons/ninja.svg +51 -51
- package/static/media/image-editor/images/stickers/emoticons/pirate-1.svg +92 -92
- package/static/media/image-editor/images/stickers/emoticons/pirate-2.svg +48 -48
- package/static/media/image-editor/images/stickers/emoticons/pirate.svg +286 -286
- package/static/media/image-editor/images/stickers/emoticons/punk-1.svg +134 -134
- package/static/media/image-editor/images/stickers/emoticons/punk-2.svg +153 -153
- package/static/media/image-editor/images/stickers/emoticons/punk.svg +82 -82
- package/static/media/image-editor/images/stickers/emoticons/rapper.svg +51 -51
- package/static/media/image-editor/images/stickers/emoticons/relieved.svg +56 -56
- package/static/media/image-editor/images/stickers/emoticons/rich-1.svg +59 -59
- package/static/media/image-editor/images/stickers/emoticons/rich-2.svg +93 -93
- package/static/media/image-editor/images/stickers/emoticons/rich.svg +88 -88
- package/static/media/image-editor/images/stickers/emoticons/rockstar.svg +177 -177
- package/static/media/image-editor/images/stickers/emoticons/sad-1.svg +43 -43
- package/static/media/image-editor/images/stickers/emoticons/sad-2.svg +49 -49
- package/static/media/image-editor/images/stickers/emoticons/sad-3.svg +49 -49
- package/static/media/image-editor/images/stickers/emoticons/sad-4.svg +49 -49
- package/static/media/image-editor/images/stickers/emoticons/sad-5.svg +45 -45
- package/static/media/image-editor/images/stickers/emoticons/sad-6.svg +47 -47
- package/static/media/image-editor/images/stickers/emoticons/sad.svg +47 -47
- package/static/media/image-editor/images/stickers/emoticons/scared-1.svg +79 -79
- package/static/media/image-editor/images/stickers/emoticons/scared-2.svg +59 -59
- package/static/media/image-editor/images/stickers/emoticons/scared-3.svg +52 -52
- package/static/media/image-editor/images/stickers/emoticons/scared.svg +45 -45
- package/static/media/image-editor/images/stickers/emoticons/sceptic-1.svg +59 -59
- package/static/media/image-editor/images/stickers/emoticons/sceptic-2.svg +80 -80
- package/static/media/image-editor/images/stickers/emoticons/sceptic-3.svg +59 -59
- package/static/media/image-editor/images/stickers/emoticons/sceptic-4.svg +46 -46
- package/static/media/image-editor/images/stickers/emoticons/sceptic-5.svg +43 -43
- package/static/media/image-editor/images/stickers/emoticons/sceptic-6.svg +42 -42
- package/static/media/image-editor/images/stickers/emoticons/sceptic-7.svg +50 -50
- package/static/media/image-editor/images/stickers/emoticons/sceptic.svg +44 -44
- package/static/media/image-editor/images/stickers/emoticons/secret.svg +48 -48
- package/static/media/image-editor/images/stickers/emoticons/shocked-1.svg +67 -67
- package/static/media/image-editor/images/stickers/emoticons/shocked-2.svg +44 -44
- package/static/media/image-editor/images/stickers/emoticons/shocked-3.svg +48 -48
- package/static/media/image-editor/images/stickers/emoticons/shocked.svg +46 -46
- package/static/media/image-editor/images/stickers/emoticons/sick-1.svg +55 -55
- package/static/media/image-editor/images/stickers/emoticons/sick-2.svg +48 -48
- package/static/media/image-editor/images/stickers/emoticons/sick-3.svg +49 -49
- package/static/media/image-editor/images/stickers/emoticons/sick-4.svg +52 -52
- package/static/media/image-editor/images/stickers/emoticons/sick.svg +52 -52
- package/static/media/image-editor/images/stickers/emoticons/silent.svg +43 -43
- package/static/media/image-editor/images/stickers/emoticons/skeleton.svg +64 -64
- package/static/media/image-editor/images/stickers/emoticons/smile.svg +43 -43
- package/static/media/image-editor/images/stickers/emoticons/smiling-1.svg +47 -47
- package/static/media/image-editor/images/stickers/emoticons/smiling.svg +75 -75
- package/static/media/image-editor/images/stickers/emoticons/smoked.svg +131 -131
- package/static/media/image-editor/images/stickers/emoticons/smug-1.svg +74 -74
- package/static/media/image-editor/images/stickers/emoticons/smug-2.svg +82 -82
- package/static/media/image-editor/images/stickers/emoticons/smug-3.svg +71 -71
- package/static/media/image-editor/images/stickers/emoticons/smug-4.svg +50 -50
- package/static/media/image-editor/images/stickers/emoticons/smug-5.svg +64 -64
- package/static/media/image-editor/images/stickers/emoticons/smug-6.svg +82 -82
- package/static/media/image-editor/images/stickers/emoticons/smug.svg +96 -96
- package/static/media/image-editor/images/stickers/emoticons/sporty.svg +68 -68
- package/static/media/image-editor/images/stickers/emoticons/stunned.svg +72 -72
- package/static/media/image-editor/images/stickers/emoticons/superhero-1.svg +60 -60
- package/static/media/image-editor/images/stickers/emoticons/superhero-2.svg +47 -47
- package/static/media/image-editor/images/stickers/emoticons/superhero-3.svg +48 -48
- package/static/media/image-editor/images/stickers/emoticons/superhero-4.svg +52 -52
- package/static/media/image-editor/images/stickers/emoticons/superhero.svg +45 -45
- package/static/media/image-editor/images/stickers/emoticons/surprised-1.svg +47 -47
- package/static/media/image-editor/images/stickers/emoticons/surprised.svg +58 -58
- package/static/media/image-editor/images/stickers/emoticons/thinking.svg +43 -43
- package/static/media/image-editor/images/stickers/emoticons/tired-1.svg +78 -78
- package/static/media/image-editor/images/stickers/emoticons/tired-2.svg +65 -65
- package/static/media/image-editor/images/stickers/emoticons/tired-3.svg +59 -59
- package/static/media/image-editor/images/stickers/emoticons/tired.svg +83 -83
- package/static/media/image-editor/images/stickers/emoticons/tough-1.svg +65 -65
- package/static/media/image-editor/images/stickers/emoticons/tough.svg +158 -158
- package/static/media/image-editor/images/stickers/emoticons/trendy.svg +57 -57
- package/static/media/image-editor/images/stickers/emoticons/vampire-1.svg +56 -56
- package/static/media/image-editor/images/stickers/emoticons/vampire.svg +59 -59
- package/static/media/image-editor/images/stickers/emoticons/wink-1.svg +54 -54
- package/static/media/image-editor/images/stickers/emoticons/wink-2.svg +64 -64
- package/static/media/image-editor/images/stickers/emoticons/wink.svg +73 -73
- package/static/media/image-editor/images/stickers/emoticons/winking-1.svg +52 -52
- package/static/media/image-editor/images/stickers/emoticons/winking.svg +43 -43
- package/static/media/image-editor/images/stickers/emoticons/yawning-1.svg +62 -62
- package/static/media/image-editor/images/stickers/emoticons/yawning-2.svg +51 -51
- package/static/media/image-editor/images/stickers/emoticons/yawning-3.svg +51 -51
- package/static/media/image-editor/images/stickers/emoticons/yawning.svg +73 -73
- package/static/media/image-editor/images/stickers/emoticons/yelling.svg +80 -80
- package/static/media/image-editor/images/stickers/emoticons/zombie.svg +65 -65
- package/static/media/image-editor/images/stickers/landmarks/0.svg +38 -38
- package/static/media/image-editor/images/stickers/landmarks/1.svg +46 -46
- package/static/media/image-editor/images/stickers/landmarks/10.svg +18 -18
- package/static/media/image-editor/images/stickers/landmarks/11.svg +81 -81
- package/static/media/image-editor/images/stickers/landmarks/12.svg +77 -77
- package/static/media/image-editor/images/stickers/landmarks/13.svg +42 -42
- package/static/media/image-editor/images/stickers/landmarks/14.svg +78 -78
- package/static/media/image-editor/images/stickers/landmarks/15.svg +84 -84
- package/static/media/image-editor/images/stickers/landmarks/16.svg +87 -87
- package/static/media/image-editor/images/stickers/landmarks/17.svg +60 -60
- package/static/media/image-editor/images/stickers/landmarks/18.svg +30 -30
- package/static/media/image-editor/images/stickers/landmarks/19.svg +36 -36
- package/static/media/image-editor/images/stickers/landmarks/2.svg +28 -28
- package/static/media/image-editor/images/stickers/landmarks/20.svg +137 -137
- package/static/media/image-editor/images/stickers/landmarks/21.svg +63 -63
- package/static/media/image-editor/images/stickers/landmarks/22.svg +26 -26
- package/static/media/image-editor/images/stickers/landmarks/23.svg +52 -52
- package/static/media/image-editor/images/stickers/landmarks/24.svg +56 -56
- package/static/media/image-editor/images/stickers/landmarks/25.svg +40 -40
- package/static/media/image-editor/images/stickers/landmarks/26.svg +34 -34
- package/static/media/image-editor/images/stickers/landmarks/27.svg +32 -32
- package/static/media/image-editor/images/stickers/landmarks/28.svg +19 -19
- package/static/media/image-editor/images/stickers/landmarks/29.svg +23 -23
- package/static/media/image-editor/images/stickers/landmarks/3.svg +36 -36
- package/static/media/image-editor/images/stickers/landmarks/30.svg +36 -36
- package/static/media/image-editor/images/stickers/landmarks/31.svg +27 -27
- package/static/media/image-editor/images/stickers/landmarks/32.svg +25 -25
- package/static/media/image-editor/images/stickers/landmarks/33.svg +29 -29
- package/static/media/image-editor/images/stickers/landmarks/34.svg +72 -72
- package/static/media/image-editor/images/stickers/landmarks/35.svg +18 -18
- package/static/media/image-editor/images/stickers/landmarks/36.svg +45 -45
- package/static/media/image-editor/images/stickers/landmarks/37.svg +46 -46
- package/static/media/image-editor/images/stickers/landmarks/38.svg +44 -44
- package/static/media/image-editor/images/stickers/landmarks/39.svg +23 -23
- package/static/media/image-editor/images/stickers/landmarks/4.svg +33 -33
- package/static/media/image-editor/images/stickers/landmarks/40.svg +25 -25
- package/static/media/image-editor/images/stickers/landmarks/41.svg +69 -69
- package/static/media/image-editor/images/stickers/landmarks/42.svg +75 -75
- package/static/media/image-editor/images/stickers/landmarks/43.svg +44 -44
- package/static/media/image-editor/images/stickers/landmarks/44.svg +65 -65
- package/static/media/image-editor/images/stickers/landmarks/45.svg +19 -19
- package/static/media/image-editor/images/stickers/landmarks/46.svg +47 -47
- package/static/media/image-editor/images/stickers/landmarks/47.svg +544 -544
- package/static/media/image-editor/images/stickers/landmarks/48.svg +162 -162
- package/static/media/image-editor/images/stickers/landmarks/49.svg +70 -70
- package/static/media/image-editor/images/stickers/landmarks/5.svg +36 -36
- package/static/media/image-editor/images/stickers/landmarks/50.svg +52 -52
- package/static/media/image-editor/images/stickers/landmarks/51.svg +110 -110
- package/static/media/image-editor/images/stickers/landmarks/52.svg +41 -41
- package/static/media/image-editor/images/stickers/landmarks/53.svg +74 -74
- package/static/media/image-editor/images/stickers/landmarks/54.svg +36 -36
- package/static/media/image-editor/images/stickers/landmarks/55.svg +84 -84
- package/static/media/image-editor/images/stickers/landmarks/56.svg +93 -93
- package/static/media/image-editor/images/stickers/landmarks/57.svg +67 -67
- package/static/media/image-editor/images/stickers/landmarks/58.svg +101 -101
- package/static/media/image-editor/images/stickers/landmarks/59.svg +47 -47
- package/static/media/image-editor/images/stickers/landmarks/6.svg +59 -59
- package/static/media/image-editor/images/stickers/landmarks/60.svg +134 -134
- package/static/media/image-editor/images/stickers/landmarks/61.svg +79 -79
- package/static/media/image-editor/images/stickers/landmarks/62.svg +43 -43
- package/static/media/image-editor/images/stickers/landmarks/63.svg +83 -83
- package/static/media/image-editor/images/stickers/landmarks/64.svg +99 -99
- package/static/media/image-editor/images/stickers/landmarks/65.svg +79 -79
- package/static/media/image-editor/images/stickers/landmarks/66.svg +37 -37
- package/static/media/image-editor/images/stickers/landmarks/67.svg +82 -82
- package/static/media/image-editor/images/stickers/landmarks/68.svg +216 -216
- package/static/media/image-editor/images/stickers/landmarks/69.svg +17 -17
- package/static/media/image-editor/images/stickers/landmarks/7.svg +16 -16
- package/static/media/image-editor/images/stickers/landmarks/70.svg +45 -45
- package/static/media/image-editor/images/stickers/landmarks/71.svg +37 -37
- package/static/media/image-editor/images/stickers/landmarks/72.svg +28 -28
- package/static/media/image-editor/images/stickers/landmarks/73.svg +25 -25
- package/static/media/image-editor/images/stickers/landmarks/74.svg +23 -23
- package/static/media/image-editor/images/stickers/landmarks/75.svg +88 -88
- package/static/media/image-editor/images/stickers/landmarks/76.svg +25 -25
- package/static/media/image-editor/images/stickers/landmarks/77.svg +23 -23
- package/static/media/image-editor/images/stickers/landmarks/78.svg +63 -63
- package/static/media/image-editor/images/stickers/landmarks/79.svg +25 -25
- package/static/media/image-editor/images/stickers/landmarks/8.svg +52 -52
- package/static/media/image-editor/images/stickers/landmarks/80.svg +29 -29
- package/static/media/image-editor/images/stickers/landmarks/81.svg +44 -44
- package/static/media/image-editor/images/stickers/landmarks/82.svg +83 -83
- package/static/media/image-editor/images/stickers/landmarks/83.svg +65 -65
- package/static/media/image-editor/images/stickers/landmarks/84.svg +31 -31
- package/static/media/image-editor/images/stickers/landmarks/85.svg +30 -30
- package/static/media/image-editor/images/stickers/landmarks/86.svg +26 -26
- package/static/media/image-editor/images/stickers/landmarks/87.svg +132 -132
- package/static/media/image-editor/images/stickers/landmarks/88.svg +93 -93
- package/static/media/image-editor/images/stickers/landmarks/89.svg +91 -91
- package/static/media/image-editor/images/stickers/landmarks/9.svg +70 -70
- package/static/media/image-editor/images/stickers/landmarks/90.svg +65 -65
- package/static/media/image-editor/images/stickers/landmarks/91.svg +36 -36
- package/static/media/image-editor/images/stickers/landmarks/92.svg +66 -66
- package/static/media/image-editor/images/stickers/landmarks/93.svg +65 -65
- package/static/media/image-editor/images/stickers/landmarks/94.svg +28 -28
- package/static/media/image-editor/images/stickers/landmarks/95.svg +31 -31
- package/static/media/image-editor/images/stickers/landmarks/96.svg +25 -25
- package/static/media/image-editor/images/stickers/landmarks/97.svg +31 -31
- package/static/media/image-editor/images/stickers/landmarks/98.svg +52 -52
- package/static/media/image-editor/images/stickers/landmarks/99.svg +56 -56
- 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 -26
- package/static/media/image-editor/images/stickers/transportation/1.svg +10 -10
- package/static/media/image-editor/images/stickers/transportation/10.svg +16 -16
- package/static/media/image-editor/images/stickers/transportation/11.svg +30 -30
- package/static/media/image-editor/images/stickers/transportation/12.svg +22 -22
- package/static/media/image-editor/images/stickers/transportation/13.svg +24 -24
- package/static/media/image-editor/images/stickers/transportation/14.svg +19 -19
- package/static/media/image-editor/images/stickers/transportation/15.svg +23 -23
- package/static/media/image-editor/images/stickers/transportation/16.svg +25 -25
- package/static/media/image-editor/images/stickers/transportation/17.svg +34 -34
- package/static/media/image-editor/images/stickers/transportation/18.svg +29 -29
- package/static/media/image-editor/images/stickers/transportation/19.svg +24 -24
- package/static/media/image-editor/images/stickers/transportation/2.svg +27 -27
- package/static/media/image-editor/images/stickers/transportation/20.svg +25 -25
- package/static/media/image-editor/images/stickers/transportation/21.svg +22 -22
- package/static/media/image-editor/images/stickers/transportation/3.svg +18 -18
- package/static/media/image-editor/images/stickers/transportation/4.svg +24 -24
- package/static/media/image-editor/images/stickers/transportation/5.svg +15 -15
- package/static/media/image-editor/images/stickers/transportation/6.svg +25 -25
- package/static/media/image-editor/images/stickers/transportation/7.svg +17 -17
- package/static/media/image-editor/images/stickers/transportation/8.svg +28 -28
- package/static/media/image-editor/images/stickers/transportation/9.svg +23 -23
- 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/static/umd-runtime/DntxC9N-.js +109057 -0
- package/static/umd-runtime/runtime.js +1260 -0
- package/static/umd-runtime/ui-kit.js +7025 -0
- package/two_step_headless_plugin.html +1 -1
- package/ui-kit/index.js +192 -187
- package/emailmaker-core.80c7793f.js +0 -643
- package/static/core/270ea1f0.js +0 -924
- package/static/core/478adc67.js +0 -173
- package/static/core/60b14e0c.js +0 -1357
- package/static/core/8a4486b0.js +0 -761
- package/static/core/99b9545a.js +0 -58974
- package/static/core/c6089a51.js +0 -466
- package/static/core/d89e1015.js +0 -10624
- package/static/core/fa39fd23.js +0 -378
- package/static/core/ffb0449a.js +0 -2749
- package/static/esm/aec29e9e.js +0 -127
- /package/iframe/{iframe-eblock.80c7793f.html → iframe-eblock.588c2a00.html} +0 -0
- /package/iframe/{iframe.80c7793f.html → iframe.588c2a00.html} +0 -0
|
@@ -1,24 +1,23 @@
|
|
|
1
1
|
(function(){try{if(typeof document<"u"){var o=document.createElement("style");o.setAttribute("data-emailmaker","true"),o.appendChild(document.createTextNode(".blocks-app .image-preview{text-align:center;min-height:100px;position:relative}.blocks-app .image-preview .image-editor-modal{border:1px solid red}.blocks-app .image-preview__edit-button{position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.blocks-app .image-preview img{border:1px solid var(--colorBorder);border-radius:6px;max-width:100%;max-height:500px}.blocks-app .image-editor-modal .ant-modal-container{flex-direction:column;min-height:100vh;display:flex;border-radius:0!important}.blocks-app .image-editor-modal .ant-modal-body{flex-grow:1;display:flex}.blocks-app .image-editor-modal .ant-modal-body #pixie-editor{flex-grow:1;height:calc(100vh - 70px);min-height:calc(100vh - 70px);overflow:hidden}.blocks-app .image-editor-modal .pi .text-on-primary{background:var(--colorPrimary);border-color:var(--colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary:hover{background:var(--colorPrimaryHover);border-color:var(--colorPrimaryHover)}.blocks-app .image-editor-modal .pi .text-on-primary.rounded-full{border-radius:calc(var(--borderRadius) * 1px)}.blocks-app .image-editor-modal .pi .shadow-xl{box-shadow:none}.blocks-app .image-editor-modal .w-\\[4ch\\].text-sm.text-center{width:5ch}.blocks-app .image-editor-modal .pi .border-white{border-color:var(--colorPrimary)}.blocks-app .image-editor-modal .pi .bg-white\\/50{background-color:var(--colorPrimary)}.blocks-app .image-editor-modal .pi .text-on-primary{color:var(--colorWhite)}.blocks-app .serach-results .ant-row{align-items:center}.blocks-app .serach-results .blocks-search__divider-wrapper{margin-top:12px;position:relative}.blocks-app .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{border-top:1px solid var(--colorBorderSecondary);background:0 0;width:100%;height:1px;min-height:0;margin:0;position:static}.blocks-app .slideshow-container{width:524px;height:350px;margin:auto;position:relative;overflow:hidden}.blocks-app .slideshow-image{opacity:0;width:100%;height:100%;position:absolute;top:0;left:0}.blocks-app .image-ai .slideshow-image{width:auto;height:auto}.blocks-app .image-ai__image-item{text-align:center;border-radius:6px;justify-content:center;align-items:center;min-height:100px;display:flex;position:relative}.blocks-app .image-ai__image-item .buttons{justify-content:space-between;display:flex;position:absolute;bottom:10px;left:50%;transform:translate(-50%)}.blocks-app .image-ai .text-area-input-hybrid{border:none;outline:none;min-height:0;padding:0 0 0 1px}.blocks-app .image-ai .text-area-input-hybrid textarea{height:32px;min-height:32px;padding:3px 11px;line-height:26px}.blocks-app .image-ai__loading{justify-content:center;align-items:center;min-height:150px;display:flex}.blocks-app .image-ai__loading .spin{flex-direction:column;justify-content:center;align-items:center;height:150px;display:flex}.blocks-app .image-ai__loading .status{margin:3px 0 0}.blocks-app .image-ai__preview{border-radius:6px;margin-top:24px;overflow:hidden}.blocks-app .image-ai__preview .image-ai__image-item img{border-radius:calc(var(--borderRadius) * 1px);object-fit:contain;max-height:100%;transition:height 1s;top:50%;left:50%;overflow:hidden;transform:translate(-50%,-50%)}.blocks-app .image-ai .small{width:302px;height:202px}.blocks-app .image-ai .large{width:524px;height:350px}.blocks-app .image-ai .image-ai__row{padding:0 2px}.blocks-app .image-ai .image-ai__input-affix-wrapper{border-style:solid;border-width:calc(var(--borderWidth) * 1px);border-color:var(--colorFillSecondaryDarken);border-radius:calc(var(--borderRadius) * 1px);width:100%;padding-left:0;display:inline-flex}.blocks-app .image-ai .image-ai__input-affix-wrapper:hover{border-color:var(--borderColorHover)}.blocks-app .image-ai .image-ai__input-affix-wrapper.ant-input-affix-wrapper-focused{border-color:var(--colorPrimaryBorder)}.blocks-app .image-ai .image-ai__textarea{font-size:16px}.blocks-app .image-ai .image-ai__input-icon{font-size:16px;top:0;right:0}.dark .blocks-app .image-ai .image-ai__preview .image-ai__image-item img{background:#2b2b2b;border:1px solid #434343}.dark .blocks-app .image-ai .ant-btn{background:#1f1f1f}.dark .blocks-app .image-ai .ant-btn:hover{color:var(--colorPrimary)}.blocks-app .stock-tab img{border-radius:0;max-width:none;max-height:none}.blocks-app .stock-tab .stock-search-input{padding:0 2px}.blocks-app .stock-tab .my-masonry-grid{text-align:center;width:auto;display:flex}.blocks-app .stock-tab .my-masonry-grid_column{background-clip:padding-box}.blocks-app .stock-tab .list-item{cursor:pointer;background:#f0f2f5;border:1px solid #f0f2f5;border-radius:6px;min-height:100px;max-height:100px;margin-bottom:20px;transition:all .3s;display:inline-block;position:relative;overflow:hidden}.blocks-app .stock-tab .list-item .overlay-image{opacity:0;background-size:cover;width:110px;height:40px;transition:opacity .5s;position:absolute;bottom:10px;right:10px}.blocks-app .stock-tab .list-item .ant-spin{color:#f0f2f5;font-size:20px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.blocks-app .stock-tab .list-item img{object-fit:cover;opacity:0;border-radius:6px;height:auto;transition:opacity .5s ease-in-out;display:block}.blocks-app .stock-tab .list-item.loaded{border:1px solid #d9d9d9;max-height:1000px}.blocks-app .stock-tab .list-item.loaded img{opacity:1;height:100%}.blocks-app .stock-tab .list-item.loaded .loaded-image{opacity:.5}.blocks-app .stock-tab .list-item:hover{box-shadow:0 1px 2px -2px #00000029,0 3px 6px #0000001f,0 5px 12px 4px #00000017}.blocks-app .stock-tab .list-item:hover p.creator-info,.blocks-app .stock-tab .list-item:hover .overlay-image{opacity:1}.blocks-app .stock-tab .list-item p.creator-info{color:#fff;opacity:0;background-color:#00000080;border-radius:0 0 6px;margin:0;padding:5px;font-size:10px;line-height:1.2;position:absolute;bottom:0;right:0}.blocks-app .stock-tab .list-item p.creator-info:hover a{color:#fff;text-decoration:underline}.blocks-app .stock-tab .list-item p.creator-info a{color:#fff;text-decoration:none}.blocks-app .stock-color-filter{display:flex}.blocks-app .stock-color-filter label{border-width:1px;width:24px;height:24px;margin:4px;padding:0;font-size:0;border-radius:6px!important}.blocks-app .stock-color-filter label.all-colors{background-image:linear-gradient(135deg,red,#ff7f00,#ff0,#0f0,#00f,#8b00ff)}.blocks-app .stock-color-filter label.black-color{background:#222}.blocks-app .stock-color-filter label.bw-color{background-image:linear-gradient(135deg,#222 50%,#fff 50%)}.blocks-app .stock-color-filter label.white-color{background:#fff}.blocks-app .stock-color-filter label.orange-color{background:#fa8c16}.blocks-app .stock-color-filter label.red-color{background:#f5222d}.blocks-app .stock-color-filter label.purple-color{background:#722ed1}.blocks-app .stock-color-filter label.magenta-color{background:#eb2f96}.blocks-app .stock-color-filter label.green-color{background:#52c41a}.blocks-app .stock-color-filter label.teal-color{background:#43c3c3}.blocks-app .stock-color-filter label.blue-color{background:#1677ff}.blocks-app .stock-color-filter .ant-radio-button-wrapper:not(:first-child):before{display:none}.blocks-app .serach-results{padding-top:6px}.blocks-app .serach-results .stock-search-input{width:322px;padding:0 2px}.blocks-app .serach-results .blocks-search__divider-wrapper{width:calc(100% + 48px);margin-top:12px;margin-left:-24px;margin-right:-24px;position:relative}.blocks-app .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{pointer-events:none;border-top:1px solid var(--colorBorderSecondary);background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);border-bottom:none;width:100%;height:20px;min-height:20px;margin:0;position:relative;bottom:auto;left:auto;right:auto}.dark .blocks-app .image-center .stock-tab .serach-results .blocks-search__divider-wrapper .ant-divider-horizontal{background:linear-gradient(180deg, var(--colorBgBase), transparent 40%)}.dark .blocks-app .stock-tab .list-item{background:#2b2b2b;border:1px solid #2b2b2b}.dark .blocks-app .stock-tab .list-item.loaded{border:1px solid #434343}.blocks-app .image-center .image-center-image-preview{justify-content:center;align-items:center;display:flex}.blocks-app .image-center .ant-divider-horizontal{pointer-events:none;z-index:1;background:linear-gradient(180deg, var(--colorBgContainerDisabled), transparent 40%);width:calc(100% + 48px);height:20px;margin:24px -24px 0;position:absolute;bottom:-19px}.dark .blocks-app .image-center .ant-divider-horizontal{background:linear-gradient(180deg, var(--colorBgBase), transparent 40%)}.blocks-app .image-center .ant-divider-horizontal.ant-divider-with-text{background:0 0;width:calc(100% + 38px);margin:0 -24px 20px;position:relative;top:0}.blocks-app .image-center img{border-radius:4px;max-width:524px;max-height:352px}.blocks-app .image-center .image-size{justify-content:center;margin-top:6px;font-size:14px;line-height:22px;display:flex}.blocks-app .image-center .ant-upload.ant-upload-drag{border-radius:6px}.blocks-app .image-center .ant-modal-body .stock-search-input{margin-bottom:0}.blocks-app .image-center .ant-modal-body .serach-results .stock-search-input{margin-bottom:10px}.blocks-app .image-center .ant-modal-body .ant-form:not(.serach-results) .ant-form-item:last-child{margin-bottom:0}.blocks-app .image-center .ant-modal-body .ant-tabs{transition:all .7s cubic-bezier(.075,.82,.165,1)}.blocks-app .image-center .ant-modal-body .ant-tabs .ant-tabs-content-holder{overflow-y:clip}.blocks-app .ant-modal{transition:width .7s ease-in-out}")),document.head.appendChild(o)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
|
|
2
|
-
__emailmaker__.define("static/core/
|
|
2
|
+
__emailmaker__.define("static/core/bdf2af9d.js", [
|
|
3
3
|
"require",
|
|
4
4
|
"exports",
|
|
5
5
|
"module",
|
|
6
|
-
"static/core/
|
|
7
|
-
"static/core/
|
|
8
|
-
"static/core/
|
|
9
|
-
"static/core/
|
|
10
|
-
"static/core/
|
|
11
|
-
"static/core/
|
|
12
|
-
"static/core/8a4486b0.js",
|
|
6
|
+
"static/core/c64d880f.js",
|
|
7
|
+
"static/core/ba3f6ae3.js",
|
|
8
|
+
"static/core/fb984475.js",
|
|
9
|
+
"static/core/75cf1a90.js",
|
|
10
|
+
"static/core/6149e6d4.js",
|
|
11
|
+
"static/core/27932b71.js",
|
|
13
12
|
"react",
|
|
14
13
|
"react/jsx-runtime"
|
|
15
|
-
], function(
|
|
16
|
-
const Ze =
|
|
17
|
-
let n =
|
|
14
|
+
], function(ge, gt, on) {
|
|
15
|
+
const Ze = ge("./c64d880f.js"), u = ge("./ba3f6ae3.js"), Z = ge("./fb984475.js"), ne = ge("./75cf1a90.js"), m = ge("./6149e6d4.js"), P = ge("./27932b71.js");
|
|
16
|
+
let n = ge("react");
|
|
18
17
|
n = Ze.__toESM(n);
|
|
19
|
-
let r =
|
|
20
|
-
var
|
|
21
|
-
function
|
|
18
|
+
let r = ge("react/jsx-runtime");
|
|
19
|
+
var ht = Ze.__toESM(ne.require_prop_types());
|
|
20
|
+
function yt(t, e) {
|
|
22
21
|
return { [t]: {
|
|
23
22
|
Filter: e("Filter"),
|
|
24
23
|
filter: e("filter"),
|
|
@@ -105,17 +104,17 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
105
104
|
} };
|
|
106
105
|
}
|
|
107
106
|
function Xe(t, e = "application/octet-stream") {
|
|
108
|
-
let o = t.trim(),
|
|
107
|
+
let o = t.trim(), s = e?.trim() || "application/octet-stream";
|
|
109
108
|
const i = o.indexOf(",");
|
|
110
109
|
if (o.startsWith("data:") && i >= 0) {
|
|
111
110
|
const d = o.slice(5, i).split(";")[0]?.trim();
|
|
112
|
-
d && (
|
|
111
|
+
d && (s = d), o = o.slice(i + 1);
|
|
113
112
|
}
|
|
114
|
-
const l = o.replace(/\s/g, ""), b = atob(l),
|
|
115
|
-
for (let d = 0; d < b.length; d++)
|
|
116
|
-
return new Blob([
|
|
113
|
+
const l = o.replace(/\s/g, ""), b = atob(l), p = new Uint8Array(b.length);
|
|
114
|
+
for (let d = 0; d < b.length; d++) p[d] = b.charCodeAt(d);
|
|
115
|
+
return new Blob([p], { type: s });
|
|
117
116
|
}
|
|
118
|
-
var
|
|
117
|
+
var vt = "static/media/image-editor", Ct = { text: {
|
|
119
118
|
replaceDefaultItems: !0,
|
|
120
119
|
defaultText: "Handwriting",
|
|
121
120
|
items: [
|
|
@@ -233,84 +232,84 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
233
232
|
}
|
|
234
233
|
]
|
|
235
234
|
} };
|
|
236
|
-
function
|
|
235
|
+
function bt(t, e) {
|
|
237
236
|
if (t === "json") return new Blob([e], { type: "application/json" });
|
|
238
237
|
if (t === "svg") return new Blob([e], { type: "image/svg+xml" });
|
|
239
238
|
const o = `image/${t}`;
|
|
240
239
|
return Xe(e.replace(/data:image\/([a-z]*)?;base64,/, ""), o);
|
|
241
240
|
}
|
|
242
|
-
var
|
|
243
|
-
const l =
|
|
244
|
-
let
|
|
245
|
-
const
|
|
246
|
-
if (!
|
|
247
|
-
const
|
|
248
|
-
for (const [
|
|
249
|
-
return Object.keys(
|
|
250
|
-
}, [
|
|
241
|
+
var wt = ({ currentImageLink: t, prefetchedBlob: e, resolveImageBlob: o, onSave: s, uploadImageResultIsLoading: i }) => {
|
|
242
|
+
const l = P.useCookieManager(), [b, p] = (0, n.useState)(), [d, v] = (0, n.useState)(), { __: I } = m.useI18n();
|
|
243
|
+
let w = u.useDispatch();
|
|
244
|
+
const C = u.useStore(), R = u.useAppConfig(), y = u.useSelector(u.selectedCurrentUser), L = u.useSelector(Z.selectSecondModal), A = u.useSelector(u.selectProject), F = (0, n.useMemo)(() => {
|
|
245
|
+
if (!R?.icons) return;
|
|
246
|
+
const j = {};
|
|
247
|
+
for (const [T, E] of Object.entries(R.icons)) typeof E == "string" && (j[T] = P.sanitizeHtml(E));
|
|
248
|
+
return Object.keys(j).length > 0 ? j : void 0;
|
|
249
|
+
}, [R?.icons]), O = (0, n.useRef)(!1), [D, H] = (0, n.useState)(), B = u.useEventEmitter(u.events.FILE_PROXY_EVENT_ID);
|
|
251
250
|
(0, n.useEffect)(() => {
|
|
252
|
-
let
|
|
251
|
+
let j = !1;
|
|
253
252
|
return (async () => {
|
|
254
253
|
const E = t;
|
|
255
254
|
if (!E && !e) return;
|
|
256
|
-
let
|
|
257
|
-
if (!
|
|
258
|
-
typeof o == "function" ?
|
|
255
|
+
let x = e;
|
|
256
|
+
if (!x && E) try {
|
|
257
|
+
typeof o == "function" ? x = await o(E) : x = await (await fetch(E)).blob();
|
|
259
258
|
} catch {
|
|
260
|
-
if (
|
|
261
|
-
if (
|
|
259
|
+
if (j) return;
|
|
260
|
+
if (x = await B.fire({
|
|
262
261
|
url: E,
|
|
263
|
-
project:
|
|
264
|
-
}).filter((
|
|
265
|
-
const
|
|
266
|
-
|
|
262
|
+
project: A
|
|
263
|
+
}).filter((U) => U instanceof Blob)[0], !x) {
|
|
264
|
+
const U = l.get(u.APP_COOKIES.em_token) || await u.di.getInstance(C, Z.TOKEN_ID);
|
|
265
|
+
x = await (await fetch(`https://app.emailmaker.ru/api/wp-json/cors-proxy/v1/get?url=${encodeURIComponent(E)}`, { headers: { authorization: `Bearer ${U}` } })).blob();
|
|
267
266
|
}
|
|
268
267
|
}
|
|
269
|
-
if (
|
|
270
|
-
const
|
|
271
|
-
|
|
272
|
-
if (
|
|
273
|
-
const
|
|
274
|
-
typeof
|
|
275
|
-
},
|
|
268
|
+
if (j || !x) return;
|
|
269
|
+
const S = new FileReader();
|
|
270
|
+
S.onload = () => {
|
|
271
|
+
if (j) return;
|
|
272
|
+
const U = S.result;
|
|
273
|
+
typeof U == "string" && (p(U), v(x.type), D?.tools.import.openBackgroundImage(U));
|
|
274
|
+
}, S.onerror = () => {}, S.readAsDataURL(x);
|
|
276
275
|
})().catch((E) => {}), () => {
|
|
277
|
-
|
|
276
|
+
j = !0;
|
|
278
277
|
};
|
|
279
278
|
}, [
|
|
280
279
|
t,
|
|
281
280
|
e,
|
|
282
281
|
o,
|
|
283
282
|
l,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
283
|
+
D,
|
|
284
|
+
B,
|
|
285
|
+
A,
|
|
286
|
+
C
|
|
288
287
|
]);
|
|
289
|
-
const
|
|
290
|
-
|
|
291
|
-
}, [
|
|
292
|
-
|
|
288
|
+
const z = (0, n.useCallback)(() => {
|
|
289
|
+
p(null), v(null), w(Z.closeSecondModal()), w(Z.closeModal(u.MODALS.UPLOAD_IMAGE_MODAL));
|
|
290
|
+
}, [w]), V = (0, n.useRef)();
|
|
291
|
+
V.current = async function(j, T, E) {
|
|
293
292
|
try {
|
|
294
|
-
const
|
|
295
|
-
|
|
293
|
+
const x = bt(E, j);
|
|
294
|
+
s && await s(new File([x], T, {
|
|
296
295
|
lastModified: Date.now(),
|
|
297
|
-
type:
|
|
296
|
+
type: x.type
|
|
298
297
|
}));
|
|
299
|
-
} catch (
|
|
300
|
-
throw
|
|
298
|
+
} catch (x) {
|
|
299
|
+
throw x;
|
|
301
300
|
}
|
|
302
301
|
};
|
|
303
|
-
const ee = (0, n.useCallback)((
|
|
304
|
-
if (
|
|
302
|
+
const ee = (0, n.useCallback)((j) => {
|
|
303
|
+
if (j && !(O.current && D)) {
|
|
305
304
|
O.current = !0;
|
|
306
|
-
const
|
|
307
|
-
|
|
305
|
+
const T = y.locale ? y.locale.replace("_", "-") : "ru-RU", E = y.theme === "system" ? matchMedia("(prefers-color-scheme: dark)").matches ? u.DARK : u.LIGHT : y.theme;
|
|
306
|
+
P.Tf.init({
|
|
308
307
|
selector: "#pixie-editor",
|
|
309
|
-
baseUrl: m.getBundledHostAssetUrl(
|
|
308
|
+
baseUrl: m.getBundledHostAssetUrl(vt),
|
|
310
309
|
image: b,
|
|
311
|
-
activeLanguage:
|
|
312
|
-
languages:
|
|
313
|
-
tools:
|
|
310
|
+
activeLanguage: T,
|
|
311
|
+
languages: yt(T, I),
|
|
312
|
+
tools: Ct,
|
|
314
313
|
ui: {
|
|
315
314
|
menubar: {
|
|
316
315
|
replaceDefaultItems: !0,
|
|
@@ -328,25 +327,25 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
328
327
|
type: "button",
|
|
329
328
|
icon: (0, r.jsx)(m.EmIcons, {
|
|
330
329
|
icon: "HistoryOutlined",
|
|
331
|
-
configIcons:
|
|
330
|
+
configIcons: F,
|
|
332
331
|
style: { fontSize: 20 }
|
|
333
332
|
}),
|
|
334
333
|
align: "right",
|
|
335
334
|
desktopOnly: !0,
|
|
336
|
-
action: (
|
|
337
|
-
|
|
335
|
+
action: (x) => {
|
|
336
|
+
x.togglePanel("history");
|
|
338
337
|
}
|
|
339
338
|
},
|
|
340
339
|
{
|
|
341
340
|
type: "button",
|
|
342
341
|
icon: (0, r.jsx)(m.EmIcons, {
|
|
343
342
|
icon: "CloseOutlined",
|
|
344
|
-
configIcons:
|
|
343
|
+
configIcons: F,
|
|
345
344
|
style: { fontSize: 20 }
|
|
346
345
|
}),
|
|
347
346
|
align: "right",
|
|
348
347
|
desktopOnly: !0,
|
|
349
|
-
action: () =>
|
|
348
|
+
action: () => z()
|
|
350
349
|
}
|
|
351
350
|
]
|
|
352
351
|
},
|
|
@@ -355,28 +354,28 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
355
354
|
mode: "inline",
|
|
356
355
|
forceOverlayModeOnMobile: !1
|
|
357
356
|
},
|
|
358
|
-
onSave: async function(
|
|
357
|
+
onSave: async function(x, S, U) {
|
|
359
358
|
try {
|
|
360
|
-
await
|
|
359
|
+
await V.current(x, S, U);
|
|
361
360
|
} catch {}
|
|
362
361
|
}
|
|
363
|
-
}).then((
|
|
364
|
-
|
|
365
|
-
}).catch((
|
|
362
|
+
}).then((x) => {
|
|
363
|
+
H(x);
|
|
364
|
+
}).catch((x) => {});
|
|
366
365
|
}
|
|
367
366
|
}, [
|
|
368
|
-
|
|
367
|
+
y.theme,
|
|
369
368
|
b,
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
]),
|
|
377
|
-
|
|
369
|
+
D,
|
|
370
|
+
H,
|
|
371
|
+
y.locale,
|
|
372
|
+
I,
|
|
373
|
+
z,
|
|
374
|
+
F
|
|
375
|
+
]), q = (0, n.useCallback)(() => {
|
|
376
|
+
D?.tools.export.save(t?.split("/").pop().split(".")[0], d?.split("/")[1]);
|
|
378
377
|
}, [
|
|
379
|
-
|
|
378
|
+
D,
|
|
380
379
|
t,
|
|
381
380
|
d
|
|
382
381
|
]);
|
|
@@ -392,17 +391,17 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
392
391
|
closable: !1,
|
|
393
392
|
zIndex: 1100,
|
|
394
393
|
mask: !1,
|
|
395
|
-
open:
|
|
394
|
+
open: L,
|
|
396
395
|
footer: [(0, r.jsx)(m.Button, {
|
|
397
396
|
className: "em-analytics__profile-cancel",
|
|
398
|
-
onClick:
|
|
399
|
-
children:
|
|
397
|
+
onClick: z,
|
|
398
|
+
children: I("Cancel")
|
|
400
399
|
}, "Cancel"), (0, r.jsx)(m.Button, {
|
|
401
400
|
className: "em-analytics__profile-updapixiete",
|
|
402
401
|
id: "save",
|
|
403
402
|
type: "primary",
|
|
404
|
-
onClick:
|
|
405
|
-
children:
|
|
403
|
+
onClick: q,
|
|
404
|
+
children: I("Update")
|
|
406
405
|
}, "Ok")],
|
|
407
406
|
children: [i && (0, r.jsx)("div", {
|
|
408
407
|
style: {
|
|
@@ -419,11 +418,11 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
419
418
|
children: (0, r.jsx)(m.Spin, { size: "large" })
|
|
420
419
|
}), (0, r.jsx)("div", { id: "pixie-editor" })]
|
|
421
420
|
});
|
|
422
|
-
},
|
|
423
|
-
const d = o ||
|
|
421
|
+
}, At = ({ currentImageLink: t, newLink: e, previewDisplayUrl: o, resolvedPreviewObjectUrl: s, resolvedPreviewBlob: i, resolveImageBlob: l, onSave: b, uploadImageResultIsLoading: p }) => {
|
|
422
|
+
const d = o || s;
|
|
424
423
|
return (0, r.jsxs)(r.Fragment, { children: [(0, r.jsx)("div", { children: (0, r.jsxs)("div", {
|
|
425
424
|
className: "image-preview",
|
|
426
|
-
children: [
|
|
425
|
+
children: [p && (0, r.jsx)("div", {
|
|
427
426
|
style: {
|
|
428
427
|
position: "absolute",
|
|
429
428
|
height: "100%",
|
|
@@ -440,13 +439,13 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
440
439
|
alt: "uploadedImage",
|
|
441
440
|
src: d
|
|
442
441
|
})]
|
|
443
|
-
}) }), (0, r.jsx)(
|
|
442
|
+
}) }), (0, r.jsx)(wt, {
|
|
444
443
|
currentImageLink: t,
|
|
445
444
|
prefetchedBlob: i,
|
|
446
445
|
resolveImageBlob: l,
|
|
447
446
|
newLink: e,
|
|
448
447
|
onSave: b,
|
|
449
|
-
uploadImageResultIsLoading:
|
|
448
|
+
uploadImageResultIsLoading: p
|
|
450
449
|
})] });
|
|
451
450
|
}, Re = {
|
|
452
451
|
Pixel: "Pixel",
|
|
@@ -455,7 +454,7 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
455
454
|
unit: Re.Percent,
|
|
456
455
|
value: 80
|
|
457
456
|
};
|
|
458
|
-
function
|
|
457
|
+
function It(t) {
|
|
459
458
|
return typeof t == "number" ? {
|
|
460
459
|
unit: Re.Percent,
|
|
461
460
|
value: t * 100
|
|
@@ -467,116 +466,116 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
467
466
|
value: parseFloat(t)
|
|
468
467
|
} : Je : Je;
|
|
469
468
|
}
|
|
470
|
-
function
|
|
471
|
-
const o =
|
|
472
|
-
let
|
|
473
|
-
return o.unit === Re.Pixel ?
|
|
469
|
+
function xt(t, e) {
|
|
470
|
+
const o = It(t);
|
|
471
|
+
let s;
|
|
472
|
+
return o.unit === Re.Pixel ? s = `${o.value}px` : s = `${100 - o.value}%`, e ? `${s} 0px 0px 0px` : `0px 0px ${s} 0px`;
|
|
474
473
|
}
|
|
475
|
-
function $e({ next: t, hasMore: e, children: o, loader:
|
|
476
|
-
const [ee,
|
|
477
|
-
|
|
478
|
-
const
|
|
479
|
-
|
|
480
|
-
const h = (0, n.useRef)(
|
|
481
|
-
h.current =
|
|
482
|
-
const W = (0, n.useRef)(!1),
|
|
474
|
+
function $e({ next: t, hasMore: e, children: o, loader: s, scrollThreshold: i = .8, endMessage: l, style: b, height: p, scrollableTarget: d, hasChildren: v, inverse: I = !1, pullDownToRefresh: w = !1, pullDownToRefreshContent: C, releaseToRefreshContent: R, pullDownToRefreshThreshold: y = 100, refreshFunction: L, onScroll: A, dataLength: F, initialScrollY: O, className: D = "", role: H, tabIndex: B, id: z, ...V }) {
|
|
475
|
+
const [ee, q] = (0, n.useState)(!1), [j, T] = (0, n.useState)(!1), [E, x] = (0, n.useState)(0), S = (0, n.useRef)(null), U = (0, n.useRef)(null), Y = (0, n.useRef)(null), K = (0, n.useRef)(t);
|
|
476
|
+
K.current = t;
|
|
477
|
+
const a = (0, n.useRef)(L);
|
|
478
|
+
a.current = L;
|
|
479
|
+
const h = (0, n.useRef)(y);
|
|
480
|
+
h.current = y;
|
|
481
|
+
const W = (0, n.useRef)(!1), fe = (0, n.useRef)(!1), N = (0, n.useRef)(0), J = (0, n.useRef)(0), $ = (0, n.useRef)(0), G = (0, n.useCallback)(() => d instanceof HTMLElement ? d : typeof d == "string" ? document.getElementById(d) : null, [d]);
|
|
483
482
|
(0, n.useEffect)(() => {
|
|
484
|
-
if (typeof
|
|
485
|
-
if (
|
|
483
|
+
if (typeof F > "u") throw new Error("mandatory prop \"dataLength\" is missing. The prop is needed when loading more content. Check README.md for usage");
|
|
484
|
+
if (w && typeof L != "function") throw new Error(`Mandatory prop "refreshFunction" missing.
|
|
486
485
|
Pull Down To Refresh functionality will not work
|
|
487
486
|
as expected. Check README.md for usage'`);
|
|
488
487
|
if (typeof O == "number") {
|
|
489
|
-
const _ =
|
|
488
|
+
const _ = p ? S.current : G();
|
|
490
489
|
_ && _.scrollHeight > O && _.scrollTo(0, O);
|
|
491
490
|
}
|
|
492
491
|
}, []), (0, n.useEffect)(() => {
|
|
493
|
-
W.current = !1,
|
|
494
|
-
}, [
|
|
492
|
+
W.current = !1, q(!1);
|
|
493
|
+
}, [F]), (0, n.useEffect)(() => {
|
|
495
494
|
if (!e || typeof IntersectionObserver > "u") return;
|
|
496
|
-
const _ =
|
|
495
|
+
const _ = U.current;
|
|
497
496
|
if (!_) return;
|
|
498
|
-
const
|
|
499
|
-
!
|
|
497
|
+
const re = p ? S.current : G(), M = new IntersectionObserver(([se]) => {
|
|
498
|
+
!se.isIntersecting || W.current || (W.current = !0, q(!0), K.current());
|
|
500
499
|
}, {
|
|
501
|
-
root:
|
|
502
|
-
rootMargin:
|
|
500
|
+
root: re,
|
|
501
|
+
rootMargin: xt(i, I),
|
|
503
502
|
threshold: 0
|
|
504
503
|
});
|
|
505
|
-
return
|
|
504
|
+
return M.observe(_), () => M.disconnect();
|
|
506
505
|
}, [
|
|
507
506
|
e,
|
|
508
507
|
i,
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
508
|
+
I,
|
|
509
|
+
p,
|
|
510
|
+
G
|
|
512
511
|
]), (0, n.useEffect)(() => {
|
|
513
512
|
var _;
|
|
514
|
-
if (!
|
|
515
|
-
const
|
|
516
|
-
if (!
|
|
517
|
-
const
|
|
518
|
-
setTimeout(() =>
|
|
513
|
+
if (!A) return;
|
|
514
|
+
const re = (_ = p ? S.current : G()) !== null && _ !== void 0 ? _ : typeof window < "u" ? window : null;
|
|
515
|
+
if (!re) return;
|
|
516
|
+
const M = (se) => {
|
|
517
|
+
setTimeout(() => A(se), 0);
|
|
519
518
|
};
|
|
520
|
-
return
|
|
519
|
+
return re.addEventListener("scroll", M), () => re.removeEventListener("scroll", M);
|
|
521
520
|
}, [
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
521
|
+
A,
|
|
522
|
+
p,
|
|
523
|
+
G
|
|
525
524
|
]), (0, n.useEffect)(() => {
|
|
526
|
-
var _,
|
|
527
|
-
if (!
|
|
528
|
-
const
|
|
529
|
-
if (!
|
|
530
|
-
if (!((
|
|
531
|
-
const
|
|
532
|
-
|
|
525
|
+
var _, re;
|
|
526
|
+
if (!w) return;
|
|
527
|
+
const M = (_ = p ? S.current : G()) !== null && _ !== void 0 ? _ : typeof window < "u" ? window : null;
|
|
528
|
+
if (!M) return;
|
|
529
|
+
if (!((re = Y.current) === null || re === void 0) && re.firstChild) {
|
|
530
|
+
const X = Y.current.firstChild.getBoundingClientRect().height;
|
|
531
|
+
$.current = X, x(X);
|
|
533
532
|
}
|
|
534
|
-
const
|
|
535
|
-
(
|
|
536
|
-
},
|
|
537
|
-
if (!
|
|
538
|
-
const
|
|
539
|
-
|
|
533
|
+
const se = (X) => {
|
|
534
|
+
(M instanceof HTMLElement ? M.scrollTop : document.documentElement.scrollTop) > 0 || (fe.current = !0, X instanceof MouseEvent ? N.current = X.pageY : X instanceof TouchEvent && (N.current = X.touches[0].pageY), J.current = N.current, S.current && (S.current.style.willChange = "transform", S.current.style.transition = "transform 0.2s cubic-bezier(0,0,0.31,1)"));
|
|
535
|
+
}, g = (X) => {
|
|
536
|
+
if (!fe.current || (X instanceof MouseEvent ? J.current = X.pageY : X instanceof TouchEvent && (J.current = X.touches[0].pageY), J.current < N.current)) return;
|
|
537
|
+
const ce = J.current - N.current;
|
|
538
|
+
ce >= h.current && T(!0), !(ce > $.current * 1.5) && S.current && (S.current.style.overflow = "visible", S.current.style.transform = `translate3d(0px, ${ce}px, 0px)`);
|
|
540
539
|
}, te = () => {
|
|
541
|
-
|
|
542
|
-
var
|
|
543
|
-
return
|
|
540
|
+
N.current = 0, J.current = 0, fe.current = !1, T((X) => {
|
|
541
|
+
var ce;
|
|
542
|
+
return X && ((ce = a.current) === null || ce === void 0 || ce.call(a)), !1;
|
|
544
543
|
}), requestAnimationFrame(() => {
|
|
545
|
-
|
|
544
|
+
S.current && (S.current.style.overflow = "auto", S.current.style.transform = "none", S.current.style.willChange = "unset");
|
|
546
545
|
});
|
|
547
546
|
};
|
|
548
|
-
return
|
|
549
|
-
|
|
547
|
+
return M.addEventListener("touchstart", se), M.addEventListener("touchmove", g), M.addEventListener("touchend", te), M.addEventListener("mousedown", se), M.addEventListener("mousemove", g), M.addEventListener("mouseup", te), () => {
|
|
548
|
+
M.removeEventListener("touchstart", se), M.removeEventListener("touchmove", g), M.removeEventListener("touchend", te), M.removeEventListener("mousedown", se), M.removeEventListener("mousemove", g), M.removeEventListener("mouseup", te);
|
|
550
549
|
};
|
|
551
550
|
}, [
|
|
551
|
+
w,
|
|
552
552
|
p,
|
|
553
|
-
|
|
554
|
-
H
|
|
553
|
+
G
|
|
555
554
|
]);
|
|
556
|
-
const
|
|
557
|
-
height:
|
|
555
|
+
const he = {
|
|
556
|
+
height: p ?? "auto",
|
|
558
557
|
overflow: "auto",
|
|
559
558
|
WebkitOverflowScrolling: "touch",
|
|
560
559
|
...b
|
|
561
|
-
},
|
|
562
|
-
ref:
|
|
560
|
+
}, ie = v || !!(o && o instanceof Array && o.length), me = w && p ? { overflow: "auto" } : {}, Ae = e ? (0, r.jsx)("div", {
|
|
561
|
+
ref: U,
|
|
563
562
|
style: { height: 1 }
|
|
564
563
|
}) : null;
|
|
565
564
|
return (0, r.jsx)("div", {
|
|
566
|
-
style:
|
|
565
|
+
style: me,
|
|
567
566
|
className: "infinite-scroll-component__outerdiv",
|
|
568
567
|
children: (0, r.jsxs)("div", {
|
|
569
|
-
...
|
|
570
|
-
role:
|
|
571
|
-
tabIndex:
|
|
572
|
-
id:
|
|
573
|
-
className: ["infinite-scroll-component",
|
|
574
|
-
ref:
|
|
575
|
-
style:
|
|
568
|
+
...V,
|
|
569
|
+
role: H,
|
|
570
|
+
tabIndex: B,
|
|
571
|
+
id: z,
|
|
572
|
+
className: ["infinite-scroll-component", D].filter(Boolean).join(" "),
|
|
573
|
+
ref: S,
|
|
574
|
+
style: he,
|
|
576
575
|
children: [
|
|
577
|
-
|
|
576
|
+
w && (0, r.jsx)("div", {
|
|
578
577
|
style: { position: "relative" },
|
|
579
|
-
ref:
|
|
578
|
+
ref: Y,
|
|
580
579
|
children: (0, r.jsx)("div", {
|
|
581
580
|
style: {
|
|
582
581
|
position: "absolute",
|
|
@@ -584,38 +583,38 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
584
583
|
right: 0,
|
|
585
584
|
top: -1 * E
|
|
586
585
|
},
|
|
587
|
-
children:
|
|
586
|
+
children: j ? R : C
|
|
588
587
|
})
|
|
589
588
|
}),
|
|
590
589
|
o,
|
|
591
|
-
!ee && !
|
|
592
|
-
ee && e &&
|
|
593
|
-
|
|
590
|
+
!ee && !ie && e && s,
|
|
591
|
+
ee && e && s,
|
|
592
|
+
Ae,
|
|
594
593
|
!e && l
|
|
595
594
|
]
|
|
596
595
|
})
|
|
597
596
|
});
|
|
598
597
|
}
|
|
599
|
-
function
|
|
598
|
+
function St(t, e) {
|
|
600
599
|
if (t == null) return {};
|
|
601
|
-
var o =
|
|
600
|
+
var o = Rt(t, e), s, i;
|
|
602
601
|
if (Object.getOwnPropertySymbols) {
|
|
603
602
|
var l = Object.getOwnPropertySymbols(t);
|
|
604
|
-
for (i = 0; i < l.length; i++)
|
|
603
|
+
for (i = 0; i < l.length; i++) s = l[i], !(e.indexOf(s) >= 0) && Object.prototype.propertyIsEnumerable.call(t, s) && (o[s] = t[s]);
|
|
605
604
|
}
|
|
606
605
|
return o;
|
|
607
606
|
}
|
|
608
|
-
function
|
|
607
|
+
function Rt(t, e) {
|
|
609
608
|
if (t == null) return {};
|
|
610
|
-
var o = {},
|
|
611
|
-
for (l = 0; l <
|
|
609
|
+
var o = {}, s = Object.keys(t), i, l;
|
|
610
|
+
for (l = 0; l < s.length; l++) i = s[l], !(e.indexOf(i) >= 0) && (o[i] = t[i]);
|
|
612
611
|
return o;
|
|
613
612
|
}
|
|
614
613
|
function De() {
|
|
615
614
|
return De = Object.assign || function(t) {
|
|
616
615
|
for (var e = 1; e < arguments.length; e++) {
|
|
617
616
|
var o = arguments[e];
|
|
618
|
-
for (var
|
|
617
|
+
for (var s in o) Object.prototype.hasOwnProperty.call(o, s) && (t[s] = o[s]);
|
|
619
618
|
}
|
|
620
619
|
return t;
|
|
621
620
|
}, De.apply(this, arguments);
|
|
@@ -623,25 +622,25 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
623
622
|
function et(t, e) {
|
|
624
623
|
var o = Object.keys(t);
|
|
625
624
|
if (Object.getOwnPropertySymbols) {
|
|
626
|
-
var
|
|
627
|
-
e && (
|
|
625
|
+
var s = Object.getOwnPropertySymbols(t);
|
|
626
|
+
e && (s = s.filter(function(i) {
|
|
628
627
|
return Object.getOwnPropertyDescriptor(t, i).enumerable;
|
|
629
|
-
})), o.push.apply(o,
|
|
628
|
+
})), o.push.apply(o, s);
|
|
630
629
|
}
|
|
631
630
|
return o;
|
|
632
631
|
}
|
|
633
|
-
function
|
|
632
|
+
function ke(t) {
|
|
634
633
|
for (var e = 1; e < arguments.length; e++) {
|
|
635
634
|
var o = arguments[e] != null ? arguments[e] : {};
|
|
636
|
-
e % 2 ? et(Object(o), !0).forEach(function(
|
|
637
|
-
|
|
638
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : et(Object(o)).forEach(function(
|
|
639
|
-
Object.defineProperty(t,
|
|
635
|
+
e % 2 ? et(Object(o), !0).forEach(function(s) {
|
|
636
|
+
kt(t, s, o[s]);
|
|
637
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o)) : et(Object(o)).forEach(function(s) {
|
|
638
|
+
Object.defineProperty(t, s, Object.getOwnPropertyDescriptor(o, s));
|
|
640
639
|
});
|
|
641
640
|
}
|
|
642
641
|
return t;
|
|
643
642
|
}
|
|
644
|
-
function
|
|
643
|
+
function kt(t, e, o) {
|
|
645
644
|
return e in t ? Object.defineProperty(t, e, {
|
|
646
645
|
value: o,
|
|
647
646
|
enumerable: !0,
|
|
@@ -649,7 +648,7 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
649
648
|
writable: !0
|
|
650
649
|
}) : t[e] = o, t;
|
|
651
650
|
}
|
|
652
|
-
var
|
|
651
|
+
var Et = {
|
|
653
652
|
breakpointCols: void 0,
|
|
654
653
|
className: void 0,
|
|
655
654
|
columnClassName: void 0,
|
|
@@ -684,34 +683,34 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
684
683
|
const t = window && window.innerWidth || Infinity;
|
|
685
684
|
let e = this.props.breakpointCols;
|
|
686
685
|
typeof e != "object" && (e = { default: parseInt(e) || Te });
|
|
687
|
-
let o = Infinity,
|
|
686
|
+
let o = Infinity, s = e.default || Te;
|
|
688
687
|
for (let i in e) {
|
|
689
688
|
const l = parseInt(i);
|
|
690
|
-
l > 0 && t <= l && l < o && (o = l,
|
|
689
|
+
l > 0 && t <= l && l < o && (o = l, s = e[i]);
|
|
691
690
|
}
|
|
692
|
-
|
|
691
|
+
s = Math.max(1, parseInt(s) || 1), this.state.columnCount !== s && this.setState({ columnCount: s });
|
|
693
692
|
}
|
|
694
693
|
itemsInColumns() {
|
|
695
694
|
const t = this.state.columnCount, e = new Array(t), o = n.default.Children.toArray(this.props.children);
|
|
696
|
-
for (let
|
|
697
|
-
const i =
|
|
698
|
-
e[i] || (e[i] = []), e[i].push(o[
|
|
695
|
+
for (let s = 0; s < o.length; s++) {
|
|
696
|
+
const i = s % t;
|
|
697
|
+
e[i] || (e[i] = []), e[i].push(o[s]);
|
|
699
698
|
}
|
|
700
699
|
return e;
|
|
701
700
|
}
|
|
702
701
|
renderColumns() {
|
|
703
|
-
const { column: t, columnAttrs: e = {}, columnClassName: o } = this.props,
|
|
702
|
+
const { column: t, columnAttrs: e = {}, columnClassName: o } = this.props, s = this.itemsInColumns(), i = `${100 / s.length}%`;
|
|
704
703
|
let l = o;
|
|
705
704
|
l && typeof l != "string" && (this.logDeprecated("The property \"columnClassName\" requires a string"), typeof l > "u" && (l = "my-masonry-grid_column"));
|
|
706
|
-
const b =
|
|
707
|
-
style:
|
|
705
|
+
const b = ke(ke(ke({}, t), e), {}, {
|
|
706
|
+
style: ke(ke({}, e.style), {}, { width: i }),
|
|
708
707
|
className: l
|
|
709
708
|
});
|
|
710
|
-
return
|
|
709
|
+
return s.map((p, d) => n.default.createElement("div", De({}, b, { key: d }), p));
|
|
711
710
|
}
|
|
712
711
|
logDeprecated(t) {}
|
|
713
712
|
render() {
|
|
714
|
-
const t = this.props, { children: e, breakpointCols: o, columnClassName:
|
|
713
|
+
const t = this.props, { children: e, breakpointCols: o, columnClassName: s, columnAttrs: i, column: l, className: b } = t, p = St(t, [
|
|
715
714
|
"children",
|
|
716
715
|
"breakpointCols",
|
|
717
716
|
"columnClassName",
|
|
@@ -720,10 +719,10 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
720
719
|
"className"
|
|
721
720
|
]);
|
|
722
721
|
let d = b;
|
|
723
|
-
return typeof b != "string" && (this.logDeprecated("The property \"className\" requires a string"), typeof b > "u" && (d = "my-masonry-grid")), n.default.createElement("div", De({},
|
|
722
|
+
return typeof b != "string" && (this.logDeprecated("The property \"className\" requires a string"), typeof b > "u" && (d = "my-masonry-grid")), n.default.createElement("div", De({}, p, { className: d }), this.renderColumns());
|
|
724
723
|
}
|
|
725
724
|
};
|
|
726
|
-
Ne.defaultProps =
|
|
725
|
+
Ne.defaultProps = Et;
|
|
727
726
|
function Fe(t, e) {
|
|
728
727
|
return t ? t.exhausted ? {
|
|
729
728
|
...t,
|
|
@@ -733,125 +732,125 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
733
732
|
src: t.src || e || null
|
|
734
733
|
} : null;
|
|
735
734
|
}
|
|
736
|
-
function tt({ items: t, getItemId: e, getRequestUrl: o, createController:
|
|
737
|
-
const [i, l] = (0, n.useState)({}), b = (0, n.useRef)(new Map()),
|
|
738
|
-
const
|
|
739
|
-
if (b.current.has(
|
|
740
|
-
itemId:
|
|
741
|
-
requestUrl:
|
|
742
|
-
cacheKey:
|
|
743
|
-
controller: b.current.get(
|
|
735
|
+
function tt({ items: t, getItemId: e, getRequestUrl: o, createController: s }) {
|
|
736
|
+
const [i, l] = (0, n.useState)({}), b = (0, n.useRef)(new Map()), p = (0, n.useCallback)((d) => {
|
|
737
|
+
const v = e(d), I = o(d), w = `${v}:${I}`;
|
|
738
|
+
if (b.current.has(w)) return {
|
|
739
|
+
itemId: v,
|
|
740
|
+
requestUrl: I,
|
|
741
|
+
cacheKey: w,
|
|
742
|
+
controller: b.current.get(w)
|
|
744
743
|
};
|
|
745
|
-
const
|
|
746
|
-
return b.current.set(
|
|
747
|
-
itemId:
|
|
748
|
-
requestUrl:
|
|
749
|
-
cacheKey:
|
|
750
|
-
controller:
|
|
744
|
+
const C = s(I);
|
|
745
|
+
return b.current.set(w, C), {
|
|
746
|
+
itemId: v,
|
|
747
|
+
requestUrl: I,
|
|
748
|
+
cacheKey: w,
|
|
749
|
+
controller: C
|
|
751
750
|
};
|
|
752
751
|
}, [
|
|
753
|
-
|
|
752
|
+
s,
|
|
754
753
|
e,
|
|
755
754
|
o
|
|
756
755
|
]);
|
|
757
756
|
return (0, n.useEffect)(() => {
|
|
758
|
-
const d = new Set(),
|
|
759
|
-
const { itemId:
|
|
760
|
-
d.add(
|
|
761
|
-
const
|
|
762
|
-
return
|
|
763
|
-
const
|
|
764
|
-
!
|
|
757
|
+
const d = new Set(), v = {}, I = t.map((w) => {
|
|
758
|
+
const { itemId: C, cacheKey: R, controller: y } = p(w);
|
|
759
|
+
d.add(R), v[C] = y.src;
|
|
760
|
+
const L = Fe(y.handleChangeSrc?.(), y.src);
|
|
761
|
+
return L?.changed && L.src && (v[C] = L.src), y.subscribeToSrcChange?.((A) => {
|
|
762
|
+
const F = Fe(A, y.src);
|
|
763
|
+
!F?.changed || !F.src || l((O) => O[C] === F.src ? O : {
|
|
765
764
|
...O,
|
|
766
|
-
[
|
|
765
|
+
[C]: F.src
|
|
767
766
|
});
|
|
768
767
|
});
|
|
769
768
|
}).filter(Boolean);
|
|
770
|
-
return b.current.forEach((
|
|
771
|
-
d.has(
|
|
772
|
-
}), l(
|
|
773
|
-
|
|
769
|
+
return b.current.forEach((w, C) => {
|
|
770
|
+
d.has(C) || b.current.delete(C);
|
|
771
|
+
}), l(v), () => {
|
|
772
|
+
I.forEach((w) => w?.());
|
|
774
773
|
};
|
|
775
|
-
}, [
|
|
774
|
+
}, [p, t]), {
|
|
776
775
|
getDisplaySrc: (0, n.useCallback)((d) => {
|
|
777
|
-
const { itemId:
|
|
778
|
-
return i[
|
|
779
|
-
}, [i,
|
|
776
|
+
const { itemId: v, requestUrl: I, controller: w } = p(d);
|
|
777
|
+
return i[v] || w.src || I;
|
|
778
|
+
}, [i, p]),
|
|
780
779
|
handleLoad: (0, n.useCallback)((d) => {
|
|
781
|
-
|
|
782
|
-
}, [
|
|
780
|
+
p(d).controller.handleSuccess();
|
|
781
|
+
}, [p]),
|
|
783
782
|
handleError: (0, n.useCallback)((d) => {
|
|
784
|
-
const { itemId:
|
|
785
|
-
|
|
786
|
-
...
|
|
787
|
-
[
|
|
783
|
+
const { itemId: v, controller: I } = p(d), w = Fe(I.handleError(), I.src);
|
|
784
|
+
w?.changed && w.src && l((C) => ({
|
|
785
|
+
...C,
|
|
786
|
+
[v]: w.src
|
|
788
787
|
}));
|
|
789
|
-
}, [
|
|
788
|
+
}, [p])
|
|
790
789
|
};
|
|
791
790
|
}
|
|
792
|
-
var nt = "blocks",
|
|
793
|
-
const
|
|
794
|
-
|
|
791
|
+
var nt = "blocks", jt = ({ setCurrentImageLink: t, setModalHeight: e, setModalWidth: o, setImageStockList: s, imageStockList: i, currentReq: l, setCurrentReq: b, inputRef: p, setStockLink: d, customRequest: v }) => {
|
|
792
|
+
const I = u.useAppConfig(), w = u.useIsStandalone(), [C, R] = (0, n.useState)(!1), [y, L] = (0, n.useState)(2), { __: A } = m.useI18n(), F = m.useNotification(), [O] = Z.useLazyGetUnsplashImageQuery(), [D] = Z.useLazyGetSearchImageQuery(), H = (0, n.useCallback)((a) => a instanceof Error || typeof a?.message == "string" && a.message ? a.message : typeof a?.error?.message == "string" && a.error.message ? a.error.message : A("Failed to load stock images through the configured proxy chain."), [A]), B = (0, n.useCallback)((a) => {
|
|
793
|
+
F.error({
|
|
795
794
|
id: "STOCK_IMAGES_SEARCH_FAILED",
|
|
796
|
-
title:
|
|
797
|
-
description:
|
|
795
|
+
title: A("Failed to load stock images"),
|
|
796
|
+
description: H(a)
|
|
798
797
|
});
|
|
799
798
|
}, [
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
]),
|
|
804
|
-
|
|
799
|
+
A,
|
|
800
|
+
H,
|
|
801
|
+
F
|
|
802
|
+
]), z = async () => {
|
|
803
|
+
C || (R(!0), D({
|
|
805
804
|
query: l,
|
|
806
|
-
page:
|
|
807
|
-
}).then((
|
|
808
|
-
if (
|
|
809
|
-
|
|
805
|
+
page: y
|
|
806
|
+
}).then((a) => {
|
|
807
|
+
if (a?.error) {
|
|
808
|
+
B(a.error), R(!1);
|
|
810
809
|
return;
|
|
811
810
|
}
|
|
812
|
-
const h =
|
|
813
|
-
|
|
811
|
+
const h = a?.data?.results || [];
|
|
812
|
+
s((W) => [...W, ...h]), R(!1), L((W) => W + 1);
|
|
814
813
|
}).catch(() => {
|
|
815
|
-
|
|
814
|
+
R(!1);
|
|
816
815
|
}));
|
|
817
816
|
};
|
|
818
817
|
(0, n.useEffect)(() => {
|
|
819
|
-
l.keywords !== "" &&
|
|
818
|
+
l.keywords !== "" && V();
|
|
820
819
|
}, [l.color, l.orientation]);
|
|
821
|
-
const
|
|
822
|
-
const
|
|
820
|
+
const V = async () => {
|
|
821
|
+
const a = await D({
|
|
823
822
|
query: l,
|
|
824
823
|
page: 1
|
|
825
824
|
});
|
|
826
|
-
if (
|
|
827
|
-
|
|
825
|
+
if (a?.error) {
|
|
826
|
+
B(a.error), s([]);
|
|
828
827
|
return;
|
|
829
828
|
}
|
|
830
|
-
const h =
|
|
831
|
-
h.length > 0 ? (
|
|
829
|
+
const h = a?.data?.results || [];
|
|
830
|
+
h.length > 0 ? (s(h), setTimeout(() => {
|
|
832
831
|
o(1060), e("84vh");
|
|
833
|
-
}, 0)) :
|
|
834
|
-
}, [ee,
|
|
835
|
-
config:
|
|
836
|
-
standalone:
|
|
832
|
+
}, 0)) : s([]);
|
|
833
|
+
}, [ee, q] = (0, n.useState)(null), j = (0, n.useCallback)((a, h, W) => `${a}${a.includes("?") ? "&" : "?"}w=${h}&q=${W}`, []), T = (0, n.useCallback)((a) => u.getProxiedUrl(a, {
|
|
834
|
+
config: I,
|
|
835
|
+
standalone: w,
|
|
837
836
|
resourceType: "stockImages",
|
|
838
837
|
intent: "display"
|
|
839
|
-
}), [
|
|
838
|
+
}), [I, w]), { getDisplaySrc: E, handleLoad: x, handleError: S } = tt({
|
|
840
839
|
items: i,
|
|
841
|
-
getItemId: (0, n.useCallback)((
|
|
842
|
-
getRequestUrl: (0, n.useCallback)((
|
|
843
|
-
createController:
|
|
844
|
-
}),
|
|
845
|
-
|
|
846
|
-
},
|
|
847
|
-
|
|
848
|
-
},
|
|
849
|
-
O(h.download_location),
|
|
840
|
+
getItemId: (0, n.useCallback)((a) => a.id, []),
|
|
841
|
+
getRequestUrl: (0, n.useCallback)((a) => j(a.urls.raw, 644, 96), [j]),
|
|
842
|
+
createController: T
|
|
843
|
+
}), U = (a) => (h) => {
|
|
844
|
+
x(a), h.target.parentNode.classList.add("loaded");
|
|
845
|
+
}, Y = (a) => () => {
|
|
846
|
+
S(a);
|
|
847
|
+
}, K = (a, h, W) => {
|
|
848
|
+
O(h.download_location), q(W), setTimeout(() => q(null), 2e3), d(`${a.raw}&w=1200&q=96`), t(`${a.raw}&w=1200&q=96`), v(`${a.raw}&w=1200&q=96`);
|
|
850
849
|
};
|
|
851
850
|
return (0, r.jsxs)("div", {
|
|
852
851
|
className: "stock-tab",
|
|
853
852
|
children: [(0, r.jsxs)(m.Form, {
|
|
854
|
-
onValuesChange:
|
|
853
|
+
onValuesChange: V,
|
|
855
854
|
className: i.length > 0 ? "serach-results" : "",
|
|
856
855
|
children: [(0, r.jsxs)(m.Row, {
|
|
857
856
|
gutter: 24,
|
|
@@ -860,121 +859,121 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
860
859
|
children: (0, r.jsx)(m.Form.Item, {
|
|
861
860
|
className: "stock-search-input",
|
|
862
861
|
children: (0, r.jsx)(m.SearchInput, {
|
|
863
|
-
onSearch:
|
|
862
|
+
onSearch: V,
|
|
864
863
|
allowClear: !0,
|
|
865
864
|
size: i.length > 0 ? "medium" : "large",
|
|
866
|
-
placeholder:
|
|
865
|
+
placeholder: A("Search image"),
|
|
867
866
|
value: l.keywords,
|
|
868
|
-
onChange: (
|
|
867
|
+
onChange: (a) => b((h) => ({
|
|
869
868
|
...h,
|
|
870
|
-
keywords:
|
|
869
|
+
keywords: a.target.value
|
|
871
870
|
})),
|
|
872
|
-
ref:
|
|
871
|
+
ref: p,
|
|
873
872
|
spellCheck: "false",
|
|
874
873
|
enterButton: !1
|
|
875
874
|
})
|
|
876
875
|
})
|
|
877
876
|
}), i.length > 0 && (0, r.jsxs)(r.Fragment, { children: [(0, r.jsx)(m.Col, { children: (0, r.jsxs)(m.Radio.Group, {
|
|
878
877
|
defaultValue: "",
|
|
879
|
-
onChange: (
|
|
878
|
+
onChange: (a) => b((h) => ({
|
|
880
879
|
...h,
|
|
881
|
-
orientation:
|
|
880
|
+
orientation: a.target.value
|
|
882
881
|
})),
|
|
883
882
|
children: [
|
|
884
883
|
(0, r.jsx)(m.Tooltip, {
|
|
885
|
-
title:
|
|
884
|
+
title: A("All"),
|
|
886
885
|
placement: "top",
|
|
887
886
|
children: (0, r.jsx)(m.Radio.Button, {
|
|
888
887
|
value: "",
|
|
889
|
-
children: (0, r.jsx)(
|
|
888
|
+
children: (0, r.jsx)(P.EmIcons, { icon: "MixedView" })
|
|
890
889
|
})
|
|
891
890
|
}),
|
|
892
891
|
(0, r.jsx)(m.Tooltip, {
|
|
893
|
-
title:
|
|
892
|
+
title: A("Landscape"),
|
|
894
893
|
placement: "top",
|
|
895
894
|
children: (0, r.jsx)(m.Radio.Button, {
|
|
896
895
|
value: "landscape",
|
|
897
|
-
children: (0, r.jsx)(
|
|
896
|
+
children: (0, r.jsx)(P.EmIcons, { icon: "LandscapeView" })
|
|
898
897
|
})
|
|
899
898
|
}),
|
|
900
899
|
(0, r.jsx)(m.Tooltip, {
|
|
901
|
-
title:
|
|
900
|
+
title: A("Portrait"),
|
|
902
901
|
placement: "top",
|
|
903
902
|
children: (0, r.jsx)(m.Radio.Button, {
|
|
904
903
|
value: "portrait",
|
|
905
|
-
children: (0, r.jsx)(
|
|
904
|
+
children: (0, r.jsx)(P.EmIcons, { icon: "PortraitView" })
|
|
906
905
|
})
|
|
907
906
|
}),
|
|
908
907
|
(0, r.jsx)(m.Tooltip, {
|
|
909
|
-
title:
|
|
908
|
+
title: A("Squarish"),
|
|
910
909
|
placement: "top",
|
|
911
910
|
children: (0, r.jsx)(m.Radio.Button, {
|
|
912
911
|
value: "squarish",
|
|
913
|
-
children: (0, r.jsx)(
|
|
912
|
+
children: (0, r.jsx)(P.EmIcons, { icon: "SquareView" })
|
|
914
913
|
})
|
|
915
914
|
})
|
|
916
915
|
]
|
|
917
916
|
}) }), (0, r.jsx)(m.Col, { children: (0, r.jsx)(m.RadioColorFilter, {
|
|
918
917
|
defaultValue: "",
|
|
919
|
-
onChange: (
|
|
918
|
+
onChange: (a) => b((h) => ({
|
|
920
919
|
...h,
|
|
921
|
-
color:
|
|
920
|
+
color: a.target.value
|
|
922
921
|
})),
|
|
923
922
|
options: [
|
|
924
923
|
{
|
|
925
924
|
value: "",
|
|
926
925
|
colorClass: "all-colors",
|
|
927
|
-
label:
|
|
926
|
+
label: A("All")
|
|
928
927
|
},
|
|
929
928
|
{
|
|
930
929
|
value: "black",
|
|
931
930
|
colorClass: "black-color",
|
|
932
|
-
label:
|
|
931
|
+
label: A("Black")
|
|
933
932
|
},
|
|
934
933
|
{
|
|
935
934
|
value: "black_and_white",
|
|
936
935
|
colorClass: "bw-color",
|
|
937
|
-
label:
|
|
936
|
+
label: A("Black and White")
|
|
938
937
|
},
|
|
939
938
|
{
|
|
940
939
|
value: "white",
|
|
941
940
|
colorClass: "white-color",
|
|
942
|
-
label:
|
|
941
|
+
label: A("White")
|
|
943
942
|
},
|
|
944
943
|
{
|
|
945
944
|
value: "orange",
|
|
946
945
|
colorClass: "orange-color",
|
|
947
|
-
label:
|
|
946
|
+
label: A("Orange")
|
|
948
947
|
},
|
|
949
948
|
{
|
|
950
949
|
value: "red",
|
|
951
950
|
colorClass: "red-color",
|
|
952
|
-
label:
|
|
951
|
+
label: A("Red")
|
|
953
952
|
},
|
|
954
953
|
{
|
|
955
954
|
value: "purple",
|
|
956
955
|
colorClass: "purple-color",
|
|
957
|
-
label:
|
|
956
|
+
label: A("Purple")
|
|
958
957
|
},
|
|
959
958
|
{
|
|
960
959
|
value: "magenta",
|
|
961
960
|
colorClass: "magenta-color",
|
|
962
|
-
label:
|
|
961
|
+
label: A("Magenta")
|
|
963
962
|
},
|
|
964
963
|
{
|
|
965
964
|
value: "green",
|
|
966
965
|
colorClass: "green-color",
|
|
967
|
-
label:
|
|
966
|
+
label: A("Green")
|
|
968
967
|
},
|
|
969
968
|
{
|
|
970
969
|
value: "teal",
|
|
971
970
|
colorClass: "teal-color",
|
|
972
|
-
label:
|
|
971
|
+
label: A("Teal")
|
|
973
972
|
},
|
|
974
973
|
{
|
|
975
974
|
value: "blue",
|
|
976
975
|
colorClass: "blue-color",
|
|
977
|
-
label:
|
|
976
|
+
label: A("Blue")
|
|
978
977
|
}
|
|
979
978
|
],
|
|
980
979
|
tooltipPlacement: "top"
|
|
@@ -1004,11 +1003,11 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
1004
1003
|
},
|
|
1005
1004
|
children: (0, r.jsx)($e, {
|
|
1006
1005
|
dataLength: i && i.length,
|
|
1007
|
-
next:
|
|
1006
|
+
next: z,
|
|
1008
1007
|
hasMore: i,
|
|
1009
1008
|
endMessage: (0, r.jsxs)(m.Divider, {
|
|
1010
1009
|
plain: !0,
|
|
1011
|
-
children: [
|
|
1010
|
+
children: [A("That`s all we could find."), " 🤐"]
|
|
1012
1011
|
}),
|
|
1013
1012
|
scrollableTarget: "scrollableDiv",
|
|
1014
1013
|
style: { overflow: "visible" },
|
|
@@ -1017,17 +1016,17 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
1017
1016
|
breakpointCols: { default: 3 },
|
|
1018
1017
|
className: "my-masonry-grid",
|
|
1019
1018
|
columnClassName: "my-masonry-grid_column",
|
|
1020
|
-
children: i.map((
|
|
1019
|
+
children: i.map((a) => (0, r.jsxs)("div", {
|
|
1021
1020
|
className: "list-item",
|
|
1022
|
-
onClick: () =>
|
|
1021
|
+
onClick: () => K(a.urls, a.links, a.id),
|
|
1023
1022
|
children: [
|
|
1024
1023
|
(0, r.jsx)("img", {
|
|
1025
|
-
className: ee ===
|
|
1024
|
+
className: ee === a.id ? "loaded-image" : "",
|
|
1026
1025
|
width: "322px",
|
|
1027
|
-
src: E(
|
|
1028
|
-
alt:
|
|
1029
|
-
onLoad:
|
|
1030
|
-
onError:
|
|
1026
|
+
src: E(a),
|
|
1027
|
+
alt: a.description,
|
|
1028
|
+
onLoad: U(a),
|
|
1029
|
+
onError: Y(a)
|
|
1031
1030
|
}),
|
|
1032
1031
|
(0, r.jsxs)("p", {
|
|
1033
1032
|
className: "creator-info",
|
|
@@ -1037,9 +1036,9 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
1037
1036
|
" ",
|
|
1038
1037
|
(0, r.jsx)("a", {
|
|
1039
1038
|
target: "_blank",
|
|
1040
|
-
href: `${
|
|
1039
|
+
href: `${a.user.links.html}?utm_source=${nt}&utm_medium=referral`,
|
|
1041
1040
|
rel: "noreferrer",
|
|
1042
|
-
children:
|
|
1041
|
+
children: a.user.name
|
|
1043
1042
|
}),
|
|
1044
1043
|
" ",
|
|
1045
1044
|
"on",
|
|
@@ -1052,12 +1051,12 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
1052
1051
|
})
|
|
1053
1052
|
]
|
|
1054
1053
|
}),
|
|
1055
|
-
ee ===
|
|
1054
|
+
ee === a.id && (0, r.jsx)(m.Spin, {
|
|
1056
1055
|
className: "ant-spin",
|
|
1057
1056
|
size: "small"
|
|
1058
1057
|
})
|
|
1059
1058
|
]
|
|
1060
|
-
},
|
|
1059
|
+
}, a.id))
|
|
1061
1060
|
})
|
|
1062
1061
|
})
|
|
1063
1062
|
})
|
|
@@ -1067,20 +1066,20 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
1067
1066
|
function rt(t) {
|
|
1068
1067
|
return /^(https?:)?\/\//i.test(t.trim());
|
|
1069
1068
|
}
|
|
1070
|
-
function
|
|
1069
|
+
function Ot(t) {
|
|
1071
1070
|
const e = t.trim();
|
|
1072
1071
|
return rt(e) || /^data:/i.test(e) ? e : `data:image/jpeg;base64, ${t}`;
|
|
1073
1072
|
}
|
|
1074
|
-
var
|
|
1075
|
-
const [o,
|
|
1073
|
+
var Lt = ({ images: t, transitionDuration: e = 1e3 }) => {
|
|
1074
|
+
const [o, s] = (0, n.useState)([]);
|
|
1076
1075
|
return (0, n.useEffect)(() => {
|
|
1077
1076
|
if (t.length > 0) {
|
|
1078
1077
|
const i = t[t.length - 1];
|
|
1079
|
-
|
|
1078
|
+
s((l) => [...l, {
|
|
1080
1079
|
src: i,
|
|
1081
1080
|
opacity: 0
|
|
1082
1081
|
}]), setTimeout(() => {
|
|
1083
|
-
|
|
1082
|
+
s((l) => l.map((b, p) => p === l.length - 1 ? {
|
|
1084
1083
|
...b,
|
|
1085
1084
|
opacity: 1
|
|
1086
1085
|
} : b));
|
|
@@ -1089,7 +1088,7 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
1089
1088
|
}, [t]), (0, r.jsx)("div", {
|
|
1090
1089
|
className: "slideshow-container",
|
|
1091
1090
|
children: o.map((i, l) => (0, r.jsx)("img", {
|
|
1092
|
-
src:
|
|
1091
|
+
src: Ot(i.src),
|
|
1093
1092
|
alt: `Slide ${l + 1}`,
|
|
1094
1093
|
className: "slideshow-image",
|
|
1095
1094
|
style: {
|
|
@@ -1099,181 +1098,181 @@ __emailmaker__.define("static/core/916b241e.js", [
|
|
|
1099
1098
|
}, l))
|
|
1100
1099
|
});
|
|
1101
1100
|
};
|
|
1102
|
-
function
|
|
1103
|
-
const { __:
|
|
1104
|
-
limitsInPlugin:
|
|
1105
|
-
hostedAiActive:
|
|
1106
|
-
}),
|
|
1107
|
-
|
|
1101
|
+
function Dt({ setModalHeight: t, customRequest: e, aiTabRef: o, isImageUploaded: s, setIsImageUploaded: i, aiImageRequest: l, imageAiList: b, setImageAiList: p, isLoadingAi: d, setIsLoadingAi: v, onPluginAiImageLimitExceeded: I, onImageGenerateLimitExceeded: w }) {
|
|
1102
|
+
const { __: C } = m.useI18n(), R = u.useAppConfig(), y = m.useNotification(), L = u.usePushToDataLayer(), { emailId: A, blockId: F, projectId: O } = u.useParams(), [D] = Z.useLazySendAiImageRequestQuery(), [H, { data: B = [] }] = Z.useLazyGetAiImageSSEQuery(), [z] = Z.useLazyGetLimitsStatsByTypeQuery(), V = R?.sendAIImageRequest || D, ee = R?.trigger || H, q = R?.handleLimitUsageEmitter || u.useEventEmitter(u.events.ON_LIMIT_ID), [j, T] = (0, n.useState)(0), [E, x] = (0, n.useState)(null), [S, U] = (0, n.useState)(!1), [Y, K] = (0, n.useState)(C("Evaluating the task")), [a, h] = (0, n.useState)(!1), W = A || F, { limits: fe } = R?.limits ? R : { limits: { ai_img_limit: 0 } }, { ai_img_limit: N } = fe, J = !!(R.limits && R.counters) && u.PLUGIN.isPlugin, $ = u.useEventEmitter(u.events.AI_IMAGE_REQUEST_ID).hasListeners(), G = ne.shouldCountAiUsage({
|
|
1103
|
+
limitsInPlugin: J,
|
|
1104
|
+
hostedAiActive: $
|
|
1105
|
+
}), he = !$ && N > 0 && j >= N, ie = (0, n.useCallback)(() => {
|
|
1106
|
+
q.fire({
|
|
1108
1107
|
name: "AiImgCount",
|
|
1109
|
-
count:
|
|
1108
|
+
count: j + 1
|
|
1110
1109
|
});
|
|
1111
|
-
}, [
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
]),
|
|
1117
|
-
|
|
1110
|
+
}, [q, j]), me = (0, n.useMemo)(() => !he && (!G || N === 0 || j < N), [
|
|
1111
|
+
he,
|
|
1112
|
+
G,
|
|
1113
|
+
j,
|
|
1114
|
+
N
|
|
1115
|
+
]), Ae = (0, n.useCallback)(async () => {
|
|
1116
|
+
K(C("Evaluating the task")), l !== "" && !d && (v(!0), h(!0), p([]), L({
|
|
1118
1117
|
event: "submit_form",
|
|
1119
1118
|
action: "ai_image_generation",
|
|
1120
|
-
entity_id:
|
|
1119
|
+
entity_id: A,
|
|
1121
1120
|
project_id: O
|
|
1122
|
-
}),
|
|
1121
|
+
}), V({ body: {
|
|
1123
1122
|
project_id: O,
|
|
1124
1123
|
request: "create-image",
|
|
1125
1124
|
connection: "midjourney",
|
|
1126
1125
|
message: l
|
|
1127
|
-
} }).then(({ data:
|
|
1126
|
+
} }).then(({ data: g, error: te }) => {
|
|
1128
1127
|
if (te) throw te;
|
|
1129
|
-
if (
|
|
1130
|
-
if (
|
|
1131
|
-
g
|
|
1128
|
+
if (g.data.status === 401) throw new Error(u.ERROR);
|
|
1129
|
+
if (g?.data?._eventResult) {
|
|
1130
|
+
p(g.data.task.images), v(!1), h(!1), K(C("Evaluating the task"));
|
|
1132
1131
|
return;
|
|
1133
1132
|
}
|
|
1134
|
-
|
|
1133
|
+
g?.data.status === 200 ? (g?.data.task.id && (K(g.data.task.message), x(g.data.task.id)), g.message && y.success({
|
|
1135
1134
|
id: "AI_IMAGE_SEND_SUCCESS",
|
|
1136
|
-
title:
|
|
1135
|
+
title: g.message,
|
|
1137
1136
|
placement: "bottomRight",
|
|
1138
1137
|
data: l
|
|
1139
1138
|
}), ee({
|
|
1140
|
-
task_id:
|
|
1139
|
+
task_id: g?.data.task.id,
|
|
1141
1140
|
entity_id: W
|
|
1142
|
-
})) : (
|
|
1141
|
+
})) : (v(!1), h(!1), y.error({
|
|
1143
1142
|
id: "AI_IMAGE_SEND_ERROR",
|
|
1144
|
-
title:
|
|
1143
|
+
title: g?.message || C("Something went wrong, please try again"),
|
|
1145
1144
|
placement: "bottomRight",
|
|
1146
1145
|
data: l,
|
|
1147
|
-
innerException:
|
|
1146
|
+
innerException: g
|
|
1148
1147
|
}));
|
|
1149
|
-
}).catch((
|
|
1150
|
-
|
|
1148
|
+
}).catch((g) => {
|
|
1149
|
+
v(!1), h(!1), (g?.error || g?.data) && y.fromError("AI_IMAGE_SEND_ERROR", l, g.error || g);
|
|
1151
1150
|
}));
|
|
1152
1151
|
}, [
|
|
1153
1152
|
l,
|
|
1154
1153
|
d,
|
|
1155
|
-
|
|
1154
|
+
v,
|
|
1156
1155
|
h,
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1156
|
+
p,
|
|
1157
|
+
L,
|
|
1158
|
+
A,
|
|
1160
1159
|
O,
|
|
1161
|
-
|
|
1162
|
-
|
|
1160
|
+
V,
|
|
1161
|
+
y,
|
|
1163
1162
|
ee,
|
|
1164
1163
|
W,
|
|
1165
|
-
|
|
1164
|
+
C
|
|
1166
1165
|
]), _ = (0, n.useCallback)(async () => {
|
|
1167
|
-
if (
|
|
1168
|
-
if (!u.PLUGIN.isPlugin &&
|
|
1169
|
-
const
|
|
1170
|
-
if (
|
|
1171
|
-
|
|
1166
|
+
if (me) {
|
|
1167
|
+
if (!u.PLUGIN.isPlugin && !$) {
|
|
1168
|
+
const g = P.resolveLimitActionPreflightExceededForType("image_generate", (await z("image_generate")).data?.stats);
|
|
1169
|
+
if (g) {
|
|
1170
|
+
w?.(g);
|
|
1172
1171
|
return;
|
|
1173
1172
|
}
|
|
1174
1173
|
}
|
|
1175
|
-
|
|
1176
|
-
} else
|
|
1177
|
-
title:
|
|
1178
|
-
description:
|
|
1174
|
+
G && (T((g) => g + 1), ie()), Ae();
|
|
1175
|
+
} else J && (I ? I() : y.error({
|
|
1176
|
+
title: C("The usage limit has been exceeded"),
|
|
1177
|
+
description: C(`The maximum number of requests for the current subscription period has been reached.
|
|
1179
1178
|
Select the appropriate plan to fulfil more requests`),
|
|
1180
1179
|
placement: "bottomRight"
|
|
1181
1180
|
}));
|
|
1182
1181
|
}, [
|
|
1183
|
-
|
|
1182
|
+
me,
|
|
1183
|
+
J,
|
|
1184
1184
|
$,
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
M,
|
|
1188
|
-
p,
|
|
1189
|
-
P,
|
|
1190
|
-
he,
|
|
1191
|
-
ce,
|
|
1192
|
-
C,
|
|
1185
|
+
G,
|
|
1186
|
+
z,
|
|
1193
1187
|
w,
|
|
1194
|
-
|
|
1188
|
+
T,
|
|
1189
|
+
ie,
|
|
1190
|
+
Ae,
|
|
1191
|
+
y,
|
|
1192
|
+
C,
|
|
1193
|
+
I
|
|
1195
1194
|
]);
|
|
1196
1195
|
(0, n.useEffect)(() => {
|
|
1197
|
-
|
|
1198
|
-
}, [
|
|
1199
|
-
const
|
|
1196
|
+
J && T(R?.counters?.ai_img_counter || 0);
|
|
1197
|
+
}, [R, J]);
|
|
1198
|
+
const re = u.useEventEmitter(u.events.AI_IMAGE_PROGRESS_ID);
|
|
1200
1199
|
(0, n.useEffect)(() => {
|
|
1201
|
-
const
|
|
1202
|
-
|
|
1200
|
+
const g = re.event(({ progress: te, status: X }) => {
|
|
1201
|
+
K(X || `${Math.round(te)}%`);
|
|
1203
1202
|
});
|
|
1204
|
-
return () =>
|
|
1205
|
-
}, [
|
|
1206
|
-
const
|
|
1207
|
-
if (!
|
|
1203
|
+
return () => g.dispose();
|
|
1204
|
+
}, [re]);
|
|
1205
|
+
const M = (0, n.useCallback)(async (g) => {
|
|
1206
|
+
if (!s) {
|
|
1208
1207
|
i(!0);
|
|
1209
1208
|
try {
|
|
1210
|
-
const te = rt(
|
|
1209
|
+
const te = rt(g) ? await (await fetch(g)).blob() : Xe(g);
|
|
1211
1210
|
e({ file: new File([te], "image.jpeg", { type: te.type || "image/jpeg" }) });
|
|
1212
1211
|
} catch {
|
|
1213
1212
|
i(!1);
|
|
1214
1213
|
}
|
|
1215
1214
|
}
|
|
1216
1215
|
}, [
|
|
1217
|
-
|
|
1216
|
+
s,
|
|
1218
1217
|
i,
|
|
1219
1218
|
e
|
|
1220
|
-
]),
|
|
1221
|
-
|
|
1219
|
+
]), se = (0, n.useCallback)((g) => {
|
|
1220
|
+
g.status !== "error" && g.status !== "Canceled" ? g.images ? (K(g.status), g.progress === 100 && (p(g.images), K(C("Evaluating the task")), x(null), h(!1))) : (p([g.data]), v(!1)) : (v(!1), h(!1), y.error({
|
|
1222
1221
|
id: "AI_IMAGE_GET_ERROR",
|
|
1223
|
-
title:
|
|
1222
|
+
title: C("Something went wrong, please try again"),
|
|
1224
1223
|
placement: "bottomRight",
|
|
1225
1224
|
data: E
|
|
1226
1225
|
}));
|
|
1227
1226
|
}, [
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1227
|
+
p,
|
|
1228
|
+
K,
|
|
1229
|
+
C,
|
|
1230
|
+
v,
|
|
1232
1231
|
t,
|
|
1233
1232
|
E,
|
|
1234
|
-
|
|
1233
|
+
y,
|
|
1235
1234
|
h
|
|
1236
1235
|
]);
|
|
1237
1236
|
return (0, n.useEffect)(() => {
|
|
1238
|
-
|
|
1239
|
-
}, [
|
|
1237
|
+
B.length > 1 && se(B[B.length - 1]);
|
|
1238
|
+
}, [B, se]), (0, n.useEffect)(() => {
|
|
1240
1239
|
(d || b.length > 0) && setTimeout(() => {
|
|
1241
|
-
let
|
|
1242
|
-
o.current && (
|
|
1240
|
+
let g = 550;
|
|
1241
|
+
o.current && (g = o.current.offsetHeight + 68), t(g);
|
|
1243
1242
|
}, 0);
|
|
1244
1243
|
}, [
|
|
1245
1244
|
o,
|
|
1246
|
-
|
|
1245
|
+
B,
|
|
1247
1246
|
b.length,
|
|
1248
1247
|
d,
|
|
1249
1248
|
t
|
|
1250
1249
|
]), {
|
|
1251
|
-
aiImageCounter:
|
|
1252
|
-
setAiImageCounter:
|
|
1253
|
-
currentAiImgLimits:
|
|
1254
|
-
isFieldsDisabled:
|
|
1255
|
-
canGenerateImage:
|
|
1250
|
+
aiImageCounter: j,
|
|
1251
|
+
setAiImageCounter: T,
|
|
1252
|
+
currentAiImgLimits: N,
|
|
1253
|
+
isFieldsDisabled: he,
|
|
1254
|
+
canGenerateImage: me,
|
|
1256
1255
|
aiImageRequest: l,
|
|
1257
1256
|
imageAiList: b,
|
|
1258
|
-
setImageAiList:
|
|
1257
|
+
setImageAiList: p,
|
|
1259
1258
|
isLoadingAi: d,
|
|
1260
|
-
setIsLoadingAi:
|
|
1261
|
-
loadingDuringGeneration:
|
|
1259
|
+
setIsLoadingAi: v,
|
|
1260
|
+
loadingDuringGeneration: a,
|
|
1262
1261
|
setLoadingDuringGeneration: h,
|
|
1263
|
-
requestStatus:
|
|
1264
|
-
setRequestStatus:
|
|
1262
|
+
requestStatus: Y,
|
|
1263
|
+
setRequestStatus: K,
|
|
1265
1264
|
handleGenerate: _,
|
|
1266
|
-
handleLimitAiImgCount:
|
|
1267
|
-
convertBase64ToFile:
|
|
1268
|
-
isShiftPressed:
|
|
1269
|
-
setIsShiftPressed:
|
|
1265
|
+
handleLimitAiImgCount: ie,
|
|
1266
|
+
convertBase64ToFile: M,
|
|
1267
|
+
isShiftPressed: S,
|
|
1268
|
+
setIsShiftPressed: U,
|
|
1270
1269
|
currentReqId: E,
|
|
1271
|
-
setCurrentReqId:
|
|
1272
|
-
limitsInPlugin:
|
|
1270
|
+
setCurrentReqId: x,
|
|
1271
|
+
limitsInPlugin: J
|
|
1273
1272
|
};
|
|
1274
1273
|
}
|
|
1275
|
-
var
|
|
1276
|
-
const
|
|
1274
|
+
var Bt = ({ setModalHeight: t, customRequest: e, aiTabRef: o, inputAiRef: s, isImageUploaded: i, setIsImageUploaded: l, aiImageRequest: b, setAiImageRequest: p, imageAiList: d, setImageAiList: v, isLoadingAi: I, setIsLoadingAi: w }) => {
|
|
1275
|
+
const C = u.useNavigate(), R = u.useDispatch(), { __: y, _n: L } = m.useI18n(), A = u.useAppConfig(), [F, O] = (0, n.useState)(!1), [D, H] = (0, n.useState)(null), { aiImageCounter: B, currentAiImgLimits: z, loadingDuringGeneration: V, requestStatus: ee, handleGenerate: q, convertBase64ToFile: j, isShiftPressed: T, setIsShiftPressed: E, limitsInPlugin: x } = Dt({
|
|
1277
1276
|
setModalHeight: t,
|
|
1278
1277
|
customRequest: e,
|
|
1279
1278
|
aiTabRef: o,
|
|
@@ -1281,58 +1280,58 @@ Select the appropriate plan to fulfil more requests`),
|
|
|
1281
1280
|
setIsImageUploaded: l,
|
|
1282
1281
|
aiImageRequest: b,
|
|
1283
1282
|
imageAiList: d,
|
|
1284
|
-
setImageAiList:
|
|
1285
|
-
isLoadingAi:
|
|
1286
|
-
setIsLoadingAi:
|
|
1283
|
+
setImageAiList: v,
|
|
1284
|
+
isLoadingAi: I,
|
|
1285
|
+
setIsLoadingAi: w,
|
|
1287
1286
|
onPluginAiImageLimitExceeded: () => O(!0),
|
|
1288
|
-
onImageGenerateLimitExceeded:
|
|
1289
|
-
}),
|
|
1290
|
-
|
|
1287
|
+
onImageGenerateLimitExceeded: H
|
|
1288
|
+
}), S = F && z > 0 ? ne.getAiTariffUpgradeStep(z) : null, U = S ? P.getLimitUpgradePresetDefinition(S.presetId) : null, Y = D ? P.getLimitUpgradePresetDefinition(D.presetId) : null, [K, a] = (0, n.useState)(!1), h = (0, n.useCallback)(() => a(!0), []), W = (0, n.useCallback)(() => a(!1), []), fe = (0, n.useCallback)((G) => p(G.target.value), [p]), N = (0, n.useCallback)((G) => {
|
|
1289
|
+
G.key === "Shift" ? E(!0) : G.key === "Enter" && !T && (G.preventDefault(), q());
|
|
1291
1290
|
}, [
|
|
1292
|
-
|
|
1293
|
-
|
|
1291
|
+
T,
|
|
1292
|
+
q,
|
|
1294
1293
|
E
|
|
1295
|
-
]),
|
|
1296
|
-
|
|
1297
|
-
}, [E]),
|
|
1294
|
+
]), J = (0, n.useCallback)((G) => {
|
|
1295
|
+
G.key === "Shift" && E(!1);
|
|
1296
|
+
}, [E]), $ = d[d.length - 1];
|
|
1298
1297
|
return (0, r.jsxs)("div", {
|
|
1299
1298
|
className: "image-ai",
|
|
1300
1299
|
children: [
|
|
1301
|
-
|
|
1300
|
+
U && S ? (0, r.jsx)(P.LimitUpgradeModal, {
|
|
1302
1301
|
open: !0,
|
|
1303
1302
|
onClose: () => O(!1),
|
|
1304
|
-
title:
|
|
1305
|
-
subtitle:
|
|
1306
|
-
usageResource:
|
|
1307
|
-
previousDisplay:
|
|
1308
|
-
nextDisplay:
|
|
1303
|
+
title: y(U.titleKey),
|
|
1304
|
+
subtitle: y(U.subtitleKey),
|
|
1305
|
+
usageResource: U.usageResource,
|
|
1306
|
+
previousDisplay: P.presetLimitDisplay(S.previousLimit),
|
|
1307
|
+
nextDisplay: P.presetLimitDisplay(S.nextLimit),
|
|
1309
1308
|
onChangePlan: () => {
|
|
1310
|
-
O(!1), document.body.classList.remove("editor"),
|
|
1309
|
+
O(!1), document.body.classList.remove("editor"), C("/billing"), R(Z.openModal(u.MODALS.SWITCH_TO_PLAN_MODAL));
|
|
1311
1310
|
}
|
|
1312
1311
|
}) : null,
|
|
1313
|
-
|
|
1312
|
+
Y && D ? (0, r.jsx)(P.LimitUpgradeModal, {
|
|
1314
1313
|
open: !0,
|
|
1315
|
-
onClose: () =>
|
|
1316
|
-
title:
|
|
1317
|
-
subtitle:
|
|
1318
|
-
usageResource:
|
|
1319
|
-
previousDisplay:
|
|
1320
|
-
nextDisplay:
|
|
1314
|
+
onClose: () => H(null),
|
|
1315
|
+
title: y(Y.titleKey),
|
|
1316
|
+
subtitle: y(Y.subtitleKey),
|
|
1317
|
+
usageResource: Y.usageResource,
|
|
1318
|
+
previousDisplay: P.presetLimitDisplay(D.previousLimit),
|
|
1319
|
+
nextDisplay: P.presetLimitDisplay(D.nextLimit),
|
|
1321
1320
|
onChangePlan: () => {
|
|
1322
|
-
|
|
1321
|
+
H(null), document.body.classList.remove("editor"), C("/billing"), R(Z.openModal(u.MODALS.SWITCH_TO_PLAN_MODAL));
|
|
1323
1322
|
}
|
|
1324
1323
|
}) : null,
|
|
1325
|
-
|
|
1326
|
-
text: `${
|
|
1327
|
-
exceeded:
|
|
1324
|
+
x && (0, r.jsx)(m.LimitsCounter, {
|
|
1325
|
+
text: `${B} ${y("of")} ${z > 0 ? z : "∞"} images ${L("was used", "were used", B)}`,
|
|
1326
|
+
exceeded: z > 0 && B >= z,
|
|
1328
1327
|
style: { marginTop: -25 },
|
|
1329
1328
|
extra: (0, r.jsx)("span", {
|
|
1330
1329
|
style: {
|
|
1331
1330
|
textDecoration: "underline",
|
|
1332
1331
|
cursor: "pointer"
|
|
1333
1332
|
},
|
|
1334
|
-
onClick: () =>
|
|
1335
|
-
children:
|
|
1333
|
+
onClick: () => C(A.billingPageUrl || u.APP_ROUTES.billing),
|
|
1334
|
+
children: y("Need more?")
|
|
1336
1335
|
})
|
|
1337
1336
|
}),
|
|
1338
1337
|
(0, r.jsx)(m.Row, {
|
|
@@ -1343,43 +1342,43 @@ Select the appropriate plan to fulfil more requests`),
|
|
|
1343
1342
|
children: (0, r.jsx)(m.Form.Item, {
|
|
1344
1343
|
style: { margin: 0 },
|
|
1345
1344
|
children: (0, r.jsxs)("span", {
|
|
1346
|
-
className: `ant-input-affix-wrapper ant-input-affix-wrapper-lg image-ai__input-affix-wrapper${
|
|
1345
|
+
className: `ant-input-affix-wrapper ant-input-affix-wrapper-lg image-ai__input-affix-wrapper${K ? " ant-input-affix-wrapper-focused" : ""}`,
|
|
1347
1346
|
children: [(0, r.jsx)(m.TextArea, {
|
|
1348
|
-
ref:
|
|
1349
|
-
onKeyDown:
|
|
1350
|
-
onKeyUp:
|
|
1347
|
+
ref: s,
|
|
1348
|
+
onKeyDown: N,
|
|
1349
|
+
onKeyUp: J,
|
|
1351
1350
|
onFocus: h,
|
|
1352
1351
|
onBlur: W,
|
|
1353
1352
|
autoSize: !0,
|
|
1354
1353
|
allowClear: !0,
|
|
1355
1354
|
className: "text-area-input-hybrid image-ai__textarea",
|
|
1356
|
-
placeholder:
|
|
1355
|
+
placeholder: y("Generate image"),
|
|
1357
1356
|
value: b,
|
|
1358
|
-
onChange:
|
|
1357
|
+
onChange: fe,
|
|
1359
1358
|
spellCheck: "false"
|
|
1360
1359
|
}), (0, r.jsx)("span", {
|
|
1361
1360
|
className: "ant-input-suffix image-ai__input-suffix",
|
|
1362
|
-
children:
|
|
1361
|
+
children: I || V ? (0, r.jsx)(P.EmIcons, {
|
|
1363
1362
|
icon: "LoadingOutlined",
|
|
1364
1363
|
className: "input-icon image-ai__input-icon",
|
|
1365
1364
|
spin: !0
|
|
1366
|
-
}) : (0, r.jsx)(
|
|
1365
|
+
}) : (0, r.jsx)(P.EmIcons, {
|
|
1367
1366
|
icon: "AI",
|
|
1368
1367
|
className: "input-icon image-ai__input-icon",
|
|
1369
|
-
onClick:
|
|
1368
|
+
onClick: q
|
|
1370
1369
|
})
|
|
1371
1370
|
})]
|
|
1372
1371
|
})
|
|
1373
1372
|
})
|
|
1374
1373
|
})
|
|
1375
1374
|
}),
|
|
1376
|
-
(
|
|
1375
|
+
(I || d.length > 0) && (0, r.jsxs)("div", {
|
|
1377
1376
|
className: "image-ai__preview",
|
|
1378
|
-
children: [
|
|
1377
|
+
children: [I && d.length === 0 && (0, r.jsx)("div", {
|
|
1379
1378
|
className: "image-ai__loading",
|
|
1380
1379
|
children: (0, r.jsxs)("div", {
|
|
1381
1380
|
className: "spin",
|
|
1382
|
-
children: [(0, r.jsx)(
|
|
1381
|
+
children: [(0, r.jsx)(P.EmIcons, {
|
|
1383
1382
|
icon: "LoadingOutlined",
|
|
1384
1383
|
style: { fontSize: 48 },
|
|
1385
1384
|
spin: !0
|
|
@@ -1390,77 +1389,77 @@ Select the appropriate plan to fulfil more requests`),
|
|
|
1390
1389
|
})
|
|
1391
1390
|
}), d.length > 0 && (0, r.jsxs)("div", {
|
|
1392
1391
|
className: "image-ai__image-item",
|
|
1393
|
-
children: [(0, r.jsx)(
|
|
1392
|
+
children: [(0, r.jsx)(Lt, { images: d }), (0, r.jsx)("div", {
|
|
1394
1393
|
className: "buttons",
|
|
1395
1394
|
children: (0, r.jsx)(m.Button, {
|
|
1396
|
-
onClick: () =>
|
|
1397
|
-
icon: (0, r.jsx)(
|
|
1398
|
-
children:
|
|
1395
|
+
onClick: () => j($),
|
|
1396
|
+
icon: (0, r.jsx)(P.EmIcons, { icon: "CheckOutlined" }),
|
|
1397
|
+
children: y("Use this one")
|
|
1399
1398
|
})
|
|
1400
1399
|
})]
|
|
1401
1400
|
})]
|
|
1402
1401
|
})
|
|
1403
1402
|
]
|
|
1404
1403
|
});
|
|
1405
|
-
},
|
|
1406
|
-
const { __:
|
|
1407
|
-
|
|
1404
|
+
}, Ut = ({ setNewLink: t, setCurrentImageLink: e, setModalHeight: o, setModalWidth: s, setImageGifList: i, imageGifList: l, currentReqGif: b, setCurrentReqGif: p, inputRef: d, setStockLink: v, customRequest: I }) => {
|
|
1405
|
+
const { __: w } = m.useI18n(), C = u.useAppConfig(), R = u.useIsStandalone(), y = m.useNotification(), [L, A] = (0, n.useState)(null), [F, O] = (0, n.useState)(!1), [D, H] = (0, n.useState)(25), [B] = Z.useLazyGetSearchGifQuery(), z = (0, n.useCallback)((a) => a instanceof Error || typeof a?.message == "string" && a.message ? a.message : typeof a?.error?.message == "string" && a.error.message ? a.error.message : w("Failed to load GIFs through the configured proxy chain."), [w]), V = (0, n.useCallback)((a) => {
|
|
1406
|
+
y.error({
|
|
1408
1407
|
id: "STOCK_GIFS_SEARCH_FAILED",
|
|
1409
|
-
title:
|
|
1410
|
-
description:
|
|
1408
|
+
title: w("Failed to load GIFs"),
|
|
1409
|
+
description: z(a)
|
|
1411
1410
|
});
|
|
1412
1411
|
}, [
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1412
|
+
w,
|
|
1413
|
+
z,
|
|
1414
|
+
y
|
|
1416
1415
|
]), ee = async () => {
|
|
1417
|
-
|
|
1416
|
+
F || (O(!0), B({
|
|
1418
1417
|
query: b,
|
|
1419
|
-
page:
|
|
1420
|
-
}).then((
|
|
1421
|
-
if (
|
|
1422
|
-
|
|
1418
|
+
page: D
|
|
1419
|
+
}).then((a) => {
|
|
1420
|
+
if (a?.error) {
|
|
1421
|
+
V(a.error), O(!1);
|
|
1423
1422
|
return;
|
|
1424
1423
|
}
|
|
1425
|
-
i((h) => [...h, ...
|
|
1424
|
+
i((h) => [...h, ...a.data.data]), O(!1), H((h) => h + 25);
|
|
1426
1425
|
}).catch(() => {
|
|
1427
1426
|
O(!1);
|
|
1428
1427
|
}));
|
|
1429
|
-
},
|
|
1430
|
-
const
|
|
1428
|
+
}, q = async () => {
|
|
1429
|
+
const a = await B({
|
|
1431
1430
|
query: b,
|
|
1432
1431
|
page: 0
|
|
1433
1432
|
});
|
|
1434
|
-
if (
|
|
1435
|
-
|
|
1433
|
+
if (a?.error) {
|
|
1434
|
+
V(a.error), i([]);
|
|
1436
1435
|
return;
|
|
1437
1436
|
}
|
|
1438
|
-
|
|
1439
|
-
o("84vh"),
|
|
1437
|
+
a?.data?.data?.length > 0 && (i(a.data.data), setTimeout(() => {
|
|
1438
|
+
o("84vh"), s(1060);
|
|
1440
1439
|
}, 0));
|
|
1441
|
-
},
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
}, 2e3),
|
|
1445
|
-
},
|
|
1446
|
-
config:
|
|
1447
|
-
standalone:
|
|
1440
|
+
}, j = (a, h) => {
|
|
1441
|
+
A(h), setTimeout(() => {
|
|
1442
|
+
A(null);
|
|
1443
|
+
}, 2e3), v(`${a}`), e(`${a}`), I(`${a}`);
|
|
1444
|
+
}, T = { default: 3 }, E = (0, n.useCallback)((a) => u.getProxiedUrl(a, {
|
|
1445
|
+
config: C,
|
|
1446
|
+
standalone: R,
|
|
1448
1447
|
resourceType: "generic",
|
|
1449
1448
|
intent: "display"
|
|
1450
|
-
}), [
|
|
1449
|
+
}), [C, R]), { getDisplaySrc: x, handleLoad: S, handleError: U } = tt({
|
|
1451
1450
|
items: l,
|
|
1452
|
-
getItemId: (0, n.useCallback)((
|
|
1453
|
-
getRequestUrl: (0, n.useCallback)((
|
|
1451
|
+
getItemId: (0, n.useCallback)((a) => a.id, []),
|
|
1452
|
+
getRequestUrl: (0, n.useCallback)((a) => a.images.downsized.url, []),
|
|
1454
1453
|
createController: E
|
|
1455
|
-
}),
|
|
1456
|
-
|
|
1457
|
-
},
|
|
1458
|
-
|
|
1454
|
+
}), Y = (a) => (h) => {
|
|
1455
|
+
S(a), h.target.parentNode.classList.add("loaded");
|
|
1456
|
+
}, K = (a) => () => {
|
|
1457
|
+
U(a);
|
|
1459
1458
|
};
|
|
1460
1459
|
return (0, r.jsxs)("div", {
|
|
1461
1460
|
className: "stock-tab",
|
|
1462
1461
|
children: [(0, r.jsxs)(m.Form, {
|
|
1463
|
-
onValuesChange:
|
|
1462
|
+
onValuesChange: q,
|
|
1464
1463
|
className: l.length > 0 ? "serach-results" : "",
|
|
1465
1464
|
children: [(0, r.jsx)(m.Row, {
|
|
1466
1465
|
gutter: 24,
|
|
@@ -1469,14 +1468,14 @@ Select the appropriate plan to fulfil more requests`),
|
|
|
1469
1468
|
children: (0, r.jsx)(m.Form.Item, {
|
|
1470
1469
|
className: "stock-search-input",
|
|
1471
1470
|
children: (0, r.jsx)(m.SearchInput, {
|
|
1472
|
-
onSearch:
|
|
1471
|
+
onSearch: q,
|
|
1473
1472
|
allowClear: !0,
|
|
1474
1473
|
size: l.length > 0 ? "medium" : "large",
|
|
1475
|
-
placeholder:
|
|
1474
|
+
placeholder: w("Search GIFs"),
|
|
1476
1475
|
value: b.keywords,
|
|
1477
|
-
onChange: (
|
|
1476
|
+
onChange: (a) => p((h) => ({
|
|
1478
1477
|
...h,
|
|
1479
|
-
keywords:
|
|
1478
|
+
keywords: a.target.value
|
|
1480
1479
|
})),
|
|
1481
1480
|
ref: d,
|
|
1482
1481
|
spellCheck: "false",
|
|
@@ -1513,26 +1512,26 @@ Select the appropriate plan to fulfil more requests`),
|
|
|
1513
1512
|
hasMore: l,
|
|
1514
1513
|
endMessage: (0, r.jsxs)(m.Divider, {
|
|
1515
1514
|
plain: !0,
|
|
1516
|
-
children: [
|
|
1515
|
+
children: [w("That`s all we could find."), " 🤐"]
|
|
1517
1516
|
}),
|
|
1518
1517
|
scrollableTarget: "scrollableDiv",
|
|
1519
1518
|
style: { overflow: "visible" },
|
|
1520
1519
|
loader: (0, r.jsx)(m.Spin, { size: "small" }),
|
|
1521
1520
|
children: (0, r.jsx)(Ne, {
|
|
1522
|
-
breakpointCols:
|
|
1521
|
+
breakpointCols: T,
|
|
1523
1522
|
className: "my-masonry-grid",
|
|
1524
1523
|
columnClassName: "my-masonry-grid_column",
|
|
1525
|
-
children: l.map((
|
|
1524
|
+
children: l.map((a, h) => (0, r.jsxs)("div", {
|
|
1526
1525
|
className: "list-item",
|
|
1527
|
-
onClick: () =>
|
|
1526
|
+
onClick: () => j(a.images.downsized.url, a.id),
|
|
1528
1527
|
children: [
|
|
1529
1528
|
(0, r.jsx)("img", {
|
|
1530
|
-
className:
|
|
1529
|
+
className: L === a.id ? "loaded-image" : "",
|
|
1531
1530
|
width: "322px",
|
|
1532
|
-
src:
|
|
1533
|
-
alt:
|
|
1534
|
-
onLoad:
|
|
1535
|
-
onError:
|
|
1531
|
+
src: x(a),
|
|
1532
|
+
alt: a.title,
|
|
1533
|
+
onLoad: Y(a),
|
|
1534
|
+
onError: K(a)
|
|
1536
1535
|
}),
|
|
1537
1536
|
(0, r.jsx)("a", {
|
|
1538
1537
|
rel: "noreferrer",
|
|
@@ -1544,22 +1543,22 @@ Select the appropriate plan to fulfil more requests`),
|
|
|
1544
1543
|
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=)" }
|
|
1545
1544
|
})
|
|
1546
1545
|
}),
|
|
1547
|
-
|
|
1546
|
+
L === a.id && (0, r.jsx)(m.Spin, {
|
|
1548
1547
|
className: "ant-spin",
|
|
1549
1548
|
size: "small"
|
|
1550
1549
|
})
|
|
1551
1550
|
]
|
|
1552
|
-
},
|
|
1551
|
+
}, a.id + h))
|
|
1553
1552
|
})
|
|
1554
1553
|
})
|
|
1555
1554
|
})
|
|
1556
1555
|
})]
|
|
1557
1556
|
});
|
|
1558
1557
|
};
|
|
1559
|
-
function
|
|
1558
|
+
function Mt(t) {
|
|
1560
1559
|
if (!(t == null || t === "")) return t;
|
|
1561
1560
|
}
|
|
1562
|
-
async function
|
|
1561
|
+
async function Pt(t, e) {
|
|
1563
1562
|
if (t) {
|
|
1564
1563
|
if (t.url) return t.url;
|
|
1565
1564
|
if (typeof e.getFileById == "function" && t.id) {
|
|
@@ -1579,10 +1578,10 @@ Select the appropriate plan to fulfil more requests`),
|
|
|
1579
1578
|
return t.thumbnail || t.thumbnailUrl;
|
|
1580
1579
|
}
|
|
1581
1580
|
}
|
|
1582
|
-
function
|
|
1581
|
+
function Tt(t) {
|
|
1583
1582
|
if (!(!t?.success || !Array.isArray(t.detailed))) return t.detailed.find((e) => e?.success && e.data)?.data;
|
|
1584
1583
|
}
|
|
1585
|
-
function
|
|
1584
|
+
function Nt(t, e, o) {
|
|
1586
1585
|
if (t) return {
|
|
1587
1586
|
id: t.id,
|
|
1588
1587
|
name: t.name || e.name,
|
|
@@ -1602,320 +1601,318 @@ Select the appropriate plan to fulfil more requests`),
|
|
|
1602
1601
|
childrenCount: t.childrenCount
|
|
1603
1602
|
};
|
|
1604
1603
|
}
|
|
1605
|
-
async function
|
|
1604
|
+
async function Ft(t, e, o) {
|
|
1606
1605
|
if (!e) return;
|
|
1607
|
-
const
|
|
1606
|
+
const s = Mt(o ?? e.rootId);
|
|
1608
1607
|
let i;
|
|
1609
|
-
typeof e.uploadFiles == "function" ? i =
|
|
1610
|
-
folderId:
|
|
1608
|
+
typeof e.uploadFiles == "function" ? i = Tt(await e.uploadFiles({
|
|
1609
|
+
folderId: s,
|
|
1611
1610
|
items: [{
|
|
1612
1611
|
name: t.name,
|
|
1613
1612
|
size: t.size,
|
|
1614
1613
|
type: t.type,
|
|
1615
|
-
folderId:
|
|
1614
|
+
folderId: s,
|
|
1616
1615
|
data: t
|
|
1617
1616
|
}]
|
|
1618
|
-
})) : typeof e.uploadFile == "function" && (i =
|
|
1617
|
+
})) : typeof e.uploadFile == "function" && (i = Nt(await e.uploadFile({
|
|
1619
1618
|
name: t.name,
|
|
1620
1619
|
size: t.size,
|
|
1621
1620
|
type: t.type,
|
|
1622
|
-
folderId:
|
|
1621
|
+
folderId: s,
|
|
1623
1622
|
data: t
|
|
1624
|
-
}), t,
|
|
1625
|
-
const l = await
|
|
1623
|
+
}), t, s));
|
|
1624
|
+
const l = await Pt(i, e);
|
|
1626
1625
|
return l ? {
|
|
1627
1626
|
item: i,
|
|
1628
1627
|
url: l
|
|
1629
1628
|
} : void 0;
|
|
1630
1629
|
}
|
|
1631
|
-
var
|
|
1632
|
-
const o =
|
|
1630
|
+
var at = "IMG", st = "BACKGROUND", Gt = "GALLERY", we = "EDITOR", de = "UPLOAD", Ge = "STOCK", ze = "GIF", Ke = "AI", zt = { mode: "select" }, Kt = { mode: "save" }, { Dragger: Wt } = m.Upload, Ht = (t, e = "image") => Z.decodeFileNameFromUrl(t) ?? e, Ee = ne.normalizeImageFormatForDisplay, Vt = (t, e) => {
|
|
1631
|
+
const o = Ee(e);
|
|
1633
1632
|
return !o || t.includes(".") ? t : `${t}.${o}`;
|
|
1634
|
-
},
|
|
1635
|
-
const e = u.useAppConfig(), o = u.useIsStandalone(), { __:
|
|
1633
|
+
}, qt = (t, e) => new File([t], Vt(Ht(e), t.type), { type: t.type || "application/octet-stream" }), ot = ({ dataProvider: t }) => {
|
|
1634
|
+
const e = u.useAppConfig(), o = u.useIsStandalone(), { __: s } = m.useI18n(), i = u.useDispatch(), { projectId: l } = u.useParams(), [b] = Z.useLazyGetImageInfoQuery(), { modal: p } = m.App.useApp(), d = m.useNotification(), v = u.useSelector(Z.selectActiveModal), { request: I, resolveImagePicker: w } = P.useImagePicker(), [C, R] = (0, n.useState)(""), [y, L] = (0, n.useState)(""), [A, F] = (0, n.useState)(""), [O, D] = (0, n.useState)(""), [H, B] = (0, n.useState)(de), [z, V] = (0, n.useState)({
|
|
1636
1635
|
width: "",
|
|
1637
1636
|
height: "",
|
|
1638
1637
|
size: "",
|
|
1639
1638
|
format: ""
|
|
1640
|
-
}), [
|
|
1639
|
+
}), [ee, q] = (0, n.useState)("success"), [j, T] = (0, n.useState)(!1), E = n.default.useRef(null), x = n.default.useRef(null), S = n.default.useRef(null), U = n.default.useRef(null), Y = n.default.useRef(null), K = n.default.useRef(null), a = n.default.useRef(null), h = n.default.useRef(null), W = n.default.useRef(null), [fe, N] = (0, n.useState)("auto"), [J, $] = (0, n.useState)(572), [G, he] = (0, n.useState)(!1), [ie, me] = (0, n.useState)({
|
|
1641
1640
|
keywords: "",
|
|
1642
1641
|
color: "",
|
|
1643
1642
|
orientation: ""
|
|
1644
|
-
}), [
|
|
1643
|
+
}), [Ae, _] = (0, n.useState)({ keywords: "" }), [re, M] = (0, n.useState)([]), [se, g] = (0, n.useState)([]), [te, X] = (0, n.useState)([]), [ce, it] = (0, n.useState)(!1), [lt, We] = (0, n.useState)(""), [Qt, je] = (0, n.useState)(!1), [Yt, Be] = (0, n.useState)(0), He = u.useSelector(u.selectProject), ct = He?.id !== void 0 ? String(He.id) : l || "", ut = u.useEventEmitter(u.events.UPLOAD_EVENT_ID), Ie = n.default.useRef(ne.createImageUrlBlobResolver()), Ve = n.default.useRef(""), Ce = n.default.useRef(0), xe = n.default.useRef(""), [_t, dt] = (0, n.useState)(""), [Zt, ft] = (0, n.useState)(null), [Xt, qe] = (0, n.useState)(""), Ue = (0, n.useCallback)((c) => {
|
|
1645
1644
|
if (!(c instanceof Blob)) return;
|
|
1646
1645
|
xe.current && URL.revokeObjectURL(xe.current);
|
|
1647
1646
|
const f = URL.createObjectURL(c);
|
|
1648
|
-
xe.current = f,
|
|
1649
|
-
}, []),
|
|
1650
|
-
xe.current && (URL.revokeObjectURL(xe.current), xe.current = ""),
|
|
1651
|
-
}, []),
|
|
1647
|
+
xe.current = f, dt(f), ft(c);
|
|
1648
|
+
}, []), pe = (0, n.useCallback)(() => {
|
|
1649
|
+
xe.current && (URL.revokeObjectURL(xe.current), xe.current = ""), dt(""), ft(null);
|
|
1650
|
+
}, []), le = (0, n.useCallback)(() => {
|
|
1652
1651
|
qe("");
|
|
1653
|
-
}, [])
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
}, Me = (0, n.useCallback)((c, f, S = a("The image could not be uploaded.")) => {
|
|
1658
|
-
const V = f instanceof Error ? f.message : S;
|
|
1652
|
+
}, []), ye = P.isEditorLockedByPlan(He, { isPlugin: u.PLUGIN.isPlugin }), Jt = (c) => {
|
|
1653
|
+
L(c.target.value);
|
|
1654
|
+
}, Me = (0, n.useCallback)((c, f, k = s("The image could not be uploaded.")) => {
|
|
1655
|
+
const Q = f instanceof Error ? f.message : k;
|
|
1659
1656
|
d.error({
|
|
1660
1657
|
id: "IMAGE_UPLOAD_ERROR",
|
|
1661
1658
|
data: c,
|
|
1662
|
-
title:
|
|
1663
|
-
description:
|
|
1659
|
+
title: s("Upload failed"),
|
|
1660
|
+
description: Q
|
|
1664
1661
|
});
|
|
1665
|
-
}, [
|
|
1662
|
+
}, [s, d]), $t = (0, n.useCallback)(async (c) => P.pickUploadImageUrlFromFireResults(await ut.fire({
|
|
1666
1663
|
file: c,
|
|
1667
|
-
project:
|
|
1668
|
-
})), [
|
|
1664
|
+
project: ct
|
|
1665
|
+
})), [ct, ut]), be = ne.useImageBlobFetch(), en = (0, n.useCallback)((c) => Ie.current.resolve(ne.canonicalImageUrlKey(c), void 0, be), [be]), Pe = async (c) => {
|
|
1669
1666
|
if (c) try {
|
|
1670
|
-
const f = await
|
|
1671
|
-
f &&
|
|
1667
|
+
const f = await tn(c);
|
|
1668
|
+
f && Ye(f) ? await Oe({ file: f }) : f || Me({ url: c }, null, s("Failed to download image from URL."));
|
|
1672
1669
|
} catch (f) {
|
|
1673
|
-
Me({ url: c }, f,
|
|
1670
|
+
Me({ url: c }, f, s("Failed to process image URL."));
|
|
1674
1671
|
}
|
|
1675
|
-
},
|
|
1676
|
-
|
|
1677
|
-
if (
|
|
1672
|
+
}, mt = n.default.useRef(Pe);
|
|
1673
|
+
mt.current = Pe, n.default.useEffect(() => {
|
|
1674
|
+
if (H !== de || !O) return;
|
|
1678
1675
|
const c = y.trim();
|
|
1679
1676
|
if (!c || !c.toLowerCase().startsWith("http")) return;
|
|
1680
1677
|
const f = setTimeout(() => {
|
|
1681
|
-
|
|
1678
|
+
mt.current(c);
|
|
1682
1679
|
}, 1e3);
|
|
1683
1680
|
return () => {
|
|
1684
1681
|
clearTimeout(f);
|
|
1685
1682
|
};
|
|
1686
1683
|
}, [
|
|
1687
1684
|
y,
|
|
1688
|
-
|
|
1689
|
-
|
|
1685
|
+
H,
|
|
1686
|
+
O
|
|
1690
1687
|
]);
|
|
1691
|
-
const
|
|
1688
|
+
const tn = async (c) => {
|
|
1692
1689
|
try {
|
|
1693
1690
|
const f = ne.canonicalImageUrlKey(c);
|
|
1694
|
-
return
|
|
1691
|
+
return qt(await Ie.current.resolve(f, void 0, be), f);
|
|
1695
1692
|
} catch {}
|
|
1696
1693
|
};
|
|
1697
1694
|
document.onpaste = function(c) {
|
|
1698
1695
|
const f = c.clipboardData?.items?.[0];
|
|
1699
|
-
if (
|
|
1696
|
+
if (H === de && O) {
|
|
1700
1697
|
if (f?.type?.indexOf("image") === 0 && e.imageCenterLocalUploadEnabled !== !1) {
|
|
1701
|
-
const
|
|
1702
|
-
|
|
1703
|
-
const oe = { file:
|
|
1704
|
-
|
|
1698
|
+
const Q = f.getAsFile();
|
|
1699
|
+
Ye(Q);
|
|
1700
|
+
const oe = { file: Q };
|
|
1701
|
+
L(""), Oe(oe);
|
|
1705
1702
|
return;
|
|
1706
1703
|
}
|
|
1707
|
-
const
|
|
1708
|
-
if (
|
|
1709
|
-
c.preventDefault(), c.stopPropagation(),
|
|
1704
|
+
const k = c.clipboardData?.getData("text/plain");
|
|
1705
|
+
if (k && k.trim().toLowerCase().startsWith("http")) {
|
|
1706
|
+
c.preventDefault(), c.stopPropagation(), L(k.trim());
|
|
1710
1707
|
return;
|
|
1711
1708
|
}
|
|
1712
|
-
f?.type?.indexOf("text") === 0 && f.getAsString((
|
|
1713
|
-
if (
|
|
1714
|
-
else if (
|
|
1715
|
-
const oe =
|
|
1716
|
-
oe &&
|
|
1709
|
+
f?.type?.indexOf("text") === 0 && f.getAsString((Q) => {
|
|
1710
|
+
if (Q.trim().toLowerCase().startsWith("http")) L(Q.trim());
|
|
1711
|
+
else if (Q.toString().slice(1, 5) === "meta") {
|
|
1712
|
+
const oe = Q.toString().split("\"")[1];
|
|
1713
|
+
oe && L(oe);
|
|
1717
1714
|
}
|
|
1718
1715
|
});
|
|
1719
1716
|
}
|
|
1720
1717
|
}, (0, n.useEffect)(() => {
|
|
1721
1718
|
const c = (f) => {
|
|
1722
|
-
let
|
|
1723
|
-
|
|
1719
|
+
let k = null;
|
|
1720
|
+
I?.kind === "background" ? (k = st, D(st)) : I?.kind === "img" && (D(at), k = at), I?.currentUrl && k && (R(I.currentUrl), B(f));
|
|
1724
1721
|
};
|
|
1725
|
-
|
|
1722
|
+
v === u.MODALS.UPLOAD_IMAGE_MODAL || v === u.MODALS.UPLOAD_BACKGROUND_MODAL ? c(we) : v === u.MODALS.UPLOAD_IMAGE_MODAL_AI || v === u.MODALS.UPLOAD_BACKGROUND_MODAL_AI ? (ye ? (je(!0), Be(2)) : c(Ke), setTimeout(() => W.current?.focus({ cursor: "start" }), 100)) : v === u.MODALS.UPLOAD_IMAGE_MODAL_UPLOAD || v === u.MODALS.UPLOAD_BACKGROUND_MODAL_UPLOAD ? (c(de), setTimeout(() => K.current?.focus({ cursor: "start" }), 100)) : v === u.MODALS.UPLOAD_IMAGE_MODAL_STOCK || v === u.MODALS.UPLOAD_BACKGROUND_MODAL_STOCK ? (ye ? (je(!0), Be(3)) : c(Ge), setTimeout(() => h.current?.focus({ cursor: "start" }), 100)) : v === u.MODALS.UPLOAD_IMAGE_MODAL_GIF || v === u.MODALS.UPLOAD_BACKGROUND_MODAL_GIF ? (ye ? (je(!0), Be(3)) : c(ze), setTimeout(() => a.current?.focus({ cursor: "start" }), 100)) : v === u.MODALS.UPLOAD_IMAGE_MODAL_EDIT || v === u.MODALS.UPLOAD_BACKGROUND_MODAL_EDIT ? (ye ? (je(!0), Be(5)) : c(we), i(Z.openSecondModal(u.MODALS.IMAGE_EDITOR_MODAL))) : D("");
|
|
1726
1723
|
}, [
|
|
1727
|
-
|
|
1724
|
+
v,
|
|
1728
1725
|
i,
|
|
1729
|
-
|
|
1730
|
-
|
|
1726
|
+
ye,
|
|
1727
|
+
I
|
|
1731
1728
|
]);
|
|
1732
|
-
const Qe = (0, n.useCallback)(({ url: c = C || "", meta: f =
|
|
1733
|
-
|
|
1729
|
+
const Qe = (0, n.useCallback)(({ url: c = C || "", meta: f = zt }) => {
|
|
1730
|
+
R(c), w({
|
|
1734
1731
|
url: c,
|
|
1735
1732
|
meta: f
|
|
1736
1733
|
}), setTimeout(() => {
|
|
1737
|
-
|
|
1734
|
+
le(), pe(), me({
|
|
1738
1735
|
keywords: "",
|
|
1739
1736
|
color: "",
|
|
1740
1737
|
orientation: ""
|
|
1741
|
-
}),
|
|
1742
|
-
}, 200), i(
|
|
1738
|
+
}), _({ keywords: "" }), g([]), M([]), D(""), We(""), it(!1), F(""), L(""), B(de);
|
|
1739
|
+
}, 200), i(Z.closeModal()), i(Z.closeSecondModal());
|
|
1743
1740
|
}, [
|
|
1744
1741
|
C,
|
|
1745
|
-
|
|
1742
|
+
le,
|
|
1746
1743
|
i,
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
]),
|
|
1744
|
+
w,
|
|
1745
|
+
pe
|
|
1746
|
+
]), pt = (0, n.useCallback)((c, f) => (N("auto"), T(!1), Qe({
|
|
1750
1747
|
url: c,
|
|
1751
|
-
meta:
|
|
1748
|
+
meta: Kt
|
|
1752
1749
|
}), d.success({
|
|
1753
1750
|
id: "IMAGE_UPLOAD_SUCCESS",
|
|
1754
1751
|
data: f,
|
|
1755
|
-
title:
|
|
1752
|
+
title: s("The image was successfully uploaded.")
|
|
1756
1753
|
}), c), [
|
|
1757
|
-
|
|
1754
|
+
s,
|
|
1758
1755
|
Qe,
|
|
1759
1756
|
d
|
|
1760
1757
|
]);
|
|
1761
1758
|
(0, n.useEffect)(() => {
|
|
1762
|
-
const c = y ||
|
|
1759
|
+
const c = y || A, f = ne.canonicalImageUrlKey(c);
|
|
1763
1760
|
if (!c || !f) {
|
|
1764
|
-
|
|
1761
|
+
q(""), Ve.current = "", le(), pe(), Ie.current.invalidateAll();
|
|
1765
1762
|
return;
|
|
1766
1763
|
}
|
|
1767
|
-
const
|
|
1768
|
-
|
|
1769
|
-
const
|
|
1764
|
+
const k = Ve.current;
|
|
1765
|
+
k && k !== f && (Ie.current.abandonKey(k), le(), pe()), Ve.current = f;
|
|
1766
|
+
const Q = new AbortController(), oe = y ? 800 : 0, ae = ++Ce.current, _e = setTimeout(async () => {
|
|
1770
1767
|
try {
|
|
1771
1768
|
const Se = async () => {
|
|
1772
|
-
const
|
|
1773
|
-
if (
|
|
1774
|
-
const { width:
|
|
1775
|
-
|
|
1776
|
-
width:
|
|
1777
|
-
height:
|
|
1778
|
-
size: (
|
|
1779
|
-
format:
|
|
1780
|
-
}),
|
|
1769
|
+
const ue = await Ie.current.resolve(f, Q.signal, be);
|
|
1770
|
+
if (ae !== Ce.current) return;
|
|
1771
|
+
const { width: ve, height: sn } = await ne.getImageDimensionsFromBlob(ue);
|
|
1772
|
+
ae === Ce.current && (V({
|
|
1773
|
+
width: ve,
|
|
1774
|
+
height: sn,
|
|
1775
|
+
size: (ue.size / 1024).toFixed(2),
|
|
1776
|
+
format: Ee(ue.type)
|
|
1777
|
+
}), le(), Ue(ue));
|
|
1781
1778
|
};
|
|
1782
1779
|
if (o) await Se();
|
|
1783
1780
|
else {
|
|
1784
|
-
const
|
|
1785
|
-
if (
|
|
1786
|
-
qe(
|
|
1781
|
+
const ue = await ne.resolveDataProviderPreview(t, f);
|
|
1782
|
+
if (ue?.previewUrl && ae === Ce.current) {
|
|
1783
|
+
qe(ue.previewUrl), pe();
|
|
1787
1784
|
try {
|
|
1788
|
-
const { data:
|
|
1789
|
-
if (
|
|
1790
|
-
|
|
1791
|
-
width:
|
|
1792
|
-
height:
|
|
1793
|
-
size:
|
|
1794
|
-
format:
|
|
1785
|
+
const { data: ve } = await b(f);
|
|
1786
|
+
if (ae !== Ce.current) return;
|
|
1787
|
+
ve ? V({
|
|
1788
|
+
width: ve?.width,
|
|
1789
|
+
height: ve?.height,
|
|
1790
|
+
size: ve?.fileSize != null ? (ve.fileSize / 1024).toFixed(2) : "",
|
|
1791
|
+
format: Ee(ve?.format)
|
|
1795
1792
|
}) : await Se();
|
|
1796
1793
|
} catch {
|
|
1797
1794
|
await Se();
|
|
1798
1795
|
}
|
|
1799
1796
|
} else await Se();
|
|
1800
1797
|
}
|
|
1801
|
-
if (
|
|
1802
|
-
|
|
1803
|
-
let
|
|
1804
|
-
|
|
1798
|
+
if (ae !== Ce.current) return;
|
|
1799
|
+
q("success"), R(c), $(572), setTimeout(() => {
|
|
1800
|
+
let ue = 0;
|
|
1801
|
+
x.current && (ue = x.current.offsetHeight + 62), N(ue);
|
|
1805
1802
|
}, 0);
|
|
1806
1803
|
} catch (Se) {
|
|
1807
|
-
if (Se?.name === "AbortError" ||
|
|
1808
|
-
|
|
1804
|
+
if (Se?.name === "AbortError" || Q.signal.aborted || ae !== Ce.current) return;
|
|
1805
|
+
le(), pe(), q("error");
|
|
1809
1806
|
}
|
|
1810
1807
|
}, oe);
|
|
1811
1808
|
return () => {
|
|
1812
|
-
clearTimeout(
|
|
1809
|
+
clearTimeout(_e), Q.abort();
|
|
1813
1810
|
};
|
|
1814
1811
|
}, [
|
|
1815
1812
|
y,
|
|
1816
|
-
|
|
1813
|
+
A,
|
|
1817
1814
|
o,
|
|
1818
|
-
|
|
1819
|
-
|
|
1815
|
+
le,
|
|
1816
|
+
be,
|
|
1820
1817
|
b,
|
|
1821
|
-
|
|
1818
|
+
pe,
|
|
1822
1819
|
t,
|
|
1823
1820
|
Ue
|
|
1824
1821
|
]), (0, n.useEffect)(() => {
|
|
1825
|
-
if (!C || y ||
|
|
1822
|
+
if (!C || y || A) return;
|
|
1826
1823
|
const c = ne.canonicalImageUrlKey(C), f = new AbortController();
|
|
1827
|
-
let
|
|
1828
|
-
const
|
|
1829
|
-
const oe = await Ie.current.resolve(c, f.signal,
|
|
1830
|
-
if (
|
|
1831
|
-
const { width:
|
|
1832
|
-
|
|
1833
|
-
width:
|
|
1834
|
-
height:
|
|
1824
|
+
let k = !1;
|
|
1825
|
+
const Q = async () => {
|
|
1826
|
+
const oe = await Ie.current.resolve(c, f.signal, be);
|
|
1827
|
+
if (k) return;
|
|
1828
|
+
const { width: ae, height: _e } = await ne.getImageDimensionsFromBlob(oe);
|
|
1829
|
+
k || (le(), Ue(oe), V({
|
|
1830
|
+
width: ae,
|
|
1831
|
+
height: _e,
|
|
1835
1832
|
size: (oe.size / 1024).toFixed(2),
|
|
1836
|
-
format:
|
|
1833
|
+
format: Ee(oe.type)
|
|
1837
1834
|
}));
|
|
1838
1835
|
};
|
|
1839
1836
|
return (async () => {
|
|
1840
1837
|
try {
|
|
1841
1838
|
if (!o) {
|
|
1842
1839
|
const oe = await ne.resolveDataProviderPreview(t, c);
|
|
1843
|
-
if (oe?.previewUrl && !
|
|
1844
|
-
qe(oe.previewUrl),
|
|
1840
|
+
if (oe?.previewUrl && !k) {
|
|
1841
|
+
qe(oe.previewUrl), pe();
|
|
1845
1842
|
try {
|
|
1846
|
-
const { data:
|
|
1847
|
-
if (
|
|
1848
|
-
|
|
1849
|
-
width:
|
|
1850
|
-
height:
|
|
1851
|
-
size:
|
|
1852
|
-
format:
|
|
1853
|
-
}) : await
|
|
1843
|
+
const { data: ae } = await b(c);
|
|
1844
|
+
if (k) return;
|
|
1845
|
+
ae ? V({
|
|
1846
|
+
width: ae?.width,
|
|
1847
|
+
height: ae?.height,
|
|
1848
|
+
size: ae?.fileSize != null ? (ae.fileSize / 1024).toFixed(2) : "",
|
|
1849
|
+
format: Ee(ae?.format)
|
|
1850
|
+
}) : await Q();
|
|
1854
1851
|
return;
|
|
1855
1852
|
} catch {
|
|
1856
|
-
await
|
|
1853
|
+
await Q();
|
|
1857
1854
|
}
|
|
1858
1855
|
}
|
|
1859
1856
|
}
|
|
1860
|
-
await
|
|
1857
|
+
await Q();
|
|
1861
1858
|
} catch {
|
|
1862
|
-
|
|
1859
|
+
k || le();
|
|
1863
1860
|
}
|
|
1864
1861
|
})(), () => {
|
|
1865
|
-
|
|
1862
|
+
k = !0, f.abort();
|
|
1866
1863
|
};
|
|
1867
1864
|
}, [
|
|
1868
1865
|
o,
|
|
1869
|
-
|
|
1866
|
+
le,
|
|
1870
1867
|
C,
|
|
1871
|
-
|
|
1868
|
+
be,
|
|
1872
1869
|
b,
|
|
1873
1870
|
t,
|
|
1874
1871
|
y,
|
|
1875
|
-
|
|
1872
|
+
A,
|
|
1876
1873
|
Ue
|
|
1877
1874
|
]);
|
|
1878
|
-
const
|
|
1879
|
-
i(
|
|
1880
|
-
|
|
1875
|
+
const nn = () => {
|
|
1876
|
+
i(Z.closeModal()), setTimeout(() => {
|
|
1877
|
+
le(), pe(), R(""), L(""), g([]), g([]), me({
|
|
1881
1878
|
keywords: "",
|
|
1882
1879
|
color: "",
|
|
1883
1880
|
orientation: ""
|
|
1884
|
-
}),
|
|
1881
|
+
}), _({ keywords: "" }), N("auto"), !ce && We(""), $(572), B(de);
|
|
1885
1882
|
}, 200);
|
|
1886
|
-
},
|
|
1887
|
-
c ===
|
|
1883
|
+
}, rn = (c) => {
|
|
1884
|
+
c === Gt ? p.success({
|
|
1888
1885
|
mask: { closable: !0 },
|
|
1889
1886
|
centered: !0,
|
|
1890
|
-
title:
|
|
1891
|
-
content:
|
|
1892
|
-
okText:
|
|
1887
|
+
title: s("Coming soon"),
|
|
1888
|
+
content: s("The feature is under development."),
|
|
1889
|
+
okText: s("Ok. I'll be waiting"),
|
|
1893
1890
|
onOk: () => {}
|
|
1894
|
-
}) : c ===
|
|
1891
|
+
}) : c === we && C === "" ? p.warning({
|
|
1895
1892
|
mask: { closable: !0 },
|
|
1896
1893
|
centered: !0,
|
|
1897
|
-
title:
|
|
1898
|
-
content:
|
|
1899
|
-
okText:
|
|
1894
|
+
title: s(""),
|
|
1895
|
+
content: s("To preview and edit the uploaded image"),
|
|
1896
|
+
okText: s("Upload Image"),
|
|
1900
1897
|
onOk: () => {
|
|
1901
|
-
|
|
1898
|
+
B(de);
|
|
1902
1899
|
}
|
|
1903
1900
|
}) : (setTimeout(() => {
|
|
1904
|
-
let f = 0,
|
|
1905
|
-
c ===
|
|
1906
|
-
}, 0),
|
|
1901
|
+
let f = 0, k = 0;
|
|
1902
|
+
c === de && E.current ? (ie.keywords === "" && K.current?.focus({ cursor: "start" }), f = 300, k = 572) : c === we && x.current ? (f = x.current.offsetHeight + 62, k = 572) : c === Ge && S.current ? (ie.keywords === "" && h.current?.focus({ cursor: "start" }), f = 130, k = 572, se.length > 0 && (k = 1060, f = "84vh")) : c === ze && U.current ? (ie.keywords === "" && a.current?.focus({ cursor: "start" }), f = 130, k = 572, re.length > 0 && (k = 1060, f = "84vh")) : c === Ke && Y.current && (lt === "" && te.length === 0 ? (W.current?.focus({ cursor: "start" }), f = 130) : f = Y.current.offsetHeight + 82, k = 572), N(f), $(k);
|
|
1903
|
+
}, 0), B(c));
|
|
1907
1904
|
};
|
|
1908
1905
|
(0, n.useEffect)(() => {
|
|
1909
|
-
|
|
1910
|
-
|
|
1906
|
+
ie.keywords === "" && (K?.current?.focus({ cursor: "start" }), g([]), setTimeout(() => {
|
|
1907
|
+
N("auto"), $(572);
|
|
1911
1908
|
}, 0));
|
|
1912
1909
|
}, [
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1910
|
+
ie,
|
|
1911
|
+
g,
|
|
1912
|
+
N,
|
|
1913
|
+
$
|
|
1917
1914
|
]);
|
|
1918
|
-
const
|
|
1915
|
+
const Ye = (c) => {
|
|
1919
1916
|
const f = c.type === "image/jpeg" || c.type === "image/png" || c.type === "image/jpg" || c.type === "image/webp" || c.type === "image/gif" || c.type === "image/svg+xml";
|
|
1920
1917
|
return f || d.error({
|
|
1921
1918
|
id: "IMAGE_UPLOAD_WRONG_FORMAT",
|
|
@@ -1925,30 +1922,30 @@ Select the appropriate plan to fulfil more requests`),
|
|
|
1925
1922
|
}), f;
|
|
1926
1923
|
}, Oe = async ({ file: c }) => {
|
|
1927
1924
|
try {
|
|
1928
|
-
|
|
1929
|
-
const f = await ne.prepareImageForEditorUpload(c, e),
|
|
1930
|
-
if (
|
|
1931
|
-
const
|
|
1932
|
-
if (
|
|
1925
|
+
he(!0);
|
|
1926
|
+
const f = await ne.prepareImageForEditorUpload(c, e), k = await $t(f);
|
|
1927
|
+
if (k) return pt(k, f), k;
|
|
1928
|
+
const Q = await Ft(f, t);
|
|
1929
|
+
if (Q?.url) return pt(Q.url, f), Q.url;
|
|
1933
1930
|
Me(f, null);
|
|
1934
1931
|
return;
|
|
1935
1932
|
} catch (f) {
|
|
1936
1933
|
Me(c, f);
|
|
1937
1934
|
return;
|
|
1938
1935
|
} finally {
|
|
1939
|
-
|
|
1936
|
+
he(!1);
|
|
1940
1937
|
}
|
|
1941
|
-
},
|
|
1938
|
+
}, an = (c) => Oe({ file: c });
|
|
1942
1939
|
let Le = [{
|
|
1943
|
-
label:
|
|
1944
|
-
key:
|
|
1940
|
+
label: s("Upload"),
|
|
1941
|
+
key: de,
|
|
1945
1942
|
children: (0, r.jsxs)("div", {
|
|
1946
|
-
ref:
|
|
1943
|
+
ref: E,
|
|
1947
1944
|
style: { paddingBottom: 24 },
|
|
1948
|
-
children: [e.imageCenterLocalUploadEnabled !== !1 && (0, r.jsxs)(
|
|
1945
|
+
children: [e.imageCenterLocalUploadEnabled !== !1 && (0, r.jsxs)(Wt, {
|
|
1949
1946
|
showUploadList: !1,
|
|
1950
1947
|
name: "Image",
|
|
1951
|
-
beforeUpload:
|
|
1948
|
+
beforeUpload: Ye,
|
|
1952
1949
|
customRequest: Oe,
|
|
1953
1950
|
style: { marginBottom: 10 },
|
|
1954
1951
|
multiple: !1,
|
|
@@ -1956,137 +1953,137 @@ Select the appropriate plan to fulfil more requests`),
|
|
|
1956
1953
|
children: [
|
|
1957
1954
|
(0, r.jsx)("p", {
|
|
1958
1955
|
className: "ant-upload-drag-icon",
|
|
1959
|
-
children: (0, r.jsx)(
|
|
1956
|
+
children: (0, r.jsx)(P.EmIcons, { icon: "InboxOutlined" })
|
|
1960
1957
|
}),
|
|
1961
1958
|
(0, r.jsx)("p", {
|
|
1962
1959
|
className: "ant-upload-text",
|
|
1963
|
-
children:
|
|
1960
|
+
children: s("Click to select, paste from the clipboard, or drag and drop")
|
|
1964
1961
|
}),
|
|
1965
1962
|
(0, r.jsx)("p", {
|
|
1966
1963
|
className: "ant-upload-hint",
|
|
1967
|
-
children:
|
|
1964
|
+
children: s("Accepted formats: PNG, JPG, WEBP, SVG or GIF.")
|
|
1968
1965
|
})
|
|
1969
1966
|
]
|
|
1970
1967
|
}), (0, r.jsx)(m.Form, {
|
|
1971
1968
|
style: { padding: "0 2px 0 2px" },
|
|
1972
1969
|
children: (0, r.jsx)(m.Form.Item, {
|
|
1973
|
-
validateStatus:
|
|
1970
|
+
validateStatus: ee,
|
|
1974
1971
|
children: (0, r.jsx)(m.Input, {
|
|
1975
|
-
ref:
|
|
1972
|
+
ref: K,
|
|
1976
1973
|
allowClear: !0,
|
|
1977
1974
|
size: "large",
|
|
1978
|
-
placeholder:
|
|
1975
|
+
placeholder: s("Paste image URL here"),
|
|
1979
1976
|
value: y,
|
|
1980
|
-
onChange:
|
|
1977
|
+
onChange: Jt,
|
|
1981
1978
|
spellCheck: "false"
|
|
1982
1979
|
})
|
|
1983
1980
|
})
|
|
1984
1981
|
})]
|
|
1985
1982
|
})
|
|
1986
1983
|
}];
|
|
1987
|
-
return e.imageCenterStockEnabled && !
|
|
1988
|
-
label:
|
|
1984
|
+
return e.imageCenterStockEnabled && !ye && Le.push({
|
|
1985
|
+
label: s("Stock"),
|
|
1989
1986
|
key: Ge,
|
|
1990
1987
|
children: (0, r.jsx)("div", {
|
|
1991
|
-
ref:
|
|
1988
|
+
ref: S,
|
|
1992
1989
|
style: { paddingBottom: 24 },
|
|
1993
|
-
children: (0, r.jsx)(
|
|
1994
|
-
currentReq:
|
|
1995
|
-
setCurrentReq:
|
|
1996
|
-
imageStockList:
|
|
1997
|
-
setImageStockList:
|
|
1998
|
-
setModalWidth:
|
|
1999
|
-
setModalHeight:
|
|
2000
|
-
setStockLink:
|
|
2001
|
-
setCurrentImageLink:
|
|
2002
|
-
inputRef:
|
|
1990
|
+
children: (0, r.jsx)(jt, {
|
|
1991
|
+
currentReq: ie,
|
|
1992
|
+
setCurrentReq: me,
|
|
1993
|
+
imageStockList: se,
|
|
1994
|
+
setImageStockList: g,
|
|
1995
|
+
setModalWidth: $,
|
|
1996
|
+
setModalHeight: N,
|
|
1997
|
+
setStockLink: F,
|
|
1998
|
+
setCurrentImageLink: R,
|
|
1999
|
+
inputRef: h,
|
|
2003
2000
|
customRequest: Pe
|
|
2004
2001
|
})
|
|
2005
2002
|
})
|
|
2006
|
-
}), e.imageCenterGifEnabled && !
|
|
2007
|
-
label:
|
|
2003
|
+
}), e.imageCenterGifEnabled && !ye && Le.push({
|
|
2004
|
+
label: s("GIF"),
|
|
2008
2005
|
key: ze,
|
|
2009
2006
|
children: (0, r.jsx)("div", {
|
|
2010
|
-
ref:
|
|
2007
|
+
ref: U,
|
|
2011
2008
|
style: { paddingBottom: 24 },
|
|
2012
|
-
children: (0, r.jsx)(
|
|
2013
|
-
currentReqGif:
|
|
2014
|
-
setCurrentReqGif:
|
|
2015
|
-
imageGifList:
|
|
2016
|
-
setImageGifList:
|
|
2017
|
-
setModalWidth:
|
|
2018
|
-
setModalHeight:
|
|
2019
|
-
setStockLink:
|
|
2020
|
-
setCurrentImageLink:
|
|
2021
|
-
inputRef:
|
|
2009
|
+
children: (0, r.jsx)(Ut, {
|
|
2010
|
+
currentReqGif: Ae,
|
|
2011
|
+
setCurrentReqGif: _,
|
|
2012
|
+
imageGifList: re,
|
|
2013
|
+
setImageGifList: M,
|
|
2014
|
+
setModalWidth: $,
|
|
2015
|
+
setModalHeight: N,
|
|
2016
|
+
setStockLink: F,
|
|
2017
|
+
setCurrentImageLink: R,
|
|
2018
|
+
inputRef: a,
|
|
2022
2019
|
customRequest: Pe
|
|
2023
2020
|
})
|
|
2024
2021
|
})
|
|
2025
|
-
}), e.elementAIimageEnabled && !
|
|
2026
|
-
label:
|
|
2022
|
+
}), e.elementAIimageEnabled && !ye && Le.push({
|
|
2023
|
+
label: s("AI"),
|
|
2027
2024
|
key: Ke,
|
|
2028
2025
|
children: (0, r.jsx)("div", {
|
|
2029
|
-
ref:
|
|
2026
|
+
ref: Y,
|
|
2030
2027
|
style: { paddingBottom: 24 },
|
|
2031
|
-
children: (0, r.jsx)(
|
|
2032
|
-
setModalHeight:
|
|
2028
|
+
children: (0, r.jsx)(Bt, {
|
|
2029
|
+
setModalHeight: N,
|
|
2033
2030
|
customRequest: Oe,
|
|
2034
|
-
aiImageRequest:
|
|
2031
|
+
aiImageRequest: lt,
|
|
2035
2032
|
setAiImageRequest: We,
|
|
2036
|
-
imageAiList:
|
|
2037
|
-
setImageAiList:
|
|
2038
|
-
isLoadingAi:
|
|
2039
|
-
setIsLoadingAi:
|
|
2040
|
-
aiTabRef:
|
|
2041
|
-
inputAiRef:
|
|
2042
|
-
isImageUploaded:
|
|
2043
|
-
setIsImageUploaded:
|
|
2033
|
+
imageAiList: te,
|
|
2034
|
+
setImageAiList: X,
|
|
2035
|
+
isLoadingAi: ce,
|
|
2036
|
+
setIsLoadingAi: it,
|
|
2037
|
+
aiTabRef: Y,
|
|
2038
|
+
inputAiRef: W,
|
|
2039
|
+
isImageUploaded: j,
|
|
2040
|
+
setIsImageUploaded: T
|
|
2044
2041
|
})
|
|
2045
2042
|
})
|
|
2046
2043
|
}), e.imageCenterEditorEnabled && Le.push({
|
|
2047
2044
|
label: "",
|
|
2048
|
-
key:
|
|
2045
|
+
key: we,
|
|
2049
2046
|
children: (0, r.jsx)("div", {
|
|
2050
|
-
ref:
|
|
2051
|
-
children: (0, r.jsx)(
|
|
2047
|
+
ref: x,
|
|
2048
|
+
children: (0, r.jsx)(At, {
|
|
2052
2049
|
currentImageLink: C,
|
|
2053
2050
|
newLink: y,
|
|
2054
|
-
previewDisplayUrl:
|
|
2055
|
-
resolvedPreviewObjectUrl:
|
|
2056
|
-
resolvedPreviewBlob:
|
|
2057
|
-
resolveImageBlob:
|
|
2058
|
-
imageSize:
|
|
2059
|
-
onSave:
|
|
2060
|
-
uploadImageResultIsLoading:
|
|
2051
|
+
previewDisplayUrl: Xt,
|
|
2052
|
+
resolvedPreviewObjectUrl: _t,
|
|
2053
|
+
resolvedPreviewBlob: Zt,
|
|
2054
|
+
resolveImageBlob: en,
|
|
2055
|
+
imageSize: z,
|
|
2056
|
+
onSave: an,
|
|
2057
|
+
uploadImageResultIsLoading: G || !1
|
|
2061
2058
|
})
|
|
2062
2059
|
})
|
|
2063
2060
|
}), (0, r.jsxs)(r.Fragment, { children: [(0, r.jsx)(m.Modal, {
|
|
2064
|
-
width:
|
|
2061
|
+
width: J,
|
|
2065
2062
|
className: "image-center",
|
|
2066
|
-
title:
|
|
2063
|
+
title: s("Image Center"),
|
|
2067
2064
|
style: { minHeight: 390 },
|
|
2068
|
-
open: !!
|
|
2065
|
+
open: !!O,
|
|
2069
2066
|
onOk: Qe,
|
|
2070
|
-
onCancel:
|
|
2071
|
-
footer:
|
|
2067
|
+
onCancel: nn,
|
|
2068
|
+
footer: H === we ? (0, r.jsx)(r.Fragment, {}) : null,
|
|
2072
2069
|
children: (0, r.jsx)(m.Spin, {
|
|
2073
|
-
spinning:
|
|
2070
|
+
spinning: G,
|
|
2074
2071
|
children: (0, r.jsx)(m.Tabs, {
|
|
2075
|
-
activeKey:
|
|
2076
|
-
onChange:
|
|
2072
|
+
activeKey: H,
|
|
2073
|
+
onChange: rn,
|
|
2077
2074
|
items: Le,
|
|
2078
2075
|
className: "modal-tabs",
|
|
2079
2076
|
style: {
|
|
2080
|
-
height:
|
|
2077
|
+
height: fe,
|
|
2081
2078
|
minHeight: 130
|
|
2082
2079
|
}
|
|
2083
2080
|
})
|
|
2084
2081
|
})
|
|
2085
|
-
}), (0, r.jsx)(
|
|
2086
|
-
open:
|
|
2087
|
-
onCancel: () =>
|
|
2088
|
-
initialSlide:
|
|
2082
|
+
}), (0, r.jsx)(P.PlanUpgradePrompt, {
|
|
2083
|
+
open: Qt,
|
|
2084
|
+
onCancel: () => je(!1),
|
|
2085
|
+
initialSlide: Yt
|
|
2089
2086
|
})] });
|
|
2090
2087
|
};
|
|
2091
|
-
ot.propTypes = { dataProvider:
|
|
2088
|
+
ot.propTypes = { dataProvider: ht.default.object }, gt.default = ot;
|
|
2092
2089
|
});
|