v1.2.5.406
BIN
rainloop/v/1.2.5.406/static/browsers/chrome.gif
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
rainloop/v/1.2.5.406/static/browsers/firefox.gif
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
BIN
rainloop/v/1.2.5.406/static/browsers/opera.gif
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
rainloop/v/1.2.5.406/static/browsers/safari.gif
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
1
rainloop/v/1.2.5.406/static/css/app.css
Normal file
308
rainloop/v/1.2.5.406/static/css/fonts/icomoon.dev.svg
Normal file
|
|
@ -0,0 +1,308 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>
|
||||
This is a custom SVG font generated by IcoMoon.
|
||||
<iconset grid="16"></iconset>
|
||||
</metadata>
|
||||
<defs>
|
||||
<font id="icomoon" horiz-adv-x="512" >
|
||||
<font-face units-per-em="512" ascent="480" descent="-32" />
|
||||
<missing-glyph horiz-adv-x="512" />
|
||||
<glyph class="hidden" unicode="" d="M0,480L 512 -32L0 -32 z" horiz-adv-x="0" />
|
||||
<glyph unicode="" d="M 478.566,412.544C 469.786,409.446, 35.149,256.307, 26.598,253.286c-7.27-2.56-8.909-8.832-0.256-12.262
|
||||
c 10.266-4.122, 97.178-38.938, 97.178-38.938L 123.494,202.086 l 57.626-23.091c0,0, 277.427,203.75, 281.19,206.49c 3.763,2.765, 8.141-2.432, 5.402-5.402
|
||||
c-2.739-2.995-201.498-217.958-201.498-217.958c-0.026,0-0.026,0-0.026,0l-11.571-12.902l 15.334-8.243l0,0c0,0, 119.040-64.077, 127.514-68.659
|
||||
c 7.424-3.994, 17.101-0.666, 19.251,8.576c 2.534,10.906, 72.832,313.907, 74.394,320.614C 493.158,410.291, 487.373,415.642, 478.566,412.544z M 180.608,40.653
|
||||
c0-6.323, 3.558-8.064, 8.474-3.61c 6.4,5.837, 72.934,65.536, 72.934,65.536l-81.408,42.138L 180.608,40.653 z" data-tags="paperplane, travel, plane, airplane" />
|
||||
<glyph unicode="" d="M 486.4,49.92c0,0-51.2,249.165-275.84,249.165L 210.56,398.080 L 25.6,232.832l 184.96-171.29l0,111.565 C 332.493,173.107, 422.835,162.304, 486.4,49.92z" data-tags="reply, undo, arrow, left, back, previous" />
|
||||
<glyph unicode="" d="M 184.96,329.472L 184.96,398.080 L0,232.832l 184.96-171.29l0,71.142 L 76.8,232.832L 184.96,329.472z M 312.96,299.11L 312.96,398.080 L 128,232.832l 184.96-171.29l0,111.565
|
||||
c 84.301,0, 135.475-10.803, 199.040-123.187C 512,49.92, 502.605,299.11, 312.96,299.11z" data-tags="reply-all, first, arrow, left" />
|
||||
<glyph unicode="" d="M 301.44,173.107l0-111.539 L 486.4,232.832L 301.44,398.080l0-98.97 C 76.8,299.11, 25.6,49.92, 25.6,49.92C 89.165,162.304, 179.507,173.107, 301.44,173.107z" data-tags="forward, arrow, right" />
|
||||
<glyph unicode="" d="M 449.152,84.019l-96.742,96.742c 14.592,23.987, 22.989,52.096, 22.989,82.227c0,87.45-75.802,163.251-163.277,163.251
|
||||
C 124.672,426.24, 53.76,355.328, 53.76,267.878c0-87.475, 75.776-163.277, 163.251-163.277c 29.082,0, 56.32,7.885, 79.744,21.581l 97.254-97.28
|
||||
c 9.549-9.523, 24.96-9.523, 34.458,0l 24.141,24.115C 462.106,62.541, 458.65,74.522, 449.152,84.019z M 102.502,267.878
|
||||
c0,60.544, 49.075,109.645, 109.619,109.645c 60.57,0, 114.534-53.965, 114.534-114.534s-49.075-109.645-109.645-109.645S 102.502,207.309, 102.502,267.878z" data-tags="search, magnifier, lookup, find" />
|
||||
<glyph unicode="" d="M 179.2,249.6L 25.6,249.6 c-14.131,0-25.6-11.469-25.6-25.6s 11.469-25.6, 25.6-25.6l 153.6,0 c 14.131,0, 25.6,11.469, 25.6,25.6S 193.331,249.6, 179.2,249.6z M 179.2,147.2L 25.6,147.2 c-14.131,0-25.6-11.443-25.6-25.6s 11.469-25.6, 25.6-25.6l 153.6,0
|
||||
c 14.131,0, 25.6,11.443, 25.6,25.6S 193.331,147.2, 179.2,147.2z M 496.64,249.6L 409.6,249.6 L 409.6,336.64 C 409.6,350.771, 398.157,352, 384,352s-25.6-1.229-25.6-15.36L 358.4,249.6 l-84.48,0 C 259.763,249.6, 258.56,238.131, 258.56,224
|
||||
s 1.229-25.6, 15.386-25.6L 358.4,198.4 l0-87.040 c0-14.131, 11.443-15.36, 25.6-15.36s 25.6,1.229, 25.6,15.36L 409.6,198.4 l 87.040,0 c 14.131,0, 15.36,11.469, 15.36,25.6S 510.771,249.6, 496.64,249.6z M 179.2,352L 25.6,352
|
||||
C 11.469,352,0,340.531,0,326.4s 11.469-25.6, 25.6-25.6l 153.6,0 c 14.131,0, 25.6,11.469, 25.6,25.6S 193.331,352, 179.2,352z" data-tags="add-to-list, plus, list" />
|
||||
<glyph unicode="" d="M 318.259,480c 34.304,0, 51.456-23.398, 51.456-50.125c0-33.382-29.798-64.282-68.557-64.282c-32.512,0-51.456,19.2-50.56,50.918
|
||||
C 250.598,443.264, 273.126,480, 318.259,480z M 212.71-32c-27.085,0-46.925,16.691-27.981,90.189l 31.078,130.33c 5.402,20.864, 6.298,29.235,0,29.235
|
||||
c-8.141,0-43.264-14.413-64.051-28.621L 138.24,211.686c 65.869,55.962, 141.619,88.755, 174.106,88.755c 27.059,0, 31.539-32.563, 18.048-82.662l-35.61-137.011
|
||||
c-6.298-24.218-3.61-32.563, 2.688-32.563c 8.141,0, 34.739,10.061, 60.902,30.925l 15.36-20.864C 309.709-6.912, 239.77-32, 212.71-32z" data-tags="info, about" />
|
||||
<glyph unicode="" d="M 153.626,341.76L 153.6,106.24L 358.4,224 z" data-tags="arrow-right, triangle, right, next" />
|
||||
<glyph unicode="" d="M 373.76,326.374L 138.24,326.4L 256,121.6 z" data-tags="arrow-down, triangle, down, bottom" />
|
||||
<glyph unicode="" d="M 76.8,280.32c-31.104,0-56.32-25.216-56.32-56.32c0-31.104, 25.216-56.32, 56.32-56.32s 56.32,25.216, 56.32,56.32C 133.12,255.104, 107.904,280.32, 76.8,280.32z M 256,280.32
|
||||
c-31.104,0-56.32-25.216-56.32-56.32c0-31.104, 25.216-56.32, 56.32-56.32s 56.294,25.216, 56.294,56.32C 312.294,255.104, 287.104,280.32, 256,280.32z M 435.2,280.32
|
||||
c-31.104,0-56.32-25.216-56.32-56.32c0-31.104, 25.216-56.32, 56.32-56.32s 56.32,25.216, 56.32,56.32C 491.52,255.104, 466.304,280.32, 435.2,280.32z" data-tags="ellipsis, dots, circles" />
|
||||
<glyph unicode="" d="M 432,480 C 476.182,480 512,444.183 512,400 C 512,381.99 506.045,365.371 496,352 L 464,320 L 352,432 L 384,464 C 397.371,474.045 413.989,480 432,480 ZM 32,112L0-32l 144,32l 296,296L 328,408L 32,112z M 357.789,298.211l-224-224l-27.578,27.578l 224,224L 357.789,298.211z" data-tags="pencil, write, edit, blog, note" />
|
||||
<glyph unicode="" d="M0,416l0-416 l 512,0 L 512,416 L0,416 z M 480,32L 32,32 L 32,384 l 448,0 L 480,32 zM 352,304A48,48 2700 1 1 448,304A48,48 2700 1 1 352,304zM 448,64 L 64,64 L 160,320 L 288,160 L 352,208 Z" data-tags="image, picture, photo, graphic" />
|
||||
<glyph unicode="" d="M 160,384 L 512,480 L 512,448 L 512,384 L 512,112 C 512,67.817 461.855,32 400,32 C 338.145,32 288,67.817 288,112 C 288,156.183 338.145,192 400,192 C 417.179,192 433.451,189.234 448,184.297 L 448,349.091 L 224,288 L 224,48 C 224,3.817 173.856-32 112-32 C 50.144-32 0,3.817 0,48 C 0,92.183 50.144,128 112,128 C 129.179,128 145.451,125.234 160,120.297 L 160,288 L 160,384 Z" data-tags="music, song, audio, sound" />
|
||||
<glyph unicode="" d="M0,416l0-384 l 512,0 L 512,416 L0,416 z M 96,64L 32,64 l0,64 l 64,0 L 96,64 z M 96,192L 32,192 l0,64 l 64,0 L 96,192 z M 96,320L 32,320 L 32,384 l 64,0 L 96,320 z M 384,64L 128,64 L 128,384 l 256,0 L 384,64 z
|
||||
M 480,64l-64,0 l0,64 l 64,0 L 480,64 z M 480,192l-64,0 l0,64 l 64,0 L 480,192 z M 480,320l-64,0 L 416,384 l 64,0 L 480,320 zM 192,320L 192,128L 320,224 z" data-tags="film, video, movie, tape, play" />
|
||||
<glyph unicode="" d="M 128,448L 384,448L 384,384L 128,384zM 480,352L 32,352 C 14.4,352,0,337.6,0,320l0-160 c0-17.6, 14.398-32, 32-32l 96,0 l0-128 l 256,0 L 384,128 l 96,0 c 17.6,0, 32,14.4, 32,32L 512,320
|
||||
C 512,337.6, 497.6,352, 480,352z M 352,32L 160,32 L 160,192 l 192,0 L 352,32 z M 487.2,304c0-12.813-10.387-23.2-23.199-23.2
|
||||
c-12.813,0-23.201,10.387-23.201,23.2s 10.388,23.2, 23.201,23.2C 476.814,327.2, 487.2,316.813, 487.2,304z" data-tags="print, printer" />
|
||||
<glyph unicode="" d="M 160,288L 224,288L 224,224L 160,224zM 256,288L 320,288L 320,224L 256,224zM 352,288L 416,288L 416,224L 352,224zM 64,96L 128,96L 128,32L 64,32zM 160,96L 224,96L 224,32L 160,32zM 256,96L 320,96L 320,32L 256,32zM 160,192L 224,192L 224,128L 160,128zM 256,192L 320,192L 320,128L 256,128zM 352,192L 416,192L 416,128L 352,128zM 64,192L 128,192L 128,128L 64,128zM 416,480l0-32 l-64,0 L 352,480 L 128,480 l0-32 L 64,448 L 64,480 L0,480 l0-512 l 480,0 L 480,480 L 416,480 z M 448,0L 32,0 L 32,352 l 416,0 L 448,0 z" data-tags="calendar, schedule, date, time, day" />
|
||||
<glyph unicode="" d="M 352,480c-88.365,0-160-71.634-160-160c0-10.013, 0.929-19.808, 2.688-29.312L0,96l0-96 c0-17.673, 14.327-32, 32-32
|
||||
l 32,0 l0,32 l 64,0 l0,64 l 64,0 l0,64 l 64,0 l 41.521,41.521C 314.526,163.363, 332.869,160, 352,160c 88.365,0, 160,71.634, 160,160S 440.365,480, 352,480z
|
||||
M 399.937,319.937c-26.51,0-48,21.49-48,48s 21.49,48, 48,48s 48-21.49, 48-48S 426.447,319.937, 399.937,319.937z" data-tags="key, password, login, log in, signin, sign in" />
|
||||
<glyph unicode="" d="M 466.895,174.875c-26.863,46.527-10.708,106.152, 36.076,133.244l-50.313,87.146c-14.375-8.427-31.088-13.259-48.923-13.259
|
||||
c-53.768,0-97.354,43.873-97.354,97.995L 205.752,480.001 c 0.133-16.705-4.037-33.641-12.979-49.126
|
||||
c-26.862-46.528-86.578-62.351-133.431-35.379L 9.030,308.35c 14.485-8.236, 27.025-20.294, 35.943-35.739
|
||||
c 26.819-46.454, 10.756-105.96-35.854-133.112l 50.313-87.146c 14.325,8.348, 30.958,13.127, 48.7,13.127
|
||||
c 53.598,0, 97.072-43.596, 97.35-97.479l 100.627,0 c-0.043,16.537, 4.136,33.285, 12.983,48.609
|
||||
c 26.818,46.453, 86.388,62.297, 133.207,35.506l 50.313,87.145C 488.222,147.494, 475.766,159.51, 466.895,174.875z M 256,120.334
|
||||
c-57.254,0-103.668,46.412-103.668,103.667c0,57.254, 46.413,103.667, 103.668,103.667c 57.254,0, 103.666-46.413, 103.666-103.667
|
||||
C 359.665,166.746, 313.254,120.334, 256,120.334z" data-tags="cog, preferences, settings, gear, generate, control, options" />
|
||||
<glyph unicode="" d="M 160.504-32 C 126.381,39.004 144.553,79.689 170.779,118.022 C 199.499,160 206.901,201.555 206.901,201.555 C 206.901,201.555 229.478,172.205 220.447,126.301 C 260.333,170.701 267.859,241.441 261.838,268.533 C 351.995,205.527 390.526,69.105 338.599-32 C 614.785,124.266 407.298,358.086 371.176,384.425 C 383.217,358.087 385.5,313.5 361.176,291.862 C 320,448 218.19,480 218.19,480 C 230.231,399.478 174.542,311.428 120.842,245.635 C 118.955,277.743 116.951,299.899 100.067,330.625 C 96.277,272.297 51.701,224.751 39.63,166.311 C 23.279,87.168 51.878,29.221 160.504-32 Z" data-tags="fire, flame, hot, popular" />
|
||||
<glyph unicode="" d="M 352,448L 192,288L 96,288 L0,160c0,0, 101.708,28.326, 161.033,15.042L0-32l 210.951,164.072C 240.37,64.745, 192-32, 192-32l 128,96
|
||||
l0,96 l 160,160L 512,480L 352,448z" data-tags="rocket, speed, jet, spaceship, fast" />
|
||||
<glyph unicode="" d="M0,480l0-512 l 512,0 L 512,480 L0,480 z M 480,0L 32,0 L 32,448 l 448,0 L 480,0 z M 384,368L 224,208l-96,96l-64-64l 160-160l 224,224L 384,368z" data-tags="checkbox-checked, tick, checked, selected" />
|
||||
<glyph unicode="" d="M0,480l0-512 l 512,0 L 512,480 L0,480 z M 480,0L 32,0 L 32,448 l 448,0 L 480,0 z" data-tags="checkbox-unchecked, unchecked, square" />
|
||||
<glyph unicode="" d="M0,480l0-512 l 512,0 L 512,480 L0,480 z M 480,0L 32,0 L 32,448 l 448,0 L 480,0 zM 128,352L 384,352L 384,96L 128,96z" data-tags="checkbox-partial, partial" />
|
||||
<glyph unicode="" d="M 256,480C 114.615,480,0,365.385,0,224s 114.615-256, 256-256s 256,114.615, 256,256S 397.385,480, 256,480z M 256,32
|
||||
c-106.039,0-192,85.961-192,192c0,106.039, 85.961,192, 192,192c 106.039,0, 192-85.961, 192-192C 448,117.961, 362.039,32, 256,32zM 160,224A96,96 12780 1 1 352,224A96,96 12780 1 1 160,224z" data-tags="radio-checked" />
|
||||
<glyph unicode="" d="M 256,480C 114.615,480,0,365.385,0,224s 114.615-256, 256-256s 256,114.615, 256,256S 397.385,480, 256,480z M 256,32
|
||||
c-106.039,0-192,85.961-192,192c0,106.039, 85.961,192, 192,192c 106.039,0, 192-85.961, 192-192C 448,117.961, 362.039,32, 256,32z" data-tags="radio-unchecked, circle" />
|
||||
<glyph unicode="" d="M 394.767,448c0,0-100.478,0-133.97,0c-60.061,0-116.585-45.503-116.585-98.211c0-53.863, 40.941-97.333, 102.044-97.333
|
||||
c 4.249,0, 8.378,0.085, 12.42,0.376c-3.964-7.593-6.8-16.144-6.8-25.021c0-14.969, 8.052-27.105, 18.234-37.012
|
||||
c-7.693,0-15.121-0.224-23.226-0.224c-74.391,0.001-131.65-47.38-131.65-96.511c0-48.389, 62.771-78.656, 137.167-78.656
|
||||
c 84.812,0, 131.653,48.122, 131.653,96.514c0,38.801-11.448,62.036-46.843,87.067c-12.108,8.571-35.266,29.418-35.266,41.672
|
||||
c0,14.36, 4.098,21.434, 25.714,38.323c 22.156,17.312, 37.837,41.651, 37.837,69.958c0,33.703-15.011,66.549-43.187,77.386l 42.478,0
|
||||
L 394.767,448z M 347.974,120.271c 1.063-4.486, 1.642-9.104, 1.642-13.814c0-39.1-25.195-69.655-97.487-69.655
|
||||
c-51.421,0-88.558,32.552-88.558,71.65c0,38.321, 46.063,70.222, 97.482,69.666c 12-0.127, 23.184-2.058, 33.334-5.345
|
||||
C 322.301,153.359, 342.325,142.393, 347.974,120.271z M 265.643,266.112c-34.519,1.032-67.318,38.613-73.276,83.93
|
||||
c-5.958,45.333, 17.185,80.021, 51.694,78.995C 278.565,428, 311.379,391.63, 317.34,346.308
|
||||
C 323.293,300.978, 300.145,265.079, 265.643,266.112z" data-tags="google" />
|
||||
<glyph unicode="" d="M 0.403,45.168c-0.122,1.266-0.226,2.535-0.292,3.815C 0.176,47.703, 0.281,46.434, 0.403,45.168zM 117.954,197.426c 46.005-1.369, 76.867,46.349, 68.931,106.599c-7.947,60.24-51.698,108.584-97.704,109.961
|
||||
c-46.013,1.365-76.87-44.741-68.926-105C 28.196,248.752, 71.931,198.799, 117.954,197.426zM 512,352L 512,394.655 C 512,441.595, 473.609,480, 426.671,480L 85.343,480 C 39.205,480, 1.337,442.884, 0.061,397.037
|
||||
c 29.181,25.693, 69.662,47.158, 111.437,47.158c 44.652,0, 178.622,0, 178.622,0l-39.974-33.809l-56.634,0
|
||||
c 37.565-14.402, 57.578-58.062, 57.578-102.861c0-37.624-20.905-69.977-50.444-92.984c-28.822-22.451-34.286-31.854-34.286-50.939
|
||||
c0-16.289, 30.873-44, 47.016-55.394c 47.191-33.269, 62.458-64.156, 62.458-115.728c0-8.214-1.021-16.415-3.033-24.48l 153.871,0
|
||||
C 473.609-32, 512,6.375, 512,53.345L 512,319.999 l-96,0 L 416,224 l-32,0 l0,96 l-95.999,0 l0,32 L 384,352 L 384,448 l 32,0 l0-96 L 512,352 zM 92.943,97.032c 10.807,0, 20.711,0.295, 30.968,0.295c-13.573,13.167-24.313,29.3-24.313,49.19
|
||||
c0,11.804, 3.782,23.168, 9.067,33.26c-5.391-0.385-10.895-0.497-16.563-0.497c-37.178,0-68.753,12.038-92.102,31.927l0-33.621
|
||||
l 0.003-100.865C 26.723,89.408, 58.447,97.032, 92.943,97.032zM 1.71,36.371c-0.556,2.729-0.983,5.503-1.271,8.317C 0.726,41.874, 1.154,39.1, 1.71,36.371zM 227.725,3.577c-7.529,29.403-34.227,43.982-71.444,69.784c-13.536,4.366-28.447,6.937-44.447,7.104
|
||||
c-44.809,0.482-86.554-17.471-110.108-44.186C 9.686-2.574, 44.243-32, 85.343-32l 143.222,0 c 0.908,5.564, 1.348,11.316, 1.348,17.216
|
||||
C 229.913-8.517, 229.146-2.388, 227.725,3.577z" data-tags="google plus, social" />
|
||||
<glyph unicode="" d="M 426.672,480L 85.342,480 C 38.406,480,0,441.593,0,394.656l0-341.313 C0,6.374, 38.406-32, 85.342-32l 341.33,0.001
|
||||
c 46.938,0, 85.328,38.373, 85.328,85.344L 512,394.656 C 512,441.593, 473.609,480, 426.672,480z M 435.296,224L 352,224 l0-224 l-96,0 L 256,224 l-46.263,0 l0,73.282 L 256,297.282
|
||||
l0,47.593 C 256,409.546, 283.896,448, 359.935,448l 87.622,0 l0-79.285 l-71.565,0 c-21.241,0.035-23.876-11.076-23.876-31.756L 352,297.282l 96,0
|
||||
L 435.296,224z" data-tags="facebook, social" />
|
||||
<glyph unicode="" d="M 512,382.791c-18.838-8.354-39.082-14.001-60.33-16.54c 21.686,13, 38.343,33.585, 46.186,58.115
|
||||
c-20.298-12.039-42.778-20.78-66.705-25.49c-19.16,20.415-46.461,33.17-76.673,33.17c-58.011,0-105.044-47.029-105.044-105.039
|
||||
c0-8.233, 0.929-16.25, 2.72-23.939c-87.3,4.382-164.701,46.2-216.509,109.753c-9.042-15.514-14.223-33.558-14.223-52.809
|
||||
c0-36.444, 18.544-68.596, 46.73-87.433c-17.219,0.546-33.416,5.271-47.577,13.139c-0.010-0.438-0.010-0.878-0.010-1.321
|
||||
c0-50.894, 36.209-93.348, 84.261-103c-8.813-2.4-18.094-3.686-27.674-3.686c-6.769,0-13.349,0.66-19.764,1.886
|
||||
c 13.368-41.73, 52.16-72.103, 98.126-72.948c-35.95-28.175-81.243-44.967-130.458-44.967c-8.479,0-16.84,0.497-25.058,1.47
|
||||
c 46.486-29.805, 101.701-47.197, 161.021-47.197c 193.211,0, 298.868,160.062, 298.868,298.872c0,4.554-0.103,9.084-0.305,13.59
|
||||
C 480.11,343.227, 497.918,361.727, 512,382.791z" data-tags="twitter, tweet, social" />
|
||||
<glyph unicode="" d="M 416,416L 96,416 c-52.8,0-96-43.2-96-96l0-192 c0-52.8, 43.2-96, 96-96l 320,0 c 52.8,0, 96,43.2, 96,96L 512,320 C 512,372.8, 468.8,416, 416,416z
|
||||
M 192,96L 192,352 l 160-128L 192,96z" data-tags="youtube, social" />
|
||||
<glyph unicode="" d="M 421.006,185.26c-6.824,6.723-21.957,10.283-44.986,10.586c-15.589,0.172-34.351-1.201-54.085-3.964
|
||||
c-8.837,5.099-17.946,10.647-25.094,17.329c-19.231,17.958-35.284,42.886-45.288,70.297c 0.652,2.56, 1.207,4.81, 1.724,7.106
|
||||
c0,0, 10.833,61.53, 7.965,82.333c-0.395,2.853-0.637,3.681-1.404,5.898l-0.941,2.417c-2.948,6.796-8.724,13.997-17.783,13.604
|
||||
l-5.312,0.169l-0.146,0.003c-10.1,0-18.332-5.166-20.493-12.887c-6.569-24.217, 0.209-60.446, 12.491-107.369l-3.144-7.643
|
||||
c-8.794-21.438-19.815-43.030-29.539-62.079l-1.264-2.476c-10.23-20.019-19.512-37.013-27.927-51.411l-8.688-4.594
|
||||
c-0.632-0.334-15.522-8.209-19.014-10.322c-29.628-17.691-49.261-37.77-52.518-53.708c-1.036-5.085-0.265-11.593, 5.007-14.607
|
||||
l 8.403-4.229c 3.645-1.826, 7.489-2.751, 11.427-2.751c 21.102,0, 45.6,26.286, 79.348,85.183
|
||||
c 38.965,12.684, 83.327,23.228, 122.207,29.045c 29.629-16.684, 66.071-28.273, 89.071-28.273c 4.084,0, 7.606,0.389, 10.466,1.148
|
||||
c 4.411,1.168, 8.129,3.683, 10.396,7.096c 4.463,6.716, 5.367,15.966, 4.156,25.438C 425.68,179.411, 423.435,182.887, 421.006,185.26z
|
||||
M 105.823,72.976c 3.848,10.521, 19.080,31.322, 41.602,49.778c 1.416,1.148, 4.904,4.416, 8.097,7.451
|
||||
C 131.971,92.643, 116.199,77.672, 105.823,72.976z M 239.217,380.157c 6.783,0, 10.642-17.097, 10.962-33.127
|
||||
c 0.32-16.030-3.429-27.28-8.079-35.604c-3.851,12.324-5.713,31.75-5.713,44.452C 236.387,355.878, 236.104,380.157, 239.217,380.157z
|
||||
M 199.426,161.253c 4.725,8.458, 9.641,17.378, 14.665,26.839c 12.246,23.158, 19.979,41.278, 25.739,56.173
|
||||
c 11.455-20.842, 25.722-38.56, 42.493-52.756c 2.092-1.771, 4.309-3.551, 6.637-5.325C 254.855,179.436, 225.378,171.229, 199.426,161.253z
|
||||
M 414.452,163.174c-2.077-1.299-8.027-2.050-11.854-2.050c-12.353,0-27.636,5.647-49.063,14.833
|
||||
c 8.234,0.609, 15.781,0.919, 22.55,0.919c 12.391,0, 16.060,0.054, 28.175-3.036S 416.529,164.473, 414.452,163.174zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" data-tags="file-pdf, file, format, pdf" />
|
||||
<glyph unicode="" d="M 319.889,242.054L 341.995,242.054L 316.489,128.965L 283.326,287.97L 230.051,287.97L 191.494,128.965L 162.586,287.97L 106.889,287.97L 163.435,32.029L 217.854,32.029L 256.001,183.383L 290.129,32.029L 340.297,32.029L 405.112,287.97L 319.889,287.97
|
||||
zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" data-tags="file-word, file, format, word, docx" />
|
||||
<glyph unicode="" d="M 371.514,288L 303.867,288L 256.001,217.484L 208.131,288L 140.487,288L 221.568,166.768L 130.081,32L 261.201,32L 261.201,77.788L 230.923,77.788L 256.001,115.285L 311.699,32L 381.92,32L 290.432,166.768 zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" data-tags="file-excel, file, format, excel, xlc" />
|
||||
<glyph unicode="" d="M 96,224l 96,0 l0-32 L 96,192 L 96,224 z M 96,160l 96,0 l0-32 L 96,128 L 96,160 z M 96,96l 96,0 l0-32 L 96,64 L 96,96 z M 451.716,380.285l-71.432,71.431
|
||||
C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0 c 22,0, 40,18, 40,40L 480,312
|
||||
C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440 c0,4.336, 3.664,8, 8,8
|
||||
l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 zM 288,128 L 382.396,128 C 374.983,91.484 342.703,64 304,64 C 259.817,64 224,99.817 224,144 C 224,182.703 251.485,214.983 288,222.396 L 288,128 ZM 336,256 C 380.183,256 416,220.183 416,176 C 416,170.521 415.446,165.17 414.396,160 L 320,160 L 320,254.396 C 325.17,255.446 330.521,256 336,256 Z" data-tags="file-powerpoint" />
|
||||
<glyph unicode="" d="M 224,192L 192,224L 96,128L 192,32L 224,64L 160,128 zM 288,64L 320,32L 416,128L 320,224L 288,192L 352,128 zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" data-tags="file-xml, file, format, code, html, xml" />
|
||||
<glyph unicode="" d="M 192,174.277L 192,231.39 c0,7.564, 3.348,14.718, 9.427,20.143c 6.080,5.424, 14.096,8.413, 22.573,8.413l0,28.555
|
||||
c-35.2,0-64-25.7-64-57.111l0-42.833 c0-7.886-7.164-14.279-16-14.279l-16,0 l0-28.555 l 16,0 c 8.837,0, 16-6.395, 16-14.279l0-42.838
|
||||
c0-31.407, 28.8-57.107, 64-57.107l0,28.556 c-8.477,0-16.494,2.988-22.573,8.413c-6.079,5.426-9.427,12.577-9.427,20.139l0,57.117
|
||||
c0,7.885-7.164,14.277-16,14.277C 184.837,160, 192,166.395, 192,174.277zM 320,145.723l0-57.117 c0-7.562-3.348-14.713-9.427-20.139c-6.079-5.425-14.095-8.413-22.573-8.413l0-28.556
|
||||
c 35.201,0, 64,25.7, 64,57.107l0,42.838 c0,7.886, 7.164,14.279, 16,14.279l 16,0 l0,28.555 l-16,0 c-8.836,0-16,6.395-16,14.279L 352,231.39
|
||||
c0,31.412-28.799,57.111-64,57.111l0-28.555 c 8.479,0, 16.494-2.989, 22.573-8.415c 6.080-5.424, 9.427-12.578, 9.427-20.142l0-57.114
|
||||
c0-7.883, 7.164-14.276, 16-14.276C 327.164,160, 320,153.605, 320,145.723zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" data-tags="file-css, file, format, code, css" />
|
||||
<glyph unicode="" d="M 505.216,60.624l-191.984,384C 302.4,466.304, 280.256,480, 256,480s-46.4-13.696-57.232-35.376
|
||||
l-191.984-384c-9.92-19.84-8.864-43.408, 2.8-62.288C 21.248-20.512, 41.84-32, 64.016-32l 383.952,0 c 22.192,0, 42.784,11.488, 54.432,30.336
|
||||
C 514.064,17.216, 515.12,40.784, 505.216,60.624z M 287.968,48c0-8.848-7.152-16-16-16l-32,0 c-8.848,0-16,7.152-16,16l0,32 c0,8.848, 7.152,16, 16,16l 32,0
|
||||
c 8.848,0, 16-7.152, 16-16L 287.968,48 z M 287.968,176c0-8.848-7.152-16-16-16l-32,0 c-8.848,0-16,7.152-16,16L 223.968,336 c0,8.832, 7.152,16, 16,16l 32,0 c 8.848,0, 16-7.168, 16-16
|
||||
L 287.968,176 z" data-tags="warning, alert" />
|
||||
<glyph unicode="" d="M 480,224c0-123.712-100.288-224-224-224S 32,100.288, 32,224c0,54.528, 19.616,104.368, 52,143.2
|
||||
c 2.464,4.544, 5.888,8.496, 10.16,11.36c 0.72,0.752, 1.36,1.6, 2.096,2.336c 0.016-0.368, 0.176-0.72, 0.208-1.088C 101.088,382.4, 106.336,384, 112,384
|
||||
c 17.664,0, 32-14.336, 32-32c0-11.136-5.68-20.928-14.32-26.656C 130.24,324.928, 130.64,324.416, 131.216,324C 109.216,296.608, 96,261.872, 96,224
|
||||
c0-88.368, 71.632-160, 160-160s 160,71.632, 160,160c0,37.872-13.216,72.608-35.216,100c 0.576,0.416, 0.992,0.928, 1.536,1.344
|
||||
C 373.68,331.072, 368,340.864, 368,352c0,17.664, 14.336,32, 32,32c 5.664,0, 10.912-1.6, 15.536-4.192c 0.032,0.368, 0.192,0.72, 0.224,1.088
|
||||
c 0.72-0.736, 1.36-1.584, 2.096-2.336c 4.272-2.864, 7.68-6.816, 10.16-11.36C 460.368,328.368, 480,278.528, 480,224z M 272,192l-32,0
|
||||
c-8.848,0-16,7.152-16,16L 224,432 c0,8.832, 7.152,16, 16,16l 32,0 c 8.848,0, 16-7.168, 16-16l0-224 C 288,199.152, 280.848,192, 272,192z" data-tags="switch, power" />
|
||||
<glyph unicode="" d="M 399.712,324.512c 5.968-5.968, 15.648-5.968, 21.6,0l 84.528,66.544
|
||||
c 14.064-44.224, 4.128-94.432-30.96-129.52c-33.472-33.488-80.736-44.032-123.424-32.768l-100.256-100.256c 11.264-42.704, 0.704-89.952-32.752-123.424
|
||||
c-35.088-35.088-85.312-45.024-129.536-30.96l 66.576,84.512c 5.968,5.984, 5.968,15.648,0,21.616l-43.2,43.184c-5.968,5.968-15.648,5.968-21.6,0
|
||||
l-84.528-66.544c-14.064,44.224-4.128,94.416, 30.944,129.504c 33.488,33.488, 80.736,44.048, 123.44,32.768l 100.272,100.272
|
||||
c-11.28,42.688-0.72,89.952, 32.736,123.424c 35.088,35.088, 85.312,45.024, 129.552,30.976l-66.576-84.544c-5.952-5.952-5.952-15.632,0-21.584
|
||||
L 399.712,324.512z" data-tags="wrench, settings, options, preferences" />
|
||||
<glyph unicode="" d="M 370.857,102.286q0-11.429 -8-19.429l-38.857-38.857q-8-8 -19.429-8t-19.429,8l-84,84l-84-84q-8-8 -19.429-8t-19.429,8l-38.857,38.857q-8,8 -8,19.429t 8,19.429l 84,84l-84,84q-8,8 -8,19.429t 8,19.429l 38.857,38.857q 8,8 19.429,8t 19.429-8l 84-84l 84,84q 8,8 19.429,8t 19.429-8l 38.857-38.857q 8-8 8-19.429 t-8-19.429l-84-84l 84-84q 8-8 8-19.429z" horiz-adv-x="402.286" data-tags="remove, cancel, close, delete, mutiply" />
|
||||
<glyph unicode="" d="M 477.429,318.286q0-11.429 -8-19.429l-206.857-206.857l-38.857-38.857q-8-8 -19.429-8t-19.429,8l-38.857,38.857l-103.429,103.429q-8,8 -8,19.429t 8,19.429l 38.857,38.857q 8,8 19.429,8t 19.429-8l 84-84.286l 187.429,187.714q 8,8 19.429,8t 19.429-8l 38.857-38.857q 8-8 8-19.429z" data-tags="ok, checkmark, tick, correct" />
|
||||
<glyph unicode="" d="M 402.286,269.714l0-54.857 q0-11.429 -8-19.429t-19.429-8l-118.857,0 l0-118.857 q0-11.429 -8-19.429t-19.429-8l-54.857,0 q-11.429,0 -19.429,8t-8,19.429l0,118.857 l-118.857,0 q-11.429,0 -19.429,8t-8,19.429l0,54.857 q0,11.429 8,19.429t 19.429,8l 118.857,0 l0,118.857 q0,11.429 8,19.429t 19.429,8l 54.857,0 q 11.429,0 19.429-8t 8-19.429l0-118.857 l 118.857,0 q 11.429,0 19.429-8t 8-19.429z" horiz-adv-x="402.286" data-tags="plus, add, sum" />
|
||||
<glyph unicode="" d="M 402.286,269.714l0-54.857 q0-11.429 -8-19.429t-19.429-8l-347.429,0 q-11.429,0 -19.429,8t-8,19.429l0,54.857 q0,11.429 8,19.429t 19.429,8l 347.429,0 q 11.429,0 19.429-8t 8-19.429z" horiz-adv-x="402.286" data-tags="minus, remove, delete, subtract" />
|
||||
<glyph unicode="" d="M 348.916,316.476l-32.476,32.461L 154.035,186.566c-26.907-26.896-26.907-70.524,0-97.422
|
||||
c 26.902-26.896, 70.53-26.896, 97.437,0l 194.886,194.854c 44.857,44.831, 44.857,117.531,0,162.363
|
||||
c-44.833,44.852-117.556,44.852-162.391,0L 79.335,241.788l 0.017-0.016c-0.145-0.152-0.306-0.288-0.438-0.423
|
||||
c-62.551-62.548-62.551-163.928,0-226.453c 62.527-62.528, 163.934-62.528, 226.494,0c 0.137,0.137, 0.258,0.284, 0.41,0.438l 0.016-0.017
|
||||
l 139.666,139.646l-32.493,32.46L 273.35,47.792l-0.008,0 c-0.148-0.134-0.282-0.285-0.423-0.422
|
||||
c-44.537-44.529-116.99-44.529-161.538,0c-44.531,44.521-44.531,116.961,0,161.489c 0.152,0.152, 0.302,0.291, 0.444,0.423l-0.023,0.030
|
||||
l 204.64,204.583c 26.856,26.869, 70.572,26.869, 97.443,0c 26.856-26.867, 26.856-70.574,0-97.42L 218.999,121.625
|
||||
c-8.968-8.961-23.527-8.961-32.486,0c-8.947,8.943-8.947,23.516,0,32.46L 348.916,316.476z" data-tags="attachment, paperclip" />
|
||||
<glyph unicode="" d="M 255.616,418.56L 255.616,320.563L 435.251,320.589L 435.251,127.258L 255.616,127.258L 255.616,29.44L 61.491,224 z" data-tags="arrow-left, left, previous" />
|
||||
<glyph unicode="" d="M 450.56,224.384L 352.563,224.358L 352.589,44.749L 159.258,44.749L 159.258,224.384L 61.44,224.358L 256.026,418.509 z" data-tags="arrow-up- upload, top" />
|
||||
<glyph unicode="" d="M 256.384,418.56L 256.384,320.563L 76.749,320.589L 76.749,127.258L 256.384,127.258L 256.384,29.44L 450.509,224 z" data-tags="arrow-right, right, next" />
|
||||
<glyph unicode="" d="M 450.56,223.616L 352.563,223.642L 352.589,403.251L 159.258,403.251L 159.258,223.616L 61.44,223.642L 256,29.491 z" data-tags="arrow-down, download, bottom" />
|
||||
<glyph unicode="" d="M 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0 c 22,0, 40,18, 40,40
|
||||
L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440 c0,4.336, 3.664,8, 8,8
|
||||
l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" data-tags="file, paper, page, new, empty, blank, document" />
|
||||
<glyph unicode="" d="M 208,416L 256,416L 256,384L 208,384zM 160,384L 208,384L 208,352L 160,352zM 208,352L 256,352L 256,320L 208,320zM 160,320L 208,320L 208,288L 160,288zM 208,288L 256,288L 256,256L 208,256zM 160,256L 208,256L 208,224L 160,224zM 208,224l0-32 l-48,0 l0-112 c0-8.837, 7.163-16, 16-16l 64,0 c 8.837,0, 16,7.163, 16,16L 256,224 L 208,224 z M 240,96l-64,0 l0,32 l 64,0 L 240,96 zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" data-tags="file-zip, zip" />
|
||||
<glyph unicode="" d="M0,448l0-448 l 512,0 L 512,448 L0,448 z M 480,32L 32,32 L 32,416 l 448,0 L 480,32 zM 448,384L 64,384 l0-320 l 384,0 L 448,384 z M 224,224l-32,0 l0-32 l-32,0 l0-32 l-32,0 l0,32 l 32,0 l0,32 l 32,0 l0,32 l-32,0 l0,32 l-32,0 l0,32 l 32,0 l0-32 l 32,0 l0-32 l 32,0 L 224,224 z M 352,160l-96,0
|
||||
l0,32 l 96,0 L 352,160 z" data-tags="console, command line, terminal" />
|
||||
<glyph unicode="" d="M 480-32L 32-32 c-17.664,0-32,14.336-32,32L0,448 c0,17.664, 14.336,32, 32,32l 384,0 l 96-96l0-384
|
||||
C 512-17.664, 497.664-32, 480-32z M 128,48c0-8.848, 7.168-16, 16-16l 224,0 c 8.848,0, 16,7.152, 16,16l0,128 c0,8.848-7.152,16-16,16L 144,192 c-8.832,0-16-7.152-16-16L 128,48 z
|
||||
M 352,400c0,8.848-7.152,16-16,16s-16-7.152-16-16l0-48 c0-8.848, 7.152-16, 16-16s 16,7.152, 16,16L 352,400 z M 448,368l-48,48l-16,0 l0-112 c0-8.848-7.152-16-16-16L 144,288
|
||||
c-8.832,0-16,7.152-16,16L 128,416 L 80,416 C 71.168,416, 64,408.848, 64,400l0-352 c0-8.848, 7.168-16, 16-16l 16,0 L 96,208 c0,8.848, 7.168,16, 16,16l 288,0 c 8.848,0, 16-7.152, 16-16l0-176 l 16,0
|
||||
c 8.848,0, 16,7.152, 16,16L 448,368 z" data-tags="floppy, disk, save, store" />
|
||||
<glyph unicode="" d="M 379.392,110.131c-63.104,22.989-83.277,42.394-83.277,83.942c0,24.934, 19.277,16.794, 27.725,62.464c 3.507,18.944, 20.531,0.307, 23.808,43.546
|
||||
c0,17.229-9.293,21.53-9.293,21.53s 4.736,25.523, 6.579,45.133C 347.187,391.219, 330.803,454.4, 243.2,454.4C 155.622,454.4, 139.187,391.219, 141.491,366.746
|
||||
C 143.334,347.136, 148.070,321.613, 148.070,321.613S 138.752,317.338, 138.752,300.083c 3.251-43.238, 20.275-24.602, 23.782-43.546
|
||||
c 8.474-45.67, 27.75-37.53, 27.75-62.464c0-41.549-20.173-60.954-83.277-83.942c-63.334-23.040-104.448-46.566-104.448-62.618c0-16.026,0-53.888,0-53.888
|
||||
l 240.64,0 l 240.64,0 c0,0,0,37.862,0,53.888C 483.84,63.539, 442.701,87.066, 379.392,110.131z" data-tags="user, group, profile, avatar, persona" />
|
||||
<glyph unicode="" d="M 464,416L 48,416 C 21.488,416,0,394.512,0,368l0-288 c0-26.496, 21.488-48, 48-48l 416,0 c 26.512,0, 48,21.504, 48,48L 512,368 C 512,394.512, 490.512,416, 464,416z M 43.856,64.16
|
||||
L 32.16,75.872l 131.984,131.968l 11.696-11.712L 43.856,64.16z M 468.144,64.16l-131.984,131.968l 11.696,11.712l 131.984-131.968L 468.144,64.16z M 272,170.8
|
||||
L 272,160 l-32,0 l0,10.8 L 32.048,363.6l 20.352,20.352L 256,195.184L 459.6,383.952l 20.352-20.352L 272,170.8z" data-tags="envelope, mail, email, contact" />
|
||||
<glyph unicode="" d="M 316.851,110.131C 253.082,133.12, 232.704,152.525, 232.704,194.074c0,24.934, 19.482,16.794, 28.032,62.464c 3.558,18.944, 20.762,0.307, 24.013,43.546
|
||||
c0,17.229-9.37,21.53-9.37,21.53s 4.787,25.523, 6.63,45.133C 284.314,391.219, 267.725,454.4, 179.2,454.4S 74.086,391.219, 76.39,366.746
|
||||
c 1.869-19.635, 6.656-45.133, 6.656-45.133S 73.651,317.338, 73.651,300.083c 3.302-43.238, 20.506-24.602, 24.013-43.546
|
||||
c 8.576-45.67, 28.058-37.53, 28.058-62.464c0-41.549-20.403-60.954-84.173-83.942c-7.68-2.739-25.984-7.040-41.549-13.773L0-6.4 l 409.6,0
|
||||
c0,0,0,37.862,0,53.888S 380.851,87.066, 316.851,110.131z M 435.2,249.6L 435.2,326.4 l-51.2,0 l0-76.8 l-76.8,0 l0-51.2 l 76.8,0 l0-76.8 l 51.2,0 l0,76.8 l 76.8,0 L 512,249.6 L 435.2,249.6 z" data-tags="user-add" />
|
||||
<glyph unicode="" d="M 256,384C 144.341,384, 47.559,318.979,0,224c 47.559-94.979, 144.341-160, 256-160c 111.657,0, 208.439,65.021, 256,160
|
||||
C 464.442,318.979, 367.657,384, 256,384z M 382.225,299.148c 30.081-19.187, 55.571-44.887, 74.717-75.148
|
||||
c-19.146-30.261-44.637-55.961-74.718-75.149C 344.427,124.743, 300.779,112, 256,112c-44.78,0-88.428,12.743-126.225,36.852
|
||||
C 99.695,168.038, 74.205,193.738, 55.058,224c 19.146,30.262, 44.637,55.962, 74.717,75.148c 1.959,1.25, 3.938,2.461, 5.929,3.65
|
||||
C 130.725,289.134, 128,274.387, 128,259c0-70.692, 57.308-128, 128-128s 128,57.308, 128,128c0,15.387-2.725,30.134-7.704,43.799
|
||||
C 378.286,301.61, 380.265,300.398, 382.225,299.148z M 256,275c0-26.51-21.49-48-48-48s-48,21.49-48,48s 21.49,48, 48,48
|
||||
S 256,301.51, 256,275z" data-tags="eye, views, vision, visit" />
|
||||
<glyph unicode="" d="M 194.586,136.499c-6.861-6.938-6.861-18.15,0-25.062c 6.835-6.938, 17.946-6.938, 24.806,0l 98.048,100.019
|
||||
c 6.861,6.938, 6.861,18.15,0,25.062l-98.048,100.045c-6.861,6.938-17.946,6.938-24.806,0S 187.725,318.438, 194.56,311.526L 274.97,224L 194.586,136.499z" data-tags="arrow-right, right, next" />
|
||||
<glyph unicode="" d="M 343.501,285.414c 6.938,6.861, 18.15,6.861, 25.062,0c 6.938-6.861, 6.938-17.946,0-24.806l-100.019-98.048
|
||||
c-6.938-6.861-18.15-6.861-25.062,0l-100.045,98.048c-6.912,6.861-6.912,17.946,0,24.806c 6.938,6.861, 18.125,6.861, 25.062,0L 256,205.030
|
||||
L 343.501,285.414z" data-tags="arrow-down, down, bottom" />
|
||||
<glyph unicode="" d="M 287.935-32L 192-32 L 192,224 l-64,0 l0,88.225 l 64,0.029l-0.104,51.976C 191.896,436.206, 211.413,480, 296.195,480l 70.588,0 l0-88.242 l-44.115,0
|
||||
c-33.016,0-34.603-12.328-34.603-35.342l-0.131-44.162l 79.345,0 l-9.352-88.225L 288,224L 287.935-32z" data-tags="facebook, social" />
|
||||
<glyph unicode="" d="M 96,224c0,6.090, 0.352,12.098, 1.015,18.011l-92.49,30.052C 1.567,256.493,0,240.431,0,224
|
||||
c0-73.615, 31.083-139.961, 80.827-186.662l 57.142,78.648C 111.907,144.449, 96,182.365, 96,224zM 416,224c0-41.634-15.906-79.551-41.969-108.014l 57.142-78.648C 480.917,84.039, 512,150.385, 512,224
|
||||
c0,16.431-1.566,32.493-4.524,48.063l-92.49-30.052C 415.648,236.097, 416,230.090, 416,224zM 288,380.796c 45.967-9.331, 84.772-38.371, 107.225-77.913l 92.489,30.051C 451.116,410.644, 376.594,466.964, 288,478.012L 288,380.796 zM 116.775,302.884c 22.453,39.542, 61.258,68.582, 107.225,77.913L 224,478.012 C 135.406,466.964, 60.885,410.644, 24.287,332.935
|
||||
L 116.775,302.884zM 322.278,78.336C 302.083,69.132, 279.642,64, 256,64s-46.083,5.132-66.277,14.335l-57.146-78.655
|
||||
C 169.18-20.503, 211.245-32, 256-32s 86.82,11.497, 123.424,31.68L 322.278,78.336z" data-tags="spinner, loading, busy, wait, wheel" />
|
||||
<glyph unicode="" d="M 192,480L0,224L 192,224L 64-32L 512,288L 256,288L 448,480 z" data-tags="lightning, power" />
|
||||
<glyph unicode="" d="M 480,384l-9,0 l-430,0 l-9,0 q-13,0 -22.5,9.25t-9.5,22.5t 9.25,22.75t 22.75,9.5l 160,0 q0,13 9.25,22.5t 22.75,9.5l 64,0 q 13.5,0 22.75-9.5t 9.25-22.5l 160,0 q 13,0 22.5-9.5t 9.5-22.75t-9.5-22.5t-22.5-9.25zM 480,32q0-26.5 -18.75-45.25t-45.25-18.75l-320,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,320 l 448,0 l0-320 zM 160,256
|
||||
q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-192 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,192 zM 288,256q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-192 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,192 zM 416,256q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-192
|
||||
q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,192 z" data-tags="trash" />
|
||||
<glyph unicode="" d="M 448-32l-384,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,48 q0,13 9.25,22.5t 22.5,9.5t 22.75-9.5t 9.5-22.5l0-16 q0-13.5 9.25-22.75t 22.75-9.25l 320,0 q 13,0 22.5,9.25t 9.5,22.75l0,16 q0,13 9.25,22.5t 22.5,9.5t 22.75-9.5t 9.5-22.5l0-48 q0-26.5 -18.75-45.25t-45.25-18.75zM 272.5,103q-7-7 -16.5-7t-16.5,7l-170.5,172.5
|
||||
q-6,6.5 -4.25,9.5t 9.25,3l 118,0 l0,160 q0,13.5 9.25,22.75t 22.75,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-160 l 117.5,0 q 7.5,0 9.5-3t-4-9.5z" data-tags="download" />
|
||||
<glyph unicode="" d="M 448-32l-384,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,48 q0,13 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5l0-16 q0-13.5 9.25-22.75t 22.75-9.25l 320,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,16 q0,13 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5l0-48 q0-26.5 -18.75-45.25t-45.25-18.75zM 437.5,288l-117.5,0 l0-160 q0-13.5 -9.25-22.75t-22.75-9.25
|
||||
l-64,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,160 l-118,0 q-7.5,0 -9.25,3t 4.25,9.5l 170.5,172.5q 7,7 16.5,7t 16.5-7l 170.5-172.5q 6-6.5 4-9.5t-9.5-3z" data-tags="upload" />
|
||||
<glyph unicode="" d="M 480,192l-160,0 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13.5,0 -22.75,9.5t-9.25,22.5l-160,0 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25l 160,0 q0,13.5 9.25,22.75t 22.75,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l 160,0 q 13.5,0 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5zM 288,256l-64,0 l0-64 l 64,0 l0,64
|
||||
zM 480,384l-32,0 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13.5,0 -22.75,9.5t-9.25,22.5l-288,0 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25l 288,0 q0,13.5 9.25,22.75t 22.75,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l 32,0 q 13.5,0 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5zM 416,448l-64,0 l0-64 l 64,0 l0,64 z
|
||||
M 32,64l 32,0 q0,13.5 9.25,22.75t 22.75,9.25l 64,0 q 13,0 22.5-9.25t 9.5-22.75l 288,0 q 13.5,0 22.75-9.25t 9.25-22.5t-9.5-22.75t-22.5-9.5l-288,0 q0-13.5 -9.5-22.75t-22.5-9.25l-64,0 q-13.5,0 -22.75,9.5t-9.25,22.5l-32,0 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25zM 96,0l 64,0 l0,64 l-64,0 l0-64 z" data-tags="settings5" />
|
||||
<glyph unicode="" d="M 512,192l0,32 l-96.645,0 c-2.931,36.343-15.893,69.513-35.835,96.125l 80.972,0 l 35.030,140.12l-31.045,7.761l-28.97-115.88l-87.34,0
|
||||
c-0.446,0.347-0.898,0.687-1.349,1.028c 3.355,9.751, 5.181,20.211, 5.181,31.097C 352,437.131, 309.020,480, 256,480s-96-42.869-96-95.75
|
||||
c0-10.886, 1.825-21.346, 5.181-31.097c-0.45-0.342-0.902-0.681-1.349-1.028l-87.34,0 l-28.97,115.88l-31.045-7.761l 35.030-140.12l 80.972,0
|
||||
C 112.537,293.513, 99.576,260.343, 96.645,224L0,224 l0-32 l 96.685,0 c 1.901-22.832, 7.754-44.406, 16.819-63.875L 51.508,128.125 l-35.030-140.119
|
||||
l 31.045-7.762l 28.97,115.881l 56.177,0 C 162.016,57.109, 206.368,32.25, 256,32.25s 93.983,24.859, 123.331,63.875l 56.177,0 l 28.97-115.881
|
||||
l 31.045,7.762l-35.030,140.119l-61.996,0 c 9.065,19.469, 14.918,41.043, 16.818,63.875L 512,192 z" data-tags="bug, virus, error" />
|
||||
<glyph unicode="" d="M 267.313,468.686C 261.091,474.908, 248.8,480, 240,480L 48,480 c-8.8,0-16-7.2-16-16l0-480 c0-8.8, 7.2-16, 16-16l 384,0 c 8.8,0, 16,7.2, 16,16L 448,272
|
||||
c0,8.8-5.091,21.091-11.313,27.313L 267.313,468.686z M 416,0L 64,0 L 64,448 l 175.579,0 c 1.458-0.24, 4.204-1.377, 5.405-2.239l 168.778-168.777
|
||||
c 0.861-1.201, 1.998-3.947, 2.238-5.405L 416,0 zM 432,480l-96,0 c-8.8,0-10.909-5.091-4.687-11.313l 105.373-105.373C 442.909,357.091, 448,359.2, 448,368L 448,464 C 448,472.8, 440.8,480, 432,480
|
||||
z" data-tags="libreoffice, file" />
|
||||
<glyph unicode="" d="M 345.11,244.159c-30.334,14.326-68.986,17.21-97.417-3.024c 34.57,3.302, 72.479-2.419, 97.553-28.562
|
||||
c 24,27.54, 62.057,32.703, 96.479,29.866C 412.981,261.511, 375.115,258.951, 345.11,244.159zM 332.824,177.125c-34.189,0.789-67.217-11.586-95.55-30.052c-53.588,22.794-121.368,18.562-167.001-19.491
|
||||
c 13.165,0.467, 26.003,3.723, 39.028,5.396c 47.591,4.744, 98.294-7.071, 134.256-39.912c 14.886,21.771, 35.822,39.121, 59.826,49.961
|
||||
c 31.537,15.26, 67.080,16.842, 101.41,17.26C 383.949,174.611, 357.485,177.264, 332.824,177.125zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" data-tags="file-openoffice, file, format, openoffice, open office" />
|
||||
<glyph unicode="" d="M 229.665,150.084L 144.338,2.25L 426.665,2.25L 512,150.084 zM 487.806,192L 341.339,445.75L 170.665,445.75L 317.143,192 zM 146.418,403.743L0,150.084L 85.338,2.25L 231.754,255.912 z" data-tags="google-drive, drive" />
|
||||
<glyph unicode="" d="M 480-32l-384,0 q-13,0 -22.5,9.25t-9.5,22.75l0,180 l 139.5-139q 9-9.5 23-8.5l 61.5,0 q 13,0 22.5,9.25t 9.5,22.75l0,63.5 q0,11.5 -9.5,20.5l-246.5,246.5l0,52.5 q0,13.5 9.5,22.75t 22.5,9.25l 224,0 l0-176 q0-6.5 4.5-11.25t 11.5-4.75l 175.5,0 l0-0.5 l0-287 q0-13.5 -9.25-22.75t-22.25-9.25zM 352,480q 13,0 22-9l 128-128.5
|
||||
q 9.5-9.5 9.5-23l-159.5,0 l0,160.5 zM 39.5,258l-34,33.5q-5.5,6 -5.5,14t 5.5,13.5l 27.5,27.5q 5.5,5.5 13.75,5.5t 13.75-5.5l 33.5-33.5zM 288,112.5l0-32 q0-7 -4.75-11.5t-11.25-4.5l-32,0 q-7,0 -13,5.5l-162,162l 55,55l 162-162q 6-6 6-12.5z" data-tags="edit2" />
|
||||
<glyph unicode="" d="M 480,0l-32,0 l0,128 l 32,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 q0-13.5 -9.25-22.75t-22.75-9.25zM 480,160l-32,0 l0,128 l 32,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 q0-13.5 -9.25-22.75t-22.75-9.25zM 480,320l-32,0 l0,128 l 32,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 q0-13.5 -9.25-22.75t-22.75-9.25z
|
||||
M 416,0q0-13 -9.25-22.5t-22.75-9.5l-352,0 q-13,0 -22.5,9.5t-9.5,22.5l0,448 q0,13.5 9.5,22.75t 22.5,9.25l 352,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-448 zM 240,173l0,9 q 48,19.5 48,106q0,31.5 -22.25,47.75t-57.5,16.25t-57.75-16.25t-22.5-47.75q0-84 48-105.5l0-9.5 q-34.5-6 -57-22.5t-23-37.5q0-6 10.75-9.75
|
||||
t 31.5-5.25t 34.25-1.75t 35.5-0.25t 35.5,0.25t 34.25,1.75t 31.5,5.25t 10.75,9.75q-0.5,21 -23,37.5t-57,22.5z" data-tags="phonebook" />
|
||||
<glyph unicode="" d="M 448,416l0-416 L 112,0 c-26.511,0-48,21.49-48,48c0,26.509, 21.489,48, 48,48l 304,0 L 416,480 L 96,480 C 60.801,480, 32,451.2, 32,416l0-384
|
||||
c0-35.2, 28.801-64, 64-64l 384,0 L 480,416 L 448,416 zM 128,64L 416,64L 416,32L 128,32z" data-tags="book, reading" />
|
||||
<glyph unicode="" d="M 256,480 C 116.626,480 3.271,368.619 0.076,230.013 C 3.036,350.945 94.992,448 208,448 C 322.875,448 416,347.712 416,224 C 416,197.49 437.49,176 464,176 C 490.51,176 512,197.49 512,224 C 512,365.385 397.385,480 256,480 ZM 256-32 C 395.374-32 508.729,79.381 511.924,217.987 C 508.964,97.055 417.008,0 304,0 C 189.125,0 96,100.288 96,224 C 96,250.51 74.51,272 48,272 C 21.49,272 0,250.51 0,224 C 0,82.615 114.615-32 256-32 Z" data-tags="spinner, loading, busy, wait, wheel" />
|
||||
<glyph unicode="" d="M 242.286-4.571q0,4.571 -4.571,4.571q-16.857,0 -29,12.143t-12.143,29q0,4.571 -4.571,4.571t-4.571-4.571q0-20.857 14.714-35.571t 35.571-14.714q 4.571,0 4.571,4.571zM 52.286,77.714l 370.857,0 q-46.857,51.714 -70.429,117.571t-23.571,138.429q0,73.143 -91.429,73.143t-91.429-73.143q0-72.571 -23.571-138.429t-70.429-117.571zM 475.429,77.714q0-14.857 -10.857-25.714t-25.714-10.857 l-128,0 q0-30.286 -21.429-51.714t-51.714-21.429t-51.714,21.429t-21.429,51.714l-128,0 q-14.857,0 -25.714,10.857t-10.857,25.714q 54.286,46 82,113.571t 27.714,142.429q0,47.143 27.429,74.857t 75.429,33.429q-2.286,5.143 -2.286,10.571q0,11.429 8,19.429t 19.429,8t 19.429-8t 8-19.429q0-5.429 -2.286-10.571q 48-5.714 75.429-33.429t 27.429-74.857q0-74.857 27.714-142.429t 82-113.571z" horiz-adv-x="475.429" data-tags="bell, alarm, notification" />
|
||||
<glyph unicode="" d="M 488.791,382.769c-16.992,4.854-34.705-4.985-39.56-21.978L 446.72,352L 148.249,352 l-4.496,35.969
|
||||
C 141.751,403.983, 128.138,416, 112,416L 32,416 C 14.327,416,0,401.673,0,384s 14.327-32, 32-32l 51.751,0 l 28.496-227.969
|
||||
C 114.249,108.018, 127.862,96, 144,96l 272,0 c 14.287,0, 26.844,9.472, 30.769,23.209l 64,224
|
||||
C 515.624,360.202, 505.784,377.914, 488.791,382.769z M 256,224l0,32 l 63.998,0 l0-32 L 256,224 z M 319.998,192l0-32 L 256,160 l0,32 L 319.998,192 z M 256,288l0,32
|
||||
l 63.998,0 l0-32 L 256,288 z M 152.249,320L 224,320 l0-32 l-67.751,0 L 152.249,320z M 160.249,256L 224,256 l0-32 l-59.751,0 L 160.249,256z M 168.249,192L 224,192 l0-32 l-51.751,0
|
||||
L 168.249,192z M 391.862,160l-39.864,0 l0,32 l 49.007,0 L 391.862,160z M 410.148,224l-58.15,0 l0,32 l 67.293,0 L 410.148,224z M 428.434,288l-76.436,0
|
||||
l0,32 l 85.579,0 L 428.434,288zM 128,16A48,48 2700 1 1 224,16A48,48 2700 1 1 128,16zM 320,16A48,48 2700 1 1 416,16A48,48 2700 1 1 320,16z" data-tags="cart, ecommerce, shopping, products, purchase, buy, store" />
|
||||
<glyph unicode="" d="M 512,175.953l0,96.094 l-73.387,12.231c-2.979,9.066-6.611,17.834-10.847,26.25l 43.227,60.517l-67.948,67.949l-60.413-43.152
|
||||
c-8.455,4.277-17.269,7.944-26.384,10.951L 304.047,480l-96.094,0 l-12.201-73.208c-9.115-3.007-17.929-6.674-26.383-10.951
|
||||
l-60.414,43.152l-67.949-67.949l 43.227-60.518c-4.235-8.415-7.867-17.183-10.846-26.249L0,272.047l0-96.094 l 73.559-12.26
|
||||
c 2.98-8.984, 6.605-17.674, 10.821-26.015l-43.374-60.724l 67.949-67.948l 60.827,43.447c 8.301-4.175, 16.945-7.764, 25.882-10.717
|
||||
L 207.953-32l 96.094,0 l 12.289,73.737c 8.937,2.953, 17.581,6.542, 25.883,10.716l 60.826-43.446l 67.948,67.948l-43.372,60.723
|
||||
c 4.216,8.341, 7.839,17.031, 10.82,26.016L 512,175.953z M 256,160c-35.346,0-64,28.653-64,64c0,35.346, 28.654,64, 64,64
|
||||
c 35.347,0, 64-28.654, 64-64C 320,188.653, 291.347,160, 256,160z" data-tags="cog, preferences, settings, gear, generate, control, options" />
|
||||
<glyph unicode="" d="M 448,0l-384,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,256 q0,13 9.25,22.5t 22.75,9.5l 240,0 l 23,42.5q 3.5,9 14,15.25t 22,6.25l 120,0 q 12,0 22.5-6.25t 14-15.25l 24.5-42.5l0-288 q0-26.5 -18.75-45.25t-45.25-18.75zM 448,320q0,13 -9.5,22.5t-22.5,9.5l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.75t-14-22.5t-34-9.25l-192,0
|
||||
q-6.5,0 -11.25-4.75t-4.75-11.25l0-192 q0-6.5 4.75-11.25t 11.25-4.75l 352,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,240 zM 23,426q 3.5,9.5 14,15.75t 22,6.25l 120,0 q 12,0 22.5-6.25t 14.5-15.75l 24-42l-240,0 z" data-tags="legacyfilemanager" />
|
||||
<glyph unicode="" d="M 512.5,248.5l-101-112l 14.5-148.5q-1.5-10 -9.5-15.75t-18-3.75l-139.5,59.5l-139.5-59.5q-10-2 -18,4t-9.5,15.5l 14.5,148.5l-101,112q-4.5,8.5 -1.25,18t 11.75,14l 149,32l 77,129q 7,7 17,7t 17-7l 77-129l 149-32q 8.5-4.5 11.75-14t-1.25-18z" data-tags="favorite" />
|
||||
<glyph unicode="" d="M 512.5,248.5l-101-112l 14.5-148.5q-1.5-10 -9.5-15.75t-18-3.75l-139.5,59.5l-139.5-59.5q-10-2 -18,3.75t-9.5,15.75l 14.5,148.5l-101,112q-4.5,8.5 -1.25,18t 11.75,14l 149,32l 77,129q 7,7 17,7t 17-7l 77-129l 149-32q 8.5-4.5 11.75-14t-1.25-18zM 425.5,251l-102,22.5l-53,90q-5,5 -11.75,5
|
||||
t-11.75-5l-53-90l-102.5-22.5q-6-3.5 -8-10t 1-12.5l 70.5-80l-8-100q 1-7.5 5.25-12.5t 10.25-4l 96,42l 96-42q 6.5-1 10.75,4t 5.25,12.5l-8,100.5l 70.5,79.5q 3,6 0.75,12.5t-8.25,10z" data-tags="favorite2" />
|
||||
<glyph unicode="" d="M 402.5,118l-146.5-150l-147,150q-59.5,61 -84.25,115.5t-24.75,118.5q0,53 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5q0,53 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5q0-63.5 -24.75-118.25t-84.75-115.75z" data-tags="loved" />
|
||||
<glyph unicode="" d="M 402.5,118l-146.5-150l-147,150q-59.5,61 -84.25,115.5t-24.75,118.5q0,53 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5q0,53 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5q0-63.5 -24.75-118.25t-84.75-115.75zM 448,352q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25l0-0.5 q0-8.5 -20-20t-44-11.5
|
||||
q-25,0 -44.5,11t-19.5,21l0,0 q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25l0-0.5 q0-53 18-95.25t 63.5-95.25l 110.5-113l 110,113q 46,53.5 64,95.5t 18,95.5l0,0 z" data-tags="love" />
|
||||
<glyph unicode="" d="M 480-32l-191.5,0 q-13.5,0 -22.75,9.25t-9.25,22.75l 67.5,67.5l-74.5,72.5q-9,9.5 -9,22.75t 9,22.75l 46,45.5q 9,9 22.5,9t 23-9l 73.5-72.5l 65.5,65q 13.5,0 22.75-9.25t 9.25-22.75l0-191.5 q0-13.5 -9.25-22.75t-22.75-9.25zM 217,217q-9.5-9.5 -22.75-9.5t-22.75,9.5l-74,72.5l-65.5-65.5
|
||||
q-13,0 -22.5,9.5t-9.5,22.5l0,192 q0,13.5 9.5,22.75t 22.5,9.25l 192,0 q 13.5,0 22.75-9.25t 9.25-22.75l-67.5-67.5l 74.5-73q 9.5-9 9.5-22.5t-9.5-22.5z" data-tags="scaleup" />
|
||||
<glyph unicode="" d="M 502.5,69.5q 9.5-9.5 9.5-23t-9.5-23l-45.5-46q-9.5-9.5 -22.75-9.5t-22.75,9.5l-57,57l-66.5-66.5q-13.5,0 -22.75,9.5t-9.25,22.5l0,192.5 q0,13 9.25,22.5t 22.75,9.5l 192,0 q 13,0 22.5-9.5t 9.5-22.5l-66.5-66.5zM 224,224.5l-191.5,0 q-13.5,0 -22.75,9.25t-9.25,22.75l 66,66l-57,56.5q-9.5,9.5 -9.5,23t 9.5,23
|
||||
l 45.5,46q 9.5,9.5 23,9.5t 23-9.5l 57-57l 66,66q 13.5,0 22.75-9.25t 9.25-22.75l0-191.5 q0-13.5 -9.5-22.75t-22.5-9.25z" data-tags="scaledown" />
|
||||
<glyph unicode="" d="M 448,96l-256,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,256 q0,26.5 18.75,45.25t 45.25,18.75l 256,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-256 q0-26.5 -18.75-45.25t-45.25-18.75zM 448,384q0,13.5 -9.25,22.75t-22.75,9.25l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 116,0 l-139.5-139.5
|
||||
q-9-9 -9-21.75t 9-21.75t 21.75-9t 21.75,9l 140,140l0-117 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,192 zM 416-0.25q0-13.25 -9.25-22.5t-22.75-9.25l-320,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,320 q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75l0-288 q0-13.5 9.25-22.75
|
||||
t 22.75-9.25l 288,0 q 13,0 22.5-9.5t 9.5-22.75z" data-tags="opennewwindow" />
|
||||
<glyph unicode="" d="M 438.857,406.857l0-128 q0-7.429 -5.429-12.857t-12.857-5.429l-128,0 q-12,0 -16.857,11.429q-4.857,11.143 4,19.714l 39.429,39.429q-42.286,39.143 -99.714,39.143q-29.714,0 -56.714-11.571t-46.714-31.286t-31.286-46.714t-11.571-56.714t 11.571-56.714t 31.286-46.714t 46.714-31.286t 56.714-11.571q 48.286,0 86.857,28.429t 52.857,74.714q 2,6.571 8.571,6.571l 56.857,0 q 4.571,0 7.143-3.429q 2.857-3.714 2-7.714q-11.143-50 -42.143-89.143t-76-60.857t-96.143-21.714q-44.571,0 -85.143,17.429t-70,46.857t-46.857,70t-17.429,85.143t 17.429,85.143t 46.857,70t 70,46.857t 85.143,17.429q 42,0 81.286-15.857t 69.857-44.714l 37.143,36.857q 8.286,8.857 20,4q 11.143-4.857 11.143-16.857z" horiz-adv-x="438.857" data-tags="repeat, loop, reload, refresh, synchronize" />
|
||||
<glyph unicode="" d="M 438.857,96l0-36.571 q0-7.429 -5.429-12.857t-12.857-5.429l-402.286,0 q-7.429,0 -12.857,5.429t-5.429,12.857l0,36.571 q0,7.429 5.429,12.857t 12.857,5.429l 402.286,0 q 7.429,0 12.857-5.429t 5.429-12.857zM 438.857,242.286l0-36.571 q0-7.429 -5.429-12.857t-12.857-5.429l-402.286,0 q-7.429,0 -12.857,5.429t-5.429,12.857l0,36.571 q0,7.429 5.429,12.857t 12.857,5.429l 402.286,0 q 7.429,0 12.857-5.429t 5.429-12.857zM 438.857,388.571l0-36.571 q0-7.429 -5.429-12.857 t-12.857-5.429l-402.286,0 q-7.429,0 -12.857,5.429t-5.429,12.857l0,36.571 q0,7.429 5.429,12.857t 12.857,5.429l 402.286,0 q 7.429,0 12.857-5.429t 5.429-12.857z" horiz-adv-x="438.857" data-tags="reorder, list, menu" />
|
||||
<glyph unicode="" d="M 512,96q0-53 -37.5-90.5t-90.5-37.5q-51.5,0 -88.5,35.5q-20.5-3.5 -39.5-3.5q-45.5,0 -87,17.75t-71.5,47.75t-47.75,71.5t-17.75,87q0,18.5 3.5,39.5q-35.5,37 -35.5,88.5q0,53 37.5,90.5t 90.5,37.5q 51.5,0 88.5-35.5q 20.5,3.5 39.5,3.5q 45.5,0 87-17.75t 71.5-47.75t 47.75-71.5t 17.75-87q0-19 -3.5-39.5q 35.5-37 35.5-88.5
|
||||
zM 256,320q 26.5,0 45.25-9.25t 18.75-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.5q0,40 -37.5,68t-90.5,28t-90.5-28t-37.5-68t 37.5-68t 90.5-28q 26.5,0 45.25-9.25t 18.75-22.75t-18.75-22.75t-45.25-9.25t-45.25,9.5t-18.75,22.75t-9.25,22.5t-22.5,9.25t-22.75-9.25t-9.5-22.75q0-40 37.5-68t 90.5-28
|
||||
t 90.5,28t 37.5,68t-37.5,68t-90.5,28q-26.5,0 -45.25,9.5t-18.75,22.75t 18.75,22.5t 45.25,9.25z" data-tags="skype" />
|
||||
<glyph unicode="" d="M 156.39,456.909L 10.24,365.875l 100.122-83.942L 256,376.525L 156.39,456.909z M 344.371,70.554c-2.611,0-5.197,0.896-7.296,2.662L 256,140.442
|
||||
l-81.075-67.251c-2.099-1.741-4.71-2.662-7.296-2.662c-2.176,0-4.352,0.589-6.246,1.843l-60.058,39.296l0-23.194 L 256-8.909l 154.675,97.408
|
||||
l0,23.194 l-60.058-39.296C 348.723,71.142, 346.547,70.554, 344.371,70.554z M 501.76,365.875l-146.15,91.034L 256,376.525l 145.613-94.566L 501.76,365.875z
|
||||
M 256,190.95l 90.291-74.957l 144.435,94.413l-89.088,71.526L 256,190.95z M 165.709,115.994L 256,190.95L 110.387,281.958l-89.088-71.552L 165.709,115.994z" data-tags="dropbox, social" />
|
||||
<glyph unicode=" " horiz-adv-x="256" />
|
||||
</font></defs></svg>
|
||||
|
After Width: | Height: | Size: 52 KiB |
BIN
rainloop/v/1.2.5.406/static/css/fonts/icomoon.eot
Normal file
308
rainloop/v/1.2.5.406/static/css/fonts/icomoon.svg
Normal file
|
|
@ -0,0 +1,308 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>
|
||||
This is a custom SVG font generated by IcoMoon.
|
||||
<iconset grid="16"></iconset>
|
||||
</metadata>
|
||||
<defs>
|
||||
<font id="icomoon" horiz-adv-x="512" >
|
||||
<font-face units-per-em="512" ascent="480" descent="-32" />
|
||||
<missing-glyph horiz-adv-x="512" />
|
||||
<glyph class="hidden" unicode="" d="M0,480L 512 -32L0 -32 z" horiz-adv-x="0" />
|
||||
<glyph unicode="" d="M 478.566,412.544C 469.786,409.446, 35.149,256.307, 26.598,253.286c-7.27-2.56-8.909-8.832-0.256-12.262
|
||||
c 10.266-4.122, 97.178-38.938, 97.178-38.938L 123.494,202.086 l 57.626-23.091c0,0, 277.427,203.75, 281.19,206.49c 3.763,2.765, 8.141-2.432, 5.402-5.402
|
||||
c-2.739-2.995-201.498-217.958-201.498-217.958c-0.026,0-0.026,0-0.026,0l-11.571-12.902l 15.334-8.243l0,0c0,0, 119.040-64.077, 127.514-68.659
|
||||
c 7.424-3.994, 17.101-0.666, 19.251,8.576c 2.534,10.906, 72.832,313.907, 74.394,320.614C 493.158,410.291, 487.373,415.642, 478.566,412.544z M 180.608,40.653
|
||||
c0-6.323, 3.558-8.064, 8.474-3.61c 6.4,5.837, 72.934,65.536, 72.934,65.536l-81.408,42.138L 180.608,40.653 z" />
|
||||
<glyph unicode="" d="M 486.4,49.92c0,0-51.2,249.165-275.84,249.165L 210.56,398.080 L 25.6,232.832l 184.96-171.29l0,111.565 C 332.493,173.107, 422.835,162.304, 486.4,49.92z" />
|
||||
<glyph unicode="" d="M 184.96,329.472L 184.96,398.080 L0,232.832l 184.96-171.29l0,71.142 L 76.8,232.832L 184.96,329.472z M 312.96,299.11L 312.96,398.080 L 128,232.832l 184.96-171.29l0,111.565
|
||||
c 84.301,0, 135.475-10.803, 199.040-123.187C 512,49.92, 502.605,299.11, 312.96,299.11z" />
|
||||
<glyph unicode="" d="M 301.44,173.107l0-111.539 L 486.4,232.832L 301.44,398.080l0-98.97 C 76.8,299.11, 25.6,49.92, 25.6,49.92C 89.165,162.304, 179.507,173.107, 301.44,173.107z" />
|
||||
<glyph unicode="" d="M 449.152,84.019l-96.742,96.742c 14.592,23.987, 22.989,52.096, 22.989,82.227c0,87.45-75.802,163.251-163.277,163.251
|
||||
C 124.672,426.24, 53.76,355.328, 53.76,267.878c0-87.475, 75.776-163.277, 163.251-163.277c 29.082,0, 56.32,7.885, 79.744,21.581l 97.254-97.28
|
||||
c 9.549-9.523, 24.96-9.523, 34.458,0l 24.141,24.115C 462.106,62.541, 458.65,74.522, 449.152,84.019z M 102.502,267.878
|
||||
c0,60.544, 49.075,109.645, 109.619,109.645c 60.57,0, 114.534-53.965, 114.534-114.534s-49.075-109.645-109.645-109.645S 102.502,207.309, 102.502,267.878z" />
|
||||
<glyph unicode="" d="M 179.2,249.6L 25.6,249.6 c-14.131,0-25.6-11.469-25.6-25.6s 11.469-25.6, 25.6-25.6l 153.6,0 c 14.131,0, 25.6,11.469, 25.6,25.6S 193.331,249.6, 179.2,249.6z M 179.2,147.2L 25.6,147.2 c-14.131,0-25.6-11.443-25.6-25.6s 11.469-25.6, 25.6-25.6l 153.6,0
|
||||
c 14.131,0, 25.6,11.443, 25.6,25.6S 193.331,147.2, 179.2,147.2z M 496.64,249.6L 409.6,249.6 L 409.6,336.64 C 409.6,350.771, 398.157,352, 384,352s-25.6-1.229-25.6-15.36L 358.4,249.6 l-84.48,0 C 259.763,249.6, 258.56,238.131, 258.56,224
|
||||
s 1.229-25.6, 15.386-25.6L 358.4,198.4 l0-87.040 c0-14.131, 11.443-15.36, 25.6-15.36s 25.6,1.229, 25.6,15.36L 409.6,198.4 l 87.040,0 c 14.131,0, 15.36,11.469, 15.36,25.6S 510.771,249.6, 496.64,249.6z M 179.2,352L 25.6,352
|
||||
C 11.469,352,0,340.531,0,326.4s 11.469-25.6, 25.6-25.6l 153.6,0 c 14.131,0, 25.6,11.469, 25.6,25.6S 193.331,352, 179.2,352z" />
|
||||
<glyph unicode="" d="M 318.259,480c 34.304,0, 51.456-23.398, 51.456-50.125c0-33.382-29.798-64.282-68.557-64.282c-32.512,0-51.456,19.2-50.56,50.918
|
||||
C 250.598,443.264, 273.126,480, 318.259,480z M 212.71-32c-27.085,0-46.925,16.691-27.981,90.189l 31.078,130.33c 5.402,20.864, 6.298,29.235,0,29.235
|
||||
c-8.141,0-43.264-14.413-64.051-28.621L 138.24,211.686c 65.869,55.962, 141.619,88.755, 174.106,88.755c 27.059,0, 31.539-32.563, 18.048-82.662l-35.61-137.011
|
||||
c-6.298-24.218-3.61-32.563, 2.688-32.563c 8.141,0, 34.739,10.061, 60.902,30.925l 15.36-20.864C 309.709-6.912, 239.77-32, 212.71-32z" />
|
||||
<glyph unicode="" d="M 153.626,341.76L 153.6,106.24L 358.4,224 z" />
|
||||
<glyph unicode="" d="M 373.76,326.374L 138.24,326.4L 256,121.6 z" />
|
||||
<glyph unicode="" d="M 76.8,280.32c-31.104,0-56.32-25.216-56.32-56.32c0-31.104, 25.216-56.32, 56.32-56.32s 56.32,25.216, 56.32,56.32C 133.12,255.104, 107.904,280.32, 76.8,280.32z M 256,280.32
|
||||
c-31.104,0-56.32-25.216-56.32-56.32c0-31.104, 25.216-56.32, 56.32-56.32s 56.294,25.216, 56.294,56.32C 312.294,255.104, 287.104,280.32, 256,280.32z M 435.2,280.32
|
||||
c-31.104,0-56.32-25.216-56.32-56.32c0-31.104, 25.216-56.32, 56.32-56.32s 56.32,25.216, 56.32,56.32C 491.52,255.104, 466.304,280.32, 435.2,280.32z" />
|
||||
<glyph unicode="" d="M 432,480 C 476.182,480 512,444.183 512,400 C 512,381.99 506.045,365.371 496,352 L 464,320 L 352,432 L 384,464 C 397.371,474.045 413.989,480 432,480 ZM 32,112L0-32l 144,32l 296,296L 328,408L 32,112z M 357.789,298.211l-224-224l-27.578,27.578l 224,224L 357.789,298.211z" />
|
||||
<glyph unicode="" d="M0,416l0-416 l 512,0 L 512,416 L0,416 z M 480,32L 32,32 L 32,384 l 448,0 L 480,32 zM 352,304A48,48 2700 1 1 448,304A48,48 2700 1 1 352,304zM 448,64 L 64,64 L 160,320 L 288,160 L 352,208 Z" />
|
||||
<glyph unicode="" d="M 160,384 L 512,480 L 512,448 L 512,384 L 512,112 C 512,67.817 461.855,32 400,32 C 338.145,32 288,67.817 288,112 C 288,156.183 338.145,192 400,192 C 417.179,192 433.451,189.234 448,184.297 L 448,349.091 L 224,288 L 224,48 C 224,3.817 173.856-32 112-32 C 50.144-32 0,3.817 0,48 C 0,92.183 50.144,128 112,128 C 129.179,128 145.451,125.234 160,120.297 L 160,288 L 160,384 Z" />
|
||||
<glyph unicode="" d="M0,416l0-384 l 512,0 L 512,416 L0,416 z M 96,64L 32,64 l0,64 l 64,0 L 96,64 z M 96,192L 32,192 l0,64 l 64,0 L 96,192 z M 96,320L 32,320 L 32,384 l 64,0 L 96,320 z M 384,64L 128,64 L 128,384 l 256,0 L 384,64 z
|
||||
M 480,64l-64,0 l0,64 l 64,0 L 480,64 z M 480,192l-64,0 l0,64 l 64,0 L 480,192 z M 480,320l-64,0 L 416,384 l 64,0 L 480,320 zM 192,320L 192,128L 320,224 z" />
|
||||
<glyph unicode="" d="M 128,448L 384,448L 384,384L 128,384zM 480,352L 32,352 C 14.4,352,0,337.6,0,320l0-160 c0-17.6, 14.398-32, 32-32l 96,0 l0-128 l 256,0 L 384,128 l 96,0 c 17.6,0, 32,14.4, 32,32L 512,320
|
||||
C 512,337.6, 497.6,352, 480,352z M 352,32L 160,32 L 160,192 l 192,0 L 352,32 z M 487.2,304c0-12.813-10.387-23.2-23.199-23.2
|
||||
c-12.813,0-23.201,10.387-23.201,23.2s 10.388,23.2, 23.201,23.2C 476.814,327.2, 487.2,316.813, 487.2,304z" />
|
||||
<glyph unicode="" d="M 160,288L 224,288L 224,224L 160,224zM 256,288L 320,288L 320,224L 256,224zM 352,288L 416,288L 416,224L 352,224zM 64,96L 128,96L 128,32L 64,32zM 160,96L 224,96L 224,32L 160,32zM 256,96L 320,96L 320,32L 256,32zM 160,192L 224,192L 224,128L 160,128zM 256,192L 320,192L 320,128L 256,128zM 352,192L 416,192L 416,128L 352,128zM 64,192L 128,192L 128,128L 64,128zM 416,480l0-32 l-64,0 L 352,480 L 128,480 l0-32 L 64,448 L 64,480 L0,480 l0-512 l 480,0 L 480,480 L 416,480 z M 448,0L 32,0 L 32,352 l 416,0 L 448,0 z" />
|
||||
<glyph unicode="" d="M 352,480c-88.365,0-160-71.634-160-160c0-10.013, 0.929-19.808, 2.688-29.312L0,96l0-96 c0-17.673, 14.327-32, 32-32
|
||||
l 32,0 l0,32 l 64,0 l0,64 l 64,0 l0,64 l 64,0 l 41.521,41.521C 314.526,163.363, 332.869,160, 352,160c 88.365,0, 160,71.634, 160,160S 440.365,480, 352,480z
|
||||
M 399.937,319.937c-26.51,0-48,21.49-48,48s 21.49,48, 48,48s 48-21.49, 48-48S 426.447,319.937, 399.937,319.937z" />
|
||||
<glyph unicode="" d="M 466.895,174.875c-26.863,46.527-10.708,106.152, 36.076,133.244l-50.313,87.146c-14.375-8.427-31.088-13.259-48.923-13.259
|
||||
c-53.768,0-97.354,43.873-97.354,97.995L 205.752,480.001 c 0.133-16.705-4.037-33.641-12.979-49.126
|
||||
c-26.862-46.528-86.578-62.351-133.431-35.379L 9.030,308.35c 14.485-8.236, 27.025-20.294, 35.943-35.739
|
||||
c 26.819-46.454, 10.756-105.96-35.854-133.112l 50.313-87.146c 14.325,8.348, 30.958,13.127, 48.7,13.127
|
||||
c 53.598,0, 97.072-43.596, 97.35-97.479l 100.627,0 c-0.043,16.537, 4.136,33.285, 12.983,48.609
|
||||
c 26.818,46.453, 86.388,62.297, 133.207,35.506l 50.313,87.145C 488.222,147.494, 475.766,159.51, 466.895,174.875z M 256,120.334
|
||||
c-57.254,0-103.668,46.412-103.668,103.667c0,57.254, 46.413,103.667, 103.668,103.667c 57.254,0, 103.666-46.413, 103.666-103.667
|
||||
C 359.665,166.746, 313.254,120.334, 256,120.334z" />
|
||||
<glyph unicode="" d="M 160.504-32 C 126.381,39.004 144.553,79.689 170.779,118.022 C 199.499,160 206.901,201.555 206.901,201.555 C 206.901,201.555 229.478,172.205 220.447,126.301 C 260.333,170.701 267.859,241.441 261.838,268.533 C 351.995,205.527 390.526,69.105 338.599-32 C 614.785,124.266 407.298,358.086 371.176,384.425 C 383.217,358.087 385.5,313.5 361.176,291.862 C 320,448 218.19,480 218.19,480 C 230.231,399.478 174.542,311.428 120.842,245.635 C 118.955,277.743 116.951,299.899 100.067,330.625 C 96.277,272.297 51.701,224.751 39.63,166.311 C 23.279,87.168 51.878,29.221 160.504-32 Z" />
|
||||
<glyph unicode="" d="M 352,448L 192,288L 96,288 L0,160c0,0, 101.708,28.326, 161.033,15.042L0-32l 210.951,164.072C 240.37,64.745, 192-32, 192-32l 128,96
|
||||
l0,96 l 160,160L 512,480L 352,448z" />
|
||||
<glyph unicode="" d="M0,480l0-512 l 512,0 L 512,480 L0,480 z M 480,0L 32,0 L 32,448 l 448,0 L 480,0 z M 384,368L 224,208l-96,96l-64-64l 160-160l 224,224L 384,368z" />
|
||||
<glyph unicode="" d="M0,480l0-512 l 512,0 L 512,480 L0,480 z M 480,0L 32,0 L 32,448 l 448,0 L 480,0 z" />
|
||||
<glyph unicode="" d="M0,480l0-512 l 512,0 L 512,480 L0,480 z M 480,0L 32,0 L 32,448 l 448,0 L 480,0 zM 128,352L 384,352L 384,96L 128,96z" />
|
||||
<glyph unicode="" d="M 256,480C 114.615,480,0,365.385,0,224s 114.615-256, 256-256s 256,114.615, 256,256S 397.385,480, 256,480z M 256,32
|
||||
c-106.039,0-192,85.961-192,192c0,106.039, 85.961,192, 192,192c 106.039,0, 192-85.961, 192-192C 448,117.961, 362.039,32, 256,32zM 160,224A96,96 12780 1 1 352,224A96,96 12780 1 1 160,224z" />
|
||||
<glyph unicode="" d="M 256,480C 114.615,480,0,365.385,0,224s 114.615-256, 256-256s 256,114.615, 256,256S 397.385,480, 256,480z M 256,32
|
||||
c-106.039,0-192,85.961-192,192c0,106.039, 85.961,192, 192,192c 106.039,0, 192-85.961, 192-192C 448,117.961, 362.039,32, 256,32z" />
|
||||
<glyph unicode="" d="M 394.767,448c0,0-100.478,0-133.97,0c-60.061,0-116.585-45.503-116.585-98.211c0-53.863, 40.941-97.333, 102.044-97.333
|
||||
c 4.249,0, 8.378,0.085, 12.42,0.376c-3.964-7.593-6.8-16.144-6.8-25.021c0-14.969, 8.052-27.105, 18.234-37.012
|
||||
c-7.693,0-15.121-0.224-23.226-0.224c-74.391,0.001-131.65-47.38-131.65-96.511c0-48.389, 62.771-78.656, 137.167-78.656
|
||||
c 84.812,0, 131.653,48.122, 131.653,96.514c0,38.801-11.448,62.036-46.843,87.067c-12.108,8.571-35.266,29.418-35.266,41.672
|
||||
c0,14.36, 4.098,21.434, 25.714,38.323c 22.156,17.312, 37.837,41.651, 37.837,69.958c0,33.703-15.011,66.549-43.187,77.386l 42.478,0
|
||||
L 394.767,448z M 347.974,120.271c 1.063-4.486, 1.642-9.104, 1.642-13.814c0-39.1-25.195-69.655-97.487-69.655
|
||||
c-51.421,0-88.558,32.552-88.558,71.65c0,38.321, 46.063,70.222, 97.482,69.666c 12-0.127, 23.184-2.058, 33.334-5.345
|
||||
C 322.301,153.359, 342.325,142.393, 347.974,120.271z M 265.643,266.112c-34.519,1.032-67.318,38.613-73.276,83.93
|
||||
c-5.958,45.333, 17.185,80.021, 51.694,78.995C 278.565,428, 311.379,391.63, 317.34,346.308
|
||||
C 323.293,300.978, 300.145,265.079, 265.643,266.112z" />
|
||||
<glyph unicode="" d="M 0.403,45.168c-0.122,1.266-0.226,2.535-0.292,3.815C 0.176,47.703, 0.281,46.434, 0.403,45.168zM 117.954,197.426c 46.005-1.369, 76.867,46.349, 68.931,106.599c-7.947,60.24-51.698,108.584-97.704,109.961
|
||||
c-46.013,1.365-76.87-44.741-68.926-105C 28.196,248.752, 71.931,198.799, 117.954,197.426zM 512,352L 512,394.655 C 512,441.595, 473.609,480, 426.671,480L 85.343,480 C 39.205,480, 1.337,442.884, 0.061,397.037
|
||||
c 29.181,25.693, 69.662,47.158, 111.437,47.158c 44.652,0, 178.622,0, 178.622,0l-39.974-33.809l-56.634,0
|
||||
c 37.565-14.402, 57.578-58.062, 57.578-102.861c0-37.624-20.905-69.977-50.444-92.984c-28.822-22.451-34.286-31.854-34.286-50.939
|
||||
c0-16.289, 30.873-44, 47.016-55.394c 47.191-33.269, 62.458-64.156, 62.458-115.728c0-8.214-1.021-16.415-3.033-24.48l 153.871,0
|
||||
C 473.609-32, 512,6.375, 512,53.345L 512,319.999 l-96,0 L 416,224 l-32,0 l0,96 l-95.999,0 l0,32 L 384,352 L 384,448 l 32,0 l0-96 L 512,352 zM 92.943,97.032c 10.807,0, 20.711,0.295, 30.968,0.295c-13.573,13.167-24.313,29.3-24.313,49.19
|
||||
c0,11.804, 3.782,23.168, 9.067,33.26c-5.391-0.385-10.895-0.497-16.563-0.497c-37.178,0-68.753,12.038-92.102,31.927l0-33.621
|
||||
l 0.003-100.865C 26.723,89.408, 58.447,97.032, 92.943,97.032zM 1.71,36.371c-0.556,2.729-0.983,5.503-1.271,8.317C 0.726,41.874, 1.154,39.1, 1.71,36.371zM 227.725,3.577c-7.529,29.403-34.227,43.982-71.444,69.784c-13.536,4.366-28.447,6.937-44.447,7.104
|
||||
c-44.809,0.482-86.554-17.471-110.108-44.186C 9.686-2.574, 44.243-32, 85.343-32l 143.222,0 c 0.908,5.564, 1.348,11.316, 1.348,17.216
|
||||
C 229.913-8.517, 229.146-2.388, 227.725,3.577z" />
|
||||
<glyph unicode="" d="M 426.672,480L 85.342,480 C 38.406,480,0,441.593,0,394.656l0-341.313 C0,6.374, 38.406-32, 85.342-32l 341.33,0.001
|
||||
c 46.938,0, 85.328,38.373, 85.328,85.344L 512,394.656 C 512,441.593, 473.609,480, 426.672,480z M 435.296,224L 352,224 l0-224 l-96,0 L 256,224 l-46.263,0 l0,73.282 L 256,297.282
|
||||
l0,47.593 C 256,409.546, 283.896,448, 359.935,448l 87.622,0 l0-79.285 l-71.565,0 c-21.241,0.035-23.876-11.076-23.876-31.756L 352,297.282l 96,0
|
||||
L 435.296,224z" />
|
||||
<glyph unicode="" d="M 512,382.791c-18.838-8.354-39.082-14.001-60.33-16.54c 21.686,13, 38.343,33.585, 46.186,58.115
|
||||
c-20.298-12.039-42.778-20.78-66.705-25.49c-19.16,20.415-46.461,33.17-76.673,33.17c-58.011,0-105.044-47.029-105.044-105.039
|
||||
c0-8.233, 0.929-16.25, 2.72-23.939c-87.3,4.382-164.701,46.2-216.509,109.753c-9.042-15.514-14.223-33.558-14.223-52.809
|
||||
c0-36.444, 18.544-68.596, 46.73-87.433c-17.219,0.546-33.416,5.271-47.577,13.139c-0.010-0.438-0.010-0.878-0.010-1.321
|
||||
c0-50.894, 36.209-93.348, 84.261-103c-8.813-2.4-18.094-3.686-27.674-3.686c-6.769,0-13.349,0.66-19.764,1.886
|
||||
c 13.368-41.73, 52.16-72.103, 98.126-72.948c-35.95-28.175-81.243-44.967-130.458-44.967c-8.479,0-16.84,0.497-25.058,1.47
|
||||
c 46.486-29.805, 101.701-47.197, 161.021-47.197c 193.211,0, 298.868,160.062, 298.868,298.872c0,4.554-0.103,9.084-0.305,13.59
|
||||
C 480.11,343.227, 497.918,361.727, 512,382.791z" />
|
||||
<glyph unicode="" d="M 416,416L 96,416 c-52.8,0-96-43.2-96-96l0-192 c0-52.8, 43.2-96, 96-96l 320,0 c 52.8,0, 96,43.2, 96,96L 512,320 C 512,372.8, 468.8,416, 416,416z
|
||||
M 192,96L 192,352 l 160-128L 192,96z" />
|
||||
<glyph unicode="" d="M 421.006,185.26c-6.824,6.723-21.957,10.283-44.986,10.586c-15.589,0.172-34.351-1.201-54.085-3.964
|
||||
c-8.837,5.099-17.946,10.647-25.094,17.329c-19.231,17.958-35.284,42.886-45.288,70.297c 0.652,2.56, 1.207,4.81, 1.724,7.106
|
||||
c0,0, 10.833,61.53, 7.965,82.333c-0.395,2.853-0.637,3.681-1.404,5.898l-0.941,2.417c-2.948,6.796-8.724,13.997-17.783,13.604
|
||||
l-5.312,0.169l-0.146,0.003c-10.1,0-18.332-5.166-20.493-12.887c-6.569-24.217, 0.209-60.446, 12.491-107.369l-3.144-7.643
|
||||
c-8.794-21.438-19.815-43.030-29.539-62.079l-1.264-2.476c-10.23-20.019-19.512-37.013-27.927-51.411l-8.688-4.594
|
||||
c-0.632-0.334-15.522-8.209-19.014-10.322c-29.628-17.691-49.261-37.77-52.518-53.708c-1.036-5.085-0.265-11.593, 5.007-14.607
|
||||
l 8.403-4.229c 3.645-1.826, 7.489-2.751, 11.427-2.751c 21.102,0, 45.6,26.286, 79.348,85.183
|
||||
c 38.965,12.684, 83.327,23.228, 122.207,29.045c 29.629-16.684, 66.071-28.273, 89.071-28.273c 4.084,0, 7.606,0.389, 10.466,1.148
|
||||
c 4.411,1.168, 8.129,3.683, 10.396,7.096c 4.463,6.716, 5.367,15.966, 4.156,25.438C 425.68,179.411, 423.435,182.887, 421.006,185.26z
|
||||
M 105.823,72.976c 3.848,10.521, 19.080,31.322, 41.602,49.778c 1.416,1.148, 4.904,4.416, 8.097,7.451
|
||||
C 131.971,92.643, 116.199,77.672, 105.823,72.976z M 239.217,380.157c 6.783,0, 10.642-17.097, 10.962-33.127
|
||||
c 0.32-16.030-3.429-27.28-8.079-35.604c-3.851,12.324-5.713,31.75-5.713,44.452C 236.387,355.878, 236.104,380.157, 239.217,380.157z
|
||||
M 199.426,161.253c 4.725,8.458, 9.641,17.378, 14.665,26.839c 12.246,23.158, 19.979,41.278, 25.739,56.173
|
||||
c 11.455-20.842, 25.722-38.56, 42.493-52.756c 2.092-1.771, 4.309-3.551, 6.637-5.325C 254.855,179.436, 225.378,171.229, 199.426,161.253z
|
||||
M 414.452,163.174c-2.077-1.299-8.027-2.050-11.854-2.050c-12.353,0-27.636,5.647-49.063,14.833
|
||||
c 8.234,0.609, 15.781,0.919, 22.55,0.919c 12.391,0, 16.060,0.054, 28.175-3.036S 416.529,164.473, 414.452,163.174zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" />
|
||||
<glyph unicode="" d="M 319.889,242.054L 341.995,242.054L 316.489,128.965L 283.326,287.97L 230.051,287.97L 191.494,128.965L 162.586,287.97L 106.889,287.97L 163.435,32.029L 217.854,32.029L 256.001,183.383L 290.129,32.029L 340.297,32.029L 405.112,287.97L 319.889,287.97
|
||||
zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" />
|
||||
<glyph unicode="" d="M 371.514,288L 303.867,288L 256.001,217.484L 208.131,288L 140.487,288L 221.568,166.768L 130.081,32L 261.201,32L 261.201,77.788L 230.923,77.788L 256.001,115.285L 311.699,32L 381.92,32L 290.432,166.768 zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" />
|
||||
<glyph unicode="" d="M 96,224l 96,0 l0-32 L 96,192 L 96,224 z M 96,160l 96,0 l0-32 L 96,128 L 96,160 z M 96,96l 96,0 l0-32 L 96,64 L 96,96 z M 451.716,380.285l-71.432,71.431
|
||||
C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0 c 22,0, 40,18, 40,40L 480,312
|
||||
C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440 c0,4.336, 3.664,8, 8,8
|
||||
l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 zM 288,128 L 382.396,128 C 374.983,91.484 342.703,64 304,64 C 259.817,64 224,99.817 224,144 C 224,182.703 251.485,214.983 288,222.396 L 288,128 ZM 336,256 C 380.183,256 416,220.183 416,176 C 416,170.521 415.446,165.17 414.396,160 L 320,160 L 320,254.396 C 325.17,255.446 330.521,256 336,256 Z" />
|
||||
<glyph unicode="" d="M 224,192L 192,224L 96,128L 192,32L 224,64L 160,128 zM 288,64L 320,32L 416,128L 320,224L 288,192L 352,128 zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" />
|
||||
<glyph unicode="" d="M 192,174.277L 192,231.39 c0,7.564, 3.348,14.718, 9.427,20.143c 6.080,5.424, 14.096,8.413, 22.573,8.413l0,28.555
|
||||
c-35.2,0-64-25.7-64-57.111l0-42.833 c0-7.886-7.164-14.279-16-14.279l-16,0 l0-28.555 l 16,0 c 8.837,0, 16-6.395, 16-14.279l0-42.838
|
||||
c0-31.407, 28.8-57.107, 64-57.107l0,28.556 c-8.477,0-16.494,2.988-22.573,8.413c-6.079,5.426-9.427,12.577-9.427,20.139l0,57.117
|
||||
c0,7.885-7.164,14.277-16,14.277C 184.837,160, 192,166.395, 192,174.277zM 320,145.723l0-57.117 c0-7.562-3.348-14.713-9.427-20.139c-6.079-5.425-14.095-8.413-22.573-8.413l0-28.556
|
||||
c 35.201,0, 64,25.7, 64,57.107l0,42.838 c0,7.886, 7.164,14.279, 16,14.279l 16,0 l0,28.555 l-16,0 c-8.836,0-16,6.395-16,14.279L 352,231.39
|
||||
c0,31.412-28.799,57.111-64,57.111l0-28.555 c 8.479,0, 16.494-2.989, 22.573-8.415c 6.080-5.424, 9.427-12.578, 9.427-20.142l0-57.114
|
||||
c0-7.883, 7.164-14.276, 16-14.276C 327.164,160, 320,153.605, 320,145.723zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" />
|
||||
<glyph unicode="" d="M 505.216,60.624l-191.984,384C 302.4,466.304, 280.256,480, 256,480s-46.4-13.696-57.232-35.376
|
||||
l-191.984-384c-9.92-19.84-8.864-43.408, 2.8-62.288C 21.248-20.512, 41.84-32, 64.016-32l 383.952,0 c 22.192,0, 42.784,11.488, 54.432,30.336
|
||||
C 514.064,17.216, 515.12,40.784, 505.216,60.624z M 287.968,48c0-8.848-7.152-16-16-16l-32,0 c-8.848,0-16,7.152-16,16l0,32 c0,8.848, 7.152,16, 16,16l 32,0
|
||||
c 8.848,0, 16-7.152, 16-16L 287.968,48 z M 287.968,176c0-8.848-7.152-16-16-16l-32,0 c-8.848,0-16,7.152-16,16L 223.968,336 c0,8.832, 7.152,16, 16,16l 32,0 c 8.848,0, 16-7.168, 16-16
|
||||
L 287.968,176 z" />
|
||||
<glyph unicode="" d="M 480,224c0-123.712-100.288-224-224-224S 32,100.288, 32,224c0,54.528, 19.616,104.368, 52,143.2
|
||||
c 2.464,4.544, 5.888,8.496, 10.16,11.36c 0.72,0.752, 1.36,1.6, 2.096,2.336c 0.016-0.368, 0.176-0.72, 0.208-1.088C 101.088,382.4, 106.336,384, 112,384
|
||||
c 17.664,0, 32-14.336, 32-32c0-11.136-5.68-20.928-14.32-26.656C 130.24,324.928, 130.64,324.416, 131.216,324C 109.216,296.608, 96,261.872, 96,224
|
||||
c0-88.368, 71.632-160, 160-160s 160,71.632, 160,160c0,37.872-13.216,72.608-35.216,100c 0.576,0.416, 0.992,0.928, 1.536,1.344
|
||||
C 373.68,331.072, 368,340.864, 368,352c0,17.664, 14.336,32, 32,32c 5.664,0, 10.912-1.6, 15.536-4.192c 0.032,0.368, 0.192,0.72, 0.224,1.088
|
||||
c 0.72-0.736, 1.36-1.584, 2.096-2.336c 4.272-2.864, 7.68-6.816, 10.16-11.36C 460.368,328.368, 480,278.528, 480,224z M 272,192l-32,0
|
||||
c-8.848,0-16,7.152-16,16L 224,432 c0,8.832, 7.152,16, 16,16l 32,0 c 8.848,0, 16-7.168, 16-16l0-224 C 288,199.152, 280.848,192, 272,192z" />
|
||||
<glyph unicode="" d="M 399.712,324.512c 5.968-5.968, 15.648-5.968, 21.6,0l 84.528,66.544
|
||||
c 14.064-44.224, 4.128-94.432-30.96-129.52c-33.472-33.488-80.736-44.032-123.424-32.768l-100.256-100.256c 11.264-42.704, 0.704-89.952-32.752-123.424
|
||||
c-35.088-35.088-85.312-45.024-129.536-30.96l 66.576,84.512c 5.968,5.984, 5.968,15.648,0,21.616l-43.2,43.184c-5.968,5.968-15.648,5.968-21.6,0
|
||||
l-84.528-66.544c-14.064,44.224-4.128,94.416, 30.944,129.504c 33.488,33.488, 80.736,44.048, 123.44,32.768l 100.272,100.272
|
||||
c-11.28,42.688-0.72,89.952, 32.736,123.424c 35.088,35.088, 85.312,45.024, 129.552,30.976l-66.576-84.544c-5.952-5.952-5.952-15.632,0-21.584
|
||||
L 399.712,324.512z" />
|
||||
<glyph unicode="" d="M 370.857,102.286q0-11.429 -8-19.429l-38.857-38.857q-8-8 -19.429-8t-19.429,8l-84,84l-84-84q-8-8 -19.429-8t-19.429,8l-38.857,38.857q-8,8 -8,19.429t 8,19.429l 84,84l-84,84q-8,8 -8,19.429t 8,19.429l 38.857,38.857q 8,8 19.429,8t 19.429-8l 84-84l 84,84q 8,8 19.429,8t 19.429-8l 38.857-38.857q 8-8 8-19.429 t-8-19.429l-84-84l 84-84q 8-8 8-19.429z" horiz-adv-x="402.286" />
|
||||
<glyph unicode="" d="M 477.429,318.286q0-11.429 -8-19.429l-206.857-206.857l-38.857-38.857q-8-8 -19.429-8t-19.429,8l-38.857,38.857l-103.429,103.429q-8,8 -8,19.429t 8,19.429l 38.857,38.857q 8,8 19.429,8t 19.429-8l 84-84.286l 187.429,187.714q 8,8 19.429,8t 19.429-8l 38.857-38.857q 8-8 8-19.429z" />
|
||||
<glyph unicode="" d="M 402.286,269.714l0-54.857 q0-11.429 -8-19.429t-19.429-8l-118.857,0 l0-118.857 q0-11.429 -8-19.429t-19.429-8l-54.857,0 q-11.429,0 -19.429,8t-8,19.429l0,118.857 l-118.857,0 q-11.429,0 -19.429,8t-8,19.429l0,54.857 q0,11.429 8,19.429t 19.429,8l 118.857,0 l0,118.857 q0,11.429 8,19.429t 19.429,8l 54.857,0 q 11.429,0 19.429-8t 8-19.429l0-118.857 l 118.857,0 q 11.429,0 19.429-8t 8-19.429z" horiz-adv-x="402.286" />
|
||||
<glyph unicode="" d="M 402.286,269.714l0-54.857 q0-11.429 -8-19.429t-19.429-8l-347.429,0 q-11.429,0 -19.429,8t-8,19.429l0,54.857 q0,11.429 8,19.429t 19.429,8l 347.429,0 q 11.429,0 19.429-8t 8-19.429z" horiz-adv-x="402.286" />
|
||||
<glyph unicode="" d="M 348.916,316.476l-32.476,32.461L 154.035,186.566c-26.907-26.896-26.907-70.524,0-97.422
|
||||
c 26.902-26.896, 70.53-26.896, 97.437,0l 194.886,194.854c 44.857,44.831, 44.857,117.531,0,162.363
|
||||
c-44.833,44.852-117.556,44.852-162.391,0L 79.335,241.788l 0.017-0.016c-0.145-0.152-0.306-0.288-0.438-0.423
|
||||
c-62.551-62.548-62.551-163.928,0-226.453c 62.527-62.528, 163.934-62.528, 226.494,0c 0.137,0.137, 0.258,0.284, 0.41,0.438l 0.016-0.017
|
||||
l 139.666,139.646l-32.493,32.46L 273.35,47.792l-0.008,0 c-0.148-0.134-0.282-0.285-0.423-0.422
|
||||
c-44.537-44.529-116.99-44.529-161.538,0c-44.531,44.521-44.531,116.961,0,161.489c 0.152,0.152, 0.302,0.291, 0.444,0.423l-0.023,0.030
|
||||
l 204.64,204.583c 26.856,26.869, 70.572,26.869, 97.443,0c 26.856-26.867, 26.856-70.574,0-97.42L 218.999,121.625
|
||||
c-8.968-8.961-23.527-8.961-32.486,0c-8.947,8.943-8.947,23.516,0,32.46L 348.916,316.476z" />
|
||||
<glyph unicode="" d="M 255.616,418.56L 255.616,320.563L 435.251,320.589L 435.251,127.258L 255.616,127.258L 255.616,29.44L 61.491,224 z" />
|
||||
<glyph unicode="" d="M 450.56,224.384L 352.563,224.358L 352.589,44.749L 159.258,44.749L 159.258,224.384L 61.44,224.358L 256.026,418.509 z" />
|
||||
<glyph unicode="" d="M 256.384,418.56L 256.384,320.563L 76.749,320.589L 76.749,127.258L 256.384,127.258L 256.384,29.44L 450.509,224 z" />
|
||||
<glyph unicode="" d="M 450.56,223.616L 352.563,223.642L 352.589,403.251L 159.258,403.251L 159.258,223.616L 61.44,223.642L 256,29.491 z" />
|
||||
<glyph unicode="" d="M 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0 c 22,0, 40,18, 40,40
|
||||
L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440 c0,4.336, 3.664,8, 8,8
|
||||
l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" />
|
||||
<glyph unicode="" d="M 208,416L 256,416L 256,384L 208,384zM 160,384L 208,384L 208,352L 160,352zM 208,352L 256,352L 256,320L 208,320zM 160,320L 208,320L 208,288L 160,288zM 208,288L 256,288L 256,256L 208,256zM 160,256L 208,256L 208,224L 160,224zM 208,224l0-32 l-48,0 l0-112 c0-8.837, 7.163-16, 16-16l 64,0 c 8.837,0, 16,7.163, 16,16L 256,224 L 208,224 z M 240,96l-64,0 l0,32 l 64,0 L 240,96 zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" />
|
||||
<glyph unicode="" d="M0,448l0-448 l 512,0 L 512,448 L0,448 z M 480,32L 32,32 L 32,416 l 448,0 L 480,32 zM 448,384L 64,384 l0-320 l 384,0 L 448,384 z M 224,224l-32,0 l0-32 l-32,0 l0-32 l-32,0 l0,32 l 32,0 l0,32 l 32,0 l0,32 l-32,0 l0,32 l-32,0 l0,32 l 32,0 l0-32 l 32,0 l0-32 l 32,0 L 224,224 z M 352,160l-96,0
|
||||
l0,32 l 96,0 L 352,160 z" />
|
||||
<glyph unicode="" d="M 480-32L 32-32 c-17.664,0-32,14.336-32,32L0,448 c0,17.664, 14.336,32, 32,32l 384,0 l 96-96l0-384
|
||||
C 512-17.664, 497.664-32, 480-32z M 128,48c0-8.848, 7.168-16, 16-16l 224,0 c 8.848,0, 16,7.152, 16,16l0,128 c0,8.848-7.152,16-16,16L 144,192 c-8.832,0-16-7.152-16-16L 128,48 z
|
||||
M 352,400c0,8.848-7.152,16-16,16s-16-7.152-16-16l0-48 c0-8.848, 7.152-16, 16-16s 16,7.152, 16,16L 352,400 z M 448,368l-48,48l-16,0 l0-112 c0-8.848-7.152-16-16-16L 144,288
|
||||
c-8.832,0-16,7.152-16,16L 128,416 L 80,416 C 71.168,416, 64,408.848, 64,400l0-352 c0-8.848, 7.168-16, 16-16l 16,0 L 96,208 c0,8.848, 7.168,16, 16,16l 288,0 c 8.848,0, 16-7.152, 16-16l0-176 l 16,0
|
||||
c 8.848,0, 16,7.152, 16,16L 448,368 z" />
|
||||
<glyph unicode="" d="M 379.392,110.131c-63.104,22.989-83.277,42.394-83.277,83.942c0,24.934, 19.277,16.794, 27.725,62.464c 3.507,18.944, 20.531,0.307, 23.808,43.546
|
||||
c0,17.229-9.293,21.53-9.293,21.53s 4.736,25.523, 6.579,45.133C 347.187,391.219, 330.803,454.4, 243.2,454.4C 155.622,454.4, 139.187,391.219, 141.491,366.746
|
||||
C 143.334,347.136, 148.070,321.613, 148.070,321.613S 138.752,317.338, 138.752,300.083c 3.251-43.238, 20.275-24.602, 23.782-43.546
|
||||
c 8.474-45.67, 27.75-37.53, 27.75-62.464c0-41.549-20.173-60.954-83.277-83.942c-63.334-23.040-104.448-46.566-104.448-62.618c0-16.026,0-53.888,0-53.888
|
||||
l 240.64,0 l 240.64,0 c0,0,0,37.862,0,53.888C 483.84,63.539, 442.701,87.066, 379.392,110.131z" />
|
||||
<glyph unicode="" d="M 464,416L 48,416 C 21.488,416,0,394.512,0,368l0-288 c0-26.496, 21.488-48, 48-48l 416,0 c 26.512,0, 48,21.504, 48,48L 512,368 C 512,394.512, 490.512,416, 464,416z M 43.856,64.16
|
||||
L 32.16,75.872l 131.984,131.968l 11.696-11.712L 43.856,64.16z M 468.144,64.16l-131.984,131.968l 11.696,11.712l 131.984-131.968L 468.144,64.16z M 272,170.8
|
||||
L 272,160 l-32,0 l0,10.8 L 32.048,363.6l 20.352,20.352L 256,195.184L 459.6,383.952l 20.352-20.352L 272,170.8z" />
|
||||
<glyph unicode="" d="M 316.851,110.131C 253.082,133.12, 232.704,152.525, 232.704,194.074c0,24.934, 19.482,16.794, 28.032,62.464c 3.558,18.944, 20.762,0.307, 24.013,43.546
|
||||
c0,17.229-9.37,21.53-9.37,21.53s 4.787,25.523, 6.63,45.133C 284.314,391.219, 267.725,454.4, 179.2,454.4S 74.086,391.219, 76.39,366.746
|
||||
c 1.869-19.635, 6.656-45.133, 6.656-45.133S 73.651,317.338, 73.651,300.083c 3.302-43.238, 20.506-24.602, 24.013-43.546
|
||||
c 8.576-45.67, 28.058-37.53, 28.058-62.464c0-41.549-20.403-60.954-84.173-83.942c-7.68-2.739-25.984-7.040-41.549-13.773L0-6.4 l 409.6,0
|
||||
c0,0,0,37.862,0,53.888S 380.851,87.066, 316.851,110.131z M 435.2,249.6L 435.2,326.4 l-51.2,0 l0-76.8 l-76.8,0 l0-51.2 l 76.8,0 l0-76.8 l 51.2,0 l0,76.8 l 76.8,0 L 512,249.6 L 435.2,249.6 z" />
|
||||
<glyph unicode="" d="M 256,384C 144.341,384, 47.559,318.979,0,224c 47.559-94.979, 144.341-160, 256-160c 111.657,0, 208.439,65.021, 256,160
|
||||
C 464.442,318.979, 367.657,384, 256,384z M 382.225,299.148c 30.081-19.187, 55.571-44.887, 74.717-75.148
|
||||
c-19.146-30.261-44.637-55.961-74.718-75.149C 344.427,124.743, 300.779,112, 256,112c-44.78,0-88.428,12.743-126.225,36.852
|
||||
C 99.695,168.038, 74.205,193.738, 55.058,224c 19.146,30.262, 44.637,55.962, 74.717,75.148c 1.959,1.25, 3.938,2.461, 5.929,3.65
|
||||
C 130.725,289.134, 128,274.387, 128,259c0-70.692, 57.308-128, 128-128s 128,57.308, 128,128c0,15.387-2.725,30.134-7.704,43.799
|
||||
C 378.286,301.61, 380.265,300.398, 382.225,299.148z M 256,275c0-26.51-21.49-48-48-48s-48,21.49-48,48s 21.49,48, 48,48
|
||||
S 256,301.51, 256,275z" />
|
||||
<glyph unicode="" d="M 194.586,136.499c-6.861-6.938-6.861-18.15,0-25.062c 6.835-6.938, 17.946-6.938, 24.806,0l 98.048,100.019
|
||||
c 6.861,6.938, 6.861,18.15,0,25.062l-98.048,100.045c-6.861,6.938-17.946,6.938-24.806,0S 187.725,318.438, 194.56,311.526L 274.97,224L 194.586,136.499z" />
|
||||
<glyph unicode="" d="M 343.501,285.414c 6.938,6.861, 18.15,6.861, 25.062,0c 6.938-6.861, 6.938-17.946,0-24.806l-100.019-98.048
|
||||
c-6.938-6.861-18.15-6.861-25.062,0l-100.045,98.048c-6.912,6.861-6.912,17.946,0,24.806c 6.938,6.861, 18.125,6.861, 25.062,0L 256,205.030
|
||||
L 343.501,285.414z" />
|
||||
<glyph unicode="" d="M 287.935-32L 192-32 L 192,224 l-64,0 l0,88.225 l 64,0.029l-0.104,51.976C 191.896,436.206, 211.413,480, 296.195,480l 70.588,0 l0-88.242 l-44.115,0
|
||||
c-33.016,0-34.603-12.328-34.603-35.342l-0.131-44.162l 79.345,0 l-9.352-88.225L 288,224L 287.935-32z" />
|
||||
<glyph unicode="" d="M 96,224c0,6.090, 0.352,12.098, 1.015,18.011l-92.49,30.052C 1.567,256.493,0,240.431,0,224
|
||||
c0-73.615, 31.083-139.961, 80.827-186.662l 57.142,78.648C 111.907,144.449, 96,182.365, 96,224zM 416,224c0-41.634-15.906-79.551-41.969-108.014l 57.142-78.648C 480.917,84.039, 512,150.385, 512,224
|
||||
c0,16.431-1.566,32.493-4.524,48.063l-92.49-30.052C 415.648,236.097, 416,230.090, 416,224zM 288,380.796c 45.967-9.331, 84.772-38.371, 107.225-77.913l 92.489,30.051C 451.116,410.644, 376.594,466.964, 288,478.012L 288,380.796 zM 116.775,302.884c 22.453,39.542, 61.258,68.582, 107.225,77.913L 224,478.012 C 135.406,466.964, 60.885,410.644, 24.287,332.935
|
||||
L 116.775,302.884zM 322.278,78.336C 302.083,69.132, 279.642,64, 256,64s-46.083,5.132-66.277,14.335l-57.146-78.655
|
||||
C 169.18-20.503, 211.245-32, 256-32s 86.82,11.497, 123.424,31.68L 322.278,78.336z" />
|
||||
<glyph unicode="" d="M 192,480L0,224L 192,224L 64-32L 512,288L 256,288L 448,480 z" />
|
||||
<glyph unicode="" d="M 480,384l-9,0 l-430,0 l-9,0 q-13,0 -22.5,9.25t-9.5,22.5t 9.25,22.75t 22.75,9.5l 160,0 q0,13 9.25,22.5t 22.75,9.5l 64,0 q 13.5,0 22.75-9.5t 9.25-22.5l 160,0 q 13,0 22.5-9.5t 9.5-22.75t-9.5-22.5t-22.5-9.25zM 480,32q0-26.5 -18.75-45.25t-45.25-18.75l-320,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,320 l 448,0 l0-320 zM 160,256
|
||||
q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-192 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,192 zM 288,256q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-192 q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,192 zM 416,256q0,13 -9.5,22.5t-22.75,9.5t-22.5-9.5t-9.25-22.5l0-192
|
||||
q0-13.5 9.25-22.75t 22.5-9.25t 22.75,9.25t 9.5,22.75l0,192 z" />
|
||||
<glyph unicode="" d="M 448-32l-384,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,48 q0,13 9.25,22.5t 22.5,9.5t 22.75-9.5t 9.5-22.5l0-16 q0-13.5 9.25-22.75t 22.75-9.25l 320,0 q 13,0 22.5,9.25t 9.5,22.75l0,16 q0,13 9.25,22.5t 22.5,9.5t 22.75-9.5t 9.5-22.5l0-48 q0-26.5 -18.75-45.25t-45.25-18.75zM 272.5,103q-7-7 -16.5-7t-16.5,7l-170.5,172.5
|
||||
q-6,6.5 -4.25,9.5t 9.25,3l 118,0 l0,160 q0,13.5 9.25,22.75t 22.75,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-160 l 117.5,0 q 7.5,0 9.5-3t-4-9.5z" />
|
||||
<glyph unicode="" d="M 448-32l-384,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,48 q0,13 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5l0-16 q0-13.5 9.25-22.75t 22.75-9.25l 320,0 q 13.5,0 22.75,9.25t 9.25,22.75l0,16 q0,13 9.5,22.5t 22.5,9.5t 22.5-9.5t 9.5-22.5l0-48 q0-26.5 -18.75-45.25t-45.25-18.75zM 437.5,288l-117.5,0 l0-160 q0-13.5 -9.25-22.75t-22.75-9.25
|
||||
l-64,0 q-13.5,0 -22.75,9.25t-9.25,22.75l0,160 l-118,0 q-7.5,0 -9.25,3t 4.25,9.5l 170.5,172.5q 7,7 16.5,7t 16.5-7l 170.5-172.5q 6-6.5 4-9.5t-9.5-3z" />
|
||||
<glyph unicode="" d="M 480,192l-160,0 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13.5,0 -22.75,9.5t-9.25,22.5l-160,0 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25l 160,0 q0,13.5 9.25,22.75t 22.75,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l 160,0 q 13.5,0 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5zM 288,256l-64,0 l0-64 l 64,0 l0,64
|
||||
zM 480,384l-32,0 q0-13 -9.5-22.5t-22.5-9.5l-64,0 q-13.5,0 -22.75,9.5t-9.25,22.5l-288,0 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25l 288,0 q0,13.5 9.25,22.75t 22.75,9.25l 64,0 q 13.5,0 22.75-9.25t 9.25-22.75l 32,0 q 13.5,0 22.75-9.25t 9.25-22.5t-9.25-22.75t-22.75-9.5zM 416,448l-64,0 l0-64 l 64,0 l0,64 z
|
||||
M 32,64l 32,0 q0,13.5 9.25,22.75t 22.75,9.25l 64,0 q 13,0 22.5-9.25t 9.5-22.75l 288,0 q 13.5,0 22.75-9.25t 9.25-22.5t-9.5-22.75t-22.5-9.5l-288,0 q0-13.5 -9.5-22.75t-22.5-9.25l-64,0 q-13.5,0 -22.75,9.5t-9.25,22.5l-32,0 q-13.5,0 -22.75,9.5t-9.25,22.75t 9.25,22.5t 22.75,9.25zM 96,0l 64,0 l0,64 l-64,0 l0-64 z" />
|
||||
<glyph unicode="" d="M 512,192l0,32 l-96.645,0 c-2.931,36.343-15.893,69.513-35.835,96.125l 80.972,0 l 35.030,140.12l-31.045,7.761l-28.97-115.88l-87.34,0
|
||||
c-0.446,0.347-0.898,0.687-1.349,1.028c 3.355,9.751, 5.181,20.211, 5.181,31.097C 352,437.131, 309.020,480, 256,480s-96-42.869-96-95.75
|
||||
c0-10.886, 1.825-21.346, 5.181-31.097c-0.45-0.342-0.902-0.681-1.349-1.028l-87.34,0 l-28.97,115.88l-31.045-7.761l 35.030-140.12l 80.972,0
|
||||
C 112.537,293.513, 99.576,260.343, 96.645,224L0,224 l0-32 l 96.685,0 c 1.901-22.832, 7.754-44.406, 16.819-63.875L 51.508,128.125 l-35.030-140.119
|
||||
l 31.045-7.762l 28.97,115.881l 56.177,0 C 162.016,57.109, 206.368,32.25, 256,32.25s 93.983,24.859, 123.331,63.875l 56.177,0 l 28.97-115.881
|
||||
l 31.045,7.762l-35.030,140.119l-61.996,0 c 9.065,19.469, 14.918,41.043, 16.818,63.875L 512,192 z" />
|
||||
<glyph unicode="" d="M 267.313,468.686C 261.091,474.908, 248.8,480, 240,480L 48,480 c-8.8,0-16-7.2-16-16l0-480 c0-8.8, 7.2-16, 16-16l 384,0 c 8.8,0, 16,7.2, 16,16L 448,272
|
||||
c0,8.8-5.091,21.091-11.313,27.313L 267.313,468.686z M 416,0L 64,0 L 64,448 l 175.579,0 c 1.458-0.24, 4.204-1.377, 5.405-2.239l 168.778-168.777
|
||||
c 0.861-1.201, 1.998-3.947, 2.238-5.405L 416,0 zM 432,480l-96,0 c-8.8,0-10.909-5.091-4.687-11.313l 105.373-105.373C 442.909,357.091, 448,359.2, 448,368L 448,464 C 448,472.8, 440.8,480, 432,480
|
||||
z" />
|
||||
<glyph unicode="" d="M 345.11,244.159c-30.334,14.326-68.986,17.21-97.417-3.024c 34.57,3.302, 72.479-2.419, 97.553-28.562
|
||||
c 24,27.54, 62.057,32.703, 96.479,29.866C 412.981,261.511, 375.115,258.951, 345.11,244.159zM 332.824,177.125c-34.189,0.789-67.217-11.586-95.55-30.052c-53.588,22.794-121.368,18.562-167.001-19.491
|
||||
c 13.165,0.467, 26.003,3.723, 39.028,5.396c 47.591,4.744, 98.294-7.071, 134.256-39.912c 14.886,21.771, 35.822,39.121, 59.826,49.961
|
||||
c 31.537,15.26, 67.080,16.842, 101.41,17.26C 383.949,174.611, 357.485,177.264, 332.824,177.125zM 451.716,380.285l-71.432,71.431C 364.728,467.272, 334,480, 312,480L 72,480 C 50,480, 32,462, 32,440l0-432 c0-22, 18-40, 40-40l 368,0
|
||||
c 22,0, 40,18, 40,40L 480,312 C 480,334, 467.272,364.729, 451.716,380.285z M 429.089,357.657c 1.565-1.565, 3.125-3.487, 4.64-5.657L 352,352 L 352,433.728
|
||||
c 2.17-1.515, 4.092-3.075, 5.657-4.64L 429.089,357.657z M 448,8c0-4.336-3.664-8-8-8L 72,0 c-4.336,0-8,3.664-8,8L 64,440
|
||||
c0,4.336, 3.664,8, 8,8l 240,0 c 2.416,0, 5.127-0.305, 8-0.852L 320,320 l 127.148,0 c 0.547-2.873, 0.852-5.583, 0.852-8L 448,8 z" />
|
||||
<glyph unicode="" d="M 229.665,150.084L 144.338,2.25L 426.665,2.25L 512,150.084 zM 487.806,192L 341.339,445.75L 170.665,445.75L 317.143,192 zM 146.418,403.743L0,150.084L 85.338,2.25L 231.754,255.912 z" />
|
||||
<glyph unicode="" d="M 480-32l-384,0 q-13,0 -22.5,9.25t-9.5,22.75l0,180 l 139.5-139q 9-9.5 23-8.5l 61.5,0 q 13,0 22.5,9.25t 9.5,22.75l0,63.5 q0,11.5 -9.5,20.5l-246.5,246.5l0,52.5 q0,13.5 9.5,22.75t 22.5,9.25l 224,0 l0-176 q0-6.5 4.5-11.25t 11.5-4.75l 175.5,0 l0-0.5 l0-287 q0-13.5 -9.25-22.75t-22.25-9.25zM 352,480q 13,0 22-9l 128-128.5
|
||||
q 9.5-9.5 9.5-23l-159.5,0 l0,160.5 zM 39.5,258l-34,33.5q-5.5,6 -5.5,14t 5.5,13.5l 27.5,27.5q 5.5,5.5 13.75,5.5t 13.75-5.5l 33.5-33.5zM 288,112.5l0-32 q0-7 -4.75-11.5t-11.25-4.5l-32,0 q-7,0 -13,5.5l-162,162l 55,55l 162-162q 6-6 6-12.5z" />
|
||||
<glyph unicode="" d="M 480,0l-32,0 l0,128 l 32,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 q0-13.5 -9.25-22.75t-22.75-9.25zM 480,160l-32,0 l0,128 l 32,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 q0-13.5 -9.25-22.75t-22.75-9.25zM 480,320l-32,0 l0,128 l 32,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-64 q0-13.5 -9.25-22.75t-22.75-9.25z
|
||||
M 416,0q0-13 -9.25-22.5t-22.75-9.5l-352,0 q-13,0 -22.5,9.5t-9.5,22.5l0,448 q0,13.5 9.5,22.75t 22.5,9.25l 352,0 q 13.5,0 22.75-9.25t 9.25-22.75l0-448 zM 240,173l0,9 q 48,19.5 48,106q0,31.5 -22.25,47.75t-57.5,16.25t-57.75-16.25t-22.5-47.75q0-84 48-105.5l0-9.5 q-34.5-6 -57-22.5t-23-37.5q0-6 10.75-9.75
|
||||
t 31.5-5.25t 34.25-1.75t 35.5-0.25t 35.5,0.25t 34.25,1.75t 31.5,5.25t 10.75,9.75q-0.5,21 -23,37.5t-57,22.5z" />
|
||||
<glyph unicode="" d="M 448,416l0-416 L 112,0 c-26.511,0-48,21.49-48,48c0,26.509, 21.489,48, 48,48l 304,0 L 416,480 L 96,480 C 60.801,480, 32,451.2, 32,416l0-384
|
||||
c0-35.2, 28.801-64, 64-64l 384,0 L 480,416 L 448,416 zM 128,64L 416,64L 416,32L 128,32z" />
|
||||
<glyph unicode="" d="M 256,480 C 116.626,480 3.271,368.619 0.076,230.013 C 3.036,350.945 94.992,448 208,448 C 322.875,448 416,347.712 416,224 C 416,197.49 437.49,176 464,176 C 490.51,176 512,197.49 512,224 C 512,365.385 397.385,480 256,480 ZM 256-32 C 395.374-32 508.729,79.381 511.924,217.987 C 508.964,97.055 417.008,0 304,0 C 189.125,0 96,100.288 96,224 C 96,250.51 74.51,272 48,272 C 21.49,272 0,250.51 0,224 C 0,82.615 114.615-32 256-32 Z" />
|
||||
<glyph unicode="" d="M 242.286-4.571q0,4.571 -4.571,4.571q-16.857,0 -29,12.143t-12.143,29q0,4.571 -4.571,4.571t-4.571-4.571q0-20.857 14.714-35.571t 35.571-14.714q 4.571,0 4.571,4.571zM 52.286,77.714l 370.857,0 q-46.857,51.714 -70.429,117.571t-23.571,138.429q0,73.143 -91.429,73.143t-91.429-73.143q0-72.571 -23.571-138.429t-70.429-117.571zM 475.429,77.714q0-14.857 -10.857-25.714t-25.714-10.857 l-128,0 q0-30.286 -21.429-51.714t-51.714-21.429t-51.714,21.429t-21.429,51.714l-128,0 q-14.857,0 -25.714,10.857t-10.857,25.714q 54.286,46 82,113.571t 27.714,142.429q0,47.143 27.429,74.857t 75.429,33.429q-2.286,5.143 -2.286,10.571q0,11.429 8,19.429t 19.429,8t 19.429-8t 8-19.429q0-5.429 -2.286-10.571q 48-5.714 75.429-33.429t 27.429-74.857q0-74.857 27.714-142.429t 82-113.571z" horiz-adv-x="475.429" />
|
||||
<glyph unicode="" d="M 488.791,382.769c-16.992,4.854-34.705-4.985-39.56-21.978L 446.72,352L 148.249,352 l-4.496,35.969
|
||||
C 141.751,403.983, 128.138,416, 112,416L 32,416 C 14.327,416,0,401.673,0,384s 14.327-32, 32-32l 51.751,0 l 28.496-227.969
|
||||
C 114.249,108.018, 127.862,96, 144,96l 272,0 c 14.287,0, 26.844,9.472, 30.769,23.209l 64,224
|
||||
C 515.624,360.202, 505.784,377.914, 488.791,382.769z M 256,224l0,32 l 63.998,0 l0-32 L 256,224 z M 319.998,192l0-32 L 256,160 l0,32 L 319.998,192 z M 256,288l0,32
|
||||
l 63.998,0 l0-32 L 256,288 z M 152.249,320L 224,320 l0-32 l-67.751,0 L 152.249,320z M 160.249,256L 224,256 l0-32 l-59.751,0 L 160.249,256z M 168.249,192L 224,192 l0-32 l-51.751,0
|
||||
L 168.249,192z M 391.862,160l-39.864,0 l0,32 l 49.007,0 L 391.862,160z M 410.148,224l-58.15,0 l0,32 l 67.293,0 L 410.148,224z M 428.434,288l-76.436,0
|
||||
l0,32 l 85.579,0 L 428.434,288zM 128,16A48,48 2700 1 1 224,16A48,48 2700 1 1 128,16zM 320,16A48,48 2700 1 1 416,16A48,48 2700 1 1 320,16z" />
|
||||
<glyph unicode="" d="M 512,175.953l0,96.094 l-73.387,12.231c-2.979,9.066-6.611,17.834-10.847,26.25l 43.227,60.517l-67.948,67.949l-60.413-43.152
|
||||
c-8.455,4.277-17.269,7.944-26.384,10.951L 304.047,480l-96.094,0 l-12.201-73.208c-9.115-3.007-17.929-6.674-26.383-10.951
|
||||
l-60.414,43.152l-67.949-67.949l 43.227-60.518c-4.235-8.415-7.867-17.183-10.846-26.249L0,272.047l0-96.094 l 73.559-12.26
|
||||
c 2.98-8.984, 6.605-17.674, 10.821-26.015l-43.374-60.724l 67.949-67.948l 60.827,43.447c 8.301-4.175, 16.945-7.764, 25.882-10.717
|
||||
L 207.953-32l 96.094,0 l 12.289,73.737c 8.937,2.953, 17.581,6.542, 25.883,10.716l 60.826-43.446l 67.948,67.948l-43.372,60.723
|
||||
c 4.216,8.341, 7.839,17.031, 10.82,26.016L 512,175.953z M 256,160c-35.346,0-64,28.653-64,64c0,35.346, 28.654,64, 64,64
|
||||
c 35.347,0, 64-28.654, 64-64C 320,188.653, 291.347,160, 256,160z" />
|
||||
<glyph unicode="" d="M 448,0l-384,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,256 q0,13 9.25,22.5t 22.75,9.5l 240,0 l 23,42.5q 3.5,9 14,15.25t 22,6.25l 120,0 q 12,0 22.5-6.25t 14-15.25l 24.5-42.5l0-288 q0-26.5 -18.75-45.25t-45.25-18.75zM 448,320q0,13 -9.5,22.5t-22.5,9.5l-64,0 q-13.5,0 -22.75-9.5t-9.25-22.75t-14-22.5t-34-9.25l-192,0
|
||||
q-6.5,0 -11.25-4.75t-4.75-11.25l0-192 q0-6.5 4.75-11.25t 11.25-4.75l 352,0 q 6.5,0 11.25,4.75t 4.75,11.25l0,240 zM 23,426q 3.5,9.5 14,15.75t 22,6.25l 120,0 q 12,0 22.5-6.25t 14.5-15.75l 24-42l-240,0 z" />
|
||||
<glyph unicode="" d="M 512.5,248.5l-101-112l 14.5-148.5q-1.5-10 -9.5-15.75t-18-3.75l-139.5,59.5l-139.5-59.5q-10-2 -18,4t-9.5,15.5l 14.5,148.5l-101,112q-4.5,8.5 -1.25,18t 11.75,14l 149,32l 77,129q 7,7 17,7t 17-7l 77-129l 149-32q 8.5-4.5 11.75-14t-1.25-18z" />
|
||||
<glyph unicode="" d="M 512.5,248.5l-101-112l 14.5-148.5q-1.5-10 -9.5-15.75t-18-3.75l-139.5,59.5l-139.5-59.5q-10-2 -18,3.75t-9.5,15.75l 14.5,148.5l-101,112q-4.5,8.5 -1.25,18t 11.75,14l 149,32l 77,129q 7,7 17,7t 17-7l 77-129l 149-32q 8.5-4.5 11.75-14t-1.25-18zM 425.5,251l-102,22.5l-53,90q-5,5 -11.75,5
|
||||
t-11.75-5l-53-90l-102.5-22.5q-6-3.5 -8-10t 1-12.5l 70.5-80l-8-100q 1-7.5 5.25-12.5t 10.25-4l 96,42l 96-42q 6.5-1 10.75,4t 5.25,12.5l-8,100.5l 70.5,79.5q 3,6 0.75,12.5t-8.25,10z" />
|
||||
<glyph unicode="" d="M 402.5,118l-146.5-150l-147,150q-59.5,61 -84.25,115.5t-24.75,118.5q0,53 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5q0,53 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5q0-63.5 -24.75-118.25t-84.75-115.75z" />
|
||||
<glyph unicode="" d="M 402.5,118l-146.5-150l-147,150q-59.5,61 -84.25,115.5t-24.75,118.5q0,53 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5q0,53 37.5,90.5t 90.5,37.5t 90.5-37.5t 37.5-90.5q0-63.5 -24.75-118.25t-84.75-115.75zM 448,352q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25l0-0.5 q0-8.5 -20-20t-44-11.5
|
||||
q-25,0 -44.5,11t-19.5,21l0,0 q0,26.5 -18.75,45.25t-45.25,18.75t-45.25-18.75t-18.75-45.25l0-0.5 q0-53 18-95.25t 63.5-95.25l 110.5-113l 110,113q 46,53.5 64,95.5t 18,95.5l0,0 z" />
|
||||
<glyph unicode="" d="M 480-32l-191.5,0 q-13.5,0 -22.75,9.25t-9.25,22.75l 67.5,67.5l-74.5,72.5q-9,9.5 -9,22.75t 9,22.75l 46,45.5q 9,9 22.5,9t 23-9l 73.5-72.5l 65.5,65q 13.5,0 22.75-9.25t 9.25-22.75l0-191.5 q0-13.5 -9.25-22.75t-22.75-9.25zM 217,217q-9.5-9.5 -22.75-9.5t-22.75,9.5l-74,72.5l-65.5-65.5
|
||||
q-13,0 -22.5,9.5t-9.5,22.5l0,192 q0,13.5 9.5,22.75t 22.5,9.25l 192,0 q 13.5,0 22.75-9.25t 9.25-22.75l-67.5-67.5l 74.5-73q 9.5-9 9.5-22.5t-9.5-22.5z" />
|
||||
<glyph unicode="" d="M 502.5,69.5q 9.5-9.5 9.5-23t-9.5-23l-45.5-46q-9.5-9.5 -22.75-9.5t-22.75,9.5l-57,57l-66.5-66.5q-13.5,0 -22.75,9.5t-9.25,22.5l0,192.5 q0,13 9.25,22.5t 22.75,9.5l 192,0 q 13,0 22.5-9.5t 9.5-22.5l-66.5-66.5zM 224,224.5l-191.5,0 q-13.5,0 -22.75,9.25t-9.25,22.75l 66,66l-57,56.5q-9.5,9.5 -9.5,23t 9.5,23
|
||||
l 45.5,46q 9.5,9.5 23,9.5t 23-9.5l 57-57l 66,66q 13.5,0 22.75-9.25t 9.25-22.75l0-191.5 q0-13.5 -9.5-22.75t-22.5-9.25z" />
|
||||
<glyph unicode="" d="M 448,96l-256,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,256 q0,26.5 18.75,45.25t 45.25,18.75l 256,0 q 26.5,0 45.25-18.75t 18.75-45.25l0-256 q0-26.5 -18.75-45.25t-45.25-18.75zM 448,384q0,13.5 -9.25,22.75t-22.75,9.25l-192,0 q-13.5,0 -22.75-9.25t-9.25-22.5t 9.25-22.75t 22.75-9.5l 116,0 l-139.5-139.5
|
||||
q-9-9 -9-21.75t 9-21.75t 21.75-9t 21.75,9l 140,140l0-117 q0-13.5 9.5-22.75t 22.75-9.25t 22.5,9.25t 9.25,22.75l0,192 zM 416-0.25q0-13.25 -9.25-22.5t-22.75-9.25l-320,0 q-26.5,0 -45.25,18.75t-18.75,45.25l0,320 q0,13.5 9.25,22.75t 22.5,9.25t 22.75-9.25t 9.5-22.75l0-288 q0-13.5 9.25-22.75
|
||||
t 22.75-9.25l 288,0 q 13,0 22.5-9.5t 9.5-22.75z" />
|
||||
<glyph unicode="" d="M 438.857,406.857l0-128 q0-7.429 -5.429-12.857t-12.857-5.429l-128,0 q-12,0 -16.857,11.429q-4.857,11.143 4,19.714l 39.429,39.429q-42.286,39.143 -99.714,39.143q-29.714,0 -56.714-11.571t-46.714-31.286t-31.286-46.714t-11.571-56.714t 11.571-56.714t 31.286-46.714t 46.714-31.286t 56.714-11.571q 48.286,0 86.857,28.429t 52.857,74.714q 2,6.571 8.571,6.571l 56.857,0 q 4.571,0 7.143-3.429q 2.857-3.714 2-7.714q-11.143-50 -42.143-89.143t-76-60.857t-96.143-21.714q-44.571,0 -85.143,17.429t-70,46.857t-46.857,70t-17.429,85.143t 17.429,85.143t 46.857,70t 70,46.857t 85.143,17.429q 42,0 81.286-15.857t 69.857-44.714l 37.143,36.857q 8.286,8.857 20,4q 11.143-4.857 11.143-16.857z" horiz-adv-x="438.857" />
|
||||
<glyph unicode="" d="M 438.857,96l0-36.571 q0-7.429 -5.429-12.857t-12.857-5.429l-402.286,0 q-7.429,0 -12.857,5.429t-5.429,12.857l0,36.571 q0,7.429 5.429,12.857t 12.857,5.429l 402.286,0 q 7.429,0 12.857-5.429t 5.429-12.857zM 438.857,242.286l0-36.571 q0-7.429 -5.429-12.857t-12.857-5.429l-402.286,0 q-7.429,0 -12.857,5.429t-5.429,12.857l0,36.571 q0,7.429 5.429,12.857t 12.857,5.429l 402.286,0 q 7.429,0 12.857-5.429t 5.429-12.857zM 438.857,388.571l0-36.571 q0-7.429 -5.429-12.857 t-12.857-5.429l-402.286,0 q-7.429,0 -12.857,5.429t-5.429,12.857l0,36.571 q0,7.429 5.429,12.857t 12.857,5.429l 402.286,0 q 7.429,0 12.857-5.429t 5.429-12.857z" horiz-adv-x="438.857" />
|
||||
<glyph unicode="" d="M 512,96q0-53 -37.5-90.5t-90.5-37.5q-51.5,0 -88.5,35.5q-20.5-3.5 -39.5-3.5q-45.5,0 -87,17.75t-71.5,47.75t-47.75,71.5t-17.75,87q0,18.5 3.5,39.5q-35.5,37 -35.5,88.5q0,53 37.5,90.5t 90.5,37.5q 51.5,0 88.5-35.5q 20.5,3.5 39.5,3.5q 45.5,0 87-17.75t 71.5-47.75t 47.75-71.5t 17.75-87q0-19 -3.5-39.5q 35.5-37 35.5-88.5
|
||||
zM 256,320q 26.5,0 45.25-9.25t 18.75-22.5t 9.5-22.75t 22.75-9.5t 22.5,9.5t 9.25,22.5q0,40 -37.5,68t-90.5,28t-90.5-28t-37.5-68t 37.5-68t 90.5-28q 26.5,0 45.25-9.25t 18.75-22.75t-18.75-22.75t-45.25-9.25t-45.25,9.5t-18.75,22.75t-9.25,22.5t-22.5,9.25t-22.75-9.25t-9.5-22.75q0-40 37.5-68t 90.5-28
|
||||
t 90.5,28t 37.5,68t-37.5,68t-90.5,28q-26.5,0 -45.25,9.5t-18.75,22.75t 18.75,22.5t 45.25,9.25z" />
|
||||
<glyph unicode="" d="M 156.39,456.909L 10.24,365.875l 100.122-83.942L 256,376.525L 156.39,456.909z M 344.371,70.554c-2.611,0-5.197,0.896-7.296,2.662L 256,140.442
|
||||
l-81.075-67.251c-2.099-1.741-4.71-2.662-7.296-2.662c-2.176,0-4.352,0.589-6.246,1.843l-60.058,39.296l0-23.194 L 256-8.909l 154.675,97.408
|
||||
l0,23.194 l-60.058-39.296C 348.723,71.142, 346.547,70.554, 344.371,70.554z M 501.76,365.875l-146.15,91.034L 256,376.525l 145.613-94.566L 501.76,365.875z
|
||||
M 256,190.95l 90.291-74.957l 144.435,94.413l-89.088,71.526L 256,190.95z M 165.709,115.994L 256,190.95L 110.387,281.958l-89.088-71.552L 165.709,115.994z" />
|
||||
<glyph unicode=" " horiz-adv-x="256" />
|
||||
</font></defs></svg>
|
||||
|
After Width: | Height: | Size: 49 KiB |
BIN
rainloop/v/1.2.5.406/static/css/fonts/icomoon.ttf
Normal file
BIN
rainloop/v/1.2.5.406/static/css/fonts/icomoon.woff
Normal file
BIN
rainloop/v/1.2.5.406/static/css/images/editor.png
Normal file
|
After Width: | Height: | Size: 8.2 KiB |
BIN
rainloop/v/1.2.5.406/static/css/images/empty-contact.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
rainloop/v/1.2.5.406/static/css/images/grey.png
Normal file
|
After Width: | Height: | Size: 109 B |
|
After Width: | Height: | Size: 244 B |
BIN
rainloop/v/1.2.5.406/static/css/images/loader-black.gif
Normal file
|
After Width: | Height: | Size: 404 B |
BIN
rainloop/v/1.2.5.406/static/css/images/loader-white.gif
Normal file
|
After Width: | Height: | Size: 404 B |
BIN
rainloop/v/1.2.5.406/static/css/images/sync.gif
Normal file
|
After Width: | Height: | Size: 847 B |
BIN
rainloop/v/1.2.5.406/static/css/images/sync.png
Normal file
|
After Width: | Height: | Size: 356 B |
BIN
rainloop/v/1.2.5.406/static/css/images/white.png
Normal file
|
After Width: | Height: | Size: 110 B |
BIN
rainloop/v/1.2.5.406/static/css/select2-spinner.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
rainloop/v/1.2.5.406/static/css/select2.png
Normal file
|
After Width: | Height: | Size: 613 B |
BIN
rainloop/v/1.2.5.406/static/css/select2x2.png
Normal file
|
After Width: | Height: | Size: 845 B |
BIN
rainloop/v/1.2.5.406/static/favicon.ico
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
rainloop/v/1.2.5.406/static/favicon.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
143
rainloop/v/1.2.5.406/static/js/admin.min.js
vendored
Normal file
|
|
@ -0,0 +1,143 @@
|
|||
(function(h,j,d,ja,y,i){function o(){this.sBase="#/";this.sCdnStaticDomain=f.settingsGet("CdnStaticDomain");this.sVersion=f.settingsGet("Version");this.sIndexFile=f.settingsGet("IndexFile");this.sSpecSuffix=f.settingsGet("AuthAccountHash")||"0";this.sServer=null===this.sIndexFile?"?":this.sIndexFile+"?";this.sCdnStaticDomain=""===this.sCdnStaticDomain?this.sCdnStaticDomain:"/"===this.sCdnStaticDomain.substr(-1)?this.sCdnStaticDomain:this.sCdnStaticDomain+"/"}function L(){}function M(){}function N(){var a=
|
||||
i.find([M,L],function(a){return a.supported()});a&&(this.oDriver=new a)}function ka(){}function t(a,b){this.sPosition=c.pString(a);this.sTemplate=c.pString(b);this.viewModelName="";this.viewModelVisibility=d.observable(!1);"Popups"===this.sPosition&&(this.modalVisibility=d.observable(!1));this.viewModelDom=null}function w(a,b){this.sScreenName=a;this.aViewModels=c.isArray(b)?b:[]}function m(){this.sDefaultScreenName="";this.oScreens={};this.oCurrentScreen=this.oBoot=null;this.popupVisibility=d.observable(!1);
|
||||
this.popupVisibility.subscribe(function(a){f&&f.popupVisibility(a)})}function r(a,b){this.email=a||"";this.name=b||"";this.privateType=null;this.clearDuplicateName()}function B(){t.call(this,"Popups","PopupsDomain");this.edit=d.observable(!1);this.saving=d.observable(!1);this.savingError=d.observable("");this.testing=d.observable(!1);this.testingDone=d.observable(!1);this.testingImapError=d.observable(!1);this.testingSmtpError=d.observable(!1);this.imapServerFocus=d.observable(!1);this.smtpServerFocus=
|
||||
d.observable(!1);this.name=d.observable("");this.imapServer=d.observable("");this.imapPort=d.observable(l.Values.ImapDefaulPort);this.imapSecure=d.observable(g.ServerSecure.None);this.smtpServer=d.observable("");this.smtpPort=d.observable(l.Values.SmtpDefaulPort);this.smtpSecure=d.observable(g.ServerSecure.None);this.smtpAuth=d.observable(!0);this.imapServerFocus.subscribe(function(a){a&&(""!==this.name()&&""===this.imapServer())&&this.imapServer(this.name())},this);this.smtpServerFocus.subscribe(function(a){a&&
|
||||
(""!==this.imapServer()&&""===this.smtpServer())&&this.smtpServer(this.imapServer())},this);this.headerText=d.computed(function(){var a=this.name();return this.edit()?'Edit Domain "'+a+'"':"Add Domain"+(""===a?"":' "'+a+'"')},this);this.domainIsComputed=d.computed(function(){return""!==this.name()&&""!==this.imapServer()&&""!==this.imapPort()&&""!==this.smtpServer()&&""!==this.smtpPort()},this);this.canBeTested=d.computed(function(){return!this.testing()&&this.domainIsComputed()},this);this.canBeSaved=
|
||||
d.computed(function(){return!this.saving()&&this.domainIsComputed()},this);this.createOrAddCommand=c.createCommand(this,function(){this.saving(!0);f.remote().createOrUpdateDomain(i.bind(this.onDomainCreateOrSaveResponse,this),!this.edit(),this.name(),this.imapServer(),this.imapPort(),this.imapSecure(),this.smtpServer(),this.smtpPort(),this.smtpSecure(),this.smtpAuth())},this.canBeSaved);this.testConnectionCommand=c.createCommand(this,function(){this.testingDone(!1);this.testingImapError(!1);this.testingSmtpError(!1);
|
||||
this.testing(!0);f.remote().testConnectionForDomain(i.bind(this.onTestConnectionResponse,this),this.imapServer(),this.imapPort(),this.imapSecure(),this.smtpServer(),this.smtpPort(),this.smtpSecure(),this.smtpAuth())},this.canBeTested)}function O(){t.call(this,"Popups","PopupsPlugin");this.onPluginSettingsUpdateResponse=i.bind(this.onPluginSettingsUpdateResponse,this);this.saveError=d.observable("");this.name=d.observable("");this.readme=d.observable("");this.configures=d.observableArray([]);this.hasReadme=
|
||||
d.computed(function(){return""!==this.readme()},this);this.hasConfiguration=d.computed(function(){return 0<this.configures().length},this);this.saveCommand=c.createCommand(this,function(){var a={};a.Name=this.name();i.each(this.configures(),function(b){var e=b.value();if(!1===e||!0===e)e=e?"1":"0";a["_"+b.Name]=e},this);this.saveError("");f.remote().pluginSettingsUpdate(this.onPluginSettingsUpdateResponse,a)},this.hasConfiguration)}function P(){t.call(this,"Popups","PopupsActivate");var a=this;this.domain=
|
||||
d.observable("");this.key=d.observable("");this.key.focus=d.observable(!1);this.activationSuccessed=d.observable(!1);this.licenseTrigger=f.data().licenseTrigger;this.activateProcess=d.observable(!1);this.activateText=d.observable("");this.activateText.isError=d.observable(!1);this.key.subscribe(function(){this.activateText("");this.activateText.isError(!1)},this);this.activationSuccessed.subscribe(function(a){a&&this.licenseTrigger(!this.licenseTrigger())},this);this.activateCommand=c.createCommand(this,
|
||||
function(){this.activateProcess(!0);this.validateSubscriptionKey()?f.remote().licensingActivate(function(b,e){a.activateProcess(!1);g.StorageResultType.Success===b&&e.Result?!0===e.Result?(a.activationSuccessed(!0),a.activateText("Subscription Key Activated Successfully"),a.activateText.isError(!1)):(a.activateText(e.Result),a.activateText.isError(!0)):(e.ErrorCode?a.activateText(c.getNotification(e.ErrorCode)):a.activateText(c.getNotification(g.Notification.UnknownError)),a.activateText.isError(!1))},
|
||||
this.domain(),this.key()):(this.activateProcess(!1),this.activateText("Invalid Subscription Key"),this.activateText.isError(!0))},function(){return!this.activateProcess()&&""!==this.domain()&&""!==this.key()&&!this.activationSuccessed()})}function Q(){t.call(this,"Right","AdminLogin");this.login=d.observable("");this.password=d.observable("");this.loginError=d.observable(!1);this.passwordError=d.observable(!1);this.loginFocus=d.observable(!1);this.login.subscribe(function(){this.loginError(!1)},this);
|
||||
this.password.subscribe(function(){this.passwordError(!1)},this);this.submitRequest=d.observable(!1);this.submitError=d.observable("");this.submitCommand=c.createCommand(this,function(){this.loginError(""===c.trim(this.login()));this.passwordError(""===c.trim(this.password()));if(this.loginError()||this.passwordError())return!1;this.submitRequest(!0);f.remote().adminLogin(i.bind(function(a,b){g.StorageResultType.Success===a&&b&&"AdminLogin"===b.Action?b.Result?f.loginAndLogoutReload():b.ErrorCode&&
|
||||
(this.submitRequest(!1),this.submitError(c.getNotification(b.ErrorCode))):(this.submitRequest(!1),this.submitError(c.getNotification(g.Notification.UnknownError)))},this),this.login(),this.password());return!0},function(){return!this.submitRequest()})}function W(a){t.call(this,"Left","AdminMenu");this.menu=a.menu}function X(){t.call(this,"Right","AdminPane");this.adminDomain=d.observable(f.settingsGet("AdminDomain"))}function la(){var a=f.data();this.mainLanguage=a.mainLanguage;this.mainTheme=a.mainTheme;
|
||||
this.language=a.language;this.theme=a.theme;this.allowCustomTheme=a.allowCustomTheme;this.allowAdditionalAccounts=a.allowAdditionalAccounts;this.title=d.observable(f.settingsGet("Title"));this.themesOptions=d.computed(function(){return i.map(a.themes(),function(a){return{optValue:a,optText:c.convertThemeName(a)}})});this.languagesOptions=d.computed(function(){return i.map(a.languages(),function(a){return{optValue:a,optText:c.i18n("LANGS_NAMES/LANG_"+a.toUpperCase(),null,a)}})});this.contactsSupported=
|
||||
f.settingsGet("ContactsIsSupported");this.titleTrigger=d.observable(g.SaveSettingsStep.Idle);this.languageTrigger=d.observable(g.SaveSettingsStep.Idle);this.themeTrigger=d.observable(g.SaveSettingsStep.Idle)}function z(){var a=f.data();this.domains=a.domains;this.domainsLoading=a.domainsLoading;this.iDomainForDeletionTimeout=0;this.visibility=d.computed(function(){return a.domainsLoading()?"visible":"hidden"},this);this.domainForDeletion=d.observable(null).extend({toggleSubscribe:[this,function(a){a&&
|
||||
a.deleteAccess(!1)},function(a){a&&(a.deleteAccess(!0),this.startDomainForDeletionTimeout())}]})}function I(){this.licensing=f.data().licensing;this.licensingProcess=f.data().licensingProcess;this.licenseValid=f.data().licenseValid;this.licenseExpired=f.data().licenseExpired;this.licenseError=f.data().licenseError;this.licenseTrigger=f.data().licenseTrigger;this.adminDomain=d.observable("");this.licenseTrigger.subscribe(function(){f.reloadLicensing(!0)},this)}function J(){this.csrfProtection=d.observable(!!f.settingsGet("UseTokenProtection"));
|
||||
this.adminLogin=d.observable(f.settingsGet("AdminLogin"));this.adminPassword=d.observable("");this.adminPasswordNew=d.observable("");this.adminPasswordUpdateError=d.observable(!1);this.adminPasswordUpdateSuccess=d.observable(!1);this.adminPassword.subscribe(function(){this.adminPasswordUpdateError(!1);this.adminPasswordUpdateSuccess(!1)},this);this.adminPasswordNew.subscribe(function(){this.adminPasswordUpdateError(!1);this.adminPasswordUpdateSuccess(!1)},this);this.onNewAdminPasswordResponse=i.bind(this.onNewAdminPasswordResponse,
|
||||
this);this.saveNewAdminPasswordCommand=c.createCommand(this,function(){this.adminPasswordUpdateError(!1);this.adminPasswordUpdateSuccess(!1);f.remote().saveNewAdminPassword(this.onNewAdminPasswordResponse,{Password:this.adminPassword(),NewPassword:this.adminPasswordNew()})},function(){return""!==this.adminPassword()&&""!==this.adminPasswordNew()})}function ma(){var a=f.data();this.googleEnable=a.googleEnable;this.googleClientID=a.googleClientID;this.googleClientSecret=a.googleClientSecret;this.googleTrigger1=
|
||||
d.observable(g.SaveSettingsStep.Idle);this.googleTrigger2=d.observable(g.SaveSettingsStep.Idle);this.facebookEnable=a.facebookEnable;this.facebookAppID=a.facebookAppID;this.facebookAppSecret=a.facebookAppSecret;this.facebookTrigger1=d.observable(g.SaveSettingsStep.Idle);this.facebookTrigger2=d.observable(g.SaveSettingsStep.Idle);this.twitterEnable=a.twitterEnable;this.twitterConsumerKey=a.twitterConsumerKey;this.twitterConsumerSecret=a.twitterConsumerSecret;this.twitterTrigger1=d.observable(g.SaveSettingsStep.Idle);
|
||||
this.twitterTrigger2=d.observable(g.SaveSettingsStep.Idle);this.dropboxEnable=a.dropboxEnable;this.dropboxApiKey=a.dropboxApiKey;this.dropboxTrigger1=d.observable(g.SaveSettingsStep.Idle)}function C(){var a=f.data();this.enabledPlugins=d.observable(!!f.settingsGet("EnabledPlugins"));this.pluginsError=d.observable("");this.plugins=a.plugins;this.pluginsLoading=a.pluginsLoading;this.visibility=d.computed(function(){return a.pluginsLoading()?"visible":"hidden"},this);this.onPluginLoadRequest=i.bind(this.onPluginLoadRequest,
|
||||
this);this.onPluginDisableRequest=i.bind(this.onPluginDisableRequest,this)}function E(){var a=f.data();this.packagesError=d.observable("");this.packages=a.packages;this.packagesLoading=a.packagesLoading;this.packagesReal=a.packagesReal;this.packagesMainUpdatable=a.packagesMainUpdatable;this.packagesCurrent=d.computed(function(){return i.filter(this.packages(),function(a){return a&&""!==a.installed&&!a.compare})},this);this.packagesAvailableForUpdate=d.computed(function(){return i.filter(this.packages(),
|
||||
function(a){return a&&""!==a.installed&&!!a.compare})},this);this.packagesAvailableForInstallation=d.computed(function(){return i.filter(this.packages(),function(a){return a&&""===a.installed})},this);this.visibility=d.computed(function(){return a.packagesLoading()?"visible":"hidden"},this)}function Y(){c.initDataConstructorBySettings(this)}function Z(){c.initDataConstructorBySettings(this);this.domainsLoading=d.observable(!1).extend({throttle:100});this.domains=d.observableArray([]);this.pluginsLoading=
|
||||
d.observable(!1).extend({throttle:100});this.plugins=d.observableArray([]);this.packagesReal=d.observable(!0);this.packagesMainUpdatable=d.observable(!0);this.packagesLoading=d.observable(!1).extend({throttle:100});this.packages=d.observableArray([]);this.licensing=d.observable(!1);this.licensingProcess=d.observable(!1);this.licenseValid=d.observable(!1);this.licenseExpired=d.observable(0);this.licenseError=d.observable("");this.licenseTrigger=d.observable(!1)}function D(){this.oRequests={}}function p(){this.oRequests=
|
||||
{};this.oRequests={}}function A(){this.oEmailsPicsHashes={};this.oServices={}}function na(){A.call(this)}function F(a){w.call(this,"settings",a);this.menu=d.observableArray([]);this.oCurrentSubScreen=null}function aa(){w.call(this,"login",[Q])}function ba(){F.call(this,[W,X])}function u(){this.oLocal=this.oLink=this.oPlugins=this.oSettings=null;this.isLocalAutocomplete=!0;this.popupVisibility=d.observable(!1);this.iframe=j('<iframe style="display:none" src="javascript:;" />').appendTo("body");G.on("error",
|
||||
function(a){f&&(a&&a.originalEvent&&a.originalEvent.message)&&(c.log(""+a.originalEvent.message+" ("+a.originalEvent.filename+":"+a.originalEvent.lineno+")"),f.remote().jsError(c.emptyFunction,a.originalEvent.message,a.originalEvent.filename,a.originalEvent.lineno))})}function v(){u.call(this);this.oCache=this.oRemote=this.oData=null}var l={},g={},k={},c={},n={},ca=d.observable(!0),R=d.observable(!0),s=null,S=h.rainloopAppData||{},da=h.rainloopI18N||{},ea=j("html"),G=j(h),pa=j(h.document),T=[],fa=
|
||||
[],ga=[],U=h.Notification&&h.Notification.requestPermission?h.Notification:null,H=(navigator.userAgent||"").toLowerCase(),oa=-1<H.indexOf("iphone")||-1<H.indexOf("ipod")||-1<H.indexOf("ipad"),H=-1<H.indexOf("android"),K=oa||H;ea.addClass(K?"mobile":"no-mobile");var f=null;l.Defaults={};l.Values={};l.DataImages={};l.Defaults.MessagesPerPage=25;l.Defaults.DefaultAjaxTimeout=2E4;l.Defaults.SearchAjaxTimeout=12E4;l.Defaults.SendMessageAjaxTimeout=2E5;l.Defaults.SaveMessageAjaxTimeout=2E5;l.Values.UnuseOptionValue=
|
||||
"__UNUSE__";l.Values.GmailFolderName="[Gmail]";l.Values.ClientSideCookieIndexName="rlcsc";l.Values.ImapDefaulPort=143;l.Values.ImapDefaulSecurePort=993;l.Values.SmtpDefaulPort=25;l.Values.SmtpDefaulSecurePort=465;l.DataImages.UserDotPic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2P8DwQACgAD/il4QJ8AAAAASUVORK5CYII=";l.DataImages.TranspPic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2NkAAIAAAoAAggA9GkAAAAASUVORK5CYII=";g.StorageResultType=
|
||||
{Success:"success",Abort:"abort",Error:"error"};g.State={Empty:10,Login:20,Auth:30};g.StateType={Webmail:0,Admin:1};g.FolderType={Inbox:10,SentItems:11,Draft:12,Trash:13,Spam:14,User:99};g.LoginSignMeTypeAsString={DefaultOff:"defaultoff",DefaultOn:"defaulton",Unused:"unused"};g.LoginSignMeType={DefaultOff:0,DefaultOn:1,Unused:2};g.ComposeType={Empty:"empty",Reply:"reply",ReplyAll:"replyall",Forward:"forward",ForwardAsAttachment:"forward-as-attachment",Draft:"draft"};g.UploadErrorCode={Normal:0,FileIsTooBig:1,
|
||||
FilePartiallyUploaded:2,FileNoUploaded:3,MissingTempFolder:4,FileOnSaveingError:5,FileType:98,Unknown:99};g.SetSystemFoldersNotification={None:0,Sent:1,Draft:2,Spam:3,Trash:4};g.ClientSideKeyName={FoldersLashHash:0,MessagesInboxLastHash:1,MailBoxListSize:2,ExpandedFolders:3};g.EventKeyCode={Backspace:8,Enter:13,Esc:27,PageUp:33,PageDown:34,Left:37,Right:39,Up:38,Down:40,End:35,Home:36,Insert:45,Delete:46,A:65,S:83};g.MessageSetAction={SetSeen:0,UnsetSeen:1,SetFlag:2,UnsetFlag:3};g.MessageSelectAction=
|
||||
{All:0,None:1,Invert:2,Unseen:3,Seen:4,Flagged:5,Unflagged:6};g.DesctopNotifications={Allowed:0,NotAllowed:1,Denied:2,NotSupported:9};g.MessagePriority={Low:5,Normal:3,High:1};g.EditorDefaultType={Html:"Html",Plain:"Plain"};g.CustomThemeType={Light:"Light",Dark:"Dark"};g.ServerSecure={None:0,SSL:1,TLS:2};g.SearchDateType={All:-1,Days3:3,Days7:7,Month:30};g.EmailType={Defailt:0,Facebook:1,Google:2};g.SaveSettingsStep={Animate:-2,Idle:-1,TrueResult:1,FalseResult:0};g.Notification={InvalidToken:101,
|
||||
AuthError:102,AccessError:103,ConnectionError:104,CaptchaError:105,SocialFacebookLoginAccessDisable:106,SocialTwitterLoginAccessDisable:107,SocialGoogleLoginAccessDisable:108,DomainNotAllowed:109,CantGetMessageList:201,CantGetMessage:202,CantDeleteMessage:203,CantMoveMessage:204,CantSaveMessage:301,CantSendMessage:302,InvalidRecipients:303,CantCreateFolder:400,CantRenameFolder:401,CantDeleteFolder:402,CantSubscribeFolder:403,CantUnsubscribeFolder:404,CantDeleteNonEmptyFolder:405,CantSaveSettings:501,
|
||||
CantSavePluginSettings:502,DomainAlreadyExists:601,CantInstallPackage:701,CantDeletePackage:702,InvalidPluginPackage:703,UnsupportedPluginPackage:704,LicensingServerIsUnavailable:710,LicensingExpired:711,LicensingBanned:712,AccountAlreadyExists:801,MailServerError:901,UnknownError:999};c.trim=j.trim;c.inArray=j.inArray;c.isArray=i.isArray;c.isFunc=i.isFunction;c.isUnd=i.isUndefined;c.isNull=i.isNull;c.emptyFunction=function(){};c.isNormal=function(a){return!c.isUnd(a)&&!c.isNull(a)};c.windowResize=
|
||||
i.debounce(function(a){c.isUnd(a)?G.resize():h.setTimeout(function(){G.resize()},a)},50);c.isPosNumeric=function(a,b){return c.isNormal(a)?c.isUnd(b)||b?/^[0-9]*$/.test(a.toString()):/^[1-9]+[0-9]*$/.test(a.toString()):!1};c.pInt=function(a){return c.isNormal(a)&&""!==a?h.parseInt(a,10):0};c.pString=function(a){return c.isNormal(a)?a+"":""};c.isNonEmptyArray=function(a){return c.isArray(a)&&0<a.length};c.exportPath=function(a,b,e){for(var q=null,a=a.split("."),e=e||h;a.length&&(q=a.shift());)!a.length&&
|
||||
!c.isUnd(b)?e[q]=b:e=e[q]?e[q]:e[q]={}};c.pImport=function(a,b,e){a[b]=e};c.pExport=function(a,b,e){return c.isUnd(a[b])?e:a[b]};c.encodeHtml=function(a){return c.isNormal(a)?a.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):""};c.splitPlainText=function(a,b){for(var e="",q="",d=a,f=0,g=0,b=c.isUnd(b)?100:b;d.length>b;)q=d.substring(0,b),f=q.lastIndexOf(" "),g=q.lastIndexOf("\n"),-1!==g&&(f=g),-1===f&&(f=b),e+=q.substring(0,
|
||||
f)+"\n",d=d.substring(f+1);return e+d};var V={};c.timeOutAction=function(a,b,e){c.isUnd(V[a])&&(V[a]=0);h.clearTimeout(V[a]);V[a]=h.setTimeout(b,e)};var ia={};c.timeOutActionSecond=function(a,b,e){ia[a]||(ia[a]=h.setTimeout(function(){b();ia[a]=0},e))};var x=!1;c.audio=function(a,b){if(!1===x)if(oa)x=null;else{var e=!1,c=!1,d=h.Audio?new h.Audio:null;d&&d.canPlayType&&d.play?((e=""!==d.canPlayType('audio/mpeg; codecs="mp3"'))||(c=""!==d.canPlayType('audio/ogg; codecs="vorbis"')),e||c?(x=d,x.preload=
|
||||
"none",x.loop=!1,x.autoplay=!1,x.muted=!1,x.src=e?a:b):x=null):x=null}return x};c.hos=function(a,b){return a&&Object.hasOwnProperty?Object.hasOwnProperty.call(a,b):!1};c.i18n=function(a,b,e){var d="",a=c.isUnd(da[a])?c.isUnd(e)?a:e:da[a];if(!c.isUnd(b)&&!c.isNull(b))for(d in b)c.hos(b,d)&&(a=a.replace("%"+d+"%",b[d]));return a};c.i18nToNode=function(a){i.defer(function(){j(".i18n",a).each(function(){var a=j(this),e="";(e=a.data("i18n-text"))?a.text(c.i18n(e)):((e=a.data("i18n-html"))&&a.html(c.i18n(e)),
|
||||
(e=a.data("i18n-placeholder"))&&a.attr("placeholder",c.i18n(e)))})})};c.i18nToDoc=function(){h.rainloopI18N&&(da=h.rainloopI18N||{},c.i18nToNode(pa),R(!R()));h.rainloopI18N={}};c.initOnStartOrLangChange=function(a,b,e){a&&a.call(b);e?R.subscribe(function(){a&&a.call(b);e.call(b)}):a&&R.subscribe(a,b)};c.inFocus=function(){var a=document.activeElement;return a&&("INPUT"===a.tagName||"TEXTAREA"===a.tagName||"IFRAME"===a.tagName||"DIV"===a.tagName&&"editorHtmlArea"===a.className&&a.contentEditable)};
|
||||
c.removeInFocus=function(){if(document&&document.activeElement&&document.activeElement.blur){var a=j(document.activeElement);(a.is("input")||a.is("textarea"))&&document.activeElement.blur()}};c.removeSelection=function(){if(h&&h.getSelection){var a=h.getSelection();a&&a.removeAllRanges&&a.removeAllRanges()}else document&&(document.selection&&document.selection.empty)&&document.selection.empty()};c.replySubjectAdd=function(a,b){var e=null,d=c.trim(b);null!==(e=(new h.RegExp("^"+a+"[\\s]?\\:(.*)$",
|
||||
"gi")).exec(b))&&!c.isUnd(e[1])?d=a+"[2]: "+e[1]:null!==(e=(new h.RegExp("^("+a+"[\\s]?[\\[\\(]?)([\\d]+)([\\]\\)]?[\\s]?\\:.*)$","gi")).exec(b))&&!c.isUnd(e[1])&&!c.isUnd(e[2])&&!c.isUnd(e[3])?(c.pInt(e[2]),d=e[1]+(c.pInt(e[2])+1)+e[3]):d=a+": "+b;return d};c.roundNumber=function(a,b){return Math.round(a*Math.pow(10,b))/Math.pow(10,b)};c.friendlySize=function(a){a=c.pInt(a);return 1073741824<=a?c.roundNumber(a/1073741824,1)+"GB":1048576<=a?c.roundNumber(a/1048576,1)+"MB":1024<=a?c.roundNumber(a/
|
||||
1024,0)+"KB":a+"B"};c.log=function(a){h.console&&h.console.log&&h.console.log(a)};c.getNotification=function(a){a=c.pInt(a);return c.isUnd(k[a])?"":k[a]};c.initNotificationLanguage=function(){k[g.Notification.InvalidToken]=c.i18n("NOTIFICATIONS/INVALID_TOKEN");k[g.Notification.AuthError]=c.i18n("NOTIFICATIONS/AUTH_ERROR");k[g.Notification.AccessError]=c.i18n("NOTIFICATIONS/ACCESS_ERROR");k[g.Notification.ConnectionError]=c.i18n("NOTIFICATIONS/CONNECTION_ERROR");k[g.Notification.CaptchaError]=c.i18n("NOTIFICATIONS/CAPTCHA_ERROR");
|
||||
k[g.Notification.SocialFacebookLoginAccessDisable]=c.i18n("NOTIFICATIONS/SOCIAL_FACEBOOK_LOGIN_ACCESS_DISABLE");k[g.Notification.SocialTwitterLoginAccessDisable]=c.i18n("NOTIFICATIONS/SOCIAL_TWITTER_LOGIN_ACCESS_DISABLE");k[g.Notification.SocialGoogleLoginAccessDisable]=c.i18n("NOTIFICATIONS/SOCIAL_GOOGLE_LOGIN_ACCESS_DISABLE");k[g.Notification.DomainNotAllowed]=c.i18n("NOTIFICATIONS/DOMAIN_NOT_ALLOWED");k[g.Notification.CantGetMessageList]=c.i18n("NOTIFICATIONS/CANT_GET_MESSAGE_LIST");k[g.Notification.CantGetMessage]=
|
||||
c.i18n("NOTIFICATIONS/CANT_GET_MESSAGE");k[g.Notification.CantDeleteMessage]=c.i18n("NOTIFICATIONS/CANT_DELETE_MESSAGE");k[g.Notification.CantMoveMessage]=c.i18n("NOTIFICATIONS/CANT_MOVE_MESSAGE");k[g.Notification.CantSaveMessage]=c.i18n("NOTIFICATIONS/CANT_SAVE_MESSAGE");k[g.Notification.CantSendMessage]=c.i18n("NOTIFICATIONS/CANT_SEND_MESSAGE");k[g.Notification.InvalidRecipients]=c.i18n("NOTIFICATIONS/INVALID_RECIPIENTS");k[g.Notification.CantCreateFolder]=c.i18n("NOTIFICATIONS/CANT_CREATE_FOLDER");
|
||||
k[g.Notification.CantRenameFolder]=c.i18n("NOTIFICATIONS/CANT_RENAME_FOLDER");k[g.Notification.CantDeleteFolder]=c.i18n("NOTIFICATIONS/CANT_DELETE_FOLDER");k[g.Notification.CantDeleteNonEmptyFolder]=c.i18n("NOTIFICATIONS/CANT_DELETE_NON_EMPTY_FOLDER");k[g.Notification.CantSubscribeFolder]=c.i18n("NOTIFICATIONS/CANT_SUBSCRIBE_FOLDER");k[g.Notification.CantUnsubscribeFolder]=c.i18n("NOTIFICATIONS/CANT_UNSUBSCRIBE_FOLDER");k[g.Notification.CantSaveSettings]=c.i18n("NOTIFICATIONS/CANT_SAVE_SETTINGS");
|
||||
k[g.Notification.CantSavePluginSettings]=c.i18n("NOTIFICATIONS/CANT_SAVE_PLUGIN_SETTINGS");k[g.Notification.DomainAlreadyExists]=c.i18n("NOTIFICATIONS/DOMAIN_ALREADY_EXISTS");k[g.Notification.CantInstallPackage]=c.i18n("NOTIFICATIONS/CANT_INSTALL_PACKAGE");k[g.Notification.CantDeletePackage]=c.i18n("NOTIFICATIONS/CANT_DELETE_PACKAGE");k[g.Notification.InvalidPluginPackage]=c.i18n("NOTIFICATIONS/INVALID_PLUGIN_PACKAGE");k[g.Notification.UnsupportedPluginPackage]=c.i18n("NOTIFICATIONS/UNSUPPORTED_PLUGIN_PACKAGE");
|
||||
k[g.Notification.LicensingServerIsUnavailable]=c.i18n("NOTIFICATIONS/LICENSING_SERVER_IS_UNAVAILABLE");k[g.Notification.LicensingExpired]=c.i18n("NOTIFICATIONS/LICENSING_EXPIRED");k[g.Notification.LicensingBanned]=c.i18n("NOTIFICATIONS/LICENSING_BANNED");k[g.Notification.AccountAlreadyExists]=c.i18n("NOTIFICATIONS/ACCOUNT_ALREADY_EXISTS");k[g.Notification.MailServerError]=c.i18n("NOTIFICATIONS/MAIL_SERVER_ERROR");k[g.Notification.UnknownError]=c.i18n("NOTIFICATIONS/UNKNOWN_ERROR")};c.getUploadErrorDescByCode=
|
||||
function(a){var b="";switch(c.pInt(a)){case g.UploadErrorCode.FileIsTooBig:b=c.i18n("UPLOAD/ERROR_FILE_IS_TOO_BIG");break;case g.UploadErrorCode.FilePartiallyUploaded:b=c.i18n("UPLOAD/ERROR_FILE_PARTIALLY_UPLOADED");break;case g.UploadErrorCode.FileNoUploaded:b=c.i18n("UPLOAD/ERROR_NO_FILE_UPLOADED");break;case g.UploadErrorCode.MissingTempFolder:b=c.i18n("UPLOAD/ERROR_MISSING_TEMP_FOLDER");break;case g.UploadErrorCode.FileOnSaveingError:b=c.i18n("UPLOAD/ERROR_ON_SAVING_FILE");break;case g.UploadErrorCode.FileType:b=
|
||||
c.i18n("UPLOAD/ERROR_FILE_TYPE");break;default:b=c.i18n("UPLOAD/ERROR_UNKNOWN")}return b};c.killCtrlAandS=function(a){if(a=a||h.event){var b=a.target||a.srcElement,e=a.keyCode||a.which;if(a.ctrlKey&&e===g.EventKeyCode.S)a.preventDefault();else if((!b||!b.tagName||!b.tagName.match(/INPUT|TEXTAREA/i))&&a.ctrlKey&&e===g.EventKeyCode.A)h.getSelection?h.getSelection().removeAllRanges():h.document.selection&&h.document.selection.clear&&h.document.selection.clear(),a.preventDefault()}};c.createCommand=function(a,
|
||||
b,e){var q=b?function(){q.canExecute&&q.canExecute()&&b.apply(a,Array.prototype.slice.call(arguments));return!1}:function(){};q.enabled=d.observable(!0);e=c.isUnd(e)?!0:e;q.canExecute=c.isFunc(e)?d.computed(function(){return q.enabled()&&e.call(a)}):d.computed(function(){return q.enabled()&&!!e});return q};c.initDataConstructorBySettings=function(a){a.ignoreFolderSubscribe=d.observable(!1);a.editorDefaultType=d.observable(g.EditorDefaultType.Html);a.showImages=d.observable(!1);a.showAnimation=d.observable(!1);
|
||||
a.desktopNotifications=d.observable(!1);a.useThreads=d.observable(!0);a.replySameFolder=d.observable(!0);a.usePreviewPane=d.observable(!0);a.useCheckboxesInList=d.observable(!0);a.showAnimation.subscribe(function(a){K?ea.removeClass("rl-anim").addClass("no-rl-anim"):ea.toggleClass("rl-anim",a).toggleClass("no-rl-anim",!a)});a.showAnimation.valueHasMutated();a.desktopNotificationsPermisions=d.computed(function(){a.desktopNotifications();var b=g.DesctopNotifications.NotSupported;if(U&&U.permission)switch(U.permission.toLowerCase()){case "granted":b=
|
||||
g.DesctopNotifications.Allowed;break;case "denied":b=g.DesctopNotifications.Denied;break;case "default":b=g.DesctopNotifications.NotAllowed}else h.webkitNotifications&&h.webkitNotifications.checkPermission&&(b=h.webkitNotifications.checkPermission());return b});a.useDesktopNotifications=d.computed({read:function(){return a.desktopNotifications()&&g.DesctopNotifications.Allowed===a.desktopNotificationsPermisions()},write:function(b){b?(b=a.desktopNotificationsPermisions(),g.DesctopNotifications.Allowed===
|
||||
b?a.desktopNotifications(!0):g.DesctopNotifications.NotAllowed===b?U.requestPermission(function(){a.desktopNotifications.valueHasMutated();h.console.log(a.desktopNotificationsPermisions());g.DesctopNotifications.Allowed===a.desktopNotificationsPermisions()?a.desktopNotifications()?a.desktopNotifications.valueHasMutated():a.desktopNotifications(!0):a.desktopNotifications()?a.desktopNotifications(!1):a.desktopNotifications.valueHasMutated()}):a.desktopNotifications(!1)):a.desktopNotifications(!1)}});
|
||||
a.language=d.observable("");a.languages=d.observableArray([]);a.mainLanguage=d.computed({read:a.language,write:function(b){b!==a.language()?-1<c.inArray(b,a.languages())?a.language(b):0<a.languages().length&&a.language(a.languages()[0]):a.language.valueHasMutated()}});a.theme=d.observable("");a.themes=d.observableArray([]);a.mainTheme=d.computed({read:a.theme,write:function(b){if(b!==a.theme()){var e=a.themes();-1<c.inArray(b,e)?a.theme(b):0<e.length&&a.theme(e[0])}else a.theme.valueHasMutated()}});
|
||||
a.allowCustomTheme=d.observable(!0);a.allowAdditionalAccounts=d.observable(!0);a.messagesPerPage=d.observable(l.Defaults.MessagesPerPage);a.mainMessagesPerPage=a.messagesPerPage;a.mainMessagesPerPage=d.computed({read:a.messagesPerPage,write:function(b){-1<c.inArray(c.pInt(b),[10,20,30,50,100,150,200])?b!==a.messagesPerPage()&&a.messagesPerPage(b):a.messagesPerPage.valueHasMutated()}});a.facebookEnable=d.observable(!1);a.facebookAppID=d.observable("");a.facebookAppSecret=d.observable("");a.twitterEnable=
|
||||
d.observable(!1);a.twitterConsumerKey=d.observable("");a.twitterConsumerSecret=d.observable("");a.googleEnable=d.observable(!1);a.googleClientID=d.observable("");a.googleClientSecret=d.observable("");a.dropboxEnable=d.observable(!1);a.dropboxApiKey=d.observable("");a.contactsIsSupported=d.observable(!1)};c.createMomentDate=function(a){return d.computed(function(){ca();return this.moment().fromNow()},a)};c.createMomentShortDate=function(a){return d.computed(function(){var a="",a=moment(),e=this.moment(),
|
||||
d=this.momentDate();return a=4>=a.diff(e,"hours")?d:a.format("L")===e.format("L")?c.i18n("MESSAGE_LIST/TODAY_AT",{TIME:e.format("LT")}):a.clone().subtract("days",1).format("L")===e.format("L")?c.i18n("MESSAGE_LIST/YESTERDAY_IN",{TIME:e.format("LT")}):a.year()===e.year()?e.format("D MMM."):e.format("LL")},a)};c.isFolderExpanded=function(a){var b=f.local().get(g.ClientSideKeyName.ExpandedFolders);return i.isArray(b)&&-1!==i.indexOf(b,a)};c.setExpandedFolder=function(a,b){var e=f.local().get(g.ClientSideKeyName.ExpandedFolders);
|
||||
i.isArray(e)||(e=[]);b?(e.push(a),e=i.uniq(e)):e=i.without(e,a);f.local().set(g.ClientSideKeyName.ExpandedFolders,e)};c.initLayoutResizer=function(a,b,e,c){var d=j(a),ha=j(b),h=j(e),a=f.local().get(g.ClientSideKeyName.MailBoxListSize),k=function(a,b,e){if(b||e)a=h.width(),b=b?100*(b.size.width/a):null,null===b&&e&&(b=100*(d.width()/a)),null!==b&&(d.css({width:"",height:"",right:""+(100-b)+"%"}),ha.css({width:"",height:"",left:""+b+"%"}))};a&&d.width(a);d.resizable({minWidth:350,maxWidth:h.width()-
|
||||
250,handles:"e",resize:k,stop:k});k(null,null,!0);G.resize(i.throttle(function(a,b){if(c&&c()){var e=h.width();d.resizable("option","maxWidth",e-250);b&&(b.size&&b.size.width)&&f.local().set(g.ClientSideKeyName.MailBoxListSize,b.size.width);k(null,null,!0)}},400))};c.initBlockquoteSwitcher=function(a){if(a){var b=j("blockquote:not(.rl-bq-switcher)",a).filter(function(){return 0===j(this).parent().closest("blockquote",a).length});b&&0<b.length&&b.each(function(){var a=j(this),b=a.height();if(0===b||
|
||||
100<b)a.addClass("rl-bq-switcher hidden-bq"),j('<span class="rlBlockquoteSwitcher"><i class="icon-ellipsis" /></span>').insertBefore(a).click(function(){a.toggleClass("hidden-bq");c.windowResize()}).after("<br />").before("<br />")})}};c.removeBlockquoteSwitcher=function(a){a&&(j(a).find("blockquote.rl-bq-switcher").each(function(){j(this).removeClass("rl-bq-switcher hidden-bq")}),j(a).find(".rlBlockquoteSwitcher").each(function(){j(this).remove()}))};c.extendAsViewModel=function(a,b){b&&(b.__name=
|
||||
a,n.regViewModelHook(a,b),i.extend(b.prototype,t.prototype))};c.addSettingsViewModel=function(a,b,e,c,d){a.__rlSettingsData={Label:e,Template:b,Route:c,IsDefault:!!d};T.push(a)};c.removeSettingsViewModel=function(a){fa.push(a)};c.disableSettingsViewModel=function(a){ga.push(a)};c.convertThemeName=function(a){return c.trim(a.replace(/[^a-zA-Z]/g," ").replace(/([A-Z])/g," $1").replace(/[\s]+/g," "))};c.fakeMd5=function(a){for(var b="",a=c.isUnd(a)?32:c.pInt(a);b.length<a;)b+="0123456789abcdefghijklmnopqrstuvwxyz".substr(h.Math.round(36*
|
||||
h.Math.random()),1);return b};c.convertPlainTextToHtml=function(a){return a.toString().replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/\r/g,"").replace(/\n/g,"<br />")};c.draggeblePlace=function(){return j('<div class="draggablePlace"><span class="text"></span> <i class="icon-envelope icon-white"></i></div>').appendTo("#rl-hidden")};c.defautOptionsAfterRender=function(a,b){b&&!c.isUnd(b.disable)&&d.applyBindingsToNode(a,{disable:b.disable},b)};c.windowPopupKnockout=function(a,
|
||||
b,e,d){var f=null,g=h.open(""),i="__OpenerApplyBindingsUid"+c.fakeMd5()+"__",k=j("#"+b);h[i]=function(){if(g&&g.document.body&&k&&k[0]){var b=j(g.document.body);j("#rl-content",b).html(k.html());j("html",g.document).addClass("external "+j("html").attr("class"));c.i18nToNode(b);m.prototype.applyExternal(a,j("#rl-content",b)[0]);h[i]=null;d(g)}};g.document.open();g.document.write('<html><head><meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><meta name="viewport" content="user-scalable=no" /><meta name="apple-mobile-web-app-capable" content="yes" /><meta name="robots" content="noindex, nofollow, noodp" /><title>'+
|
||||
c.encodeHtml(e)+'</title></head><body><div id="rl-content"></div></body></html>');g.document.close();f=g.document.createElement("script");f.innerHTML="if(window&&window.opener&&window.opener['"+i+"']){window.opener['"+i+"']();window.opener['"+i+"']=null}";g.document.getElementsByTagName("head")[0].appendChild(f)};c.settingsSaveHelperFunction=function(a,b,e,d){e=e||null;d=c.isUnd(d)?1E3:c.pInt(d);return function(c,f,h,j,ra){b.call(e,f&&f.Result?g.SaveSettingsStep.TrueResult:g.SaveSettingsStep.FalseResult);
|
||||
a&&a.call(e,c,f,h,j,ra);i.delay(function(){b.call(e,g.SaveSettingsStep.Idle)},d)}};c.settingsSaveHelperSimpleFunction=function(a,b){return c.settingsSaveHelperFunction(null,a,b,1E3)};c.resizeAndCrop=function(a,b,e){var c=new Image;c.onload=function(){var a=[0,0],c=document.createElement("canvas"),d=c.getContext("2d");c.width=b;c.height=b;a=this.width>this.height?[this.width-this.height,0]:[0,this.height-this.width];d.fillStyle="#fff";d.fillRect(0,0,b,b);d.drawImage(this,a[0]/2,a[1]/2,this.width-a[0],
|
||||
this.height-a[1],0,0,b,b);e(c.toDataURL("image/jpeg"))};c.src=a};d.bindingHandlers.tooltip={init:function(a,b){if(!K){var e=j(a).data("tooltip-class")||"";j(a).tooltip({delay:{show:500,hide:100},html:!0,trigger:"hover",title:function(){return'<span class="tooltip-class '+e+'">'+c.i18n(d.utils.unwrapObservable(b()))+"</span>"}})}}};d.bindingHandlers.tooltip2={init:function(a,b){var c=j(a).data("tooltip-class")||"";j(a).tooltip({delay:{show:500,hide:100},html:!0,title:function(){return'<span class="tooltip-class '+
|
||||
c+'">'+b()()+"</span>"}})}};d.bindingHandlers.popover={init:function(a,b){var e=d.utils.unwrapObservable(b());j(a).popover({trigger:e[2]||"click",placement:e[3]||"right",title:function(){return c.i18n(e[0]||"")},content:function(){return c.i18n(e[1]||"")}})}};d.bindingHandlers.resizecrop={init:function(a){j(a).addClass("resizecrop").resizecrop({width:"100",height:"100",wrapperCSS:{"border-radius":"10px"}})},update:function(a,b){b()();j(a).resizecrop({width:"100",height:"100"})}};d.bindingHandlers.onEnter=
|
||||
{init:function(a,b,c,f){d.bindingHandlers.event.init(a,function(){return{keyup:function(c,e){e&&13===h.parseInt(e.keyCode,10)&&(j(a).trigger("change"),b().call(this,c))}}},c,f)}};d.bindingHandlers.onEsc={init:function(a,b,c,f){d.bindingHandlers.event.init(a,function(){return{keyup:function(c,e){e&&27===h.parseInt(e.keyCode,10)&&(j(a).trigger("change"),b().call(this,c))}}},c,f)}};d.bindingHandlers.modal={init:function(a,b){j(a).modal({keyboard:!1,show:d.utils.unwrapObservable(b())}).on("hidden",function(){b()(!1)})},
|
||||
update:function(a,b){var c=d.utils.unwrapObservable(b());j(a).modal(c?"show":"hide");i.delay(function(){j(a).toggleClass("popup-active",c)},1)}};d.bindingHandlers.onEnterChange={init:function(a,b,c,f){d.bindingHandlers.event.init(a,function(){return{keyup:function(b,c){c&&13===h.parseInt(c.keyCode,10)&&j(a).trigger("change")}}},c,f)}};d.bindingHandlers.i18nInit={init:function(a){c.i18nToNode(a)}};d.bindingHandlers.i18nUpdate={update:function(a,b){d.utils.unwrapObservable(b());c.i18nToNode(a)}};d.bindingHandlers.link=
|
||||
{update:function(a,b){j(a).attr("href",d.utils.unwrapObservable(b()))}};d.bindingHandlers.title={update:function(a,b){j(a).attr("title",d.utils.unwrapObservable(b()))}};d.bindingHandlers.textF={init:function(a,b){j(a).text(d.utils.unwrapObservable(b()))}};d.bindingHandlers.initDom={init:function(a,b){b()(a)}};d.bindingHandlers.initResizeTrigger={init:function(a,b){var c=d.utils.unwrapObservable(b());j(a).css({height:c[1],"min-height":c[1]})},update:function(a,b){var e=d.utils.unwrapObservable(b()),
|
||||
f=c.pInt(e[1]),g=0,g=j(a).offset().top;0<g&&(g+=c.pInt(e[2]),g=G.height()-g,f<g&&(f=g),j(a).css({height:f,"min-height":f}))}};d.bindingHandlers.appendDom={update:function(a,b){j(a).hide().empty().append(d.utils.unwrapObservable(b())).show()}};d.bindingHandlers.draggable={init:function(a,b){j(a).draggable({distance:20,handle:".dragHandle",cursorAt:{top:22,left:3},helper:function(a){return b()(a&&a.target?d.dataFor(a.target):null)}}).on("mousedown",function(){c.removeInFocus()})}};d.bindingHandlers.droppable=
|
||||
{init:function(a,b){var c=b();!1!==c&&j(a).droppable({tolerance:"pointer",hoverClass:"droppableHover",drop:function(a,b){c(a,b)}})}};d.bindingHandlers.nano={init:function(a){K||j(a).addClass("nano").nanoScroller({iOSNativeScrolling:!1,preventPageScrolling:!0})}};d.bindingHandlers.saveTrigger={init:function(a){j(a).append(' <i class="icon-spinner-2 animated"></i><i class="icon-remove error"></i><i class="icon-ok success"></i>').addClass("settings-saved-trigger")},update:function(a,b){var c=
|
||||
d.utils.unwrapObservable(b()),f=j(a);switch(c.toString()){case "1":f.find(".animated,.error").hide().removeClass("visible").end().find(".success").show().addClass("visible");break;case "0":f.find(".animated,.success").hide().removeClass("visible").end().find(".error").show().addClass("visible");break;case "-2":f.find(".error,.success").hide().removeClass("visible").end().find(".animated").show().addClass("visible");break;default:f.find(".animated").hide().end().find(".error,.success").removeClass("visible")}}};
|
||||
d.bindingHandlers.select2={init:function(a,b){var e=0,g=null,qa=new h.RegExp(/[a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+/),ha=new h.RegExp(/(.+) [<]?([^\s<@]+@[a-zA-Z0-9\.\-_]+)[>]?/),k=function(){return""},l=function(a){f.getAutocomplete(a.term,a.page,function(b,c){a.callback({more:!!c,results:i.map(b,function(a){var b=a.toLine(!1);return{id:b,text:b,c:a}})})})};j(a).addClass("ko-select2").select2({query:function(a){a&&(0===e?(l(a),e=h.setTimeout(c.emptyFunction,200)):(h.clearInterval(e),e=h.setTimeout(function(){l(a)},
|
||||
200)))},formatSelection:function(a,b){var c=a&&a.c?a.c.select2Selection(b):a.text;if(null!==c)return c},formatResult:function(a,b,c,e){b=a&&a.c?a.c.select2Result(b):"";return""===b?e(a.text):b},createSearchChoice:function(a,b){return 0===b.length&&qa.test(a)?{id:a,text:a}:null},formatNoMatches:k,formatSearching:function(){return c.i18n("SUGGESTIONS/SEARCHING_DESC")},formatInputTooShort:k,formatSelectionTooBig:k,multiple:!0,tokenSeparators:[",",";"],minimumInputLength:2,selectOnBlur:!1,closeOnSelect:!0,
|
||||
openOnEnter:!1});d.utils.domNodeDisposal.addDisposeCallback(a,function(){j(a).select2("destroy")});j(a).on("change",function(){for(var a=j(this).select2("data"),e=0,d=a.length,f=null,h=[];e<d;e++)if((f=a[e])&&f.id)f.c||(f.c=new r,(g=ha.exec(c.trim(f.id)))&&!c.isUnd(g[2])?(f.c.name=g[1],f.c.email=g[2]):f.c.email=f.id),h.push(f.c);b()(h)})},update:function(a,b){for(var c=d.utils.unwrapObservable(b()),f=0,g=c.length,h=null,i="",k=[];f<g;f++)h=c[f],i=h.toLine(!1),k.push({id:i,text:i,c:h});j(a).select2("data",
|
||||
k)}};d.bindingHandlers.command={init:function(a,b,c,f){var g=j(a),h=b();if(!h||!h.enabled||!h.canExecute)throw Error("You are not using command function");g.addClass("command");d.bindingHandlers[g.is("form")?"submit":"click"].init.apply(f,arguments)},update:function(a,b){var c=!0,d=j(a),f=b(),c=f.enabled();d.toggleClass("command-not-enabled",!c);c&&(c=f.canExecute(),d.toggleClass("command-can-not-be-execute",!c));d.toggleClass("command-disabled disable disabled",!c);(d.is("input")||d.is("button"))&&
|
||||
d.prop("disabled",!c)}};d.extenders.trimmer=function(a){var b=d.computed({read:a,write:function(b){a(c.trim(b.toString()))},owner:this});b(a());return b};d.extenders.reversible=function(a){var b=a();a.commit=function(){b=a()};a.reverse=function(){a(b)};a.commitedValue=function(){return b};return a};d.extenders.toggleSubscribe=function(a,b){a.subscribe(b[1],b[0],"beforeChange");a.subscribe(b[2],b[0]);return a};d.extenders.falseTimeout=function(a,b){a.iTimeout=0;a.subscribe(function(e){e&&(h.clearTimeout(a.iTimeout),
|
||||
a.iTimeout=h.setTimeout(function(){a(!1);a.iTimeout=0},c.pInt(b)))});return a};d.observable.fn.validateEmail=function(){this.hasError=d.observable(!1);this.subscribe(function(a){a=c.trim(a);this.hasError(""!==a&&!/^[^@\s]+@[^@\s]+$/.test(a))},this);this.valueHasMutated();return this};d.observable.fn.validateFunc=function(a){this.hasFuncError=d.observable(!1);c.isFunc(a)&&(this.subscribe(function(b){this.hasFuncError(!a(b))},this),this.valueHasMutated());return this};o.prototype.root=function(){return this.sBase};
|
||||
o.prototype.attachmentDownload=function(a){return this.sServer+"/Raw/"+this.sSpecSuffix+"/Download/"+a};o.prototype.attachmentPreview=function(a){return this.sServer+"/Raw/"+this.sSpecSuffix+"/View/"+a};o.prototype.attachmentPreviewAsPlain=function(a){return this.sServer+"/Raw/"+this.sSpecSuffix+"/ViewAsPlain/"+a};o.prototype.upload=function(){return this.sServer+"/Upload/"+this.sSpecSuffix+"/"};o.prototype.uploadBackground=function(){return this.sServer+"/UploadBackground/"+this.sSpecSuffix+"/"};
|
||||
o.prototype.append=function(){return this.sServer+"/Append/"+this.sSpecSuffix+"/"};o.prototype.change=function(a){return this.sServer+"/Change/"+this.sSpecSuffix+"/"+h.encodeURIComponent(a)+"/"};o.prototype.ajax=function(a){return this.sServer+"/Ajax/"+this.sSpecSuffix+"/"+a};o.prototype.messageViewLink=function(a){return this.sServer+"/Raw/"+this.sSpecSuffix+"/ViewAsPlain/"+a};o.prototype.messageDownloadLink=function(a){return this.sServer+"/Raw/"+this.sSpecSuffix+"/Download/"+a};o.prototype.inbox=
|
||||
function(){return this.sBase+"mailbox/Inbox"};o.prototype.settings=function(a){var b=this.sBase+"settings";!c.isUnd(a)&&""!==a&&(b+="/"+a);return b};o.prototype.admin=function(a){var b=this.sBase;switch(a){case "AdminDomains":b+="domains";break;case "AdminSecurity":b+="security";break;case "AdminLicensing":b+="licensing"}return b};o.prototype.mailBox=function(a,b,e){var b=c.isNormal(b)?c.pInt(b):1,e=c.pString(e),d=this.sBase+"mailbox/";""!==a&&(d+=encodeURI(a));1<b&&(d=d.replace(/[\/]+$/,""),d+="/p"+
|
||||
b);""!==e&&(d=d.replace(/[\/]+$/,""),d+="/"+encodeURI(e));return d};o.prototype.phpInfo=function(){return this.sServer+"Info"};o.prototype.langLink=function(a){return this.sServer+"/Lang/0/"+encodeURI(a)+"/"+this.sVersion+"/"};o.prototype.getUserPicUrlFromHash=function(a){return this.sServer+"/Raw/"+this.sSpecSuffix+"/UserPic/"+a+"/"+this.sVersion+"/"};o.prototype.emptyContactPic=function(){return(""===this.sCdnStaticDomain?"rainloop/v/":this.sCdnStaticDomain)+this.sVersion+"/static/css/images/empty-contact.png"};
|
||||
o.prototype.sound=function(a){return(""===this.sCdnStaticDomain?"rainloop/v/":this.sCdnStaticDomain)+this.sVersion+"/static/sounds/"+a};o.prototype.themePreviewLink=function(a){return(""===this.sCdnStaticDomain?"rainloop/v/":this.sCdnStaticDomain)+this.sVersion+"/themes/"+encodeURI(a)+"/images/preview.png"};o.prototype.notificationMailIcon=function(){return(""===this.sCdnStaticDomain?"rainloop/v/":this.sCdnStaticDomain)+this.sVersion+"/static/css/images/icom-message-notification.png"};o.prototype.socialGoogle=
|
||||
function(){return this.sServer+"SocialGoogle"+(""!==this.sSpecSuffix?"/"+this.sSpecSuffix+"/":"")};o.prototype.socialTwitter=function(){return this.sServer+"SocialTwitter"+(""!==this.sSpecSuffix?"/"+this.sSpecSuffix+"/":"")};o.prototype.socialFacebook=function(){return this.sServer+"SocialFacebook"+(""!==this.sSpecSuffix?"/"+this.sSpecSuffix+"/":"")};n.oViewModelsHooks={};n.oSimpleHooks={};n.regViewModelHook=function(a,b){b&&(b.__hookName=a)};n.addHook=function(a,b){c.isFunc(b)&&(c.isArray(n.oSimpleHooks[a])||
|
||||
(n.oSimpleHooks[a]=[]),n.oSimpleHooks[a].push(b))};n.runHook=function(a,b){c.isArray(n.oSimpleHooks[a])&&(b=b||[],i.each(n.oSimpleHooks[a],function(a){a.apply(null,b)}))};n.mainSettingsGet=function(a){return f?f.settingsGet(a):null};n.remoteRequest=function(a,b,c,d,g,h){f&&f.remote().defaultRequest(a,b,c,d,g,h)};n.settingsGet=function(a,b){var e=n.mainSettingsGet("Plugins");return(e=e&&c.isUnd(e[a])?null:e[a])?c.isUnd(e[b])?null:e[b]:null};L.supported=function(){return!0};L.prototype.set=function(a,
|
||||
b){var c=j.cookie(l.Values.ClientSideCookieIndexName),d=null;try{(d=null===c?null:JSON.parse(c))||(d={}),d[a]=b,j.cookie(l.Values.ClientSideCookieIndexName,JSON.stringify(d),{expires:30})}catch(f){}return d};L.prototype.get=function(a){var b=j.cookie(l.Values.ClientSideCookieIndexName),e=null;try{e=(e=null===b?null:JSON.parse(b))&&!c.isUnd(e[a])?e[a]:null}catch(d){}return e};M.supported=function(){return!!h.localStorage};M.prototype.set=function(a,b){var c=h.localStorage[l.Values.ClientSideCookieIndexName]||
|
||||
null,d=null;try{(d=null===c?null:JSON.parse(c))||(d={}),d[a]=b,h.localStorage[l.Values.ClientSideCookieIndexName]=JSON.stringify(d)}catch(f){}return d};M.prototype.get=function(a){var b=h.localStorage[l.Values.ClientSideCookieIndexName]||null,e=null;try{e=(e=null===b?null:JSON.parse(b))&&!c.isUnd(e[a])?e[a]:null}catch(d){}return e};N.prototype.oDriver=null;N.prototype.set=function(a,b){return this.oDriver?this.oDriver.set("p"+a,b):!1};N.prototype.get=function(a){return this.oDriver?this.oDriver.get("p"+
|
||||
a):null};ka.prototype.bootstart=function(){};t.prototype.sPosition="";t.prototype.sTemplate="";t.prototype.viewModelName="";t.prototype.viewModelDom=null;t.prototype.viewModelTemplate=function(){return this.sTemplate};t.prototype.viewModelPosition=function(){return this.sPosition};t.prototype.cancelCommand=t.prototype.closeCommand=function(){};w.prototype.oCross=null;w.prototype.sScreenName="";w.prototype.aViewModels=[];w.prototype.viewModels=function(){return this.aViewModels};w.prototype.screenName=
|
||||
function(){return this.sScreenName};w.prototype.routes=function(){return null};w.prototype.__cross=function(){return this.oCross};w.prototype.__start=function(){var a=this.routes(),b=null,e=null;c.isNonEmptyArray(a)&&(e=i.bind(this.onRoute||c.emptyFunction,this),b=ja.create(),i.each(a,function(a){b.addRoute(a[0],e).rules=a[1]}),this.oCross=b)};m.prototype.sDefaultScreenName="";m.prototype.oScreens={};m.prototype.oBoot=null;m.prototype.oCurrentScreen=null;m.prototype.showLoading=function(){j("#rl-loading").show()};
|
||||
m.prototype.hideLoading=function(){j("#rl-loading").hide()};m.prototype.routeOff=function(){y.changed.active=!1};m.prototype.routeOn=function(){y.changed.active=!0};m.prototype.setBoot=function(a){c.isNormal(a)&&(this.oBoot=a);return this};m.prototype.screen=function(a){return""!==a&&!c.isUnd(this.oScreens[a])?this.oScreens[a]:null};m.prototype.delegateRun=function(a,b,e){a&&a[b]&&a[b].apply(a,c.isArray(e)?e:[])};m.prototype.buildViewModel=function(a,b){if(a&&!a.__builded){var e=new a(b),g=e.viewModelPosition(),
|
||||
h=j("#rl-content #rl-"+g.toLowerCase()),i=null;a.__builded=!0;a.__vm=e;e.data=f.data();e.viewModelName=a.__name;h&&1===h.length?(i=j("<div>").addClass("rl-view-model").addClass("RL-"+e.viewModelTemplate()).hide().attr("data-bind",'template: {name: "'+e.viewModelTemplate()+'"}, i18nInit: true'),i.appendTo(h),e.viewModelDom=i,a.__dom=i,"Popups"===g&&(e.cancelCommand=e.closeCommand=c.createCommand(e,function(){s.hideScreenPopup(a)})),n.runHook("view-model-pre-build",[a.__name,e,i]),d.applyBindings(e,
|
||||
i[0]),this.delegateRun(e,"onBuild",[i]),n.runHook("view-model-post-build",[a.__name,e,i])):c.log("Cannot find view model position: "+g)}return a?a.__vm:null};m.prototype.applyExternal=function(a,b){a&&b&&d.applyBindings(a,b)};m.prototype.hideScreenPopup=function(a){a&&(a.__vm&&a.__dom)&&(a.__dom.hide(),a.__vm.modalVisibility(!1),this.delegateRun(a.__vm,"onHide"),this.popupVisibility(!1),i.defer(function(){a.__dom.find(".ko-select2").select2("close")}))};m.prototype.showScreenPopup=function(a,b){a&&
|
||||
(this.buildViewModel(a),a.__vm&&a.__dom&&(a.__dom.show(),a.__vm.modalVisibility(!0),this.delegateRun(a.__vm,"onShow",b||[]),this.popupVisibility(!0),n.runHook("view-model-on-show",[a.__name,a.__vm,b||[]])))};m.prototype.screenOnRoute=function(a,b){var e=this,d=null,f=null;""===c.pString(a)&&(a=this.sDefaultScreenName);if(""!==a){d=this.screen(a);if(!d&&(d=this.screen(this.sDefaultScreenName)))b=a+"/"+b,a=this.sDefaultScreenName;d&&d.__started&&(d.__builded||(d.__builded=!0,c.isNonEmptyArray(d.viewModels())&&
|
||||
i.each(d.viewModels(),function(a){this.buildViewModel(a,d)},this),this.delegateRun(d,"onBuild")),i.defer(function(){if(e.oCurrentScreen){e.delegateRun(e.oCurrentScreen,"onHide");c.isNonEmptyArray(e.oCurrentScreen.viewModels())&&i.each(e.oCurrentScreen.viewModels(),function(a){if(a.__vm&&a.__dom&&"Popups"!==a.__vm.viewModelPosition()){a.__dom.hide();a.__vm.viewModelVisibility(false);e.delegateRun(a.__vm,"onHide")}})}e.oCurrentScreen=d;if(e.oCurrentScreen){e.delegateRun(e.oCurrentScreen,"onShow");n.runHook("screen-on-show",
|
||||
[e.oCurrentScreen.screenName(),e.oCurrentScreen]);c.isNonEmptyArray(e.oCurrentScreen.viewModels())&&i.each(e.oCurrentScreen.viewModels(),function(a){if(a.__vm&&a.__dom&&"Popups"!==a.__vm.viewModelPosition()){a.__dom.show();a.__vm.viewModelVisibility(true);e.delegateRun(a.__vm,"onShow");n.runHook("view-model-on-show",[a.__name,a.__vm])}},e)}(f=d.__cross())&&f.parse(b)}))}};m.prototype.startScreens=function(a){i.each(a,function(a){var c=(a=new a)?a.screenName():"";a&&""!==c&&(""===this.sDefaultScreenName&&
|
||||
(this.sDefaultScreenName=c),this.oScreens[c]=a)},this);i.each(this.oScreens,function(a){a&&(!a.__started&&a.__start)&&(a.__started=!0,a.__start(),n.runHook("screen-pre-start",[a.screenName(),a]),this.delegateRun(a,"onStart"),n.runHook("screen-post-start",[a.screenName(),a]))},this);a=ja.create();a.addRoute(/^([a-zA-Z0-9\-]*)\/?(.*)$/,i.bind(this.screenOnRoute,this));y.initialized.add(a.parse,a);y.changed.add(a.parse,a);y.init()};m.prototype.setHash=function(a,b){a="#"===a.substr(0,1)?a.substr(1):
|
||||
a;a="/"===a.substr(0,1)?a.substr(1):a;(c.isUnd(b)?0:b)?(y.changed.active=!1,y.setHash(a),y.changed.active=!0):(y.changed.active=!0,y.setHash(a))};m.prototype.bootstart=function(){this.oBoot&&this.oBoot.bootstart&&this.oBoot.bootstart();return this};s=new m;r.newInstanceFromJson=function(a){var b=new r;return b.initByJson(a)?b:null};r.prototype.name="";r.prototype.email="";r.prototype.privateType=null;r.prototype.validate=function(){return""!==this.name||""!==this.email};r.prototype.hash=function(a){return"#"+
|
||||
(a?"":this.name)+"#"+this.email+"#"};r.prototype.clearDuplicateName=function(){this.name===this.email&&(this.name="")};r.prototype.type=function(){if(null===this.privateType&&(this.email&&"@facebook.com"===this.email.substr(-13)&&(this.privateType=g.EmailType.Facebook),null===this.privateType))this.privateType=g.EmailType.Default;return this.privateType};r.prototype.search=function(a){return-1<(this.name+" "+this.email).toLowerCase().indexOf(a.toLowerCase())};r.prototype.parse=function(a){var a=c.trim(a),
|
||||
b=/(?:"([^"]+)")? ?<?(.*?@[^>,]+)>?,? ?/g.exec(a);b?(this.name=b[1]||"",this.email=b[2]||"",this.clearDuplicateName()):/^[^@]+@[^@]+$/.test(a)&&(this.name="",this.email=a)};r.prototype.initByJson=function(a){var b=!1;a&&"Object/Email"===a["@Object"]&&(this.name=c.trim(a.Name),this.email=c.trim(a.Email),b=""!==this.email,this.clearDuplicateName());return b};r.prototype.toLine=function(a,b){var e="";""!==this.email&&(b=c.isUnd(b)?!1:!!b,a&&""!==this.name?e=b?'<a href="mailto:'+c.encodeHtml('"'+this.name+
|
||||
'" <'+this.email+">")+'" target="_blank" tabindex="-1">'+c.encodeHtml(this.name)+"</a>":this.name:(e=this.email,""!==this.name?e=b?c.encodeHtml('"'+this.name+'" <')+'<a href="mailto:'+c.encodeHtml('"'+this.name+'" <'+this.email+">")+'" target="_blank" tabindex="-1">'+c.encodeHtml(e)+"</a>"+c.encodeHtml(">"):'"'+this.name+'" <'+e+">":b&&(e='<a href="mailto:'+c.encodeHtml(this.email)+'" target="_blank" tabindex="-1">'+c.encodeHtml(this.email)+"</a>")));return e};r.prototype.select2Result=function(){var a=
|
||||
"",b=f.cache().getUserPic(this.email),a=""!==b?a+('<img class="select2-user-pic pull-left" src="'+c.encodeHtml(b)+'" />'):a+('<img class="select2-user-pic pull-left" src="'+f.link().emptyContactPic()+'" />');g.EmailType.Facebook===this.type()?(a+=""+(0<this.name.length?this.name:this.email),a+='<i class="icon-facebook pull-right select2-icon-result" />'):a+=""+(0<this.name.length?this.email+' <span class="select2-subname">('+this.name+")</span>":this.email);return a+""};r.prototype.select2Selection=
|
||||
function(a){var b="";if(g.EmailType.Facebook===this.type()){if(b=0<this.name.length?this.name:this.email,""!==b)return j("<pan>").text(b).appendTo(a),a.append('<i class="icon-facebook select2-icon"></i>'),null}else b=0<this.name.length?this.name+" ("+this.email+")":this.email;return b};c.extendAsViewModel("PopupsDomainViewModel",B);B.prototype.onTestConnectionResponse=function(a,b){this.testing(!1);g.StorageResultType.Success===a&&b.Result?(this.testingDone(!0),this.testingImapError(!1===b.Result.Imap),
|
||||
this.testingSmtpError(!1===b.Result.Smtp)):(this.testingImapError(!0),this.testingSmtpError(!0))};B.prototype.onDomainCreateOrSaveResponse=function(a,b){this.saving(!1);g.StorageResultType.Success===a&&b?b.Result?(f.reloadDomainList(),this.closeCommand()):g.Notification.DomainAlreadyExists===b.ErrorCode&&this.savingError("Domain already exists"):this.savingError("Unknown error")};B.prototype.onShow=function(a){this.saving(!1);this.testing(!1);this.testingDone(!1);this.testingImapError(!1);this.testingSmtpError(!1);
|
||||
this.clearForm();a&&(this.edit(!0),this.name(c.trim(a.Name)),this.imapServer(c.trim(a.IncHost)),this.imapPort(c.pInt(a.IncPort)),this.imapSecure(c.trim(a.IncSecure)),this.smtpServer(c.trim(a.OutHost)),this.smtpPort(c.pInt(a.OutPort)),this.smtpSecure(c.trim(a.OutSecure)),this.smtpAuth(!!a.OutAuth))};B.prototype.clearForm=function(){this.edit(!1);this.savingError("");this.name("");this.imapServer("");this.imapPort(l.Values.ImapDefaulPort);this.imapSecure(g.ServerSecure.None);this.smtpServer("");this.smtpPort(l.Values.SmtpDefaulPort);
|
||||
this.smtpSecure(g.ServerSecure.None);this.smtpAuth(!0)};c.extendAsViewModel("PopupsPluginViewModel",O);O.prototype.onPluginSettingsUpdateResponse=function(a,b){g.StorageResultType.Success===a&&b&&b.Result?this.cancelCommand():(this.saveError(""),b&&b.ErrorCode?this.saveError(c.getNotification(b.ErrorCode)):this.saveError(c.getNotification(g.Notification.CantSavePluginSettings)))};O.prototype.onShow=function(a){this.name();this.readme();this.configures([]);a&&(this.name(a.Name),this.readme(a.Readme),
|
||||
a=a.Config,c.isNonEmptyArray(a)&&this.configures(i.map(a,function(a){return{value:d.observable(a[0]),Name:a[1],Type:a[2],Label:a[3],Default:a[4],Desc:a[5]}})))};c.extendAsViewModel("PopupsActivateViewModel",P);P.prototype.onShow=function(){this.domain(f.settingsGet("AdminDomain"));this.activateProcess()||(this.key(""),this.activateText(""),this.activateText.isError(!1),this.activationSuccessed(!1),this.key.focus(!0))};P.prototype.validateSubscriptionKey=function(){var a=this.key();return""===a||!!/^RL[\d]+-[A-Z0-9\-]+Z$/.test(c.trim(a))};
|
||||
c.extendAsViewModel("AdminLoginViewModel",Q);Q.prototype.onShow=function(){s.routeOff();i.delay(i.bind(function(){this.loginFocus(!0)},this),100)};Q.prototype.onHide=function(){this.loginFocus(!1)};c.extendAsViewModel("AdminMenuViewModel",W);W.prototype.link=function(a){return"#/"+a};c.extendAsViewModel("AdminPaneViewModel",X);X.prototype.logoutClick=function(){f.remote().adminLogout(function(){f.loginAndLogoutReload()})};c.addSettingsViewModel(la,"AdminGeneral","General","general",!0);la.prototype.onBuild=
|
||||
function(){var a=this;i.delay(function(){var b=c.settingsSaveHelperSimpleFunction(a.titleTrigger,a),e=c.settingsSaveHelperSimpleFunction(a.languageTrigger,a),d=c.settingsSaveHelperSimpleFunction(a.themeTrigger,a);a.title.subscribe(function(a){f.remote().saveAdminConfig(b,{Title:c.trim(a)})});a.language.subscribe(function(a){f.remote().saveAdminConfig(e,{Language:c.trim(a)})});a.theme.subscribe(function(a){f.remote().saveAdminConfig(d,{Theme:c.trim(a)})});a.allowCustomTheme.subscribe(function(a){f.remote().saveAdminConfig(null,
|
||||
{AllowCustomTheme:a?"1":"0"})});a.allowAdditionalAccounts.subscribe(function(a){f.remote().saveAdminConfig(null,{AllowAdditionalAccounts:a?"1":"0"})})},50)};c.addSettingsViewModel(z,"AdminDomains","Domains","domains");z.prototype.startDomainForDeletionTimeout=function(){var a=this;h.clearInterval(this.iDomainForDeletionTimeout);this.iDomainForDeletionTimeout=h.setTimeout(function(){a.domainForDeletion(null)},3E3)};z.prototype.createDomain=function(){s.showScreenPopup(B)};z.prototype.deleteDomain=
|
||||
function(a){this.domains.remove(a);f.remote().domainDelete(i.bind(this.onDomainListChangeRequest,this),a.name)};z.prototype.disableDomain=function(a){a.disabled(!a.disabled());f.remote().domainDisable(i.bind(this.onDomainListChangeRequest,this),a.name,a.disabled())};z.prototype.onBuild=function(a){var b=this;a.on("click",".b-admin-domains-list-table .e-item .e-action",function(){var a=d.dataFor(this);a&&f.remote().domain(i.bind(b.onDomainLoadRequest,b),a.name)});f.reloadDomainList()};z.prototype.onDomainLoadRequest=
|
||||
function(a,b){g.StorageResultType.Success===a&&(b&&b.Result)&&s.showScreenPopup(B,[b.Result])};z.prototype.onDomainListChangeRequest=function(){f.reloadDomainList()};c.addSettingsViewModel(I,"AdminLicensing","Licensing","licensing");I.prototype.onBuild=function(){f.reloadLicensing(!1)};I.prototype.onShow=function(){this.adminDomain(f.settingsGet("AdminDomain"))};I.prototype.showActivationForm=function(){s.showScreenPopup(P)};I.prototype.licenseExpiredMomentValue=function(){var a=moment.unix(this.licenseExpired());
|
||||
return a.format("LL")+" ("+a.from(moment())+")"};c.addSettingsViewModel(J,"AdminSecurity","Security","security");J.prototype.onNewAdminPasswordResponse=function(a,b){g.StorageResultType.Success===a&&b&&b.Result?(this.adminPassword(""),this.adminPasswordNew(""),this.adminPasswordUpdateSuccess(!0)):this.adminPasswordUpdateError(!0)};J.prototype.onBuild=function(){this.csrfProtection.subscribe(function(a){f.remote().saveAdminConfig(c.emptyFunction,{TokenProtection:a?"1":"0"})})};J.prototype.onHide=function(){this.adminPassword("");
|
||||
this.adminPasswordNew("")};J.prototype.phpInfoLink=function(){return f.link().phpInfo()};c.addSettingsViewModel(ma,"AdminSocial","Social","social");ma.prototype.onBuild=function(){var a=this;i.delay(function(){var b=c.settingsSaveHelperSimpleFunction(a.facebookTrigger1,a),e=c.settingsSaveHelperSimpleFunction(a.facebookTrigger2,a),d=c.settingsSaveHelperSimpleFunction(a.twitterTrigger1,a),g=c.settingsSaveHelperSimpleFunction(a.twitterTrigger2,a),h=c.settingsSaveHelperSimpleFunction(a.googleTrigger1,
|
||||
a),i=c.settingsSaveHelperSimpleFunction(a.googleTrigger2,a),j=c.settingsSaveHelperSimpleFunction(a.dropboxTrigger1,a);a.facebookEnable.subscribe(function(a){f.remote().saveAdminConfig(c.emptyFunction,{FacebookEnable:a?"1":"0"})});a.facebookAppID.subscribe(function(a){f.remote().saveAdminConfig(b,{FacebookAppID:c.trim(a)})});a.facebookAppSecret.subscribe(function(a){f.remote().saveAdminConfig(e,{FacebookAppSecret:c.trim(a)})});a.twitterEnable.subscribe(function(a){f.remote().saveAdminConfig(c.emptyFunction,
|
||||
{TwitterEnable:a?"1":"0"})});a.twitterConsumerKey.subscribe(function(a){f.remote().saveAdminConfig(d,{TwitterConsumerKey:c.trim(a)})});a.twitterConsumerSecret.subscribe(function(a){f.remote().saveAdminConfig(g,{TwitterConsumerSecret:c.trim(a)})});a.googleEnable.subscribe(function(a){f.remote().saveAdminConfig(c.emptyFunction,{GoogleEnable:a?"1":"0"})});a.googleClientID.subscribe(function(a){f.remote().saveAdminConfig(h,{GoogleClientID:c.trim(a)})});a.googleClientSecret.subscribe(function(a){f.remote().saveAdminConfig(i,
|
||||
{GoogleClientSecret:c.trim(a)})});a.dropboxEnable.subscribe(function(a){f.remote().saveAdminConfig(c.emptyFunction,{DropboxEnable:a?"1":"0"})});a.dropboxApiKey.subscribe(function(a){f.remote().saveAdminConfig(j,{DropboxApiKey:c.trim(a)})})},50)};c.addSettingsViewModel(C,"AdminPlugins","Plugins","plugins");C.prototype.disablePlugin=function(a){a.disabled(!a.disabled());f.remote().pluginDisable(this.onPluginDisableRequest,a.name,a.disabled())};C.prototype.configurePlugin=function(a){f.remote().plugin(this.onPluginLoadRequest,
|
||||
a.name)};C.prototype.onBuild=function(){this.enabledPlugins.subscribe(function(a){f.remote().saveAdminConfig(c.emptyFunction,{EnabledPlugins:a?"1":"0"})})};C.prototype.onShow=function(){this.pluginsError("");f.reloadPluginList()};C.prototype.onPluginLoadRequest=function(a,b){g.StorageResultType.Success===a&&(b&&b.Result)&&s.showScreenPopup(O,[b.Result])};C.prototype.onPluginDisableRequest=function(a,b){g.StorageResultType.Success===a&&b&&!b.Result&&b.ErrorCode&&(g.Notification.UnsupportedPluginPackage===
|
||||
b.ErrorCode&&b.ErrorMessage&&""!==b.ErrorMessage?this.pluginsError(b.ErrorMessage):this.pluginsError(c.getNotification(b.ErrorCode)));f.reloadPluginList()};c.addSettingsViewModel(E,"AdminPackages","Packages","packages");E.prototype.onShow=function(){this.packagesError("")};E.prototype.onBuild=function(){f.reloadPackagesList()};E.prototype.requestHelper=function(a,b){var e=this;return function(d,h){if(g.StorageResultType.Success!==d||!h||!h.Result)h&&h.ErrorCode?e.packagesError(c.getNotification(h.ErrorCode)):
|
||||
e.packagesError(c.getNotification(b?g.Notification.CantInstallPackage:g.Notification.CantDeletePackage));i.each(f.data().packages(),function(b){b&&(a&&b.loading()&&a.file===b.file)&&(a.loading(!1),b.loading(!1))});f.reloadPackagesList()}};E.prototype.deletePackage=function(a){a&&(a.loading(!0),f.remote().packageDelete(this.requestHelper(a,!1),a))};E.prototype.installPackage=function(a){a&&(a.loading(!0),f.remote().packageInstall(this.requestHelper(a,!0),a))};Y.prototype.populateDataOnStart=function(){var a=
|
||||
f.settingsGet("Languages"),b=f.settingsGet("Themes");c.isArray(a)&&this.languages(a);c.isArray(b)&&this.themes(b);this.mainLanguage(f.settingsGet("Language"));this.mainTheme(f.settingsGet("Theme"));this.allowCustomTheme(!!f.settingsGet("AllowCustomTheme"));this.allowAdditionalAccounts(!!f.settingsGet("AllowAdditionalAccounts"));this.ignoreFolderSubscribe(!!f.settingsGet("IgnoreFolderSubscribe"));this.editorDefaultType(f.settingsGet("EditorDefaultType"));this.showImages(!!f.settingsGet("ShowImages"));
|
||||
this.showAnimation(!!f.settingsGet("ShowAnimation"));this.mainMessagesPerPage(f.settingsGet("MPP"));this.desktopNotifications(!!f.settingsGet("DesktopNotifications"));this.useThreads(!!f.settingsGet("UseThreads"));this.replySameFolder(!!f.settingsGet("ReplySameFolder"));this.usePreviewPane(!!f.settingsGet("UsePreviewPane"));this.useCheckboxesInList(!!f.settingsGet("UseCheckboxesInList"));this.facebookEnable(!!f.settingsGet("AllowFacebookSocial"));this.facebookAppID(f.settingsGet("FacebookAppID"));
|
||||
this.facebookAppSecret(f.settingsGet("FacebookAppSecret"));this.twitterEnable(!!f.settingsGet("AllowTwitterSocial"));this.twitterConsumerKey(f.settingsGet("TwitterConsumerKey"));this.twitterConsumerSecret(f.settingsGet("TwitterConsumerSecret"));this.googleEnable(!!f.settingsGet("AllowGoogleSocial"));this.googleClientID(f.settingsGet("GoogleClientID"));this.googleClientSecret(f.settingsGet("GoogleClientSecret"));this.dropboxEnable(!!f.settingsGet("AllowDropboxSocial"));this.dropboxApiKey(f.settingsGet("DropboxApiKey"));
|
||||
this.contactsIsSupported(!!f.settingsGet("ContactsIsSupported"))};i.extend(Z.prototype,Y.prototype);Z.prototype.populateDataOnStart=function(){Y.prototype.populateDataOnStart.call(this)};D.prototype.oRequests={};D.prototype.defaultResponse=function(a,b,c,d,i,j){switch(c){case "success":c=g.StorageResultType.Success;break;case "abort":c=g.StorageResultType.Abort;break;default:c=g.StorageResultType.Error}g.StorageResultType.Success===c&&(d&&!d.Result&&d.Logout)&&(h.__rlah_clear&&h.__rlah_clear(),f.loginAndLogoutReload(!0));
|
||||
a&&(n.runHook("ajax-default-response",[b,g.StorageResultType.Success===c?d:null,c,i,j]),a(c,g.StorageResultType.Success===c?d:null,i,b,j))};D.prototype.ajaxRequest=function(a,b,d,g,k){var l=this,n=""===g,o=(new h.Date).getTime(),p=null,m="",b=b||{},d=c.isNormal(d)?d:2E4,g=c.isUnd(g)?"":c.pString(g),k=c.isArray(k)?k:[];(m=b.Action||"")&&0<k.length&&i.each(k,function(a){l.oRequests[a]&&(l.oRequests[a].__aborted=!0,l.oRequests[a].abort&&l.oRequests[a].abort(),l.oRequests[a]=null)});n&&(b.XToken=f.settingsGet("Token"));
|
||||
p=j.ajax({type:n?"POST":"GET",url:f.link().ajax(g),async:!0,dataType:"json",data:n?b:{},headers:{},timeout:d,global:!0});p.always(function(d,e){var f=!1;d&&d.Time&&(f=c.pInt(d.Time)>(new h.Date).getTime()-o);m&&l.oRequests[m]&&(l.oRequests[m].__aborted&&(e="abort"),l.oRequests[m]=null);l.defaultResponse(a,m,e,d,f,b)});m&&(0<k.length&&-1<c.inArray(m,k))&&(this.oRequests[m]&&(this.oRequests[m].__aborted=!0,this.oRequests[m].abort&&this.oRequests[m].abort(),this.oRequests[m]=null),this.oRequests[m]=
|
||||
p);return p};D.prototype.defaultRequest=function(a,b,d,f,g,h){d=d||{};d.Action=b;g=c.pString(g);n.runHook("ajax-default-request",[b,d,g]);this.ajaxRequest(a,d,c.isUnd(f)?l.Defaults.DefaultAjaxTimeout:c.pInt(f),g,h)};D.prototype.noop=function(a){this.defaultRequest(a,"Noop")};D.prototype.jsError=function(a,b,c,d){this.defaultRequest(a,"JsError",{Message:b,FileName:c,LineNo:d})};i.extend(p.prototype,D.prototype);p.prototype.adminLogin=function(a,b,c){this.defaultRequest(a,"AdminLogin",{Login:b,Password:c})};
|
||||
p.prototype.adminLogout=function(a){this.defaultRequest(a,"AdminLogout")};p.prototype.saveAdminConfig=function(a,b){this.defaultRequest(a,"AdminSettingsUpdate",b)};p.prototype.domainList=function(a){this.defaultRequest(a,"AdminDomainList")};p.prototype.pluginList=function(a){this.defaultRequest(a,"AdminPluginList")};p.prototype.packagesList=function(a){this.defaultRequest(a,"AdminPackagesList")};p.prototype.packageInstall=function(a,b){this.defaultRequest(a,"AdminPackageInstall",{Id:b.id,Type:b.type,
|
||||
File:b.file})};p.prototype.packageDelete=function(a,b){this.defaultRequest(a,"AdminPackageDelete",{Id:b.id})};p.prototype.domain=function(a,b){this.defaultRequest(a,"AdminDomainLoad",{Name:b})};p.prototype.plugin=function(a,b){this.defaultRequest(a,"AdminPluginLoad",{Name:b})};p.prototype.domainDelete=function(a,b){this.defaultRequest(a,"AdminDomainDelete",{Name:b})};p.prototype.domainDisable=function(a,b,c){return this.defaultRequest(a,"AdminDomainDisable",{Name:b,Disabled:c?"1":"0"})};p.prototype.pluginSettingsUpdate=
|
||||
function(a,b){return this.defaultRequest(a,"AdminPluginSettingsUpdate",b)};p.prototype.licensing=function(a,b){return this.defaultRequest(a,"AdminLicensing",{Force:b?"1":"0"})};p.prototype.licensingActivate=function(a,b,c){return this.defaultRequest(a,"AdminLicensingActivate",{Domain:b,Key:c})};p.prototype.pluginDisable=function(a,b,c){return this.defaultRequest(a,"AdminPluginDisable",{Name:b,Disabled:c?"1":"0"})};p.prototype.createOrUpdateDomain=function(a,b,c,d,f,g,h,i,j,k){this.defaultRequest(a,
|
||||
"AdminDomainSave",{Create:b?"1":"0",Name:c,IncHost:d,IncPort:f,IncSecure:g,OutHost:h,OutPort:i,OutSecure:j,OutAuth:k?"1":"0"})};p.prototype.testConnectionForDomain=function(a,b,c,d,f,g,h,i){this.defaultRequest(a,"AdminDomainTest",{IncHost:b,IncPort:c,IncSecure:d,OutHost:f,OutPort:g,OutSecure:h,OutAuth:i?"1":"0"})};p.prototype.saveNewAdminPassword=function(a,b){this.defaultRequest(a,"AdminPasswordUpdate",b)};p.prototype.adminPing=function(a){this.defaultRequest(a,"AdminPing")};A.prototype.oEmailsPicsHashes=
|
||||
{};A.prototype.oServices={};A.prototype.clear=function(){this.oServices={};this.oEmailsPicsHashes={}};A.prototype.getUserPic=function(a){var b="",b="",b=a.toLowerCase(),d=c.isUnd(this.oEmailsPicsHashes[a])?"":this.oEmailsPicsHashes[a];""===d?(b=b.substr(a.indexOf("@")+1),b=""!==b&&this.oServices[b]?this.oServices[b]:""):b=f.link().getUserPicUrlFromHash(d);return b};A.prototype.setServicesData=function(a){this.oServices=a};A.prototype.setEmailsPicsHashesData=function(a){this.oEmailsPicsHashes=a};i.extend(na.prototype,
|
||||
A.prototype);i.extend(F.prototype,w.prototype);F.prototype.onRoute=function(a){var b=this,e=null,g=null,h=null,k=null;if(g=i.find(T,function(b){return b&&b.__rlSettingsData&&a===b.__rlSettingsData.Route}))i.find(fa,function(a){return a&&a===g})&&(g=null),g&&i.find(ga,function(a){return a&&a===g})&&(g=null);g&&(g.__builded&&g.__vm?e=g.__vm:(h=j("#rl-content #rl-settings-subscreen"))&&1===h.length?(e=new g,k=j("<div></div>").addClass("rl-settings-view-model").hide().attr("data-bind",'template: {name: "'+
|
||||
g.__rlSettingsData.Template+'"}, i18nInit: true'),k.appendTo(h),e.data=f.data(),e.viewModelDom=k,e.__rlSettingsData=g.__rlSettingsData,g.__dom=k,g.__builded=!0,g.__vm=e,d.applyBindings(e,k[0]),s.delegateRun(e,"onBuild",[k])):c.log("Cannot find sub settings view model position: SettingsSubScreen"),e&&i.defer(function(){if(b.oCurrentSubScreen){s.delegateRun(b.oCurrentSubScreen,"onHide");b.oCurrentSubScreen.viewModelDom.hide()}b.oCurrentSubScreen=e;if(b.oCurrentSubScreen){b.oCurrentSubScreen.viewModelDom.show();
|
||||
s.delegateRun(b.oCurrentSubScreen,"onShow");i.each(b.menu(),function(a){a.selected(e&&e.__rlSettingsData&&a.route===e.__rlSettingsData.Route)})}c.windowResize()}))};F.prototype.onBuild=function(){i.each(T,function(a){a&&(a.__rlSettingsData&&!i.find(fa,function(b){return b&&b===a}))&&this.menu.push({route:a.__rlSettingsData.Route,label:a.__rlSettingsData.Label,selected:d.observable(!1),disabled:!!i.find(ga,function(b){return b&&b===a})})},this)};F.prototype.routes=function(){var a=i.find(T,function(a){return a&&
|
||||
a.__rlSettingsData&&a.__rlSettingsData.IsDefault}),b=a?a.__rlSettingsData.Route:"general",a={subname:/^(.*)$/,normalize_:function(a,d){d.subname=c.isUnd(d.subname)?b:c.pString(d.subname);return[d.subname]}};return[["{subname}/",a],["{subname}",a],["",a]]};i.extend(aa.prototype,w.prototype);aa.prototype.onShow=function(){f.setTitle("")};i.extend(ba.prototype,F.prototype);ba.prototype.onShow=function(){f.setTitle("")};i.extend(u.prototype,ka.prototype);u.prototype.oSettings=null;u.prototype.oLink=null;
|
||||
u.prototype.download=function(a){K?this.iframe.attr("src",a):h.open(a)};u.prototype.link=function(){null===this.oLink&&(this.oLink=new o);return this.oLink};u.prototype.local=function(){null===this.oLocal&&(this.oLocal=new N);return this.oLocal};u.prototype.settingsGet=function(a){null===this.oSettings&&(this.oSettings=c.isNormal(S)?S:{});return c.isUnd(this.oSettings[a])?null:this.oSettings[a]};u.prototype.settingsSet=function(a,b){null===this.oSettings&&(this.oSettings=c.isNormal(S)?S:{});this.oSettings[a]=
|
||||
b};u.prototype.setTitle=function(a){a=(0<a.length?a+" - ":"")+this.settingsGet("Title")||"";a!==h.document.title&&(h.document.title=a)};u.prototype.loginAndLogoutReload=function(a,b){var d=c.pString(this.settingsGet("CustomLogoutLink")),g=!!this.settingsGet("InIframe"),a=c.isUnd(a)?!1:!!a,b=c.isUnd(b)?!1:!!b;a&&b&&h.close?h.close():a&&""!==d&&h.location.href!==d?i.defer(function(){g&&h.parent?h.parent.location.href=d:h.location.href=d}):(s.routeOff(),s.setHash(f.link().root(),!0),s.routeOff(),i.defer(function(){g&&
|
||||
h.parent?h.parent.location.reload():h.location.reload()}))};u.prototype.getAutocomplete=function(a,b,c){c([],a)};u.prototype.bootstart=function(){c.initOnStartOrLangChange(function(){c.initNotificationLanguage()},null);i.delay(function(){c.windowResize()},1E3)};i.extend(v.prototype,u.prototype);v.prototype.oData=null;v.prototype.oRemote=null;v.prototype.oCache=null;v.prototype.data=function(){null===this.oData&&(this.oData=new Z);return this.oData};v.prototype.remote=function(){null===this.oRemote&&
|
||||
(this.oRemote=new p);return this.oRemote};v.prototype.cache=function(){null===this.oCache&&(this.oCache=new na);return this.oCache};v.prototype.reloadDomainList=function(){f.data().domainsLoading(!0);f.remote().domainList(function(a,b){f.data().domainsLoading(!1);if(g.StorageResultType.Success===a&&b&&b.Result){var c=i.map(b.Result,function(a,b){return{name:b,disabled:d.observable(!a),deleteAccess:d.observable(!1)}},this);f.data().domains(c)}})};v.prototype.reloadPluginList=function(){f.data().pluginsLoading(!0);
|
||||
f.remote().pluginList(function(a,b){f.data().pluginsLoading(!1);if(g.StorageResultType.Success===a&&b&&b.Result){var c=i.map(b.Result,function(a){return{name:a.Name,disabled:d.observable(!a.Enabled),configured:d.observable(!!a.Configured)}},this);f.data().plugins(c)}})};v.prototype.reloadPackagesList=function(){f.data().packagesLoading(!0);f.data().packagesReal(!0);f.remote().packagesList(function(a,b){f.data().packagesLoading(!1);if(g.StorageResultType.Success===a&&b&&b.Result){f.data().packagesReal(!!b.Result.Real);
|
||||
f.data().packagesMainUpdatable(!!b.Result.MainUpdatable);var e=[],h={};i.each(f.data().packages(),function(a){a&&a.loading()&&(h[a.file]=a)});c.isArray(b.Result.List)&&(e=i.map(b.Result.List,function(a){a.loading=d.observable(!c.isUnd(h[a.file]));return a},this));f.data().packages(e)}else f.data().packagesReal(!1)})};v.prototype.reloadLicensing=function(a){a=c.isUnd(a)?!1:!!a;f.data().licensingProcess(!0);f.data().licenseError("");f.remote().licensing(function(a,d){f.data().licensingProcess(!1);g.StorageResultType.Success===
|
||||
a&&d&&d.Result&&c.isNormal(d.Result.Expired)?(f.data().licenseValid(!0),f.data().licenseExpired(c.pInt(d.Result.Expired)),f.data().licenseError(""),f.data().licensing(!0)):d&&d.ErrorCode&&-1<c.inArray(c.pInt(d.ErrorCode),[g.Notification.LicensingServerIsUnavailable,g.Notification.LicensingExpired])?(f.data().licenseError(c.getNotification(c.pInt(d.ErrorCode))),f.data().licensing(!0)):g.StorageResultType.Abort===a?(f.data().licenseError(c.getNotification(g.Notification.LicensingServerIsUnavailable)),
|
||||
f.data().licensing(!0)):f.data().licensing(!1)},a)};v.prototype.bootstart=function(){u.prototype.bootstart.call(this);f.data().populateDataOnStart();s.hideLoading();this.settingsGet("Auth")?s.startScreens([ba]):s.startScreens([aa])};f=new v;j(function(){h.setTimeout(function(){s.setBoot(f).bootstart()},10);h.setInterval(function(){ca(!ca())},6E4);i.delay(function(){h.rainloopAppData={};h.rainloopI18N={}},100)});G.keydown(c.killCtrlAandS).keyup(c.killCtrlAandS);h.rl=h.rl||{};h.rl.addHook=n.addHook;
|
||||
h.rl.settingsGet=n.mainSettingsGet;h.rl.remoteRequest=n.remoteRequest;h.rl.pluginSettingsGet=n.settingsGet;h.rl.addSettingsViewModel=c.addSettingsViewModel;h.rl.createCommand=c.createCommand;h.rl.EmailModel=r;h.rl.Enums=g})(window,jQuery,ko,crossroads,hasher,_);
|
||||
369
rainloop/v/1.2.5.406/static/js/app.min.js
vendored
Normal file
|
|
@ -0,0 +1,369 @@
|
|||
(function(j,i,e,Ta,P,Y,ra,h){function B(){this.sBase="#/";this.sCdnStaticDomain=f.settingsGet("CdnStaticDomain");this.sVersion=f.settingsGet("Version");this.sIndexFile=f.settingsGet("IndexFile");this.sSpecSuffix=f.settingsGet("AuthAccountHash")||"0";this.sServer=null===this.sIndexFile?"?":this.sIndexFile+"?";this.sCdnStaticDomain=""===this.sCdnStaticDomain?this.sCdnStaticDomain:"/"===this.sCdnStaticDomain.substr(-1)?this.sCdnStaticDomain:this.sCdnStaticDomain+"/"}function n(a,b,d,l){this.oOptions=
|
||||
l=i.extend({DisableHtml:!1,onSwitch:!1,LangSwitcherConferm:"EDITOR_TEXT_SWITCHER_CONFIRM",LangSwitcherTextLabel:"EDITOR_SWITCHER_TEXT_LABEL",LangSwitcherHtmlLabel:"EDITOR_SWITCHER_HTML_LABEL"},c.isUnd(l)?{}:l);this.bOnlyPlain=!!this.oOptions.DisableHtml;this.fOnSwitch=this.oOptions.onSwitch;this.textarea=i(a).empty().addClass("editorTextArea");this.htmlarea=i(b).empty().addClass("editorHtmlArea").prop("contentEditable","true");this.toolbar=i(d).empty().addClass("editorToolbar");n.htmlInitEditor.apply(this);
|
||||
n.htmlInitToolbar.apply(this);n.htmlAttachEditorEvents.apply(this);this.bOnlyPlain&&this.toolbar.hide()}function M(a,b,d,l,f){this.list=a;this.selectedItem=b;this.selectedItem.extend({toggleSubscribe:[null,function(a){a&&a.selected(!1)},function(a){a&&a.selected(!0)}]});this.oContentScrollable=this.oContentVisible=null;this.sItemSelector=d;this.sItemSelectedSelector=l;this.sItemCheckedSelector=f;this.sLastUid="";this.oCallbacks={};this.iSelectTimer=0;this.bUseKeyboard=!0;this.emptyFunction=function(){};
|
||||
this.useItemSelectCallback=!0;this.selectedItem.subscribe(function(a){this.useItemSelectCallback&&(this.oCallbacks.onItemSelect||this.emptyFunction)(a)},this);var e=this,g=[],k=null;this.list.subscribe(function(){var a=this,b=this.list();c.isArray(b)&&h.each(b,function(b){b.checked()&&g.push(a.getItemUid(b));null===k&&b.selected()&&(k=a.getItemUid(b))})},this,"beforeChange");this.list.subscribe(function(a){this.useItemSelectCallback=!1;this.selectedItem(null);if(c.isArray(a)){var b=this,d=g.length;
|
||||
h.each(a,function(a){0<d&&-1<c.inArray(b.getItemUid(a),g)&&(a.checked(!0),d--);null!==k&&k===b.getItemUid(a)&&(a.selected(!0),k=null,b.selectedItem(a))})}this.useItemSelectCallback=!0;g=[];k=null},this);this.list.setSelectedByUid=function(a){e.selectByUid(a,!1)}}function sa(){}function ta(){}function ua(){var a=h.find([ta,sa],function(a){return a.supported()});a&&(this.oDriver=new a)}function Ua(){}function C(a,b){this.sPosition=c.pString(a);this.sTemplate=c.pString(b);this.viewModelName="";this.viewModelVisibility=
|
||||
e.observable(!1);"Popups"===this.sPosition&&(this.modalVisibility=e.observable(!1));this.viewModelDom=null}function J(a,b){this.sScreenName=a;this.aViewModels=c.isArray(b)?b:[]}function E(){this.sDefaultScreenName="";this.oScreens={};this.oCurrentScreen=this.oBoot=null;this.popupVisibility=e.observable(!1);this.popupVisibility.subscribe(function(a){f&&f.popupVisibility(a)})}function F(a,b){this.email=a||"";this.name=b||"";this.privateType=null;this.clearDuplicateName()}function ja(){this.idContact=
|
||||
0;this.name=this.listName=this.imageHash="";this.emails=[];this.checked=e.observable(!1);this.selected=e.observable(!1);this.deleted=e.observable(!1)}function D(){this.fileName=this.mimeType="";this.estimatedSize=0;this.friendlySize="";this.isLinked=this.isInline=!1;this.mimeIndex=this.uid=this.folder=this.download=this.cidWithOutTags=this.cid=""}function N(a,b,d,l,f,s){this.id=a;this.isInline=c.isUnd(l)?!1:!!l;this.isLinked=c.isUnd(f)?!1:!!f;this.CID=c.isUnd(s)?"":s;this.fromMessage=!1;this.fileName=
|
||||
e.observable(b);this.size=e.observable(c.isUnd(d)?null:d);this.tempName=e.observable("");this.progress=e.observable("");this.error=e.observable("");this.waiting=e.observable(!0);this.uploading=e.observable(!1);this.enabled=e.observable(!0);this.friendlySize=e.computed(function(){return null===this.size()?"":c.friendlySize(this.size())},this)}function m(){this.requestHash=this.uid=this.folderFullNameRaw="";this.subject=e.observable("");this.size=e.observable(0);this.dateTimeStampInUTC=e.observable(0);
|
||||
this.priority=e.observable(g.MessagePriority.Normal);this.fromEmailString=e.observable("");this.toEmailsString=e.observable("");this.senderEmailsString=e.observable("");this.emails=[];this.from=[];this.to=[];this.cc=[];this.bcc=[];this.replyTo=[];this.newForAnimation=e.observable(!1);this.deleted=e.observable(!1);this.unseen=e.observable(!1);this.flagged=e.observable(!1);this.answered=e.observable(!1);this.forwarded=e.observable(!1);this.selected=e.observable(!1);this.checked=e.observable(!1);this.hasAttachments=
|
||||
e.observable(!1);this.moment=e.observable(Y());this.fullFormatDateValue=e.computed(function(){return m.calculateFullFromatDateValue(this.dateTimeStampInUTC())},this);this.fullFormatDateValue=e.computed(function(){return m.calculateFullFromatDateValue(this.dateTimeStampInUTC())},this);this.momentDate=c.createMomentDate(this);this.momentShortDate=c.createMomentShortDate(this);this.dateTimeStampInUTC.subscribe(function(a){var b=Y().unix();this.moment(Y.unix(b<a?b:a))},this);this.body=null;this.isHtml=
|
||||
e.observable(!1);this.hasImages=e.observable(!1);this.attachments=e.observableArray([]);this.priority=e.observable(g.MessagePriority.Normal);this.aDraftInfo=[];this.sReferences=this.sInReplyTo=this.sMessageId="";this.parentUid=e.observable(0);this.threads=e.observableArray([]);this.threadsLen=e.observable(0);this.hasUnseenSubMessage=e.observable(!1);this.hasFlaggedSubMessage=e.observable(!1);this.lastInCollapsedThread=e.observable(!1);this.lastInCollapsedThreadLoading=e.observable(!1);this.threadsLenResult=
|
||||
e.computed(function(){var a=this.threadsLen();return 0===this.parentUid()&&0<a?a+1:""},this)}function G(){this.name=e.observable("");this.namespace=this.delimiter=this.fullNameHash=this.fullNameRaw=this.fullName="";this.deep=0;this.selectable=!1;this.existen=!0;this.isUnpaddigFolder=this.isGmailFolder=this.isNamespaceFolder=!1;this.type=e.observable(g.FolderType.User);this.selected=e.observable(!1);this.edited=e.observable(!1);this.collapsed=e.observable(!0);this.subScribed=e.observable(!0);this.subFolders=
|
||||
e.observableArray([]);this.deleteAccess=e.observable(!1);this.actionBlink=e.observable(!1).extend({falseTimeout:1E3});this.nameForEdit=e.observable("");this.name.subscribe(function(a){this.nameForEdit(a)},this);this.edited.subscribe(function(a){a&&this.nameForEdit(this.name())},this);this.canBeEdited=e.computed(function(){return g.FolderType.User===this.type()},this);this.privateMessageCountAll=e.observable(0);this.privateMessageCountUnread=e.observable(0);this.collapsedPrivate=e.observable(!0)}function Ka(a,
|
||||
b){this.email=a;this.deleteAccess=e.observable(!1);this.canBeDalete=e.observable(b)}function va(){C.call(this,"Popups","PopupsFolderClear");this.selectedFolder=e.observable(null);this.clearingProcess=e.observable(!1);this.clearingError=e.observable("");this.folderFullNameForClear=e.computed(function(){var a=this.selectedFolder();return a?a.printableFullName():""},this);this.folderNameForClear=e.computed(function(){var a=this.selectedFolder();return a?a.localName():""},this);this.dangerDescHtml=e.computed(function(){return c.i18n("POPUPS_CLEAR_FOLDER/DANGER_DESC_HTML_1",
|
||||
{FOLDER:this.folderNameForClear()})},this);this.clearCommand=c.createCommand(this,function(){var a=this,b=this.selectedFolder();b&&(f.data().message(null),f.data().messageList([]),this.clearingProcess(!0),f.cache().setFolderHash(b.fullNameRaw,""),f.remote().folderClear(function(b,l){a.clearingProcess(!1);g.StorageResultType.Success===b&&l&&l.Result?(f.reloadMessageList(!0),a.cancelCommand()):l&&l.ErrorCode?a.clearingError(c.getNotification(l.ErrorCode)):a.clearingError(c.getNotification(g.Notification.MailServerError))},
|
||||
b.fullNameRaw))},function(){var a=this.selectedFolder();return!this.clearingProcess()&&null!==a})}function ba(){C.call(this,"Popups","PopupsFolderCreate");c.initOnStartOrLangChange(function(){this.sNoParentText=c.i18n("POPUPS_CREATE_FOLDER/SELECT_NO_PARENT")},this);this.folderName=e.observable("");this.focusTrigger=e.observable(!1);this.selectedParentValue=e.observable(t.Values.UnuseOptionValue);this.parentFolderSelectList=e.computed(function(){var a=f.data(),b=[],d=null,l=a.folderList();b.push(["",
|
||||
this.sNoParentText]);""!==a.namespace&&(d=function(b){return a.namespace!==b.fullNameRaw.substr(0,a.namespace.length)});return f.folderListOptionsBuilder([],l,[],b,null,d,null,function(a){return a?a.isSystemFolder()?a.name()+" "+a.manageFolderSystemName():a.name():""})},this);this.createFolder=c.createCommand(this,function(){var a=f.data(),b=this.selectedParentValue();""===b&&1<a.namespace.length&&(b=a.namespace.substr(0,a.namespace.length-1));a.foldersCreating(!0);f.remote().folderCreate(function(a,
|
||||
b){f.data().foldersCreating(!1);g.StorageResultType.Success===a&&b&&b.Result?f.folders(!1):f.data().foldersListError(b&&b.ErrorCode?c.getNotification(b.ErrorCode):c.i18n("NOTIFICATIONS/CANT_CREATE_FOLDER"))},this.folderName(),b);this.cancelCommand()},function(){return this.simpleFolderNameValidation(this.folderName())});this.defautOptionsAfterRender=c.defautOptionsAfterRender}function X(){C.call(this,"Popups","PopupsFolderSystem");c.initOnStartOrLangChange(function(){this.sChooseOnText=c.i18n("POPUPS_SYSTEM_FOLDERS/SELECT_CHOOSE_ONE");
|
||||
this.sUnuseText=c.i18n("POPUPS_SYSTEM_FOLDERS/SELECT_UNUSE_NAME")},this);this.notification=e.observable("");this.folderSelectList=e.computed(function(){return f.folderListOptionsBuilder([],f.data().folderList(),f.data().folderListSystemNames(),[["",this.sChooseOnText],[t.Values.UnuseOptionValue,this.sUnuseText]])},this);var a=f.data(),b=this,d=null,l=null;this.sentFolder=a.sentFolder;this.draftFolder=a.draftFolder;this.spamFolder=a.spamFolder;this.trashFolder=a.trashFolder;d=h.debounce(function(){f.settingsSet("SentFolder",
|
||||
b.sentFolder());f.settingsSet("DraftFolder",b.draftFolder());f.settingsSet("SpamFolder",b.spamFolder());f.settingsSet("TrashFolder",b.trashFolder());f.remote().saveSystemFolders(c.emptyFunction,{SentFolder:b.sentFolder(),DraftFolder:b.draftFolder(),SpamFolder:b.spamFolder(),TrashFolder:b.trashFolder()})},1E3);l=function(){f.settingsSet("SentFolder",b.sentFolder());f.settingsSet("DraftFolder",b.draftFolder());f.settingsSet("SpamFolder",b.spamFolder());f.settingsSet("TrashFolder",b.trashFolder());d()};
|
||||
this.sentFolder.subscribe(l);this.draftFolder.subscribe(l);this.spamFolder.subscribe(l);this.trashFolder.subscribe(l);this.defautOptionsAfterRender=c.defautOptionsAfterRender}function y(){C.call(this,"Popups","PopupsCompose");this.aDraftInfo=this.oEditor=null;this.sInReplyTo="";this.bFromDraft=!1;this.sReferences="";this.bReloadFolder=!1;var a=this,b=function(a){for(var b=0,d=a.length,c=[];b<d;b++)c.push(a[b].toLine(!1));return c.join(", ")},d=function(a){!1===this.showCcAndBcc()&&0<a.length&&this.showCcAndBcc(!0)};
|
||||
this.resizer=e.observable(!1).extend({throttle:50});this.to=e.observableArray([]);this.cc=e.observableArray([]);this.bcc=e.observableArray([]);this.subject=e.observable("");this.sendError=e.observable(!1);this.sendSuccessButSaveError=e.observable(!1);this.savedError=e.observable(!1);this.savedTime=e.observable(0);this.savedOrSendingText=e.observable("");this.emptyToError=e.observable(!1);this.showCcAndBcc=e.observable(!1);this.cc.subscribe(d,this);this.bcc.subscribe(d,this);this.draftFolder=e.observable("");
|
||||
this.draftUid=e.observable("");this.sending=e.observable(!1);this.saving=e.observable(!1);this.attachments=e.observableArray([]);this.attachmentsInProcess=e.computed(function(){return h.filter(this.attachments(),function(a){return a&&""===a.tempName()})},this);this.attachmentsInReady=e.computed(function(){return h.filter(this.attachments(),function(a){return a&&""!==a.tempName()})},this);this.attachments.subscribe(function(){this.triggerForResize()},this);this.isDraftFolderMessage=e.computed(function(){return""!==
|
||||
this.draftFolder()&&""!==this.draftUid()},this);this.composeUploaderButton=e.observable(null);this.composeUploaderDropPlace=e.observable(null);this.dragAndDropEnabled=e.observable(!1);this.dragAndDropOver=e.observable(!1).extend({throttle:1});this.dragAndDropVisible=e.observable(!1).extend({throttle:1});this.attacheMultipleAllowed=e.observable(!1);this.addAttachmentEnabled=e.observable(!1);this.composeEditorTextArea=e.observable(null);this.composeEditorHtmlArea=e.observable(null);this.composeEditorToolbar=
|
||||
e.observable(null);this.to.subscribe(function(a){this.emptyToError()&&0<a.length&&this.emptyToError(!1)},this);this.canBeSended=e.computed(function(){return!this.sending()&&!this.saving()&&0===this.attachmentsInProcess().length&&0<this.to().length},this);this.canBeSendedOrSaved=e.computed(function(){return!this.sending()&&!this.saving()},this);this.deleteCommand=c.createCommand(this,function(){var a=null,b=this.draftFolder(),d=this.draftUid();this.bFromDraft&&(a=f.data().message())&&(b===a.folderFullNameRaw&&
|
||||
d===a.uid)&&f.data().message(null);f.data().currentFolderFullNameRaw()===this.draftFolder()&&h.each(f.data().messageList(),function(a){a&&(b===a.folderFullNameRaw&&d===a.uid)&&a.deleted(true)});f.data().messageListIsNotCompleted(!0);f.remote().messagesDelete(function(){f.cache().setFolderHash(b,"");f.reloadMessageList()},this.draftFolder(),[this.draftUid()]);this.bReloadFolder=!1;r.hideScreenPopup(y)},function(){return this.isDraftFolderMessage()});this.sendMessageResponse=h.bind(this.sendMessageResponse,
|
||||
this);this.saveMessageResponse=h.bind(this.saveMessageResponse,this);this.sendCommand=c.createCommand(this,function(){var a=this.to(),d=f.data().sentFolder(),e=[];if(0===a.length)this.emptyToError(!0);else if(f.data().replySameFolder()&&c.isArray(this.aDraftInfo)&&(3===this.aDraftInfo.length&&c.isNormal(this.aDraftInfo[2])&&0<this.aDraftInfo[2].length)&&(d=this.aDraftInfo[2]),""===d)r.showScreenPopup(X,[g.SetSystemFoldersNotification.Sent]);else{this.sendError(!1);this.sending(!0);this.bReloadFolder=
|
||||
!0;if(c.isArray(this.aDraftInfo)&&3===this.aDraftInfo.length&&(e=f.cache().getMessageFlagsFromCache(this.aDraftInfo[2],this.aDraftInfo[1])))"forward"===this.aDraftInfo[0]?e[3]=!0:e[2]=!0,f.cache().setMessageFlagsToCache(this.aDraftInfo[2],this.aDraftInfo[1],e),f.reloadFlagsCurrentMessageListAndMessageFromCache();d=t.Values.UnuseOptionValue===d?"":d;f.cache().setFolderHash(this.draftFolder(),"");f.cache().setFolderHash(d,"");f.remote().sendMessage(this.sendMessageResponse,this.draftFolder(),this.draftUid(),
|
||||
d,b(a),b(this.cc()),b(this.bcc()),this.subject(),this.oEditor.isHtml(),this.oEditor.getTextForRequest(),this.prepearAttachmentsForSendOrSave(),this.aDraftInfo,this.sInReplyTo,this.sReferences)}},this.canBeSendedOrSaved);this.saveCommand=c.createCommand(this,function(){f.data().draftFolderNotEnabled()?r.showScreenPopup(X,[g.SetSystemFoldersNotification.Draft]):(this.savedError(!1),this.saving(!0),this.bReloadFolder=!0,f.cache().setFolderHash(f.data().draftFolder(),""),f.remote().saveMessage(this.saveMessageResponse,
|
||||
this.draftFolder(),this.draftUid(),f.data().draftFolder(),b(this.to()),b(this.cc()),b(this.bcc()),this.subject(),this.oEditor.isHtml(),this.oEditor.getTextForRequest(),this.prepearAttachmentsForSendOrSave(),this.aDraftInfo,this.sInReplyTo,this.sReferences))},this.canBeSendedOrSaved);wa.subscribe(function(){this.modalVisibility()&&(!f.data().draftFolderNotEnabled()&&!this.isEmptyForm(!1)&&!this.saving()&&!this.sending()&&!this.savedError())&&this.saveCommand()},this);c.initOnStartOrLangChange(null,
|
||||
this,function(){this.oEditor&&this.oEditor.initLanguage(c.i18n("EDITOR/TEXT_SWITCHER_CONFIRM"),c.i18n("EDITOR/TEXT_SWITCHER_PLAINT_TEXT"),c.i18n("EDITOR/TEXT_SWITCHER_RICH_FORMATTING"))});this.showCcAndBcc.subscribe(function(){this.triggerForResize()},this);this.dropboxEnabled=e.observable(f.settingsGet("DropboxApiKey")?!0:!1);this.dropboxCommand=c.createCommand(this,function(){Dropbox.choose({success:function(b){b&&(b[0]&&b[0].link)&&a.addDropboxAttachment(b[0])},linkType:"direct",multiselect:!1});
|
||||
return!0},function(){return this.dropboxEnabled()});this.modalVisibility.subscribe(function(a){!a&&this.bReloadFolder&&(this.bReloadFolder=!1,f.reloadMessageList())},this);this.driveEnabled=e.observable(!1);this.driveCommand=c.createCommand(this,function(){return!0},function(){return this.driveEnabled()})}function L(){C.call(this,"Popups","PopupsContacts");var a=this;this.imageUploader=e.observable(null);this.imageDom=e.observable(null);this.imageTrigger=e.observable(!1);this.search=e.observable("");
|
||||
this.contacts=e.observableArray([]);this.contacts.loading=e.observable(!1).extend({throttle:200});this.currentContact=e.observable(null);this.emptySelection=e.observable(!0);this.viewClearSearch=e.observable(!1);this.viewID=e.observable("");this.viewName=e.observable("");this.viewName.focused=e.observable(!1);this.viewEmail=e.observable("").validateEmail();this.viewEmail.focused=e.observable(!1);this.viewImageUrl=e.observable(f.link().emptyContactPic());this.viewSaving=e.observable(!1);this.useCheckboxesInList=
|
||||
f.data().useCheckboxesInList;this.search.subscribe(function(){this.reloadContactList()},this);this.contacts.subscribe(function(){c.windowResize()},this);this.viewImageUrl.subscribe(function(a){this.imageDom().src=a},this);this.contactsChecked=e.computed(function(){return h.filter(this.contacts(),function(a){return a.checked()})},this);this.contactsCheckedOrSelected=e.computed(function(){var a=this.contactsChecked(),d=this.currentContact();return h.union(a,d?[d]:[])},this);this.contactsCheckedOrSelectedUids=
|
||||
e.computed(function(){return h.map(this.contactsCheckedOrSelected(),function(a){return a.idContact})},this);this.newCommand=c.createCommand(this,function(){this.populateViewContact(null)});this.selector=new M(this.contacts,this.currentContact,".e-contact-item .actionHandle",".e-contact-item.selected",".e-contact-item .checkboxItem");this.selector.on("onItemSelect",h.bind(function(a){this.populateViewContact(a?a:null)},this));this.selector.on("onItemGetUid",function(a){return a?a.generateUid():""});
|
||||
this.selector.on("onDelete",h.bind(function(){this.deleteCommand()},this));this.newCommand=c.createCommand(this,function(){this.populateViewContact(null);this.currentContact(null)});this.deleteCommand=c.createCommand(this,function(){this.deleteSelectedContacts()},function(){return 0<this.contactsCheckedOrSelected().length});this.newMessageCommand=c.createCommand(this,function(){var a=this.contactsCheckedOrSelected(),d=[];c.isNonEmptyArray(a)&&(d=h.map(a,function(a){return a&&a.emails&&(a=new F(a.emails[0]||
|
||||
"",a.name),a.validate())?a:null}),d=h.compact(d));c.isNonEmptyArray(a)&&(r.hideScreenPopup(L),r.showScreenPopup(y,[g.ComposeType.Empty,null,d]))},function(){return 0<this.contactsCheckedOrSelected().length});this.clearCommand=c.createCommand(this,function(){this.search("")});this.saveCommand=c.createCommand(this,function(){var b=c.fakeMd5(),d=this.imageTrigger();this.viewSaving(!0);f.remote().contactSave(function(l,e){a.viewSaving(!1);g.StorageResultType.Success===l&&(e&&e.Result&&e.Result.RequestUid===
|
||||
b&&0<c.pInt(e.Result.ResultID))&&(""===a.viewID()&&a.viewID(c.pInt(e.Result.ResultID)),a.reloadContactList(),d&&f.emailsPicsHashes())},b,this.viewID(),this.viewName(),this.viewEmail(),d?this.imageDom().src:"")},function(){var a=this.viewName(),d=this.viewEmail();return!this.viewSaving()&&(""!==a||""!==d)})}function ca(){C.call(this,"Popups","PopupsAdvancedSearch");this.fromFocus=e.observable(!1);this.from=e.observable("");this.to=e.observable("");this.subject=e.observable("");this.text=e.observable("");
|
||||
this.selectedDateValue=e.observable(-1);this.hasAttachments=e.observable(!1);this.searchCommand=c.createCommand(this,function(){var a=this.buildSearchString();""!==a&&f.data().mainMessageListSearch(a);this.cancelCommand()})}function da(){C.call(this,"Popups","PopupsAddAccount");this.email=e.observable("");this.login=e.observable("");this.password=e.observable("");this.emailError=e.observable(!1);this.loginError=e.observable(!1);this.passwordError=e.observable(!1);this.email.subscribe(function(){this.emailError(!1)},
|
||||
this);this.login.subscribe(function(){this.loginError(!1)},this);this.password.subscribe(function(){this.passwordError(!1)},this);this.allowCustomLogin=e.observable(!1);this.submitRequest=e.observable(!1);this.submitError=e.observable("");this.emailFocus=e.observable(!1);this.loginFocus=e.observable(!1);this.addAccountCommand=c.createCommand(this,function(){this.emailError(""===c.trim(this.email()));this.passwordError(""===c.trim(this.password()));if(this.emailError()||this.passwordError())return!1;
|
||||
this.submitRequest(!0);f.remote().accountAdd(h.bind(function(a,b){this.submitRequest(!1);g.StorageResultType.Success===a&&b&&"AccountAdd"===b.Action?b.Result?(f.accounts(),this.cancelCommand()):b.ErrorCode&&this.submitError(c.getNotification(b.ErrorCode)):this.submitError(c.getNotification(g.Notification.UnknownError))},this),this.email(),this.login(),this.password());return!0},function(){return!this.submitRequest()});this.loginFocus.subscribe(function(a){a&&(""===this.login()&&""!==this.email())&&
|
||||
this.login(this.email())},this)}function ka(){C.call(this,"Right","Login");this.email=e.observable("");this.login=e.observable("");this.password=e.observable("");this.signMe=e.observable(!1);this.logoMain=e.observable("RainLoop");this.emailError=e.observable(!1);this.loginError=e.observable(!1);this.passwordError=e.observable(!1);this.emailFocus=e.observable(!1);this.loginFocus=e.observable(!1);this.submitFocus=e.observable(!1);this.email.subscribe(function(){this.emailError(!1)},this);this.login.subscribe(function(){this.loginError(!1)},
|
||||
this);this.password.subscribe(function(){this.passwordError(!1)},this);this.allowCustomLogin=e.observable(!1);this.submitRequest=e.observable(!1);this.submitError=e.observable("");this.signMeType=e.observable(g.LoginSignMeType.Unused);this.signMeType.subscribe(function(a){this.signMe(g.LoginSignMeType.DefaultOn===a)},this);this.signMeVisibility=e.computed(function(){return g.LoginSignMeType.Unused!==this.signMeType()},this);this.submitCommand=c.createCommand(this,function(){this.emailError(""===c.trim(this.email()));
|
||||
this.passwordError(""===c.trim(this.password()));if(this.emailError()||this.passwordError())return!1;this.submitRequest(!0);f.remote().login(h.bind(function(a,b){g.StorageResultType.Success===a&&b&&"Login"===b.Action?b.Result?f.loginAndLogoutReload():b.ErrorCode?(this.submitRequest(!1),this.submitError(c.getNotification(b.ErrorCode))):this.submitRequest(!1):(this.submitRequest(!1),this.submitError(c.getNotification(g.Notification.UnknownError)))},this),this.email(),this.login(),this.password(),!!this.signMe());
|
||||
return!0},function(){return!this.submitRequest()});this.facebookLoginEnabled=e.observable(!1);this.facebookCommand=c.createCommand(this,function(){j.open(f.link().socialFacebook(),"Facebook","left=200,top=100,width=650,height=335,menubar=no,status=no,resizable=yes,scrollbars=yes");return!0},function(){return!this.submitRequest()&&this.facebookLoginEnabled()});this.googleLoginEnabled=e.observable(!1);this.googleCommand=c.createCommand(this,function(){j.open(f.link().socialGoogle(),"Google","left=200,top=100,width=650,height=335,menubar=no,status=no,resizable=yes,scrollbars=yes");
|
||||
return!0},function(){return!this.submitRequest()&&this.googleLoginEnabled()});this.twitterLoginEnabled=e.observable(!1);this.twitterCommand=c.createCommand(this,function(){j.open(f.link().socialTwitter(),"Twitter","left=200,top=100,width=650,height=335,menubar=no,status=no,resizable=yes,scrollbars=yes");return!0},function(){return!this.submitRequest()&&this.twitterLoginEnabled()});this.loginFocus.subscribe(function(a){a&&(""===this.login()&&""!==this.email())&&this.login(this.email())},this)}function Q(){C.call(this,
|
||||
"Right","SystemDropDown");var a=f.data();this.accounts=a.accounts;this.accountEmail=a.accountEmail;this.accountsLoading=a.accountsLoading;this.allowAddAccount=f.settingsGet("AllowAdditionalAccounts");this.loading=e.computed(function(){return this.accountsLoading()},this);this.accountClick=h.bind(this.accountClick,this)}function Va(){Q.call(this)}function Wa(){Q.call(this)}function ea(){C.call(this,"Left","MailFolderList");this.folderList=f.data().folderList;this.folderListSystem=f.data().folderListSystem;
|
||||
this.allowContacts=!!f.settingsGet("ContactsIsSupported")}function z(){C.call(this,"Right","MailMessageList");this.sLastUid=null;this.emptySubjectValue="";var a=f.data();this.popupVisibility=f.popupVisibility;this.messageList=a.messageList;this.currentMessage=a.currentMessage;this.isMessageSelected=a.isMessageSelected;this.messageListSearch=a.messageListSearch;this.messageListError=a.messageListError;this.folderMenuForMove=a.folderMenuForMove;this.useCheckboxesInList=a.useCheckboxesInList;this.mainMessageListSearch=
|
||||
a.mainMessageListSearch;this.messageListEndFolder=a.messageListEndFolder;this.messageListChecked=a.messageListChecked;this.messageListCheckedOrSelected=a.messageListCheckedOrSelected;this.messageListCheckedOrSelectedUidsWithSubMails=a.messageListCheckedOrSelectedUidsWithSubMails;this.messageListCompleteLoadingThrottle=a.messageListCompleteLoadingThrottle;c.initOnStartOrLangChange(function(){this.emptySubjectValue=c.i18n("MESSAGE_LIST/EMPTY_SUBJECT_TEXT")},this);this.userQuota=a.userQuota;this.userUsageSize=
|
||||
a.userUsageSize;this.userUsageProc=a.userUsageProc;this.dragOver=e.observable(!1).extend({throttle:1});this.dragOverEnter=e.observable(!1).extend({throttle:1});this.dragOverArea=e.observable(null);this.dragOverBodyArea=e.observable(null);this.messageListItemTemplate=e.computed(function(){return a.usePreviewPane()?"MailMessageListItem":"MailMessageListItemNoPreviewPane"});this.messageListSearchDesc=e.computed(function(){var b=a.messageListEndSearch();return""===b?"":c.i18n("MESSAGE_LIST/SEARCH_RESULT_FOR",
|
||||
{SEARCH:b})});this.messageListPagenator=e.computed(function(){var b=0,d=0,l=2,f=[],e=a.messageListPage(),g=a.messageListPageCount(),k=function(a,b,d){a={current:a===e,name:c.isUnd(d)?a.toString():d.toString(),custom:c.isUnd(d)?!1:!0,title:c.isUnd(d)?"":a.toString(),value:a.toString()};c.isUnd(b)||b?f.push(a):f.unshift(a)};if(1<g||0<g&&g<e){if(g<e)k(g),d=b=g;else{if(3>=e||g-2<=e)l+=2;k(e);d=b=e}for(;0<l;)if(b-=1,d+=1,0<b&&(k(b,!1),l--),g>=d)k(d,!0),l--;else if(0>=b)break;3===b?k(2,!1):3<b&&k(Math.round((b-
|
||||
1)/2),!1,"...");g-2===d?k(g-1,!0):g-2>d&&k(Math.round((g+d)/2),!0,"...");1<b&&k(1,!1);g>d&&k(g,!0)}return f},this);this.checkAll=e.computed({read:function(){return 0<f.data().messageListCheckedOrSelected().length},write:function(a){a=!!a;h.each(f.data().messageList(),function(d){d.checked(a)});a||f.data().message(null)}});this.inputMessageListSearchFocus=e.observable(!1);this.sLastSearchValue="";this.inputProxyMessageListSearch=e.computed({read:this.mainMessageListSearch,write:function(a){this.sLastSearchValue=
|
||||
a},owner:this});this.isIncompleteChecked=e.computed(function(){var a=f.data().messageList().length,d=f.data().messageListCheckedOrSelected().length;return 0<a&&0<d&&a>d},this);this.hasMessages=e.computed(function(){return 0<this.messageList().length},this);this.hasCheckedLines=e.computed(function(){return 0<this.messageListChecked().length},this);this.hasCheckedOrSelectedLines=e.computed(function(){return 0<this.messageListCheckedOrSelected().length},this);this.isSpamFolder=e.computed(function(){return f.data().spamFolder()===
|
||||
this.messageListEndFolder()},this);this.isTrashFolder=e.computed(function(){return f.data().trashFolder()===this.messageListEndFolder()},this);this.canBeMoved=this.hasCheckedOrSelectedLines;this.clearCommand=c.createCommand(this,function(){r.showScreenPopup(va,[f.data().currentFolder()])});this.multyForwardCommand=c.createCommand(this,function(){r.showScreenPopup(y,[g.ComposeType.ForwardAsAttachment,f.data().messageListCheckedOrSelected()])},this.canBeMoved);this.deleteWithoutMoveCommand=c.createCommand(this,
|
||||
function(){this.deleteSelectedMessageFromCurrentFolder(g.FolderType.Trash,!1)},this.canBeMoved);this.deleteCommand=c.createCommand(this,function(){this.deleteSelectedMessageFromCurrentFolder(g.FolderType.Trash,!0)},this.canBeMoved);this.spamCommand=c.createCommand(this,function(){this.deleteSelectedMessageFromCurrentFolder(g.FolderType.Spam,!0)},this.canBeMoved);this.moveCommand=c.createCommand(this,c.emptyFunction,this.canBeMoved);this.setCommand=c.createCommand(this,c.emptyFunction,this.hasCheckedLines);
|
||||
this.checkCommand=c.createCommand(this,c.emptyFunction,this.hasCheckedLines);this.reloadCommand=c.createCommand(this,function(){f.data().messageListCompleteLoadingThrottle()||f.reloadMessageList(!1,!0)});this.quotaTooltip=h.bind(this.quotaTooltip,this);this.selector=new M(this.messageList,this.currentMessage,".messageListItem .actionHandle",".messageListItem.selected",".messageListItem .checkboxMessage");this.selector.on("onItemSelect",h.bind(function(b){b?(a.message(a.staticMessageList.populateByMessageListItem(b)),
|
||||
this.populateMessageBody(a.message())):a.message(null)},this));this.selector.on("onItemGetUid",function(a){return a?a.generateUid():""});this.selector.on("onDelete",h.bind(function(){0<f.data().messageListCheckedOrSelected().length&&this.deleteCommand()},this))}function H(){C.call(this,"Right","MailMessageView");var a="",b=f.data(),d=this,l=function(a){return c.createCommand(d,function(){this.replyOrforward(a)},d.canBeRepliedOrForwarded)};this.oMessageScrollerDom=null;this.message=b.message;this.messageLoading=
|
||||
b.messageLoading;this.messageLoadingThrottle=b.messageLoadingThrottle;this.messagesBodiesDom=b.messagesBodiesDom;this.useThreads=b.useThreads;this.replySameFolder=b.replySameFolder;this.usePreviewPane=b.usePreviewPane;this.isMessageSelected=b.isMessageSelected;this.messageActiveDom=b.messageActiveDom;this.messageError=b.messageError;this.fullScreenMode=b.messageFullScreenMode;this.showFullInfo=e.observable(!1);this.canBeRepliedOrForwarded=this.messageVisibility=e.computed(function(){return!this.messageLoadingThrottle()&&
|
||||
!!this.message()},this);this.closeMessage=c.createCommand(this,function(){b.message(null)});this.replyCommand=l(g.ComposeType.Reply);this.replyAllCommand=l(g.ComposeType.ReplyAll);this.forwardCommand=l(g.ComposeType.Forward);this.forwardAsAttachmentCommand=l(g.ComposeType.ForwardAsAttachment);this.messageVisibilityCommand=c.createCommand(this,c.emptyFunction,this.messageVisibility);this.viewSubject=e.observable("");this.viewFromShort=e.observable("");this.viewToShort=e.observable("");this.viewFrom=
|
||||
e.observable("");this.viewTo=e.observable("");this.viewCc=e.observable("");this.viewBcc=e.observable("");this.viewDate=e.observable("");this.viewMoment=e.observable("");this.viewLineAsCcc=e.observable("");this.viewHasImages=e.observable(!1);this.viewHasVisibleAttachments=e.observable(!1);this.viewAttachments=e.observableArray([]);this.viewIsHtml=e.observable(!1);this.viewViewLink=e.observable("");this.viewDownloadLink=e.observable("");this.viewUserPic=e.observable(t.DataImages.UserDotPic);this.viewUserPicVisible=
|
||||
e.observable(!1);this.message.subscribe(function(b){this.messageActiveDom(null);b&&(this.viewSubject(b.subject()),this.viewFromShort(b.fromToLine(!0,!0)),this.viewToShort(b.toToLine(!0,!0)),this.viewFrom(b.fromToLine(!1)),this.viewTo(b.toToLine(!1)),this.viewCc(b.ccToLine(!1)),this.viewBcc(b.bccToLine(!1)),this.viewDate(b.fullFormatDateValue()),this.viewMoment(b.momentDate()),this.viewLineAsCcc(b.lineAsCcc()),this.viewHasImages(b.hasImages()),this.viewHasVisibleAttachments(b.hasVisibleAttachments()),
|
||||
this.viewAttachments(b.attachments()),this.viewIsHtml(b.isHtml()),this.viewViewLink(b.viewLink()),this.viewDownloadLink(b.downloadLink()),a=f.cache().getUserPic(b.fromAsSingleEmail()),a!==this.viewUserPic()&&(this.viewUserPicVisible(!1),this.viewUserPic(t.DataImages.UserDotPic),""!==a&&(this.viewUserPicVisible(!0),this.viewUserPic(a))))},this);this.fullScreenMode.subscribe(function(a){a?Z.addClass("rl-message-fullscreen"):Z.removeClass("rl-message-fullscreen")});this.messageActiveDom.subscribe(function(){this.scrollMessageToTop();
|
||||
c.windowResize()},this)}function xa(a){C.call(this,"Left","SettingsMenu");this.menu=a.menu}function ya(){C.call(this,"Right","SettingsPane")}function La(){var a=f.data();this.mainLanguage=a.mainLanguage;this.mainMessagesPerPage=a.mainMessagesPerPage;this.editorDefaultType=a.editorDefaultType;this.showImages=a.showImages;this.showAnimation=a.showAnimation;this.useDesktopNotifications=a.useDesktopNotifications;this.useThreads=a.useThreads;this.replySameFolder=a.replySameFolder;this.usePreviewPane=a.usePreviewPane;
|
||||
this.useCheckboxesInList=a.useCheckboxesInList;this.languagesOptions=e.computed(function(){return h.map(a.languages(),function(a){return{optValue:a,optText:c.i18n("LANGS_NAMES/LANG_"+a.toUpperCase(),null,a)}})});this.isDesctopNotificationsSupported=e.computed(function(){return g.DesctopNotifications.NotSupported!==a.desktopNotificationsPermisions()});this.isDesctopNotificationsDenied=e.computed(function(){return g.DesctopNotifications.NotSupported===a.desktopNotificationsPermisions()||g.DesctopNotifications.Denied===
|
||||
a.desktopNotificationsPermisions()});this.languageTrigger=e.observable(g.SaveSettingsStep.Idle).extend({throttle:100});this.mppTrigger=e.observable(g.SaveSettingsStep.Idle)}function Xa(){var a=f.data();this.displayName=a.displayName;this.replyTo=a.replyTo;this.signature=a.signature;this.nameTrigger=e.observable(g.SaveSettingsStep.Idle);this.replyTrigger=e.observable(g.SaveSettingsStep.Idle);this.signatureTrigger=e.observable(g.SaveSettingsStep.Idle)}function la(){this.accounts=f.data().accounts;this.processText=
|
||||
e.computed(function(){return f.data().accountsLoading()?c.i18n("SETTINGS_ACCOUNTS/LOADING_PROCESS"):""},this);this.visibility=e.computed(function(){return""===this.processText()?"hidden":"visible"},this);this.accountForDeletion=e.observable(null).extend({falseTimeout:3E3}).extend({toggleSubscribe:[this,function(a){a&&a.deleteAccess(!1)},function(a){a&&a.deleteAccess(!0)}]})}function Ma(){var a=f.data();this.googleEnable=a.googleEnable;this.googleActions=a.googleActions;this.googleLoggined=a.googleLoggined;
|
||||
this.googleUserName=a.googleUserName;this.facebookEnable=a.facebookEnable;this.facebookActions=a.facebookActions;this.facebookLoggined=a.facebookLoggined;this.facebookUserName=a.facebookUserName;this.twitterEnable=a.twitterEnable;this.twitterActions=a.twitterActions;this.twitterLoggined=a.twitterLoggined;this.twitterUserName=a.twitterUserName;this.connectGoogle=c.createCommand(this,function(){this.googleLoggined()||f.googleConnect()},function(){return!this.googleLoggined()&&!this.googleActions()});
|
||||
this.disconnectGoogle=c.createCommand(this,function(){f.googleDisconnect()});this.connectFacebook=c.createCommand(this,function(){this.facebookLoggined()||f.facebookConnect()},function(){return!this.facebookLoggined()&&!this.facebookActions()});this.disconnectFacebook=c.createCommand(this,function(){f.facebookDisconnect()});this.connectTwitter=c.createCommand(this,function(){this.twitterLoggined()||f.twitterConnect()},function(){return!this.twitterLoggined()&&!this.twitterActions()});this.disconnectTwitter=
|
||||
c.createCommand(this,function(){f.twitterDisconnect()})}function ma(){this.changeProcess=e.observable(!1);this.passwordUpdateError=e.observable(!1);this.passwordUpdateSuccess=e.observable(!1);this.currentPassword=e.observable("");this.newPassword=e.observable("");this.currentPassword.subscribe(function(){this.passwordUpdateError(!1);this.passwordUpdateSuccess(!1)},this);this.newPassword.subscribe(function(){this.passwordUpdateError(!1);this.passwordUpdateSuccess(!1)},this);this.saveNewPasswordCommand=
|
||||
c.createCommand(this,function(){this.changeProcess(!0);this.passwordUpdateError(!1);this.passwordUpdateSuccess(!1);f.remote().changePassword(this.onChangePasswordResponse,this.currentPassword(),this.newPassword())},function(){return!this.changeProcess()&&""!==this.currentPassword()&&""!==this.newPassword()});this.onChangePasswordResponse=h.bind(this.onChangePasswordResponse,this)}function S(){var a=f.data();this.ignoreFolderSubscribe=a.ignoreFolderSubscribe;this.foldersListError=a.foldersListError;
|
||||
this.folderList=a.folderList;this.processText=e.computed(function(){var a=f.data(),d=a.foldersLoading(),l=a.foldersCreating(),e=a.foldersDeleting(),a=a.foldersRenaming();return l?c.i18n("SETTINGS_FOLDERS/CREATING_PROCESS"):e?c.i18n("SETTINGS_FOLDERS/DELETING_PROCESS"):a?c.i18n("SETTINGS_FOLDERS/RENAMING_PROCESS"):d?c.i18n("SETTINGS_FOLDERS/LOADING_PROCESS"):""},this);this.visibility=e.computed(function(){return""===this.processText()?"hidden":"visible"},this);this.folderForDeletion=e.observable(null).extend({falseTimeout:3E3}).extend({toggleSubscribe:[this,
|
||||
function(a){a&&a.deleteAccess(!1)},function(a){a&&a.deleteAccess(!0)}]});this.folderForEdit=e.observable(null).extend({toggleSubscribe:[this,function(a){a&&a.edited(!1)},function(a){a&&a.canBeEdited()&&a.edited(!0)}]})}function za(){var a=this;this.mainTheme=f.data().mainTheme;this.customThemeType=e.observable(f.settingsGet("CustomThemeType"));this.customThemeImg=e.observable(f.settingsGet("CustomThemeImg"));this.themesObjects=e.observableArray([]);this.customThemeUploaderProgress=e.observable(!1);
|
||||
this.customThemeUploaderButton=e.observable(null);this.showCustomThemeConfig=e.computed(function(){return"Custom"===this.mainTheme()},this);this.showCustomThemeConfig.subscribe(function(){c.windowResize()});this.themeTrigger=e.observable(g.SaveSettingsStep.Idle).extend({throttle:100});this.oLastAjax=null;this.iTimer=0;f.data().theme.subscribe(function(b){h.each(this.themesObjects(),function(a){a.selected(b===a.name)});var d=i("#rlThemeLink"),l=i("#rlThemeStyle"),e=d.attr("href");e||(e=l.attr("data-href"));
|
||||
e&&(e=e.toString().replace(/\/-\/[^\/]+\/\-\//,"/-/"+b+"/-/"),e=e.toString().replace(/\/Css\/[^\/]+\/User\//,"/Css/"+("Custom"===b&&j.__rlah?j.__rlah()||"0":"0")+"/User/"),"Json/"!==e.substring(e.length-5,e.length)&&(e+="Json/"),j.clearTimeout(a.iTimer),a.themeTrigger(g.SaveSettingsStep.Animate),this.oLastAjax&&this.oLastAjax.abort&&this.oLastAjax.abort(),this.oLastAjax=i.ajax({url:e,dataType:"json"}).done(function(b){if(b&&c.isArray(b)&&2===b.length){if(d&&d[0]&&(!l||!l[0]))l=i('<style id="rlThemeStyle"></style>'),
|
||||
d.after(l),d.remove();l&&l[0]&&l.attr("data-href",e).attr("data-theme",b[0]).text(b[1]);a.themeTrigger(g.SaveSettingsStep.TrueResult)}}).always(function(){a.iTimer=j.setTimeout(function(){a.themeTrigger(g.SaveSettingsStep.Idle)},1E3);a.oLastAjax=null}));f.remote().saveSettings(null,{Theme:b})},this)}function Na(){c.initDataConstructorBySettings(this)}function T(){c.initDataConstructorBySettings(this);var a=function(a){return function(){var b=f.cache().getFolderFromCacheList(a());b&&b.type(g.FolderType.User)}},
|
||||
b=function(a){return function(b){(b=f.cache().getFolderFromCacheList(b))&&b.type(a)}};this.devPassword=this.devLogin=this.devEmail="";this.accountEmail=e.observable("");this.accountLogin=e.observable("");this.projectHash=e.observable("");this.threading=!1;this.lastFoldersHash="";this.remoteChangePassword=this.remoteSuggestions=!1;this.sentFolder=e.observable("");this.draftFolder=e.observable("");this.spamFolder=e.observable("");this.trashFolder=e.observable("");this.sentFolder.subscribe(a(this.sentFolder),
|
||||
this,"beforeChange");this.draftFolder.subscribe(a(this.draftFolder),this,"beforeChange");this.spamFolder.subscribe(a(this.spamFolder),this,"beforeChange");this.trashFolder.subscribe(a(this.trashFolder),this,"beforeChange");this.sentFolder.subscribe(b(g.FolderType.SentItems),this);this.draftFolder.subscribe(b(g.FolderType.Draft),this);this.spamFolder.subscribe(b(g.FolderType.Spam),this);this.trashFolder.subscribe(b(g.FolderType.Trash),this);this.draftFolderNotEnabled=e.computed(function(){return""===
|
||||
this.draftFolder()||t.Values.UnuseOptionValue===this.draftFolder()},this);this.displayName=e.observable("");this.signature=e.observable("");this.replyTo=e.observable("");this.accounts=e.observableArray([]);this.accountsLoading=e.observable(!1);this.namespace="";this.folderList=e.observableArray([]);this.foldersListError=e.observable("");this.foldersLoading=e.observable(!1);this.foldersCreating=e.observable(!1);this.foldersDeleting=e.observable(!1);this.foldersRenaming=e.observable(!1);this.currentFolder=
|
||||
e.observable(null).extend({toggleSubscribe:[null,function(a){a&&a.selected(!1)},function(a){a&&a.selected(!0)}]});this.currentFolderFullNameRaw=e.computed(function(){return this.currentFolder()?this.currentFolder().fullNameRaw:""},this);this.currentFolderFullName=e.computed(function(){return this.currentFolder()?this.currentFolder().fullName:""},this);this.currentFolderFullNameHash=e.computed(function(){return this.currentFolder()?this.currentFolder().fullNameHash:""},this);this.currentFolderName=
|
||||
e.computed(function(){return this.currentFolder()?this.currentFolder().name():""},this);this.folderListSystemNames=e.computed(function(){var a=["INBOX"],b=this.folderList(),f=this.sentFolder(),e=this.draftFolder(),g=this.spamFolder(),k=this.trashFolder();c.isArray(b)&&0<b.length&&(""!==f&&t.Values.UnuseOptionValue!==f&&a.push(f),""!==e&&t.Values.UnuseOptionValue!==e&&a.push(e),""!==g&&t.Values.UnuseOptionValue!==g&&a.push(g),""!==k&&t.Values.UnuseOptionValue!==k&&a.push(k));return a},this);this.folderListSystem=
|
||||
e.computed(function(){return h.compact(h.map(this.folderListSystemNames(),function(a){return f.cache().getFolderFromCacheList(a)}))},this);this.folderMenuForMove=e.computed(function(){return f.folderListOptionsBuilder(this.folderListSystem(),this.folderList(),[this.currentFolderFullNameRaw()],null,null,null,null,function(a){return a?a.localName():""})},this);this.staticMessageList=[];this.messageList=e.observableArray([]);this.messageListCount=e.observable(0);this.messageListSearch=e.observable("");
|
||||
this.messageListPage=e.observable(1);this.messageListThreadFolder=e.observable("");this.messageListThreadUids=e.observableArray([]);this.messageListThreadFolder.subscribe(function(){this.messageListThreadUids([])},this);this.messageListEndSearch=e.observable("");this.messageListEndFolder=e.observable("");this.messageListPageCount=e.computed(function(){var a=Math.ceil(this.messageListCount()/this.messagesPerPage());return 0===a?1:a},this);this.mainMessageListSearch=e.computed({read:this.messageListSearch,
|
||||
write:function(a){r.setHash(f.link().mailBox(this.currentFolderFullNameHash(),1,c.trim(a.toString())))},owner:this});this.messageListError=e.observable("");this.messageListLoading=e.observable(!1);this.messageListIsNotCompleted=e.observable(!1);this.messageListCompleteLoadingThrottle=e.observable(!1).extend({throttle:200});this.messageListCompleteLoading=e.computed(function(){var a=this.messageListLoading(),b=this.messageListIsNotCompleted();return a||b},this);this.messageListCompleteLoading.subscribe(function(a){this.messageListCompleteLoadingThrottle(a)},
|
||||
this);this.messageList.subscribe(h.debounce(function(a){h.each(a,function(a){a.newForAnimation()&&a.newForAnimation(!1)})},500));this.staticMessageList=new m;this.message=e.observable(null);this.messageLoading=e.observable(!1);this.messageLoadingThrottle=e.observable(!1).extend({throttle:50});this.messageLoading.subscribe(function(a){this.messageLoadingThrottle(a)},this);this.messageFullScreenMode=e.observable(!1);this.messageError=e.observable("");this.messagesBodiesDom=e.observable(null);this.messagesBodiesDom.subscribe(function(a){a&&
|
||||
!(a instanceof jQuery)&&this.messagesBodiesDom(i(a))},this);this.messageActiveDom=e.observable(null);this.isMessageSelected=e.computed(function(){return null!==this.message()},this);this.currentMessage=e.observable(null);this.message.subscribe(function(a){null===a&&this.currentMessage(null)},this);this.messageListChecked=e.computed(function(){return h.filter(this.messageList(),function(a){return a.checked()})},this);this.messageListCheckedOrSelected=e.computed(function(){var a=this.messageListChecked(),
|
||||
b=this.currentMessage();return h.union(a,b?[b]:[])},this);this.messageListCheckedUids=e.computed(function(){var a=[];h.each(this.messageListChecked(),function(b){b&&(a.push(b.uid),0<b.threadsLen()&&(0===b.parentUid()&&b.lastInCollapsedThread())&&(a=h.union(a,b.threads())))});return a},this);this.messageListCheckedOrSelectedUidsWithSubMails=e.computed(function(){var a=[];h.each(this.messageListCheckedOrSelected(),function(b){b&&(a.push(b.uid),0<b.threadsLen()&&(0===b.parentUid()&&b.lastInCollapsedThread())&&
|
||||
(a=h.union(a,b.threads())))});return a},this);this.userQuota=e.observable(0);this.userUsageSize=e.observable(0);this.userUsageProc=e.computed(function(){var a=this.userQuota(),b=this.userUsageSize();return 0<a?Math.ceil(100*(b/a)):0},this);this.useKeyboardShortcuts=e.observable(!0);this.googleActions=e.observable(!1);this.googleLoggined=e.observable(!1);this.googleUserName=e.observable("");this.facebookActions=e.observable(!1);this.facebookLoggined=e.observable(!1);this.facebookUserName=e.observable("");
|
||||
this.twitterActions=e.observable(!1);this.twitterLoggined=e.observable(!1);this.twitterUserName=e.observable("");this.customThemeType=e.observable(g.CustomThemeType.Light)}function aa(){this.oRequests={}}function p(){this.oRequests={};this.oRequests={}}function U(){this.oEmailsPicsHashes={};this.oServices={}}function v(){U.call(this);this.oFoldersCache={};this.oFoldersNamesCache={};this.oFolderHashCache={};this.oFolderUidNextCache={};this.oMessageListHashCache={};this.oMessageFlagsCache={};this.oNewMessage=
|
||||
{};this.oRequestedMessage={}}function fa(a){J.call(this,"settings",a);this.menu=e.observableArray([]);this.oCurrentSubScreen=null}function Aa(){J.call(this,"login",[ka])}function V(){J.call(this,"mailbox",[Va,ea,z,H]);this.oLastRoute={};var a=f.data();this.mailBoxScreenVisibily=e.observable(!1);this.resizeTrigger=e.computed(function(){var b=this.mailBoxScreenVisibily(),d=a.messageFullScreenMode();return a.usePreviewPane()&&!d&&b?!0:!1},this)}function Oa(){fa.call(this,[Wa,xa,ya]);c.initOnStartOrLangChange(function(){this.sSettingsTitle=
|
||||
c.i18n("TITLES/SETTINGS")},this,function(){f.setTitle(this.sSettingsTitle)})}function I(){this.oLocal=this.oLink=this.oPlugins=this.oSettings=null;this.isLocalAutocomplete=!0;this.popupVisibility=e.observable(!1);this.iframe=i('<iframe style="display:none" src="javascript:;" />').appendTo("body");R.on("error",function(a){f&&(a&&a.originalEvent&&a.originalEvent.message)&&(c.log(""+a.originalEvent.message+" ("+a.originalEvent.filename+":"+a.originalEvent.lineno+")"),f.remote().jsError(c.emptyFunction,
|
||||
a.originalEvent.message,a.originalEvent.filename,a.originalEvent.lineno))})}function A(){I.call(this);this.oCache=this.oRemote=this.oData=null;this.iSuggestionsLimit=c.pInt(this.settingsGet("SuggestionsLimit"));this.iSuggestionsLimit=0===this.iSuggestionsLimit?20:this.iSuggestionsLimit;this.quotaDebounce=h.debounce(this.quota,3E4)}var t={},g={},u={},c={},x={},ga={},wa=e.observable(!0),ha=e.observable(!0),r=null,Ba=j.rainloopAppData||{},Pa=j.rainloopI18N||{},Z=i("html"),R=i(j),Ca=i(j.document),Da=
|
||||
[],Qa=[],Ra=[],ia=j.Notification&&j.Notification.requestPermission?j.Notification:null,Ea=(navigator.userAgent||"").toLowerCase(),Ya=-1<Ea.indexOf("iphone")||-1<Ea.indexOf("ipod")||-1<Ea.indexOf("ipad"),hb=-1<Ea.indexOf("android"),na=Ya||hb;Z.addClass(na?"mobile":"no-mobile");var f=null;t.Defaults={};t.Values={};t.DataImages={};t.Defaults.MessagesPerPage=25;t.Defaults.DefaultAjaxTimeout=2E4;t.Defaults.SearchAjaxTimeout=12E4;t.Defaults.SendMessageAjaxTimeout=2E5;t.Defaults.SaveMessageAjaxTimeout=2E5;
|
||||
t.Values.UnuseOptionValue="__UNUSE__";t.Values.GmailFolderName="[Gmail]";t.Values.ClientSideCookieIndexName="rlcsc";t.Values.ImapDefaulPort=143;t.Values.ImapDefaulSecurePort=993;t.Values.SmtpDefaulPort=25;t.Values.SmtpDefaulSecurePort=465;t.DataImages.UserDotPic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2P8DwQACgAD/il4QJ8AAAAASUVORK5CYII=";t.DataImages.TranspPic="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQIW2NkAAIAAAoAAggA9GkAAAAASUVORK5CYII=";
|
||||
g.StorageResultType={Success:"success",Abort:"abort",Error:"error"};g.State={Empty:10,Login:20,Auth:30};g.StateType={Webmail:0,Admin:1};g.FolderType={Inbox:10,SentItems:11,Draft:12,Trash:13,Spam:14,User:99};g.LoginSignMeTypeAsString={DefaultOff:"defaultoff",DefaultOn:"defaulton",Unused:"unused"};g.LoginSignMeType={DefaultOff:0,DefaultOn:1,Unused:2};g.ComposeType={Empty:"empty",Reply:"reply",ReplyAll:"replyall",Forward:"forward",ForwardAsAttachment:"forward-as-attachment",Draft:"draft"};g.UploadErrorCode=
|
||||
{Normal:0,FileIsTooBig:1,FilePartiallyUploaded:2,FileNoUploaded:3,MissingTempFolder:4,FileOnSaveingError:5,FileType:98,Unknown:99};g.SetSystemFoldersNotification={None:0,Sent:1,Draft:2,Spam:3,Trash:4};g.ClientSideKeyName={FoldersLashHash:0,MessagesInboxLastHash:1,MailBoxListSize:2,ExpandedFolders:3};g.EventKeyCode={Backspace:8,Enter:13,Esc:27,PageUp:33,PageDown:34,Left:37,Right:39,Up:38,Down:40,End:35,Home:36,Insert:45,Delete:46,A:65,S:83};g.MessageSetAction={SetSeen:0,UnsetSeen:1,SetFlag:2,UnsetFlag:3};
|
||||
g.MessageSelectAction={All:0,None:1,Invert:2,Unseen:3,Seen:4,Flagged:5,Unflagged:6};g.DesctopNotifications={Allowed:0,NotAllowed:1,Denied:2,NotSupported:9};g.MessagePriority={Low:5,Normal:3,High:1};g.EditorDefaultType={Html:"Html",Plain:"Plain"};g.CustomThemeType={Light:"Light",Dark:"Dark"};g.ServerSecure={None:0,SSL:1,TLS:2};g.SearchDateType={All:-1,Days3:3,Days7:7,Month:30};g.EmailType={Defailt:0,Facebook:1,Google:2};g.SaveSettingsStep={Animate:-2,Idle:-1,TrueResult:1,FalseResult:0};g.Notification=
|
||||
{InvalidToken:101,AuthError:102,AccessError:103,ConnectionError:104,CaptchaError:105,SocialFacebookLoginAccessDisable:106,SocialTwitterLoginAccessDisable:107,SocialGoogleLoginAccessDisable:108,DomainNotAllowed:109,CantGetMessageList:201,CantGetMessage:202,CantDeleteMessage:203,CantMoveMessage:204,CantSaveMessage:301,CantSendMessage:302,InvalidRecipients:303,CantCreateFolder:400,CantRenameFolder:401,CantDeleteFolder:402,CantSubscribeFolder:403,CantUnsubscribeFolder:404,CantDeleteNonEmptyFolder:405,
|
||||
CantSaveSettings:501,CantSavePluginSettings:502,DomainAlreadyExists:601,CantInstallPackage:701,CantDeletePackage:702,InvalidPluginPackage:703,UnsupportedPluginPackage:704,LicensingServerIsUnavailable:710,LicensingExpired:711,LicensingBanned:712,AccountAlreadyExists:801,MailServerError:901,UnknownError:999};c.trim=i.trim;c.inArray=i.inArray;c.isArray=h.isArray;c.isFunc=h.isFunction;c.isUnd=h.isUndefined;c.isNull=h.isNull;c.emptyFunction=function(){};c.isNormal=function(a){return!c.isUnd(a)&&!c.isNull(a)};
|
||||
c.windowResize=h.debounce(function(a){c.isUnd(a)?R.resize():j.setTimeout(function(){R.resize()},a)},50);c.isPosNumeric=function(a,b){return c.isNormal(a)?c.isUnd(b)||b?/^[0-9]*$/.test(a.toString()):/^[1-9]+[0-9]*$/.test(a.toString()):!1};c.pInt=function(a){return c.isNormal(a)&&""!==a?j.parseInt(a,10):0};c.pString=function(a){return c.isNormal(a)?a+"":""};c.isNonEmptyArray=function(a){return c.isArray(a)&&0<a.length};c.exportPath=function(a,b,d){for(var l=null,a=a.split("."),d=d||j;a.length&&(l=a.shift());)!a.length&&
|
||||
!c.isUnd(b)?d[l]=b:d=d[l]?d[l]:d[l]={}};c.pImport=function(a,b,d){a[b]=d};c.pExport=function(a,b,d){return c.isUnd(a[b])?d:a[b]};c.encodeHtml=function(a){return c.isNormal(a)?a.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"):""};c.splitPlainText=function(a,b){for(var d="",l="",f=a,e=0,g=0,b=c.isUnd(b)?100:b;f.length>b;)l=f.substring(0,b),e=l.lastIndexOf(" "),g=l.lastIndexOf("\n"),-1!==g&&(e=g),-1===e&&(e=b),d+=l.substring(0,
|
||||
e)+"\n",f=f.substring(e+1);return d+f};var Fa={};c.timeOutAction=function(a,b,d){c.isUnd(Fa[a])&&(Fa[a]=0);j.clearTimeout(Fa[a]);Fa[a]=j.setTimeout(b,d)};var Sa={};c.timeOutActionSecond=function(a,b,d){Sa[a]||(Sa[a]=j.setTimeout(function(){b();Sa[a]=0},d))};var O=!1;c.audio=function(a,b){if(!1===O)if(Ya)O=null;else{var d=!1,c=!1,f=j.Audio?new j.Audio:null;f&&f.canPlayType&&f.play?((d=""!==f.canPlayType('audio/mpeg; codecs="mp3"'))||(c=""!==f.canPlayType('audio/ogg; codecs="vorbis"')),d||c?(O=f,O.preload=
|
||||
"none",O.loop=!1,O.autoplay=!1,O.muted=!1,O.src=d?a:b):O=null):O=null}return O};c.hos=function(a,b){return a&&Object.hasOwnProperty?Object.hasOwnProperty.call(a,b):!1};c.i18n=function(a,b,d){var l="",a=c.isUnd(Pa[a])?c.isUnd(d)?a:d:Pa[a];if(!c.isUnd(b)&&!c.isNull(b))for(l in b)c.hos(b,l)&&(a=a.replace("%"+l+"%",b[l]));return a};c.i18nToNode=function(a){h.defer(function(){i(".i18n",a).each(function(){var a=i(this),d="";(d=a.data("i18n-text"))?a.text(c.i18n(d)):((d=a.data("i18n-html"))&&a.html(c.i18n(d)),
|
||||
(d=a.data("i18n-placeholder"))&&a.attr("placeholder",c.i18n(d)))})})};c.i18nToDoc=function(){j.rainloopI18N&&(Pa=j.rainloopI18N||{},c.i18nToNode(Ca),ha(!ha()));j.rainloopI18N={}};c.initOnStartOrLangChange=function(a,b,d){a&&a.call(b);d?ha.subscribe(function(){a&&a.call(b);d.call(b)}):a&&ha.subscribe(a,b)};c.inFocus=function(){var a=document.activeElement;return a&&("INPUT"===a.tagName||"TEXTAREA"===a.tagName||"IFRAME"===a.tagName||"DIV"===a.tagName&&"editorHtmlArea"===a.className&&a.contentEditable)};
|
||||
c.removeInFocus=function(){if(document&&document.activeElement&&document.activeElement.blur){var a=i(document.activeElement);(a.is("input")||a.is("textarea"))&&document.activeElement.blur()}};c.removeSelection=function(){if(j&&j.getSelection){var a=j.getSelection();a&&a.removeAllRanges&&a.removeAllRanges()}else document&&(document.selection&&document.selection.empty)&&document.selection.empty()};c.replySubjectAdd=function(a,b){var d=null,l=c.trim(b);null!==(d=(new j.RegExp("^"+a+"[\\s]?\\:(.*)$",
|
||||
"gi")).exec(b))&&!c.isUnd(d[1])?l=a+"[2]: "+d[1]:null!==(d=(new j.RegExp("^("+a+"[\\s]?[\\[\\(]?)([\\d]+)([\\]\\)]?[\\s]?\\:.*)$","gi")).exec(b))&&!c.isUnd(d[1])&&!c.isUnd(d[2])&&!c.isUnd(d[3])?(c.pInt(d[2]),l=d[1]+(c.pInt(d[2])+1)+d[3]):l=a+": "+b;return l};c.roundNumber=function(a,b){return Math.round(a*Math.pow(10,b))/Math.pow(10,b)};c.friendlySize=function(a){a=c.pInt(a);return 1073741824<=a?c.roundNumber(a/1073741824,1)+"GB":1048576<=a?c.roundNumber(a/1048576,1)+"MB":1024<=a?c.roundNumber(a/
|
||||
1024,0)+"KB":a+"B"};c.log=function(a){j.console&&j.console.log&&j.console.log(a)};c.getNotification=function(a){a=c.pInt(a);return c.isUnd(u[a])?"":u[a]};c.initNotificationLanguage=function(){u[g.Notification.InvalidToken]=c.i18n("NOTIFICATIONS/INVALID_TOKEN");u[g.Notification.AuthError]=c.i18n("NOTIFICATIONS/AUTH_ERROR");u[g.Notification.AccessError]=c.i18n("NOTIFICATIONS/ACCESS_ERROR");u[g.Notification.ConnectionError]=c.i18n("NOTIFICATIONS/CONNECTION_ERROR");u[g.Notification.CaptchaError]=c.i18n("NOTIFICATIONS/CAPTCHA_ERROR");
|
||||
u[g.Notification.SocialFacebookLoginAccessDisable]=c.i18n("NOTIFICATIONS/SOCIAL_FACEBOOK_LOGIN_ACCESS_DISABLE");u[g.Notification.SocialTwitterLoginAccessDisable]=c.i18n("NOTIFICATIONS/SOCIAL_TWITTER_LOGIN_ACCESS_DISABLE");u[g.Notification.SocialGoogleLoginAccessDisable]=c.i18n("NOTIFICATIONS/SOCIAL_GOOGLE_LOGIN_ACCESS_DISABLE");u[g.Notification.DomainNotAllowed]=c.i18n("NOTIFICATIONS/DOMAIN_NOT_ALLOWED");u[g.Notification.CantGetMessageList]=c.i18n("NOTIFICATIONS/CANT_GET_MESSAGE_LIST");u[g.Notification.CantGetMessage]=
|
||||
c.i18n("NOTIFICATIONS/CANT_GET_MESSAGE");u[g.Notification.CantDeleteMessage]=c.i18n("NOTIFICATIONS/CANT_DELETE_MESSAGE");u[g.Notification.CantMoveMessage]=c.i18n("NOTIFICATIONS/CANT_MOVE_MESSAGE");u[g.Notification.CantSaveMessage]=c.i18n("NOTIFICATIONS/CANT_SAVE_MESSAGE");u[g.Notification.CantSendMessage]=c.i18n("NOTIFICATIONS/CANT_SEND_MESSAGE");u[g.Notification.InvalidRecipients]=c.i18n("NOTIFICATIONS/INVALID_RECIPIENTS");u[g.Notification.CantCreateFolder]=c.i18n("NOTIFICATIONS/CANT_CREATE_FOLDER");
|
||||
u[g.Notification.CantRenameFolder]=c.i18n("NOTIFICATIONS/CANT_RENAME_FOLDER");u[g.Notification.CantDeleteFolder]=c.i18n("NOTIFICATIONS/CANT_DELETE_FOLDER");u[g.Notification.CantDeleteNonEmptyFolder]=c.i18n("NOTIFICATIONS/CANT_DELETE_NON_EMPTY_FOLDER");u[g.Notification.CantSubscribeFolder]=c.i18n("NOTIFICATIONS/CANT_SUBSCRIBE_FOLDER");u[g.Notification.CantUnsubscribeFolder]=c.i18n("NOTIFICATIONS/CANT_UNSUBSCRIBE_FOLDER");u[g.Notification.CantSaveSettings]=c.i18n("NOTIFICATIONS/CANT_SAVE_SETTINGS");
|
||||
u[g.Notification.CantSavePluginSettings]=c.i18n("NOTIFICATIONS/CANT_SAVE_PLUGIN_SETTINGS");u[g.Notification.DomainAlreadyExists]=c.i18n("NOTIFICATIONS/DOMAIN_ALREADY_EXISTS");u[g.Notification.CantInstallPackage]=c.i18n("NOTIFICATIONS/CANT_INSTALL_PACKAGE");u[g.Notification.CantDeletePackage]=c.i18n("NOTIFICATIONS/CANT_DELETE_PACKAGE");u[g.Notification.InvalidPluginPackage]=c.i18n("NOTIFICATIONS/INVALID_PLUGIN_PACKAGE");u[g.Notification.UnsupportedPluginPackage]=c.i18n("NOTIFICATIONS/UNSUPPORTED_PLUGIN_PACKAGE");
|
||||
u[g.Notification.LicensingServerIsUnavailable]=c.i18n("NOTIFICATIONS/LICENSING_SERVER_IS_UNAVAILABLE");u[g.Notification.LicensingExpired]=c.i18n("NOTIFICATIONS/LICENSING_EXPIRED");u[g.Notification.LicensingBanned]=c.i18n("NOTIFICATIONS/LICENSING_BANNED");u[g.Notification.AccountAlreadyExists]=c.i18n("NOTIFICATIONS/ACCOUNT_ALREADY_EXISTS");u[g.Notification.MailServerError]=c.i18n("NOTIFICATIONS/MAIL_SERVER_ERROR");u[g.Notification.UnknownError]=c.i18n("NOTIFICATIONS/UNKNOWN_ERROR")};c.getUploadErrorDescByCode=
|
||||
function(a){var b="";switch(c.pInt(a)){case g.UploadErrorCode.FileIsTooBig:b=c.i18n("UPLOAD/ERROR_FILE_IS_TOO_BIG");break;case g.UploadErrorCode.FilePartiallyUploaded:b=c.i18n("UPLOAD/ERROR_FILE_PARTIALLY_UPLOADED");break;case g.UploadErrorCode.FileNoUploaded:b=c.i18n("UPLOAD/ERROR_NO_FILE_UPLOADED");break;case g.UploadErrorCode.MissingTempFolder:b=c.i18n("UPLOAD/ERROR_MISSING_TEMP_FOLDER");break;case g.UploadErrorCode.FileOnSaveingError:b=c.i18n("UPLOAD/ERROR_ON_SAVING_FILE");break;case g.UploadErrorCode.FileType:b=
|
||||
c.i18n("UPLOAD/ERROR_FILE_TYPE");break;default:b=c.i18n("UPLOAD/ERROR_UNKNOWN")}return b};c.killCtrlAandS=function(a){if(a=a||j.event){var b=a.target||a.srcElement,d=a.keyCode||a.which;if(a.ctrlKey&&d===g.EventKeyCode.S)a.preventDefault();else if((!b||!b.tagName||!b.tagName.match(/INPUT|TEXTAREA/i))&&a.ctrlKey&&d===g.EventKeyCode.A)j.getSelection?j.getSelection().removeAllRanges():j.document.selection&&j.document.selection.clear&&j.document.selection.clear(),a.preventDefault()}};c.createCommand=function(a,
|
||||
b,d){var l=b?function(){l.canExecute&&l.canExecute()&&b.apply(a,Array.prototype.slice.call(arguments));return!1}:function(){};l.enabled=e.observable(!0);d=c.isUnd(d)?!0:d;l.canExecute=c.isFunc(d)?e.computed(function(){return l.enabled()&&d.call(a)}):e.computed(function(){return l.enabled()&&!!d});return l};c.initDataConstructorBySettings=function(a){a.ignoreFolderSubscribe=e.observable(!1);a.editorDefaultType=e.observable(g.EditorDefaultType.Html);a.showImages=e.observable(!1);a.showAnimation=e.observable(!1);
|
||||
a.desktopNotifications=e.observable(!1);a.useThreads=e.observable(!0);a.replySameFolder=e.observable(!0);a.usePreviewPane=e.observable(!0);a.useCheckboxesInList=e.observable(!0);a.showAnimation.subscribe(function(a){na?Z.removeClass("rl-anim").addClass("no-rl-anim"):Z.toggleClass("rl-anim",a).toggleClass("no-rl-anim",!a)});a.showAnimation.valueHasMutated();a.desktopNotificationsPermisions=e.computed(function(){a.desktopNotifications();var b=g.DesctopNotifications.NotSupported;if(ia&&ia.permission)switch(ia.permission.toLowerCase()){case "granted":b=
|
||||
g.DesctopNotifications.Allowed;break;case "denied":b=g.DesctopNotifications.Denied;break;case "default":b=g.DesctopNotifications.NotAllowed}else j.webkitNotifications&&j.webkitNotifications.checkPermission&&(b=j.webkitNotifications.checkPermission());return b});a.useDesktopNotifications=e.computed({read:function(){return a.desktopNotifications()&&g.DesctopNotifications.Allowed===a.desktopNotificationsPermisions()},write:function(b){b?(b=a.desktopNotificationsPermisions(),g.DesctopNotifications.Allowed===
|
||||
b?a.desktopNotifications(!0):g.DesctopNotifications.NotAllowed===b?ia.requestPermission(function(){a.desktopNotifications.valueHasMutated();j.console.log(a.desktopNotificationsPermisions());g.DesctopNotifications.Allowed===a.desktopNotificationsPermisions()?a.desktopNotifications()?a.desktopNotifications.valueHasMutated():a.desktopNotifications(!0):a.desktopNotifications()?a.desktopNotifications(!1):a.desktopNotifications.valueHasMutated()}):a.desktopNotifications(!1)):a.desktopNotifications(!1)}});
|
||||
a.language=e.observable("");a.languages=e.observableArray([]);a.mainLanguage=e.computed({read:a.language,write:function(b){b!==a.language()?-1<c.inArray(b,a.languages())?a.language(b):0<a.languages().length&&a.language(a.languages()[0]):a.language.valueHasMutated()}});a.theme=e.observable("");a.themes=e.observableArray([]);a.mainTheme=e.computed({read:a.theme,write:function(b){if(b!==a.theme()){var d=a.themes();-1<c.inArray(b,d)?a.theme(b):0<d.length&&a.theme(d[0])}else a.theme.valueHasMutated()}});
|
||||
a.allowCustomTheme=e.observable(!0);a.allowAdditionalAccounts=e.observable(!0);a.messagesPerPage=e.observable(t.Defaults.MessagesPerPage);a.mainMessagesPerPage=a.messagesPerPage;a.mainMessagesPerPage=e.computed({read:a.messagesPerPage,write:function(b){-1<c.inArray(c.pInt(b),[10,20,30,50,100,150,200])?b!==a.messagesPerPage()&&a.messagesPerPage(b):a.messagesPerPage.valueHasMutated()}});a.facebookEnable=e.observable(!1);a.facebookAppID=e.observable("");a.facebookAppSecret=e.observable("");a.twitterEnable=
|
||||
e.observable(!1);a.twitterConsumerKey=e.observable("");a.twitterConsumerSecret=e.observable("");a.googleEnable=e.observable(!1);a.googleClientID=e.observable("");a.googleClientSecret=e.observable("");a.dropboxEnable=e.observable(!1);a.dropboxApiKey=e.observable("");a.contactsIsSupported=e.observable(!1)};c.createMomentDate=function(a){return e.computed(function(){wa();return this.moment().fromNow()},a)};c.createMomentShortDate=function(a){return e.computed(function(){var a="",a=Y(),d=this.moment(),
|
||||
l=this.momentDate();return a=4>=a.diff(d,"hours")?l:a.format("L")===d.format("L")?c.i18n("MESSAGE_LIST/TODAY_AT",{TIME:d.format("LT")}):a.clone().subtract("days",1).format("L")===d.format("L")?c.i18n("MESSAGE_LIST/YESTERDAY_IN",{TIME:d.format("LT")}):a.year()===d.year()?d.format("D MMM."):d.format("LL")},a)};c.isFolderExpanded=function(a){var b=f.local().get(g.ClientSideKeyName.ExpandedFolders);return h.isArray(b)&&-1!==h.indexOf(b,a)};c.setExpandedFolder=function(a,b){var d=f.local().get(g.ClientSideKeyName.ExpandedFolders);
|
||||
h.isArray(d)||(d=[]);b?(d.push(a),d=h.uniq(d)):d=h.without(d,a);f.local().set(g.ClientSideKeyName.ExpandedFolders,d)};c.initLayoutResizer=function(a,b,d,c){var e=i(a),s=i(b),w=i(d),a=f.local().get(g.ClientSideKeyName.MailBoxListSize),k=function(a,b,d){if(b||d)a=w.width(),b=b?100*(b.size.width/a):null,null===b&&d&&(b=100*(e.width()/a)),null!==b&&(e.css({width:"",height:"",right:""+(100-b)+"%"}),s.css({width:"",height:"",left:""+b+"%"}))};a&&e.width(a);e.resizable({minWidth:350,maxWidth:w.width()-250,
|
||||
handles:"e",resize:k,stop:k});k(null,null,!0);R.resize(h.throttle(function(a,b){if(c&&c()){var d=w.width();e.resizable("option","maxWidth",d-250);b&&(b.size&&b.size.width)&&f.local().set(g.ClientSideKeyName.MailBoxListSize,b.size.width);k(null,null,!0)}},400))};c.initBlockquoteSwitcher=function(a){if(a){var b=i("blockquote:not(.rl-bq-switcher)",a).filter(function(){return 0===i(this).parent().closest("blockquote",a).length});b&&0<b.length&&b.each(function(){var a=i(this),b=a.height();if(0===b||100<
|
||||
b)a.addClass("rl-bq-switcher hidden-bq"),i('<span class="rlBlockquoteSwitcher"><i class="icon-ellipsis" /></span>').insertBefore(a).click(function(){a.toggleClass("hidden-bq");c.windowResize()}).after("<br />").before("<br />")})}};c.removeBlockquoteSwitcher=function(a){a&&(i(a).find("blockquote.rl-bq-switcher").each(function(){i(this).removeClass("rl-bq-switcher hidden-bq")}),i(a).find(".rlBlockquoteSwitcher").each(function(){i(this).remove()}))};c.extendAsViewModel=function(a,b){b&&(b.__name=a,
|
||||
x.regViewModelHook(a,b),h.extend(b.prototype,C.prototype))};c.addSettingsViewModel=function(a,b,d,c,f){a.__rlSettingsData={Label:d,Template:b,Route:c,IsDefault:!!f};Da.push(a)};c.removeSettingsViewModel=function(a){Qa.push(a)};c.disableSettingsViewModel=function(a){Ra.push(a)};c.convertThemeName=function(a){return c.trim(a.replace(/[^a-zA-Z]/g," ").replace(/([A-Z])/g," $1").replace(/[\s]+/g," "))};c.fakeMd5=function(a){for(var b="",a=c.isUnd(a)?32:c.pInt(a);b.length<a;)b+="0123456789abcdefghijklmnopqrstuvwxyz".substr(j.Math.round(36*
|
||||
j.Math.random()),1);return b};c.convertPlainTextToHtml=function(a){return a.toString().replace(/&/g,"&").replace(/>/g,">").replace(/</g,"<").replace(/\r/g,"").replace(/\n/g,"<br />")};c.draggeblePlace=function(){return i('<div class="draggablePlace"><span class="text"></span> <i class="icon-envelope icon-white"></i></div>').appendTo("#rl-hidden")};c.defautOptionsAfterRender=function(a,b){b&&!c.isUnd(b.disable)&&e.applyBindingsToNode(a,{disable:b.disable},b)};c.windowPopupKnockout=function(a,
|
||||
b,d,l){var f=null,e=j.open(""),g="__OpenerApplyBindingsUid"+c.fakeMd5()+"__",k=i("#"+b);j[g]=function(){if(e&&e.document.body&&k&&k[0]){var b=i(e.document.body);i("#rl-content",b).html(k.html());i("html",e.document).addClass("external "+i("html").attr("class"));c.i18nToNode(b);E.prototype.applyExternal(a,i("#rl-content",b)[0]);j[g]=null;l(e)}};e.document.open();e.document.write('<html><head><meta charset="utf-8" /><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /><meta name="viewport" content="user-scalable=no" /><meta name="apple-mobile-web-app-capable" content="yes" /><meta name="robots" content="noindex, nofollow, noodp" /><title>'+
|
||||
c.encodeHtml(d)+'</title></head><body><div id="rl-content"></div></body></html>');e.document.close();f=e.document.createElement("script");f.innerHTML="if(window&&window.opener&&window.opener['"+g+"']){window.opener['"+g+"']();window.opener['"+g+"']=null}";e.document.getElementsByTagName("head")[0].appendChild(f)};c.settingsSaveHelperFunction=function(a,b,d,l){d=d||null;l=c.isUnd(l)?1E3:c.pInt(l);return function(c,f,e,k,i){b.call(d,f&&f.Result?g.SaveSettingsStep.TrueResult:g.SaveSettingsStep.FalseResult);
|
||||
a&&a.call(d,c,f,e,k,i);h.delay(function(){b.call(d,g.SaveSettingsStep.Idle)},l)}};c.settingsSaveHelperSimpleFunction=function(a,b){return c.settingsSaveHelperFunction(null,a,b,1E3)};c.resizeAndCrop=function(a,b,d){var c=new Image;c.onload=function(){var a=[0,0],c=document.createElement("canvas"),l=c.getContext("2d");c.width=b;c.height=b;a=this.width>this.height?[this.width-this.height,0]:[0,this.height-this.width];l.fillStyle="#fff";l.fillRect(0,0,b,b);l.drawImage(this,a[0]/2,a[1]/2,this.width-a[0],
|
||||
this.height-a[1],0,0,b,b);d(c.toDataURL("image/jpeg"))};c.src=a};ga={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",urlsafe_encode:function(a){return ga.encode(a).replace(/[+]/g,"-").replace(/[\/]/g,"_").replace(/[=]/g,".")},encode:function(a){for(var b="",d,c,f,e,g,k,h=0,a=ga._utf8_encode(a);h<a.length;)d=a.charCodeAt(h++),c=a.charCodeAt(h++),f=a.charCodeAt(h++),e=d>>2,d=(d&3)<<4|c>>4,g=(c&15)<<2|f>>6,k=f&63,isNaN(c)?g=k=64:isNaN(f)&&(k=64),b=b+this._keyStr.charAt(e)+
|
||||
this._keyStr.charAt(d)+this._keyStr.charAt(g)+this._keyStr.charAt(k);return b},decode:function(a){for(var b="",d,c,f,e,g,k=0,a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");k<a.length;)d=this._keyStr.indexOf(a.charAt(k++)),c=this._keyStr.indexOf(a.charAt(k++)),e=this._keyStr.indexOf(a.charAt(k++)),g=this._keyStr.indexOf(a.charAt(k++)),d=d<<2|c>>4,c=(c&15)<<4|e>>2,f=(e&3)<<6|g,b+=String.fromCharCode(d),64!==e&&(b+=String.fromCharCode(c)),64!==g&&(b+=String.fromCharCode(f));return ga._utf8_decode(b)},_utf8_encode:function(a){for(var a=
|
||||
a.replace(/\r\n/g,"\n"),b="",d=0,c=a.length,f=0;d<c;d++)f=a.charCodeAt(d),128>f?b+=String.fromCharCode(f):(127<f&&2048>f?b+=String.fromCharCode(f>>6|192):(b+=String.fromCharCode(f>>12|224),b+=String.fromCharCode(f>>6&63|128)),b+=String.fromCharCode(f&63|128));return b},_utf8_decode:function(a){for(var b="",d=0,c=0,f=0,e=0;d<a.length;)c=a.charCodeAt(d),128>c?(b+=String.fromCharCode(c),d++):191<c&&224>c?(f=a.charCodeAt(d+1),b+=String.fromCharCode((c&31)<<6|f&63),d+=2):(f=a.charCodeAt(d+1),e=a.charCodeAt(d+
|
||||
2),b+=String.fromCharCode((c&15)<<12|(f&63)<<6|e&63),d+=3);return b}};e.bindingHandlers.tooltip={init:function(a,b){if(!na){var d=i(a).data("tooltip-class")||"";i(a).tooltip({delay:{show:500,hide:100},html:!0,trigger:"hover",title:function(){return'<span class="tooltip-class '+d+'">'+c.i18n(e.utils.unwrapObservable(b()))+"</span>"}})}}};e.bindingHandlers.tooltip2={init:function(a,b){var d=i(a).data("tooltip-class")||"";i(a).tooltip({delay:{show:500,hide:100},html:!0,title:function(){return'<span class="tooltip-class '+
|
||||
d+'">'+b()()+"</span>"}})}};e.bindingHandlers.popover={init:function(a,b){var d=e.utils.unwrapObservable(b());i(a).popover({trigger:d[2]||"click",placement:d[3]||"right",title:function(){return c.i18n(d[0]||"")},content:function(){return c.i18n(d[1]||"")}})}};e.bindingHandlers.resizecrop={init:function(a){i(a).addClass("resizecrop").resizecrop({width:"100",height:"100",wrapperCSS:{"border-radius":"10px"}})},update:function(a,b){b()();i(a).resizecrop({width:"100",height:"100"})}};e.bindingHandlers.onEnter=
|
||||
{init:function(a,b,d,c){e.bindingHandlers.event.init(a,function(){return{keyup:function(d,c){c&&13===j.parseInt(c.keyCode,10)&&(i(a).trigger("change"),b().call(this,d))}}},d,c)}};e.bindingHandlers.onEsc={init:function(a,b,d,c){e.bindingHandlers.event.init(a,function(){return{keyup:function(d,c){c&&27===j.parseInt(c.keyCode,10)&&(i(a).trigger("change"),b().call(this,d))}}},d,c)}};e.bindingHandlers.modal={init:function(a,b){i(a).modal({keyboard:!1,show:e.utils.unwrapObservable(b())}).on("hidden",function(){b()(!1)})},
|
||||
update:function(a,b){var d=e.utils.unwrapObservable(b());i(a).modal(d?"show":"hide");h.delay(function(){i(a).toggleClass("popup-active",d)},1)}};e.bindingHandlers.onEnterChange={init:function(a,b,d,c){e.bindingHandlers.event.init(a,function(){return{keyup:function(b,d){d&&13===j.parseInt(d.keyCode,10)&&i(a).trigger("change")}}},d,c)}};e.bindingHandlers.i18nInit={init:function(a){c.i18nToNode(a)}};e.bindingHandlers.i18nUpdate={update:function(a,b){e.utils.unwrapObservable(b());c.i18nToNode(a)}};e.bindingHandlers.link=
|
||||
{update:function(a,b){i(a).attr("href",e.utils.unwrapObservable(b()))}};e.bindingHandlers.title={update:function(a,b){i(a).attr("title",e.utils.unwrapObservable(b()))}};e.bindingHandlers.textF={init:function(a,b){i(a).text(e.utils.unwrapObservable(b()))}};e.bindingHandlers.initDom={init:function(a,b){b()(a)}};e.bindingHandlers.initResizeTrigger={init:function(a,b){var d=e.utils.unwrapObservable(b());i(a).css({height:d[1],"min-height":d[1]})},update:function(a,b){var d=e.utils.unwrapObservable(b()),
|
||||
l=c.pInt(d[1]),f=0,f=i(a).offset().top;0<f&&(f+=c.pInt(d[2]),f=R.height()-f,l<f&&(l=f),i(a).css({height:l,"min-height":l}))}};e.bindingHandlers.appendDom={update:function(a,b){i(a).hide().empty().append(e.utils.unwrapObservable(b())).show()}};e.bindingHandlers.draggable={init:function(a,b){i(a).draggable({distance:20,handle:".dragHandle",cursorAt:{top:22,left:3},helper:function(a){return b()(a&&a.target?e.dataFor(a.target):null)}}).on("mousedown",function(){c.removeInFocus()})}};e.bindingHandlers.droppable=
|
||||
{init:function(a,b){var d=b();!1!==d&&i(a).droppable({tolerance:"pointer",hoverClass:"droppableHover",drop:function(a,b){d(a,b)}})}};e.bindingHandlers.nano={init:function(a){na||i(a).addClass("nano").nanoScroller({iOSNativeScrolling:!1,preventPageScrolling:!0})}};e.bindingHandlers.saveTrigger={init:function(a){i(a).append(' <i class="icon-spinner-2 animated"></i><i class="icon-remove error"></i><i class="icon-ok success"></i>').addClass("settings-saved-trigger")},update:function(a,b){var d=
|
||||
e.utils.unwrapObservable(b()),c=i(a);switch(d.toString()){case "1":c.find(".animated,.error").hide().removeClass("visible").end().find(".success").show().addClass("visible");break;case "0":c.find(".animated,.success").hide().removeClass("visible").end().find(".error").show().addClass("visible");break;case "-2":c.find(".error,.success").hide().removeClass("visible").end().find(".animated").show().addClass("visible");break;default:c.find(".animated").hide().end().find(".error,.success").removeClass("visible")}}};
|
||||
e.bindingHandlers.select2={init:function(a,b){var d=0,l=null,g=new j.RegExp(/[a-zA-Z0-9\.\-_]+@[a-zA-Z0-9\.\-_]+/),s=new j.RegExp(/(.+) [<]?([^\s<@]+@[a-zA-Z0-9\.\-_]+)[>]?/),w=function(){return""},k=function(a){f.getAutocomplete(a.term,a.page,function(b,d){a.callback({more:!!d,results:h.map(b,function(a){var b=a.toLine(!1);return{id:b,text:b,c:a}})})})};i(a).addClass("ko-select2").select2({query:function(a){a&&(0===d?(k(a),d=j.setTimeout(c.emptyFunction,200)):(j.clearInterval(d),d=j.setTimeout(function(){k(a)},
|
||||
200)))},formatSelection:function(a,b){var d=a&&a.c?a.c.select2Selection(b):a.text;if(null!==d)return d},formatResult:function(a,b,d,c){b=a&&a.c?a.c.select2Result(b):"";return""===b?c(a.text):b},createSearchChoice:function(a,b){return 0===b.length&&g.test(a)?{id:a,text:a}:null},formatNoMatches:w,formatSearching:function(){return c.i18n("SUGGESTIONS/SEARCHING_DESC")},formatInputTooShort:w,formatSelectionTooBig:w,multiple:!0,tokenSeparators:[",",";"],minimumInputLength:2,selectOnBlur:!1,closeOnSelect:!0,
|
||||
openOnEnter:!1});e.utils.domNodeDisposal.addDisposeCallback(a,function(){i(a).select2("destroy")});i(a).on("change",function(){for(var a=i(this).select2("data"),d=0,f=a.length,e=null,g=[];d<f;d++)if((e=a[d])&&e.id)e.c||(e.c=new F,(l=s.exec(c.trim(e.id)))&&!c.isUnd(l[2])?(e.c.name=l[1],e.c.email=l[2]):e.c.email=e.id),g.push(e.c);b()(g)})},update:function(a,b){for(var d=e.utils.unwrapObservable(b()),c=0,f=d.length,g=null,w="",k=[];c<f;c++)g=d[c],w=g.toLine(!1),k.push({id:w,text:w,c:g});i(a).select2("data",
|
||||
k)}};e.bindingHandlers.command={init:function(a,b,d,c){var f=i(a),g=b();if(!g||!g.enabled||!g.canExecute)throw Error("You are not using command function");f.addClass("command");e.bindingHandlers[f.is("form")?"submit":"click"].init.apply(c,arguments)},update:function(a,b){var d=!0,c=i(a),f=b(),d=f.enabled();c.toggleClass("command-not-enabled",!d);d&&(d=f.canExecute(),c.toggleClass("command-can-not-be-execute",!d));c.toggleClass("command-disabled disable disabled",!d);(c.is("input")||c.is("button"))&&
|
||||
c.prop("disabled",!d)}};e.extenders.trimmer=function(a){var b=e.computed({read:a,write:function(b){a(c.trim(b.toString()))},owner:this});b(a());return b};e.extenders.reversible=function(a){var b=a();a.commit=function(){b=a()};a.reverse=function(){a(b)};a.commitedValue=function(){return b};return a};e.extenders.toggleSubscribe=function(a,b){a.subscribe(b[1],b[0],"beforeChange");a.subscribe(b[2],b[0]);return a};e.extenders.falseTimeout=function(a,b){a.iTimeout=0;a.subscribe(function(d){d&&(j.clearTimeout(a.iTimeout),
|
||||
a.iTimeout=j.setTimeout(function(){a(!1);a.iTimeout=0},c.pInt(b)))});return a};e.observable.fn.validateEmail=function(){this.hasError=e.observable(!1);this.subscribe(function(a){a=c.trim(a);this.hasError(""!==a&&!/^[^@\s]+@[^@\s]+$/.test(a))},this);this.valueHasMutated();return this};e.observable.fn.validateFunc=function(a){this.hasFuncError=e.observable(!1);c.isFunc(a)&&(this.subscribe(function(b){this.hasFuncError(!a(b))},this),this.valueHasMutated());return this};B.prototype.root=function(){return this.sBase};
|
||||
B.prototype.attachmentDownload=function(a){return this.sServer+"/Raw/"+this.sSpecSuffix+"/Download/"+a};B.prototype.attachmentPreview=function(a){return this.sServer+"/Raw/"+this.sSpecSuffix+"/View/"+a};B.prototype.attachmentPreviewAsPlain=function(a){return this.sServer+"/Raw/"+this.sSpecSuffix+"/ViewAsPlain/"+a};B.prototype.upload=function(){return this.sServer+"/Upload/"+this.sSpecSuffix+"/"};B.prototype.uploadBackground=function(){return this.sServer+"/UploadBackground/"+this.sSpecSuffix+"/"};
|
||||
B.prototype.append=function(){return this.sServer+"/Append/"+this.sSpecSuffix+"/"};B.prototype.change=function(a){return this.sServer+"/Change/"+this.sSpecSuffix+"/"+j.encodeURIComponent(a)+"/"};B.prototype.ajax=function(a){return this.sServer+"/Ajax/"+this.sSpecSuffix+"/"+a};B.prototype.messageViewLink=function(a){return this.sServer+"/Raw/"+this.sSpecSuffix+"/ViewAsPlain/"+a};B.prototype.messageDownloadLink=function(a){return this.sServer+"/Raw/"+this.sSpecSuffix+"/Download/"+a};B.prototype.inbox=
|
||||
function(){return this.sBase+"mailbox/Inbox"};B.prototype.settings=function(a){var b=this.sBase+"settings";!c.isUnd(a)&&""!==a&&(b+="/"+a);return b};B.prototype.admin=function(a){var b=this.sBase;switch(a){case "AdminDomains":b+="domains";break;case "AdminSecurity":b+="security";break;case "AdminLicensing":b+="licensing"}return b};B.prototype.mailBox=function(a,b,d){var b=c.isNormal(b)?c.pInt(b):1,d=c.pString(d),f=this.sBase+"mailbox/";""!==a&&(f+=encodeURI(a));1<b&&(f=f.replace(/[\/]+$/,""),f+="/p"+
|
||||
b);""!==d&&(f=f.replace(/[\/]+$/,""),f+="/"+encodeURI(d));return f};B.prototype.phpInfo=function(){return this.sServer+"Info"};B.prototype.langLink=function(a){return this.sServer+"/Lang/0/"+encodeURI(a)+"/"+this.sVersion+"/"};B.prototype.getUserPicUrlFromHash=function(a){return this.sServer+"/Raw/"+this.sSpecSuffix+"/UserPic/"+a+"/"+this.sVersion+"/"};B.prototype.emptyContactPic=function(){return(""===this.sCdnStaticDomain?"rainloop/v/":this.sCdnStaticDomain)+this.sVersion+"/static/css/images/empty-contact.png"};
|
||||
B.prototype.sound=function(a){return(""===this.sCdnStaticDomain?"rainloop/v/":this.sCdnStaticDomain)+this.sVersion+"/static/sounds/"+a};B.prototype.themePreviewLink=function(a){return(""===this.sCdnStaticDomain?"rainloop/v/":this.sCdnStaticDomain)+this.sVersion+"/themes/"+encodeURI(a)+"/images/preview.png"};B.prototype.notificationMailIcon=function(){return(""===this.sCdnStaticDomain?"rainloop/v/":this.sCdnStaticDomain)+this.sVersion+"/static/css/images/icom-message-notification.png"};B.prototype.socialGoogle=
|
||||
function(){return this.sServer+"SocialGoogle"+(""!==this.sSpecSuffix?"/"+this.sSpecSuffix+"/":"")};B.prototype.socialTwitter=function(){return this.sServer+"SocialTwitter"+(""!==this.sSpecSuffix?"/"+this.sSpecSuffix+"/":"")};B.prototype.socialFacebook=function(){return this.sServer+"SocialFacebook"+(""!==this.sSpecSuffix?"/"+this.sSpecSuffix+"/":"")};x.oViewModelsHooks={};x.oSimpleHooks={};x.regViewModelHook=function(a,b){b&&(b.__hookName=a)};x.addHook=function(a,b){c.isFunc(b)&&(c.isArray(x.oSimpleHooks[a])||
|
||||
(x.oSimpleHooks[a]=[]),x.oSimpleHooks[a].push(b))};x.runHook=function(a,b){c.isArray(x.oSimpleHooks[a])&&(b=b||[],h.each(x.oSimpleHooks[a],function(a){a.apply(null,b)}))};x.mainSettingsGet=function(a){return f?f.settingsGet(a):null};x.remoteRequest=function(a,b,d,c,e,g){f&&f.remote().defaultRequest(a,b,d,c,e,g)};x.settingsGet=function(a,b){var d=x.mainSettingsGet("Plugins");return(d=d&&c.isUnd(d[a])?null:d[a])?c.isUnd(d[b])?null:d[b]:null};n.prototype.initLanguage=function(a,b,d){this.oOptions.LangSwitcherConferm=
|
||||
a;this.oOptions.LangSwitcherTextLabel=b;this.oOptions.LangSwitcherHtmlLabel=d};n.prototype.execCom=function(a,b,d){j.document&&(j.document.execCommand(a,b||!1,d||null),this.updateTextArea())};n.prototype.getEditorSelection=function(){var a=null;j.getSelection?a=j.getSelection():j.document.getSelection?a=j.document.getSelection():j.document.selection&&(a=j.document.selection);return a};n.prototype.getEditorRange=function(){var a=this.getEditorSelection();return!a||0===a.rangeCount?null:a.getRangeAt?
|
||||
a.getRangeAt(0):a.createRange()};n.prototype.ec=function(a,b,d){this.execCom(a,b,d)};n.prototype.heading=function(a){this.ec("formatblock",!1,i.browser.msie?"Heading "+a:"h"+a)};n.prototype.insertImage=function(a){this.isHtml()&&!this.bOnlyPlain&&(this.htmlarea.focus(),this.ec("insertImage",!1,a))};n.prototype.setcolor=function(a,b){var d=null,d="";i.browser.msie&&9>c.pInt(i.browser.version)?(d=this.getEditorRange())&&d.execCommand("forecolor"===a?"ForeColor":"BackColor",!1,b):(d=i.browser.msie?"forecolor"===
|
||||
a?"ForeColor":"BackColor":"forecolor"===a?"foreColor":"backColor",this.ec(d,!1,b))};n.prototype.isHtml=function(){return!0===this.bOnlyPlain?!1:this.textarea.is(":hidden")};n.prototype.toHtmlString=function(){return this.editor.innerHTML};n.prototype.toString=function(){return this.editor.innerText};n.prototype.updateTextArea=function(){this.textarea.val(this.toHtmlString())};n.prototype.updateHtmlArea=function(){this.editor.innerHTML=this.textarea.val()};n.prototype.setRawText=function(a,b){b&&!this.bOnlyPlain?
|
||||
(this.isHtml()||(this.textarea.val(""),this.switchToHtml()),this.textarea.val(a.toString()),this.updateHtmlArea()):(this.textarea.val(a.toString()),this.updateHtmlArea(),this.switchToPlain(!1))};n.prototype.clear=function(){this.textarea.val("");this.editor.innerHTML="";this.bOnlyPlain?(this.toolbar.hide(),this.switchToPlain(!1)):this.switchToHtml()};n.prototype.getTextForRequest=function(){this.isHtml()&&this.updateTextArea();return this.textarea.val()};n.prototype.getTextFromHtml=function(a){var b=
|
||||
"",d=function(){if(arguments&&1<arguments.length){var a=c.trim(arguments[1]).replace(/__bq__start__([\s\S\n\r]*)__bq__end__/gm,d),a="\n> "+c.trim(a).replace(/\n/gm,"\n> ")+"\n>\n";return a.replace(/\n([> ]+)/gm,function(){return arguments&&1<arguments.length?"\n"+c.trim(arguments[1].replace(/[\s]/,""))+" ":""})}return""},f=function(){if(arguments&&1<arguments.length){var a=c.trim(arguments[1]);0<a.length&&(a=a.replace(/<div[^>]*>([\s\S]*)<\/div>/gmi,f),a="\n"+c.trim(a)+"\n");return a}return""},a=
|
||||
c.isUnd(a)?!0:!!a,b=this.toHtmlString().replace(/[\s]+/gm," ").replace(/<br\s?\/?>/gmi,"\n").replace(/<\/h\d>/gi,"\n").replace(/<\/p>/gi,"\n\n").replace(/<\/li>/gi,"\n").replace(/<\/td>/gi,"\n").replace(/<\/tr>/gi,"\n").replace(/<hr[^>]*>/gmi,"\n_______________________________\n\n").replace(/<img [^>]*>/gmi,"").replace(/<div[^>]*>([\s\S]*)<\/div>/gmi,f).replace(/<blockquote[^>]*>/gmi,"\n__bq__start__\n").replace(/<\/blockquote>/gmi,"\n__bq__end__\n").replace(/<a [^>]*>([\s\S]*?)<\/a>/gmi,function(){return arguments&&
|
||||
1<arguments.length?c.trim(arguments[1]):""}).replace(/ /gi," ").replace(/<[^>]*>/gm,"").replace(/>/gi,">").replace(/</gi,"<").replace(/&/gi,"&").replace(/&\w{2,6};/gi,"");return(a?c.splitPlainText(b):b).replace(/\n[ \t]+/gm,"\n").replace(/[\n]{3,}/gm,"\n\n").replace(/__bq__start__([\s\S]*)__bq__end__/gm,d).replace(/__bq__start__/gm,"").replace(/__bq__end__/gm,"")};n.prototype.getHtmlFromText=function(){return c.convertPlainTextToHtml(this.textarea.val())};n.prototype.switchToggle=function(){this.isHtml()?
|
||||
this.switchToPlain():this.switchToHtml()};n.prototype.switchToPlain=function(a){var a=c.isUnd(a)?!0:a,b=this.getTextFromHtml(),d=h.bind(function(a){a&&(this.toolbar.addClass("editorHideToolbar"),i(".editorSwitcher",this.toolbar).text(this.switcherLinkText(!1)),this.textarea.val(b),this.textarea.show(),this.htmlarea.hide(),this.fOnSwitch&&this.fOnSwitch(!1))},this);!a||0===c.trim(b).length?d(!0):d(j.confirm(this.oOptions.LangSwitcherConferm))};n.prototype.switcherLinkText=function(a){return a?this.oOptions.LangSwitcherTextLabel:
|
||||
this.oOptions.LangSwitcherHtmlLabel};n.prototype.switchToHtml=function(){this.toolbar.removeClass("editorHideToolbar");i(".editorSwitcher",this.toolbar).text(this.switcherLinkText(!0));this.textarea.val(this.getHtmlFromText());this.updateHtmlArea();this.textarea.hide();this.htmlarea.show();this.fOnSwitch&&this.fOnSwitch(!0)};n.prototype.addButton=function(a,b){var d=this;i("<div />").addClass("editorToolbarButtom").append(i('<a tabindex="-1" href="javascript:void(0);"></a>').addClass(a)).attr("title",
|
||||
b).click(function(b){c.isUnd(n.htmlFunctions[a])?j.alert(a):n.htmlFunctions[a].apply(d,[i(this),b])}).appendTo(this.toolbar)};n.htmlInitToolbar=function(){if(!this.bOnlyPlain){this.addButton("bold","Bold");this.addButton("italic","Italic");this.addButton("underline","Underline");this.addButton("strikethrough","Strikethrough");this.addButton("removeformat","removeformat");this.addButton("justifyleft","justifyleft");this.addButton("justifycenter","justifycenter");this.addButton("justifyright","justifyright");
|
||||
this.addButton("horizontalrule","horizontalrule");this.addButton("orderedlist","orderedlist");this.addButton("unorderedlist","unorderedlist");this.addButton("indent","indent");this.addButton("outdent","outdent");this.addButton("forecolor","forecolor");var a=this;i("<span />").addClass("editorSwitcher").text(a.switcherLinkText(!0)).click(function(){a.switchToggle()}).appendTo(a.toolbar)}};n.htmlInitEditor=function(){this.editor=this.htmlarea[0];this.editor.innerHTML=this.textarea.val()};n.htmlAttachEditorEvents=
|
||||
function(){};for(var ib=n,oa=[],Za=[],W=0,Ga=0,Ha=0,Ia=0,Ja="",W=0;256>W;W+=85)Ja=W.toString(16),oa.push(1===Ja.length?"0"+Ja:Ja);Ia=oa.length;for(W=0;W<Ia;W++)for(Ga=0;Ga<Ia;Ga++)for(Ha=0;Ha<Ia;Ha++)Za.push("#"+oa[W]+""+oa[Ga]+""+oa[Ha]);ib.htmlColorPickerColors=Za;var jb=n,$a=i(j.document),ab=!1,pa=i('<div style="position: absolute;" class="editorFontStylePicker"><div class="editorFpFonts"></div></div>'),bb=pa.find(".editorFpFonts"),cb=function(){};i.each("Arial;Arial Black;Courier New;Tahoma;Times New Roman;Verdana".split(";"),
|
||||
function(a,b){bb.append(i('<a href="javascript:void(0);" tabindex="-1" class="editorFpFont" style="font-family: '+b+';">'+b+"</a>").click(function(){cb(b)}));bb.append("<br />")});pa.hide();jb.htmlFontPicker=function(a,b,d){ab||(pa.appendTo(d),ab=!0);cb=b;$a.unbind("click.fpNamespace");j.setTimeout(function(){$a.one("click.fpNamespace",function(){pa.hide()})},500);b=i(a).position();pa.css("top",5+b.top+i(a).height()+"px").css("left",b.left+"px").show()};var kb=n,db=i(j.document),eb=!1,qa=i('<div style="position: absolute;" class="editorColorPicker"><div class="editorCpColors"></div></div>'),
|
||||
fb=qa.find(".editorCpColors"),gb=function(){};i.each(n.htmlColorPickerColors,function(a,b){fb.append('<a href="javascript:void(0);" tabindex="-1" class="editorCpColor" style="background-color: '+b+';"></a>')});qa.hide();i(".editorCpColor",fb).click(function(a){var b=1,d="#000000",a=i(a.target).css("background-color"),d=a.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);if(null!==d){for(delete d[0];3>=b;++b)d[b]=c.pInt(d[b]).toString(16),1===d[b].length&&(d[b]="0"+d[b]);d="#"+d.join("")}else d=a;gb(d)});
|
||||
kb.htmlColorPicker=function(a,b,d){eb||(qa.appendTo(d),eb=!0);d=i(a).position();gb=b;db.unbind("click.cpNamespace");j.setTimeout(function(){db.one("click.cpNamespace",function(){qa.hide()})},100);qa.css("top",5+d.top+i(a).height()+"px").css("left",d.left+"px").show()};n.htmlFunctions={bold:function(){this.ec("bold")},italic:function(){this.ec("italic")},underline:function(){this.ec("underline")},strikethrough:function(){this.ec("strikethrough")},indent:function(){this.ec("indent")},outdent:function(){this.ec("outdent")},
|
||||
justifyleft:function(){this.ec("justifyLeft")},justifycenter:function(){this.ec("justifyCenter")},justifyright:function(){this.ec("justifyRight")},horizontalrule:function(){this.ec("insertHorizontalRule",!1,"ht")},removeformat:function(){this.ec("removeFormat")},orderedlist:function(){this.ec("insertorderedlist")},unorderedlist:function(){this.ec("insertunorderedlist")},forecolor:function(a){n.htmlColorPicker(a,h.bind(function(a){this.setcolor("forecolor",a)},this),this.toolbar)},backcolor:function(a){n.htmlColorPicker(a,
|
||||
h.bind(function(a){this.setcolor("backcolor",a)},this),this.toolbar)},fontname:function(a){n.htmlFontPicker(a,h.bind(function(a){this.ec("fontname",!1,a)},this),this.toolbar)}};M.prototype.init=function(a,b){this.oContentVisible=a;this.oContentScrollable=b;if(this.oContentVisible&&this.oContentScrollable){var d=this;i(this.oContentVisible).on("click",this.sItemSelector,function(a){d.actionClick(e.dataFor(this),a)}).on("click",this.sItemCheckedSelector,function(a){var b=e.dataFor(this);b&&(a&&a.shiftKey?
|
||||
d.actionClick(b,a):(d.sLastUid=d.getItemUid(b),b.selected()?(b.checked(!1),d.selectedItem(null)):b.checked(!b.checked())))});i(j.document).on("keydown",h.bind(function(a){var b=!0;if(a&&this.bUseKeyboard&&!c.inFocus())if(-1<c.inArray(a.keyCode,[g.EventKeyCode.Up,g.EventKeyCode.Down,g.EventKeyCode.Insert,g.EventKeyCode.Home,g.EventKeyCode.End,g.EventKeyCode.PageUp,g.EventKeyCode.PageDown]))this.newSelectPosition(a.keyCode,a.shiftKey),b=!1;else if(g.EventKeyCode.Delete===a.keyCode&&!a.ctrlKey&&!a.shiftKey){if(this.oCallbacks.onDelete)this.oCallbacks.onDelete();
|
||||
b=!1}return b},this))}};M.prototype.selectByUid=function(a,b){this.useItemSelectCallback=b=c.isUnd(b)?!0:!!b;var d=h.find(this.list(),function(b){return a===this.getItemUid(b)},this);d&&this.selectedItem(d);this.useItemSelectCallback=!0};M.prototype.useKeyboard=function(a){this.bUseKeyboard=!!a};M.prototype.getItemUid=function(a){var b="",d=this.oCallbacks.onItemGetUid||null;d&&a&&(b=d(a));return b.toString()};M.prototype.newSelectPosition=function(a,b){var d=this,c=0,f=!1,e=!1,w=null,k=this.list(),
|
||||
i=k?k.length:0,o=this.selectedItem();if(0<i)if(o){if(o)if(g.EventKeyCode.Down===a||g.EventKeyCode.Up===a||g.EventKeyCode.Insert===a)h.each(k,function(b){if(!e)switch(a){case g.EventKeyCode.Up:o===b?e=!0:w=b;break;case g.EventKeyCode.Down:case g.EventKeyCode.Insert:f?(w=b,e=!0):o===b&&(f=!0)}});else if(g.EventKeyCode.Home===a||g.EventKeyCode.End===a)g.EventKeyCode.Home===a?w=k[0]:g.EventKeyCode.End===a&&(w=k[k.length-1]);else if(g.EventKeyCode.PageDown===a)for(;c<i;c++){if(o===k[c]){c+=10;c=i-1<c?
|
||||
i-1:c;w=k[c];break}}else if(g.EventKeyCode.PageUp===a)for(c=i;0<=c;c--)if(o===k[c]){c-=10;c=0>c?0:c;w=k[c];break}}else if(g.EventKeyCode.Down===a||g.EventKeyCode.Insert===a||g.EventKeyCode.Home===a||g.EventKeyCode.PageUp===a)w=k[0];else if(g.EventKeyCode.Up===a||g.EventKeyCode.End===a||g.EventKeyCode.PageDown===a)w=k[k.length-1];w?(o&&(b?(g.EventKeyCode.Up===a||g.EventKeyCode.Down===a)&&o.checked(!o.checked()):g.EventKeyCode.Insert===a&&o.checked(!o.checked())),this.selectedItem(w),0!==this.iSelectTimer?
|
||||
(j.clearTimeout(this.iSelectTimer),this.iSelectTimer=j.setTimeout(function(){d.iSelectTimer=0;d.actionClick(w)},300)):(this.iSelectTimer=j.setTimeout(function(){d.iSelectTimer=0},200),this.actionClick(w)),this.scrollToSelected()):o&&(b&&(g.EventKeyCode.Up===a||g.EventKeyCode.Down===a)?o.checked(!o.checked()):g.EventKeyCode.Insert===a&&o.checked(!o.checked()))};M.prototype.scrollToSelected=function(){if(!this.oContentVisible||!this.oContentScrollable)return!1;var a=i(this.sItemSelectedSelector,this.oContentScrollable),
|
||||
b=a.position(),d=this.oContentVisible.height(),a=a.outerHeight();return b&&(0>b.top||b.top+a>d)?(0>b.top?this.oContentScrollable.scrollTop(this.oContentScrollable.scrollTop()+b.top-20):this.oContentScrollable.scrollTop(this.oContentScrollable.scrollTop()+b.top-d+a+20),!0):!1};M.prototype.eventClickFunction=function(a,b){var d=this.getItemUid(a),c=0,f=0,e=null,g="",k=!1,h=!1,i=[],j=!1;if(b&&b.shiftKey&&""!==d&&""!==this.sLastUid&&d!==this.sLastUid){i=this.list();j=a.checked();c=0;for(f=i.length;c<
|
||||
f;c++){e=i[c];g=this.getItemUid(e);k=!1;if(g===this.sLastUid||g===d)k=!0;k&&(h=!h);(h||k)&&e.checked(j)}}this.sLastUid=""===d?"":d};M.prototype.actionClick=function(a,b){if(a){var d=!0,c=this.getItemUid(a);b&&(b.shiftKey?(d=!1,""===this.sLastUid&&(this.sLastUid=c),a.checked(!a.checked()),this.eventClickFunction(a,b)):b.ctrlKey&&(d=!1,this.sLastUid=c,a.checked(!a.checked())));d&&(this.selectedItem(a),this.sLastUid=c)}};M.prototype.on=function(a,b){this.oCallbacks[a]=b};sa.supported=function(){return!0};
|
||||
sa.prototype.set=function(a,b){var d=i.cookie(t.Values.ClientSideCookieIndexName),c=null;try{(c=null===d?null:JSON.parse(d))||(c={}),c[a]=b,i.cookie(t.Values.ClientSideCookieIndexName,JSON.stringify(c),{expires:30})}catch(f){}return c};sa.prototype.get=function(a){var b=i.cookie(t.Values.ClientSideCookieIndexName),d=null;try{d=(d=null===b?null:JSON.parse(b))&&!c.isUnd(d[a])?d[a]:null}catch(f){}return d};ta.supported=function(){return!!j.localStorage};ta.prototype.set=function(a,b){var d=j.localStorage[t.Values.ClientSideCookieIndexName]||
|
||||
null,c=null;try{(c=null===d?null:JSON.parse(d))||(c={}),c[a]=b,j.localStorage[t.Values.ClientSideCookieIndexName]=JSON.stringify(c)}catch(f){}return c};ta.prototype.get=function(a){var b=j.localStorage[t.Values.ClientSideCookieIndexName]||null,d=null;try{d=(d=null===b?null:JSON.parse(b))&&!c.isUnd(d[a])?d[a]:null}catch(f){}return d};ua.prototype.oDriver=null;ua.prototype.set=function(a,b){return this.oDriver?this.oDriver.set("p"+a,b):!1};ua.prototype.get=function(a){return this.oDriver?this.oDriver.get("p"+
|
||||
a):null};Ua.prototype.bootstart=function(){};C.prototype.sPosition="";C.prototype.sTemplate="";C.prototype.viewModelName="";C.prototype.viewModelDom=null;C.prototype.viewModelTemplate=function(){return this.sTemplate};C.prototype.viewModelPosition=function(){return this.sPosition};C.prototype.cancelCommand=C.prototype.closeCommand=function(){};J.prototype.oCross=null;J.prototype.sScreenName="";J.prototype.aViewModels=[];J.prototype.viewModels=function(){return this.aViewModels};J.prototype.screenName=
|
||||
function(){return this.sScreenName};J.prototype.routes=function(){return null};J.prototype.__cross=function(){return this.oCross};J.prototype.__start=function(){var a=this.routes(),b=null,d=null;c.isNonEmptyArray(a)&&(d=h.bind(this.onRoute||c.emptyFunction,this),b=Ta.create(),h.each(a,function(a){b.addRoute(a[0],d).rules=a[1]}),this.oCross=b)};E.prototype.sDefaultScreenName="";E.prototype.oScreens={};E.prototype.oBoot=null;E.prototype.oCurrentScreen=null;E.prototype.showLoading=function(){i("#rl-loading").show()};
|
||||
E.prototype.hideLoading=function(){i("#rl-loading").hide()};E.prototype.routeOff=function(){P.changed.active=!1};E.prototype.routeOn=function(){P.changed.active=!0};E.prototype.setBoot=function(a){c.isNormal(a)&&(this.oBoot=a);return this};E.prototype.screen=function(a){return""!==a&&!c.isUnd(this.oScreens[a])?this.oScreens[a]:null};E.prototype.delegateRun=function(a,b,d){a&&a[b]&&a[b].apply(a,c.isArray(d)?d:[])};E.prototype.buildViewModel=function(a,b){if(a&&!a.__builded){var d=new a(b),l=d.viewModelPosition(),
|
||||
g=i("#rl-content #rl-"+l.toLowerCase()),s=null;a.__builded=!0;a.__vm=d;d.data=f.data();d.viewModelName=a.__name;g&&1===g.length?(s=i("<div>").addClass("rl-view-model").addClass("RL-"+d.viewModelTemplate()).hide().attr("data-bind",'template: {name: "'+d.viewModelTemplate()+'"}, i18nInit: true'),s.appendTo(g),d.viewModelDom=s,a.__dom=s,"Popups"===l&&(d.cancelCommand=d.closeCommand=c.createCommand(d,function(){r.hideScreenPopup(a)})),x.runHook("view-model-pre-build",[a.__name,d,s]),e.applyBindings(d,
|
||||
s[0]),this.delegateRun(d,"onBuild",[s]),x.runHook("view-model-post-build",[a.__name,d,s])):c.log("Cannot find view model position: "+l)}return a?a.__vm:null};E.prototype.applyExternal=function(a,b){a&&b&&e.applyBindings(a,b)};E.prototype.hideScreenPopup=function(a){a&&(a.__vm&&a.__dom)&&(a.__dom.hide(),a.__vm.modalVisibility(!1),this.delegateRun(a.__vm,"onHide"),this.popupVisibility(!1),h.defer(function(){a.__dom.find(".ko-select2").select2("close")}))};E.prototype.showScreenPopup=function(a,b){a&&
|
||||
(this.buildViewModel(a),a.__vm&&a.__dom&&(a.__dom.show(),a.__vm.modalVisibility(!0),this.delegateRun(a.__vm,"onShow",b||[]),this.popupVisibility(!0),x.runHook("view-model-on-show",[a.__name,a.__vm,b||[]])))};E.prototype.screenOnRoute=function(a,b){var d=this,f=null,e=null;""===c.pString(a)&&(a=this.sDefaultScreenName);if(""!==a){f=this.screen(a);if(!f&&(f=this.screen(this.sDefaultScreenName)))b=a+"/"+b,a=this.sDefaultScreenName;f&&f.__started&&(f.__builded||(f.__builded=!0,c.isNonEmptyArray(f.viewModels())&&
|
||||
h.each(f.viewModels(),function(a){this.buildViewModel(a,f)},this),this.delegateRun(f,"onBuild")),h.defer(function(){if(d.oCurrentScreen){d.delegateRun(d.oCurrentScreen,"onHide");c.isNonEmptyArray(d.oCurrentScreen.viewModels())&&h.each(d.oCurrentScreen.viewModels(),function(a){if(a.__vm&&a.__dom&&"Popups"!==a.__vm.viewModelPosition()){a.__dom.hide();a.__vm.viewModelVisibility(false);d.delegateRun(a.__vm,"onHide")}})}d.oCurrentScreen=f;if(d.oCurrentScreen){d.delegateRun(d.oCurrentScreen,"onShow");x.runHook("screen-on-show",
|
||||
[d.oCurrentScreen.screenName(),d.oCurrentScreen]);c.isNonEmptyArray(d.oCurrentScreen.viewModels())&&h.each(d.oCurrentScreen.viewModels(),function(a){if(a.__vm&&a.__dom&&"Popups"!==a.__vm.viewModelPosition()){a.__dom.show();a.__vm.viewModelVisibility(true);d.delegateRun(a.__vm,"onShow");x.runHook("view-model-on-show",[a.__name,a.__vm])}},d)}(e=f.__cross())&&e.parse(b)}))}};E.prototype.startScreens=function(a){h.each(a,function(a){var d=(a=new a)?a.screenName():"";a&&""!==d&&(""===this.sDefaultScreenName&&
|
||||
(this.sDefaultScreenName=d),this.oScreens[d]=a)},this);h.each(this.oScreens,function(a){a&&(!a.__started&&a.__start)&&(a.__started=!0,a.__start(),x.runHook("screen-pre-start",[a.screenName(),a]),this.delegateRun(a,"onStart"),x.runHook("screen-post-start",[a.screenName(),a]))},this);a=Ta.create();a.addRoute(/^([a-zA-Z0-9\-]*)\/?(.*)$/,h.bind(this.screenOnRoute,this));P.initialized.add(a.parse,a);P.changed.add(a.parse,a);P.init()};E.prototype.setHash=function(a,b){a="#"===a.substr(0,1)?a.substr(1):
|
||||
a;a="/"===a.substr(0,1)?a.substr(1):a;(c.isUnd(b)?0:b)?(P.changed.active=!1,P.setHash(a),P.changed.active=!0):(P.changed.active=!0,P.setHash(a))};E.prototype.bootstart=function(){this.oBoot&&this.oBoot.bootstart&&this.oBoot.bootstart();return this};r=new E;F.newInstanceFromJson=function(a){var b=new F;return b.initByJson(a)?b:null};F.prototype.name="";F.prototype.email="";F.prototype.privateType=null;F.prototype.validate=function(){return""!==this.name||""!==this.email};F.prototype.hash=function(a){return"#"+
|
||||
(a?"":this.name)+"#"+this.email+"#"};F.prototype.clearDuplicateName=function(){this.name===this.email&&(this.name="")};F.prototype.type=function(){if(null===this.privateType&&(this.email&&"@facebook.com"===this.email.substr(-13)&&(this.privateType=g.EmailType.Facebook),null===this.privateType))this.privateType=g.EmailType.Default;return this.privateType};F.prototype.search=function(a){return-1<(this.name+" "+this.email).toLowerCase().indexOf(a.toLowerCase())};F.prototype.parse=function(a){var a=c.trim(a),
|
||||
b=/(?:"([^"]+)")? ?<?(.*?@[^>,]+)>?,? ?/g.exec(a);b?(this.name=b[1]||"",this.email=b[2]||"",this.clearDuplicateName()):/^[^@]+@[^@]+$/.test(a)&&(this.name="",this.email=a)};F.prototype.initByJson=function(a){var b=!1;a&&"Object/Email"===a["@Object"]&&(this.name=c.trim(a.Name),this.email=c.trim(a.Email),b=""!==this.email,this.clearDuplicateName());return b};F.prototype.toLine=function(a,b){var d="";""!==this.email&&(b=c.isUnd(b)?!1:!!b,a&&""!==this.name?d=b?'<a href="mailto:'+c.encodeHtml('"'+this.name+
|
||||
'" <'+this.email+">")+'" target="_blank" tabindex="-1">'+c.encodeHtml(this.name)+"</a>":this.name:(d=this.email,""!==this.name?d=b?c.encodeHtml('"'+this.name+'" <')+'<a href="mailto:'+c.encodeHtml('"'+this.name+'" <'+this.email+">")+'" target="_blank" tabindex="-1">'+c.encodeHtml(d)+"</a>"+c.encodeHtml(">"):'"'+this.name+'" <'+d+">":b&&(d='<a href="mailto:'+c.encodeHtml(this.email)+'" target="_blank" tabindex="-1">'+c.encodeHtml(this.email)+"</a>")));return d};F.prototype.select2Result=function(){var a=
|
||||
"",b=f.cache().getUserPic(this.email),a=""!==b?a+('<img class="select2-user-pic pull-left" src="'+c.encodeHtml(b)+'" />'):a+('<img class="select2-user-pic pull-left" src="'+f.link().emptyContactPic()+'" />');g.EmailType.Facebook===this.type()?(a+=""+(0<this.name.length?this.name:this.email),a+='<i class="icon-facebook pull-right select2-icon-result" />'):a+=""+(0<this.name.length?this.email+' <span class="select2-subname">('+this.name+")</span>":this.email);return a+""};F.prototype.select2Selection=
|
||||
function(a){var b="";if(g.EmailType.Facebook===this.type()){if(b=0<this.name.length?this.name:this.email,""!==b)return i("<pan>").text(b).appendTo(a),a.append('<i class="icon-facebook select2-icon"></i>'),null}else b=0<this.name.length?this.name+" ("+this.email+")":this.email;return b};ja.prototype.parse=function(a){var b=!1;a&&"Object/Contact"===a["@Object"]&&(this.idContact=c.pInt(a.IdContact),this.listName=c.pString(a.ListName),this.name=c.pString(a.Name),this.emails=c.isNonEmptyArray(a.Emails)?
|
||||
a.Emails:[],this.imageHash=c.pString(a.ImageHash),b=!0);return b};ja.prototype.srcAttr=function(){return""===this.imageHash?f.link().emptyContactPic():f.link().getUserPicUrlFromHash(this.imageHash)};ja.prototype.generateUid=function(){return""+this.idContact};ja.prototype.lineAsCcc=function(){var a=[];this.deleted()&&a.push("deleted");this.selected()&&a.push("selected");this.checked()&&a.push("checked");return a.join(" ")};D.newInstanceFromJson=function(a){var b=new D;return b.initByJson(a)?b:null};
|
||||
D.prototype.mimeType="";D.prototype.fileName="";D.prototype.estimatedSize=0;D.prototype.friendlySize="";D.prototype.isInline=!1;D.prototype.isLinked=!1;D.prototype.cid="";D.prototype.cidWithOutTags="";D.prototype.download="";D.prototype.folder="";D.prototype.uid="";D.prototype.mimeIndex="";D.prototype.initByJson=function(a){var b=!1;a&&"Object/Attachment"===a["@Object"]&&(this.mimeType=a.MimeType,this.fileName=a.FileName,this.estimatedSize=c.pInt(a.EstimatedSize),this.isInline=!!a.IsInline,this.isLinked=
|
||||
!!a.IsLinked,this.cid=a.CID,this.download=a.Download,this.folder=a.Folder,this.uid=a.Uid,this.mimeIndex=a.MimeIndex,this.friendlySize=c.friendlySize(this.estimatedSize),this.cidWithOutTags=this.cid.replace(/^<+/,"").replace(/>+$/,""),b=!0);return b};D.prototype.isImage=function(){return"image/"===this.mimeType.substr(0,6)};D.prototype.isText=function(){return"text/"===this.mimeType.substr(0,5)};D.prototype.linkDownload=function(){return f.link().attachmentDownload(this.download)};D.prototype.linkPreview=
|
||||
function(){return f.link().attachmentPreview(this.download)};D.prototype.linkPreviewAsPlain=function(){return f.link().attachmentPreviewAsPlain(this.download)};D.prototype.generateTransferDownloadUrl=function(){var a=this.linkDownload();"http"!==a.substr(0,4)&&(a=j.location.protocol+"//"+j.location.host+j.location.pathname+a);return this.mimeType+":"+this.fileName+":"+a};D.prototype.eventDragStart=function(a,b){var d=b.originalEvent||b;a&&(d&&d.dataTransfer&&d.dataTransfer.setData)&&d.dataTransfer.setData("DownloadURL",
|
||||
this.generateTransferDownloadUrl());return!0};D.prototype.iconClass=function(){var a=this.mimeType.toLocaleString().split("/"),b="icon-file";a&&a[1]&&("image"===a[0]?b="icon-image":"text"===a[0]?b="icon-file-xml":"audio"===a[0]?b="icon-music":"video"===a[0]?b="icon-film":-1<c.inArray(a[1],"zip 7z tar rar gzip bzip bzip2 x-zip x-7z x-rar x-tar x-gzip x-bzip x-bzip2 x-zip-compressed x-7z-compressed x-rar-compressed".split(" "))?b="icon-file-zip":-1<c.inArray(a[1],["pdf","x-pdf"])?b="icon-file-pdf":
|
||||
-1<c.inArray(a[1],["exe","x-exe","x-winexe","bat"])?b="icon-console":-1<c.inArray(a[1],"rtf msword vnd.msword vnd.openxmlformats-officedocument.wordprocessingml.document vnd.openxmlformats-officedocument.wordprocessingml.template vnd.ms-word.document.macroEnabled.12 vnd.ms-word.template.macroEnabled.12".split(" "))?b="icon-file-word":-1<c.inArray(a[1],"excel ms-excel vnd.ms-excel vnd.openxmlformats-officedocument.spreadsheetml.sheet vnd.openxmlformats-officedocument.spreadsheetml.template vnd.ms-excel.sheet.macroEnabled.12 vnd.ms-excel.template.macroEnabled.12 vnd.ms-excel.addin.macroEnabled.12 vnd.ms-excel.sheet.binary.macroEnabled.12".split(" "))?
|
||||
b="icon-file-excel":-1<c.inArray(a[1],"powerpoint ms-powerpoint vnd.ms-powerpoint vnd.openxmlformats-officedocument.presentationml.presentation vnd.openxmlformats-officedocument.presentationml.template vnd.openxmlformats-officedocument.presentationml.slideshow vnd.ms-powerpoint.addin.macroEnabled.12 vnd.ms-powerpoint.presentation.macroEnabled.12 vnd.ms-powerpoint.template.macroEnabled.12 vnd.ms-powerpoint.slideshow.macroEnabled.12".split(" "))&&(b="icon-file-powerpoint"));return b};N.prototype.id=
|
||||
"";N.prototype.isInline=!1;N.prototype.isLinked=!1;N.prototype.CID="";N.prototype.fromMessage=!1;N.prototype.cancel=c.emptyFunction;N.prototype.initByUploadJson=function(a){var b=!1;a&&(this.fileName(a.Name),this.size(c.isUnd(a.Size)?0:c.pInt(a.Size)),this.tempName(c.isUnd(a.TempName)?"":a.TempName),this.isInline=!1,b=!0);return b};m.newInstanceFromJson=function(a){var b=new m;return b.initByJson(a)?b:null};m.calculateFullFromatDateValue=function(a){return Y.unix(a).format("LLL")};m.emailsToLine=
|
||||
function(a,b,d){var f=[],e=0,g=0;if(c.isNonEmptyArray(a)){e=0;for(g=a.length;e<g;e++)f.push(a[e].toLine(b,d))}return f.join(", ")};m.initEmailsFromJson=function(a){var b=0,d=0,f=null,e=[];if(c.isNonEmptyArray(a)){b=0;for(d=a.length;b<d;b++)(f=F.newInstanceFromJson(a[b]))&&e.push(f)}return e};m.replyHelper=function(a,b,d){if(a&&0<a.length)for(var f=0,e=a.length;f<e;f++)c.isUnd(b[a[f].email])&&(b[a[f].email]=!0,d.push(a[f]))};m.prototype.initByJson=function(a){var b=!1;a&&"Object/Message"===a["@Object"]&&
|
||||
(this.folderFullNameRaw=a.Folder,this.uid=a.Uid,this.requestHash=a.RequestHash,this.size(c.pInt(a.Size)),this.from=m.initEmailsFromJson(a.From),this.to=m.initEmailsFromJson(a.To),this.cc=m.initEmailsFromJson(a.Cc),this.bcc=m.initEmailsFromJson(a.Bcc),this.replyTo=m.initEmailsFromJson(a.ReplyTo),this.subject(a.Subject),this.dateTimeStampInUTC(c.pInt(a.DateTimeStampInUTC)),this.hasAttachments(!!a.HasAttachments),this.fromEmailString(m.emailsToLine(this.from,!0)),this.toEmailsString(m.emailsToLine(this.to,
|
||||
!0)),this.parentUid(c.pInt(a.ParentThread)),this.threads(c.isArray(a.Threads)?a.Threads:[]),this.threadsLen(c.pInt(a.ThreadsLen)),this.initFlagsByJson(a),this.computeSenderEmail(),b=!0);return b};m.prototype.computeSenderEmail=function(){var a=f.data().sentFolder(),b=f.data().draftFolder();this.senderEmailsString(this.folderFullNameRaw===a||this.folderFullNameRaw===b?this.toEmailsString():this.fromEmailString())};m.prototype.initUpdateByMessageJson=function(a){var b=!1,d=g.MessagePriority.Normal;
|
||||
a&&"Object/Message"===a["@Object"]&&(d=c.pInt(a.Priority),this.priority(-1<c.inArray(d,[g.MessagePriority.High,g.MessagePriority.Low])?d:g.MessagePriority.Normal),this.aDraftInfo=a.DraftInfo,this.sMessageId=a.MessageId,this.sInReplyTo=a.InReplyTo,this.sReferences=a.References,this.hasAttachments(!!a.HasAttachments),this.foundedCIDs=c.isArray(a.FoundedCIDs)?a.FoundedCIDs:[],this.attachments(this.initAttachmentsFromJson(a.Attachments)),this.computeSenderEmail(),b=!0);return b};m.prototype.initAttachmentsFromJson=
|
||||
function(a){var b=0,d=0,f=null,e=[];if(a&&"Collection/AttachmentCollection"===a["@Object"]&&c.isNonEmptyArray(a["@Collection"])){b=0;for(d=a["@Collection"].length;b<d;b++)if(f=D.newInstanceFromJson(a["@Collection"][b]))""!==f.cidWithOutTags&&(0<this.foundedCIDs.length&&0<=c.inArray(f.cidWithOutTags,this.foundedCIDs))&&(f.isLinked=!0),e.push(f)}return e};m.prototype.initFlagsByJson=function(a){var b=!1;a&&"Object/Message"===a["@Object"]&&(this.unseen(!a.IsSeen),this.flagged(!!a.IsFlagged),this.answered(!!a.IsAnswered),
|
||||
this.forwarded(!!a.IsForwarded),b=!0);return b};m.prototype.fromToLine=function(a,b){return m.emailsToLine(this.from,a,b)};m.prototype.toToLine=function(a,b){return m.emailsToLine(this.to,a,b)};m.prototype.ccToLine=function(a,b){return m.emailsToLine(this.cc,a,b)};m.prototype.bccToLine=function(a,b){return m.emailsToLine(this.bcc,a,b)};m.prototype.lineAsCcc=function(){var a=[];this.deleted()&&a.push("deleted");this.selected()&&a.push("selected");this.checked()&&a.push("checked");this.flagged()&&a.push("flagged");
|
||||
this.unseen()&&a.push("unseen");this.answered()&&a.push("answered");this.forwarded()&&a.push("forwarded");this.hasAttachments()&&a.push("withAttachments");this.newForAnimation()&&a.push("new");""===this.subject()&&a.push("emptySubject");0<this.parentUid()&&a.push("hasParentMessage");0<this.threadsLen()&&a.push("hasChildrenMessage");this.hasUnseenSubMessage()&&a.push("hasUnseenSubMessage");this.hasFlaggedSubMessage()&&a.push("hasFlaggedSubMessage");return a.join(" ")};m.prototype.hasVisibleAttachments=
|
||||
function(){return!!h.find(this.attachments(),function(a){return!a.isLinked})};m.prototype.findAttachmentByCid=function(a){var b=null,d=this.attachments();c.isNonEmptyArray(d)&&(a=a.replace(/^<+/,"").replace(/>+$/,""),b=h.find(d,function(b){return a===b.cidWithOutTags}));return b||null};m.prototype.messageId=function(){return this.sMessageId};m.prototype.inReplyTo=function(){return this.sInReplyTo};m.prototype.references=function(){return this.sReferences};m.prototype.fromAsSingleEmail=function(){return c.isArray(this.from)&&
|
||||
this.from[0]?this.from[0].email:""};m.prototype.viewLink=function(){return f.link().messageViewLink(this.requestHash)};m.prototype.downloadLink=function(){return f.link().messageDownloadLink(this.requestHash)};m.prototype.replyEmails=function(a){var b=[],a=c.isUnd(a)?{}:a;m.replyHelper(this.replyTo,a,b);0===b.length&&m.replyHelper(this.from,a,b);return b};m.prototype.replyAllEmails=function(a){var b=[],d=[],a=c.isUnd(a)?{}:a;m.replyHelper(this.replyTo,a,b);0===b.length&&m.replyHelper(this.from,a,
|
||||
b);m.replyHelper(this.to,a,b);m.replyHelper(this.cc,a,d);return[b,d]};m.prototype.textBodyToString=function(){return this.body?this.body.html():""};m.prototype.attachmentsToStringLine=function(){var a=h.map(this.attachments(),function(a){return a.fileName+" ("+a.friendlySize+")"});return a&&0<a.length?a.join(", "):""};m.prototype.getDataForWindowPopup=function(){return{popupFrom:this.fromToLine(!1),popupTo:this.toToLine(!1),popupCc:this.ccToLine(!1),popupBcc:this.bccToLine(!1),popupSubject:this.subject(),
|
||||
popupDate:this.fullFormatDateValue(),popupAttachments:this.attachmentsToStringLine(),popupBody:this.textBodyToString()}};m.prototype.viewPopupMessage=function(a){c.windowPopupKnockout(this.getDataForWindowPopup(),"PopupsWindowSimpleMessage",this.subject(),function(b){b&&(b.document&&b.document.body)&&(i("img.lazy",b.document.body).each(function(a,b){var c=i(b),f=c.data("original"),e=c.attr("src");0<=a&&(f&&!e)&&c.attr("src",f)}),a&&j.setTimeout(function(){b.print()},100))})};m.prototype.printMessage=
|
||||
function(){this.viewPopupMessage(!0)};m.prototype.generateUid=function(){return this.folderFullNameRaw+"/"+this.uid};m.prototype.populateByMessageListItem=function(a){this.folderFullNameRaw=a.folderFullNameRaw;this.uid=a.uid;this.requestHash=a.requestHash;this.subject(a.subject());this.size(a.size());this.dateTimeStampInUTC(a.dateTimeStampInUTC());this.priority(a.priority());this.fromEmailString(a.fromEmailString());this.toEmailsString(a.toEmailsString());this.emails=a.emails;this.from=a.from;this.to=
|
||||
a.to;this.cc=a.cc;this.bcc=a.bcc;this.replyTo=a.replyTo;this.unseen(a.unseen());this.flagged(a.flagged());this.answered(a.answered());this.forwarded(a.forwarded());this.selected(a.selected());this.checked(a.checked());this.hasAttachments(a.hasAttachments());this.moment(a.moment());this.body=null;this.priority(g.MessagePriority.Normal);this.aDraftInfo=[];this.sReferences=this.sInReplyTo=this.sMessageId="";this.parentUid(a.parentUid());this.threads(a.threads());this.threadsLen(a.threadsLen());this.computeSenderEmail();
|
||||
return this};m.prototype.showExternalImages=function(a){this.body&&this.body.data("rl-has-images")&&(a=c.isUnd(a)?!1:a,this.hasImages(!1),this.body.data("rl-has-images",!1),i("[data-x-src]",this.body).each(function(){a&&i(this).is("img")?i(this).addClass("lazy").attr("data-original",i(this).attr("data-x-src")).removeAttr("data-x-src"):i(this).attr("src",i(this).attr("data-x-src")).removeAttr("data-x-src")}),i("[data-x-style-url]",this.body).each(function(){var a=c.trim(i(this).attr("style")),a=""===
|
||||
a?"":";"===a.substr(-1)?a+" ":a+"; ";i(this).attr("style",a+i(this).attr("data-x-style-url")).removeAttr("data-x-style-url")}),a&&(i("img.lazy",this.body).lazyload({threshold:400,effect:"fadeIn",skip_invisible:!1,container:i(".RL-MailMessageView .messageView .messageItem .content")[0]}),R.resize()),c.windowResize(500),c.windowResize(1E3))};m.prototype.showInternalImages=function(a){if(this.body&&!this.body.data("rl-init-internal-images")){var a=c.isUnd(a)?!1:a,b=this;this.body.data("rl-init-internal-images",
|
||||
!0);i("[data-x-src-cid]",this.body).each(function(){var d=b.findAttachmentByCid(i(this).attr("data-x-src-cid"));d&&d.download&&(a&&i(this).is("img")?i(this).addClass("lazy").attr("data-original",d.linkPreview()):i(this).attr("src",d.linkPreview()))});i("[data-x-style-cid]",this.body).each(function(){var a="",f="",e=b.findAttachmentByCid(i(this).attr("data-x-style-cid"));e&&e.linkPreview&&(f=i(this).attr("data-x-style-cid-name"),""!==f&&(a=c.trim(i(this).attr("style")),a=""===a?"":";"===a.substr(-1)?
|
||||
a+" ":a+"; ",i(this).attr("style",a+f+": url('"+e.linkPreview()+"')")))});a&&h.delay(function(){i("img.lazy",b.body).lazyload({threshold:400,effect:"fadeIn",skip_invisible:!1,container:i(".RL-MailMessageView .messageView .messageItem .content")[0]})},300);c.windowResize(500)}};G.newInstanceFromJson=function(a){var b=new G;return b.initByJson(a)?b.initComputed():null};G.prototype.initComputed=function(){this.hasSubScribedSubfolders=e.computed(function(){return!!h.find(this.subFolders(),function(a){return a.subScribed()})},
|
||||
this);this.visible=e.computed(function(){var a=this.subScribed(),b=this.hasSubScribedSubfolders();return a||b&&(!this.existen||!this.selectable)},this);this.isSystemFolder=e.computed(function(){return g.FolderType.User!==this.type()},this);this.hidden=e.computed(function(){var a=this.isSystemFolder(),b=this.hasSubScribedSubfolders();return this.isGmailFolder||a&&this.isNamespaceFolder||a&&!b},this);this.selectableForFolderList=e.computed(function(){return!this.isSystemFolder()&&this.selectable},this);
|
||||
this.messageCountAll=e.computed({read:this.privateMessageCountAll,write:function(a){c.isPosNumeric(a,!0)?this.privateMessageCountAll(a):this.privateMessageCountAll.valueHasMutated()},owner:this});this.messageCountUnread=e.computed({read:this.privateMessageCountUnread,write:function(a){c.isPosNumeric(a,!0)?this.privateMessageCountUnread(a):this.privateMessageCountUnread.valueHasMutated()},owner:this});this.printableUnreadCount=e.computed(function(){var a=this.messageCountUnread();return 0<a&&"INBOX"===
|
||||
this.fullNameRaw?""+a:""},this);this.canBeDeleted=e.computed(function(){return!this.isSystemFolder()&&0===this.subFolders().length&&"INBOX"!==this.fullNameRaw},this);this.canBeSubScribed=e.computed(function(){return!this.isSystemFolder()&&this.selectable&&"INBOX"!==this.fullNameRaw},this);this.visible.subscribe(function(){c.timeOutAction("folder-list-folder-visibility-change",function(){R.trigger("folder-list-folder-visibility-change")},100)});this.localName=e.computed(function(){ha();var a=this.type(),
|
||||
b=this.name();if(this.isSystemFolder())switch(a){case g.FolderType.Inbox:b=c.i18n("FOLDER_LIST/INBOX_NAME");break;case g.FolderType.SentItems:b=c.i18n("FOLDER_LIST/SENT_NAME");break;case g.FolderType.Draft:b=c.i18n("FOLDER_LIST/DRAFTS_NAME");break;case g.FolderType.Spam:b=c.i18n("FOLDER_LIST/SPAM_NAME");break;case g.FolderType.Trash:b=c.i18n("FOLDER_LIST/TRASH_NAME")}return b},this);this.manageFolderSystemName=e.computed(function(){ha();var a="",b=this.type(),d=this.name();if(this.isSystemFolder())switch(b){case g.FolderType.Inbox:a=
|
||||
"("+c.i18n("FOLDER_LIST/INBOX_NAME")+")";break;case g.FolderType.SentItems:a="("+c.i18n("FOLDER_LIST/SENT_NAME")+")";break;case g.FolderType.Draft:a="("+c.i18n("FOLDER_LIST/DRAFTS_NAME")+")";break;case g.FolderType.Spam:a="("+c.i18n("FOLDER_LIST/SPAM_NAME")+")";break;case g.FolderType.Trash:a="("+c.i18n("FOLDER_LIST/TRASH_NAME")+")"}if(""!==a&&"("+d+")"===a||"(inbox)"===a.toLowerCase())a="";return a},this);this.collapsed=e.computed({read:function(){return!this.hidden()&&this.collapsedPrivate()},write:function(a){this.collapsedPrivate(a)},
|
||||
owner:this});return this};G.prototype.fullName="";G.prototype.fullNameRaw="";G.prototype.fullNameHash="";G.prototype.delimiter="";G.prototype.namespace="";G.prototype.deep=0;G.prototype.isNamespaceFolder=!1;G.prototype.isGmailFolder=!1;G.prototype.isUnpaddigFolder=!1;G.prototype.collapsedCss=function(){return this.hasSubScribedSubfolders()?this.collapsed()?"icon-arrow-right-3 e-collapsed-sign":"icon-arrow-down-3 e-collapsed-sign":"icon-none e-collapsed-sign"};G.prototype.initByJson=function(a){var b=
|
||||
!1;a&&"Object/Folder"===a["@Object"]&&(this.name(a.Name),this.delimiter=a.Delimiter,this.fullName=a.FullName,this.fullNameRaw=a.FullNameRaw,this.fullNameHash=a.FullNameHash,this.deep=a.FullNameRaw.split(this.delimiter).length-1,this.selectable=!!a.IsSelectable,this.existen=!!a.IsExisten,this.subScribed(!!a.IsSubscribed),this.type("INBOX"===this.fullNameRaw?g.FolderType.Inbox:g.FolderType.User),b=!0);return b};G.prototype.printableFullName=function(){return this.fullName.split(this.delimiter).join(" / ")};
|
||||
Ka.prototype.email="";Ka.prototype.changeAccountLink=function(){return f.link().change(this.email)};c.extendAsViewModel("PopupsFolderClearViewModel",va);va.prototype.clearPopup=function(){this.clearingProcess(!1);this.selectedFolder(null)};va.prototype.onShow=function(a){this.clearPopup();a&&this.selectedFolder(a)};c.extendAsViewModel("PopupsFolderCreateViewModel",ba);ba.prototype.sNoParentText="";ba.prototype.simpleFolderNameValidation=function(a){return/^[^\\\/]+$/g.test(c.trim(a))};ba.prototype.clearPopup=
|
||||
function(){this.folderName("");this.selectedParentValue("");this.focusTrigger(!1)};ba.prototype.onShow=function(){this.clearPopup();this.focusTrigger(!0)};c.extendAsViewModel("PopupsFolderSystemViewModel",X);X.prototype.sChooseOnText="";X.prototype.sUnuseText="";X.prototype.onShow=function(a){var b="",a=c.isUnd(a)?g.SetSystemFoldersNotification.None:a;switch(a){case g.SetSystemFoldersNotification.Sent:b=c.i18n("POPUPS_SYSTEM_FOLDERS/NOTIFICATION_SENT");break;case g.SetSystemFoldersNotification.Draft:b=
|
||||
c.i18n("POPUPS_SYSTEM_FOLDERS/NOTIFICATION_DRAFTS");break;case g.SetSystemFoldersNotification.Spam:b=c.i18n("POPUPS_SYSTEM_FOLDERS/NOTIFICATION_SPAM");break;case g.SetSystemFoldersNotification.Trash:b=c.i18n("POPUPS_SYSTEM_FOLDERS/NOTIFICATION_TRASH")}this.notification(b)};c.extendAsViewModel("PopupsComposeViewModel",y);y.prototype.formattedFrom=function(){var a=f.data().displayName(),b=f.data().accountEmail();return""===a?b:a+" ("+b+")"};y.prototype.sendMessageResponse=function(a,b){var d=!1;this.sending(!1);
|
||||
g.StorageResultType.Success===a&&(b&&b.Result)&&(d=!0,this.modalVisibility()&&r.delegateRun(this,"closeCommand"));this.modalVisibility()&&!d&&(b&&g.Notification.CantSaveMessage===b.ErrorCode?(this.sendSuccessButSaveError(!0),j.alert(c.trim(c.i18n("COMPOSE/SAVED_ERROR_ON_SEND")))):(this.sendError(!0),j.alert(c.getNotification(g.Notification.CantSendMessage))))};y.prototype.saveMessageResponse=function(a,b){var d=!1,e=null;this.saving(!1);if(g.StorageResultType.Success===a&&(b&&b.Result)&&(b.Result.NewFolder&&
|
||||
b.Result.NewUid)&&(this.bFromDraft&&(e=f.data().message())&&(this.draftFolder()===e.folderFullNameRaw&&this.draftUid()===e.uid)&&f.data().message(null),this.draftFolder(b.Result.NewFolder),this.draftUid(b.Result.NewUid),this.modalVisibility()))this.savedTime(j.Math.round((new j.Date).getTime()/1E3)),this.savedOrSendingText(0<this.savedTime()?c.i18n("COMPOSE/SAVED_TIME",{TIME:Y.unix(this.savedTime()-1).format("LT")}):""),d=!0,this.bFromDraft&&f.cache().setFolderHash(this.draftFolder(),"");!this.modalVisibility()&&
|
||||
!d&&(this.savedError(!0),this.savedOrSendingText(c.getNotification(g.Notification.CantSaveMessage)))};y.prototype.onHide=function(){r.routeOn()};y.prototype.onShow=function(a,b,d){r.routeOff();var e=this,K="",s="",w="",k="",j="",o=null,k=o="",K=[],K={},k=f.data().accountEmail(),q=[],q=s=null,a=a||g.ComposeType.Empty;(b=b||null)&&c.isNormal(b)&&(q=c.isArray(b)&&1===b.length?b[0]:!c.isArray(b)?b:null);null!==k&&(K[k]=!0);this.reset();c.isNonEmptyArray(d)&&this.to(d);if(""!==a&&q){k=q.fullFormatDateValue();
|
||||
j=q.subject();s=q.aDraftInfo;o=i(q.body).clone();c.removeBlockquoteSwitcher(o);o=o.html();switch(a){case g.ComposeType.Reply:this.to(q.replyEmails(K));this.subject(c.replySubjectAdd("Re",j));this.prepearMessageAttachments(q,a);this.aDraftInfo=["reply",q.uid,q.folderFullNameRaw];this.sInReplyTo=q.sMessageId;this.sReferences=c.trim(this.sInReplyTo+" "+q.sReferences);break;case g.ComposeType.ReplyAll:K=q.replyAllEmails(K);this.to(K[0]);this.cc(K[1]);this.subject(c.replySubjectAdd("Re",j));this.prepearMessageAttachments(q,
|
||||
a);this.aDraftInfo=["reply",q.uid,q.folderFullNameRaw];this.sInReplyTo=q.sMessageId;this.sReferences=c.trim(this.sInReplyTo+" "+q.references());break;case g.ComposeType.Forward:this.subject(c.replySubjectAdd("Fwd",j));this.prepearMessageAttachments(q,a);this.aDraftInfo=["forward",q.uid,q.folderFullNameRaw];this.sInReplyTo=q.sMessageId;this.sReferences=c.trim(this.sInReplyTo+" "+q.sReferences);break;case g.ComposeType.ForwardAsAttachment:this.subject(c.replySubjectAdd("Fwd",j));this.prepearMessageAttachments(q,
|
||||
a);this.aDraftInfo=["forward",q.uid,q.folderFullNameRaw];this.sInReplyTo=q.sMessageId;this.sReferences=c.trim(this.sInReplyTo+" "+q.sReferences);break;case g.ComposeType.Draft:this.to(q.to),this.cc(q.cc),this.bcc(q.bcc),this.bFromDraft=!0,this.draftFolder(q.folderFullNameRaw),this.draftUid(q.uid),this.subject(j),this.prepearMessageAttachments(q,a),this.aDraftInfo=c.isNonEmptyArray(s)&&3===s.length?s:null,this.sInReplyTo=q.sInReplyTo,this.sReferences=q.sReferences}if(this.oEditor){switch(a){case g.ComposeType.Reply:case g.ComposeType.ReplyAll:K=
|
||||
q.fromToLine(!1,!0);k=c.i18n("COMPOSE/REPLY_MESSAGE_TITLE",{DATETIME:k,EMAIL:K});o="<br /><br />"+k+":<blockquote><br />"+o+"</blockquote>";break;case g.ComposeType.Forward:K=q.fromToLine(!1,!0);s=q.toToLine(!1,!0);w=q.ccToLine(!1,!0);o="<br /><br /><br />"+c.i18n("COMPOSE/FORWARD_MESSAGE_TOP_TITLE")+"<br />"+c.i18n("COMPOSE/FORWARD_MESSAGE_TOP_FROM")+": "+K+"<br />"+c.i18n("COMPOSE/FORWARD_MESSAGE_TOP_TO")+": "+s+(0<w.length?"<br />"+c.i18n("COMPOSE/FORWARD_MESSAGE_TOP_CC")+": "+w:"")+"<br />"+c.i18n("COMPOSE/FORWARD_MESSAGE_TOP_SENT")+
|
||||
": "+c.encodeHtml(k)+"<br />"+c.i18n("COMPOSE/FORWARD_MESSAGE_TOP_SUBJECT")+": "+c.encodeHtml(j)+"<br /><br />"+o;break;case g.ComposeType.ForwardAsAttachment:o=""}this.oEditor.setRawText(o,q.isHtml)}}else this.oEditor&&g.ComposeType.Empty===a?this.oEditor.setRawText("<br />"+c.convertPlainTextToHtml(f.data().signature()),g.EditorDefaultType.Html===f.data().editorDefaultType()):c.isNonEmptyArray(b)&&h.each(b,function(a){e.addMessageAsAttachment(a)});q=this.getAttachmentsDownloadsForUpload();c.isNonEmptyArray(q)&&
|
||||
f.remote().messageUploadAttachments(function(a,b){if(g.StorageResultType.Success===a&&b&&b.Result){var d=null,c="";if(!e.viewModelVisibility())for(c in b.Result)b.Result.hasOwnProperty(c)&&(d=e.getAttachmentById(b.Result[c]))&&d.tempName(c)}else e.setMessageAttachmentFailedDowbloadText()},q);this.triggerForResize()};y.prototype.onBuild=function(){this.initEditor();this.initUploader();var a=this,b=null;R.on("keydown",function(b){var c=!0;b&&(a.modalVisibility()&&f.data().useKeyboardShortcuts())&&(b.ctrlKey&&
|
||||
g.EventKeyCode.S===b.keyCode)&&(a.saveCommand(),c=!1);return c});R.on("resize",function(){a.triggerForResize()});this.dropboxEnabled()&&(b=document.createElement("script"),b.type="text/javascript",b.src="https://www.dropbox.com/static/api/1/dropins.js",i(b).attr("id","dropboxjs").attr("data-app-key",f.settingsGet("DropboxApiKey")),document.body.appendChild(b))};y.prototype.getAttachmentById=function(a){for(var b=this.attachments(),d=0,c=b.length;d<c;d++)if(b[d]&&a===b[d].id)return b[d];return null};
|
||||
y.prototype.initEditor=function(){if(this.composeEditorTextArea()&&this.composeEditorHtmlArea()&&this.composeEditorToolbar()){var a=this;this.oEditor=new n(this.composeEditorTextArea(),this.composeEditorHtmlArea(),this.composeEditorToolbar(),{onSwitch:function(b){b||a.removeLinkedAttachments()}});this.oEditor.initLanguage(c.i18n("EDITOR/TEXT_SWITCHER_CONFIRM"),c.i18n("EDITOR/TEXT_SWITCHER_PLAINT_TEXT"),c.i18n("EDITOR/TEXT_SWITCHER_RICH_FORMATTING"))}};y.prototype.initUploader=function(){if(this.composeUploaderButton()){var a=
|
||||
{},b=c.pInt(f.settingsGet("AttachmentLimit")),d=new ra({action:f.link().upload(),name:"uploader",queueSize:2,multipleSizeLimit:50,disableFolderDragAndDrop:!1,clickElement:this.composeUploaderButton(),dragAndDropElement:this.composeUploaderDropPlace(),onDragEnter:h.bind(function(){this.dragAndDropOver(!0)},this),onDragLeave:h.bind(function(){this.dragAndDropOver(!1)},this),onBodyDragEnter:h.bind(function(){this.dragAndDropVisible(!0)},this),onBodyDragLeave:h.bind(function(){this.dragAndDropVisible(!1)},
|
||||
this),onProgress:h.bind(function(b,d,f){var e=null;c.isUnd(a[b])?(e=this.getAttachmentById(b))&&(a[b]=e):e=a[b];e&&e.progress(" - "+Math.floor(100*(d/f))+"%")},this),onSelect:h.bind(function(a,f){this.dragAndDropOver(!1);var e=this,g=c.isUnd(f.FileName)?"":f.FileName.toString(),h=c.isNormal(f.Size)?c.pInt(f.Size):null,g=new N(a,g,h);g.cancel=function(){e.attachments.remove(function(b){return b&&b.id===a});d&&d.cancel(a)};this.attachments.push(g);return 0<h&&0<b&&b<h?(g.error(c.i18n("UPLOAD/ERROR_FILE_IS_TOO_BIG")),
|
||||
!1):!0},this),onStart:h.bind(function(b){var d=null;c.isUnd(a[b])?(d=this.getAttachmentById(b))&&(a[b]=d):d=a[b];d&&(d.waiting(!1),d.uploading(!0))},this),onComplete:h.bind(function(b,d,f){var e="",g=null,h=null,i=this.getAttachmentById(b),h=d&&f&&f.Result&&f.Result.Attachment?f.Result.Attachment:null,g=f&&f.Result&&f.Result.ErrorCode?f.Result.ErrorCode:null;null!==g?e=c.getUploadErrorDescByCode(g):h||(e=c.i18n("UPLOAD/ERROR_UNKNOWN"));i&&(""!==e&&0<e.length?i.waiting(!1).uploading(!1).error(e):h&&
|
||||
(i.waiting(!1).uploading(!1),i.initByUploadJson(h)),c.isUnd(a[b])&&delete a[b])},this)});d?this.addAttachmentEnabled(!0).dragAndDropEnabled(d.isDragAndDropSupported()):this.addAttachmentEnabled(!1).dragAndDropEnabled(!1)}};y.prototype.prepearAttachmentsForSendOrSave=function(){var a={};h.each(this.attachmentsInReady(),function(b){b&&(""!==b.tempName()&&b.enabled())&&(a[b.tempName()]=[b.fileName(),b.isInline?"1":"0",b.CID])});return a};y.prototype.addMessageAsAttachment=function(a){if(a){var b=this,
|
||||
d=null,d=a.subject(),d=".eml"===d.substr(-4).toLowerCase()?d:d+".eml",d=new N(a.requestHash,d,a.size());d.fromMessage=!0;var c=a.requestHash;d.cancel=function(){b.attachments.remove(function(a){return a&&a.id===c})};d.waiting(!1).uploading(!0);this.attachments.push(d)}};y.prototype.addDropboxAttachment=function(a){var b=this,d=c.pInt(f.settingsGet("AttachmentLimit")),e=null,h=a.bytes,e=new N(a.link,a.name,h);e.fromMessage=!1;var s=a.link;e.cancel=function(){b.attachments.remove(function(a){return a&&
|
||||
a.id===s})};e.waiting(!1).uploading(!0);this.attachments.push(e);if(0<h&&0<d&&d<h)return e.uploading(!1),e.error(c.i18n("UPLOAD/ERROR_FILE_IS_TOO_BIG")),!1;f.remote().composeUploadExternals(function(a,b){var d=!1;e.uploading(!1);g.StorageResultType.Success===a&&(b&&b.Result)&&b.Result[e.id]&&(d=!0,e.tempName(b.Result[e.id]));d||e.error(c.getUploadErrorDescByCode(g.UploadErrorCode.FileNoUploaded))},[a.link]);return!0};y.prototype.prepearMessageAttachments=function(a,b){if(a){var d=this,f=c.isNonEmptyArray(a.attachments())?
|
||||
a.attachments():[],e=0,s=f.length,h=null,k=null,i=function(a){return function(){d.attachments.remove(function(b){return b&&b.id===a})}};if(g.ComposeType.ForwardAsAttachment===b)this.addMessageAsAttachment(a);else for(;e<s;e++)k=f[e],h=new N(k.download,k.fileName,k.estimatedSize,k.isInline,k.isLinked,k.cid),h.fromMessage=!0,h.cancel=i(k.download),h.waiting(!1).uploading(!0),this.attachments.push(h)}};y.prototype.removeLinkedAttachments=function(){this.attachments.remove(function(a){return a&&a.isLinked})};
|
||||
y.prototype.setMessageAttachmentFailedDowbloadText=function(){h.each(this.attachments(),function(a){a&&a.fromMessage&&a.waiting(!1).uploading(!1).error(c.getUploadErrorDescByCode(g.UploadErrorCode.FileNoUploaded))},this)};y.prototype.isEmptyForm=function(a){a=(a=c.isUnd(a)?!0:!!a)?0===this.attachments().length:0===this.attachmentsInReady().length;return 0===this.to().length&&0===this.cc().length&&0===this.bcc().length&&0===this.subject().length&&a&&""===this.oEditor.getTextForRequest()};y.prototype.reset=
|
||||
function(){this.to([]);this.cc([]);this.bcc([]);this.subject("");this.aDraftInfo=null;this.sInReplyTo="";this.bFromDraft=!1;this.sReferences="";this.bReloadFolder=!1;this.sendError(!1);this.sendSuccessButSaveError(!1);this.savedError(!1);this.savedTime(0);this.savedOrSendingText("");this.emptyToError(!1);this.showCcAndBcc(!1);this.attachments([]);this.dragAndDropOver(!1);this.dragAndDropVisible(!1);this.draftFolder("");this.draftUid("");this.sending(!1);this.saving(!1);this.oEditor&&this.oEditor.clear()};
|
||||
y.prototype.getAttachmentsDownloadsForUpload=function(){return h.map(h.filter(this.attachments(),function(a){return a&&""===a.tempName()}),function(a){return a.id})};y.prototype.triggerForResize=function(){this.resizer(!this.resizer())};c.extendAsViewModel("PopupsContactsViewModel",L);L.prototype.removeCheckedOrSelectedContactsFromList=function(){var a=this,b=this.contacts,d=this.currentContact(),c=this.contactsCheckedOrSelected();0<c.length&&(h.each(c,function(b){d&&d.idContact===b.idContact&&(d=
|
||||
null,a.currentContact(null));b.deleted(!0)}),h.delay(function(){h.each(c,function(a){b.remove(a)})},500))};L.prototype.deleteSelectedContacts=function(){0<this.contactsCheckedOrSelected().length&&(f.remote().contactsDelete(h.bind(this.deleteResponse,this),this.contactsCheckedOrSelectedUids()),this.removeCheckedOrSelectedContactsFromList())};L.prototype.deleteResponse=function(a,b){500<(g.StorageResultType.Success===a&&b&&b.Time?c.pInt(b.Time):0)?this.reloadContactList():h.delay(function(a){return function(){a.reloadContactList()}}(this),
|
||||
500)};L.prototype.populateViewContact=function(a){this.imageTrigger(!1);this.emptySelection(!1);a?(this.viewID(a.idContact),this.viewName(a.name),this.viewEmail(a.emails[0]||""),this.viewImageUrl(a.srcAttr())):(this.viewID(""),this.viewName(""),this.viewEmail(""),this.viewImageUrl(f.link().emptyContactPic()))};L.prototype.reloadContactList=function(){var a=this;this.contacts.loading(!0);f.remote().contacts(function(b,d){var f=[];g.StorageResultType.Success===b&&(d&&d.Result&&d.Result.List)&&c.isNonEmptyArray(d.Result.List)&&
|
||||
(f=h.map(d.Result.List,function(a){var b=new ja;return b.parse(a)?b:null}),f=h.compact(f));a.contacts(f);a.viewClearSearch(""!==a.search());a.contacts.loading(!1);""!==a.viewID()&&(!a.currentContact()&&a.contacts.setSelectedByUid)&&a.contacts.setSelectedByUid(""+a.viewID())},this.search())};L.prototype.onBuild=function(a){this.initUploader();this.oContentVisible=i(".b-list-content",a);this.oContentScrollable=i(".content",this.oContentVisible);this.selector.init(this.oContentVisible,this.oContentScrollable);
|
||||
this.viewImageUrl.valueHasMutated();e.computed(function(){var a=this.modalVisibility(),d=f.data().useKeyboardShortcuts();this.selector.useKeyboard(a&&d)},this)};L.prototype.initUploader=function(){var a=this,b=null;j.File&&(j.FileReader&&this.imageUploader())&&(b=new ra({queueSize:1,multipleSizeLimit:1,clickElement:this.imageUploader(),disableDragAndDrop:!0,disableMultiple:!0,onSelect:function(b,f){if(f&&f.File&&f.File.type){var e=null,g=f.File;f.File.type.match(/image.*/)?(e=new j.FileReader,e.onload=
|
||||
function(b){b&&(b.target&&b.target.result)&&c.resizeAndCrop(b.target.result,150,function(b){a.viewImageUrl(b);a.imageTrigger(!0)})},e.readAsDataURL(g)):j.alert("this file is not an image.")}return!1}}));return b};L.prototype.onShow=function(){r.routeOff();this.reloadContactList()};L.prototype.onHide=function(){r.routeOn();this.currentContact(null);this.emptySelection(!0);this.search("");h.each(this.contacts(),function(a){a.checked(!1)})};c.extendAsViewModel("PopupsAdvancedSearchViewModel",ca);ca.prototype.buildSearchStringValue=
|
||||
function(a){-1<a.indexOf(" ")&&(a='"'+a+'"');return a};ca.prototype.buildSearchString=function(){var a=[],b=c.trim(this.from()),d=c.trim(this.to()),f=c.trim(this.subject()),e=c.trim(this.text());b&&""!==b&&a.push("from:"+this.buildSearchStringValue(b));d&&""!==d&&a.push("to:"+this.buildSearchStringValue(d));f&&""!==f&&a.push("subject:"+this.buildSearchStringValue(f));this.hasAttachments()&&a.push("has:attachments");-1<this.selectedDateValue()&&a.push("date:"+Y().subtract("days",this.selectedDateValue()).format("YYYY.MM.DD")+
|
||||
"/");e&&""!==e&&a.push("text:"+this.buildSearchStringValue(e));return c.trim(a.join(" "))};ca.prototype.clearPopup=function(){this.from("");this.to("");this.subject("");this.text("");this.selectedDateValue(-1);this.hasAttachments(!1);this.fromFocus(!0)};ca.prototype.onShow=function(){this.clearPopup();this.fromFocus(!0)};c.extendAsViewModel("PopupsAddAccountViewModel",da);da.prototype.clearPopup=function(){this.email("");this.login("");this.password("");this.emailError(!1);this.loginError(!1);this.passwordError(!1);
|
||||
this.submitRequest(!1);this.submitError("")};da.prototype.onShow=function(){this.clearPopup();this.emailFocus(!0)};da.prototype.onBuild=function(){this.allowCustomLogin(!!f.settingsGet("AllowCustomLogin"))};c.extendAsViewModel("LoginViewModel",ka);ka.prototype.onShow=function(){r.routeOff();h.delay(h.bind(function(){""!==this.email()&&""!==this.password()?this.submitFocus(!0):this.emailFocus(!0)},this),100)};ka.prototype.onHide=function(){this.submitFocus(!1);this.emailFocus(!1)};ka.prototype.onBuild=
|
||||
function(){var a=this,b=f.settingsGet("JsHash"),d=function(b){b=c.pInt(b);0===b?(a.submitRequest(!0),f.loginAndLogoutReload()):a.submitError(c.getNotification(b))};this.allowCustomLogin(!!f.settingsGet("AllowCustomLogin"));this.facebookLoginEnabled(!!f.settingsGet("AllowFacebookSocial"));this.twitterLoginEnabled(!!f.settingsGet("AllowTwitterSocial"));this.googleLoginEnabled(!!f.settingsGet("AllowGoogleSocial"));switch((f.settingsGet("SignMe")||"unused").toLowerCase()){case g.LoginSignMeTypeAsString.DefaultOff:this.signMeType(g.LoginSignMeType.DefaultOff);
|
||||
break;case g.LoginSignMeTypeAsString.DefaultOn:this.signMeType(g.LoginSignMeType.DefaultOn);break;default:case g.LoginSignMeTypeAsString.Unused:this.signMeType(g.LoginSignMeType.Unused)}this.email(f.data().devEmail);this.login(f.data().devLogin);this.password(f.data().devPassword);this.googleLoginEnabled()&&(j["rl_"+b+"_google_login_service"]=d);this.facebookLoginEnabled()&&(j["rl_"+b+"_facebook_login_service"]=d);this.twitterLoginEnabled()&&(j["rl_"+b+"_twitter_login_service"]=d)};h.extend(Q.prototype,
|
||||
C.prototype);Q.prototype.accountClick=function(a,b){if(a&&b&&!c.isUnd(b.which)&&1===b.which){var d=this;this.accountsLoading(!0);h.delay(function(){d.accountsLoading(!1)},1E3)}return!0};Q.prototype.emailTitle=function(){return f.data().accountEmail()};Q.prototype.settingsClick=function(){r.setHash(f.link().settings())};Q.prototype.addAccountClick=function(){this.allowAddAccount&&r.showScreenPopup(da)};Q.prototype.logoutClick=function(){f.remote().logout(function(){j.__rlah_clear&&j.__rlah_clear();
|
||||
f.loginAndLogoutReload(!0,f.settingsGet("ParentEmail")&&0<f.settingsGet("ParentEmail").length)})};h.extend(Va.prototype,Q.prototype);h.extend(Wa.prototype,Q.prototype);c.extendAsViewModel("MailBoxFolderListViewModel",ea);ea.prototype.onBuild=function(a){a.on("click",".b-folders .e-item .e-link .e-collapsed-sign",function(a){var d=e.dataFor(this),f=!1;d&&a&&(f=d.collapsed(),c.setExpandedFolder(d.fullNameHash,f),d.collapsed(!f),a.preventDefault(),a.stopPropagation())}).on("click",".b-folders .e-item .e-link.selectable",
|
||||
function(a){a.preventDefault();if(a=e.dataFor(this))f.data().usePreviewPane()||f.data().message(null),a.fullNameRaw===f.data().currentFolderFullNameRaw()&&f.cache().setFolderHash(a.fullNameRaw,""),r.setHash(f.link().mailBox(a.fullNameHash))})};ea.prototype.messagesDrop=function(a,b){if(a&&b&&b.helper){var d=b.helper.data("rl-folder"),f=b.helper.data("rl-uids");z&&(z.__vm&&c.isNormal(d)&&c.isArray(f))&&z.__vm.moveMessagesToFolder(d,f,a.fullNameRaw)}};ea.prototype.composeClick=function(){r.showScreenPopup(y)};
|
||||
ea.prototype.contactsClick=function(){this.allowContacts&&r.showScreenPopup(L)};c.extendAsViewModel("MailBoxMessageListViewModel",z);z.prototype.emptySubjectValue="";z.prototype.searchEnterAction=function(){this.mainMessageListSearch(this.sLastSearchValue);this.inputMessageListSearchFocus(!1)};z.prototype.cancelSearch=function(){this.mainMessageListSearch("");this.inputMessageListSearchFocus(!1)};z.prototype.removeMessagesFromList=function(a,b,d,e){var d=c.isNormal(d)?d:"",e=c.isUnd(e)?!1:!!e,g=0,
|
||||
s=f.data(),i=f.cache().getFolderFromCacheList(a),k=""===d?null:f.cache().getFolderFromCacheList(d||""),j=s.currentFolderFullNameRaw(),o=s.message(),q=j===a?h.filter(s.messageList(),function(a){return a&&-1<c.inArray(a.uid,b)}):[];e||h.each(q,function(a){a&&a.unseen()&&g++});i&&!e&&(i.messageCountAll(0<=i.messageCountAll()-b.length?i.messageCountAll()-b.length:0),0<g&&i.messageCountUnread(0<=i.messageCountUnread()-g?i.messageCountUnread()-g:0));k&&!e&&(k.messageCountAll(k.messageCountAll()+b.length),
|
||||
0<g&&k.messageCountUnread(k.messageCountUnread()+g));0<q.length&&(h.each(q,function(a){if(o&&o.requestHash===a.requestHash){o=null;s.message(null)}a.deleted(true)}),h.delay(function(){h.each(q,function(a){s.messageList.remove(a)})},400),e||(f.data().messageListIsNotCompleted(!0),f.cache().setFolderHash(a,""),c.isNormal(d)&&f.cache().setFolderHash(d||"","")))};z.prototype.removeCheckedOrSelectedMessagesFromList=function(a){this.removeMessagesFromList(f.data().currentFolderFullNameRaw(),h.map(f.data().messageListCheckedOrSelected(),
|
||||
function(a){return a.uid}),a)};z.prototype.moveOrDeleteResponse=function(a,b){g.StorageResultType.Success===a&&f.data().currentFolder()&&(b&&c.isArray(b.Result)&&2===b.Result.length?f.cache().setFolderHash(b.Result[0],b.Result[1]):(b&&g.Notification.CantMoveMessage===b.ErrorCode&&j.alert(c.getNotification(g.Notification.CantMoveMessage)),f.cache().setFolderHash(f.data().currentFolderFullNameRaw(),"")),f.reloadMessageList(),f.quotaDebounce())};z.prototype.moveMessagesToFolder=function(a,b,d){if(a!==
|
||||
d&&c.isArray(b)&&0<b.length){var e=f.cache().getFolderFromCacheList(a),g=f.cache().getFolderFromCacheList(d);if(e&&g)return f.remote().messagesMove(h.bind(this.moveOrDeleteResponse,this),e.fullNameRaw,g.fullNameRaw,b),g.actionBlink(!0),this.removeMessagesFromList(a,b,d),!0}return!1};z.prototype.moveSelectedMessagesToFolder=function(a){return this.canBeMoved()?this.moveMessagesToFolder(f.data().currentFolderFullNameRaw(),f.data().messageListCheckedOrSelectedUidsWithSubMails(),a):!1};z.prototype.deleteSelectedMessageFromCurrentFolder=
|
||||
function(a,b){if(this.canBeMoved()){var b=c.isUnd(b)?!0:!!b,d=f.cache().getFolderFromCacheList(g.FolderType.Spam===a?f.data().spamFolder():f.data().trashFolder());!d&&b?r.showScreenPopup(X,[g.FolderType.Spam===a?g.SetSystemFoldersNotification.Spam:g.SetSystemFoldersNotification.Trash]):!b||d&&(t.Values.UnuseOptionValue===d.fullNameRaw||f.data().currentFolderFullNameRaw()===d.fullNameRaw)?(f.remote().messagesDelete(h.bind(this.moveOrDeleteResponse,this),f.data().currentFolderFullNameRaw(),f.data().messageListCheckedOrSelectedUidsWithSubMails()),
|
||||
this.removeCheckedOrSelectedMessagesFromList()):d&&(f.remote().messagesMove(h.bind(this.moveOrDeleteResponse,this),f.data().currentFolderFullNameRaw(),d.fullNameRaw,f.data().messageListCheckedOrSelectedUidsWithSubMails()),d.actionBlink(!0),this.removeCheckedOrSelectedMessagesFromList(d.fullNameRaw))}};z.prototype.dragAndDronHelper=function(a){a&&a.checked(!0);a=c.draggeblePlace();a.data("rl-folder",f.data().currentFolderFullNameRaw());a.data("rl-uids",f.data().messageListCheckedOrSelectedUidsWithSubMails());
|
||||
a.find(".text").text(f.data().messageListCheckedOrSelectedUidsWithSubMails().length);return a};z.prototype.onMessageResponse=function(a,b,d){var e=f.data();e.messageLoading(!1);g.StorageResultType.Success===a&&b&&b.Result?e.setMessage(b,d):g.StorageResultType.Abort!==a&&(e.message(null),e.messageError(b&&b.ErrorCode?c.getNotification(b.ErrorCode):c.getNotification(g.Notification.UnknownError)))};z.prototype.populateMessageBody=function(a){a&&(f.remote().message(this.onMessageResponse,a.folderFullNameRaw,
|
||||
a.uid)?f.data().messageLoading(!0):c.log("Error: Unknown message request: "+a.folderFullNameRaw+" ~ "+a.uid+" [e-101]"))};z.prototype.setAction=function(a,b,d){var e=[],i=null,s=f.cache(),j=0;c.isUnd(d)&&(d=f.data().messageListChecked());e=h.map(d,function(a){return a.uid});if(""!==a&&0<e.length){switch(b){case g.MessageSetAction.SetSeen:h.each(d,function(a){a.unseen()&&j++;a.unseen(!1);s.storeMessageFlagsToCache(a)});(i=s.getFolderFromCacheList(a))&&i.messageCountUnread(i.messageCountUnread()-j);
|
||||
f.remote().messageSetSeen(c.emptyFunction,a,e,!0);break;case g.MessageSetAction.UnsetSeen:h.each(d,function(a){a.unseen()&&j++;a.unseen(!0);s.storeMessageFlagsToCache(a)});(i=s.getFolderFromCacheList(a))&&i.messageCountUnread(i.messageCountUnread()-j+e.length);f.remote().messageSetSeen(c.emptyFunction,a,e,!1);break;case g.MessageSetAction.SetFlag:h.each(d,function(a){a.flagged(!0);s.storeMessageFlagsToCache(a)});f.remote().messageSetFlagged(c.emptyFunction,a,e,!0);break;case g.MessageSetAction.UnsetFlag:h.each(d,
|
||||
function(a){a.flagged(!1);s.storeMessageFlagsToCache(a)}),f.remote().messageSetFlagged(c.emptyFunction,a,e,!1)}f.reloadFlagsCurrentMessageListAndMessageFromCache()}};z.prototype.setActionForAll=function(a,b){var d=null,e=f.data().messageList(),i=f.cache();if(""!==a&&(d=i.getFolderFromCacheList(a))){switch(b){case g.MessageSetAction.SetSeen:if(d=i.getFolderFromCacheList(a))h.each(e,function(a){a.unseen(!1)}),d.messageCountUnread(0),i.clearMessageFlagsFromCacheByFolder(a);f.remote().messageSetSeenToAll(c.emptyFunction,
|
||||
a,!0);break;case g.MessageSetAction.UnsetSeen:if(d=i.getFolderFromCacheList(a))h.each(e,function(a){a.unseen(!0)}),d.messageCountUnread(d.messageCountAll()),i.clearMessageFlagsFromCacheByFolder(a);f.remote().messageSetSeenToAll(c.emptyFunction,a,!1)}f.reloadFlagsCurrentMessageListAndMessageFromCache()}};z.prototype.listSetSeen=function(){this.setAction(f.data().currentFolderFullNameRaw(),g.MessageSetAction.SetSeen,f.data().messageListCheckedOrSelected())};z.prototype.listSetAllSeen=function(){this.setActionForAll(f.data().currentFolderFullNameRaw(),
|
||||
g.MessageSetAction.SetSeen)};z.prototype.listUnsetSeen=function(){this.setAction(f.data().currentFolderFullNameRaw(),g.MessageSetAction.UnsetSeen,f.data().messageListCheckedOrSelected())};z.prototype.listSetFlags=function(){this.setAction(f.data().currentFolderFullNameRaw(),g.MessageSetAction.SetFlag,f.data().messageListCheckedOrSelected())};z.prototype.listUnsetFlags=function(){this.setAction(f.data().currentFolderFullNameRaw(),g.MessageSetAction.UnsetFlag,f.data().messageListCheckedOrSelected())};
|
||||
z.prototype.onBuild=function(a){var b=this,d=f.data();this.oContentVisible=i(".b-content",a);this.oContentScrollable=i(".content",this.oContentVisible);this.oContentVisible.on("click",".fullThreadHandle",function(){var a=[],b=e.dataFor(this);b&&!b.lastInCollapsedThreadLoading()&&(f.data().messageListThreadFolder(b.folderFullNameRaw),a=f.data().messageListThreadUids(),b.lastInCollapsedThread()?a.push(0<b.parentUid()?b.parentUid():b.uid):a=h.without(a,0<b.parentUid()?b.parentUid():b.uid),f.data().messageListThreadUids(h.uniq(a)),
|
||||
b.lastInCollapsedThreadLoading(!0),b.lastInCollapsedThread(!b.lastInCollapsedThread()),f.reloadMessageList());return!1});this.selector.init(this.oContentVisible,this.oContentScrollable);Ca.on("keydown",function(a){var e=!0,h=a?a.keyCode:0;if(a&&b.viewModelVisibility()&&d.useKeyboardShortcuts()&&!f.popupVisibility()&&!d.messageFullScreenMode()&&!c.inFocus()&&(d.usePreviewPane()||!d.message()&&(g.EventKeyCode.Delete===h||g.EventKeyCode.A===h))&&a.ctrlKey&&g.EventKeyCode.A===h)b.checkAll(!(b.checkAll()&&
|
||||
!b.isIncompleteChecked())),e=!1;return e});a.on("click",".pagenator .page",function(){var a=e.dataFor(this);a&&r.setHash(f.link().mailBox(d.currentFolderFullNameHash(),a.value,d.messageListSearch()))}).on("click",".messageList .checkboxCkeckAll",function(){b.checkAll(!b.checkAll())}).on("click",".messageList .messageListItem .flagParent",function(){var a=e.dataFor(this),f=d.messageListCheckedOrSelected(),i=[];a&&(0<f.length&&(i=h.map(f,function(a){return a.uid})),0<i.length&&-1<c.inArray(a.uid,i)?
|
||||
b.setAction(a.folderFullNameRaw,a.flagged()?g.MessageSetAction.UnsetFlag:g.MessageSetAction.SetFlag,f):b.setAction(a.folderFullNameRaw,a.flagged()?g.MessageSetAction.UnsetFlag:g.MessageSetAction.SetFlag,[a]))});e.computed(function(){var a=f.data(),b=this.viewModelVisibility(),d=f.popupVisibility(),c=a.useKeyboardShortcuts(),a=a.messageFullScreenMode();this.selector.useKeyboard(b&&c&&!a&&!d)},this);this.initUploaderForAppend()};z.prototype.composeClick=function(){r.showScreenPopup(y)};z.prototype.advancedSearchClick=
|
||||
function(){r.showScreenPopup(ca)};z.prototype.quotaTooltip=function(){return c.i18n("MESSAGE_LIST/QUOTA_SIZE",{SIZE:c.friendlySize(this.userUsageSize()),PROC:this.userUsageProc(),LIMIT:c.friendlySize(this.userQuota())})};z.prototype.initUploaderForAppend=function(){return!f.settingsGet("AllowAppendMessage")||!this.dragOverArea()?!1:!!new ra({action:f.link().append(),name:"AppendFile",queueSize:1,multipleSizeLimit:1,disableFolderDragAndDrop:!0,hidden:{Folder:function(){return f.data().currentFolderFullNameRaw()}},
|
||||
dragAndDropElement:this.dragOverArea(),dragAndDropBodyElement:this.dragOverBodyArea(),onDragEnter:h.bind(function(){this.dragOverEnter(true)},this),onDragLeave:h.bind(function(){this.dragOverEnter(false)},this),onBodyDragEnter:h.bind(function(){this.dragOver(true)},this),onBodyDragLeave:h.bind(function(){this.dragOver(false)},this),onSelect:h.bind(function(a,b){if(a&&b&&"message/rfc822"===b.Type){f.data().messageListLoading(true);return true}return false}),onComplete:h.bind(function(){f.reloadMessageList(true,
|
||||
true)},this)})};c.extendAsViewModel("MailBoxMessageViewViewModel",H);H.prototype.scrollToTop=function(){var a=i(".messageItem.nano .content",this.viewModelDom);a&&a[0]?a.scrollTop(0):i(".messageItem",this.viewModelDom).scrollTop(0);c.windowResize()};H.prototype.fullScreen=function(){this.fullScreenMode(!0);c.windowResize()};H.prototype.unFullScreen=function(){this.fullScreenMode(!1);c.windowResize()};H.prototype.toggleFullScreen=function(){c.removeSelection();this.fullScreenMode(!this.fullScreenMode());
|
||||
c.windowResize()};H.prototype.replyOrforward=function(a){r.showScreenPopup(y,[a,f.data().message()])};H.prototype.onBuild=function(a){var b=this,d=f.data();Ca.on("keydown",function(a){var f=!0,a=a?a.keyCode:0;if(0<a&&(g.EventKeyCode.Backspace===a||g.EventKeyCode.Esc===a)&&b.viewModelVisibility()&&d.useKeyboardShortcuts()&&!c.inFocus()&&d.message())b.fullScreenMode(!1),d.usePreviewPane()||d.message(null),f=!1;return f});i(".attachmentsPlace",a).magnificPopup({delegate:".magnificPopupImage:visible",
|
||||
type:"image",preload:[1,1],gallery:{enabled:!0},callbacks:{open:function(){d.useKeyboardShortcuts(!1)},close:function(){d.useKeyboardShortcuts(!0)}},mainClass:"mfp-fade",removalDelay:300});a.on("click",".attachmentsPlace .attachmentPreview",function(a){a&&a.stopPropagation&&a.stopPropagation()}).on("click",".attachmentsPlace .attachmentItem",function(){var a=e.dataFor(this);a&&a.download&&f.download(a.linkDownload())});this.oMessageScrollerDom=(this.oMessageScrollerDom=a.find(".messageItem .content"))&&
|
||||
this.oMessageScrollerDom[0]?this.oMessageScrollerDom:null};H.prototype.isDraftFolder=function(){return f.data().message()&&f.data().draftFolder()===f.data().message().folderFullNameRaw};H.prototype.isSentFolder=function(){return f.data().message()&&f.data().sentFolder()===f.data().message().folderFullNameRaw};H.prototype.isDraftOrSentFolder=function(){return this.isDraftFolder()||this.isSentFolder()};H.prototype.composeClick=function(){r.showScreenPopup(y)};H.prototype.editMessage=function(){f.data().message()&&
|
||||
r.showScreenPopup(y,[g.ComposeType.Draft,f.data().message()])};H.prototype.scrollMessageToTop=function(){this.oMessageScrollerDom&&this.oMessageScrollerDom.scrollTop(0)};H.prototype.showImages=function(a){a&&a.showExternalImages&&a.showExternalImages(!0)};c.extendAsViewModel("SettingsMenuViewModel",xa);xa.prototype.link=function(a){return f.link().settings(a)};xa.prototype.backToMailBoxClick=function(){r.setHash(f.link().inbox())};c.extendAsViewModel("SettingsPaneViewModel",ya);ya.prototype.onShow=
|
||||
function(){f.data().message(null)};ya.prototype.backToMailBoxClick=function(){r.setHash(f.link().inbox())};c.addSettingsViewModel(La,"SettingsGeneral","SETTINGS_LABELS/LABEL_GENERAL_NAME","general",!0);La.prototype.onBuild=function(){var a=this;h.delay(function(){var b=f.data(),d=c.settingsSaveHelperSimpleFunction(a.mppTrigger,a);b.language.subscribe(function(b){a.languageTrigger(g.SaveSettingsStep.Animate);i.ajax({url:f.link().langLink(b),dataType:"script",cache:!0}).done(function(){c.i18nToDoc();
|
||||
a.languageTrigger(g.SaveSettingsStep.TrueResult)}).fail(function(){a.languageTrigger(g.SaveSettingsStep.FalseResult)}).always(function(){h.delay(function(){a.languageTrigger(g.SaveSettingsStep.Idle)},1E3)});f.remote().saveSettings(c.emptyFunction,{Language:b})});b.editorDefaultType.subscribe(function(a){f.remote().saveSettings(c.emptyFunction,{EditorDefaultType:a})});b.messagesPerPage.subscribe(function(a){f.remote().saveSettings(d,{MPP:a})});b.showImages.subscribe(function(a){f.remote().saveSettings(c.emptyFunction,
|
||||
{ShowImages:a?"1":"0"})});b.showAnimation.subscribe(function(a){f.remote().saveSettings(c.emptyFunction,{ShowAnimation:a?"1":"0"})});b.useDesktopNotifications.subscribe(function(a){c.timeOutAction("SaveDesktopNotifications",function(){f.remote().saveSettings(c.emptyFunction,{DesktopNotifications:a?"1":"0"})},3E3)});b.replySameFolder.subscribe(function(a){c.timeOutAction("SaveReplySameFolder",function(){f.remote().saveSettings(c.emptyFunction,{ReplySameFolder:a?"1":"0"})},3E3)});b.useThreads.subscribe(function(a){b.messageList([]);
|
||||
f.remote().saveSettings(c.emptyFunction,{UseThreads:a?"1":"0"})});b.usePreviewPane.subscribe(function(a){b.messageList.valueHasMutated();f.remote().saveSettings(c.emptyFunction,{UsePreviewPane:a?"1":"0"})});b.useCheckboxesInList.subscribe(function(a){f.remote().saveSettings(c.emptyFunction,{UseCheckboxesInList:a?"1":"0"})})},50)};La.prototype.onShow=function(){f.data().desktopNotifications.valueHasMutated()};c.addSettingsViewModel(Xa,"SettingsPersonal","SETTINGS_LABELS/LABEL_PERSONAL_NAME","personal");
|
||||
Xa.prototype.onBuild=function(){var a=this;h.delay(function(){var b=f.data(),d=c.settingsSaveHelperSimpleFunction(a.nameTrigger,a),e=c.settingsSaveHelperSimpleFunction(a.replyTrigger,a),g=c.settingsSaveHelperSimpleFunction(a.signatureTrigger,a);b.displayName.subscribe(function(a){f.remote().saveSettings(d,{DisplayName:a})});b.replyTo.subscribe(function(a){f.remote().saveSettings(e,{ReplyTo:a})});b.signature.subscribe(function(a){f.remote().saveSettings(g,{Signature:a})})},50)};c.addSettingsViewModel(la,
|
||||
"SettingsAccounts","SETTINGS_LABELS/LABEL_ACCOUNTS_NAME","accounts");la.prototype.addNewAccount=function(){r.showScreenPopup(da)};la.prototype.deleteAccount=function(a){if(a&&a.deleteAccess()){this.accountForDeletion(null);var b=function(b){return a===b};a&&(f.data().accounts.remove(b),f.remote().accountDelete(function(){f.accounts()},a.email))}};c.addSettingsViewModel(Ma,"SettingsSocial","SETTINGS_LABELS/LABEL_SOCIAL_NAME","social");c.addSettingsViewModel(ma,"SettingsChangePassword","SETTINGS_LABELS/LABEL_CHANGE_PASSWORD_NAME",
|
||||
"change-password");ma.prototype.onHide=function(){this.changeProcess(!1);this.currentPassword("");this.newPassword("")};ma.prototype.onChangePasswordResponse=function(a,b){this.changeProcess(!1);g.StorageResultType.Success===a&&b&&b.Result?(this.currentPassword(""),this.newPassword(""),this.passwordUpdateSuccess(!0)):this.passwordUpdateError(!0)};c.addSettingsViewModel(S,"SettingsFolders","SETTINGS_LABELS/LABEL_FOLDERS_NAME","folders");S.prototype.folderEditOnEnter=function(a){var b=a?c.trim(a.nameForEdit()):
|
||||
"";""!==b&&a.name()!==b&&(f.local().set(g.ClientSideKeyName.FoldersLashHash,""),f.data().foldersRenaming(!0),f.remote().folderRename(function(a,b){f.data().foldersRenaming(!1);if(g.StorageResultType.Success!==a||!b||!b.Result)f.data().foldersListError(b&&b.ErrorCode?c.getNotification(b.ErrorCode):c.i18n("NOTIFICATIONS/CANT_RENAME_FOLDER"));f.folders(!1)},a.fullNameRaw,b),f.cache().removeFolderFromCacheList(a.fullNameRaw),a.name(b));a.edited(!1)};S.prototype.folderEditOnEsc=function(a){a&&a.edited(!1)};
|
||||
S.prototype.onShow=function(){f.data().foldersListError("")};S.prototype.createFolder=function(){r.showScreenPopup(ba)};S.prototype.systemFolder=function(){r.showScreenPopup(X)};S.prototype.deleteFolder=function(a){if(a&&a.canBeDeleted()&&a.deleteAccess()&&0===a.privateMessageCountAll()){this.folderForDeletion(null);var b=function(d){if(a===d)return!0;d.subFolders.remove(b);return!1};a&&(f.local().set(g.ClientSideKeyName.FoldersLashHash,""),f.data().folderList.remove(b),f.data().foldersDeleting(!0),
|
||||
f.remote().folderDelete(function(a,b){f.data().foldersDeleting(!1);if(g.StorageResultType.Success!==a||!b||!b.Result)f.data().foldersListError(b&&b.ErrorCode?c.getNotification(b.ErrorCode):c.i18n("NOTIFICATIONS/CANT_DELETE_FOLDER"));f.folders(!1)},a.fullNameRaw),f.cache().removeFolderFromCacheList(a.fullNameRaw))}else 0<a.privateMessageCountAll()&&f.data().foldersListError(c.getNotification(g.Notification.CantDeleteNonEmptyFolder))};S.prototype.subscribeFolder=function(a){f.local().set(g.ClientSideKeyName.FoldersLashHash,
|
||||
"");f.remote().folderSetSubscribe(c.emptyFunction,a.fullNameRaw,!0);a.subScribed(!0)};S.prototype.unSubscribeFolder=function(a){f.local().set(g.ClientSideKeyName.FoldersLashHash,"");f.remote().folderSetSubscribe(c.emptyFunction,a.fullNameRaw,!1);a.subScribed(!1)};c.addSettingsViewModel(za,"SettingsThemes","SETTINGS_LABELS/LABEL_THEMES_NAME","themes");za.prototype.removeCustomThemeImg=function(){this.customThemeImg("")};za.prototype.onBuild=function(){var a=this,b=f.data().theme();this.themesObjects(h.map(f.data().themes(),
|
||||
function(a){return{name:a,nameDisplay:c.convertThemeName(a),selected:e.observable(a===b),themePreviewSrc:f.link().themePreviewLink(a)}}));h.delay(function(){a.customThemeType.subscribe(function(a){f.remote().saveSettings(function(){f.data().theme.valueHasMutated()},{CustomThemeType:a})});a.customThemeImg.subscribe(function(a){f.remote().saveSettings(function(){f.data().theme.valueHasMutated()},{CustomThemeImg:a})})},50);this.initCustomThemeUploader()};za.prototype.initCustomThemeUploader=function(){return this.customThemeUploaderButton()?
|
||||
!!new ra({action:f.link().uploadBackground(),name:"uploader",queueSize:1,multipleSizeLimit:1,disableFolderDragAndDrop:!0,clickElement:this.customThemeUploaderButton(),onSelect:h.bind(function(a,b){var d=c.isUnd(b.FileName)?"":b.FileName.toString(),d=d.substring(d.length-4,d.length),f=c.isNormal(b.Size)?c.pInt(b.Size):null;return-1===c.inArray(d,["jpeg",".jpg",".png"])?(j.alert(c.i18n("SETTINGS_THEMES/ERROR_FILE_TYPE_ERROR")),!1):1048576<f?(j.alert(c.i18n("SETTINGS_THEMES/ERROR_FILE_IS_TOO_BIG")),
|
||||
!1):!0},this),onStart:h.bind(function(){this.customThemeUploaderProgress(!0)},this),onComplete:h.bind(function(a,b,d){!b||!d||!d.Result?j.alert(d&&d.ErrorCode?c.getUploadErrorDescByCode(d.ErrorCode):c.getUploadErrorDescByCode(g.UploadErrorCode.Unknown)):this.customThemeImg(d.Result);this.customThemeUploaderProgress(!1)},this)}):!1};Na.prototype.populateDataOnStart=function(){var a=f.settingsGet("Languages"),b=f.settingsGet("Themes");c.isArray(a)&&this.languages(a);c.isArray(b)&&this.themes(b);this.mainLanguage(f.settingsGet("Language"));
|
||||
this.mainTheme(f.settingsGet("Theme"));this.allowCustomTheme(!!f.settingsGet("AllowCustomTheme"));this.allowAdditionalAccounts(!!f.settingsGet("AllowAdditionalAccounts"));this.ignoreFolderSubscribe(!!f.settingsGet("IgnoreFolderSubscribe"));this.editorDefaultType(f.settingsGet("EditorDefaultType"));this.showImages(!!f.settingsGet("ShowImages"));this.showAnimation(!!f.settingsGet("ShowAnimation"));this.mainMessagesPerPage(f.settingsGet("MPP"));this.desktopNotifications(!!f.settingsGet("DesktopNotifications"));
|
||||
this.useThreads(!!f.settingsGet("UseThreads"));this.replySameFolder(!!f.settingsGet("ReplySameFolder"));this.usePreviewPane(!!f.settingsGet("UsePreviewPane"));this.useCheckboxesInList(!!f.settingsGet("UseCheckboxesInList"));this.facebookEnable(!!f.settingsGet("AllowFacebookSocial"));this.facebookAppID(f.settingsGet("FacebookAppID"));this.facebookAppSecret(f.settingsGet("FacebookAppSecret"));this.twitterEnable(!!f.settingsGet("AllowTwitterSocial"));this.twitterConsumerKey(f.settingsGet("TwitterConsumerKey"));
|
||||
this.twitterConsumerSecret(f.settingsGet("TwitterConsumerSecret"));this.googleEnable(!!f.settingsGet("AllowGoogleSocial"));this.googleClientID(f.settingsGet("GoogleClientID"));this.googleClientSecret(f.settingsGet("GoogleClientSecret"));this.dropboxEnable(!!f.settingsGet("AllowDropboxSocial"));this.dropboxApiKey(f.settingsGet("DropboxApiKey"));this.contactsIsSupported(!!f.settingsGet("ContactsIsSupported"))};h.extend(T.prototype,Na.prototype);T.prototype.populateDataOnStart=function(){Na.prototype.populateDataOnStart.call(this);
|
||||
this.accountEmail(f.settingsGet("Email"));this.accountLogin(f.settingsGet("Login"));this.projectHash(f.settingsGet("ProjectHash"));this.displayName(f.settingsGet("DisplayName"));this.replyTo(f.settingsGet("ReplyTo"));this.signature(f.settingsGet("Signature"));this.lastFoldersHash=f.local().get(g.ClientSideKeyName.FoldersLashHash);this.remoteSuggestions=!!f.settingsGet("RemoteSuggestions");this.remoteChangePassword=!!f.settingsGet("RemoteChangePassword");this.threading=!!f.settingsGet("UseImapThread");
|
||||
this.devEmail=f.settingsGet("DevEmail");this.devLogin=f.settingsGet("DevLogin");this.devPassword=f.settingsGet("DevPassword")};T.prototype.initUidNextAndNewMessages=function(a,b,d){if("INBOX"===a&&c.isNormal(b)&&""!==b){if(c.isArray(d)&&0<d.length){var e=f.cache(),g=0,i=d.length,w=function(a,b,d){var c=null;if(ia&&f.data().useDesktopNotifications()&&(c=new ia(b,{body:d,icon:a})))c.show&&c.show(),j.setTimeout(function(a){return function(){a.cancel?a.cancel():a.close&&a.close()}}(c),7E3)};h.each(d,
|
||||
function(b){e.addNewMessageCache(a,b.Uid)});if(3<i)w(f.link().notificationMailIcon(),f.data().accountEmail(),c.i18n("MESSAGE_LIST/NEW_MESSAGE_NOTIFICATION",{COUNT:i}));else for(;g<i;g++)w(f.link().notificationMailIcon(),m.emailsToLine(m.initEmailsFromJson(d[g].From),!1),d[g].Subject)}f.cache().setFolderUidNext(a,b)}};T.prototype.folderResponseParseRec=function(a,b,d){for(var e=0,g=0,h=null,i=null,j="",h=[],m=[],d=!!d,e=0,g=b.length;e<g;e++)if(h=b[e]){j=h.FullNameRaw;i=f.cache().getFolderFromCacheList(j);
|
||||
if(!i&&(i=G.newInstanceFromJson(h)))if(f.cache().setFolderToCacheList(j,i),f.cache().setFolderFullNameRaw(i.fullNameHash,j),i.isGmailFolder=t.Values.GmailFolderName.toLowerCase()===j.toLowerCase(),""!==a&&a===i.fullNameRaw+i.delimiter&&(i.isNamespaceFolder=!0),i.isNamespaceFolder||i.isGmailFolder)i.isUnpaddigFolder=!0;i&&(i.collapsed(!c.isFolderExpanded(i.fullNameHash)),!d&&h.Extended&&(h.Extended.Hash&&f.cache().setFolderHash(i.fullNameRaw,h.Extended.Hash),c.isNormal(h.Extended.MessageCount)&&i.messageCountAll(h.Extended.MessageCount),
|
||||
c.isNormal(h.Extended.MessageUnseenCount)&&i.messageCountUnread(h.Extended.MessageUnseenCount)),(h=h.SubFolders)&&("Collection/FolderCollection"===h["@Object"]&&h["@Collection"]&&c.isArray(h["@Collection"]))&&i.subFolders(this.folderResponseParseRec(a,h["@Collection"],d)),m.push(i))}return m};T.prototype.setFolders=function(a,b){var d=[],e=f.data(),h=0===e.folderList().length,i=function(a){return""===a||t.Values.UnuseOptionValue===a||null!==f.cache().getFolderFromCacheList(a)?a:""};a&&(a.Result&&
|
||||
"Collection/FolderCollection"===a.Result["@Object"]&&a.Result["@Collection"]&&c.isArray(a.Result["@Collection"]))&&(c.isUnd(a.Result.Namespace)||(e.namespace=a.Result.Namespace),d=this.folderResponseParseRec(e.namespace,a.Result["@Collection"],!!b),e.folderList(d),e.sentFolder(i(f.settingsGet("SentFolder"))),e.draftFolder(i(f.settingsGet("DraftFolder"))),e.spamFolder(i(f.settingsGet("SpamFolder"))),e.trashFolder(i(f.settingsGet("TrashFolder"))),b||f.local().set(g.ClientSideKeyName.FoldersLashHash,
|
||||
a.Result.FoldersHash),h&&b&&f.folders(!1))};T.prototype.hideMessageBodies=function(){var a=this.messagesBodiesDom();a&&a.find(".b-text-part").hide()};T.prototype.setMessage=function(a,b){var d=!1,e=!1,g=!1,h=null,e=null,d="",j=this.messagesBodiesDom(),k=this.message();if(a&&k&&a.Result&&"Object/Message"===a.Result["@Object"]&&k.folderFullNameRaw===a.Result.Folder&&k.uid===a.Result.Uid){this.messageError("");k.initUpdateByMessageJson(a.Result);f.cache().addRequestedMessage(k.folderFullNameRaw,k.uid);
|
||||
b||k.initFlagsByJson(a.Result);if(j=j&&j[0]?j:null)d="rl-"+k.requestHash.replace(/[^a-zA-Z0-9]/g,""),e=j.find("#"+d),!e||!e[0]?(e=!!a.Result.HasExternals,g=!!a.Result.HasInternals,h=i('<div id="'+d+'" />').hide(),c.isNormal(a.Result.Html)&&""!==a.Result.Html?(d=!0,h.html(a.Result.Html.toString()).addClass("b-text-part html")):c.isNormal(a.Result.Plain)&&""!==a.Result.Plain?(d=!1,h.html(a.Result.Plain.toString()).addClass("b-text-part plain")):d=!1,j.append(h),h.data("rl-is-html",d),h.data("rl-has-images",
|
||||
e),k.isHtml(h.data("rl-is-html")),k.hasImages(h.data("rl-has-images")),k.body=h,g&&k.showInternalImages(!0),k.hasImages()&&this.showImages()&&k.showExternalImages(!0)):(k.isHtml(e.data("rl-is-html")),k.hasImages(e.data("rl-has-images")),k.body=e),this.messageActiveDom(k.body),this.hideMessageBodies(),k.body.show(),h&&c.initBlockquoteSwitcher(h);f.cache().initMessageFlagsFromCache(k);k.unseen()&&f.setMessageSeen(k);c.windowResize()}};T.prototype.setMessageList=function(a,b){if(a&&a.Result&&"Collection/MessageCollection"===
|
||||
a.Result["@Object"]&&a.Result["@Collection"]&&c.isArray(a.Result["@Collection"])){var d=f.data(),e=f.cache(),h=null,i=0,j=0,k=0,r=0,o=[],q=d.staticMessageList,t=null,p=null,n=null,u=0,v=!1,k=c.pInt(a.Result.MessageResultCount),r=c.pInt(a.Result.Offset);c.isNonEmptyArray(a.Result.LastCollapsedThreadUids)&&(h=a.Result.LastCollapsedThreadUids);if((n=f.cache().getFolderFromCacheList(c.isNormal(a.Result.Folder)?a.Result.Folder:""))&&!b)f.cache().setFolderHash(a.Result.Folder,a.Result.FolderHash),c.isNormal(a.Result.MessageCount)&&
|
||||
n.messageCountAll(a.Result.MessageCount),c.isNormal(a.Result.MessageUnseenCount)&&(c.pInt(n.messageCountUnread())!==c.pInt(a.Result.MessageUnseenCount)&&(v=!0),n.messageCountUnread(a.Result.MessageUnseenCount)),this.initUidNextAndNewMessages(n.fullNameRaw,a.Result.UidNext,a.Result.NewMessages);v&&n&&f.cache().clearMessageFlagsFromCacheByFolder(n.fullNameRaw);i=0;for(j=a.Result["@Collection"].length;i<j;i++)if((t=a.Result["@Collection"][i])&&"Object/Message"===t["@Object"]){p=q[i];if(!p||!p.initByJson(t))p=
|
||||
m.newInstanceFromJson(t);p&&(e.hasNewMessageAndRemoveFromCache(p.folderFullNameRaw,p.uid)&&5>=u&&(u++,p.newForAnimation(!0)),p.deleted(!1),b?f.cache().initMessageFlagsFromCache(p):f.cache().storeMessageFlagsToCache(p),p.lastInCollapsedThread(h&&-1<c.inArray(c.pInt(p.uid),h)?!0:!1),o.push(p))}d.messageListCount(k);d.messageListSearch(c.isNormal(a.Result.Search)?a.Result.Search:"");d.messageListEndSearch(c.isNormal(a.Result.Search)?a.Result.Search:"");d.messageListEndFolder(c.isNormal(a.Result.Folder)?
|
||||
a.Result.Folder:"");d.messageListPage(Math.ceil(r/d.messagesPerPage()+1));d.messageList(o);d.messageListIsNotCompleted(!1);(p=d.message())&&d.messageList.setSelectedByUid&&d.messageList.setSelectedByUid(p.generateUid());q.length<o.length&&(d.staticMessageList=o);e.clearNewMessageCache();n&&(b||v||f.data().useThreads())&&f.folderInformation(n.fullNameRaw,o)}else f.data().messageListCount(0),f.data().messageList([]),f.data().messageListError(c.getNotification(a&&a.ErrorCode?a.ErrorCode:g.Notification.CantGetMessageList))};
|
||||
aa.prototype.oRequests={};aa.prototype.defaultResponse=function(a,b,d,c,e,h){switch(d){case "success":d=g.StorageResultType.Success;break;case "abort":d=g.StorageResultType.Abort;break;default:d=g.StorageResultType.Error}g.StorageResultType.Success===d&&(c&&!c.Result&&c.Logout)&&(j.__rlah_clear&&j.__rlah_clear(),f.loginAndLogoutReload(!0));a&&(x.runHook("ajax-default-response",[b,g.StorageResultType.Success===d?c:null,d,e,h]),a(d,g.StorageResultType.Success===d?c:null,e,b,h))};aa.prototype.ajaxRequest=
|
||||
function(a,b,d,e,g){var s=this,w=""===e,k=(new j.Date).getTime(),m=null,o="",b=b||{},d=c.isNormal(d)?d:2E4,e=c.isUnd(e)?"":c.pString(e),g=c.isArray(g)?g:[];(o=b.Action||"")&&0<g.length&&h.each(g,function(a){s.oRequests[a]&&(s.oRequests[a].__aborted=!0,s.oRequests[a].abort&&s.oRequests[a].abort(),s.oRequests[a]=null)});w&&(b.XToken=f.settingsGet("Token"));m=i.ajax({type:w?"POST":"GET",url:f.link().ajax(e),async:!0,dataType:"json",data:w?b:{},headers:{},timeout:d,global:!0});m.always(function(d,f){var e=
|
||||
!1;d&&d.Time&&(e=c.pInt(d.Time)>(new j.Date).getTime()-k);o&&s.oRequests[o]&&(s.oRequests[o].__aborted&&(f="abort"),s.oRequests[o]=null);s.defaultResponse(a,o,f,d,e,b)});o&&(0<g.length&&-1<c.inArray(o,g))&&(this.oRequests[o]&&(this.oRequests[o].__aborted=!0,this.oRequests[o].abort&&this.oRequests[o].abort(),this.oRequests[o]=null),this.oRequests[o]=m);return m};aa.prototype.defaultRequest=function(a,b,d,f,e,g){d=d||{};d.Action=b;e=c.pString(e);x.runHook("ajax-default-request",[b,d,e]);this.ajaxRequest(a,
|
||||
d,c.isUnd(f)?t.Defaults.DefaultAjaxTimeout:c.pInt(f),e,g)};aa.prototype.noop=function(a){this.defaultRequest(a,"Noop")};aa.prototype.jsError=function(a,b,d,c){this.defaultRequest(a,"JsError",{Message:b,FileName:d,LineNo:c})};h.extend(p.prototype,aa.prototype);p.prototype.folders=function(a,b){var d=f.data().lastFoldersHash;(b=c.isUnd(b)?!1:!!b)&&""!==d?this.defaultRequest(a,"Folders",{},null,"Folders/"+f.data().projectHash()+"-"+d,["Folders"]):this.defaultRequest(a,"Folders",{},null,"",["Folders"])};
|
||||
p.prototype.login=function(a,b,d,c,f){this.defaultRequest(a,"Login",{Email:b,Login:d,Password:c,SignMe:f?"1":"0"})};p.prototype.accountAdd=function(a,b,d,c){this.defaultRequest(a,"AccountAdd",{Email:b,Login:d,Password:c})};p.prototype.accountDelete=function(a,b){this.defaultRequest(a,"AccountDelete",{EmailToDelete:b})};p.prototype.accounts=function(a){this.defaultRequest(a,"Accounts")};p.prototype.messageList=function(a,b,d,e,g,h){var b=c.pString(b),i=f.data(),j=f.cache().getFolderHash(b),h=c.isUnd(h)?
|
||||
!1:!!h,d=c.isUnd(d)?0:c.pInt(d),e=c.isUnd(d)?20:c.pInt(e),g=c.pString(g);""!==j?this.defaultRequest(a,"MessageList",{},""===g?t.Defaults.DefaultAjaxTimeout:t.Defaults.SearchAjaxTimeout,"MessageList/"+ga.urlsafe_encode([b,d,e,g,i.projectHash(),j,"INBOX"===b?f.cache().getFolderUidNext(b):"",i.threading&&i.useThreads()?"1":"0",i.threading&&b===i.messageListThreadFolder()?i.messageListThreadUids().join(","):""].join(String.fromCharCode(0))),h?[]:["MessageList"]):this.defaultRequest(a,"MessageList",{Folder:b,
|
||||
Offset:d,Limit:e,Search:g,UidNext:"INBOX"===b?f.cache().getFolderUidNext(b):"",UseThreads:f.data().threading&&f.data().useThreads()?"1":"0",ExpandedThreadUid:i.threading&&b===i.messageListThreadFolder()?i.messageListThreadUids().join(","):""},""===g?t.Defaults.DefaultAjaxTimeout:t.Defaults.SearchAjaxTimeout,"",h?[]:["MessageList"])};p.prototype.messageUploadAttachments=function(a,b){this.defaultRequest(a,"MessageUploadAttachments",{Attachments:b},999E3)};p.prototype.message=function(a,b,d){b=c.pString(b);
|
||||
d=c.pInt(d);return f.cache().getFolderFromCacheList(b)&&0<d?(this.defaultRequest(a,"Message",{},null,"Message/"+ga.urlsafe_encode([b,d,f.data().projectHash(),f.data().threading&&f.data().useThreads()?"1":"0"].join(String.fromCharCode(0))),["Message"]),!0):!1};p.prototype.composeUploadExternals=function(a,b){this.defaultRequest(a,"ComposeUploadExternals",{Externals:b},999E3)};p.prototype.folderInformation=function(a,b,d){var e=!0,g=f.cache(),i=[];c.isArray(d)&&0<d.length&&(e=!1,h.each(d,function(a){g.getMessageFlagsFromCache(a.folderFullNameRaw,
|
||||
a.uid)||i.push(a.uid);0<a.threads().length&&h.each(a.threads(),function(b){g.getMessageFlagsFromCache(a.folderFullNameRaw,b)||i.push(b)})}),0<i.length&&(e=!0));e?this.defaultRequest(a,"FolderInformation",{Folder:b,FlagsUids:c.isArray(i)?i.join(","):"",UidNext:"INBOX"===b?f.cache().getFolderUidNext(b):""}):f.data().useThreads()&&f.reloadFlagsCurrentMessageListAndMessageFromCache()};p.prototype.logout=function(a){this.defaultRequest(a,"Logout")};p.prototype.messageSetFlagged=function(a,b,d,c){this.defaultRequest(a,
|
||||
"MessageSetFlagged",{Folder:b,Uids:d.join(","),SetAction:c?"1":"0"})};p.prototype.messageSetSeen=function(a,b,d,c){this.defaultRequest(a,"MessageSetSeen",{Folder:b,Uids:d.join(","),SetAction:c?"1":"0"})};p.prototype.messageSetSeenToAll=function(a,b,d){this.defaultRequest(a,"MessageSetSeenToAll",{Folder:b,SetAction:d?"1":"0"})};p.prototype.saveMessage=function(a,b,d,c,f,e,g,h,i,j,m,p,n,r){this.defaultRequest(a,"SaveMessage",{MessageFolder:b,MessageUid:d,DraftFolder:c,To:f,Cc:e,Bcc:g,Subject:h,TextIsHtml:i?
|
||||
"1":"0",Text:j,DraftInfo:p,InReplyTo:n,References:r,Attachments:m},t.Defaults.SaveMessageAjaxTimeout)};p.prototype.sendMessage=function(a,b,d,c,f,e,g,h,i,j,m,p,n,r){this.defaultRequest(a,"SendMessage",{MessageFolder:b,MessageUid:d,SentFolder:c,To:f,Cc:e,Bcc:g,Subject:h,TextIsHtml:i?"1":"0",Text:j,DraftInfo:p,InReplyTo:n,References:r,Attachments:m},t.Defaults.SendMessageAjaxTimeout)};p.prototype.saveSystemFolders=function(a,b){this.defaultRequest(a,"SystemFoldersUpdate",b)};p.prototype.saveSettings=
|
||||
function(a,b){this.defaultRequest(a,"SettingsUpdate",b)};p.prototype.changePassword=function(a,b,d){this.defaultRequest(a,"ChangePassword",{PrevPassword:b,NewPassword:d})};p.prototype.folderCreate=function(a,b,d){this.defaultRequest(a,"FolderCreate",{Folder:b,Parent:d},null,"",["Folders"])};p.prototype.folderDelete=function(a,b){this.defaultRequest(a,"FolderDelete",{Folder:b},null,"",["Folders"])};p.prototype.folderRename=function(a,b,d){this.defaultRequest(a,"FolderRename",{Folder:b,NewFolderName:d},
|
||||
null,"",["Folders"])};p.prototype.folderClear=function(a,b){this.defaultRequest(a,"FolderClear",{Folder:b})};p.prototype.folderSetSubscribe=function(a,b,d){this.defaultRequest(a,"FolderSubscribe",{Folder:b,Subscribe:d?"1":"0"})};p.prototype.messagesMove=function(a,b,d,c){this.defaultRequest(a,"MessageMove",{FromFolder:b,ToFolder:d,Uids:c.join(",")},null,"",["MessageList","Message"])};p.prototype.messagesDelete=function(a,b,c){this.defaultRequest(a,"MessageDelete",{Folder:b,Uids:c.join(",")},null,
|
||||
"",["MessageList","Message"])};p.prototype.appDelayStart=function(a){this.defaultRequest(a,"AppDelayStart")};p.prototype.quota=function(a){this.defaultRequest(a,"Quota")};p.prototype.contacts=function(a,b){this.defaultRequest(a,"Contacts",{Search:b},null,"",["Contacts"])};p.prototype.contactSave=function(a,b,d,f,e,g){d=c.trim(d);this.defaultRequest(a,"ContactSave",{RequestUid:b,Uid:d,Name:f,Email:e,ImageData:g})};p.prototype.contactsDelete=function(a,b){this.defaultRequest(a,"ContactsDelete",{Uids:b.join(",")})};
|
||||
p.prototype.suggestions=function(a,b,c){this.defaultRequest(a,"Suggestions",{Query:b,Page:c},null,"",["Suggestions"])};p.prototype.servicesPics=function(a){this.defaultRequest(a,"ServicesPics")};p.prototype.emailsPicsHashes=function(a){this.defaultRequest(a,"EmailsPicsHashes")};p.prototype.facebookUser=function(a){this.defaultRequest(a,"SocialFacebookUserInformation")};p.prototype.facebookDisconnect=function(a){this.defaultRequest(a,"SocialFacebookDisconnect")};p.prototype.twitterUser=function(a){this.defaultRequest(a,
|
||||
"SocialTwitterUserInformation")};p.prototype.twitterDisconnect=function(a){this.defaultRequest(a,"SocialTwitterDisconnect")};p.prototype.googleUser=function(a){this.defaultRequest(a,"SocialGoogleUserInformation")};p.prototype.googleDisconnect=function(a){this.defaultRequest(a,"SocialGoogleDisconnect")};p.prototype.socialUsers=function(a){this.defaultRequest(a,"SocialUsers")};U.prototype.oEmailsPicsHashes={};U.prototype.oServices={};U.prototype.clear=function(){this.oServices={};this.oEmailsPicsHashes=
|
||||
{}};U.prototype.getUserPic=function(a){var b="",b="",b=a.toLowerCase(),d=c.isUnd(this.oEmailsPicsHashes[a])?"":this.oEmailsPicsHashes[a];""===d?(b=b.substr(a.indexOf("@")+1),b=""!==b&&this.oServices[b]?this.oServices[b]:""):b=f.link().getUserPicUrlFromHash(d);return b};U.prototype.setServicesData=function(a){this.oServices=a};U.prototype.setEmailsPicsHashesData=function(a){this.oEmailsPicsHashes=a};h.extend(v.prototype,U.prototype);v.prototype.oFoldersCache={};v.prototype.oFoldersNamesCache={};v.prototype.oFolderHashCache=
|
||||
{};v.prototype.oFolderUidNextCache={};v.prototype.oMessageListHashCache={};v.prototype.oMessageFlagsCache={};v.prototype.oBodies={};v.prototype.oNewMessage={};v.prototype.oRequestedMessage={};v.prototype.clear=function(){U.prototype.clear.call(this);this.oFoldersCache={};this.oFoldersNamesCache={};this.oFolderHashCache={};this.oFolderUidNextCache={};this.oMessageListHashCache={};this.oMessageFlagsCache={};this.oBodies={}};v.prototype.getMessageKey=function(a,b){return a+"#"+b};v.prototype.addRequestedMessage=
|
||||
function(a,b){this.oRequestedMessage[this.getMessageKey(a,b)]=!0};v.prototype.hasRequestedMessage=function(a,b){return!0===this.oRequestedMessage[this.getMessageKey(a,b)]};v.prototype.addNewMessageCache=function(a,b){this.oNewMessage[this.getMessageKey(a,b)]=!0};v.prototype.hasNewMessageAndRemoveFromCache=function(a,b){return this.oNewMessage[this.getMessageKey(a,b)]?(this.oNewMessage[this.getMessageKey(a,b)]=null,!0):!1};v.prototype.clearNewMessageCache=function(){this.oNewMessage={}};v.prototype.getFolderFullNameRaw=
|
||||
function(a){return""!==a&&this.oFoldersNamesCache[a]?this.oFoldersNamesCache[a]:""};v.prototype.setFolderFullNameRaw=function(a,b){this.oFoldersNamesCache[a]=b};v.prototype.getFolderHash=function(a){return""!==a&&this.oFolderHashCache[a]?this.oFolderHashCache[a]:""};v.prototype.setFolderHash=function(a,b){this.oFolderHashCache[a]=b};v.prototype.getFolderUidNext=function(a){return""!==a&&this.oFolderUidNextCache[a]?this.oFolderUidNextCache[a]:""};v.prototype.setFolderUidNext=function(a,b){this.oFolderUidNextCache[a]=
|
||||
b};v.prototype.getFolderFromCacheList=function(a){return""!==a&&this.oFoldersCache[a]?this.oFoldersCache[a]:null};v.prototype.setFolderToCacheList=function(a,b){this.oFoldersCache[a]=b};v.prototype.removeFolderFromCacheList=function(a){this.setFolderToCacheList(a,null)};v.prototype.getMessageFlagsFromCache=function(a,b){return this.oMessageFlagsCache[a]&&this.oMessageFlagsCache[a][b]?this.oMessageFlagsCache[a][b]:null};v.prototype.setMessageFlagsToCache=function(a,b,c){this.oMessageFlagsCache[a]||
|
||||
(this.oMessageFlagsCache[a]={});this.oMessageFlagsCache[a][b]=c};v.prototype.clearMessageFlagsFromCacheByFolder=function(a){this.oMessageFlagsCache[a]={}};v.prototype.initMessageFlagsFromCache=function(a){if(a){var b=this,d=this.getMessageFlagsFromCache(a.folderFullNameRaw,a.uid),f=null,e=null;d&&4===d.length&&(a.unseen(d[0]),a.flagged(d[1]),a.answered(d[2]),a.forwarded(d[3]));0<a.threads().length&&(f=h.find(a.threads(),function(c){return(c=b.getMessageFlagsFromCache(a.folderFullNameRaw,c))&&4===
|
||||
c.length&&!!c[0]}),e=h.find(a.threads(),function(c){return(c=b.getMessageFlagsFromCache(a.folderFullNameRaw,c))&&4===c.length&&!!c[1]}),a.hasUnseenSubMessage(f&&0<c.pInt(f)),a.hasFlaggedSubMessage(e&&0<c.pInt(e)))}};v.prototype.storeMessageFlagsToCache=function(a){a&&this.setMessageFlagsToCache(a.folderFullNameRaw,a.uid,[a.unseen(),a.flagged(),a.answered(),a.forwarded()])};v.prototype.storeMessageFlagsToCacheByFolderAndUid=function(a,b,d){c.isArray(d)&&4===d.length&&this.setMessageFlagsToCache(a,
|
||||
b,d)};h.extend(fa.prototype,J.prototype);fa.prototype.onRoute=function(a){var b=this,d=null,g=null,j=null,s=null;if(g=h.find(Da,function(b){return b&&b.__rlSettingsData&&a===b.__rlSettingsData.Route}))h.find(Qa,function(a){return a&&a===g})&&(g=null),g&&h.find(Ra,function(a){return a&&a===g})&&(g=null);g&&(g.__builded&&g.__vm?d=g.__vm:(j=i("#rl-content #rl-settings-subscreen"))&&1===j.length?(d=new g,s=i("<div></div>").addClass("rl-settings-view-model").hide().attr("data-bind",'template: {name: "'+
|
||||
g.__rlSettingsData.Template+'"}, i18nInit: true'),s.appendTo(j),d.data=f.data(),d.viewModelDom=s,d.__rlSettingsData=g.__rlSettingsData,g.__dom=s,g.__builded=!0,g.__vm=d,e.applyBindings(d,s[0]),r.delegateRun(d,"onBuild",[s])):c.log("Cannot find sub settings view model position: SettingsSubScreen"),d&&h.defer(function(){if(b.oCurrentSubScreen){r.delegateRun(b.oCurrentSubScreen,"onHide");b.oCurrentSubScreen.viewModelDom.hide()}b.oCurrentSubScreen=d;if(b.oCurrentSubScreen){b.oCurrentSubScreen.viewModelDom.show();
|
||||
r.delegateRun(b.oCurrentSubScreen,"onShow");h.each(b.menu(),function(a){a.selected(d&&d.__rlSettingsData&&a.route===d.__rlSettingsData.Route)})}c.windowResize()}))};fa.prototype.onBuild=function(){h.each(Da,function(a){a&&(a.__rlSettingsData&&!h.find(Qa,function(b){return b&&b===a}))&&this.menu.push({route:a.__rlSettingsData.Route,label:a.__rlSettingsData.Label,selected:e.observable(!1),disabled:!!h.find(Ra,function(b){return b&&b===a})})},this)};fa.prototype.routes=function(){var a=h.find(Da,function(a){return a&&
|
||||
a.__rlSettingsData&&a.__rlSettingsData.IsDefault}),b=a?a.__rlSettingsData.Route:"general",a={subname:/^(.*)$/,normalize_:function(a,f){f.subname=c.isUnd(f.subname)?b:c.pString(f.subname);return[f.subname]}};return[["{subname}/",a],["{subname}",a],["",a]]};h.extend(Aa.prototype,J.prototype);Aa.prototype.onShow=function(){f.setTitle(c.i18n("TITLES/LOGIN"))};h.extend(V.prototype,J.prototype);V.prototype.oLastRoute={};V.prototype.onShow=function(){var a=f.data().accountEmail();f.setTitle((""===a?"":a+
|
||||
" - ")+c.i18n("TITLES/MAILBOX"));this.mailBoxScreenVisibily(!0)};V.prototype.onHide=function(){this.mailBoxScreenVisibily(!1)};V.prototype.onRoute=function(a,b,c){var e=f.data(),a=f.cache().getFolderFullNameRaw(a);if(a=f.cache().getFolderFromCacheList(a))e.currentFolder(a).messageListPage(b).messageListSearch(c),!e.usePreviewPane()&&e.message()&&e.message(null),f.reloadMessageList()};V.prototype.onStart=function(){var a=f.data(),b=function(){c.windowResize()};f.settingsGet("AllowAdditionalAccounts")&&
|
||||
f.accounts();h.delay(function(){f.quota()},5E3);h.delay(function(){"INBOX"!==a.currentFolderFullNameRaw()&&f.folderInformation("INBOX")},1E3);h.delay(function(){f.remote().appDelayStart(c.emptyFunction)},35E3);j.setInterval(function(){f.folderInformation("INBOX")},12E4);j.setInterval(function(){f.quota()},3E5);Z.toggleClass("rl-no-preview-pane",!a.usePreviewPane());a.folderList.subscribe(b);a.messageList.subscribe(b);a.message.subscribe(b);a.usePreviewPane.subscribe(function(b){Z.toggleClass("rl-no-preview-pane",
|
||||
!b);a.messageList.valueHasMutated()})};V.prototype.onBuild=function(){h.defer(h.bind(function(){c.initLayoutResizer("#rl-resizer-left","#rl-resizer-right","#rl-right",this.resizeTrigger)},this))};V.prototype.routes=function(){var a=function(a,d){d[0]=c.pString(d[0]);d[1]=c.pInt(d[1]);d[1]=0>=d[1]?1:d[1];d[2]=c.pString(d[2]);""===a&&(d[0]="Inbox",d[1]=1);return[decodeURI(d[0]),d[1],decodeURI(d[2])]};return[[/^([a-zA-Z0-9]+)\/p([1-9][0-9]*)\/(.+)\/?$/,{normalize_:a}],[/^([a-zA-Z0-9]+)\/p([1-9][0-9]*)\/?$/,
|
||||
{normalize_:a}],[/^([a-zA-Z0-9]+)\/(.+)\/?$/,{normalize_:function(a,d){d[0]=c.pString(d[0]);d[1]=c.pString(d[1]);""===a&&(d[0]="Inbox");return[decodeURI(d[0]),1,decodeURI(d[1])]}}],[/^([^\/]*)$/,{normalize_:a}]]};h.extend(Oa.prototype,fa.prototype);Oa.prototype.onShow=function(){f.setTitle(this.sSettingsTitle)};h.extend(I.prototype,Ua.prototype);I.prototype.oSettings=null;I.prototype.oLink=null;I.prototype.download=function(a){na?this.iframe.attr("src",a):j.open(a)};I.prototype.link=function(){null===
|
||||
this.oLink&&(this.oLink=new B);return this.oLink};I.prototype.local=function(){null===this.oLocal&&(this.oLocal=new ua);return this.oLocal};I.prototype.settingsGet=function(a){null===this.oSettings&&(this.oSettings=c.isNormal(Ba)?Ba:{});return c.isUnd(this.oSettings[a])?null:this.oSettings[a]};I.prototype.settingsSet=function(a,b){null===this.oSettings&&(this.oSettings=c.isNormal(Ba)?Ba:{});this.oSettings[a]=b};I.prototype.setTitle=function(a){a=(0<a.length?a+" - ":"")+this.settingsGet("Title")||
|
||||
"";a!==j.document.title&&(j.document.title=a)};I.prototype.loginAndLogoutReload=function(a,b){var d=c.pString(this.settingsGet("CustomLogoutLink")),e=!!this.settingsGet("InIframe"),a=c.isUnd(a)?!1:!!a,b=c.isUnd(b)?!1:!!b;a&&b&&j.close?j.close():a&&""!==d&&j.location.href!==d?h.defer(function(){e&&j.parent?j.parent.location.href=d:j.location.href=d}):(r.routeOff(),r.setHash(f.link().root(),!0),r.routeOff(),h.defer(function(){e&&j.parent?j.parent.location.reload():j.location.reload()}))};I.prototype.getAutocomplete=
|
||||
function(a,b,c){c([],a)};I.prototype.bootstart=function(){c.initOnStartOrLangChange(function(){c.initNotificationLanguage()},null);h.delay(function(){c.windowResize()},1E3)};h.extend(A.prototype,I.prototype);A.prototype.oData=null;A.prototype.oRemote=null;A.prototype.oCache=null;A.prototype.data=function(){null===this.oData&&(this.oData=new T);return this.oData};A.prototype.remote=function(){null===this.oRemote&&(this.oRemote=new p);return this.oRemote};A.prototype.cache=function(){null===this.oCache&&
|
||||
(this.oCache=new v);return this.oCache};A.prototype.reloadFlagsCurrentMessageListAndMessageFromCache=function(){var a=f.cache();h.each(f.data().messageList(),function(b){a.initMessageFlagsFromCache(b)});a.initMessageFlagsFromCache(f.data().message())};A.prototype.reloadMessageList=function(a,b){var d=f.data(),e=(d.messageListPage()-1)*d.messagesPerPage();(c.isUnd(b)?0:b)&&f.cache().setFolderHash(d.currentFolderFullNameRaw(),"");if(c.isUnd(a)?0:a)d.messageListPage(1),e=0;d.messageListLoading(!0);f.remote().messageList(function(a,
|
||||
b,f){g.StorageResultType.Success===a&&b&&b.Result?(d.messageListError(""),d.messageListLoading(!1),d.setMessageList(b,f)):g.StorageResultType.Abort!==a&&(d.messageList([]),d.messageListLoading(!1),d.messageListError(b&&b.ErrorCode?c.getNotification(b.ErrorCode):c.i18n("NOTIFICATIONS/CANT_GET_MESSAGE_LIST")))},d.currentFolderFullNameRaw(),e,d.messagesPerPage(),d.messageListSearch())};A.prototype.recacheInboxMessageList=function(){f.remote().messageList(c.emptyFunction,"INBOX",0,f.data().messagesPerPage(),
|
||||
"",!0)};A.prototype.folders=function(a,b){this.data().foldersLoading(!0);this.remote().folders(h.bind(function(a,c,e){f.data().foldersLoading(!1);g.StorageResultType.Success===a?(this.data().setFolders(c,e),b&&b(!0)):b&&b(!1)},this),a)};A.prototype.accounts=function(){f.data().accountsLoading(!0);f.remote().accounts(function(a,b){f.data().accountsLoading(!1);if(g.StorageResultType.Success===a&&c.isArray(b.Result)){var d=f.settingsGet("ParentEmail"),d=""===d?f.data().accountEmail():d;f.data().accounts(h.map(b.Result,
|
||||
function(a){return new Ka(a,a!==d)}))}})};A.prototype.quota=function(){this.remote().quota(function(a,b){g.StorageResultType.Success===a&&(b&&b.Result&&c.isArray(b.Result)&&2===b.Result.length&&c.isPosNumeric(b.Result[0],!0)&&c.isPosNumeric(b.Result[1],!0))&&(f.data().userQuota(1024*c.pInt(b.Result[1])),f.data().userUsageSize(1024*c.pInt(b.Result[0])))})};A.prototype.folderInformation=function(a,b){this.remote().folderInformation(function(a,b){if(g.StorageResultType.Success===a&&b&&b.Result&&b.Result.Hash&&
|
||||
b.Result.Folder){var e=f.cache().getFolderHash(b.Result.Folder),h=f.cache().getFolderFromCacheList(b.Result.Folder),i=!1,j="",m=[],m=!1,o=null;if(h){b.Result.Hash&&f.cache().setFolderHash(b.Result.Folder,b.Result.Hash);c.isNormal(b.Result.MessageCount)&&h.messageCountAll(b.Result.MessageCount);c.isNormal(b.Result.MessageUnseenCount)&&(c.pInt(h.messageCountUnread())!==c.pInt(b.Result.MessageUnseenCount)&&(m=!0),h.messageCountUnread(b.Result.MessageUnseenCount));m&&f.cache().clearMessageFlagsFromCacheByFolder(h.fullNameRaw);
|
||||
if(b.Result.Flags){for(j in b.Result.Flags)b.Result.Flags.hasOwnProperty(j)&&(i=!0,o=b.Result.Flags[j],f.cache().storeMessageFlagsToCacheByFolderAndUid(h.fullNameRaw,j.toString(),[!o.IsSeen,!!o.IsFlagged,!!o.IsAnswered,!!o.IsForwarded]));i&&f.reloadFlagsCurrentMessageListAndMessageFromCache()}f.data().initUidNextAndNewMessages(h.fullNameRaw,b.Result.UidNext,b.Result.NewMessages);b.Result.Hash!==e||""===e?h.fullNameRaw===f.data().currentFolderFullNameRaw()?f.reloadMessageList():"INBOX"===h.fullNameRaw&&
|
||||
f.recacheInboxMessageList():m&&h.fullNameRaw===f.data().currentFolderFullNameRaw()&&(m=f.data().messageList(),c.isNonEmptyArray(m)&&f.folderInformation(h.fullNameRaw,m))}}},a,b)};A.prototype.setMessageSeen=function(a){if(a.unseen()){a.unseen(!1);var b=f.cache().getFolderFromCacheList(a.folderFullNameRaw);b&&b.messageCountUnread(0<=b.messageCountUnread()-1?b.messageCountUnread()-1:0);f.cache().storeMessageFlagsToCache(a);f.reloadFlagsCurrentMessageListAndMessageFromCache()}f.remote().messageSetSeen(c.emptyFunction,
|
||||
a.folderFullNameRaw,[a.uid],!0)};A.prototype.googleConnect=function(){j.open(f.link().socialGoogle(),"Google","left=200,top=100,width=650,height=600,menubar=no,status=no,resizable=yes,scrollbars=yes")};A.prototype.twitterConnect=function(){j.open(f.link().socialTwitter(),"Twitter","left=200,top=100,width=650,height=350,menubar=no,status=no,resizable=yes,scrollbars=yes")};A.prototype.facebookConnect=function(){j.open(f.link().socialFacebook(),"Facebook","left=200,top=100,width=650,height=335,menubar=no,status=no,resizable=yes,scrollbars=yes")};
|
||||
A.prototype.socialUsers=function(a){var b=f.data();a&&(b.googleActions(!0),b.facebookActions(!0),b.twitterActions(!0));f.remote().socialUsers(function(a,c){if(g.StorageResultType.Success===a&&c&&c.Result){b.googleUserName(c.Result.Google||"");b.facebookUserName(c.Result.Facebook||"");b.twitterUserName(c.Result.Twitter||"")}else{b.googleUserName("");b.facebookUserName("");b.twitterUserName("")}b.googleLoggined(""!==b.googleUserName());b.facebookLoggined(""!==b.facebookUserName());b.twitterLoggined(""!==
|
||||
b.twitterUserName());b.googleActions(false);b.facebookActions(false);b.twitterActions(false)})};A.prototype.googleDisconnect=function(){f.data().googleActions(!0);f.remote().googleDisconnect(function(){f.socialUsers()})};A.prototype.facebookDisconnect=function(){f.data().facebookActions(!0);f.remote().facebookDisconnect(function(){f.socialUsers()})};A.prototype.twitterDisconnect=function(){f.data().twitterActions(!0);f.remote().twitterDisconnect(function(){f.socialUsers()})};A.prototype.folderListOptionsBuilder=
|
||||
function(a,b,d,e,h,i,m,k,p){var o=0,q=0,n=null,r=[],p=!c.isNormal(p)?0<a.length:p,h=!c.isNormal(h)?0:h;c.isArray(d)||(d=[]);c.isArray(e)||(e=[]);o=0;for(q=e.length;o<q;o++)r.push({id:e[o][0],name:e[o][1],disable:!1});o=0;for(q=a.length;o<q;o++)if(n=a[o],c.isNormal(m)?m.call(null,n):1)r.push({id:n.fullNameRaw,system:!0,name:c.isNormal(k)?k.call(null,n):n.name(),disable:!n.selectable||-1<c.inArray(n.fullNameRaw,d)||(c.isNormal(i)?i.call(null,n):!1)});o=0;for(q=b.length;o<q;o++){n=b[o];if(!n.isGmailFolder&&
|
||||
(n.subScribed()||!n.existen))if(c.isNormal(m)?m.call(null,n):1)if(g.FolderType.User===n.type()||!p||!n.isNamespaceFolder&&0<n.subFolders().length)r.push({id:n.fullNameRaw,system:!1,name:(new j.Array(n.deep+1-h)).join("\u00a0\u00a0\u00a0\u00a0")+(c.isNormal(k)?k.call(null,n):n.name()),disable:!n.selectable||-1<c.inArray(n.fullNameRaw,d)||g.FolderType.User!==n.type()||(c.isNormal(i)?i.call(null,n):!1)});n.isUnpaddigFolder&&h++;r=r.concat(f.folderListOptionsBuilder([],n.subFolders(),d,[],h,i,m,k,p))}return r};
|
||||
A.prototype.getAutocomplete=function(a,b,d){var e=[];f.remote().suggestions(function(a,b){g.StorageResultType.Success===a&&b&&b.Result&&c.isArray(b.Result.List)?(e=h.map(b.Result.List,function(a){return a&&a[0]?new F(a[0],a[1]):null}),d(h.compact(e),!!b.Result.More)):g.StorageResultType.Abort!==a&&d([],!1)},a,b)};A.prototype.emailsPicsHashes=function(){f.remote().emailsPicsHashes(function(a,b){g.StorageResultType.Success===a&&(b&&b.Result)&&f.cache().setEmailsPicsHashesData(b.Result)})};A.prototype.bootstart=
|
||||
function(){I.prototype.bootstart.call(this);f.data().populateDataOnStart();var a=this.settingsGet("JsHash"),b=this.settingsGet("AllowGoogleSocial"),d=this.settingsGet("AllowFacebookSocial"),e=this.settingsGet("AllowTwitterSocial");!this.settingsGet("RemoteChangePassword")&&ma&&c.removeSettingsViewModel(ma);!this.settingsGet("AllowAdditionalAccounts")&&la&&c.removeSettingsViewModel(la);!b&&(!d&&!e&&Ma)&&c.removeSettingsViewModel(Ma);c.initOnStartOrLangChange(function(){i.extend(!0,i.magnificPopup.defaults,
|
||||
{tClose:c.i18n("MAGNIFIC_POPUP/CLOSE"),tLoading:c.i18n("MAGNIFIC_POPUP/LOADING"),gallery:{tPrev:c.i18n("MAGNIFIC_POPUP/GALLERY_PREV"),tNext:c.i18n("MAGNIFIC_POPUP/GALLERY_NEXT"),tCounter:c.i18n("MAGNIFIC_POPUP/GALLERY_COUNTER")},image:{tError:c.i18n("MAGNIFIC_POPUP/IMAGE_ERROR")},ajax:{tError:c.i18n("MAGNIFIC_POPUP/AJAX_ERROR")}})},this);this.settingsGet("Auth")?(this.setTitle(c.i18n("TITLES/LOADING")),this.folders(!0,h.bind(function(a){r.hideLoading();if(a){r.startScreens([V,Oa]);Ca.on("click","#rl-center a",
|
||||
function(){var a=null,b=i(this).attr("href");if(b&&"mailto:"===b.toString().toLowerCase().substr(0,7)){a=new F;a.parse(j.decodeURI(b.toString().substr(7)));if(a&&a.email){r.showScreenPopup(y,[g.ComposeType.Empty,null,[a]]);return false}}return true});(b||d||e)&&f.socialUsers(true);h.delay(function(){f.emailsPicsHashes();f.remote().servicesPics(function(a,b){g.StorageResultType.Success===a&&(b&&b.Result)&&f.cache().setServicesData(b.Result)})},1E3);x.runHook("rl-start-user-screens")}else{r.startScreens([Aa]);
|
||||
x.runHook("rl-start-login-screens")}},this))):(r.hideLoading(),r.startScreens([Aa]),x.runHook("rl-start-login-screens"));b&&(j["rl_"+a+"_google_service"]=function(){f.data().googleActions(true);f.socialUsers()});d&&(j["rl_"+a+"_facebook_service"]=function(){f.data().facebookActions(true);f.socialUsers()});e&&(j["rl_"+a+"_twitter_service"]=function(){f.data().twitterActions(true);f.socialUsers()});x.runHook("rl-start-screens")};f=new A;i(function(){j.setTimeout(function(){r.setBoot(f).bootstart()},
|
||||
10);j.setInterval(function(){wa(!wa())},6E4);h.delay(function(){j.rainloopAppData={};j.rainloopI18N={}},100)});R.keydown(c.killCtrlAandS).keyup(c.killCtrlAandS);j.rl=j.rl||{};j.rl.addHook=x.addHook;j.rl.settingsGet=x.mainSettingsGet;j.rl.remoteRequest=x.remoteRequest;j.rl.pluginSettingsGet=x.settingsGet;j.rl.addSettingsViewModel=c.addSettingsViewModel;j.rl.createCommand=c.createCommand;j.rl.EmailModel=F;j.rl.Enums=g})(window,jQuery,ko,crossroads,hasher,moment,Jua,_);
|
||||
2
rainloop/v/1.2.5.406/static/js/jquery.js
vendored
Normal file
1299
rainloop/v/1.2.5.406/static/js/libs.js
Normal file
BIN
rainloop/v/1.2.5.406/static/services/amazon.png
Normal file
|
After Width: | Height: | Size: 18 KiB |
BIN
rainloop/v/1.2.5.406/static/services/apple.jpg
Normal file
|
After Width: | Height: | Size: 807 B |
BIN
rainloop/v/1.2.5.406/static/services/asana.png
Normal file
|
After Width: | Height: | Size: 995 B |
BIN
rainloop/v/1.2.5.406/static/services/battle.net.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
rainloop/v/1.2.5.406/static/services/cnet.jpg
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
rainloop/v/1.2.5.406/static/services/ea.png
Normal file
|
After Width: | Height: | Size: 6 KiB |
BIN
rainloop/v/1.2.5.406/static/services/ebay.jpg
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
rainloop/v/1.2.5.406/static/services/facebook.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
rainloop/v/1.2.5.406/static/services/github.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
rainloop/v/1.2.5.406/static/services/google-plus.png
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
rainloop/v/1.2.5.406/static/services/google.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
rainloop/v/1.2.5.406/static/services/icloud.jpg
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
rainloop/v/1.2.5.406/static/services/microsoft.jpg
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
rainloop/v/1.2.5.406/static/services/myspace.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
rainloop/v/1.2.5.406/static/services/onlive.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
rainloop/v/1.2.5.406/static/services/paypal.jpg
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
rainloop/v/1.2.5.406/static/services/skype.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
rainloop/v/1.2.5.406/static/services/steam.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
rainloop/v/1.2.5.406/static/services/ted.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
rainloop/v/1.2.5.406/static/services/twitter.jpg
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
rainloop/v/1.2.5.406/static/services/youtube.gif
Normal file
|
After Width: | Height: | Size: 2.2 KiB |