@servicetitan/onboarding-ui 1.15.0 → 1.17.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 (57) hide show
  1. package/CHANGELOG.md +211 -0
  2. package/dist/address-suggestion-popover/components/address-suggestion-popover.js +13 -35
  3. package/dist/address-suggestion-popover/components/address-suggestion-popover.js.map +1 -1
  4. package/dist/address-suggestion-popover/index.js +2 -14
  5. package/dist/address-suggestion-popover/index.js.map +1 -1
  6. package/dist/address-suggestion-popover/utils/google-geocoder-suggestions-provider.js +1 -5
  7. package/dist/address-suggestion-popover/utils/google-geocoder-suggestions-provider.js.map +1 -1
  8. package/dist/address-suggestion-popover/utils/index.js +1 -13
  9. package/dist/address-suggestion-popover/utils/index.js.map +1 -1
  10. package/dist/company-profile/components/company-profile-form.d.ts.map +1 -1
  11. package/dist/company-profile/components/company-profile-form.js +18 -21
  12. package/dist/company-profile/components/company-profile-form.js.map +1 -1
  13. package/dist/company-profile/components/country-dropdown-input.d.ts.map +1 -1
  14. package/dist/company-profile/components/country-dropdown-input.js +6 -11
  15. package/dist/company-profile/components/country-dropdown-input.js.map +1 -1
  16. package/dist/company-profile/components/state-and-province-dropdown-input.js +7 -10
  17. package/dist/company-profile/components/state-and-province-dropdown-input.js.map +1 -1
  18. package/dist/company-profile/index.js +6 -18
  19. package/dist/company-profile/index.js.map +1 -1
  20. package/dist/company-profile/stores/__mocks__/company-profile-form-mock-data.js +3 -6
  21. package/dist/company-profile/stores/__mocks__/company-profile-form-mock-data.js.map +1 -1
  22. package/dist/company-profile/stores/company-profile-form.store.d.ts.map +1 -1
  23. package/dist/company-profile/stores/company-profile-form.store.js +38 -36
  24. package/dist/company-profile/stores/company-profile-form.store.js.map +1 -1
  25. package/dist/company-profile/utils/validators.js +1 -5
  26. package/dist/company-profile/utils/validators.js.map +1 -1
  27. package/dist/contentful/contentful.api.js +2 -5
  28. package/dist/contentful/contentful.api.js.map +1 -1
  29. package/dist/contentful/contentful.data.store.js +7 -13
  30. package/dist/contentful/contentful.data.store.js.map +1 -1
  31. package/dist/contentful/document-to-react-component.js +9 -13
  32. package/dist/contentful/document-to-react-component.js.map +1 -1
  33. package/dist/contentful/index.js +7 -19
  34. package/dist/contentful/index.js.map +1 -1
  35. package/dist/contentful/interfaces.js +1 -2
  36. package/dist/contentful/marketing-carousel.store.js +22 -28
  37. package/dist/contentful/marketing-carousel.store.js.map +1 -1
  38. package/dist/contentful/page-contentful.store.js +18 -21
  39. package/dist/contentful/page-contentful.store.js.map +1 -1
  40. package/dist/contentful/utils.js +7 -15
  41. package/dist/contentful/utils.js.map +1 -1
  42. package/dist/hooks/index.js +1 -13
  43. package/dist/hooks/index.js.map +1 -1
  44. package/dist/hooks/use-scroll-to-error/index.js +1 -13
  45. package/dist/hooks/use-scroll-to-error/index.js.map +1 -1
  46. package/dist/hooks/use-scroll-to-error/use-scroll-to-error.js +5 -9
  47. package/dist/hooks/use-scroll-to-error/use-scroll-to-error.js.map +1 -1
  48. package/dist/index.js +4 -16
  49. package/dist/index.js.map +1 -1
  50. package/dist/utils/collection-helpers.js +1 -5
  51. package/dist/utils/collection-helpers.js.map +1 -1
  52. package/dist/utils/index.js +1 -13
  53. package/dist/utils/index.js.map +1 -1
  54. package/package.json +3 -4
  55. package/src/company-profile/components/company-profile-form.tsx +23 -9
  56. package/src/company-profile/components/country-dropdown-input.tsx +2 -4
  57. package/src/company-profile/stores/company-profile-form.store.ts +5 -1
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CompanyProfileFormCanadian = exports.CompanyProfileFormEmptyValues = exports.CompanyProfileFormCorrect = void 0;
4
- exports.CompanyProfileFormCorrect = {
1
+ export const CompanyProfileFormCorrect = {
5
2
  companyName: 'Wyatt Works',
6
3
  adminPhone: '(310) 855-8585',
7
4
  companyStreetAddress: '123 Main St.',
@@ -11,7 +8,7 @@ exports.CompanyProfileFormCorrect = {
11
8
  companyZipCode: '12345',
12
9
  einOrBn: '',
13
10
  };
14
- exports.CompanyProfileFormEmptyValues = {
11
+ export const CompanyProfileFormEmptyValues = {
15
12
  companyName: '',
16
13
  adminPhone: '',
17
14
  companyStreetAddress: '',
@@ -20,7 +17,7 @@ exports.CompanyProfileFormEmptyValues = {
20
17
  companyCity: '',
21
18
  companyZipCode: '',
22
19
  };
23
- exports.CompanyProfileFormCanadian = {
20
+ export const CompanyProfileFormCanadian = {
24
21
  companyName: 'Wyatt Works',
25
22
  adminPhone: '(310) 855-8585',
26
23
  companyStreetAddress: '123 Main St.',
@@ -1 +1 @@
1
- {"version":3,"file":"company-profile-form-mock-data.js","sourceRoot":"","sources":["../../../../src/company-profile/stores/__mocks__/company-profile-form-mock-data.ts"],"names":[],"mappings":";;;AAEa,QAAA,yBAAyB,GAAiB;IACnD,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,oBAAoB,EAAE,cAAc;IACpC,cAAc,EAAE,KAAK;IACrB,gBAAgB,EAAE,IAAI;IACtB,WAAW,EAAE,UAAU;IACvB,cAAc,EAAE,OAAO;IACvB,OAAO,EAAE,EAAE;CACd,CAAC;AAEW,QAAA,6BAA6B,GAAiB;IACvD,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IACd,oBAAoB,EAAE,EAAE;IACxB,cAAc,EAAE,EAAE;IAClB,gBAAgB,EAAE,EAAE;IACpB,WAAW,EAAE,EAAE;IACf,cAAc,EAAE,EAAE;CACrB,CAAC;AAEW,QAAA,0BAA0B,GAAiB;IACpD,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,oBAAoB,EAAE,cAAc;IACpC,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,IAAI;IACtB,WAAW,EAAE,UAAU;IACvB,cAAc,EAAE,OAAO;CAC1B,CAAC"}
1
+ {"version":3,"file":"company-profile-form-mock-data.js","sourceRoot":"","sources":["../../../../src/company-profile/stores/__mocks__/company-profile-form-mock-data.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,yBAAyB,GAAiB;IACnD,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,oBAAoB,EAAE,cAAc;IACpC,cAAc,EAAE,KAAK;IACrB,gBAAgB,EAAE,IAAI;IACtB,WAAW,EAAE,UAAU;IACvB,cAAc,EAAE,OAAO;IACvB,OAAO,EAAE,EAAE;CACd,CAAC;AAEF,MAAM,CAAC,MAAM,6BAA6B,GAAiB;IACvD,WAAW,EAAE,EAAE;IACf,UAAU,EAAE,EAAE;IACd,oBAAoB,EAAE,EAAE;IACxB,cAAc,EAAE,EAAE;IAClB,gBAAgB,EAAE,EAAE;IACpB,WAAW,EAAE,EAAE;IACf,cAAc,EAAE,EAAE;CACrB,CAAC;AAEF,MAAM,CAAC,MAAM,0BAA0B,GAAiB;IACpD,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,gBAAgB;IAC5B,oBAAoB,EAAE,cAAc;IACpC,cAAc,EAAE,IAAI;IACpB,gBAAgB,EAAE,IAAI;IACtB,WAAW,EAAE,UAAU;IACvB,cAAc,EAAE,OAAO;CAC1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"company-profile-form.store.d.ts","sourceRoot":"","sources":["../../../src/company-profile/stores/company-profile-form.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EACH,eAAe,EACf,kBAAkB,EAGrB,MAAM,oBAAoB,CAAC;AAO5B,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,cAAc,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,YAAY;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;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B,YAAW,wBAAwB;IACxD,aAAa,UAAS;IACtB,cAAc,UAAS;IACvB,SAAS,EAAE,MAAM,EAAE,CAAM;IACzB,oBAAoB,EAAE,kBAAkB,EAAE,CAAM;IAChD,SAAS,SAAM;IACf,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAa;IAE7D,IAAI,EAAE,SAAS,CAAC,uBAAuB,CAAC,CASrC;;IAsBH,iBAAiB,UAAW,OAAO,UAEjC;IAEF,QAAQ,YAAa,MAAM,aAGzB;IAEF,IACI,WAAW,wBAEd;IAED,IACI,WAAW,+BAEd;IAED,IACI,iBAAiB;;;MAUpB;IAGD,QAAQ,aAAc,YAAY,WAAW,yBAAyB,UAQpE;IAGF,UAAU,aAAoC;CACjD"}
1
+ {"version":3,"file":"company-profile-form.store.d.ts","sourceRoot":"","sources":["../../../src/company-profile/stores/company-profile-form.store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EACH,eAAe,EACf,kBAAkB,EAGrB,MAAM,oBAAoB,CAAC;AAO5B,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,cAAc,EAAE,CAAC;CAC7B;AAED,MAAM,WAAW,YAAY;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,oBAAoB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1C,cAAc,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM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UAAW,OAAO,UAEjC;IAEF,QAAQ,YAAa,MAAM,aAGzB;IAEF,IACI,WAAW,wBAEd;IAED,IACI,WAAW,+BAEd;IAED,IACI,iBAAiB;;;MAUpB;IAGD,QAAQ,aAAc,YAAY,WAAW,yBAAyB,UAYpE;IAGF,UAAU,aAAoC;CACjD"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -8,13 +7,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
7
  var __metadata = (this && this.__metadata) || function (k, v) {
9
8
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
9
  };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CompanyProfileFormStore = void 0;
13
- const formstate_1 = require("formstate");
14
- const form_1 = require("@servicetitan/form");
15
- const react_ioc_1 = require("@servicetitan/react-ioc");
16
- const validators_1 = require("../utils/validators");
17
- const mobx_1 = require("mobx");
10
+ import { FormState } from 'formstate';
11
+ import { InputFieldState, DropdownFieldState, commitFormState, setFormStateValues, } from '@servicetitan/form';
12
+ import { injectable } from '@servicetitan/react-ioc';
13
+ import { PhoneValidator } from '../utils/validators';
14
+ import { computed, action, observable, makeObservable } from 'mobx';
18
15
  const required = (value) => (!value || value.length === 0) && 'cannot be empty string';
19
16
  const usZipMask = '99999';
20
17
  const canadaZipMask = '*** ***';
@@ -62,15 +59,15 @@ let CompanyProfileFormStore = class CompanyProfileFormStore {
62
59
  enumerable: true,
63
60
  configurable: true,
64
61
  writable: true,
65
- value: new formstate_1.FormState({
66
- companyName: new form_1.InputFieldState('').validators(required),
67
- adminPhone: new form_1.InputFieldState(''),
68
- companyStreetAddress: new form_1.InputFieldState('').validators(required),
69
- companyCountry: new form_1.DropdownFieldState('').validators(required),
70
- companyStateCode: new form_1.DropdownFieldState('').validators(required),
71
- companyCity: new form_1.InputFieldState('').validators(required),
72
- companyZipCode: new form_1.InputFieldState('').validators(required),
73
- einOrBn: new form_1.InputFieldState(''),
62
+ value: new FormState({
63
+ companyName: new InputFieldState('').validators(required),
64
+ adminPhone: new InputFieldState(''),
65
+ companyStreetAddress: new InputFieldState('').validators(required),
66
+ companyCountry: new DropdownFieldState('').validators(required),
67
+ companyStateCode: new DropdownFieldState('').validators(required),
68
+ companyCity: new InputFieldState('').validators(required),
69
+ companyZipCode: new InputFieldState('').validators(required),
70
+ einOrBn: new InputFieldState(''),
74
71
  })
75
72
  });
76
73
  Object.defineProperty(this, "setFormErrorCheck", {
@@ -95,22 +92,27 @@ let CompanyProfileFormStore = class CompanyProfileFormStore {
95
92
  configurable: true,
96
93
  writable: true,
97
94
  value: (formData, options) => {
98
- this.form.$.adminPhone.validators((0, validators_1.PhoneValidator)(options.phonePattern, false));
95
+ var _a;
96
+ this.form.$.adminPhone.validators(PhoneValidator(options.phonePattern, false));
99
97
  this.countries = options.countries;
100
98
  this.countryAndRegionData = options.countryAndRegionData;
101
99
  this.phoneMask = options.phoneMask;
102
100
  this.regionToCodeMap = options.regionToCodeMap;
103
- (0, form_1.setFormStateValues)(this.form, formData);
104
- (0, form_1.commitFormState)(this.form);
101
+ let companyCountry = formData.companyCountry;
102
+ if (companyCountry && this.countries && !((_a = this.countries) === null || _a === void 0 ? void 0 : _a.includes(companyCountry))) {
103
+ companyCountry = '';
104
+ }
105
+ setFormStateValues(this.form, Object.assign(Object.assign({}, formData), { companyCountry }));
106
+ commitFormState(this.form);
105
107
  }
106
108
  });
107
109
  Object.defineProperty(this, "commitForm", {
108
110
  enumerable: true,
109
111
  configurable: true,
110
112
  writable: true,
111
- value: () => (0, form_1.commitFormState)(this.form)
113
+ value: () => commitFormState(this.form)
112
114
  });
113
- (0, mobx_1.makeObservable)(this);
115
+ makeObservable(this);
114
116
  this.form.$.companyZipCode.validators(($) => {
115
117
  const country = this.form.$.companyCountry.value;
116
118
  const zip = ($ || '').toLowerCase().replace(/ /g, '');
@@ -142,59 +144,59 @@ let CompanyProfileFormStore = class CompanyProfileFormStore {
142
144
  }
143
145
  };
144
146
  __decorate([
145
- mobx_1.observable,
147
+ observable,
146
148
  __metadata("design:type", Object)
147
149
  ], CompanyProfileFormStore.prototype, "showFormError", void 0);
148
150
  __decorate([
149
- mobx_1.observable,
151
+ observable,
150
152
  __metadata("design:type", Object)
151
153
  ], CompanyProfileFormStore.prototype, "isInitializing", void 0);
152
154
  __decorate([
153
- mobx_1.observable,
155
+ observable,
154
156
  __metadata("design:type", Array)
155
157
  ], CompanyProfileFormStore.prototype, "countries", void 0);
156
158
  __decorate([
157
- mobx_1.observable,
159
+ observable,
158
160
  __metadata("design:type", Array)
159
161
  ], CompanyProfileFormStore.prototype, "countryAndRegionData", void 0);
160
162
  __decorate([
161
- mobx_1.observable,
163
+ observable,
162
164
  __metadata("design:type", Object)
163
165
  ], CompanyProfileFormStore.prototype, "phoneMask", void 0);
164
166
  __decorate([
165
- mobx_1.observable,
167
+ observable,
166
168
  __metadata("design:type", Map)
167
169
  ], CompanyProfileFormStore.prototype, "regionToCodeMap", void 0);
168
170
  __decorate([
169
- mobx_1.action,
171
+ action,
170
172
  __metadata("design:type", Object)
171
173
  ], CompanyProfileFormStore.prototype, "setFormErrorCheck", void 0);
172
174
  __decorate([
173
- mobx_1.computed,
175
+ computed,
174
176
  __metadata("design:type", Object),
175
177
  __metadata("design:paramtypes", [])
176
178
  ], CompanyProfileFormStore.prototype, "zipCodeMask", null);
177
179
  __decorate([
178
- mobx_1.computed,
180
+ computed,
179
181
  __metadata("design:type", Object),
180
182
  __metadata("design:paramtypes", [])
181
183
  ], CompanyProfileFormStore.prototype, "einOrBnMask", null);
182
184
  __decorate([
183
- mobx_1.computed,
185
+ computed,
184
186
  __metadata("design:type", Object),
185
187
  __metadata("design:paramtypes", [])
186
188
  ], CompanyProfileFormStore.prototype, "einOrBnInputProps", null);
187
189
  __decorate([
188
- mobx_1.action,
190
+ action,
189
191
  __metadata("design:type", Object)
190
192
  ], CompanyProfileFormStore.prototype, "initForm", void 0);
191
193
  __decorate([
192
- mobx_1.action,
194
+ action,
193
195
  __metadata("design:type", Object)
194
196
  ], CompanyProfileFormStore.prototype, "commitForm", void 0);
195
197
  CompanyProfileFormStore = __decorate([
196
- (0, react_ioc_1.injectable)(),
198
+ injectable(),
197
199
  __metadata("design:paramtypes", [])
198
200
  ], CompanyProfileFormStore);
199
- exports.CompanyProfileFormStore = CompanyProfileFormStore;
201
+ export { CompanyProfileFormStore };
200
202
  //# sourceMappingURL=company-profile-form.store.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"company-profile-form.store.js","sourceRoot":"","sources":["../../../src/company-profile/stores/company-profile-form.store.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAkD;AAClD,6CAK4B;AAC5B,uDAAqD;AACrD,oDAAqD;AACrD,+BAAoE;AAEpE,MAAM,QAAQ,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,IAAI,wBAAwB,CAAC;AAuB/F,MAAM,SAAS,GAAG,OAAO,CAAC;AAC1B,MAAM,aAAa,GAAG,SAAS,CAAC;AAChC,MAAM,YAAY,GAAG,WAAW,CAAC;AACjC,MAAM,SAAS,GAAG,YAAY,CAAC;AA6B/B,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;IAmBhC;QAlBY;;;;mBAAgB,KAAK;WAAC;QACtB;;;;mBAAiB,KAAK;WAAC;QACvB;;;;mBAAsB,EAAE;WAAC;QACzB;;;;mBAA6C,EAAE;WAAC;QAChD;;;;mBAAY,EAAE;WAAC;QACf;;;;mBAAuC,IAAI,GAAG,EAAE;WAAC;QAE7D;;;;mBAA2C,IAAI,qBAAS,CAAC;gBACrD,WAAW,EAAE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YAAY,CAAC;QAC/C,CAAC,CAAC,CAAC;IACP,CAAC;IAaD,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;IACnF,CAAC;IAGD,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;IAClF,CAAC;IAGD,IAAI,iBAAiB;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;YAC9C,CAAC,CAAC;gBACI,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,WAAW;aAC3B;YACH,CAAC,CAAC;gBACI,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,YAAY;aAC5B,CAAC;IACZ,CAAC;CAeJ,CAAA;AAnFe;IAAX,iBAAU;;8DAAuB;AACtB;IAAX,iBAAU;;+DAAwB;AACvB;IAAX,iBAAU;;0DAA0B;AACzB;IAAX,iBAAU;;qEAAiD;AAChD;IAAX,iBAAU;;0DAAgB;AACf;IAAX,iBAAU;8BAAkB,GAAG;gEAA6B;AAiC7D;IADC,aAAM;;kEAGL;AAQF;IADC,eAAQ;;;0DAGR;AAGD;IADC,eAAQ;;;0DAGR;AAGD;IADC,eAAQ;;;gEAWR;AAGD;IADC,aAAM;;yDASL;AAGF;IADC,aAAM;;2DACuC;AAnFrC,uBAAuB;IADnC,IAAA,sBAAU,GAAE;;GACA,uBAAuB,CAoFnC;AApFY,0DAAuB"}
1
+ {"version":3,"file":"company-profile-form.store.js","sourceRoot":"","sources":["../../../src/company-profile/stores/company-profile-form.store.ts"],"names":[],"mappings":";;;;;;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AAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,SAAS,CAAC;IACnF,CAAC;IAGD,IAAI,WAAW;QACX,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;IAClF,CAAC;IAGD,IAAI,iBAAiB;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;YAC9C,CAAC,CAAC;gBACI,KAAK,EAAE,WAAW;gBAClB,WAAW,EAAE,WAAW;aAC3B;YACH,CAAC,CAAC;gBACI,KAAK,EAAE,YAAY;gBACnB,WAAW,EAAE,YAAY;aAC5B,CAAC;IACZ,CAAC;CAmBJ,CAAA;AAvFe;IAAX,UAAU;;8DAAuB;AACtB;IAAX,UAAU;;+DAAwB;AACvB;IAAX,UAAU;;0DAA0B;AACzB;IAAX,UAAU;;qEAAiD;AAChD;IAAX,UAAU;;0DAAgB;AACf;IAAX,UAAU;8BAAkB,GAAG;gEAA6B;AAiC7D;IADC,MAAM;;kEAGL;AAQF;IADC,QAAQ;;;0DAGR;AAGD;IADC,QAAQ;;;0DAGR;AAGD;IADC,QAAQ;;;gEAWR;AAGD;IADC,MAAM;;yDAaL;AAGF;IADC,MAAM;;2DACuC;AAvFrC,uBAAuB;IADnC,UAAU,EAAE;;GACA,uBAAuB,CAwFnC;SAxFY,uBAAuB"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PhoneValidator = void 0;
4
- const PhoneValidator = (pattern, required) => {
1
+ export const PhoneValidator = (pattern, required) => {
5
2
  return ($) => {
6
3
  const phoneString = ($ || '').replace(/[^0-9.]/g, '');
7
4
  const isRequired = !required ? phoneString : true;
@@ -10,5 +7,4 @@ const PhoneValidator = (pattern, required) => {
10
7
  'Invalid phone number');
11
8
  };
12
9
  };
13
- exports.PhoneValidator = PhoneValidator;
14
10
  //# sourceMappingURL=validators.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"validators.js","sourceRoot":"","sources":["../../../src/company-profile/utils/validators.ts"],"names":[],"mappings":";;;AAAO,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,QAAiB,EAAE,EAAE;IACjE,OAAO,CAAC,CAAS,EAAE,EAAE;QACjB,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QACtD,MAAM,UAAU,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;QAClD,OAAO,CACH,UAAU;YACV,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;YAClD,sBAAsB,CACzB,CAAC;IACN,CAAC,CAAC;AACN,CAAC,CAAC;AAVW,QAAA,cAAc,kBAUzB"}
1
+ {"version":3,"file":"validators.js","sourceRoot":"","sources":["../../../src/company-profile/utils/validators.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAe,EAAE,QAAiB,EAAE,EAAE;IACjE,OAAO,CAAC,CAAS,EAAE,EAAE;QACjB,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;QACtD,MAAM,UAAU,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC;QAClD,OAAO,CACH,UAAU;YACV,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;YAClD,sBAAsB,CACzB,CAAC;IACN,CAAC,CAAC;AACN,CAAC,CAAC"}
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CONTENTFUL_API_TOKEN = void 0;
4
- const react_ioc_1 = require("@servicetitan/react-ioc");
5
- exports.CONTENTFUL_API_TOKEN = (0, react_ioc_1.symbolToken)('CONTENTFUL_API_TOKEN');
1
+ import { symbolToken } from '@servicetitan/react-ioc';
2
+ export const CONTENTFUL_API_TOKEN = symbolToken('CONTENTFUL_API_TOKEN');
6
3
  //# sourceMappingURL=contentful.api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contentful.api.js","sourceRoot":"","sources":["../../src/contentful/contentful.api.ts"],"names":[],"mappings":";;;AAAA,uDAAsD;AAEzC,QAAA,oBAAoB,GAAG,IAAA,uBAAW,EAAiB,sBAAsB,CAAC,CAAC"}
1
+ {"version":3,"file":"contentful.api.js","sourceRoot":"","sources":["../../src/contentful/contentful.api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAiB,sBAAsB,CAAC,CAAC"}
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -20,14 +19,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
19
  step((generator = generator.apply(thisArg, _arguments || [])).next());
21
20
  });
22
21
  };
23
- var __importDefault = (this && this.__importDefault) || function (mod) {
24
- return (mod && mod.__esModule) ? mod : { "default": mod };
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.ContentfulDataStore = void 0;
28
- const contentful_resolve_response_1 = __importDefault(require("contentful-resolve-response"));
29
- const react_ioc_1 = require("@servicetitan/react-ioc");
30
- const _1 = require(".");
22
+ import resolveResponse from 'contentful-resolve-response';
23
+ import { inject, injectable } from '@servicetitan/react-ioc';
24
+ import { CONTENTFUL_API_TOKEN } from '.';
31
25
  let ContentfulDataStore = class ContentfulDataStore {
32
26
  constructor(contentfulApi) {
33
27
  Object.defineProperty(this, "contentfulApi", {
@@ -43,15 +37,15 @@ let ContentfulDataStore = class ContentfulDataStore {
43
37
  value: ({ entryType, codeId, isPreview = false, }) => __awaiter(this, void 0, void 0, function* () {
44
38
  var _a;
45
39
  const { data } = yield this.contentfulApi.getContentfulContent(entryType, codeId, 10, isPreview);
46
- return (_a = (0, contentful_resolve_response_1.default)(data)) === null || _a === void 0 ? void 0 : _a[0];
40
+ return (_a = resolveResponse(data)) === null || _a === void 0 ? void 0 : _a[0];
47
41
  })
48
42
  });
49
43
  }
50
44
  };
51
45
  ContentfulDataStore = __decorate([
52
- (0, react_ioc_1.injectable)(),
53
- __param(0, (0, react_ioc_1.inject)(_1.CONTENTFUL_API_TOKEN)),
46
+ injectable(),
47
+ __param(0, inject(CONTENTFUL_API_TOKEN)),
54
48
  __metadata("design:paramtypes", [Object])
55
49
  ], ContentfulDataStore);
56
- exports.ContentfulDataStore = ContentfulDataStore;
50
+ export { ContentfulDataStore };
57
51
  //# sourceMappingURL=contentful.data.store.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"contentful.data.store.js","sourceRoot":"","sources":["../../src/contentful/contentful.data.store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8FAA0D;AAC1D,uDAA6D;AAC7D,wBAAgE;AAShE,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAC5B,YAAkD,aAA6B;;;;;mBAA7B;;QAElD;;;;mBAAoB,CAAU,EAC1B,SAAS,EACT,MAAM,EACN,SAAS,GAAG,KAAK,GACG,EAAE,EAAE;;gBACxB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,oBAAoB,CAC1D,SAAS,EACT,MAAM,EACN,EAAE,EACF,SAAS,CACZ,CAAC;gBACF,OAAO,MAAA,IAAA,qCAAe,EAAC,IAAI,CAAC,0CAAG,CAAC,CAAyB,CAAC;YAC9D,CAAC,CAAA;WAAC;IAdgF,CAAC;CAetF,CAAA;AAhBY,mBAAmB;IAD/B,IAAA,sBAAU,GAAE;IAEI,WAAA,IAAA,kBAAM,EAAC,uBAAoB,CAAC,CAAA;;GADhC,mBAAmB,CAgB/B;AAhBY,kDAAmB"}
1
+ {"version":3,"file":"contentful.data.store.js","sourceRoot":"","sources":["../../src/contentful/contentful.data.store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAyB,MAAM,GAAG,CAAC;AAShE,IAAa,mBAAmB,GAAhC,MAAa,mBAAmB;IAC5B,YAAkD,aAA6B;;;;;mBAA7B;;QAElD;;;;mBAAoB,CAAU,EAC1B,SAAS,EACT,MAAM,EACN,SAAS,GAAG,KAAK,GACG,EAAE,EAAE;;gBACxB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,oBAAoB,CAC1D,SAAS,EACT,MAAM,EACN,EAAE,EACF,SAAS,CACZ,CAAC;gBACF,OAAO,MAAA,eAAe,CAAC,IAAI,CAAC,0CAAG,CAAC,CAAyB,CAAC;YAC9D,CAAC,CAAA;WAAC;IAdgF,CAAC;CAetF,CAAA;AAhBY,mBAAmB;IAD/B,UAAU,EAAE;IAEI,WAAA,MAAM,CAAC,oBAAoB,CAAC,CAAA;;GADhC,mBAAmB,CAgB/B;SAhBY,mBAAmB"}
@@ -1,20 +1,16 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.documentToReactComponent = exports.richTextRenderOptions = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const rich_text_react_renderer_1 = require("@contentful/rich-text-react-renderer");
6
- const rich_text_types_1 = require("@contentful/rich-text-types");
7
- const design_system_1 = require("@servicetitan/design-system");
8
- exports.richTextRenderOptions = {
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { documentToReactComponents, } from '@contentful/rich-text-react-renderer';
3
+ import { INLINES } from '@contentful/rich-text-types';
4
+ import { Link } from '@servicetitan/design-system';
5
+ export const richTextRenderOptions = {
9
6
  openHyperlinkInNewTab: {
10
- [rich_text_types_1.INLINES.HYPERLINK]: (node, children) => {
11
- return ((0, jsx_runtime_1.jsx)(design_system_1.Link, Object.assign({ primary: true, href: node.data.uri, target: "_blank", rel: "noopener noreferrer" }, { children: children }), void 0));
7
+ [INLINES.HYPERLINK]: (node, children) => {
8
+ return (_jsx(Link, Object.assign({ primary: true, href: node.data.uri, target: "_blank", rel: "noopener noreferrer" }, { children: children })));
12
9
  },
13
10
  },
14
11
  };
15
- const documentToReactComponent = ({ document, options, renderNodes, }) => {
12
+ export const documentToReactComponent = ({ document, options, renderNodes, }) => {
16
13
  const renderOptions = Object.assign(Object.assign({}, options), { renderNode: renderNodes === null || renderNodes === void 0 ? void 0 : renderNodes.reduce((acc, x) => (Object.assign(Object.assign({}, acc), x))) });
17
- return document ? (0, rich_text_react_renderer_1.documentToReactComponents)(document, renderOptions) : undefined;
14
+ return document ? documentToReactComponents(document, renderOptions) : undefined;
18
15
  };
19
- exports.documentToReactComponent = documentToReactComponent;
20
16
  //# sourceMappingURL=document-to-react-component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"document-to-react-component.js","sourceRoot":"","sources":["../../src/contentful/document-to-react-component.tsx"],"names":[],"mappings":";;;;AACA,mFAI8C;AAC9C,iEAAqE;AACrE,+DAAmD;AAGtC,QAAA,qBAAqB,GAAG;IACjC,qBAAqB,EAAE;QACnB,CAAC,yBAAO,CAAC,SAAS,CAAC,EAAE,CAAC,IAAoB,EAAE,QAAmB,EAAE,EAAE;YAC/D,OAAO,CACH,uBAAC,oBAAI,kBAAC,OAAO,QAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,gBACvE,QAAQ,YACN,CACV,CAAC;QACN,CAAC;KACU;CAClB,CAAC;AAQK,MAAM,wBAAwB,GAA0C,CAAC,EAC5E,QAAQ,EACR,OAAO,EACP,WAAW,GACd,EAAE,EAAE;IACD,MAAM,aAAa,mCACZ,OAAO,KACV,UAAU,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,iCAAM,GAAG,GAAK,CAAC,EAAG,CAAC,GAClE,CAAC;IACF,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAA,oDAAyB,EAAC,QAAQ,EAAE,aAAwB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAChG,CAAC,CAAC;AAVW,QAAA,wBAAwB,4BAUnC"}
1
+ {"version":3,"file":"document-to-react-component.js","sourceRoot":"","sources":["../../src/contentful/document-to-react-component.tsx"],"names":[],"mappings":";AACA,OAAO,EACH,yBAAyB,GAG5B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAiB,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAGnD,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,qBAAqB,EAAE;QACnB,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,IAAoB,EAAE,QAAmB,EAAE,EAAE;YAC/D,OAAO,CACH,KAAC,IAAI,kBAAC,OAAO,QAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,EAAC,QAAQ,EAAC,GAAG,EAAC,qBAAqB,gBACvE,QAAQ,IACN,CACV,CAAC;QACN,CAAC;KACU;CAClB,CAAC;AAQF,MAAM,CAAC,MAAM,wBAAwB,GAA0C,CAAC,EAC5E,QAAQ,EACR,OAAO,EACP,WAAW,GACd,EAAE,EAAE;IACD,MAAM,aAAa,mCACZ,OAAO,KACV,UAAU,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,iCAAM,GAAG,GAAK,CAAC,EAAG,CAAC,GAClE,CAAC;IACF,OAAO,QAAQ,CAAC,CAAC,CAAC,yBAAyB,CAAC,QAAQ,EAAE,aAAwB,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAChG,CAAC,CAAC"}
@@ -1,20 +1,8 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./contentful.api"), exports);
14
- __exportStar(require("./contentful.data.store"), exports);
15
- __exportStar(require("./marketing-carousel.store"), exports);
16
- __exportStar(require("./page-contentful.store"), exports);
17
- __exportStar(require("./interfaces"), exports);
18
- __exportStar(require("./utils"), exports);
19
- __exportStar(require("./document-to-react-component"), exports);
1
+ export * from './contentful.api';
2
+ export * from './contentful.data.store';
3
+ export * from './marketing-carousel.store';
4
+ export * from './page-contentful.store';
5
+ export * from './interfaces';
6
+ export * from './utils';
7
+ export * from './document-to-react-component';
20
8
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contentful/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,mDAAiC;AACjC,0DAAwC;AACxC,6DAA2C;AAC3C,0DAAwC;AACxC,+CAA6B;AAC7B,0CAAwB;AACxB,gEAA8C"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contentful/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,+BAA+B,CAAC"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=interfaces.js.map
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
2
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
3
  if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
@@ -31,21 +30,16 @@ var __rest = (this && this.__rest) || function (s, e) {
31
30
  }
32
31
  return t;
33
32
  };
34
- var __importDefault = (this && this.__importDefault) || function (mod) {
35
- return (mod && mod.__esModule) ? mod : { "default": mod };
36
- };
37
- Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.MarketingCarouselStore = exports.MarketingCarouselColorTheme = void 0;
39
- const react_ioc_1 = require("@servicetitan/react-ioc");
40
- const mobx_1 = require("mobx");
41
- const query_string_1 = __importDefault(require("query-string"));
42
- const _1 = require(".");
33
+ import { inject, injectable } from '@servicetitan/react-ioc';
34
+ import { action, computed, makeObservable, observable, runInAction } from 'mobx';
35
+ import queryString from 'query-string';
36
+ import { ContentfulDataStore } from '.';
43
37
  const carouselBackgroundLightPath = 'https://static.servicetitan.com/acm/auth/sign-in-carousel-background.png';
44
- var MarketingCarouselColorTheme;
38
+ export var MarketingCarouselColorTheme;
45
39
  (function (MarketingCarouselColorTheme) {
46
40
  MarketingCarouselColorTheme["Light"] = "Light";
47
41
  MarketingCarouselColorTheme["Dark"] = "Dark";
48
- })(MarketingCarouselColorTheme = exports.MarketingCarouselColorTheme || (exports.MarketingCarouselColorTheme = {}));
42
+ })(MarketingCarouselColorTheme || (MarketingCarouselColorTheme = {}));
49
43
  let MarketingCarouselStore = class MarketingCarouselStore {
50
44
  constructor(contentfulDataStore) {
51
45
  Object.defineProperty(this, "contentfulDataStore", {
@@ -92,12 +86,12 @@ let MarketingCarouselStore = class MarketingCarouselStore {
92
86
  codeId,
93
87
  isPreview,
94
88
  });
95
- (0, mobx_1.runInAction)(() => {
89
+ runInAction(() => {
96
90
  this.photoGalleryData = data;
97
91
  });
98
92
  }
99
93
  finally {
100
- (0, mobx_1.runInAction)(() => {
94
+ runInAction(() => {
101
95
  this.isInitializing = false;
102
96
  });
103
97
  }
@@ -111,11 +105,11 @@ let MarketingCarouselStore = class MarketingCarouselStore {
111
105
  if (!ctaTrackingCode) {
112
106
  return ctaLink;
113
107
  }
114
- const qs = query_string_1.default.parse(ctaTrackingCode);
108
+ const qs = queryString.parse(ctaTrackingCode);
115
109
  if (this.utmSource) {
116
110
  qs.utm_source = this.utmSource;
117
111
  }
118
- return `${ctaLink}?${query_string_1.default.stringify(qs)}`;
112
+ return `${ctaLink}?${queryString.stringify(qs)}`;
119
113
  }
120
114
  });
121
115
  Object.defineProperty(this, "isDateRangeActive", {
@@ -132,7 +126,7 @@ let MarketingCarouselStore = class MarketingCarouselStore {
132
126
  return inStartRange && inEndRange;
133
127
  }
134
128
  });
135
- (0, mobx_1.makeObservable)(this);
129
+ makeObservable(this);
136
130
  }
137
131
  // colorTheme and backgroundImageUrl are not not part of initial release of contentful
138
132
  get carouselSettings() {
@@ -153,39 +147,39 @@ let MarketingCarouselStore = class MarketingCarouselStore {
153
147
  }
154
148
  };
155
149
  __decorate([
156
- mobx_1.observable,
150
+ observable,
157
151
  __metadata("design:type", Object)
158
152
  ], MarketingCarouselStore.prototype, "isInitializing", void 0);
159
153
  __decorate([
160
- mobx_1.observable,
154
+ observable,
161
155
  __metadata("design:type", Object)
162
156
  ], MarketingCarouselStore.prototype, "photoGalleryData", void 0);
163
157
  __decorate([
164
- mobx_1.observable,
158
+ observable,
165
159
  __metadata("design:type", String)
166
160
  ], MarketingCarouselStore.prototype, "utmSource", void 0);
167
161
  __decorate([
168
- mobx_1.observable,
162
+ observable,
169
163
  __metadata("design:type", Object)
170
164
  ], MarketingCarouselStore.prototype, "fallbackData", void 0);
171
165
  __decorate([
172
- mobx_1.action,
166
+ action,
173
167
  __metadata("design:type", Object)
174
168
  ], MarketingCarouselStore.prototype, "initialize", void 0);
175
169
  __decorate([
176
- mobx_1.computed,
170
+ computed,
177
171
  __metadata("design:type", Object),
178
172
  __metadata("design:paramtypes", [])
179
173
  ], MarketingCarouselStore.prototype, "carouselSettings", null);
180
174
  __decorate([
181
- mobx_1.computed,
175
+ computed,
182
176
  __metadata("design:type", Object),
183
177
  __metadata("design:paramtypes", [])
184
178
  ], MarketingCarouselStore.prototype, "carouselData", null);
185
179
  MarketingCarouselStore = __decorate([
186
- (0, react_ioc_1.injectable)(),
187
- __param(0, (0, react_ioc_1.inject)(_1.ContentfulDataStore)),
188
- __metadata("design:paramtypes", [_1.ContentfulDataStore])
180
+ injectable(),
181
+ __param(0, inject(ContentfulDataStore)),
182
+ __metadata("design:paramtypes", [ContentfulDataStore])
189
183
  ], MarketingCarouselStore);
190
- exports.MarketingCarouselStore = MarketingCarouselStore;
184
+ export { MarketingCarouselStore };
191
185
  //# sourceMappingURL=marketing-carousel.store.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"marketing-carousel.store.js","sourceRoot":"","sources":["../../src/contentful/marketing-carousel.store.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,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