@uploadcare/file-uploader 1.25.0-alpha.8 → 1.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/abstract/loadFileUploaderFrom.js +75 -4
  2. package/dist/env.js +33 -4
  3. package/dist/index.css +2660 -5
  4. package/dist/index.d.ts +962 -1296
  5. package/dist/index.js +12012 -6
  6. package/dist/index.layered.css +2716 -4
  7. package/dist/index.ssr.js +779 -549
  8. package/dist/locales/file-uploader/ar.js +165 -4
  9. package/dist/locales/file-uploader/az.js +157 -4
  10. package/dist/locales/file-uploader/ca.js +159 -4
  11. package/dist/locales/file-uploader/cs.js +161 -4
  12. package/dist/locales/file-uploader/da.js +157 -4
  13. package/dist/locales/file-uploader/de.js +157 -4
  14. package/dist/locales/file-uploader/el.js +157 -4
  15. package/dist/locales/file-uploader/en.js +157 -4
  16. package/dist/locales/file-uploader/es.js +159 -4
  17. package/dist/locales/file-uploader/et.js +157 -4
  18. package/dist/locales/file-uploader/fi.js +157 -4
  19. package/dist/locales/file-uploader/fr.js +159 -4
  20. package/dist/locales/file-uploader/he.js +159 -4
  21. package/dist/locales/file-uploader/hy.js +157 -4
  22. package/dist/locales/file-uploader/is.js +157 -4
  23. package/dist/locales/file-uploader/it.js +159 -4
  24. package/dist/locales/file-uploader/ja.js +157 -4
  25. package/dist/locales/file-uploader/ka.js +157 -4
  26. package/dist/locales/file-uploader/kk.js +157 -4
  27. package/dist/locales/file-uploader/ko.js +157 -4
  28. package/dist/locales/file-uploader/lv.js +159 -4
  29. package/dist/locales/file-uploader/nb.js +157 -4
  30. package/dist/locales/file-uploader/nl.js +157 -4
  31. package/dist/locales/file-uploader/pl.js +161 -4
  32. package/dist/locales/file-uploader/pt.js +159 -4
  33. package/dist/locales/file-uploader/ro.js +159 -4
  34. package/dist/locales/file-uploader/ru.js +161 -4
  35. package/dist/locales/file-uploader/sk.js +161 -4
  36. package/dist/locales/file-uploader/sr.js +159 -4
  37. package/dist/locales/file-uploader/sv.js +157 -4
  38. package/dist/locales/file-uploader/tr.js +157 -4
  39. package/dist/locales/file-uploader/uk.js +161 -4
  40. package/dist/locales/file-uploader/vi.js +157 -4
  41. package/dist/locales/file-uploader/zh-TW.js +157 -4
  42. package/dist/locales/file-uploader/zh.js +157 -4
  43. package/package.json +31 -36
  44. package/types/jsx.d.ts +48 -75
  45. package/web/file-uploader.iife.min.d.ts +984 -1318
  46. package/web/file-uploader.iife.min.js +27 -6
  47. package/web/file-uploader.min.d.ts +984 -1318
  48. package/web/file-uploader.min.js +26 -5
  49. package/web/uc-basic.layered.min.css +23 -4
  50. package/web/uc-basic.min.css +23 -4
  51. package/web/uc-cloud-image-editor.layered.min.css +23 -4
  52. package/web/uc-cloud-image-editor.min.css +23 -4
  53. package/web/uc-cloud-image-editor.min.d.ts +537 -738
  54. package/web/uc-cloud-image-editor.min.js +26 -5
  55. package/web/uc-file-uploader-inline.layered.min.css +23 -4
  56. package/web/uc-file-uploader-inline.min.css +23 -4
  57. package/web/uc-file-uploader-inline.min.d.ts +984 -1318
  58. package/web/uc-file-uploader-inline.min.js +26 -5
  59. package/web/uc-file-uploader-minimal.layered.min.css +23 -4
  60. package/web/uc-file-uploader-minimal.min.css +23 -4
  61. package/web/uc-file-uploader-minimal.min.d.ts +984 -1318
  62. package/web/uc-file-uploader-minimal.min.js +26 -5
  63. package/web/uc-file-uploader-regular.layered.min.css +23 -4
  64. package/web/uc-file-uploader-regular.min.css +23 -4
  65. package/web/uc-file-uploader-regular.min.d.ts +984 -1318
  66. package/web/uc-file-uploader-regular.min.js +26 -5
  67. package/web/uc-img.min.d.ts +100 -55
  68. package/web/uc-img.min.js +25 -5
  69. package/web/file-uploader.iife.min.js.LEGAL.txt +0 -71
  70. package/web/file-uploader.min.js.LEGAL.txt +0 -71
  71. package/web/uc-cloud-image-editor.min.js.LEGAL.txt +0 -70
  72. package/web/uc-file-uploader-inline.min.js.LEGAL.txt +0 -71
  73. package/web/uc-file-uploader-minimal.min.js.LEGAL.txt +0 -71
  74. package/web/uc-file-uploader-regular.min.js.LEGAL.txt +0 -71
  75. package/web/uc-img.min.js.LEGAL.txt +0 -24
package/dist/index.ssr.js CHANGED
@@ -1,5 +1,4 @@
1
1
  export const ActivityBlock = class {
2
- static jt = {};
3
2
  static activities = {
4
3
  START_FROM: "start-from",
5
4
  CAMERA: "camera",
@@ -9,21 +8,12 @@ export const ActivityBlock = class {
9
8
  CLOUD_IMG_EDIT: "cloud-image-edit",
10
9
  EXTERNAL: "external",
11
10
  };
12
- static finalized = {};
13
- static elementProperties = {};
14
- static elementStyles = [];
15
- static styleAttrs = [];
16
11
  static reg = () => {};
17
- static addInitializer = () => {};
18
- static createProperty = () => {};
19
- static getPropertyDescriptor = () => {};
20
- static getPropertyOptions = () => {};
21
- static finalize = () => {};
22
- static finalizeStyles = () => {};
23
- static shadowRootOptions = { mode: "open" };
12
+ static styleAttrs = [];
13
+ static is = `sym-1`;
14
+ static bindAttributes = () => {};
24
15
  };
25
16
  export const ActivityHeader = class {
26
- static jt = {};
27
17
  static activities = {
28
18
  START_FROM: "start-from",
29
19
  CAMERA: "camera",
@@ -33,62 +23,162 @@ export const ActivityHeader = class {
33
23
  CLOUD_IMG_EDIT: "cloud-image-edit",
34
24
  EXTERNAL: "external",
35
25
  };
36
- static finalized = {};
37
- static elementProperties = {};
38
- static elementStyles = [];
39
- static styleAttrs = [];
40
26
  static reg = () => {};
41
- static addInitializer = () => {};
42
- static createProperty = () => {};
43
- static getPropertyDescriptor = () => {};
44
- static getPropertyOptions = () => {};
45
- static finalize = () => {};
46
- static finalizeStyles = () => {};
47
- static shadowRootOptions = { mode: "open" };
27
+ static styleAttrs = [];
28
+ static is = `sym-1`;
29
+ static bindAttributes = () => {};
48
30
  };
49
31
  export const BaseComponent = class {
50
32
  static reg = () => {};
51
- static elementProperties = {};
52
- static finalized = {};
53
- static elementStyles = [];
54
- static addInitializer = () => {};
55
- static createProperty = () => {};
56
- static getPropertyDescriptor = () => {};
57
- static getPropertyOptions = () => {};
58
- static finalize = () => {};
59
- static finalizeStyles = () => {};
60
- static shadowRootOptions = { mode: "open" };
33
+ static is = `sym-1`;
34
+ static bindAttributes = () => {};
61
35
  };
62
36
  export const Block = class {
63
- static styleAttrs = [];
64
- static finalized = {};
65
- static elementProperties = {};
66
- static elementStyles = [];
67
37
  static reg = () => {};
68
- static addInitializer = () => {};
69
- static createProperty = () => {};
70
- static getPropertyDescriptor = () => {};
71
- static getPropertyOptions = () => {};
72
- static finalize = () => {};
73
- static finalizeStyles = () => {};
74
- static shadowRootOptions = { mode: "open" };
38
+ static styleAttrs = [];
39
+ static is = `sym-1`;
40
+ static bindAttributes = () => {};
75
41
  };
76
42
  export const BtnUi = class {
77
- static elementProperties = {};
78
- static styleAttrs = [];
79
- static finalized = {};
80
- static elementStyles = [];
43
+ static observedAttributes = ["text", "icon", "reverse", "theme"];
44
+ static template = `
45
+ <button
46
+ type="button"
47
+ set="@role:aria-role; @aria-controls: aria-controls; @aria-label:title-prop"
48
+ l10n="@title:title-prop;"
49
+ >
50
+ <uc-icon set="className: iconCss; @name: icon; @hidden: !icon"></uc-icon>
51
+ <div class="uc-text">{{text}}</div>
52
+ </button>
53
+ `;
81
54
  static reg = () => {};
82
- static addInitializer = () => {};
83
- static createProperty = () => {};
84
- static getPropertyDescriptor = () => {};
85
- static getPropertyOptions = () => {};
86
- static finalize = () => {};
87
- static finalizeStyles = () => {};
88
- static shadowRootOptions = { mode: "open" };
55
+ static styleAttrs = [];
56
+ static is = `sym-1`;
57
+ static bindAttributes = () => {};
89
58
  };
90
59
  export const CameraSource = class {
91
- static elementProperties = {};
60
+ static template = `
61
+ <uc-activity-header>
62
+ <button
63
+ type="button"
64
+ class="uc-mini-btn"
65
+ set="onclick: *historyBack"
66
+ l10n="@title:back"
67
+ >
68
+ <uc-icon name="back"></uc-icon>
69
+ </button>
70
+ <div set="@hidden: !cameraSelectHidden">
71
+ <uc-icon name="camera"></uc-icon>
72
+ <span l10n="caption-camera"></span>
73
+ </div>
74
+ <uc-select
75
+ class="uc-camera-select"
76
+ set="$.options: cameraSelectOptions; @hidden: cameraSelectHidden; onchange: onCameraSelectChange"
77
+ >
78
+ </uc-select>
79
+ <button
80
+ type="button"
81
+ class="uc-mini-btn uc-close-btn"
82
+ set="onclick: *closeModal"
83
+ l10n="@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close"
84
+ >
85
+ <uc-icon name="close"></uc-icon>
86
+ </button>
87
+ </uc-activity-header>
88
+ <div class="uc-content">
89
+ <video
90
+ muted
91
+ autoplay
92
+ playsinline
93
+ set="srcObject: video; style.transform: videoTransformCss; @hidden: videoHidden"
94
+ ref="video"
95
+ ></video>
96
+ <div class="uc-message-box" set="@hidden: messageHidden">
97
+ <span l10n="l10nMessage"></span>
98
+ <button
99
+ type="button"
100
+ set="onclick: onRequestPermissions; @hidden: requestBtnHidden"
101
+ l10n="camera-permissions-request"
102
+ ></button>
103
+ </div>
104
+ </div>
105
+
106
+ <div class="uc-controls">
107
+ <div ref="switcher" class="uc-switcher" set="@hidden:!timerHidden">
108
+ <button
109
+ data-id="photo"
110
+ type="button"
111
+ class="uc-switch uc-mini-btn"
112
+ set="onclick: onClickTab; @hidden: tabCameraHidden"
113
+ data-testid="tab-photo"
114
+ >
115
+ <uc-icon name="camera"></uc-icon>
116
+ </button>
117
+ <button
118
+ data-id="video"
119
+ type="button"
120
+ class="uc-switch uc-mini-btn"
121
+ set="onclick: onClickTab; @hidden: tabVideoHidden"
122
+ data-testid="tab-video"
123
+ >
124
+ <uc-icon name="video-camera"></uc-icon>
125
+ </button>
126
+ </div>
127
+
128
+ <button
129
+ class="uc-secondary-btn uc-recording-timer"
130
+ set="@hidden:timerHidden; onclick: onToggleRecording"
131
+ data-testid="recording-timer"
132
+ >
133
+ <uc-icon set="@name: currentTimelineIcon"></uc-icon>
134
+ <span ref="timer"> 00:00 </span>
135
+ <span ref="line" class="uc-line"></span>
136
+ </button>
137
+
138
+ <div
139
+ class="uc-camera-actions uc-camera-action"
140
+ set="@hidden: cameraActionsHidden"
141
+ >
142
+ <button type="button" class="uc-secondary-btn" set="onclick: onRetake" data-testid="retake">
143
+ Retake
144
+ </button>
145
+ <button
146
+ type="button"
147
+ class="uc-primary-btn"
148
+ set="onclick: onAccept"
149
+ data-testid="accept"
150
+ >
151
+ Accept
152
+ </button>
153
+ </div>
154
+
155
+ <button
156
+ type="button"
157
+ class="uc-shot-btn uc-camera-action"
158
+ data-testid="shot"
159
+ set="onclick: onStartCamera; @class: mutableClassButton; @hidden: cameraHidden;"
160
+ >
161
+ <uc-icon set="@name: currentIcon"></uc-icon>
162
+ </button>
163
+
164
+ <div class="uc-select">
165
+ <button
166
+ class="uc-mini-btn uc-btn-microphone"
167
+ set="onclick: onToggleAudio; @hidden: audioToggleMicrophoneHidden;"
168
+ data-testid="toggle-microphone"
169
+ >
170
+ <uc-icon set="@name:toggleMicrophoneIcon"></uc-icon>
171
+ </button>
172
+
173
+ <uc-select
174
+ class="uc-audio-select"
175
+ set="$.options: audioSelectOptions; onchange: onAudioSelectChange; @hidden: audioSelectHidden; @disabled: audioSelectDisabled"
176
+ data-testid="audio-select"
177
+ >
178
+ </uc-select>
179
+ </div>
180
+ </div>
181
+ `;
92
182
  static extSrcList = {
93
183
  FACEBOOK: "facebook",
94
184
  DROPBOX: "dropbox",
@@ -122,9 +212,6 @@ export const CameraSource = class {
122
212
  ONEDRIVE: "onedrive",
123
213
  HUDDLE: "huddle",
124
214
  };
125
- static finalized = {};
126
- static elementStyles = [];
127
- static jt = {};
128
215
  static activities = {
129
216
  START_FROM: "start-from",
130
217
  CAMERA: "camera",
@@ -134,32 +221,52 @@ export const CameraSource = class {
134
221
  CLOUD_IMG_EDIT: "cloud-image-edit",
135
222
  EXTERNAL: "external",
136
223
  };
137
- static styleAttrs = [];
138
224
  static reg = () => {};
139
- static addInitializer = () => {};
140
- static createProperty = () => {};
141
- static getPropertyDescriptor = () => {};
142
- static getPropertyOptions = () => {};
143
- static finalize = () => {};
144
- static finalizeStyles = () => {};
145
- static shadowRootOptions = { mode: "open" };
225
+ static styleAttrs = [];
226
+ static is = `sym-1`;
227
+ static bindAttributes = () => {};
146
228
  };
147
229
  export const CloudImageEditor = class {
148
230
  static styleAttrs = [];
149
- static elementProperties = {};
150
- static finalized = {};
151
- static elementStyles = [];
231
+ static template = `
232
+ <svg width='0' height='0' style='position:absolute'><symbol fill='none' viewBox='0 0 9 6' id='uc-icon-arrow-dropdown' xmlns='http://www.w3.org/2000/svg'><path stroke='currentColor' d='m1.5 1.667 3 2.666 3-2.666' opacity='.5'/></symbol><symbol viewBox='0 0 24 24' id='uc-icon-aspect-ratio' xmlns='http://www.w3.org/2000/svg'/><symbol viewBox='0 0 20 20' id='uc-icon-brightness' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M15 10a5 5 0 0 1-5 5m5-5a5 5 0 0 0-5-5m5 5h-5m0 5a5 5 0 0 1 0-10m0 10V5m0 15v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05m-.626 2.45H10m4.324 5H10'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-closeMax' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M8.232 10 3.585 5.353l1.768-1.768L10 8.232l4.648-4.647 1.767 1.768L11.768 10l4.647 4.648-1.767 1.767L10 11.768l-4.647 4.647-1.768-1.767L8.232 10Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-contrast' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 10a8 8 0 1 0 16 0 8 8 0 1 0-16 0m8-8v16m8-8h-8m7.598 2.5H10m6.24 2.5H10m7.6-7.5H10M16.242 5H10'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-crop' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M20 14H7.005C6.45 14 6 13.55 6 12.995V0M0 6h13.067c.515 0 .933.418.933.933V20M14.5.4 13 2l1.5 1.6M13 2h2a3 3 0 0 1 3 3v2M5.5 19.6 7 18l-1.5-1.6M7 18H5a3 3 0 0 1-3-3v-2'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-done' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='m18.057 6.333-9.365 9.125a1.25 1.25 0 0 1-1.768-.023L1.92 10.296l1.791-1.744 4.132 4.243 8.47-8.253 1.744 1.79Z' clip-rule='evenodd'/></symbol><symbol fill='currentColor' viewBox='0 0 25 24' id='uc-icon-edit-file' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M18.558 2.804a.78.78 0 0 0-.557.235l-.008.007-2.472 2.46 3.847 3.848 2.46-2.473.004-.003a.78.78 0 0 0 0-1.108l-.004-.003-2.712-2.728a.78.78 0 0 0-.558-.235Zm-.248 7.613-3.852-3.852-8.93 8.887-1.516 5.41 5.41-1.515 8.888-8.93Zm-.636-8.934a2.28 2.28 0 0 1 2.512.505l2.702 2.717.002.002a2.278 2.278 0 0 1 0 3.234l-.002.002-12.541 12.602a.75.75 0 0 1-.33.193l-6.884 1.928a.75.75 0 0 1-.925-.924l1.928-6.885a.75.75 0 0 1 .193-.33l12.603-12.54a2.28 2.28 0 0 1 .742-.504Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-enhance' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19 13h-2m0 0a4 4 0 0 1-4-4m4 4a4 4 0 0 0-4 4m0-8V7m0 2a4 4 0 0 1-4 4m-2 0h2m0 0a4 4 0 0 1 4 4m0 0v2M8 8.5H6.5m0 0a2 2 0 0 1-2-2m2 2a2 2 0 0 0-2 2m0-4V5m0 1.5a2 2 0 0 1-2 2M1 8.5h1.5m0 0a2 2 0 0 1 2 2m0 0V12M12 3h-1m0 0a1 1 0 0 1-1-1m1 1a1 1 0 0 0-1 1m0-2V1m0 1a1 1 0 0 1-1 1M8 3h1m0 0a1 1 0 0 1 1 1m0 0v1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-exposure' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M10 20v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05M5 10a5 5 0 1 0 10 0 5 5 0 1 0-10 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-filters' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M4.5 6.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m-3.5 6a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m7 0a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-flip' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19.6 5 18 3.5 16.4 5m3.2 10L18 16.5 16.4 15M18 3.523v12.954M3.3 8.5h10.654c.301 0 .415-.395.159-.554L3.459 1.286A.3.3 0 0 0 3 1.542V8.2a.3.3 0 0 0 .3.3zm0 3h10.654c.301 0 .415.395.159.554l-10.654 6.66A.3.3 0 0 1 3 18.458v-6.66a.3.3 0 0 1 .3-.3z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-gamma' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M17 3C9 6 2.5 11.5 2.5 17.5m0 0h1m-1 0v-1m14 1h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3-14v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-mirror' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M5 .4 3.5 2 5 3.6M15 .4 16.5 2 15 3.6M3.52 2h12.957M8.5 16.7V6.046c0-.301-.394-.415-.554-.159L1.287 16.541a.3.3 0 0 0 .255.459H8.2a.3.3 0 0 0 .3-.3zm3 0V6.046c0-.301.395-.415.555-.159l6.659 10.654a.3.3 0 0 1-.255.459H11.8a.3.3 0 0 1-.3-.3z'/></symbol><symbol viewBox='0 0 40 40' id='uc-icon-original' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.5' d='M0 40 40 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-rotate' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M13.5.4 12 2l1.5 1.6M12.023 2H14.4A3.6 3.6 0 0 1 18 5.6V8M4 17h9a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-sad' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 17c4.418-4 11.582-4 16 0M16.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-11 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-saturation' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient id='ruc-icon-id__a' x1='10.001' y1='1' x2='10.001' y2='19' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs><circle cx='10.001' cy='10' r='9' transform='rotate(90 10 10)' fill='url(#ruc-icon-id__a)'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-slider' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M0 10h11m0 0a2 2 0 1 0 4 0m-4 0a2 2 0 1 1 4 0m0 0h5'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-tuning' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M8 10h11M1 10h4M1 4.5h11m3 0h4m-18 11h11m3 0h4m-7-11a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0m7 5.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-vibrance' xmlns='http://www.w3.org/2000/svg'><path d='M2.125 5.64A8.96 8.96 0 0 0 1.001 10a8.96 8.96 0 0 0 1.124 4.36V5.64z' fill='url(#uuc-icon-id__a)'/><path d='M2.875 15.499V4.502a9.053 9.053 0 0 1 1.75-1.72v14.437a9.05 9.05 0 0 1-1.75-1.72z' fill='url(#uuc-icon-id__b)'/><path d='M5.375 17.722c.548.33 1.134.601 1.75.809V1.469a8.956 8.956 0 0 0-1.75.81v15.443z' fill='url(#uuc-icon-id__c)'/><path d='M7.875 1.253v17.495c.564.136 1.15.22 1.75.244V1.008a9 9 0 0 0-1.75.245z' fill='url(#uuc-icon-id__d)'/><path d='M10.375 1.008v17.984a9 9 0 0 0 1.75-.244V1.252a9 9 0 0 0-1.75-.244z' fill='url(#uuc-icon-id__e)'/><path d='M12.875 1.469V18.53a8.957 8.957 0 0 0 1.75-.808V2.277a8.957 8.957 0 0 0-1.75-.808z' fill='url(#uuc-icon-id__f)'/><path d='M15.375 2.78v14.44a9.053 9.053 0 0 0 1.75-1.72v-11a9.054 9.054 0 0 0-1.75-1.72z' fill='url(#uuc-icon-id__g)'/><path d='M17.875 5.638v8.724A8.959 8.959 0 0 0 19.001 10a8.96 8.96 0 0 0-1.126-4.362z' fill='url(#uuc-icon-id__h)'/><defs><linearGradient id='uuc-icon-id__a' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__b' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__c' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__d' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__e' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__f' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__g' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__h' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs></symbol><symbol viewBox='0 0 20 20' id='uc-icon-warmth' xmlns='http://www.w3.org/2000/svg'><path d='m7.5 13.05.429.42.171-.175v-.244h-.6zm5 0h-.6v.245l.172.175.428-.42zM8.1 3.5c0-1.05.85-1.9 1.9-1.9V.4a3.1 3.1 0 0 0-3.1 3.1h1.2zm0 9.55V3.5H6.9v9.55h1.2zm-1 2.45c0-.79.315-1.506.829-2.03l-.858-.84A4.088 4.088 0 0 0 5.9 15.5h1.2zm2.9 2.9a2.9 2.9 0 0 1-2.9-2.9H5.9a4.1 4.1 0 0 0 4.1 4.1v-1.2zm2.9-2.9a2.9 2.9 0 0 1-2.9 2.9v1.2a4.1 4.1 0 0 0 4.1-4.1h-1.2zm-.829-2.03c.514.524.829 1.24.829 2.03h1.2c0-1.117-.447-2.13-1.171-2.87l-.858.84zM11.9 3.5v9.55h1.2V3.5h-1.2zM10 1.6c1.05 0 1.9.85 1.9 1.9h1.2A3.1 3.1 0 0 0 10 .4v1.2z' fill='currentColor'/><path d='M10 14V8' stroke='currentColor' stroke-width='1.2' stroke-linecap='round'/><path d='M14 3h3m-3 3h3m-3 3h3m-8 6.5a1 1 0 1 0 2 0 1 1 0 1 0-2 0' stroke='currentColor' stroke-width='1.2'/></symbol></svg>
233
+ <div class="uc-wrapper uc-wrapper_desktop">
234
+ <uc-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
235
+ <div class="uc-network_problems_content">
236
+ <div class="uc-network_problems_icon">
237
+ <uc-icon name="sad"></uc-icon>
238
+ </div>
239
+ <div class="uc-network_problems_text">Network error</div>
240
+ </div>
241
+ <div class="uc-network_problems_footer">
242
+ <uc-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></uc-btn-ui>
243
+ </div>
244
+ </uc-presence-toggle>
245
+ <div class="uc-viewport">
246
+ <div class="uc-file_type_outer">
247
+ <div class="uc-file_type">{{fileType}}</div>
248
+ </div>
249
+ <div class="uc-image_container" ref="img-container-el">
250
+ <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" class="uc-image uc-image_visible_from_editor" ref="img-el" />
251
+ <uc-editor-image-cropper ref="cropper-el"></uc-editor-image-cropper>
252
+ <uc-editor-image-fader ref="fader-el"></uc-editor-image-fader>
253
+ </div>
254
+ <div class="uc-info_pan">{{msg}}</div>
255
+ </div>
256
+ <div class="uc-toolbar">
257
+ <uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
258
+ <div class="uc-toolbar_content uc-toolbar_content__editor">
259
+ <uc-editor-toolbar></uc-editor-toolbar>
260
+ </div>
261
+ </div>
262
+ </div>
263
+ `;
264
+ static observedAttributes = ["uuid", "cdn-url", "crop-preset", "tabs"];
152
265
  static reg = () => {};
153
- static addInitializer = () => {};
154
- static createProperty = () => {};
155
- static getPropertyDescriptor = () => {};
156
- static getPropertyOptions = () => {};
157
- static finalize = () => {};
158
- static finalizeStyles = () => {};
159
- static shadowRootOptions = { mode: "open" };
266
+ static is = `sym-1`;
267
+ static bindAttributes = () => {};
160
268
  };
161
269
  export const CloudImageEditorActivity = class {
162
- static elementProperties = {};
163
270
  static extSrcList = {
164
271
  FACEBOOK: "facebook",
165
272
  DROPBOX: "dropbox",
@@ -193,9 +300,6 @@ export const CloudImageEditorActivity = class {
193
300
  ONEDRIVE: "onedrive",
194
301
  HUDDLE: "huddle",
195
302
  };
196
- static finalized = {};
197
- static elementStyles = [];
198
- static jt = {};
199
303
  static activities = {
200
304
  START_FROM: "start-from",
201
305
  CAMERA: "camera",
@@ -205,33 +309,53 @@ export const CloudImageEditorActivity = class {
205
309
  CLOUD_IMG_EDIT: "cloud-image-edit",
206
310
  EXTERNAL: "external",
207
311
  };
208
- static styleAttrs = [];
209
312
  static reg = () => {};
210
- static addInitializer = () => {};
211
- static createProperty = () => {};
212
- static getPropertyDescriptor = () => {};
213
- static getPropertyOptions = () => {};
214
- static finalize = () => {};
215
- static finalizeStyles = () => {};
216
- static shadowRootOptions = { mode: "open" };
313
+ static styleAttrs = [];
314
+ static is = `sym-1`;
315
+ static bindAttributes = () => {};
217
316
  };
218
317
  export const CloudImageEditorBlock = class {
219
318
  static styleAttrs = [];
220
- static elementProperties = {};
221
- static finalized = {};
222
- static elementStyles = [];
319
+ static template = `
320
+ <svg width='0' height='0' style='position:absolute'><symbol fill='none' viewBox='0 0 9 6' id='uc-icon-arrow-dropdown' xmlns='http://www.w3.org/2000/svg'><path stroke='currentColor' d='m1.5 1.667 3 2.666 3-2.666' opacity='.5'/></symbol><symbol viewBox='0 0 24 24' id='uc-icon-aspect-ratio' xmlns='http://www.w3.org/2000/svg'/><symbol viewBox='0 0 20 20' id='uc-icon-brightness' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M15 10a5 5 0 0 1-5 5m5-5a5 5 0 0 0-5-5m5 5h-5m0 5a5 5 0 0 1 0-10m0 10V5m0 15v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05m-.626 2.45H10m4.324 5H10'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-closeMax' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M8.232 10 3.585 5.353l1.768-1.768L10 8.232l4.648-4.647 1.767 1.768L11.768 10l4.647 4.648-1.767 1.767L10 11.768l-4.647 4.647-1.768-1.767L8.232 10Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-contrast' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 10a8 8 0 1 0 16 0 8 8 0 1 0-16 0m8-8v16m8-8h-8m7.598 2.5H10m6.24 2.5H10m7.6-7.5H10M16.242 5H10'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-crop' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M20 14H7.005C6.45 14 6 13.55 6 12.995V0M0 6h13.067c.515 0 .933.418.933.933V20M14.5.4 13 2l1.5 1.6M13 2h2a3 3 0 0 1 3 3v2M5.5 19.6 7 18l-1.5-1.6M7 18H5a3 3 0 0 1-3-3v-2'/></symbol><symbol fill='currentColor' viewBox='0 0 20 20' id='uc-icon-done' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='m18.057 6.333-9.365 9.125a1.25 1.25 0 0 1-1.768-.023L1.92 10.296l1.791-1.744 4.132 4.243 8.47-8.253 1.744 1.79Z' clip-rule='evenodd'/></symbol><symbol fill='currentColor' viewBox='0 0 25 24' id='uc-icon-edit-file' xmlns='http://www.w3.org/2000/svg'><path fill-rule='evenodd' d='M18.558 2.804a.78.78 0 0 0-.557.235l-.008.007-2.472 2.46 3.847 3.848 2.46-2.473.004-.003a.78.78 0 0 0 0-1.108l-.004-.003-2.712-2.728a.78.78 0 0 0-.558-.235Zm-.248 7.613-3.852-3.852-8.93 8.887-1.516 5.41 5.41-1.515 8.888-8.93Zm-.636-8.934a2.28 2.28 0 0 1 2.512.505l2.702 2.717.002.002a2.278 2.278 0 0 1 0 3.234l-.002.002-12.541 12.602a.75.75 0 0 1-.33.193l-6.884 1.928a.75.75 0 0 1-.925-.924l1.928-6.885a.75.75 0 0 1 .193-.33l12.603-12.54a2.28 2.28 0 0 1 .742-.504Z' clip-rule='evenodd'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-enhance' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19 13h-2m0 0a4 4 0 0 1-4-4m4 4a4 4 0 0 0-4 4m0-8V7m0 2a4 4 0 0 1-4 4m-2 0h2m0 0a4 4 0 0 1 4 4m0 0v2M8 8.5H6.5m0 0a2 2 0 0 1-2-2m2 2a2 2 0 0 0-2 2m0-4V5m0 1.5a2 2 0 0 1-2 2M1 8.5h1.5m0 0a2 2 0 0 1 2 2m0 0V12M12 3h-1m0 0a1 1 0 0 1-1-1m1 1a1 1 0 0 0-1 1m0-2V1m0 1a1 1 0 0 1-1 1M8 3h1m0 0a1 1 0 0 1 1 1m0 0v1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-exposure' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M10 20v-3M2.93 2.929 5.05 5.05M0 10h3m-.07 7.071 2.12-2.121M10 0v3m7.07 14.071-2.12-2.121M20 10h-3m.07-7.071L14.95 5.05M5 10a5 5 0 1 0 10 0 5 5 0 1 0-10 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-filters' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M4.5 6.5a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m-3.5 6a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0m7 0a5.5 5.5 0 1 0 11 0 5.5 5.5 0 1 0-11 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-flip' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M19.6 5 18 3.5 16.4 5m3.2 10L18 16.5 16.4 15M18 3.523v12.954M3.3 8.5h10.654c.301 0 .415-.395.159-.554L3.459 1.286A.3.3 0 0 0 3 1.542V8.2a.3.3 0 0 0 .3.3zm0 3h10.654c.301 0 .415.395.159.554l-10.654 6.66A.3.3 0 0 1 3 18.458v-6.66a.3.3 0 0 1 .3-.3z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-gamma' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M17 3C9 6 2.5 11.5 2.5 17.5m0 0h1m-1 0v-1m14 1h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3 0h1m-3-14v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1m0 3v-1'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-mirror' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M5 .4 3.5 2 5 3.6M15 .4 16.5 2 15 3.6M3.52 2h12.957M8.5 16.7V6.046c0-.301-.394-.415-.554-.159L1.287 16.541a.3.3 0 0 0 .255.459H8.2a.3.3 0 0 0 .3-.3zm3 0V6.046c0-.301.395-.415.555-.159l6.659 10.654a.3.3 0 0 1-.255.459H11.8a.3.3 0 0 1-.3-.3z'/></symbol><symbol viewBox='0 0 40 40' id='uc-icon-original' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.5' d='M0 40 40 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-rotate' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M13.5.4 12 2l1.5 1.6M12.023 2H14.4A3.6 3.6 0 0 1 18 5.6V8M4 17h9a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H4a1 1 0 0 0-1 1v9a1 1 0 0 0 1 1z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-sad' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M2 17c4.418-4 11.582-4 16 0M16.5 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0zm-11 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-saturation' xmlns='http://www.w3.org/2000/svg'><defs><linearGradient id='ruc-icon-id__a' x1='10.001' y1='1' x2='10.001' y2='19' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs><circle cx='10.001' cy='10' r='9' transform='rotate(90 10 10)' fill='url(#ruc-icon-id__a)'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-slider' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M0 10h11m0 0a2 2 0 1 0 4 0m-4 0a2 2 0 1 1 4 0m0 0h5'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-tuning' xmlns='http://www.w3.org/2000/svg'><path stroke-linejoin='round' fill='none' stroke='currentColor' stroke-width='1.2' d='M8 10h11M1 10h4M1 4.5h11m3 0h4m-18 11h11m3 0h4m-7-11a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0M5 10a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0m7 5.5a1.5 1.5 0 1 0 3 0 1.5 1.5 0 1 0-3 0'/></symbol><symbol viewBox='0 0 20 20' id='uc-icon-vibrance' xmlns='http://www.w3.org/2000/svg'><path d='M2.125 5.64A8.96 8.96 0 0 0 1.001 10a8.96 8.96 0 0 0 1.124 4.36V5.64z' fill='url(#uuc-icon-id__a)'/><path d='M2.875 15.499V4.502a9.053 9.053 0 0 1 1.75-1.72v14.437a9.05 9.05 0 0 1-1.75-1.72z' fill='url(#uuc-icon-id__b)'/><path d='M5.375 17.722c.548.33 1.134.601 1.75.809V1.469a8.956 8.956 0 0 0-1.75.81v15.443z' fill='url(#uuc-icon-id__c)'/><path d='M7.875 1.253v17.495c.564.136 1.15.22 1.75.244V1.008a9 9 0 0 0-1.75.245z' fill='url(#uuc-icon-id__d)'/><path d='M10.375 1.008v17.984a9 9 0 0 0 1.75-.244V1.252a9 9 0 0 0-1.75-.244z' fill='url(#uuc-icon-id__e)'/><path d='M12.875 1.469V18.53a8.957 8.957 0 0 0 1.75-.808V2.277a8.957 8.957 0 0 0-1.75-.808z' fill='url(#uuc-icon-id__f)'/><path d='M15.375 2.78v14.44a9.053 9.053 0 0 0 1.75-1.72v-11a9.054 9.054 0 0 0-1.75-1.72z' fill='url(#uuc-icon-id__g)'/><path d='M17.875 5.638v8.724A8.959 8.959 0 0 0 19.001 10a8.96 8.96 0 0 0-1.126-4.362z' fill='url(#uuc-icon-id__h)'/><defs><linearGradient id='uuc-icon-id__a' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__b' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__c' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__d' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__e' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__f' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__g' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient><linearGradient id='uuc-icon-id__h' x1='19.001' y1='10' x2='1.001' y2='10' gradientUnits='userSpaceOnUse'><stop stop-color='#DE15FF'/><stop offset='.203' stop-color='#0029FF'/><stop offset='.479' stop-color='#2AE4F0'/><stop offset='.604' stop-color='#15EF11'/><stop offset='.75' stop-color='#FAE528'/><stop offset='1' stop-color='#EB2A2A'/></linearGradient></defs></symbol><symbol viewBox='0 0 20 20' id='uc-icon-warmth' xmlns='http://www.w3.org/2000/svg'><path d='m7.5 13.05.429.42.171-.175v-.244h-.6zm5 0h-.6v.245l.172.175.428-.42zM8.1 3.5c0-1.05.85-1.9 1.9-1.9V.4a3.1 3.1 0 0 0-3.1 3.1h1.2zm0 9.55V3.5H6.9v9.55h1.2zm-1 2.45c0-.79.315-1.506.829-2.03l-.858-.84A4.088 4.088 0 0 0 5.9 15.5h1.2zm2.9 2.9a2.9 2.9 0 0 1-2.9-2.9H5.9a4.1 4.1 0 0 0 4.1 4.1v-1.2zm2.9-2.9a2.9 2.9 0 0 1-2.9 2.9v1.2a4.1 4.1 0 0 0 4.1-4.1h-1.2zm-.829-2.03c.514.524.829 1.24.829 2.03h1.2c0-1.117-.447-2.13-1.171-2.87l-.858.84zM11.9 3.5v9.55h1.2V3.5h-1.2zM10 1.6c1.05 0 1.9.85 1.9 1.9h1.2A3.1 3.1 0 0 0 10 .4v1.2z' fill='currentColor'/><path d='M10 14V8' stroke='currentColor' stroke-width='1.2' stroke-linecap='round'/><path d='M14 3h3m-3 3h3m-3 3h3m-8 6.5a1 1 0 1 0 2 0 1 1 0 1 0-2 0' stroke='currentColor' stroke-width='1.2'/></symbol></svg>
321
+ <div class="uc-wrapper uc-wrapper_desktop">
322
+ <uc-presence-toggle class="uc-network_problems_splash" set="visible: presence.networkProblems;">
323
+ <div class="uc-network_problems_content">
324
+ <div class="uc-network_problems_icon">
325
+ <uc-icon name="sad"></uc-icon>
326
+ </div>
327
+ <div class="uc-network_problems_text">Network error</div>
328
+ </div>
329
+ <div class="uc-network_problems_footer">
330
+ <uc-btn-ui theme="primary" text="Retry" set="onclick: *on.retryNetwork"></uc-btn-ui>
331
+ </div>
332
+ </uc-presence-toggle>
333
+ <div class="uc-viewport">
334
+ <div class="uc-file_type_outer">
335
+ <div class="uc-file_type">{{fileType}}</div>
336
+ </div>
337
+ <div class="uc-image_container" ref="img-container-el">
338
+ <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=" class="uc-image uc-image_visible_from_editor" ref="img-el" />
339
+ <uc-editor-image-cropper ref="cropper-el"></uc-editor-image-cropper>
340
+ <uc-editor-image-fader ref="fader-el"></uc-editor-image-fader>
341
+ </div>
342
+ <div class="uc-info_pan">{{msg}}</div>
343
+ </div>
344
+ <div class="uc-toolbar">
345
+ <uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
346
+ <div class="uc-toolbar_content uc-toolbar_content__editor">
347
+ <uc-editor-toolbar></uc-editor-toolbar>
348
+ </div>
349
+ </div>
350
+ </div>
351
+ `;
352
+ static observedAttributes = ["uuid", "cdn-url", "crop-preset", "tabs"];
223
353
  static reg = () => {};
224
- static addInitializer = () => {};
225
- static createProperty = () => {};
226
- static getPropertyDescriptor = () => {};
227
- static getPropertyOptions = () => {};
228
- static finalize = () => {};
229
- static finalizeStyles = () => {};
230
- static shadowRootOptions = { mode: "open" };
354
+ static is = `sym-1`;
355
+ static bindAttributes = () => {};
231
356
  };
232
357
  export const Config = class {
233
358
  static observedAttributes = [
234
- "ctx-name",
235
359
  "debug",
236
360
  "pubkey",
237
361
  "multiple",
@@ -350,53 +474,39 @@ export const Config = class {
350
474
  "testmode",
351
475
  "qualityinsights",
352
476
  ];
353
- static styleAttrs = [];
354
- static finalized = {};
355
- static elementProperties = {};
356
- static elementStyles = [];
357
477
  static reg = () => {};
358
- static addInitializer = () => {};
359
- static createProperty = () => {};
360
- static getPropertyDescriptor = () => {};
361
- static getPropertyOptions = () => {};
362
- static finalize = () => {};
363
- static finalizeStyles = () => {};
364
- static shadowRootOptions = { mode: "open" };
478
+ static styleAttrs = [];
479
+ static is = `sym-1`;
480
+ static bindAttributes = () => {};
365
481
  };
366
482
  export const Copyright = class {
367
- static styleAttrs = [];
368
- static finalized = {};
369
- static elementProperties = {};
370
- static elementStyles = [];
483
+ static template = `
484
+ <a
485
+ href="https://uploadcare.com/?utm_source=copyright&utm_medium=referral&utm_campaign=v4"
486
+ target="_blank noopener"
487
+ class="uc-credits"
488
+ >Powered by Uploadcare</a
489
+ >
490
+ `;
371
491
  static reg = () => {};
372
- static addInitializer = () => {};
373
- static createProperty = () => {};
374
- static getPropertyDescriptor = () => {};
375
- static getPropertyOptions = () => {};
376
- static finalize = () => {};
377
- static finalizeStyles = () => {};
378
- static shadowRootOptions = { mode: "open" };
492
+ static styleAttrs = [];
493
+ static is = `sym-1`;
494
+ static bindAttributes = () => {};
379
495
  };
380
496
  export const CropFrame = class {
381
- static elementProperties = {};
382
- static styleAttrs = [];
383
- static finalized = {};
384
- static elementStyles = [];
497
+ static template =
498
+ ` <svg class="uc-svg" ref="svg-el" xmlns="http://www.w3.org/2000/svg"></svg> `;
385
499
  static reg = () => {};
386
- static addInitializer = () => {};
387
- static createProperty = () => {};
388
- static getPropertyDescriptor = () => {};
389
- static getPropertyOptions = () => {};
390
- static finalize = () => {};
391
- static finalizeStyles = () => {};
392
- static shadowRootOptions = { mode: "open" };
500
+ static styleAttrs = [];
501
+ static is = `sym-1`;
502
+ static bindAttributes = () => {};
393
503
  };
394
504
  export const Data = class {
505
+ static warn = () => {};
395
506
  static registerCtx = () => {};
396
507
  static deleteCtx = () => {};
397
508
  static getCtx = () => {};
398
- static hasCtx = () => {};
399
- static Ft = {};
509
+ static globalStore = {};
400
510
  static apply = () => {};
401
511
  static bind = () => {};
402
512
  static call = () => {};
@@ -409,7 +519,26 @@ export const Data = class {
409
519
  };
410
520
  export const DropArea = class {
411
521
  static styleAttrs = [];
412
- static elementProperties = {};
522
+ static template = `
523
+ <slot>
524
+ <div data-default-slot hidden></div>
525
+ <div ref="content-wrapper" class="uc-content-wrapper" set="@hidden: !isVisible">
526
+ <div class="uc-icon-container" set="@hidden: !withIcon">
527
+ <uc-icon name="default"></uc-icon>
528
+ <uc-icon name="arrow-down"></uc-icon>
529
+ </div>
530
+ <span class="uc-text">{{text}}</span>
531
+ </div>
532
+ </slot>
533
+ `;
534
+ static observedAttributes = [
535
+ "with-icon",
536
+ "clickable",
537
+ "text",
538
+ "fullscreen",
539
+ "disabled",
540
+ "initflow",
541
+ ];
413
542
  static extSrcList = {
414
543
  FACEBOOK: "facebook",
415
544
  DROPBOX: "dropbox",
@@ -443,9 +572,6 @@ export const DropArea = class {
443
572
  ONEDRIVE: "onedrive",
444
573
  HUDDLE: "huddle",
445
574
  };
446
- static finalized = {};
447
- static elementStyles = [];
448
- static jt = {};
449
575
  static activities = {
450
576
  START_FROM: "start-from",
451
577
  CAMERA: "camera",
@@ -456,156 +582,280 @@ export const DropArea = class {
456
582
  EXTERNAL: "external",
457
583
  };
458
584
  static reg = () => {};
459
- static addInitializer = () => {};
460
- static createProperty = () => {};
461
- static getPropertyDescriptor = () => {};
462
- static getPropertyOptions = () => {};
463
- static finalize = () => {};
464
- static finalizeStyles = () => {};
465
- static shadowRootOptions = { mode: "open" };
585
+ static is = `sym-1`;
586
+ static bindAttributes = () => {};
466
587
  };
467
588
  export const EditorAspectRatioButtonControl = class {
468
- static elementProperties = {};
469
- static finalized = {};
470
- static elementStyles = [];
471
- static styleAttrs = [];
589
+ static template = `
590
+ <button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
591
+ <uc-icon ref="icon-el" set="@name: icon;"></uc-icon>
592
+ <div class="uc-title" ref="title-el">{{title}}</div>
593
+ </button>
594
+ `;
472
595
  static reg = () => {};
473
- static addInitializer = () => {};
474
- static createProperty = () => {};
475
- static getPropertyDescriptor = () => {};
476
- static getPropertyOptions = () => {};
477
- static finalize = () => {};
478
- static finalizeStyles = () => {};
479
- static shadowRootOptions = { mode: "open" };
596
+ static styleAttrs = [];
597
+ static is = `sym-1`;
598
+ static bindAttributes = () => {};
480
599
  };
481
600
  export const EditorCropButtonControl = class {
482
- static elementProperties = {};
483
- static finalized = {};
484
- static elementStyles = [];
485
- static styleAttrs = [];
601
+ static template = `
602
+ <button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
603
+ <uc-icon ref="icon-el" set="@name: icon;"></uc-icon>
604
+ <div class="uc-title" ref="title-el">{{title}}</div>
605
+ </button>
606
+ `;
486
607
  static reg = () => {};
487
- static addInitializer = () => {};
488
- static createProperty = () => {};
489
- static getPropertyDescriptor = () => {};
490
- static getPropertyOptions = () => {};
491
- static finalize = () => {};
492
- static finalizeStyles = () => {};
493
- static shadowRootOptions = { mode: "open" };
608
+ static styleAttrs = [];
609
+ static is = `sym-1`;
610
+ static bindAttributes = () => {};
494
611
  };
495
612
  export const EditorFilterControl = class {
496
- static elementProperties = {};
497
- static finalized = {};
498
- static elementStyles = [];
499
- static styleAttrs = [];
613
+ static template = `
614
+ <button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
615
+ <uc-icon ref="icon-el" set="@name: icon;"></uc-icon>
616
+ <div class="uc-title" ref="title-el">{{title}}</div>
617
+ </button>
618
+ `;
500
619
  static reg = () => {};
501
- static addInitializer = () => {};
502
- static createProperty = () => {};
503
- static getPropertyDescriptor = () => {};
504
- static getPropertyOptions = () => {};
505
- static finalize = () => {};
506
- static finalizeStyles = () => {};
507
- static shadowRootOptions = { mode: "open" };
620
+ static styleAttrs = [];
621
+ static is = `sym-1`;
622
+ static bindAttributes = () => {};
508
623
  };
509
624
  export const EditorFreeformButtonControl = class {
510
- static elementProperties = {};
511
- static finalized = {};
512
- static elementStyles = [];
513
- static styleAttrs = [];
625
+ static template = `
626
+ <button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
627
+ <uc-icon ref="icon-el" set="@name: icon;"></uc-icon>
628
+ <div class="uc-title" ref="title-el">{{title}}</div>
629
+ </button>
630
+ `;
514
631
  static reg = () => {};
515
- static addInitializer = () => {};
516
- static createProperty = () => {};
517
- static getPropertyDescriptor = () => {};
518
- static getPropertyOptions = () => {};
519
- static finalize = () => {};
520
- static finalizeStyles = () => {};
521
- static shadowRootOptions = { mode: "open" };
632
+ static styleAttrs = [];
633
+ static is = `sym-1`;
634
+ static bindAttributes = () => {};
522
635
  };
523
636
  export const EditorImageCropper = class {
524
- static elementProperties = {};
525
- static styleAttrs = [];
526
- static finalized = {};
527
- static elementStyles = [];
637
+ static template = `
638
+ <canvas class="uc-canvas" ref="canvas-el"></canvas>
639
+ <uc-crop-frame ref="frame-el"></uc-crop-frame>
640
+ `;
528
641
  static reg = () => {};
529
- static addInitializer = () => {};
530
- static createProperty = () => {};
531
- static getPropertyDescriptor = () => {};
532
- static getPropertyOptions = () => {};
533
- static finalize = () => {};
534
- static finalizeStyles = () => {};
535
- static shadowRootOptions = { mode: "open" };
642
+ static styleAttrs = [];
643
+ static is = `sym-1`;
644
+ static bindAttributes = () => {};
536
645
  };
537
646
  export const EditorImageFader = class {
538
- static styleAttrs = [];
539
- static finalized = {};
540
- static elementProperties = {};
541
- static elementStyles = [];
542
647
  static reg = () => {};
543
- static addInitializer = () => {};
544
- static createProperty = () => {};
545
- static getPropertyDescriptor = () => {};
546
- static getPropertyOptions = () => {};
547
- static finalize = () => {};
548
- static finalizeStyles = () => {};
549
- static shadowRootOptions = { mode: "open" };
648
+ static styleAttrs = [];
649
+ static is = `sym-1`;
650
+ static bindAttributes = () => {};
550
651
  };
551
652
  export const EditorOperationControl = class {
552
- static elementProperties = {};
553
- static finalized = {};
554
- static elementStyles = [];
555
- static styleAttrs = [];
653
+ static template = `
654
+ <button role="option" type="button" set="@aria-label:title-prop;" l10n="@title:title-prop;">
655
+ <uc-icon ref="icon-el" set="@name: icon;"></uc-icon>
656
+ <div class="uc-title" ref="title-el">{{title}}</div>
657
+ </button>
658
+ `;
556
659
  static reg = () => {};
557
- static addInitializer = () => {};
558
- static createProperty = () => {};
559
- static getPropertyDescriptor = () => {};
560
- static getPropertyOptions = () => {};
561
- static finalize = () => {};
562
- static finalizeStyles = () => {};
563
- static shadowRootOptions = { mode: "open" };
660
+ static styleAttrs = [];
661
+ static is = `sym-1`;
662
+ static bindAttributes = () => {};
564
663
  };
565
664
  export const EditorScroller = class {
566
- static styleAttrs = [];
567
- static finalized = {};
568
- static elementProperties = {};
569
- static elementStyles = [];
665
+ static template = ` <slot></slot> `;
570
666
  static reg = () => {};
571
- static addInitializer = () => {};
572
- static createProperty = () => {};
573
- static getPropertyDescriptor = () => {};
574
- static getPropertyOptions = () => {};
575
- static finalize = () => {};
576
- static finalizeStyles = () => {};
577
- static shadowRootOptions = { mode: "open" };
667
+ static styleAttrs = [];
668
+ static is = `sym-1`;
669
+ static bindAttributes = () => {};
578
670
  };
579
671
  export const EditorSlider = class {
580
- static elementProperties = {};
581
- static styleAttrs = [];
582
- static finalized = {};
583
- static elementStyles = [];
672
+ static template = `
673
+ <uc-slider-ui
674
+ ref="slider-el"
675
+ set="disabled: disabled; min: min; max: max; defaultValue: defaultValue; zero: zero; onInput: on.input;"
676
+ ></uc-slider-ui>
677
+ `;
584
678
  static reg = () => {};
585
- static addInitializer = () => {};
586
- static createProperty = () => {};
587
- static getPropertyDescriptor = () => {};
588
- static getPropertyOptions = () => {};
589
- static finalize = () => {};
590
- static finalizeStyles = () => {};
591
- static shadowRootOptions = { mode: "open" };
679
+ static styleAttrs = [];
680
+ static is = `sym-1`;
681
+ static bindAttributes = () => {};
592
682
  };
593
683
  export const EditorToolbar = class {
594
- static elementProperties = {};
595
- static styleAttrs = [];
596
- static finalized = {};
597
- static elementStyles = [];
684
+ static template = `
685
+ <uc-line-loader-ui set="active: showLoader"></uc-line-loader-ui>
686
+ <div class="uc-info-tooltip_container">
687
+ <div class="uc-info-tooltip_wrapper">
688
+ <div ref="tooltip-el" class="uc-info-tooltip uc-info-tooltip_hidden">{{*operationTooltip}}</div>
689
+ </div>
690
+ </div>
691
+ <div class="uc-toolbar-container">
692
+ <uc-presence-toggle
693
+ role="tablist"
694
+ class="uc-sub-toolbar"
695
+ set="visible: presence.mainToolbar; styles: presence.subTopToolbarStyles"
696
+ >
697
+ <div class="uc-tab-content-row">
698
+ <uc-presence-toggle
699
+ id="tab_crop"
700
+ class="uc-tab-content"
701
+ set="visible: presence.tabContent.crop; styles: presence.tabContentStyles"
702
+ >
703
+ <uc-editor-scroller hidden-scrollbar>
704
+ <div class="uc-controls-list_align">
705
+ <div
706
+ role="listbox"
707
+ aria-orientation="horizontal"
708
+ class="uc-controls-list_inner"
709
+ ref="controls-list-crop"
710
+ ></div>
711
+ </div>
712
+ </uc-editor-scroller>
713
+ </uc-presence-toggle>
714
+
715
+ <uc-presence-toggle
716
+ id="tab_tuning"
717
+ class="uc-tab-content"
718
+ set="visible: presence.tabContent.tuning; styles: presence.tabContentStyles"
719
+ >
720
+ <uc-editor-scroller hidden-scrollbar>
721
+ <div class="uc-controls-list_align">
722
+ <div
723
+ role="listbox"
724
+ aria-orientation="horizontal"
725
+ class="uc-controls-list_inner"
726
+ ref="controls-list-tuning"
727
+ ></div>
728
+ </div>
729
+ </uc-editor-scroller>
730
+ </uc-presence-toggle>
731
+
732
+ <uc-presence-toggle
733
+ id="tab_filters"
734
+ class="uc-tab-content"
735
+ set="visible: presence.tabContent.filters; styles: presence.tabContentStyles"
736
+ >
737
+ <uc-editor-scroller hidden-scrollbar>
738
+ <div class="uc-controls-list_align">
739
+ <div
740
+ role="listbox"
741
+ aria-orientation="horizontal"
742
+ class="uc-controls-list_inner"
743
+ ref="controls-list-filters"
744
+ ></div>
745
+ </div>
746
+ </uc-editor-scroller>
747
+ </uc-presence-toggle>
748
+ </div>
749
+ <div class="uc-controls-row">
750
+ <uc-presence-toggle
751
+ class="uc-tab-toggles"
752
+ set="visible: presence.tabToggles; styles: presence.tabTogglesStyles"
753
+ >
754
+ <div ref="tabs-indicator" class="uc-tab-toggles_indicator"></div>
755
+
756
+ <uc-presence-toggle
757
+ class="uc-tab-toggle"
758
+ set="visible: presence.tabToggle.crop; styles: presence.tabToggleStyles;"
759
+ >
760
+ <uc-btn-ui
761
+ theme="tab"
762
+ ref="tab-toggle-crop"
763
+ data-id="crop"
764
+ icon="crop"
765
+ set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_crop; title-prop: a11y-editor-tab-crop"
766
+ >
767
+ </uc-btn-ui>
768
+ </uc-presence-toggle>
769
+
770
+ <uc-presence-toggle
771
+ class="uc-tab-toggle"
772
+ set="visible: presence.tabToggle.tuning; styles: presence.tabToggleStyles;"
773
+ >
774
+ <uc-btn-ui
775
+ theme="tab"
776
+ ref="tab-toggle-tuning"
777
+ data-id="tuning"
778
+ icon="tuning"
779
+ set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_tuning; title-prop: a11y-editor-tab-tuning"
780
+ >
781
+ </uc-btn-ui>
782
+ </uc-presence-toggle>
783
+
784
+ <uc-presence-toggle
785
+ class="uc-tab-toggle"
786
+ set="visible: presence.tabToggle.filters; styles: presence.tabToggleStyles;"
787
+ >
788
+ <uc-btn-ui
789
+ theme="tab"
790
+ ref="tab-toggle-filters"
791
+ data-id="filters"
792
+ icon="filters"
793
+ set="onclick: on.clickTab; aria-role:tab_role; aria-controls:tab_filters; title-prop: a11y-editor-tab-filters"
794
+ >
795
+ </uc-btn-ui>
796
+ </uc-presence-toggle>
797
+
798
+ </uc-presence-toggle>
799
+ <uc-btn-ui style="order: -1" theme="secondary-icon" icon="closeMax" set="onclick: on.cancel; title-prop:cancel">
800
+ </uc-btn-ui>
801
+ <uc-btn-ui theme="primary-icon" icon="done" set="onclick: on.apply; title-prop:apply"> </uc-btn-ui>
802
+ </div>
803
+ </uc-presence-toggle>
804
+ <uc-presence-toggle
805
+ class="uc-sub-toolbar"
806
+ set="visible: presence.subToolbar; styles: presence.subBottomToolbarStyles"
807
+ >
808
+ <div class="uc-slider" set="@hidden:!hideSliderOrList">
809
+ <uc-editor-slider ref="slider-el"></uc-editor-slider>
810
+ </div>
811
+
812
+ <div set="@hidden:hideSliderOrList" class="uc-list-aspect-ratio-container">
813
+ <div class="uc-list-aspect-ratio" ref="list-el"></div>
814
+ </div>
815
+ <div class="uc-controls-row">
816
+ <uc-btn-ui theme="secondary" set="onclick: on.cancelSlider; title-prop:cancel" l10n="@text:cancel"> </uc-btn-ui>
817
+ <uc-btn-ui theme="primary" set="onclick: on.applySlider; title-prop:apply" l10n="@text:apply"> </uc-btn-ui>
818
+ </div>
819
+ </uc-presence-toggle>
820
+ </div>
821
+ `;
598
822
  static reg = () => {};
599
- static addInitializer = () => {};
600
- static createProperty = () => {};
601
- static getPropertyDescriptor = () => {};
602
- static getPropertyOptions = () => {};
603
- static finalize = () => {};
604
- static finalizeStyles = () => {};
605
- static shadowRootOptions = { mode: "open" };
823
+ static styleAttrs = [];
824
+ static is = `sym-1`;
825
+ static bindAttributes = () => {};
606
826
  };
607
827
  export const ExternalSource = class {
608
- static elementProperties = {};
828
+ static template = `
829
+ <uc-activity-header>
830
+ <button
831
+ type="button"
832
+ class="uc-mini-btn uc-close-btn"
833
+ set="onclick: *historyBack"
834
+ l10n="@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close"
835
+ >
836
+ <uc-icon name="close"></uc-icon>
837
+ </button>
838
+ </uc-activity-header>
839
+ <div class="uc-content">
840
+ <div ref="iframeWrapper" class="uc-iframe-wrapper"></div>
841
+ <div class="uc-toolbar" set="@hidden: !toolbarVisible">
842
+ <button type="button" class="uc-cancel-btn uc-secondary-btn" set="onclick: onCancel" l10n="cancel"></button>
843
+ <div set="@hidden: !showSelectionStatus" class="uc-selection-status-box">
844
+ <span>{{counterText}}</span>
845
+ <button type="button" set="onclick: onSelectAll; @hidden: !couldSelectAll" l10n="select-all"></button>
846
+ <button type="button" set="onclick: onDeselectAll; @hidden: !couldDeselectAll" l10n="deselect-all"></button>
847
+ </div>
848
+ <button
849
+ type="button"
850
+ class="uc-done-btn uc-primary-btn"
851
+ set="onclick: onDone; @disabled: !isDoneBtnEnabled; @hidden: !showDoneBtn"
852
+ >
853
+ <uc-spinner set="@hidden: isSelectionReady"></uc-spinner>
854
+ <span l10n="done" set="@class: doneBtnTextClass"></span>
855
+ </button>
856
+ </div>
857
+ </div>
858
+ `;
609
859
  static extSrcList = {
610
860
  FACEBOOK: "facebook",
611
861
  DROPBOX: "dropbox",
@@ -639,9 +889,6 @@ export const ExternalSource = class {
639
889
  ONEDRIVE: "onedrive",
640
890
  HUDDLE: "huddle",
641
891
  };
642
- static finalized = {};
643
- static elementStyles = [];
644
- static jt = {};
645
892
  static activities = {
646
893
  START_FROM: "start-from",
647
894
  CAMERA: "camera",
@@ -651,15 +898,10 @@ export const ExternalSource = class {
651
898
  CLOUD_IMG_EDIT: "cloud-image-edit",
652
899
  EXTERNAL: "external",
653
900
  };
654
- static styleAttrs = [];
655
901
  static reg = () => {};
656
- static addInitializer = () => {};
657
- static createProperty = () => {};
658
- static getPropertyDescriptor = () => {};
659
- static getPropertyOptions = () => {};
660
- static finalize = () => {};
661
- static finalizeStyles = () => {};
662
- static shadowRootOptions = { mode: "open" };
902
+ static styleAttrs = [];
903
+ static is = `sym-1`;
904
+ static bindAttributes = () => {};
663
905
  };
664
906
  export const ExternalUploadSource = {
665
907
  FACEBOOK: "facebook",
@@ -674,10 +916,45 @@ export const ExternalUploadSource = {
674
916
  HUDDLE: "huddle",
675
917
  };
676
918
  export const FileItem = class {
919
+ static template = `
920
+ <div class="uc-inner" set="@finished: isFinished; @uploading: isUploading; @failed: isFailed; @focused: isFocused">
921
+ <uc-thumb set="uid:uid;badgeIcon:badgeIcon"></uc-thumb>
922
+
923
+ <div aria-atomic="true" aria-live="polite" class="uc-file-name-wrapper" set="@aria-label:ariaLabelStatusFile;">
924
+ <span class="uc-file-name" set="@hidden: !showFileNames">{{itemName}}</span>
925
+ <span class="uc-file-error" set="@hidden: !errorText;">{{errorText}}</span>
926
+ <span class="uc-file-hint" set="@hidden: !hint">{{hint}}</span>
927
+ </div>
928
+ <div class="uc-file-actions">
929
+ <button
930
+ type="button"
931
+ l10n="@title:file-item-edit-button;@aria-label:file-item-edit-button"
932
+ class="uc-edit-btn uc-mini-btn"
933
+ set="onclick: onEdit; @hidden: !isEditable"
934
+ data-testid="edit"
935
+ >
936
+ <uc-icon name="edit-file"></uc-icon>
937
+ </button>
938
+ <button
939
+ type="button"
940
+ l10n="@title:file-item-remove-button;@aria-label:file-item-remove-button"
941
+ class="uc-remove-btn uc-mini-btn"
942
+ set="onclick: onRemove;"
943
+ >
944
+ <uc-icon name="remove-file"></uc-icon>
945
+ </button>
946
+ <button type="button" class="uc-upload-btn uc-mini-btn" set="onclick: onUpload;">
947
+ <uc-icon name="upload"></uc-icon>
948
+ </button>
949
+ </div>
950
+ <uc-progress-bar
951
+ class="uc-progress-bar"
952
+ set="value: progressValue; visible: progressVisible; @hasFileName: showFileNames;"
953
+ >
954
+ </uc-progress-bar>
955
+ </div>
956
+ `;
677
957
  static activeInstances = {};
678
- static elementProperties = {};
679
- static finalized = {};
680
- static elementStyles = [];
681
958
  static extSrcList = {
682
959
  FACEBOOK: "facebook",
683
960
  DROPBOX: "dropbox",
@@ -711,7 +988,6 @@ export const FileItem = class {
711
988
  ONEDRIVE: "onedrive",
712
989
  HUDDLE: "huddle",
713
990
  };
714
- static jt = {};
715
991
  static activities = {
716
992
  START_FROM: "start-from",
717
993
  CAMERA: "camera",
@@ -721,57 +997,29 @@ export const FileItem = class {
721
997
  CLOUD_IMG_EDIT: "cloud-image-edit",
722
998
  EXTERNAL: "external",
723
999
  };
724
- static styleAttrs = [];
725
1000
  static reg = () => {};
726
- static addInitializer = () => {};
727
- static createProperty = () => {};
728
- static getPropertyDescriptor = () => {};
729
- static getPropertyOptions = () => {};
730
- static finalize = () => {};
731
- static finalizeStyles = () => {};
732
- static shadowRootOptions = { mode: "open" };
1001
+ static styleAttrs = [];
1002
+ static is = `sym-1`;
1003
+ static bindAttributes = () => {};
733
1004
  };
734
1005
  export const FileUploaderInline = class {
735
1006
  static styleAttrs = [];
736
- static elementProperties = {};
737
- static finalized = {};
738
- static elementStyles = [];
739
1007
  static reg = () => {};
740
- static addInitializer = () => {};
741
- static createProperty = () => {};
742
- static getPropertyDescriptor = () => {};
743
- static getPropertyOptions = () => {};
744
- static finalize = () => {};
745
- static finalizeStyles = () => {};
746
- static shadowRootOptions = { mode: "open" };
1008
+ static is = `sym-1`;
1009
+ static bindAttributes = () => {};
747
1010
  };
748
1011
  export const FileUploaderMinimal = class {
749
1012
  static styleAttrs = [];
750
- static elementProperties = {};
751
- static finalized = {};
752
- static elementStyles = [];
753
1013
  static reg = () => {};
754
- static addInitializer = () => {};
755
- static createProperty = () => {};
756
- static getPropertyDescriptor = () => {};
757
- static getPropertyOptions = () => {};
758
- static finalize = () => {};
759
- static finalizeStyles = () => {};
760
- static shadowRootOptions = { mode: "open" };
1014
+ static is = `sym-1`;
1015
+ static bindAttributes = () => {};
761
1016
  };
762
1017
  export const FileUploaderRegular = class {
763
1018
  static styleAttrs = [];
764
- static elementProperties = {};
765
- static finalized = {};
766
- static elementStyles = [];
1019
+ static observedAttributes = ["headless"];
767
1020
  static reg = () => {};
768
- static addInitializer = () => {};
769
- static createProperty = () => {};
770
- static getPropertyDescriptor = () => {};
771
- static getPropertyOptions = () => {};
772
- static finalize = () => {};
773
- static finalizeStyles = () => {};
774
- static shadowRootOptions = { mode: "open" };
1021
+ static is = `sym-1`;
1022
+ static bindAttributes = () => {};
775
1023
  };
776
1024
  export const FormInput = class {
777
1025
  static extSrcList = {
@@ -807,10 +1055,6 @@ export const FormInput = class {
807
1055
  ONEDRIVE: "onedrive",
808
1056
  HUDDLE: "huddle",
809
1057
  };
810
- static finalized = {};
811
- static elementProperties = {};
812
- static elementStyles = [];
813
- static jt = {};
814
1058
  static activities = {
815
1059
  START_FROM: "start-from",
816
1060
  CAMERA: "camera",
@@ -820,29 +1064,22 @@ export const FormInput = class {
820
1064
  CLOUD_IMG_EDIT: "cloud-image-edit",
821
1065
  EXTERNAL: "external",
822
1066
  };
823
- static styleAttrs = [];
824
1067
  static reg = () => {};
825
- static addInitializer = () => {};
826
- static createProperty = () => {};
827
- static getPropertyDescriptor = () => {};
828
- static getPropertyOptions = () => {};
829
- static finalize = () => {};
830
- static finalizeStyles = () => {};
831
- static shadowRootOptions = { mode: "open" };
1068
+ static styleAttrs = [];
1069
+ static is = `sym-1`;
1070
+ static bindAttributes = () => {};
832
1071
  };
833
1072
  export const Icon = class {
834
- static elementProperties = {};
835
- static styleAttrs = [];
836
- static finalized = {};
837
- static elementStyles = [];
1073
+ static template = `
1074
+ <svg ref="svg" xmlns="http://www.w3.org/2000/svg">
1075
+ <use set="@href: href;"></use>
1076
+ </svg>
1077
+ `;
1078
+ static observedAttributes = ["name"];
838
1079
  static reg = () => {};
839
- static addInitializer = () => {};
840
- static createProperty = () => {};
841
- static getPropertyDescriptor = () => {};
842
- static getPropertyOptions = () => {};
843
- static finalize = () => {};
844
- static finalizeStyles = () => {};
845
- static shadowRootOptions = { mode: "open" };
1080
+ static styleAttrs = [];
1081
+ static is = `sym-1`;
1082
+ static bindAttributes = () => {};
846
1083
  };
847
1084
  export const Img = class {
848
1085
  static observedAttributes = [
@@ -866,44 +1103,31 @@ export const Img = class {
866
1103
  "is-preview-blur",
867
1104
  ];
868
1105
  static reg = () => {};
869
- static finalized = {};
870
- static addInitializer = () => {};
871
- static createProperty = () => {};
872
- static getPropertyDescriptor = () => {};
873
- static getPropertyOptions = () => {};
874
- static finalize = () => {};
875
- static finalizeStyles = () => {};
876
- static elementStyles = [];
877
- static shadowRootOptions = { mode: "open" };
878
- static elementProperties = {};
1106
+ static is = `sym-1`;
1107
+ static bindAttributes = () => {};
879
1108
  };
880
1109
  export const LineLoaderUi = class {
881
- static elementProperties = {};
882
- static styleAttrs = [];
883
- static finalized = {};
884
- static elementStyles = [];
1110
+ static template = `
1111
+ <div class="uc-inner">
1112
+ <div class="uc-line" ref="line-el"></div>
1113
+ </div>
1114
+ `;
885
1115
  static reg = () => {};
886
- static addInitializer = () => {};
887
- static createProperty = () => {};
888
- static getPropertyDescriptor = () => {};
889
- static getPropertyOptions = () => {};
890
- static finalize = () => {};
891
- static finalizeStyles = () => {};
892
- static shadowRootOptions = { mode: "open" };
1116
+ static styleAttrs = [];
1117
+ static is = `sym-1`;
1118
+ static bindAttributes = () => {};
893
1119
  };
894
1120
  export const Modal = class {
895
1121
  static styleAttrs = [];
896
- static finalized = {};
897
- static elementProperties = {};
898
- static elementStyles = [];
1122
+ static StateConsumerScope = `modal`;
1123
+ static template = `
1124
+ <dialog ref="dialog">
1125
+ <slot></slot>
1126
+ </dialog>
1127
+ `;
899
1128
  static reg = () => {};
900
- static addInitializer = () => {};
901
- static createProperty = () => {};
902
- static getPropertyDescriptor = () => {};
903
- static getPropertyOptions = () => {};
904
- static finalize = () => {};
905
- static finalizeStyles = () => {};
906
- static shadowRootOptions = { mode: "open" };
1129
+ static is = `sym-1`;
1130
+ static bindAttributes = () => {};
907
1131
  };
908
1132
  export const ModalEvents = {
909
1133
  ADD: "modal:add",
@@ -914,37 +1138,27 @@ export const ModalEvents = {
914
1138
  DESTROY: "modal:destroy",
915
1139
  };
916
1140
  export const PACKAGE_NAME = `blocks`;
917
- export const PACKAGE_VERSION = `1.25.0-alpha.8`;
1141
+ export const PACKAGE_VERSION = `1.25.0`;
918
1142
  export const PresenceToggle = class {
919
- static elementProperties = {};
920
- static styleAttrs = [];
921
- static finalized = {};
922
- static elementStyles = [];
1143
+ static template = `<slot></slot> `;
923
1144
  static reg = () => {};
924
- static addInitializer = () => {};
925
- static createProperty = () => {};
926
- static getPropertyDescriptor = () => {};
927
- static getPropertyOptions = () => {};
928
- static finalize = () => {};
929
- static finalizeStyles = () => {};
930
- static shadowRootOptions = { mode: "open" };
1145
+ static styleAttrs = [];
1146
+ static is = `sym-1`;
1147
+ static bindAttributes = () => {};
931
1148
  };
932
1149
  export const ProgressBar = class {
933
- static elementProperties = {};
934
- static styleAttrs = [];
935
- static finalized = {};
936
- static elementStyles = [];
1150
+ static template = `
1151
+ <div ref="fakeProgressLine" class="uc-fake-progress"></div>
1152
+ <div ref="realProgressLine" class="uc-progress"></div>
1153
+ `;
937
1154
  static reg = () => {};
938
- static addInitializer = () => {};
939
- static createProperty = () => {};
940
- static getPropertyDescriptor = () => {};
941
- static getPropertyOptions = () => {};
942
- static finalize = () => {};
943
- static finalizeStyles = () => {};
944
- static shadowRootOptions = { mode: "open" };
1155
+ static styleAttrs = [];
1156
+ static is = `sym-1`;
1157
+ static bindAttributes = () => {};
945
1158
  };
946
1159
  export const ProgressBarCommon = class {
947
- static elementProperties = {};
1160
+ static template =
1161
+ ` <uc-progress-bar set="visible: visible; value: value"></uc-progress-bar> `;
948
1162
  static extSrcList = {
949
1163
  FACEBOOK: "facebook",
950
1164
  DROPBOX: "dropbox",
@@ -978,9 +1192,6 @@ export const ProgressBarCommon = class {
978
1192
  ONEDRIVE: "onedrive",
979
1193
  HUDDLE: "huddle",
980
1194
  };
981
- static finalized = {};
982
- static elementStyles = [];
983
- static jt = {};
984
1195
  static activities = {
985
1196
  START_FROM: "start-from",
986
1197
  CAMERA: "camera",
@@ -990,33 +1201,32 @@ export const ProgressBarCommon = class {
990
1201
  CLOUD_IMG_EDIT: "cloud-image-edit",
991
1202
  EXTERNAL: "external",
992
1203
  };
993
- static styleAttrs = [];
994
1204
  static reg = () => {};
995
- static addInitializer = () => {};
996
- static createProperty = () => {};
997
- static getPropertyDescriptor = () => {};
998
- static getPropertyOptions = () => {};
999
- static finalize = () => {};
1000
- static finalizeStyles = () => {};
1001
- static shadowRootOptions = { mode: "open" };
1205
+ static styleAttrs = [];
1206
+ static is = `sym-1`;
1207
+ static bindAttributes = () => {};
1002
1208
  };
1003
1209
  export const Select = class {
1004
- static elementProperties = {};
1005
- static styleAttrs = [];
1006
- static finalized = {};
1007
- static elementStyles = [];
1210
+ static template =
1211
+ ` <select ref="select" set="innerHTML: selectHtml; onchange: onSelect"></select> `;
1008
1212
  static reg = () => {};
1009
- static addInitializer = () => {};
1010
- static createProperty = () => {};
1011
- static getPropertyDescriptor = () => {};
1012
- static getPropertyOptions = () => {};
1013
- static finalize = () => {};
1014
- static finalizeStyles = () => {};
1015
- static shadowRootOptions = { mode: "open" };
1213
+ static styleAttrs = [];
1214
+ static is = `sym-1`;
1215
+ static bindAttributes = () => {};
1016
1216
  };
1017
1217
  export const SimpleBtn = class {
1018
1218
  static styleAttrs = [];
1019
- static elementProperties = {};
1219
+ static template = `
1220
+ <uc-drop-area set="@disabled: !withDropZone">
1221
+ <button type="button" set="onclick: onClick">
1222
+ <uc-icon name="upload"></uc-icon>
1223
+ <span l10n="button-text"></span>
1224
+ <slot></slot>
1225
+ <div class="uc-visual-drop-area" l10n="drop-files-here"></div>
1226
+ </button>
1227
+ </uc-drop-area>
1228
+ `;
1229
+ static observedAttributes = ["dropzone"];
1020
1230
  static extSrcList = {
1021
1231
  FACEBOOK: "facebook",
1022
1232
  DROPBOX: "dropbox",
@@ -1050,9 +1260,6 @@ export const SimpleBtn = class {
1050
1260
  ONEDRIVE: "onedrive",
1051
1261
  HUDDLE: "huddle",
1052
1262
  };
1053
- static finalized = {};
1054
- static elementStyles = [];
1055
- static jt = {};
1056
1263
  static activities = {
1057
1264
  START_FROM: "start-from",
1058
1265
  CAMERA: "camera",
@@ -1063,44 +1270,39 @@ export const SimpleBtn = class {
1063
1270
  EXTERNAL: "external",
1064
1271
  };
1065
1272
  static reg = () => {};
1066
- static addInitializer = () => {};
1067
- static createProperty = () => {};
1068
- static getPropertyDescriptor = () => {};
1069
- static getPropertyOptions = () => {};
1070
- static finalize = () => {};
1071
- static finalizeStyles = () => {};
1072
- static shadowRootOptions = { mode: "open" };
1273
+ static is = `sym-1`;
1274
+ static bindAttributes = () => {};
1073
1275
  };
1074
1276
  export const SliderUi = class {
1075
- static elementProperties = {};
1076
- static styleAttrs = [];
1077
- static finalized = {};
1078
- static elementStyles = [];
1277
+ static template = `
1278
+ <div class="uc-steps" ref="steps-el"></div>
1279
+ <div ref="thumb-el" class="uc-thumb"></div>
1280
+ <input
1281
+ class="uc-input"
1282
+ type="range"
1283
+ ref="input-el"
1284
+ set="oninput: on.sliderInput; onchange: on.sliderChange; @min: min; @max: max; @value: defaultValue;"
1285
+ />
1286
+ `;
1079
1287
  static reg = () => {};
1080
- static addInitializer = () => {};
1081
- static createProperty = () => {};
1082
- static getPropertyDescriptor = () => {};
1083
- static getPropertyOptions = () => {};
1084
- static finalize = () => {};
1085
- static finalizeStyles = () => {};
1086
- static shadowRootOptions = { mode: "open" };
1288
+ static styleAttrs = [];
1289
+ static is = `sym-1`;
1290
+ static bindAttributes = () => {};
1087
1291
  };
1088
1292
  export const SolutionBlock = class {
1089
1293
  static styleAttrs = [];
1090
- static finalized = {};
1091
- static elementProperties = {};
1092
- static elementStyles = [];
1093
1294
  static reg = () => {};
1094
- static addInitializer = () => {};
1095
- static createProperty = () => {};
1096
- static getPropertyDescriptor = () => {};
1097
- static getPropertyOptions = () => {};
1098
- static finalize = () => {};
1099
- static finalizeStyles = () => {};
1100
- static shadowRootOptions = { mode: "open" };
1295
+ static is = `sym-1`;
1296
+ static bindAttributes = () => {};
1101
1297
  };
1102
1298
  export const SourceBtn = class {
1103
- static elementProperties = {};
1299
+ static template = `
1300
+ <button type="button">
1301
+ <uc-icon set="@name: iconName"></uc-icon>
1302
+ <div class="uc-txt" l10n="src-type"></div>
1303
+ </button>
1304
+ `;
1305
+ static observedAttributes = ["type"];
1104
1306
  static extSrcList = {
1105
1307
  FACEBOOK: "facebook",
1106
1308
  DROPBOX: "dropbox",
@@ -1134,9 +1336,6 @@ export const SourceBtn = class {
1134
1336
  ONEDRIVE: "onedrive",
1135
1337
  HUDDLE: "huddle",
1136
1338
  };
1137
- static finalized = {};
1138
- static elementStyles = [];
1139
- static jt = {};
1140
1339
  static activities = {
1141
1340
  START_FROM: "start-from",
1142
1341
  CAMERA: "camera",
@@ -1146,46 +1345,25 @@ export const SourceBtn = class {
1146
1345
  CLOUD_IMG_EDIT: "cloud-image-edit",
1147
1346
  EXTERNAL: "external",
1148
1347
  };
1149
- static styleAttrs = [];
1150
1348
  static reg = () => {};
1151
- static addInitializer = () => {};
1152
- static createProperty = () => {};
1153
- static getPropertyDescriptor = () => {};
1154
- static getPropertyOptions = () => {};
1155
- static finalize = () => {};
1156
- static finalizeStyles = () => {};
1157
- static shadowRootOptions = { mode: "open" };
1349
+ static styleAttrs = [];
1350
+ static is = `sym-1`;
1351
+ static bindAttributes = () => {};
1158
1352
  };
1159
1353
  export const SourceList = class {
1160
- static elementProperties = {};
1161
- static styleAttrs = [];
1162
- static finalized = {};
1163
- static elementStyles = [];
1164
1354
  static reg = () => {};
1165
- static addInitializer = () => {};
1166
- static createProperty = () => {};
1167
- static getPropertyDescriptor = () => {};
1168
- static getPropertyOptions = () => {};
1169
- static finalize = () => {};
1170
- static finalizeStyles = () => {};
1171
- static shadowRootOptions = { mode: "open" };
1355
+ static styleAttrs = [];
1356
+ static is = `sym-1`;
1357
+ static bindAttributes = () => {};
1172
1358
  };
1173
1359
  export const Spinner = class {
1174
- static styleAttrs = [];
1175
- static finalized = {};
1176
- static elementProperties = {};
1177
- static elementStyles = [];
1360
+ static template = ` <div class="uc-spinner"></div> `;
1178
1361
  static reg = () => {};
1179
- static addInitializer = () => {};
1180
- static createProperty = () => {};
1181
- static getPropertyDescriptor = () => {};
1182
- static getPropertyOptions = () => {};
1183
- static finalize = () => {};
1184
- static finalizeStyles = () => {};
1185
- static shadowRootOptions = { mode: "open" };
1362
+ static is = `sym-1`;
1363
+ static bindAttributes = () => {};
1186
1364
  };
1187
1365
  export const StartFrom = class {
1188
- static jt = {};
1366
+ static template = ` <div class="uc-content"><slot></slot></div> `;
1189
1367
  static activities = {
1190
1368
  START_FROM: "start-from",
1191
1369
  CAMERA: "camera",
@@ -1195,23 +1373,20 @@ export const StartFrom = class {
1195
1373
  CLOUD_IMG_EDIT: "cloud-image-edit",
1196
1374
  EXTERNAL: "external",
1197
1375
  };
1198
- static finalized = {};
1199
- static elementProperties = {};
1200
- static elementStyles = [];
1201
- static styleAttrs = [];
1202
1376
  static reg = () => {};
1203
- static addInitializer = () => {};
1204
- static createProperty = () => {};
1205
- static getPropertyDescriptor = () => {};
1206
- static getPropertyOptions = () => {};
1207
- static finalize = () => {};
1208
- static finalizeStyles = () => {};
1209
- static shadowRootOptions = { mode: "open" };
1377
+ static styleAttrs = [];
1378
+ static is = `sym-1`;
1379
+ static bindAttributes = () => {};
1210
1380
  };
1211
1381
  export const Thumb = class {
1212
- static elementProperties = {};
1213
- static finalized = {};
1214
- static elementStyles = [];
1382
+ static template = `
1383
+ <div class="uc-thumb" set="style.backgroundImage: thumbUrl">
1384
+ <div class="uc-badge">
1385
+ <uc-icon set="@name: badgeIcon"></uc-icon>
1386
+ </div>
1387
+ </div>
1388
+ `;
1389
+ static observedAttributes = ["badgeIcon", "uid"];
1215
1390
  static extSrcList = {
1216
1391
  FACEBOOK: "facebook",
1217
1392
  DROPBOX: "dropbox",
@@ -1245,7 +1420,6 @@ export const Thumb = class {
1245
1420
  ONEDRIVE: "onedrive",
1246
1421
  HUDDLE: "huddle",
1247
1422
  };
1248
- static jt = {};
1249
1423
  static activities = {
1250
1424
  START_FROM: "start-from",
1251
1425
  CAMERA: "camera",
@@ -1255,17 +1429,23 @@ export const Thumb = class {
1255
1429
  CLOUD_IMG_EDIT: "cloud-image-edit",
1256
1430
  EXTERNAL: "external",
1257
1431
  };
1258
- static styleAttrs = [];
1259
1432
  static reg = () => {};
1260
- static addInitializer = () => {};
1261
- static createProperty = () => {};
1262
- static getPropertyDescriptor = () => {};
1263
- static getPropertyOptions = () => {};
1264
- static finalize = () => {};
1265
- static finalizeStyles = () => {};
1266
- static shadowRootOptions = { mode: "open" };
1433
+ static styleAttrs = [];
1434
+ static is = `sym-1`;
1435
+ static bindAttributes = () => {};
1436
+ };
1437
+ export const UID = class {
1438
+ static generate = () => {};
1439
+ static apply = () => {};
1440
+ static bind = () => {};
1441
+ static call = () => {};
1442
+ static toString = () => {};
1443
+ static hasOwnProperty = () => {};
1444
+ static isPrototypeOf = () => {};
1445
+ static propertyIsEnumerable = () => {};
1446
+ static valueOf = () => {};
1447
+ static toLocaleString = () => {};
1267
1448
  };
1268
- export const UID = () => {};
1269
1449
  export const UploadCtxProvider = class {
1270
1450
  static styleAttrs = [];
1271
1451
  static EventType = {
@@ -1321,10 +1501,6 @@ export const UploadCtxProvider = class {
1321
1501
  ONEDRIVE: "onedrive",
1322
1502
  HUDDLE: "huddle",
1323
1503
  };
1324
- static finalized = {};
1325
- static elementProperties = {};
1326
- static elementStyles = [];
1327
- static jt = {};
1328
1504
  static activities = {
1329
1505
  START_FROM: "start-from",
1330
1506
  CAMERA: "camera",
@@ -1335,16 +1511,66 @@ export const UploadCtxProvider = class {
1335
1511
  EXTERNAL: "external",
1336
1512
  };
1337
1513
  static reg = () => {};
1338
- static addInitializer = () => {};
1339
- static createProperty = () => {};
1340
- static getPropertyDescriptor = () => {};
1341
- static getPropertyOptions = () => {};
1342
- static finalize = () => {};
1343
- static finalizeStyles = () => {};
1344
- static shadowRootOptions = { mode: "open" };
1514
+ static is = `sym-1`;
1515
+ static bindAttributes = () => {};
1345
1516
  };
1346
1517
  export const UploadList = class {
1347
- static elementProperties = {};
1518
+ static template = `
1519
+ <uc-activity-header>
1520
+ <span aria-live="polite" class="uc-header-text">{{headerText}}</span>
1521
+ <button
1522
+ type="button"
1523
+ class="uc-mini-btn uc-close-btn"
1524
+ set="onclick: *closeModal"
1525
+ l10n="@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close"
1526
+ >
1527
+ <uc-icon name="close"></uc-icon>
1528
+ </button>
1529
+ </uc-activity-header>
1530
+
1531
+ <div class="uc-no-files" set="@hidden: hasFiles">
1532
+ <slot name="empty"><span l10n="no-files"></span></slot>
1533
+ </div>
1534
+
1535
+ <div class="uc-files">
1536
+ <div class="uc-files-wrapper" repeat="*uploadList" repeat-item-tag="uc-file-item"></div>
1537
+ <button
1538
+ type="button"
1539
+ class="uc-add-more-btn uc-secondary-btn"
1540
+ set="onclick: onAdd; @disabled: !addMoreBtnEnabled; @hidden: !addMoreBtnVisible"
1541
+ >
1542
+ <uc-icon name="add"></uc-icon><span l10n="add-more"></span>
1543
+ </button>
1544
+ </div>
1545
+
1546
+ <div class="uc-common-error" set="@hidden: !commonErrorMessage; textContent: commonErrorMessage;"></div>
1547
+
1548
+ <div class="uc-toolbar">
1549
+ <button type="button" class="uc-cancel-btn uc-secondary-btn" set="onclick: onCancel;" l10n="clear"></button>
1550
+ <div class="uc-toolbar-spacer"></div>
1551
+ <button
1552
+ type="button"
1553
+ class="uc-add-more-btn uc-secondary-btn"
1554
+ set="onclick: onAdd; @disabled: !addMoreBtnEnabled; @hidden: !addMoreBtnVisible"
1555
+ >
1556
+ <uc-icon name="add"></uc-icon><span l10n="add-more"></span>
1557
+ </button>
1558
+ <button
1559
+ type="button"
1560
+ class="uc-upload-btn uc-primary-btn"
1561
+ set="@hidden: !uploadBtnVisible; onclick: onUpload;"
1562
+ l10n="upload"
1563
+ ></button>
1564
+ <button
1565
+ type="button"
1566
+ class="uc-done-btn uc-primary-btn"
1567
+ set="@hidden: !doneBtnVisible; onclick: onDone; @disabled: !doneBtnEnabled"
1568
+ l10n="done"
1569
+ ></button>
1570
+ </div>
1571
+
1572
+ <uc-drop-area ghost></uc-drop-area>
1573
+ `;
1348
1574
  static extSrcList = {
1349
1575
  FACEBOOK: "facebook",
1350
1576
  DROPBOX: "dropbox",
@@ -1378,9 +1604,6 @@ export const UploadList = class {
1378
1604
  ONEDRIVE: "onedrive",
1379
1605
  HUDDLE: "huddle",
1380
1606
  };
1381
- static finalized = {};
1382
- static elementStyles = [];
1383
- static jt = {};
1384
1607
  static activities = {
1385
1608
  START_FROM: "start-from",
1386
1609
  CAMERA: "camera",
@@ -1390,15 +1613,10 @@ export const UploadList = class {
1390
1613
  CLOUD_IMG_EDIT: "cloud-image-edit",
1391
1614
  EXTERNAL: "external",
1392
1615
  };
1393
- static styleAttrs = [];
1394
1616
  static reg = () => {};
1395
- static addInitializer = () => {};
1396
- static createProperty = () => {};
1397
- static getPropertyDescriptor = () => {};
1398
- static getPropertyOptions = () => {};
1399
- static finalize = () => {};
1400
- static finalizeStyles = () => {};
1401
- static shadowRootOptions = { mode: "open" };
1617
+ static styleAttrs = [];
1618
+ static is = `sym-1`;
1619
+ static bindAttributes = () => {};
1402
1620
  };
1403
1621
  export const UploadSource = {
1404
1622
  LOCAL: "local",
@@ -1455,10 +1673,6 @@ export const UploaderBlock = class {
1455
1673
  ONEDRIVE: "onedrive",
1456
1674
  HUDDLE: "huddle",
1457
1675
  };
1458
- static finalized = {};
1459
- static elementProperties = {};
1460
- static elementStyles = [];
1461
- static jt = {};
1462
1676
  static activities = {
1463
1677
  START_FROM: "start-from",
1464
1678
  CAMERA: "camera",
@@ -1468,18 +1682,42 @@ export const UploaderBlock = class {
1468
1682
  CLOUD_IMG_EDIT: "cloud-image-edit",
1469
1683
  EXTERNAL: "external",
1470
1684
  };
1471
- static styleAttrs = [];
1472
1685
  static reg = () => {};
1473
- static addInitializer = () => {};
1474
- static createProperty = () => {};
1475
- static getPropertyDescriptor = () => {};
1476
- static getPropertyOptions = () => {};
1477
- static finalize = () => {};
1478
- static finalizeStyles = () => {};
1479
- static shadowRootOptions = { mode: "open" };
1686
+ static styleAttrs = [];
1687
+ static is = `sym-1`;
1688
+ static bindAttributes = () => {};
1480
1689
  };
1481
1690
  export const UrlSource = class {
1482
- static elementProperties = {};
1691
+ static template = `
1692
+ <uc-activity-header>
1693
+ <button type="button" class="uc-mini-btn" set="onclick: *historyBack" l10n="@title:back;@aria-label:back">
1694
+ <uc-icon name="back"></uc-icon>
1695
+ </button>
1696
+ <div>
1697
+ <uc-icon name="url"></uc-icon>
1698
+ <span l10n="caption-from-url"></span>
1699
+ </div>
1700
+ <button
1701
+ type="button"
1702
+ class="uc-mini-btn uc-close-btn"
1703
+ set="onclick: *closeModal"
1704
+ l10n="@title:a11y-activity-header-button-close;@aria-label:a11y-activity-header-button-close"
1705
+ >
1706
+ <uc-icon name="close"></uc-icon>
1707
+ </button>
1708
+ </uc-activity-header>
1709
+ <form class="uc-content">
1710
+ <label>
1711
+ <input placeholder="https://" class="uc-url-input" type="text" ref="input" set="oninput: onInput" />
1712
+ </label>
1713
+ <button
1714
+ type="submit"
1715
+ class="uc-url-upload-btn uc-primary-btn"
1716
+ set="onclick: onUpload; @disabled: importDisabled"
1717
+ l10n="upload-url"
1718
+ ></button>
1719
+ </form>
1720
+ `;
1483
1721
  static extSrcList = {
1484
1722
  FACEBOOK: "facebook",
1485
1723
  DROPBOX: "dropbox",
@@ -1513,9 +1751,6 @@ export const UrlSource = class {
1513
1751
  ONEDRIVE: "onedrive",
1514
1752
  HUDDLE: "huddle",
1515
1753
  };
1516
- static finalized = {};
1517
- static elementStyles = [];
1518
- static jt = {};
1519
1754
  static activities = {
1520
1755
  START_FROM: "start-from",
1521
1756
  CAMERA: "camera",
@@ -1525,15 +1760,10 @@ export const UrlSource = class {
1525
1760
  CLOUD_IMG_EDIT: "cloud-image-edit",
1526
1761
  EXTERNAL: "external",
1527
1762
  };
1528
- static styleAttrs = [];
1529
1763
  static reg = () => {};
1530
- static addInitializer = () => {};
1531
- static createProperty = () => {};
1532
- static getPropertyDescriptor = () => {};
1533
- static getPropertyOptions = () => {};
1534
- static finalize = () => {};
1535
- static finalizeStyles = () => {};
1536
- static shadowRootOptions = { mode: "open" };
1764
+ static styleAttrs = [];
1765
+ static is = `sym-1`;
1766
+ static bindAttributes = () => {};
1537
1767
  };
1538
1768
  export const defineComponents = () => {};
1539
1769
  export const defineLocale = () => {};