jb-textarea 2.1.0 → 3.0.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.
@@ -1,33 +0,0 @@
1
- import { JBTextareaValidationItem, ValidationResult, ValidationResultSummary } from './Types';
2
- export { JBTextareaValidationItem };
3
- export declare class JBTextareaWebComponent extends HTMLElement {
4
- #private;
5
- get value(): string;
6
- set value(value: string);
7
- constructor();
8
- initWebComponent(): void;
9
- registerEventListener(): void;
10
- validationList: JBTextareaValidationItem[];
11
- autoHeight: boolean;
12
- validation: ValidationResultSummary;
13
- initProp(): void;
14
- static get observedAttributes(): string[];
15
- attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
16
- onAttributeChange(name: string, value: string): void;
17
- changeHeightToContentSize(): void;
18
- onInputBeforeInput(e: InputEvent): void;
19
- onInputKeyDown(e: KeyboardEvent): void;
20
- onInputKeyPress(e: KeyboardEvent): void;
21
- onInputInput(e: InputEvent): void;
22
- onInputKeyup(e: KeyboardEvent): void;
23
- onInputChange(e: Event): void;
24
- triggerInputValidation(showError?: boolean): ValidationResult;
25
- checkInputValidation(inputText: string): ValidationResult;
26
- checkValidation(text: string, validation: JBTextareaValidationItem): {
27
- isValid: boolean;
28
- message: string;
29
- validation: JBTextareaValidationItem;
30
- };
31
- showValidationError(error: string): void;
32
- clearValidationError(): void;
33
- }
@@ -1,337 +0,0 @@
1
- /******************************************************************************
2
- Copyright (c) Microsoft Corporation.
3
-
4
- Permission to use, copy, modify, and/or distribute this software for any
5
- purpose with or without fee is hereby granted.
6
-
7
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
- PERFORMANCE OF THIS SOFTWARE.
14
- ***************************************************************************** */
15
-
16
- function __classPrivateFieldGet(receiver, state, kind, f) {
17
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
18
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
19
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
20
- }
21
-
22
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
23
- if (kind === "m") throw new TypeError("Private method is not writable");
24
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
25
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
26
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
27
- }
28
-
29
- var HTML = "<div class=\"jb-textarea-web-component\">\r\n <label class=\"--hide\"><span class=\"label-value\"></span><span>:</span></label>\r\n <div class=\"textarea-box\">\r\n <textarea class=\"textarea-input\"></textarea>\r\n </div>\r\n <div class=\"message-box\"></div>\r\n</div>";
30
-
31
- var css_248z = ".jb-textarea-web-component {\n width: 100%;\n margin: var(--jb-textarea-margin, 12px 0); }\n .jb-textarea-web-component label {\n width: 100%;\n margin: 4px 0px;\n display: block;\n font-size: var(--jb-textarea-label-font-size, 0.8em);\n color: var(--jb-textarea-label-color, #1f1735); }\n .jb-textarea-web-component label.--hide {\n display: none; }\n .jb-textarea-web-component .textarea-box {\n width: 100%;\n box-sizing: border-box;\n border: solid var(--jb-textarea-border-width, 1px) var(--jb-textarea-border-color, #f7f6f6);\n background-color: var(--jb-textarea-bgcolor, #f7f6f6);\n border-bottom: solid var(--jb-textarea-border-botton-width, 3px) var(--jb-textarea-border-color, #f7f6f6);\n border-radius: var(--jb-textarea-border-radius, 16px);\n display: block;\n transition: ease 0.3s all;\n overflow: hidden;\n display: flex;\n justify-content: space-between; }\n .jb-textarea-web-component .textarea-box:focus-within {\n border-color: var(--jb-textarea-border-color-focus, #1e2832); }\n .jb-textarea-web-component .textarea-box textarea {\n border: none;\n width: 100%;\n box-sizing: border-box;\n min-height: var(--jb-textarea-min-height, 80px);\n height: var(--jb-textarea-min-height, 80px);\n max-height: var(--jb-textarea-max-height, none);\n background-color: transparent;\n padding: 6px 12px 4px 12px;\n display: block;\n font-family: inherit;\n font-size: var(--jb-textarea-value-font-size, 1.1em);\n color: var(--jb-textarea-value-color, #1f1735);\n margin: 0;\n border-radius: 0;\n resize: vertical;\n color: var(--jb-textarea-value-color, initial); }\n .jb-textarea-web-component .textarea-box textarea:focus {\n outline: none; }\n .jb-textarea-web-component .textarea-box textarea::placeholder {\n color: var(--jb-textarea-placeholder-color, initial);\n font-size: var(--jb-textarea-placeholder-font-size, initial); }\n .jb-textarea-web-component .message-box {\n font-size: var(--jb-textarea-message-font-size, 0.7em);\n padding: 2px 8px;\n color: #929292; }\n .jb-textarea-web-component .message-box:empty {\n padding: 0; }\n .jb-textarea-web-component .message-box.error {\n color: var(--jb-textarea-message-error-color, red); }\n";
32
-
33
- var _JBTextareaWebComponent_instances, _JBTextareaWebComponent_value, _JBTextareaWebComponent_textareaElement, _JBTextareaWebComponent_elements, _JBTextareaWebComponent_dispatchBeforeInputEvent, _JBTextareaWebComponent_triggerInputEvent;
34
- class JBTextareaWebComponent extends HTMLElement {
35
- get value() {
36
- return __classPrivateFieldGet(this, _JBTextareaWebComponent_value, "f");
37
- }
38
- set value(value) {
39
- __classPrivateFieldSet(this, _JBTextareaWebComponent_value, value, "f");
40
- __classPrivateFieldGet(this, _JBTextareaWebComponent_textareaElement, "f").value = value;
41
- if (this.autoHeight) {
42
- this.changeHeightToContentSize();
43
- }
44
- }
45
- constructor() {
46
- super();
47
- _JBTextareaWebComponent_instances.add(this);
48
- _JBTextareaWebComponent_value.set(this, '');
49
- _JBTextareaWebComponent_textareaElement.set(this, void 0);
50
- _JBTextareaWebComponent_elements.set(this, void 0);
51
- this.validationList = [];
52
- this.autoHeight = false;
53
- this.validation = {
54
- isValid: null,
55
- message: null
56
- };
57
- this.initWebComponent();
58
- this.initProp();
59
- }
60
- initWebComponent() {
61
- const shadowRoot = this.attachShadow({
62
- mode: 'open'
63
- });
64
- const html = `<style>${css_248z}</style>` + '\n' + HTML;
65
- const element = document.createElement('template');
66
- element.innerHTML = html;
67
- shadowRoot.appendChild(element.content.cloneNode(true));
68
- __classPrivateFieldSet(this, _JBTextareaWebComponent_textareaElement, shadowRoot.querySelector('.textarea-box textarea'), "f");
69
- __classPrivateFieldSet(this, _JBTextareaWebComponent_elements, {
70
- textarea: __classPrivateFieldGet(this, _JBTextareaWebComponent_textareaElement, "f"),
71
- label: shadowRoot.querySelector('label'),
72
- labelValue: shadowRoot.querySelector('label .label-value'),
73
- messageBox: shadowRoot.querySelector('.message-box')
74
- }, "f");
75
- this.registerEventListener();
76
- }
77
- registerEventListener() {
78
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").textarea.addEventListener('change', (e) => this.onInputChange(e));
79
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").textarea.addEventListener('beforeinput', this.onInputBeforeInput.bind(this));
80
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").textarea.addEventListener('input', (e) => this.onInputInput(e));
81
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").textarea.addEventListener('keypress', this.onInputKeyPress.bind(this));
82
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").textarea.addEventListener('keyup', this.onInputKeyup.bind(this));
83
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").textarea.addEventListener('keydown', this.onInputKeyDown.bind(this));
84
- }
85
- initProp() {
86
- this.value = this.getAttribute('value') || '';
87
- }
88
- static get observedAttributes() {
89
- return ['label', 'message', 'value', 'placeholder'];
90
- }
91
- attributeChangedCallback(name, oldValue, newValue) {
92
- // do something when an attribute has changed
93
- this.onAttributeChange(name, newValue);
94
- }
95
- onAttributeChange(name, value) {
96
- switch (name) {
97
- case 'label':
98
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").labelValue.innerHTML = value;
99
- if (value == null || value == undefined || value == "") {
100
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").label.classList.add('--hide');
101
- }
102
- else {
103
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").label.classList.remove('--hide');
104
- }
105
- break;
106
- case 'message':
107
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").messageBox.innerHTML = value;
108
- break;
109
- case 'placeholder':
110
- __classPrivateFieldGet(this, _JBTextareaWebComponent_textareaElement, "f").setAttribute('placeholder', value);
111
- break;
112
- case 'value':
113
- this.value = value;
114
- break;
115
- }
116
- }
117
- changeHeightToContentSize() {
118
- __classPrivateFieldGet(this, _JBTextareaWebComponent_textareaElement, "f").style.height = "4px";
119
- __classPrivateFieldGet(this, _JBTextareaWebComponent_textareaElement, "f").style.height = (__classPrivateFieldGet(this, _JBTextareaWebComponent_textareaElement, "f").scrollHeight) + "px";
120
- }
121
- onInputBeforeInput(e) {
122
- __classPrivateFieldGet(this, _JBTextareaWebComponent_instances, "m", _JBTextareaWebComponent_dispatchBeforeInputEvent).call(this, e);
123
- }
124
- onInputKeyDown(e) {
125
- const keyDownnInitObj = {
126
- key: e.key,
127
- keyCode: e.keyCode,
128
- code: e.code,
129
- ctrlKey: e.ctrlKey,
130
- shiftKey: e.shiftKey,
131
- altKey: e.altKey,
132
- charCode: e.charCode,
133
- which: e.which,
134
- cancelable: true,
135
- location: e.location,
136
- detail: e.detail,
137
- bubbles: e.bubbles,
138
- composed: e.composed,
139
- isComposing: e.isComposing,
140
- metaKey: e.metaKey,
141
- repeat: e.repeat,
142
- view: e.view
143
- };
144
- const event = new KeyboardEvent("keydown", keyDownnInitObj);
145
- const isEventNotPrevented = this.dispatchEvent(event);
146
- if (!isEventNotPrevented) {
147
- //if event prevented by e.preventDefault();
148
- e.preventDefault();
149
- }
150
- }
151
- onInputKeyPress(e) {
152
- const keyPressInitObj = {
153
- key: e.key,
154
- keyCode: e.keyCode,
155
- code: e.code,
156
- ctrlKey: e.ctrlKey,
157
- shiftKey: e.shiftKey,
158
- altKey: e.altKey,
159
- charCode: e.charCode,
160
- which: e.which,
161
- cancelable: true,
162
- location: e.location,
163
- detail: e.detail,
164
- bubbles: e.bubbles,
165
- composed: e.composed,
166
- isComposing: e.isComposing,
167
- metaKey: e.metaKey,
168
- repeat: e.repeat,
169
- view: e.view
170
- };
171
- const event = new KeyboardEvent('keypress', keyPressInitObj);
172
- const isEventNotPrevented = this.dispatchEvent(event);
173
- if (!isEventNotPrevented) {
174
- //if event prevented by e.preventDefault();
175
- e.preventDefault();
176
- }
177
- }
178
- onInputInput(e) {
179
- if (this.autoHeight) {
180
- this.changeHeightToContentSize();
181
- }
182
- __classPrivateFieldGet(this, _JBTextareaWebComponent_instances, "m", _JBTextareaWebComponent_triggerInputEvent).call(this, e);
183
- }
184
- onInputKeyup(e) {
185
- const inputText = e.target.value;
186
- //here is the rare time we update _value directly becuase we want trigger event that may read value directly from dom
187
- __classPrivateFieldSet(this, _JBTextareaWebComponent_value, inputText, "f");
188
- this.triggerInputValidation(false);
189
- const keyUpInitObj = {
190
- key: e.key,
191
- keyCode: e.keyCode,
192
- code: e.code,
193
- ctrlKey: e.ctrlKey,
194
- shiftKey: e.shiftKey,
195
- altKey: e.altKey,
196
- charCode: e.charCode,
197
- which: e.which,
198
- bubbles: e.bubbles,
199
- cancelable: e.cancelable,
200
- composed: e.composed,
201
- detail: e.detail,
202
- isComposing: e.isComposing,
203
- location: e.location,
204
- metaKey: e.metaKey,
205
- repeat: e.repeat,
206
- view: e.view
207
- };
208
- const event = new KeyboardEvent('keyup', keyUpInitObj);
209
- this.dispatchEvent(event);
210
- }
211
- onInputChange(e) {
212
- const inputText = e.target.value;
213
- this.triggerInputValidation(true);
214
- //here is the rare time we update _value directly becuase we want trigger event that may read value directly from dom
215
- __classPrivateFieldSet(this, _JBTextareaWebComponent_value, inputText, "f");
216
- const validationObject = this.checkInputValidation(inputText);
217
- const event = new CustomEvent('change', {
218
- detail: {
219
- isValid: validationObject.isAllValid,
220
- validationObject: validationObject,
221
- },
222
- });
223
- this.dispatchEvent(event);
224
- }
225
- triggerInputValidation(showError = true) {
226
- // this method is for use out of component for example if user click on submit button and developer want to check if all fields are valid
227
- //takeAction determine if we want to show user error in web component difualtManner or developer will handle it by himself
228
- const inputText = __classPrivateFieldGet(this, _JBTextareaWebComponent_textareaElement, "f").value;
229
- const validationResult = this.checkInputValidation(inputText);
230
- if (showError == true && !validationResult.isAllValid) {
231
- const firstFault = validationResult.validationList.find(x => !x.isValid);
232
- if (firstFault && firstFault.message) {
233
- this.showValidationError(firstFault.message);
234
- }
235
- }
236
- else if (validationResult.isAllValid) {
237
- this.clearValidationError();
238
- }
239
- return validationResult;
240
- }
241
- checkInputValidation(inputText) {
242
- const validationResult = {
243
- validationList: [],
244
- isAllValid: true
245
- };
246
- this.validationList.forEach((validation) => {
247
- const res = this.checkValidation(inputText, validation);
248
- validationResult.validationList.push(res);
249
- if (!res.isValid) {
250
- validationResult.isAllValid = false;
251
- }
252
- });
253
- return validationResult;
254
- }
255
- checkValidation(text, validation) {
256
- let testRes = true;
257
- if (validation.validator instanceof RegExp) {
258
- testRes = validation.validator.test(text);
259
- validation.validator.lastIndex = 0;
260
- }
261
- if (typeof validation.validator == "function") {
262
- testRes = validation.validator(text);
263
- }
264
- if (!testRes) {
265
- return {
266
- isValid: false,
267
- message: validation.message,
268
- validation: validation
269
- };
270
- }
271
- return {
272
- isValid: true,
273
- message: '',
274
- validation: validation
275
- };
276
- }
277
- showValidationError(error) {
278
- this.validation = {
279
- isValid: false,
280
- message: error
281
- };
282
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").messageBox.innerHTML = error;
283
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").messageBox.classList.add('error');
284
- }
285
- clearValidationError() {
286
- this.validation = {
287
- isValid: true,
288
- message: null
289
- };
290
- const text = this.getAttribute('message') || '';
291
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").messageBox.innerHTML = text;
292
- __classPrivateFieldGet(this, _JBTextareaWebComponent_elements, "f").messageBox.classList.remove('error');
293
- }
294
- }
295
- _JBTextareaWebComponent_value = new WeakMap(), _JBTextareaWebComponent_textareaElement = new WeakMap(), _JBTextareaWebComponent_elements = new WeakMap(), _JBTextareaWebComponent_instances = new WeakSet(), _JBTextareaWebComponent_dispatchBeforeInputEvent = function _JBTextareaWebComponent_dispatchBeforeInputEvent(e) {
296
- const eventInitDict = {
297
- bubbles: e.bubbles,
298
- cancelable: e.cancelable,
299
- composed: e.composed,
300
- data: e.data,
301
- isComposing: e.isComposing,
302
- inputType: e.inputType,
303
- dataTransfer: e.dataTransfer,
304
- view: e.view,
305
- detail: e.detail,
306
- targetRanges: e.getTargetRanges(),
307
- };
308
- const event = new InputEvent('beforeinput', eventInitDict);
309
- this.dispatchEvent(event);
310
- if (event.defaultPrevented) {
311
- e.preventDefault();
312
- }
313
- return event.defaultPrevented;
314
- }, _JBTextareaWebComponent_triggerInputEvent = function _JBTextareaWebComponent_triggerInputEvent(e) {
315
- const inputInitObject = {
316
- bubbles: e.bubbles,
317
- cancelable: e.cancelable,
318
- composed: e.composed,
319
- data: e.data,
320
- dataTransfer: e.dataTransfer,
321
- detail: e.detail,
322
- inputType: e.inputType,
323
- isComposing: e.isComposing,
324
- targetRanges: e.getTargetRanges(),
325
- view: e.view
326
- };
327
- const event = new InputEvent("input", inputInitObject);
328
- this.dispatchEvent(event);
329
- };
330
- const myElementNotExists = !customElements.get('jb-textarea');
331
- if (myElementNotExists) {
332
- //prevent duplicate registering
333
- window.customElements.define('jb-textarea', JBTextareaWebComponent);
334
- }
335
-
336
- export { JBTextareaWebComponent };
337
- //# sourceMappingURL=JBTextarea.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"JBTextarea.js","sources":["../../../node_modules/tslib/tslib.es6.js","../lib/JBTextarea.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.push(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.push(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","import HTML from './JBTextarea.html';\r\nimport CSS from './JBTextarea.scss';\r\nimport { JBTextareaElements, JBTextareaValidationItem, ValidationResult, ValidationResultItem, ValidationResultSummary } from './Types';\r\nexport {JBTextareaValidationItem};\r\nexport class JBTextareaWebComponent extends HTMLElement {\r\n #value = '';\r\n get value() {\r\n return this.#value;\r\n }\r\n set value(value) {\r\n this.#value = value;\r\n this.#textareaElement.value = value;\r\n if(this.autoHeight){\r\n this.changeHeightToContentSize();\r\n }\r\n }\r\n constructor() {\r\n super();\r\n this.initWebComponent();\r\n this.initProp();\r\n }\r\n #textareaElement!: HTMLTextAreaElement;\r\n #elements!: JBTextareaElements;\r\n initWebComponent() {\r\n const shadowRoot = this.attachShadow({\r\n mode: 'open'\r\n });\r\n const html = `<style>${CSS}</style>` + '\\n' + HTML;\r\n const element = document.createElement('template');\r\n element.innerHTML = html;\r\n shadowRoot.appendChild(element.content.cloneNode(true));\r\n this.#textareaElement = shadowRoot.querySelector('.textarea-box textarea')!;\r\n this.#elements = {\r\n textarea: this.#textareaElement,\r\n label: shadowRoot.querySelector('label')!,\r\n labelValue:shadowRoot.querySelector('label .label-value')!,\r\n messageBox:shadowRoot.querySelector('.message-box')!\r\n }\r\n this.registerEventListener();\r\n }\r\n registerEventListener() {\r\n this.#elements.textarea.addEventListener('change', (e) => this.onInputChange(e));\r\n this.#elements.textarea.addEventListener('beforeinput', this.onInputBeforeInput.bind(this));\r\n this.#elements.textarea.addEventListener('input', (e) => this.onInputInput((e as unknown as InputEvent)));\r\n this.#elements.textarea.addEventListener('keypress', this.onInputKeyPress.bind(this));\r\n this.#elements.textarea.addEventListener('keyup', this.onInputKeyup.bind(this));\r\n this.#elements.textarea.addEventListener('keydown', this.onInputKeyDown.bind(this));\r\n }\r\n validationList:JBTextareaValidationItem[] = [];\r\n autoHeight = false;\r\n validation:ValidationResultSummary = {\r\n isValid: null,\r\n message: null\r\n }\r\n initProp() {\r\n this.value = this.getAttribute('value') || '';\r\n\r\n }\r\n static get observedAttributes() {\r\n return ['label', 'message', 'value', 'placeholder'];\r\n }\r\n attributeChangedCallback(name:string, oldValue:string, newValue:string) {\r\n // do something when an attribute has changed\r\n this.onAttributeChange(name, newValue);\r\n }\r\n onAttributeChange(name:string, value:string) {\r\n switch (name) {\r\n case 'label':\r\n this.#elements.labelValue.innerHTML = value;\r\n if(value == null || value == undefined || value == \"\"){\r\n this.#elements.label.classList.add('--hide');\r\n }else{\r\n this.#elements.label.classList.remove('--hide');\r\n }\r\n break;\r\n case 'message':\r\n this.#elements.messageBox.innerHTML = value;\r\n break;\r\n case 'placeholder':\r\n this.#textareaElement.setAttribute('placeholder', value);\r\n break;\r\n case 'value':\r\n this.value = value;\r\n break;\r\n }\r\n\r\n }\r\n changeHeightToContentSize() {\r\n this.#textareaElement.style.height = \"4px\";\r\n this.#textareaElement.style.height = (this.#textareaElement.scrollHeight)+\"px\";\r\n }\r\n onInputBeforeInput(e: InputEvent){\r\n this.#dispatchBeforeInputEvent(e);\r\n }\r\n #dispatchBeforeInputEvent(e: InputEvent): boolean {\r\n const eventInitDict = {\r\n bubbles: e.bubbles,\r\n cancelable: e.cancelable,\r\n composed: e.composed,\r\n data: e.data,\r\n isComposing: e.isComposing,\r\n inputType: e.inputType,\r\n dataTransfer: e.dataTransfer,\r\n view: e.view,\r\n detail: e.detail,\r\n targetRanges: e.getTargetRanges(),\r\n };\r\n const event = new InputEvent('beforeinput', eventInitDict);\r\n this.dispatchEvent(event);\r\n if (event.defaultPrevented) {\r\n e.preventDefault();\r\n }\r\n return event.defaultPrevented;\r\n }\r\n onInputKeyDown(e:KeyboardEvent){\r\n const keyDownnInitObj:KeyboardEventInit = {\r\n key:e.key,\r\n keyCode:e.keyCode,\r\n code:e.code,\r\n ctrlKey:e.ctrlKey,\r\n shiftKey:e.shiftKey,\r\n altKey:e.altKey,\r\n charCode:e.charCode,\r\n which:e.which,\r\n cancelable: true,\r\n location:e.location,\r\n detail:e.detail,\r\n bubbles:e.bubbles,\r\n composed:e.composed,\r\n isComposing:e.isComposing,\r\n metaKey:e.metaKey,\r\n repeat:e.repeat,\r\n view:e.view\r\n };\r\n const event = new KeyboardEvent(\"keydown\",keyDownnInitObj);\r\n const isEventNotPrevented = this.dispatchEvent(event);\r\n if(!isEventNotPrevented){\r\n //if event prevented by e.preventDefault();\r\n e.preventDefault();\r\n }\r\n }\r\n onInputKeyPress(e:KeyboardEvent) {\r\n const keyPressInitObj:KeyboardEventInit = {\r\n key:e.key,\r\n keyCode:e.keyCode,\r\n code:e.code,\r\n ctrlKey:e.ctrlKey,\r\n shiftKey:e.shiftKey,\r\n altKey:e.altKey,\r\n charCode:e.charCode,\r\n which:e.which,\r\n cancelable: true,\r\n location:e.location,\r\n detail:e.detail,\r\n bubbles:e.bubbles,\r\n composed:e.composed,\r\n isComposing:e.isComposing,\r\n metaKey:e.metaKey,\r\n repeat:e.repeat,\r\n view:e.view\r\n };\r\n const event = new KeyboardEvent('keypress',keyPressInitObj);\r\n const isEventNotPrevented = this.dispatchEvent(event);\r\n if(!isEventNotPrevented){\r\n //if event prevented by e.preventDefault();\r\n e.preventDefault();\r\n }\r\n }\r\n onInputInput(e:InputEvent){\r\n if(this.autoHeight){\r\n this.changeHeightToContentSize();\r\n }\r\n this.#triggerInputEvent(e);\r\n }\r\n #triggerInputEvent(e:InputEvent){\r\n const inputInitObject:InputEventInit = {\r\n bubbles:e.bubbles,\r\n cancelable:e.cancelable,\r\n composed:e.composed,\r\n data:e.data,\r\n dataTransfer:e.dataTransfer,\r\n detail:e.detail,\r\n inputType:e.inputType,\r\n isComposing:e.isComposing,\r\n targetRanges:e.getTargetRanges(),\r\n view:e.view\r\n };\r\n const event = new InputEvent(\"input\",inputInitObject);\r\n this.dispatchEvent(event);\r\n }\r\n onInputKeyup(e:KeyboardEvent) {\r\n const inputText = (e.target as HTMLTextAreaElement).value;\r\n //here is the rare time we update _value directly becuase we want trigger event that may read value directly from dom\r\n this.#value = inputText;\r\n this.triggerInputValidation(false);\r\n const keyUpInitObj:KeyboardEventInit = {\r\n key:e.key,\r\n keyCode:e.keyCode,\r\n code:e.code,\r\n ctrlKey:e.ctrlKey,\r\n shiftKey:e.shiftKey,\r\n altKey:e.altKey,\r\n charCode:e.charCode,\r\n which:e.which,\r\n bubbles:e.bubbles,\r\n cancelable:e.cancelable,\r\n composed:e.composed,\r\n detail:e.detail,\r\n isComposing:e.isComposing,\r\n location:e.location,\r\n metaKey:e.metaKey,\r\n repeat:e.repeat,\r\n view:e.view\r\n };\r\n const event = new KeyboardEvent('keyup',keyUpInitObj);\r\n this.dispatchEvent(event);\r\n }\r\n onInputChange(e:Event) {\r\n const inputText = (e.target as HTMLTextAreaElement).value;\r\n this.triggerInputValidation(true);\r\n //here is the rare time we update _value directly becuase we want trigger event that may read value directly from dom\r\n this.#value = inputText;\r\n const validationObject = this.checkInputValidation(inputText);\r\n const event = new CustomEvent('change',{\r\n detail: {\r\n isValid: validationObject.isAllValid,\r\n validationObject:validationObject,\r\n },\r\n });\r\n this.dispatchEvent(event);\r\n }\r\n triggerInputValidation(showError = true) {\r\n // this method is for use out of component for example if user click on submit button and developer want to check if all fields are valid\r\n //takeAction determine if we want to show user error in web component difualtManner or developer will handle it by himself\r\n const inputText = this.#textareaElement.value;\r\n const validationResult = this.checkInputValidation(inputText);\r\n if (showError == true && !validationResult.isAllValid) {\r\n const firstFault = validationResult.validationList.find(x => !x.isValid);\r\n if(firstFault && firstFault.message){\r\n this.showValidationError(firstFault.message);\r\n }\r\n } else if (validationResult.isAllValid) {\r\n this.clearValidationError();\r\n }\r\n return validationResult;\r\n }\r\n checkInputValidation(inputText:string):ValidationResult{\r\n const validationResult:ValidationResult = {\r\n validationList: [],\r\n isAllValid: true\r\n };\r\n this.validationList.forEach((validation:JBTextareaValidationItem) => {\r\n const res = this.checkValidation(inputText, validation);\r\n validationResult.validationList.push(res);\r\n if (!res.isValid) {\r\n validationResult.isAllValid = false;\r\n }\r\n });\r\n return validationResult;\r\n }\r\n checkValidation(text:string, validation:JBTextareaValidationItem) {\r\n let testRes = true;\r\n if(validation.validator instanceof RegExp){\r\n testRes = validation.validator.test(text);\r\n validation.validator.lastIndex = 0;\r\n }\r\n if (typeof validation.validator == \"function\") {\r\n testRes = validation.validator(text);\r\n }\r\n if (!testRes) {\r\n return {\r\n isValid: false,\r\n message: validation.message,\r\n validation: validation\r\n };\r\n }\r\n return {\r\n isValid: true,\r\n message: '',\r\n validation: validation\r\n };\r\n }\r\n showValidationError(error:string) {\r\n this.validation = {\r\n isValid: false,\r\n message: error\r\n };\r\n this.#elements.messageBox.innerHTML = error;\r\n this.#elements.messageBox.classList.add('error');\r\n }\r\n clearValidationError() {\r\n this.validation = {\r\n isValid: true,\r\n message: null\r\n };\r\n const text = this.getAttribute('message') || '';\r\n this.#elements.messageBox.innerHTML = text;\r\n this.#elements.messageBox.classList.remove('error');\r\n }\r\n}\r\n\r\nconst myElementNotExists = !customElements.get('jb-textarea');\r\nif(myElementNotExists){\r\n //prevent duplicate registering\r\n window.customElements.define('jb-textarea', JBTextareaWebComponent);\r\n}"],"names":["CSS"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAsQA;AACO,SAAS,sBAAsB,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,EAAE;AACjE,IAAI,IAAI,IAAI,KAAK,GAAG,IAAI,CAAC,CAAC,EAAE,MAAM,IAAI,SAAS,CAAC,+CAA+C,CAAC,CAAC;AACjG,IAAI,IAAI,OAAO,KAAK,KAAK,UAAU,GAAG,QAAQ,KAAK,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,SAAS,CAAC,0EAA0E,CAAC,CAAC;AACvL,IAAI,OAAO,IAAI,KAAK,GAAG,GAAG,CAAC,GAAG,IAAI,KAAK,GAAG,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,GAA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