@shrfe/assets 1.0.72 → 1.0.73-staging.1

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.
@@ -1,37 +1,37 @@
1
1
  :root {
2
2
  --sfe-shadow-small-offset-x: 0px;
3
- --sfe-shadow-small-blur: 0px;
4
- --sfe-shadow-small-spread: 0px;
5
- --sfe-shadow-small-color: 0px;
6
- --sfe-shadow-small-offset-y: 0px;
3
+ --sfe-shadow-small-blur: 3px;
4
+ --sfe-shadow-small-spread: -1px;
5
+ --sfe-shadow-small-color: #0000000f;
6
+ --sfe-shadow-small-offset-y: 1px;
7
7
  --sfe-shadow-medium-offset-x: 0px;
8
- --sfe-shadow-medium-blur: 0px;
9
- --sfe-shadow-medium-spread: 0px;
10
- --sfe-shadow-medium-color: 0px;
11
- --sfe-shadow-medium-offset-y: 0px;
8
+ --sfe-shadow-medium-blur: 10px;
9
+ --sfe-shadow-medium-spread: -3px;
10
+ --sfe-shadow-medium-color: #0000001a;
11
+ --sfe-shadow-medium-offset-y: 4px;
12
12
  --sfe-shadow-xxlarge-offset-x: 0px;
13
- --sfe-shadow-xxlarge-blur: 0px;
14
- --sfe-shadow-xxlarge-spread: 0px;
15
- --sfe-shadow-xxlarge-color: 0px;
16
- --sfe-shadow-xxlarge-offset-y: 0px;
13
+ --sfe-shadow-xxlarge-blur: 52px;
14
+ --sfe-shadow-xxlarge-spread: -12px;
15
+ --sfe-shadow-xxlarge-color: #0000002e;
16
+ --sfe-shadow-xxlarge-offset-y: 24px;
17
17
  --sfe-shadow-inner-offset-x: 0px;
18
- --sfe-shadow-inner-blur: 0px;
18
+ --sfe-shadow-inner-blur: 3px;
19
19
  --sfe-shadow-inner-spread: 0px;
20
- --sfe-shadow-inner-color: 0px;
21
- --sfe-shadow-inner-offset-y: 0px;
20
+ --sfe-shadow-inner-color: #00000014;
21
+ --sfe-shadow-inner-offset-y: 1px;
22
22
  --sfe-shadow-focus-ring-offset-x: 0px;
23
23
  --sfe-shadow-focus-ring-blur: 0px;
24
- --sfe-shadow-focus-ring-spread: 0px;
25
- --sfe-shadow-focus-ring-color: 0px;
24
+ --sfe-shadow-focus-ring-spread: 3px;
25
+ --sfe-shadow-focus-ring-color: #9747ff;
26
26
  --sfe-shadow-focus-ring-offset-y: 0px;
27
27
  --sfe-shadow-large-offset-x: 0px;
28
- --sfe-shadow-large-blur: 0px;
29
- --sfe-shadow-large-spread: 0px;
30
- --sfe-shadow-large-color: 0px;
31
- --sfe-shadow-large-offset-y: 0px;
28
+ --sfe-shadow-large-blur: 20px;
29
+ --sfe-shadow-large-spread: -5px;
30
+ --sfe-shadow-large-color: #0000001f;
31
+ --sfe-shadow-large-offset-y: 8px;
32
32
  --sfe-shadow-xlarge-offset-x: 0px;
33
- --sfe-shadow-xlarge-blur: 0px;
34
- --sfe-shadow-xlarge-spread: 0px;
35
- --sfe-shadow-xlarge-color: 0px;
36
- --sfe-shadow-xlarge-offset-y: 0px;
33
+ --sfe-shadow-xlarge-blur: 32px;
34
+ --sfe-shadow-xlarge-spread: -8px;
35
+ --sfe-shadow-xlarge-color: #00000024;
36
+ --sfe-shadow-xlarge-offset-y: 14px;
37
37
  }
@@ -1,4 +1,61 @@
1
1
  :root {
2
+ --sfe-sizing-gap-1: 1px;
3
+ --sfe-sizing-gap-2: 2px;
4
+ --sfe-sizing-gap-4: 4px;
5
+ --sfe-sizing-gap-6: 6px;
6
+ --sfe-sizing-gap-8: 8px;
7
+ --sfe-sizing-gap-10: 10px;
8
+ --sfe-sizing-gap-12: 12px;
9
+ --sfe-sizing-gap-14: 14px;
10
+ --sfe-sizing-gap-16: 16px;
11
+ --sfe-sizing-gap-18: 18px;
12
+ --sfe-sizing-gap-20: 20px;
13
+ --sfe-sizing-gap-22: 22px;
14
+ --sfe-sizing-gap-24: 24px;
15
+ --sfe-sizing-gap-26: 26px;
16
+ --sfe-sizing-gap-28: 28px;
17
+ --sfe-sizing-gap-30: 30px;
18
+ --sfe-sizing-gap-32: 32px;
19
+ --sfe-sizing-gap-36: 36px;
20
+ --sfe-sizing-gap-40: 40px;
21
+ --sfe-sizing-gap-44: 44px;
22
+ --sfe-sizing-gap-48: 48px;
23
+ --sfe-sizing-gap-52: 52px;
24
+ --sfe-sizing-gap-56: 56px;
25
+ --sfe-sizing-gap-60: 60px;
26
+ --sfe-sizing-gap-64: 64px;
27
+ --sfe-sizing-gap-68: 68px;
28
+ --sfe-sizing-gap-72: 72px;
29
+ --sfe-sizing-gap-76: 76px;
30
+ --sfe-sizing-gap-80: 80px;
31
+ --sfe-sizing-gap-84: 84px;
32
+ --sfe-sizing-gap-88: 88px;
33
+ --sfe-sizing-gap-92: 92px;
34
+ --sfe-sizing-gap-96: 96px;
35
+ --sfe-sizing-gap-100: 100px;
36
+ --sfe-sizing-gap-104: 104px;
37
+ --sfe-sizing-gap-108: 108px;
38
+ --sfe-sizing-gap-112: 112px;
39
+ --sfe-sizing-gap-116: 116px;
40
+ --sfe-sizing-gap-120: 120px;
41
+ --sfe-sizing-gap-128: 128px;
42
+ --sfe-sizing-gap-136: 136px;
43
+ --sfe-sizing-gap-144: 144px;
44
+ --sfe-sizing-gap-152: 152px;
45
+ --sfe-sizing-gap-160: 160px;
46
+ --sfe-sizing-gap-168: 168px;
47
+ --sfe-sizing-gap-176: 176px;
48
+ --sfe-sizing-gap-184: 184px;
49
+ --sfe-sizing-gap-192: 192px;
50
+ --sfe-sizing-gap-200: 200px;
51
+ --sfe-sizing-gap-216: 216px;
52
+ --sfe-sizing-gap-232: 232px;
53
+ --sfe-sizing-gap-248: 248px;
54
+ --sfe-sizing-gap-264: 264px;
55
+ --sfe-sizing-gap-280: 280px;
56
+ --sfe-sizing-gap-296: 296px;
57
+ --sfe-sizing-gap-312: 312px;
58
+ --sfe-sizing-gap-320: 320px;
2
59
  --sfe-sizing-gap-null: 0px;
3
60
  --sfe-sizing-gap-xxsmall: 2px;
4
61
  --sfe-sizing-gap-xsmall: 4px;
@@ -21,6 +78,63 @@
21
78
  --sfe-sizing-radius-large: 12px;
22
79
  --sfe-sizing-radius-xlarge: 16px;
23
80
  --sfe-sizing-radius-round: 99999px;
81
+ --sfe-sizing-padding-1: 1px;
82
+ --sfe-sizing-padding-2: 2px;
83
+ --sfe-sizing-padding-4: 4px;
84
+ --sfe-sizing-padding-6: 6px;
85
+ --sfe-sizing-padding-8: 8px;
86
+ --sfe-sizing-padding-10: 10px;
87
+ --sfe-sizing-padding-12: 12px;
88
+ --sfe-sizing-padding-14: 14px;
89
+ --sfe-sizing-padding-16: 16px;
90
+ --sfe-sizing-padding-18: 18px;
91
+ --sfe-sizing-padding-20: 20px;
92
+ --sfe-sizing-padding-22: 22px;
93
+ --sfe-sizing-padding-24: 24px;
94
+ --sfe-sizing-padding-26: 26px;
95
+ --sfe-sizing-padding-28: 28px;
96
+ --sfe-sizing-padding-30: 30px;
97
+ --sfe-sizing-padding-32: 32px;
98
+ --sfe-sizing-padding-36: 36px;
99
+ --sfe-sizing-padding-40: 40px;
100
+ --sfe-sizing-padding-44: 44px;
101
+ --sfe-sizing-padding-48: 48px;
102
+ --sfe-sizing-padding-52: 52px;
103
+ --sfe-sizing-padding-56: 56px;
104
+ --sfe-sizing-padding-60: 60px;
105
+ --sfe-sizing-padding-64: 64px;
106
+ --sfe-sizing-padding-68: 68px;
107
+ --sfe-sizing-padding-72: 72px;
108
+ --sfe-sizing-padding-76: 76px;
109
+ --sfe-sizing-padding-80: 80px;
110
+ --sfe-sizing-padding-84: 84px;
111
+ --sfe-sizing-padding-88: 88px;
112
+ --sfe-sizing-padding-92: 92px;
113
+ --sfe-sizing-padding-96: 96px;
114
+ --sfe-sizing-padding-100: 100px;
115
+ --sfe-sizing-padding-104: 104px;
116
+ --sfe-sizing-padding-108: 108px;
117
+ --sfe-sizing-padding-112: 112px;
118
+ --sfe-sizing-padding-116: 116px;
119
+ --sfe-sizing-padding-120: 120px;
120
+ --sfe-sizing-padding-128: 128px;
121
+ --sfe-sizing-padding-136: 136px;
122
+ --sfe-sizing-padding-144: 144px;
123
+ --sfe-sizing-padding-152: 152px;
124
+ --sfe-sizing-padding-160: 160px;
125
+ --sfe-sizing-padding-168: 168px;
126
+ --sfe-sizing-padding-176: 176px;
127
+ --sfe-sizing-padding-184: 184px;
128
+ --sfe-sizing-padding-192: 192px;
129
+ --sfe-sizing-padding-200: 200px;
130
+ --sfe-sizing-padding-216: 216px;
131
+ --sfe-sizing-padding-232: 232px;
132
+ --sfe-sizing-padding-248: 248px;
133
+ --sfe-sizing-padding-264: 264px;
134
+ --sfe-sizing-padding-280: 280px;
135
+ --sfe-sizing-padding-296: 296px;
136
+ --sfe-sizing-padding-312: 312px;
137
+ --sfe-sizing-padding-320: 320px;
24
138
  --sfe-sizing-padding-null: 0px;
25
139
  --sfe-sizing-padding-xxsmall: 2px;
26
140
  --sfe-sizing-padding-xsmall: 4px;
@@ -29,7 +143,24 @@
29
143
  --sfe-sizing-padding-default: 16px;
30
144
  --sfe-sizing-padding-large: 24px;
31
145
  --sfe-sizing-padding-xlarge: 32px;
32
- --sfe-sizing-size-120: 12px;
146
+ --sfe-sizing-padding-xxlarge: 40px;
147
+ --sfe-sizing-size-2: 2px;
148
+ --sfe-sizing-size-4: 4px;
149
+ --sfe-sizing-size-8: 8px;
150
+ --sfe-sizing-size-12: 12px;
151
+ --sfe-sizing-size-16: 16px;
152
+ --sfe-sizing-size-20: 20px;
153
+ --sfe-sizing-size-24: 24px;
154
+ --sfe-sizing-size-28: 28px;
155
+ --sfe-sizing-size-32: 32px;
156
+ --sfe-sizing-size-36: 36px;
157
+ --sfe-sizing-size-40: 40px;
158
+ --sfe-sizing-size-44: 44px;
159
+ --sfe-sizing-size-48: 48px;
160
+ --sfe-sizing-size-56: 56px;
161
+ --sfe-sizing-size-64: 64px;
162
+ --sfe-sizing-size-72: 72px;
163
+ --sfe-sizing-size-120: 120px;
33
164
  --sfe-sizing-size-160: 16px;
34
165
  --sfe-sizing-size-200: 20px;
35
166
  --sfe-sizing-size-240: 24px;
@@ -47,4 +178,22 @@
47
178
  --sfe-sizing-size-020: 2px;
48
179
  --sfe-sizing-size-040: 4px;
49
180
  --sfe-sizing-size-080: 8px;
181
+ --sfe-sizing-padding-x-null: 0px;
182
+ --sfe-sizing-padding-x-xxsmall: 2px;
183
+ --sfe-sizing-padding-x-xsmall: 4px;
184
+ --sfe-sizing-padding-x-small: 8px;
185
+ --sfe-sizing-padding-x-mid: 12px;
186
+ --sfe-sizing-padding-x-default: 16px;
187
+ --sfe-sizing-padding-x-large: 24px;
188
+ --sfe-sizing-padding-x-xlarge: 32px;
189
+ --sfe-sizing-padding-x-xxlarge: 40px;
190
+ --sfe-sizing-padding-y-null: 0px;
191
+ --sfe-sizing-padding-y-xxsmall: 2px;
192
+ --sfe-sizing-padding-y-xsmall: 4px;
193
+ --sfe-sizing-padding-y-small: 8px;
194
+ --sfe-sizing-padding-y-mid: 12px;
195
+ --sfe-sizing-padding-y-default: 16px;
196
+ --sfe-sizing-padding-y-large: 24px;
197
+ --sfe-sizing-padding-y-xlarge: 32px;
198
+ --sfe-sizing-padding-y-xxlarge: 40px;
50
199
  }
@@ -7,27 +7,28 @@
7
7
  --sfe-typography-font-windows-system: Segoe UI;
8
8
  --sfe-typography-font-ios-system: SF Pro;
9
9
  --sfe-typography-font-old-font: Rubik;
10
- --sfe-typography-font-size-body-small: 12px;
11
- --sfe-typography-font-size-body-default: 14px;
12
- --sfe-typography-font-size-body-large: 16px;
10
+ --sfe-typography-font-size-body-small: 14px;
11
+ --sfe-typography-font-size-body-default: 16px;
12
+ --sfe-typography-font-size-body-large: 18px;
13
13
  --sfe-typography-font-size-body-xlarge: 20px;
14
- --sfe-typography-font-size-body-xsmall: 10px;
14
+ --sfe-typography-font-size-body-xsmall: 12px;
15
+ --sfe-typography-font-size-body-xxlarge: 24px;
15
16
  --sfe-typography-font-size-subtitle-xsmall: 14px;
16
17
  --sfe-typography-font-size-subtitle-small: 16px;
17
18
  --sfe-typography-font-size-subtitle-default: 20px;
18
19
  --sfe-typography-font-size-subtitle-large: 24px;
19
20
  --sfe-typography-font-size-subtitle-xlarge: 32px;
20
- --sfe-typography-font-size-label-xsmall: 10px;
21
+ --sfe-typography-font-size-label-xsmall: 11px;
21
22
  --sfe-typography-font-size-label-small: 12px;
22
23
  --sfe-typography-font-size-label-default: 14px;
23
24
  --sfe-typography-font-size-label-large: 16px;
24
25
  --sfe-typography-font-size-label-xlarge: 18px;
25
- --sfe-typography-font-size-heading-small: 16px;
26
- --sfe-typography-font-size-heading-large: 24px;
27
- --sfe-typography-font-size-heading-xlarge: 32px;
26
+ --sfe-typography-font-size-heading-small: 18px;
27
+ --sfe-typography-font-size-heading-large: 32px;
28
+ --sfe-typography-font-size-heading-xlarge: 40px;
28
29
  --sfe-typography-font-size-heading-xxlarge: 48px;
29
- --sfe-typography-font-size-heading-xxxlarge: 52px;
30
- --sfe-typography-font-size-heading-medium: 20px;
30
+ --sfe-typography-font-size-heading-xxxlarge: 56px;
31
+ --sfe-typography-font-size-heading-medium: 24px;
31
32
  --sfe-typography-font-size-caption-xsmall: 10px;
32
33
  --sfe-typography-font-size-caption-default: 12px;
33
34
  --sfe-typography-font-size-caption-large: 14px;
@@ -36,9 +37,10 @@
36
37
  --sfe-typography-font-size-display-small: 72px;
37
38
  --sfe-typography-font-size-display-medium: 80px;
38
39
  --sfe-typography-font-size-display-large: 88px;
39
- --sfe-typography-font-size-display-xlarge: 92px;
40
- --sfe-typography-font-size-display-xxlarge: 96px;
41
- --sfe-typography-font-size-display-xxxlarge: 98px;
40
+ --sfe-typography-font-size-display-xlarge: 96px;
41
+ --sfe-typography-font-size-display-xxlarge: 104px;
42
+ --sfe-typography-font-size-display-xxxlarge: 112px;
43
+ --sfe-typography-font-size-display-xsmall: 36px;
42
44
  --sfe-typography-space-letter-10: 1px;
43
45
  --sfe-typography-space-letter-15: 1.5px;
44
46
  --sfe-typography-space-letter-20: 2px;
@@ -48,6 +50,7 @@
48
50
  --sfe-typography-space-letter-40: 4px;
49
51
  --sfe-typography-space-letter-null: 0px;
50
52
  --sfe-typography-space-letter-05: 0.5px;
53
+ --sfe-typography-space-letter-negative-10: -1px;
51
54
  --sfe-typography-space-list-null: 0px;
52
55
  --sfe-typography-space-list-small: 4px;
53
56
  --sfe-typography-space-list-medium: 8px;
@@ -64,32 +67,35 @@
64
67
  --sfe-typography-line-height-heading-medium: 32px;
65
68
  --sfe-typography-line-height-heading-large: 40px;
66
69
  --sfe-typography-line-height-heading-xlarge: 48px;
67
- --sfe-typography-line-height-heading-xxlarge: 52px;
70
+ --sfe-typography-line-height-heading-xxlarge: 56px;
68
71
  --sfe-typography-line-height-heading-xxxlarge: 64px;
69
72
  --sfe-typography-line-height-body-xsmall: 16px;
70
- --sfe-typography-line-height-body-small: 16px;
73
+ --sfe-typography-line-height-body-small: 20px;
71
74
  --sfe-typography-line-height-body-default: 24px;
72
75
  --sfe-typography-line-height-body-large: 24px;
73
- --sfe-typography-line-height-body-xlarge: 32px;
74
- --sfe-typography-line-height-subtitle-xsmall: 16px;
75
- --sfe-typography-line-height-subtitle-small: 20px;
76
- --sfe-typography-line-height-subtitle-default: 24px;
77
- --sfe-typography-line-height-subtitle-large: 28px;
78
- --sfe-typography-line-height-subtitle-xlarge: 36px;
79
- --sfe-typography-line-height-label-xsmall: 14px;
76
+ --sfe-typography-line-height-body-xlarge: 28px;
77
+ --sfe-typography-line-height-subtitle-xsmall: 20px;
78
+ --sfe-typography-line-height-subtitle-small: 24px;
79
+ --sfe-typography-line-height-subtitle-default: 28px;
80
+ --sfe-typography-line-height-subtitle-large: 32px;
81
+ --sfe-typography-line-height-subtitle-xlarge: 40px;
82
+ --sfe-typography-line-height-label-xsmall: 16px;
80
83
  --sfe-typography-line-height-label-small: 16px;
81
84
  --sfe-typography-line-height-label-default: 20px;
82
85
  --sfe-typography-line-height-label-large: 24px;
83
- --sfe-typography-line-height-label-xlarge: 28px;
86
+ --sfe-typography-line-height-label-xlarge: 24px;
87
+ --sfe-typography-line-height-label-action-xsmall-underline: 14px;
84
88
  --sfe-typography-line-height-caption-xsmall: 12px;
85
89
  --sfe-typography-line-height-caption-small: 16px;
86
90
  --sfe-typography-line-height-caption-default: 16px;
87
91
  --sfe-typography-line-height-caption-large: 20px;
88
92
  --sfe-typography-line-height-caption-xlarge: 20px;
89
- --sfe-typography-line-height-display-small: 72px;
90
- --sfe-typography-line-height-display-medium: 80px;
91
- --sfe-typography-line-height-display-large: 88px;
92
- --sfe-typography-line-height-display-xlarge: 92px;
93
- --sfe-typography-line-height-display-xxlarge: 96px;
94
- --sfe-typography-line-height-display-xxxlarge: 98px;
93
+ --sfe-typography-line-height-caption-xxlarge: 24px;
94
+ --sfe-typography-line-height-display-small: 80px;
95
+ --sfe-typography-line-height-display-medium: 88px;
96
+ --sfe-typography-line-height-display-large: 96px;
97
+ --sfe-typography-line-height-display-xlarge: 104px;
98
+ --sfe-typography-line-height-display-xxlarge: 112px;
99
+ --sfe-typography-line-height-display-xxxlarge: 120px;
100
+ --sfe-typography-line-height-display-xsmall: 44px;
95
101
  }
@@ -9,6 +9,8 @@
9
9
  @import './ds/semantics/typography/typography.css';
10
10
  @import './ds/semantics/shadow/shadow.css';
11
11
  @import './ds/component.css';
12
+ @import './ds/brand/system.css';
13
+ @import './ds/brands.css';
12
14
  :root {
13
15
  --fallback-font:
14
16
  -apple-system, blinkmacsystemfont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI Variable Text',
@@ -191,7 +193,6 @@ sup {
191
193
 
192
194
  a {
193
195
  color: #0d6efd;
194
- text-decoration: underline;
195
196
  background-color: transparent;
196
197
  }
197
198
 
@@ -29766,6 +29766,7 @@ __webpack_require__.r(__webpack_exports__);
29766
29766
  // EXPORTS
29767
29767
  __webpack_require__.d(__webpack_exports__, {
29768
29768
  AlertService: function() { return /* reexport */ alert_service_namespaceObject; },
29769
+ BrandService: function() { return /* reexport */ brand_service_namespaceObject; },
29769
29770
  CustomerIoService: function() { return /* reexport */ customerio_service; },
29770
29771
  DataModifierService: function() { return /* reexport */ data_modifier_service_namespaceObject; },
29771
29772
  DraggableService: function() { return /* reexport */ draggable_service; },
@@ -29835,6 +29836,14 @@ __webpack_require__.r(data_modifier_service_namespaceObject);
29835
29836
  __webpack_require__.d(data_modifier_service_namespaceObject, {
29836
29837
  alterUsersForProfileStrip: function() { return alterUsersForProfileStrip; } });
29837
29838
 
29839
+ // NAMESPACE OBJECT: ./src/services/brand-service.ts
29840
+ var brand_service_namespaceObject = {};
29841
+ __webpack_require__.r(brand_service_namespaceObject);
29842
+ __webpack_require__.d(brand_service_namespaceObject, {
29843
+ isBrand: function() { return isBrand; },
29844
+ resolveBrand: function() { return resolveBrand; },
29845
+ setBrand: function() { return setBrand; } });
29846
+
29838
29847
 
29839
29848
  ;// CONCATENATED MODULE: ./src/services/draggable-service.ts
29840
29849
  /*
@@ -36652,21 +36661,25 @@ const PROFILE_KEY_MAP = {
36652
36661
  firstName: 'first_name',
36653
36662
  lastName: 'last_name'
36654
36663
  };
36655
- // Customer.io's documented person attributes; any other profile key is dropped before identify.
36656
- const CUSTOMER_IO_ATTRIBUTES = new Set([
36664
+ // Renamed or ambiguous attributes: the stored key differs from the Customer.io name, or its leaf
36665
+ // ("id", "name") repeats across the tree, so each is pinned to an exact flattened key.
36666
+ const CUSTOMER_IO_ATTRIBUTE_SOURCES = {
36667
+ employee_phone: 'phone_number',
36668
+ employee_id: 'employee_id',
36669
+ employee_ums_user_id: 'breeze_user_id',
36670
+ jobrole_name: 'job_title',
36671
+ company_name: 'employer_name'
36672
+ };
36673
+ // Attributes a module stores under their own name; caught wherever they sit once flattened.
36674
+ const CUSTOMER_IO_ATTRIBUTES = [
36657
36675
  'first_name',
36658
36676
  'last_name',
36659
36677
  'gender',
36660
36678
  'email',
36661
- 'phone_number',
36662
- 'employer_name',
36663
36679
  'employer_address',
36664
36680
  'date_joined',
36665
36681
  'time_in_company',
36666
- 'employee_id',
36667
- 'job_title',
36668
36682
  'department',
36669
- 'breeze_user_id',
36670
36683
  'channel',
36671
36684
  'date_of_birth',
36672
36685
  'location',
@@ -36678,7 +36691,7 @@ const CUSTOMER_IO_ATTRIBUTES = new Set([
36678
36691
  'repayment_status',
36679
36692
  'device',
36680
36693
  'number_of_loans'
36681
- ]);
36694
+ ];
36682
36695
  // Where the SDK persists the identified person (localStorage and cookies).
36683
36696
  const STORED_IDENTITY_KEYS = [
36684
36697
  'ajs_user_id',
@@ -36745,6 +36758,18 @@ const isEventAllowed = (eventName)=>{
36745
36758
  return false;
36746
36759
  }
36747
36760
  };
36761
+ // The login payload nests attributes (employee.first_name, employee.company.name), so flatten to
36762
+ // parent_leaf keys the map can match. Only the immediate parent prefixes; later siblings win a clash.
36763
+ const flattenProfile = (source, containerKey = '', result = {})=>{
36764
+ Object.entries(source).forEach(([key, value])=>{
36765
+ if (value && typeof value === 'object' && !Array.isArray(value)) {
36766
+ flattenProfile(value, key, result);
36767
+ } else {
36768
+ result[containerKey ? `${containerKey}_${key}` : key] = value;
36769
+ }
36770
+ });
36771
+ return result;
36772
+ };
36748
36773
  const toProfileTraits = (profile = {})=>{
36749
36774
  const traits = {};
36750
36775
  Object.entries(profile).forEach(([key, value])=>{
@@ -36795,12 +36820,20 @@ const CustomerIoService = {
36795
36820
  isInitialized () {
36796
36821
  return analytics !== null;
36797
36822
  },
36798
- identify (userId, profile) {
36799
- if (userId === undefined || userId === null || userId === '') return;
36823
+ identify (profile) {
36824
+ const flattened = flattenProfile(profile ?? {});
36800
36825
  const attributeProfile = {};
36801
- CUSTOMER_IO_ATTRIBUTES.forEach((name)=>{
36802
- if (profile && name in profile) attributeProfile[name] = profile[name];
36826
+ Object.entries(CUSTOMER_IO_ATTRIBUTE_SOURCES).forEach(([flatKey, attribute])=>{
36827
+ if (flatKey in flattened) attributeProfile[attribute] = flattened[flatKey];
36828
+ });
36829
+ CUSTOMER_IO_ATTRIBUTES.forEach((attribute)=>{
36830
+ if (attribute in attributeProfile) return;
36831
+ const match = Object.keys(flattened).find((key)=>key === attribute || key.endsWith(`_${attribute}`));
36832
+ if (match) attributeProfile[attribute] = flattened[match];
36803
36833
  });
36834
+ // Customer.io's second identifier (breeze_user_id) is the ums_user_id; it is the person's id.
36835
+ const userId = attributeProfile.breeze_user_id;
36836
+ if (userId === undefined || userId === null || userId === '') return;
36804
36837
  const traits = toProfileTraits(attributeProfile);
36805
36838
  log('identify', userId, traits);
36806
36839
  safely((client)=>client.identify(String(userId), traits));
@@ -37245,12 +37278,12 @@ class HTTPBaseService {
37245
37278
  return Promise.reject(error.response || error);
37246
37279
  };
37247
37280
  async refreshToken() {
37248
- let refreshTokenPath = this.authService.getRefreshTokenPath();
37281
+ const refreshTokenPath = this.authService.getRefreshTokenPath();
37249
37282
  //if (!refreshTokenPath) throw new Error('refreshTokenPath is not configured')
37250
37283
  // Add this temporarily for breeze to work
37251
37284
  if (!refreshTokenPath) {
37252
37285
  setLocalStorageItem('refresh-token-path-not-found', true);
37253
- refreshTokenPath = `${location.origin}/api/v2/auth/refresh-token-web`;
37286
+ //refreshTokenPath = `${location.origin}/api/v2/auth/refresh-token-web`
37254
37287
  }
37255
37288
  const refreshTokenRequest = {
37256
37289
  refresh_token: this.tokenService.getRefreshToken(),
@@ -39856,6 +39889,62 @@ function traverse(value, depth = Infinity, seen) {
39856
39889
  }
39857
39890
  };
39858
39891
 
39892
+ ;// CONCATENATED MODULE: ./src/services/brand-service.ts
39893
+ const DEFAULT_BRAND = 'system';
39894
+ // Must match design-tokens/raw/brand/<slug>.json (each builds ds/brand/<slug>.css).
39895
+ const BRANDS = [
39896
+ 'system',
39897
+ 'accelerex',
39898
+ 'access-pension',
39899
+ 'arm',
39900
+ 'asiko-energy',
39901
+ 'brand-star',
39902
+ 'chapel-hill-denham',
39903
+ 'coronation',
39904
+ 'custodian',
39905
+ 'fmdq',
39906
+ 'grant-thornton',
39907
+ 'julius-berger',
39908
+ 'providus',
39909
+ 'sterling',
39910
+ 'titan-trust',
39911
+ 'vdl',
39912
+ 'wema-bank',
39913
+ 'zebet'
39914
+ ];
39915
+ // Full-hostname match: covers clients on their own domains, and subdomains that don't equal the slug.
39916
+ // A client's branch hosts all map to the same brand.
39917
+ const BRAND_HOSTS = {
39918
+ 'globalaccelerex.seamlesshrms.com': 'accelerex',
39919
+ 'gt.seamlesshrms.com': 'grant-thornton',
39920
+ 'nairabet.seamlesshrms.com': 'brand-star',
39921
+ 'asikoenergy.seamlesshrms.com': 'asiko-energy',
39922
+ 'custodian.seamlesshrms.com': 'custodian',
39923
+ 'access-armpensions.seamlesshrms.com': 'access-pension',
39924
+ 'arm.seamlesshrms.com': 'arm',
39925
+ 'jbnrecruitment.seamlesshiring.com': 'julius-berger',
39926
+ 'hrms.providusbank.com': 'providus',
39927
+ 'vdl.seamlesshrms.com': 'vdl',
39928
+ 'coronation.seamlesshrms.com': 'coronation',
39929
+ 'hchub.sterling.ng': 'sterling',
39930
+ 'wemabank.seamlesshrms.com': 'wema-bank',
39931
+ 'humancapital.chapelhilldenham.com': 'chapel-hill-denham',
39932
+ // For internal testing
39933
+ 'unstable-reco.seamlesshrms.com': 'wema-bank'
39934
+ };
39935
+ function isBrand(slug) {
39936
+ return !!slug && BRANDS.includes(slug);
39937
+ }
39938
+ function resolveBrand(slug, hostname = globalThis.location?.hostname) {
39939
+ if (isBrand(slug)) return slug;
39940
+ return BRAND_HOSTS[hostname?.toLowerCase() ?? ''] ?? DEFAULT_BRAND;
39941
+ }
39942
+ function setBrand(slug) {
39943
+ const brand = resolveBrand(slug);
39944
+ document.documentElement.dataset.brand = brand;
39945
+ return brand;
39946
+ }
39947
+
39859
39948
  ;// CONCATENATED MODULE: ./src/services/event-bus.ts
39860
39949
  /*
39861
39950
  import {ShrEventBus} from '....'
@@ -72550,6 +72639,9 @@ MixpanelService.trackEvent = (nodeEnv, eventName, payload)=>{
72550
72639
 
72551
72640
 
72552
72641
 
72642
+ // Runs synchronously from the <head> script tag, so data-brand is set before first paint.
72643
+ setBrand();
72644
+
72553
72645
  /* export default */ var main_umd = ({});
72554
72646
 
72555
72647
  }();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shrfe/assets",
3
- "version": "1.0.72",
3
+ "version": "1.0.73-staging.1",
4
4
  "description": "The assets used in SeamlessHR products",
5
5
  "author": "SeamlessHR LTD <oludayo@seamlesshr.com>",
6
6
  "license": "ISC",
@@ -1 +1 @@
1
- import{r as e,d as s,h as r,H as l}from"./p-BoRgucbk.js";import{s as a}from"./p-DFCAnQFT.js";const i=class{constructor(r){new.target===i&&e(this,r),this.uploadStart=s(this,"uploadStart",7),this.uploadRetry=s(this,"uploadRetry",7),this.uploadError=s(this,"uploadError",7),this.fileChange=s(this,"fileChange",7)}disabled=!1;extended=!0;thumbnail="file";inverted=!1;hasError=!1;progress=0;multiple=!1;type="draggable";maxFileSize=.5;accepts=[];testId="";uploadStart;uploadRetry;uploadError;fileChange;fileInputRef;files=[];selectedFileIndex=null;get fileDetails(){return this.files.map((e=>({name:e.name,size:(e.size/1024/1024).toFixed(2)})))}get formattedAcceptedFileTypes(){if(!Array.isArray(this.accepts)||0===this.accepts.length)return"";const e=this.accepts.map((e=>e.replace(".","").toUpperCase())),s=e.pop();return 1===this.accepts.length?`${s}.`:`${e.join(", ")} or ${s}.`}get maxFileSizeInfo(){return this.maxFileSize?`Max size of ${this.maxFileSize} MB`:""}resetInputValueToNull=e=>{e.target.value=""};replaceMultipleFile=e=>{const s=e.target,r=s.files?s.files[0]:null;r&&null!==this.selectedFileIndex&&(this.files=this.files.map(((e,s)=>this.selectedFileIndex==s?r:e)),this.selectedFileIndex=null),this.resetInputValueToNull(e),this.checkMaxFileSize()};onChange=e=>{this.uploadStart.emit();const s=this.fileInputRef?.files,r=s?Array.from(s):[];this.multiple&&null!==this.selectedFileIndex&&r.length>0&&this.replaceMultipleFile(e),!this.multiple&&r.length>1&&(this.uploadError.emit("Only one file can be uploaded when multiple is disabled."),a("error","Error","Only one file can be uploaded when multiple is disabled.")),this.files=this.multiple?[...this.files,...r]:r,this.checkMaxFileSize()};triggerFileInput=e=>{e.preventDefault(),this.fileInputRef.click()};dragOver=e=>{e.preventDefault();const s=e.currentTarget;s.classList.contains("sfe-light-blue")||this.disabled||s.classList.add("sfe-light-blue")};dragLeave=e=>{e.preventDefault(),e.currentTarget.classList.remove("sfe-light-blue")};drop=e=>{e.preventDefault(),!this.disabled&&e.dataTransfer&&(this.fileInputRef.files=e.dataTransfer.files,this.onChange(e),e.currentTarget.classList.remove("sfe-light-blue"))};checkMaxFileSize=()=>{if(this.maxFileSize>0){const e=new Set,s=[];this.files.forEach((r=>{r.size/1024/1024>this.maxFileSize?s.push(r):e.add(r)})),s.length>0&&(this.uploadError.emit(`Some files exceed the size limit of ${this.maxFileSize} MB.`),a("error","Error",`The following files exceed the size limit of ${this.maxFileSize} MB: ${s.map((e=>e.name)).join(", ")}`)),this.files=Array.from(e),this.fileChange.emit(this.files)}};removeFile=e=>{const s=e.detail;s>-1&&s<this.files.length&&(this.files=this.files.filter(((e,r)=>r!==s)),this.fileChange.emit(this.files))};handleFileReplace=e=>{const s=e.target;this.selectedFileIndex=e.detail,s.value="",this.triggerFileInput(e)};render(){return r(l,{key:"24d4ab5832d0a046610763be664f4b64cd28cbce"},r("div",{key:"308f054f0dba4c0c1a41b8a178b15127b68f66db",class:"d-block","data-testid":`swc-file-uploader-${this.testId}`},r("input",{key:"514123946a5996e5073bb52007b98932fabc5693",ref:e=>this.fileInputRef=e,type:"file",multiple:this.multiple,disabled:this.disabled,accept:this.accepts.join(","),style:{display:"none"},onClick:this.resetInputValueToNull,onChange:this.onChange}),(!!this.multiple||0===this.fileDetails.length)&&r("div",{key:"76c12b5d3e2c98e0ab24a9d72168d87767d98510"},"basic"===this.type&&r("button",{key:"8c96ba6a0068771a00a1786f85ca9c76efb6349f","aria-label":"choose file",disabled:this.disabled,class:{"basic-uploader":!0,"has-error":this.hasError},onClick:this.triggerFileInput},r("span",{key:"65195dc38a5f3d985cb5970798605e0a4e0c0703",class:"chooser d-flex align-items-center"},"Choose file...")),"basic"!==this.type&&r("button",{key:"1ca12416d714fb2b2df7b3efd0361c1584fa8add",class:{"drag-area":!0,disabled:this.disabled,"not-extended":!this.extended,"has-error":this.hasError},disabled:this.disabled,onDragOver:this.dragOver,onDragLeave:this.dragLeave,onDrop:this.drop,onClick:this.triggerFileInput},r("div",{key:"22474fef95e90c13953abeffb31fcb15c1ee1a25"},r("div",{key:"2752598014bead5f620ead025e69c56147fa5411",class:"drag-label"},"Drag & Drop or ",r("span",{key:"e382460f3730be82dea2dbd5729d89dd1868c66b",class:"choose-file"},"Choose file")," to upload"),this.extended&&r("small",{key:"8cc16c611e8c15dee3cb029e0054819ca78addaf",class:"formats"},this.formattedAcceptedFileTypes," ",this.maxFileSizeInfo)))),!this.multiple&&this.fileDetails.length>0&&r("swc-single-file",{key:"4eaaf838e74f3ddcbc27f992ac8e3cb638702d51",inverted:this.inverted,hasError:this.hasError,fileInfo:this.files,extended:this.extended,thumbnail:this.thumbnail,progress:this.progress,onUpdateRemove:this.removeFile,onUpdateReplace:this.triggerFileInput,onUploadRetry:()=>this.uploadRetry.emit()}),this.multiple&&this.fileDetails.length>0&&r("swc-multiple-file",{key:"da223f93e19c5261df218c856135f7b0e6184f17",inverted:this.inverted,hasError:this.hasError,fileInfo:this.files,progress:this.progress,onUpdateRemove:this.removeFile,onUpdateReplace:this.handleFileReplace,onUploadRetry:()=>this.uploadRetry.emit()})))}};i.style=".sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader{border-radius:var(--sfe-sizing-radius-default, 8px);border:1px dashed var(--sfe-color-border-neutral-subtle, #dee3e7);background-color:var(--sfe-color-fill-backround, #fafbff);color:var(--sfe-color-text-default-primary, rgba(0, 0, 0, 0.95));font-family:var(--sfe-typography-font-serif-font, Sora);font-style:normal;font-weight:400;display:block;width:100%;height:122px;transition:border-color 0.3s ease}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader:hover{border-color:var(--sfe-btn-color-border-solid-brand-hover, #206edd)}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader:focus-visible{outline:2px solid var(--sfe-btn-color-border-solid-brand-hover, #206edd);outline-offset:1px}.sc-swc-file-uploader-h .drag-area.disabled.sc-swc-file-uploader{opacity:0.5;border:1px dashed var(--sfe-color-border-neutral-subtle, #dee3e7)}.sc-swc-file-uploader-h .drag-area.has-error.sc-swc-file-uploader{border-radius:var(--sfe-sizing-radius-default, 8px);border:1px dashed var(--sfe-color-border-critical-solid, #a22827) !important;background:var(--sfe-color-fill-backround, #fafbff)}.sc-swc-file-uploader-h .drag-area.has-error.sc-swc-file-uploader:focus-visible{outline:2px solid var(--sfe-color-non-semantic-content-blue-subtle, #1e50c0);outline-offset:1px}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader div.drag-label.sc-swc-file-uploader{font-size:var(--sfe-typography-font-size-label-default, 0.875rem);line-height:16px;margin-top:16px}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader div.drag-label.sc-swc-file-uploader span.choose-file.sc-swc-file-uploader{color:var(--sfe-color-text-default-brand, #004ca6)}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader small.formats.sc-swc-file-uploader{color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8));font-size:var(--sfe-typography-font-size-label-small, 0.75rem);line-height:14px}.sc-swc-file-uploader-h .drag-area.not-extended.sc-swc-file-uploader{display:flex;align-items:center;justify-content:center;padding:8px 16px;height:36px}.sc-swc-file-uploader-h .drag-area.not-extended.sc-swc-file-uploader div.drag-label.sc-swc-file-uploader{margin-top:0;margin-left:8px;white-space:nowrap}.sc-swc-file-uploader-h .basic-uploader.sc-swc-file-uploader{width:fit-content;height:42px;border-radius:var(--sfe-sizing-radius-default, 8px);border:1px solid var(--sfe-color-border-neutral-subtle, #dee3e7);background:var(--sfe-color-fill-surface, #fff);box-shadow:0 1px 2px 0 rgba(27, 36, 44, 0.12);padding:8px var(--sfe-sizing-gap-large, 16px);transition:border-color 0.5s ease}.sc-swc-file-uploader-h .basic-uploader.sc-swc-file-uploader:focus-visible{outline:2px solid var(--sfe-btn-color-border-solid-brand-hover, #206edd);outline-offset:1px}.sc-swc-file-uploader-h .basic-uploader.sc-swc-file-uploader:hover{border-color:var(--sfe-btn-color-border-solid-brand-hover, #206edd)}.sc-swc-file-uploader-h .basic-uploader.has-error.sc-swc-file-uploader{border:1px solid var(--sfe-color-border-critical-solid, #a22827)}.sc-swc-file-uploader-h .basic-uploader.has-error.sc-swc-file-uploader:focus-visible{outline:2px solid var(--sfe-color-non-semantic-content-blue-subtle, #1e50c0);outline-offset:1px}.sc-swc-file-uploader-h .basic-uploader.sc-swc-file-uploader .chooser.sc-swc-file-uploader{font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-default, 0.875rem);font-style:normal;font-weight:450;line-height:24px;letter-spacing:0.28px;color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8))}.sc-swc-file-uploader-h .sfe-light-blue.sc-swc-file-uploader{border:2px solid var(--sfe-color-border-brand-solid, #0064db);background:var(--sfe-color-fill-neutral-lightest, #f5f7f9)}.sc-swc-file-uploader-h .d-block.sc-swc-file-uploader{display:block}.sc-swc-file-uploader-h .d-flex.sc-swc-file-uploader{display:flex}.sc-swc-file-uploader-h .align-items-center.sc-swc-file-uploader{align-items:center}.sc-swc-file-uploader-h .justify-content-end.sc-swc-file-uploader{justify-content:flex-end}.sc-swc-file-uploader-h .justify-content-between.sc-swc-file-uploader{justify-content:space-between}";export{i as swc_file_uploader}
1
+ import{r as e,d as s,h as r,H as l}from"./p-BoRgucbk.js";import{s as a}from"./p-DFCAnQFT.js";const i=class{constructor(r){new.target===i&&e(this,r),this.uploadStart=s(this,"uploadStart",7),this.uploadRetry=s(this,"uploadRetry",7),this.uploadError=s(this,"uploadError",7),this.fileChange=s(this,"fileChange",7)}disabled=!1;extended=!0;thumbnail="file";inverted=!1;hasError=!1;progress=0;multiple=!1;type="draggable";maxFileSize=.5;accepts=[];testId="";uploadStart;uploadRetry;uploadError;fileChange;fileInputRef;files=[];selectedFileIndex=null;get fileDetails(){return this.files.map((e=>({name:e.name,size:(e.size/1024/1024).toFixed(2)})))}get formattedAcceptedFileTypes(){if(!Array.isArray(this.accepts)||0===this.accepts.length)return"";const e=this.accepts.map((e=>e.replace(".","").toUpperCase())),s=e.pop();return 1===this.accepts.length?`${s}.`:`${e.join(", ")} or ${s}.`}get maxFileSizeInfo(){return this.maxFileSize?`Max size of ${this.maxFileSize} MB`:""}resetInputValueToNull=e=>{e.target.value=""};replaceMultipleFile=e=>{const s=e.target,r=s.files?s.files[0]:null;r&&null!==this.selectedFileIndex&&(this.files=this.files.map(((e,s)=>this.selectedFileIndex==s?r:e)),this.selectedFileIndex=null),this.resetInputValueToNull(e),this.checkMaxFileSize()};onChange=e=>{this.uploadStart.emit();const s=this.fileInputRef?.files,r=s?Array.from(s):[];this.multiple&&null!==this.selectedFileIndex&&r.length>0&&this.replaceMultipleFile(e),!this.multiple&&r.length>1&&(this.uploadError.emit("Only one file can be uploaded when multiple is disabled."),a("error","Error","Only one file can be uploaded when multiple is disabled.")),this.files=this.multiple?[...this.files,...r]:r,this.checkMaxFileSize()};triggerFileInput=e=>{e.preventDefault(),this.fileInputRef.click()};dragOver=e=>{e.preventDefault();const s=e.currentTarget;s.classList.contains("sfe-light-blue")||this.disabled||s.classList.add("sfe-light-blue")};dragLeave=e=>{e.preventDefault(),e.currentTarget.classList.remove("sfe-light-blue")};drop=e=>{e.preventDefault(),!this.disabled&&e.dataTransfer&&(this.fileInputRef.files=e.dataTransfer.files,this.onChange(e),e.currentTarget.classList.remove("sfe-light-blue"))};checkMaxFileSize=()=>{if(this.maxFileSize>0){const e=new Set,s=[];this.files.forEach((r=>{r.size/1024/1024>this.maxFileSize?s.push(r):e.add(r)})),s.length>0&&(this.uploadError.emit(`Some files exceed the size limit of ${this.maxFileSize} MB.`),a("error","Error",`The following files exceed the size limit of ${this.maxFileSize} MB: ${s.map((e=>e.name)).join(", ")}`)),this.files=Array.from(e),this.fileChange.emit(this.files)}};removeFile=e=>{const s=e.detail;s>-1&&s<this.files.length&&(this.files=this.files.filter(((e,r)=>r!==s)),this.fileChange.emit(this.files))};handleFileReplace=e=>{const s=e.target;this.selectedFileIndex=e.detail,s.value="",this.triggerFileInput(e)};render(){return r(l,{key:"24d4ab5832d0a046610763be664f4b64cd28cbce"},r("div",{key:"308f054f0dba4c0c1a41b8a178b15127b68f66db",class:"d-block","data-testid":`swc-file-uploader-${this.testId}`},r("input",{key:"514123946a5996e5073bb52007b98932fabc5693",ref:e=>this.fileInputRef=e,type:"file",multiple:this.multiple,disabled:this.disabled,accept:this.accepts.join(","),style:{display:"none"},onClick:this.resetInputValueToNull,onChange:this.onChange}),(!!this.multiple||0===this.fileDetails.length)&&r("div",{key:"76c12b5d3e2c98e0ab24a9d72168d87767d98510"},"basic"===this.type&&r("button",{key:"8c96ba6a0068771a00a1786f85ca9c76efb6349f","aria-label":"choose file",disabled:this.disabled,class:{"basic-uploader":!0,"has-error":this.hasError},onClick:this.triggerFileInput},r("span",{key:"65195dc38a5f3d985cb5970798605e0a4e0c0703",class:"chooser d-flex align-items-center"},"Choose file...")),"basic"!==this.type&&r("button",{key:"1ca12416d714fb2b2df7b3efd0361c1584fa8add",class:{"drag-area":!0,disabled:this.disabled,"not-extended":!this.extended,"has-error":this.hasError},disabled:this.disabled,onDragOver:this.dragOver,onDragLeave:this.dragLeave,onDrop:this.drop,onClick:this.triggerFileInput},r("div",{key:"22474fef95e90c13953abeffb31fcb15c1ee1a25"},r("div",{key:"2752598014bead5f620ead025e69c56147fa5411",class:"drag-label"},"Drag & Drop or ",r("span",{key:"e382460f3730be82dea2dbd5729d89dd1868c66b",class:"choose-file"},"Choose file")," to upload"),this.extended&&r("small",{key:"8cc16c611e8c15dee3cb029e0054819ca78addaf",class:"formats"},this.formattedAcceptedFileTypes," ",this.maxFileSizeInfo)))),!this.multiple&&this.fileDetails.length>0&&r("swc-single-file",{key:"4eaaf838e74f3ddcbc27f992ac8e3cb638702d51",inverted:this.inverted,hasError:this.hasError,fileInfo:this.files,extended:this.extended,thumbnail:this.thumbnail,progress:this.progress,onUpdateRemove:this.removeFile,onUpdateReplace:this.triggerFileInput,onUploadRetry:()=>this.uploadRetry.emit()}),this.multiple&&this.fileDetails.length>0&&r("swc-multiple-file",{key:"da223f93e19c5261df218c856135f7b0e6184f17",inverted:this.inverted,hasError:this.hasError,fileInfo:this.files,progress:this.progress,onUpdateRemove:this.removeFile,onUpdateReplace:this.handleFileReplace,onUploadRetry:()=>this.uploadRetry.emit()})))}};i.style=".sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader{border-radius:var(--sfe-sizing-radius-default, 8px);border:1px dashed var(--sfe-color-border-neutral-subtle, #dee3e7);background-color:var(--sfe-color-fill-background, #fafbff);color:var(--sfe-color-text-default-primary, rgba(0, 0, 0, 0.95));font-family:var(--sfe-typography-font-serif-font, Sora);font-style:normal;font-weight:400;display:block;width:100%;height:122px;transition:border-color 0.3s ease}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader:hover{border-color:var(--sfe-btn-color-border-solid-brand-hover, #206edd)}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader:focus-visible{outline:2px solid var(--sfe-btn-color-border-solid-brand-hover, #206edd);outline-offset:1px}.sc-swc-file-uploader-h .drag-area.disabled.sc-swc-file-uploader{opacity:0.5;border:1px dashed var(--sfe-color-border-neutral-subtle, #dee3e7)}.sc-swc-file-uploader-h .drag-area.has-error.sc-swc-file-uploader{border-radius:var(--sfe-sizing-radius-default, 8px);border:1px dashed var(--sfe-color-border-critical-solid, #a22827) !important;background:var(--sfe-color-fill-background, #fafbff)}.sc-swc-file-uploader-h .drag-area.has-error.sc-swc-file-uploader:focus-visible{outline:2px solid var(--sfe-color-non-semantic-content-blue-subtle, #1e50c0);outline-offset:1px}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader div.drag-label.sc-swc-file-uploader{font-size:var(--sfe-typography-font-size-label-default, 0.875rem);line-height:16px;margin-top:16px}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader div.drag-label.sc-swc-file-uploader span.choose-file.sc-swc-file-uploader{color:var(--sfe-color-text-default-brand, #004ca6)}.sc-swc-file-uploader-h .drag-area.sc-swc-file-uploader small.formats.sc-swc-file-uploader{color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8));font-size:var(--sfe-typography-font-size-label-small, 0.75rem);line-height:14px}.sc-swc-file-uploader-h .drag-area.not-extended.sc-swc-file-uploader{display:flex;align-items:center;justify-content:center;padding:8px 16px;height:36px}.sc-swc-file-uploader-h .drag-area.not-extended.sc-swc-file-uploader div.drag-label.sc-swc-file-uploader{margin-top:0;margin-left:8px;white-space:nowrap}.sc-swc-file-uploader-h .basic-uploader.sc-swc-file-uploader{width:fit-content;height:42px;border-radius:var(--sfe-sizing-radius-default, 8px);border:1px solid var(--sfe-color-border-neutral-subtle, #dee3e7);background:var(--sfe-color-fill-surface, #fff);box-shadow:0 1px 2px 0 rgba(27, 36, 44, 0.12);padding:8px var(--sfe-sizing-gap-large, 16px);transition:border-color 0.5s ease}.sc-swc-file-uploader-h .basic-uploader.sc-swc-file-uploader:focus-visible{outline:2px solid var(--sfe-btn-color-border-solid-brand-hover, #206edd);outline-offset:1px}.sc-swc-file-uploader-h .basic-uploader.sc-swc-file-uploader:hover{border-color:var(--sfe-btn-color-border-solid-brand-hover, #206edd)}.sc-swc-file-uploader-h .basic-uploader.has-error.sc-swc-file-uploader{border:1px solid var(--sfe-color-border-critical-solid, #a22827)}.sc-swc-file-uploader-h .basic-uploader.has-error.sc-swc-file-uploader:focus-visible{outline:2px solid var(--sfe-color-non-semantic-content-blue-subtle, #1e50c0);outline-offset:1px}.sc-swc-file-uploader-h .basic-uploader.sc-swc-file-uploader .chooser.sc-swc-file-uploader{font-family:var(--sfe-typography-font-serif-font, Sora);font-size:var(--sfe-typography-font-size-label-default, 0.875rem);font-style:normal;font-weight:450;line-height:24px;letter-spacing:0.28px;color:var(--sfe-color-text-default-secondary, rgba(0, 0, 0, 0.8))}.sc-swc-file-uploader-h .sfe-light-blue.sc-swc-file-uploader{border:2px solid var(--sfe-color-border-brand-solid, #0064db);background:var(--sfe-color-fill-neutral-lightest, #f5f7f9)}.sc-swc-file-uploader-h .d-block.sc-swc-file-uploader{display:block}.sc-swc-file-uploader-h .d-flex.sc-swc-file-uploader{display:flex}.sc-swc-file-uploader-h .align-items-center.sc-swc-file-uploader{align-items:center}.sc-swc-file-uploader-h .justify-content-end.sc-swc-file-uploader{justify-content:flex-end}.sc-swc-file-uploader-h .justify-content-between.sc-swc-file-uploader{justify-content:space-between}";export{i as swc_file_uploader}