@dyedurham/search-and-file-widget 2.0.73 → 2.0.75

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.
@@ -58082,6 +58082,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
58082
58082
  function isOntarioTask(task) {
58083
58083
  return task.entity._compliance.home_jurisdiction === "Ontario";
58084
58084
  }
58085
+ function isChangeOfPrincipalsTask(task) {
58086
+ return task?._taskType === TaskType.ChangeOfPrincipals;
58087
+ }
58085
58088
  function isBritishColumbiaTask(task) {
58086
58089
  return task.entity._compliance.home_jurisdiction === "British Columbia";
58087
58090
  }
@@ -58106,7 +58109,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
58106
58109
  if (!task) {
58107
58110
  return void 0;
58108
58111
  }
58109
- const prefix = isOntarioTask(task) ? "ontario" : isBritishColumbiaTask(task) ? "bc" : "federal";
58112
+ const prefix = isOntarioTask(task) ? "ontario" : isBritishColumbiaTask(task) ? "britishColumbia" : "federal";
58110
58113
  if (isFormationTask2(task)) {
58111
58114
  return `${prefix}Incorporation`;
58112
58115
  }
@@ -58119,6 +58122,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
58119
58122
  if (isAnnualReturnTask(task)) {
58120
58123
  return `${prefix}AnnualReturn`;
58121
58124
  }
58125
+ if (isChangeOfPrincipalsTask(task)) {
58126
+ return `${prefix}NoticeOfChangeOfDirectors`;
58127
+ }
58122
58128
  return void 0;
58123
58129
  }
58124
58130
  function markFormGroupTouched(formGroup) {
@@ -80206,12 +80212,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80206
80212
  });
80207
80213
  \u0275\u0275elementEnd();
80208
80214
  \u0275\u0275template(6, FilingFormGroupComponent_For_5_Conditional_0_Case_7_Conditional_1_Conditional_6_Template, 3, 3, "mat-hint")(7, FilingFormGroupComponent_For_5_Conditional_0_Case_7_Conditional_1_Conditional_7_Template, 3, 6, "mat-hint", 21)(8, FilingFormGroupComponent_For_5_Conditional_0_Case_7_Conditional_1_Conditional_8_Template, 2, 2, "mat-icon", 20);
80209
- \u0275\u0275declareLet(9);
80210
- \u0275\u0275elementStart(10, "mat-error");
80211
- \u0275\u0275text(11);
80215
+ \u0275\u0275elementStart(9, "mat-error");
80216
+ \u0275\u0275text(10);
80217
+ \u0275\u0275pipe(11, "translate");
80212
80218
  \u0275\u0275pipe(12, "translate");
80213
80219
  \u0275\u0275pipe(13, "translate");
80214
- \u0275\u0275pipe(14, "translate");
80215
80220
  \u0275\u0275elementEnd()();
80216
80221
  }
80217
80222
  if (rf & 2) {
@@ -80220,8 +80225,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80220
80225
  \u0275\u0275nextContext(2);
80221
80226
  const previousValue_r13 = \u0275\u0275readContextLet(0);
80222
80227
  const field_r3 = \u0275\u0275nextContext().$implicit;
80223
- \u0275\u0275nextContext();
80224
- const form_r4 = \u0275\u0275readContextLet(1);
80225
80228
  \u0275\u0275classProp("warning", !!previousValue_r13)("body-1-semibold", field_r3.bold);
80226
80229
  \u0275\u0275advance();
80227
80230
  \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(2, 14, field_r3.label) + (field_r3.required ? " *" : ""), " ");
@@ -80236,15 +80239,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80236
80239
  \u0275\u0275conditional(previousValue_r13 != null ? 7 : -1);
80237
80240
  \u0275\u0275advance();
80238
80241
  \u0275\u0275conditional(previousValue_r13 != null ? 8 : -1);
80239
- const inputControl_r27 = form_r4.get(field_r3.formControlName);
80240
- \u0275\u0275advance(3);
80241
- \u0275\u0275textInterpolate(field_r3.errorMessage && !(field_r3.showRequiredMessage && ((inputControl_r27 == null ? null : inputControl_r27.hasError("require")) || (inputControl_r27 == null ? null : inputControl_r27.hasError("required")))) ? \u0275\u0275pipeBind1(12, 16, field_r3.errorMessage) : \u0275\u0275pipeBind1(13, 18, field_r3.label) + " " + \u0275\u0275pipeBind1(14, 20, "is required"));
80242
+ \u0275\u0275advance(2);
80243
+ \u0275\u0275textInterpolate(field_r3.errorMessage ? \u0275\u0275pipeBind1(11, 16, field_r3.errorMessage) : \u0275\u0275pipeBind1(12, 18, field_r3.label) + " " + \u0275\u0275pipeBind1(13, 20, "is required"));
80242
80244
  }
80243
80245
  }
80244
80246
  function FilingFormGroupComponent_For_5_Conditional_0_Case_7_Template(rf, ctx) {
80245
80247
  if (rf & 1) {
80246
80248
  \u0275\u0275elementStart(0, "div");
80247
- \u0275\u0275template(1, FilingFormGroupComponent_For_5_Conditional_0_Case_7_Conditional_1_Template, 15, 22);
80249
+ \u0275\u0275template(1, FilingFormGroupComponent_For_5_Conditional_0_Case_7_Conditional_1_Template, 14, 22);
80248
80250
  \u0275\u0275elementEnd();
80249
80251
  }
80250
80252
  if (rf & 2) {
@@ -80260,14 +80262,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80260
80262
  }
80261
80263
  function FilingFormGroupComponent_For_5_Conditional_0_Case_8_Conditional_1_Template(rf, ctx) {
80262
80264
  if (rf & 1) {
80263
- const _r28 = \u0275\u0275getCurrentView();
80265
+ const _r27 = \u0275\u0275getCurrentView();
80264
80266
  \u0275\u0275elementStart(0, "span", 8);
80265
80267
  \u0275\u0275text(1);
80266
80268
  \u0275\u0275pipe(2, "translate");
80267
80269
  \u0275\u0275elementEnd();
80268
80270
  \u0275\u0275elementStart(3, "mat-form-field", 9)(4, "textarea", 37);
80269
80271
  \u0275\u0275listener("change", function FilingFormGroupComponent_For_5_Conditional_0_Case_8_Conditional_1_Template_textarea_change_4_listener() {
80270
- \u0275\u0275restoreView(_r28);
80272
+ \u0275\u0275restoreView(_r27);
80271
80273
  const field_r3 = \u0275\u0275nextContext(3).$implicit;
80272
80274
  \u0275\u0275nextContext();
80273
80275
  const form_r4 = \u0275\u0275readContextLet(1);
@@ -80314,14 +80316,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80314
80316
  }
80315
80317
  if (rf & 2) {
80316
80318
  \u0275\u0275nextContext();
80317
- const label_r29 = \u0275\u0275readContextLet(0);
80319
+ const label_r28 = \u0275\u0275readContextLet(0);
80318
80320
  const ctx_r13 = \u0275\u0275nextContext(2);
80319
80321
  const field_r3 = ctx_r13.$implicit;
80320
80322
  const \u0275$index_7_r15 = ctx_r13.$index;
80321
80323
  const \u0275$count_7_r16 = ctx_r13.$count;
80322
80324
  \u0275\u0275classMap(field_r3.class);
80323
80325
  \u0275\u0275classProp("last", \u0275$index_7_r15 === \u0275$count_7_r16 - 1)("body-1-semibold", field_r3.bold);
80324
- \u0275\u0275property("innerHTML", label_r29, \u0275\u0275sanitizeHtml);
80326
+ \u0275\u0275property("innerHTML", label_r28, \u0275\u0275sanitizeHtml);
80325
80327
  }
80326
80328
  }
80327
80329
  function FilingFormGroupComponent_For_5_Conditional_0_Case_10_Template(rf, ctx) {
@@ -80333,9 +80335,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80333
80335
  const field_r3 = \u0275\u0275nextContext(2).$implicit;
80334
80336
  const ctx_r8 = \u0275\u0275nextContext();
80335
80337
  const form_r4 = \u0275\u0275readContextLet(1);
80336
- const label_r30 = \u0275\u0275storeLet(field_r3.dynamicLabel ? field_r3.dynamicLabel(form_r4, ctx_r8.translateFn, ctx_r8.prevData()) : field_r3.label);
80338
+ const label_r29 = \u0275\u0275storeLet(field_r3.dynamicLabel ? field_r3.dynamicLabel(form_r4, ctx_r8.translateFn, ctx_r8.prevData()) : field_r3.label);
80337
80339
  \u0275\u0275advance();
80338
- \u0275\u0275conditional(label_r30 ? 1 : -1);
80340
+ \u0275\u0275conditional(label_r29 ? 1 : -1);
80339
80341
  }
80340
80342
  }
80341
80343
  function FilingFormGroupComponent_For_5_Conditional_0_Template(rf, ctx) {
@@ -80512,14 +80514,14 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80512
80514
  \u0275\u0275elementEnd()();
80513
80515
  }
80514
80516
  if (rf & 2) {
80515
- const fields_r31 = ctx.config();
80517
+ const fields_r30 = ctx.config();
80516
80518
  \u0275\u0275advance();
80517
- const form_r32 = \u0275\u0275storeLet(ctx.form());
80519
+ const form_r31 = \u0275\u0275storeLet(ctx.form());
80518
80520
  \u0275\u0275advance(2);
80519
80521
  \u0275\u0275classProp("submitted", ctx.isSubmitted());
80520
- \u0275\u0275property("formGroup", form_r32);
80522
+ \u0275\u0275property("formGroup", form_r31);
80521
80523
  \u0275\u0275advance();
80522
- \u0275\u0275repeater(fields_r31);
80524
+ \u0275\u0275repeater(fields_r30);
80523
80525
  }
80524
80526
  }, dependencies: [
80525
80527
  MatFormField,
@@ -80775,8 +80777,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
80775
80777
  <mat-icon [class.warning]="true" class="filling-form-fields-item-icon" matSuffix>warning_amber</mat-icon>\r
80776
80778
  }\r
80777
80779
  \r
80778
- @let inputControl = form.get(field.formControlName);\r
80779
- <mat-error>{{ field.errorMessage && !(field.showRequiredMessage && (inputControl?.hasError('require') || inputControl?.hasError('required'))) ? (field.errorMessage | translate) : (field.label | translate) + ' ' + ('is required' | translate) }}</mat-error>\r
80780
+ <mat-error>{{ field.errorMessage ? (field.errorMessage | translate) : (field.label | translate) + ' ' + ('is required' | translate) }}</mat-error>\r
80780
80781
  </mat-form-field>\r
80781
80782
  }\r
80782
80783
  </div>\r
@@ -81298,6 +81299,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81298
81299
  initialReturnInitialDelta = signal(null);
81299
81300
  federalFormationInitialDelta = signal(null);
81300
81301
  federalUpdateMaintainInitialDelta = signal(null);
81302
+ bcChangeOfDirectorsInitialDelta = signal(null);
81301
81303
  bcFormationInitialDelta = signal(null);
81302
81304
  setFormationInitialDelta(delta) {
81303
81305
  this.formationInitialDelta.set(delta);
@@ -81314,11 +81316,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
81314
81316
  setFederalUpdateMaintainInitialDelta(delta) {
81315
81317
  this.federalUpdateMaintainInitialDelta.set(delta);
81316
81318
  }
81319
+ setBCChangeOfDirectorsInitialDelta(delta) {
81320
+ this.bcChangeOfDirectorsInitialDelta.set(delta);
81321
+ }
81317
81322
  reset() {
81318
81323
  this.formationInitialDelta.set(null);
81319
81324
  this.initialReturnInitialDelta.set(null);
81320
81325
  this.federalFormationInitialDelta.set(null);
81321
81326
  this.federalUpdateMaintainInitialDelta.set(null);
81327
+ this.bcChangeOfDirectorsInitialDelta.set(null);
81322
81328
  this.bcFormationInitialDelta.set(null);
81323
81329
  }
81324
81330
  static \u0275fac = function DeltaStateService_Factory(__ngFactoryType__) {
@@ -84126,10 +84132,95 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84126
84132
  }
84127
84133
  });
84128
84134
 
84135
+ // src/app/constants/BritishColumbiaConstants.ts
84136
+ var BCNameType, BCNameTypeLabel, BC_NUMBERED_NAME_PREVIEW, BCNotificationMethod, BCNotificationMethodLabel, BC_NOTIFICATION_METHOD_OPTIONS, BC_CHANGE_OF_DIRECTORS_FILING_FEE, BCAnnualReportReminder, BCAnnualReportReminderLabel, BC_ANNUAL_REPORT_REMINDER_OPTIONS, BC_PROVINCE_STATE_OPTIONS, BC_COUNTRY_OPTIONS, BC_DEFAULT_PROVINCE_STATE, BC_DEFAULT_COUNTRY, BC_FUTURE_EFFECTIVE_DATE_FEE, BC_PASSWORD_MIN_LENGTH, BC_PASSWORD_MAX_LENGTH, BC_PASSWORD_PATTERN, BC_COMPANY_EMAIL_MAX_LENGTH, BC_NAME_RESERVATION_MAX_LENGTH, BC_NAME_RESERVATION_PATTERN, BC_COMPLETING_PARTY_COUNTRY_OPTIONS;
84137
+ var init_BritishColumbiaConstants = __esm({
84138
+ "src/app/constants/BritishColumbiaConstants.ts"() {
84139
+ init_app_enums();
84140
+ init_common_constants();
84141
+ (function(BCNameType2) {
84142
+ BCNameType2[BCNameType2["Numbered"] = 1] = "Numbered";
84143
+ BCNameType2[BCNameType2["Named"] = 2] = "Named";
84144
+ })(BCNameType || (BCNameType = {}));
84145
+ BCNameTypeLabel = {
84146
+ [BCNameType.Numbered]: "Numbered",
84147
+ [BCNameType.Named]: "Named"
84148
+ };
84149
+ BC_NUMBERED_NAME_PREVIEW = "[Incorporation Number] B.C. LTD.";
84150
+ (function(BCNotificationMethod2) {
84151
+ BCNotificationMethod2["Email"] = "email";
84152
+ BCNotificationMethod2["Mail"] = "mail";
84153
+ })(BCNotificationMethod || (BCNotificationMethod = {}));
84154
+ BCNotificationMethodLabel = {
84155
+ [BCNotificationMethod.Email]: "Notify by email",
84156
+ [BCNotificationMethod.Mail]: "Notify by mail"
84157
+ };
84158
+ BC_NOTIFICATION_METHOD_OPTIONS = Object.values(BCNotificationMethod).map((value) => ({ value, label: BCNotificationMethodLabel[value] }));
84159
+ BC_CHANGE_OF_DIRECTORS_FILING_FEE = "$21.50";
84160
+ (function(BCAnnualReportReminder2) {
84161
+ BCAnnualReportReminder2["Yes"] = "yes";
84162
+ BCAnnualReportReminder2["No"] = "no";
84163
+ })(BCAnnualReportReminder || (BCAnnualReportReminder = {}));
84164
+ BCAnnualReportReminderLabel = {
84165
+ [BCAnnualReportReminder.Yes]: "Yes, send the annual report reminder",
84166
+ [BCAnnualReportReminder.No]: "No, I do not need to be reminded"
84167
+ };
84168
+ BC_ANNUAL_REPORT_REMINDER_OPTIONS = Object.values(BCAnnualReportReminder).map((value) => ({ value, label: BCAnnualReportReminderLabel[value] }));
84169
+ BC_PROVINCE_STATE_OPTIONS = Object.values(CANProvinces).map((province) => ({ value: province, label: province }));
84170
+ BC_COUNTRY_OPTIONS = [
84171
+ { value: "Canada", label: "Canada" },
84172
+ { value: "United States", label: "United States" },
84173
+ { value: "Other", label: "Other" }
84174
+ ];
84175
+ BC_DEFAULT_PROVINCE_STATE = CANProvinces.BritishColumbia;
84176
+ BC_DEFAULT_COUNTRY = "Canada";
84177
+ BC_FUTURE_EFFECTIVE_DATE_FEE = "$100";
84178
+ BC_PASSWORD_MIN_LENGTH = 8;
84179
+ BC_PASSWORD_MAX_LENGTH = 15;
84180
+ BC_PASSWORD_PATTERN = /^[A-Za-z0-9]+$/;
84181
+ BC_COMPANY_EMAIL_MAX_LENGTH = 150;
84182
+ BC_NAME_RESERVATION_MAX_LENGTH = 9;
84183
+ BC_NAME_RESERVATION_PATTERN = /^(NR)?\d{1,7}$/i;
84184
+ BC_COMPLETING_PARTY_COUNTRY_OPTIONS = [
84185
+ "Canada",
84186
+ "United States",
84187
+ ...Object.keys(countryCodes).filter((name) => name !== "Canada" && name !== "United States").sort((a, b) => a.localeCompare(b))
84188
+ ].map((name) => ({ value: name, label: name }));
84189
+ }
84190
+ });
84191
+
84129
84192
  // src/app/enums/british-columbia-form.enums.ts
84130
- var BCFormationFormControls, BCFormationFormGroups;
84193
+ var BCChangeOfDirectorsFormControls, BCChangeOfDirectorsFormGroups, BCFormationFormControls, BCFormationFormGroups;
84131
84194
  var init_british_columbia_form_enums = __esm({
84132
84195
  "src/app/enums/british-columbia-form.enums.ts"() {
84196
+ (function(BCChangeOfDirectorsFormControls2) {
84197
+ BCChangeOfDirectorsFormControls2["Id"] = "id";
84198
+ BCChangeOfDirectorsFormControls2["AffiliationName"] = "entityName";
84199
+ BCChangeOfDirectorsFormControls2["AffiliationType"] = "AffiliationType";
84200
+ BCChangeOfDirectorsFormControls2["ClientMatterNumber"] = "ClientMatterNumber";
84201
+ BCChangeOfDirectorsFormControls2["DocketNumber"] = "docketNumber";
84202
+ BCChangeOfDirectorsFormControls2["CorporationName"] = "corporationName";
84203
+ BCChangeOfDirectorsFormControls2["IncorporationNumber"] = "incorporationNumber";
84204
+ BCChangeOfDirectorsFormControls2["CompanyEmail"] = "companyEmail";
84205
+ BCChangeOfDirectorsFormControls2["DirectorsAddedOrDeleted"] = "directorsAddedOrDeleted";
84206
+ BCChangeOfDirectorsFormControls2["ChangeDate"] = "changeDate";
84207
+ BCChangeOfDirectorsFormControls2["FilingFee"] = "filingFee";
84208
+ BCChangeOfDirectorsFormControls2["RegisterAsOfDate"] = "registerAsOfDate";
84209
+ BCChangeOfDirectorsFormControls2["MailingAddress"] = "mailingAddress";
84210
+ BCChangeOfDirectorsFormControls2["DeliveryAddress"] = "deliveryAddress";
84211
+ BCChangeOfDirectorsFormControls2["NotificationMethod"] = "notificationMethod";
84212
+ BCChangeOfDirectorsFormControls2["NotificationEmail"] = "notificationEmail";
84213
+ BCChangeOfDirectorsFormControls2["NotificationMailingAddress"] = "notificationMailingAddress";
84214
+ BCChangeOfDirectorsFormControls2["AnnualReportReminder"] = "annualReportReminder";
84215
+ })(BCChangeOfDirectorsFormControls || (BCChangeOfDirectorsFormControls = {}));
84216
+ (function(BCChangeOfDirectorsFormGroups2) {
84217
+ BCChangeOfDirectorsFormGroups2["ReferenceNumbers"] = "Reference Numbers";
84218
+ BCChangeOfDirectorsFormGroups2["CorporationDetails"] = "Corporation Details";
84219
+ BCChangeOfDirectorsFormGroups2["FilingDetails"] = "Filing Details";
84220
+ BCChangeOfDirectorsFormGroups2["Directors"] = "Director Information";
84221
+ BCChangeOfDirectorsFormGroups2["Notification"] = "Notification";
84222
+ BCChangeOfDirectorsFormGroups2["AnnualReportReminder"] = "Annual Report Reminder";
84223
+ })(BCChangeOfDirectorsFormGroups || (BCChangeOfDirectorsFormGroups = {}));
84133
84224
  (function(BCFormationFormControls2) {
84134
84225
  BCFormationFormControls2["Id"] = "id";
84135
84226
  BCFormationFormControls2["AffiliationName"] = "entityName";
@@ -84150,6 +84241,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84150
84241
  BCFormationFormControls2["RecordsOfficeMailingAddress"] = "recordsOfficeMailingAddress";
84151
84242
  BCFormationFormControls2["RecordsOfficeDeliveryAddress"] = "recordsOfficeDeliveryAddress";
84152
84243
  BCFormationFormControls2["FullAddress"] = "fullAddress";
84244
+ BCFormationFormControls2["NotificationMethod"] = "notificationMethod";
84245
+ BCFormationFormControls2["NotificationEmail"] = "notificationEmail";
84246
+ BCFormationFormControls2["NotificationName"] = "notificationName";
84153
84247
  BCFormationFormControls2["AddressLine1"] = "addressLine1";
84154
84248
  BCFormationFormControls2["AddressLine2"] = "addressLine2";
84155
84249
  BCFormationFormControls2["City"] = "city";
@@ -84168,6 +84262,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84168
84262
  BCFormationFormGroups2["ReferenceNumbers"] = "Reference Numbers";
84169
84263
  BCFormationFormGroups2["CorporationDetails"] = "Corporation Details";
84170
84264
  BCFormationFormGroups2["RegisteredOfficeAddress"] = "Registered Office Address";
84265
+ BCFormationFormGroups2["Notification"] = "Notification";
84171
84266
  BCFormationFormGroups2["Directors"] = "Directors";
84172
84267
  BCFormationFormGroups2["SharesAndProvisions"] = "Shares and Provisions";
84173
84268
  BCFormationFormGroups2["Incorporators"] = "Incorporators";
@@ -84176,37 +84271,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84176
84271
  }
84177
84272
  });
84178
84273
 
84179
- // src/app/constants/BritishColumbiaConstants.ts
84180
- var BCNameType, BCNameTypeLabel, BC_NUMBERED_NAME_PREVIEW, BC_DEFAULT_COUNTRY, BC_FUTURE_EFFECTIVE_DATE_FEE, BC_PASSWORD_MIN_LENGTH, BC_PASSWORD_MAX_LENGTH, BC_PASSWORD_PATTERN, BC_COMPANY_EMAIL_MAX_LENGTH, BC_CANADIAN_POSTAL_PATTERN, BC_NAME_RESERVATION_MAX_LENGTH, BC_NAME_RESERVATION_PATTERN, BC_COMPLETING_PARTY_COUNTRY_OPTIONS;
84181
- var init_BritishColumbiaConstants = __esm({
84182
- "src/app/constants/BritishColumbiaConstants.ts"() {
84183
- init_common_constants();
84184
- (function(BCNameType2) {
84185
- BCNameType2[BCNameType2["Numbered"] = 1] = "Numbered";
84186
- BCNameType2[BCNameType2["Named"] = 2] = "Named";
84187
- })(BCNameType || (BCNameType = {}));
84188
- BCNameTypeLabel = {
84189
- [BCNameType.Numbered]: "Numbered",
84190
- [BCNameType.Named]: "Named"
84191
- };
84192
- BC_NUMBERED_NAME_PREVIEW = "B.C. LTD.";
84193
- BC_DEFAULT_COUNTRY = "Canada";
84194
- BC_FUTURE_EFFECTIVE_DATE_FEE = "$100";
84195
- BC_PASSWORD_MIN_LENGTH = 8;
84196
- BC_PASSWORD_MAX_LENGTH = 15;
84197
- BC_PASSWORD_PATTERN = /^[A-Za-z0-9]+$/;
84198
- BC_COMPANY_EMAIL_MAX_LENGTH = 150;
84199
- BC_CANADIAN_POSTAL_PATTERN = /^[A-Za-z]\d[A-Za-z][ -]?\d[A-Za-z]\d$/;
84200
- BC_NAME_RESERVATION_MAX_LENGTH = 9;
84201
- BC_NAME_RESERVATION_PATTERN = /^(NR)?\d{1,7}$/i;
84202
- BC_COMPLETING_PARTY_COUNTRY_OPTIONS = [
84203
- "Canada",
84204
- "United States",
84205
- ...Object.keys(countryCodes).filter((name) => name !== "Canada" && name !== "United States").sort((a, b) => a.localeCompare(b))
84206
- ].map((name) => ({ value: name, label: name }));
84207
- }
84208
- });
84209
-
84210
84274
  // src/app/helpers/mappers/british-columbia-formation.mapper.ts
84211
84275
  function buildBCFormationValidateRequest(task, deltaData) {
84212
84276
  const affiliations = task.entity.affiliations ?? [];
@@ -84323,11 +84387,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84323
84387
  const isIndividual = incorporator.type !== "entity";
84324
84388
  return {
84325
84389
  incorporatorType: isIndividual ? "individual" : "corporationOrFirm",
84326
- // Names are only accepted for an individual; a corporation or firm is identified by
84327
- // `corporationOrFirmName` (the API rejects first/last name otherwise).
84328
- firstName: isIndividual ? incorporator.firstName ?? "" : void 0,
84390
+ // The API requires a first/last name for both types; for a corporation it is the signatory.
84391
+ firstName: (isIndividual ? incorporator.firstName : incorporator.signatory_first_name) ?? "",
84329
84392
  middleName: isIndividual ? incorporator.middleName || void 0 : void 0,
84330
- lastName: isIndividual ? incorporator.lastName ?? "" : void 0,
84393
+ lastName: (isIndividual ? incorporator.lastName : incorporator.signatory_last_name) ?? "",
84331
84394
  mailingAddress: mapAddress(incorporator),
84332
84395
  corporationOrFirmName: isIndividual ? void 0 : incorporator.incorporator_name
84333
84396
  };
@@ -84345,7 +84408,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84345
84408
  additionalStreetAddress: address?.addressLine2?.trim() || void 0,
84346
84409
  city: address?.city?.trim() ?? "",
84347
84410
  provinceOrState: toProvinceOrStateCode(address?.provinceState, country),
84348
- postalOrZipCode: normalizePostalCode(address?.postalZip, country),
84411
+ postalOrZipCode: address?.postalZip?.trim() ?? "",
84349
84412
  country
84350
84413
  }
84351
84414
  };
@@ -84372,24 +84435,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84372
84435
  const streetNumber = getAddressComponent(address, "Street Number Only");
84373
84436
  const streetName = getAddressComponent(address, "Street Only");
84374
84437
  const suite = getAddressComponent(address, "Suite/Apartment");
84375
- const singleLineStreet = getAddressComponent(address, "Street Address");
84376
84438
  return {
84377
- streetAddress: [streetNumber, streetName].filter(Boolean).join(" ") || singleLineStreet || address?.street || "",
84439
+ streetAddress: [streetNumber, streetName].filter(Boolean).join(" ") || address?.street || "",
84378
84440
  additionalStreetAddress: padShortAddressLine(suite || address?.address2),
84379
84441
  city: address?.city ?? "",
84380
84442
  provinceOrState: toProvinceOrStateCode(address?.province_state, country),
84381
- postalOrZipCode: normalizePostalCode(address?.postal_zip, country),
84443
+ postalOrZipCode: address?.postal_zip ?? "",
84382
84444
  country
84383
84445
  };
84384
84446
  }
84385
- function normalizePostalCode(value, countryCode) {
84386
- const trimmed = (value ?? "").trim();
84387
- if (countryCode !== "CA") {
84388
- return trimmed;
84389
- }
84390
- const compact = trimmed.replace(/[\s-]+/g, "").toUpperCase();
84391
- return /^[A-Z]\d[A-Z]\d[A-Z]\d$/.test(compact) ? `${compact.slice(0, 3)} ${compact.slice(3)}` : trimmed;
84392
- }
84393
84447
  function toProvinceOrStateCode(value, countryCode) {
84394
84448
  const trimmed = (value ?? "").trim();
84395
84449
  if (!trimmed || trimmed.length === 2) {
@@ -84481,7 +84535,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84481
84535
  });
84482
84536
 
84483
84537
  // src/app/helpers/british-columbia/formation/british-columbia-formation-form.helper.ts
84484
- var ifNamed, ifCanada, BritishColumbiaFormationFormHelper;
84538
+ var BritishColumbiaFormationFormHelper;
84485
84539
  var init_british_columbia_formation_form_helper = __esm({
84486
84540
  "src/app/helpers/british-columbia/formation/british-columbia-formation-form.helper.ts"() {
84487
84541
  init_forms();
@@ -84491,8 +84545,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84491
84545
  init_british_columbia_form_enums();
84492
84546
  init_custom_validators();
84493
84547
  init_BritishColumbiaConstants();
84494
- ifNamed = (validator) => (control) => control.parent?.get(BCFormationFormControls.CorporationNameType)?.value === BCNameType.Named ? validator(control) : null;
84495
- ifCanada = (validator) => (control) => control.parent?.get(BCFormationFormControls.Country)?.value === "Canada" ? validator(control) : null;
84496
84548
  BritishColumbiaFormationFormHelper = class {
84497
84549
  static generateConfig(task, translateFn, currentUser) {
84498
84550
  const t = translateFn ?? ((key) => key);
@@ -84524,6 +84576,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84524
84576
  disabled: true
84525
84577
  })
84526
84578
  });
84579
+ config2[BCFormationFormGroups.Notification] = this.generateNotificationFormGroup(delta?.notification, companyEmail);
84527
84580
  config2[BCFormationFormGroups.CompletingParty] = this.generateCompletingPartyFormGroup(task, delta?.completingParty, currentUser);
84528
84581
  const directors = affiliations.filter((a) => isPrincipalAffiliation2(a) && a.role?.role_name === "Director" && // Same filters as the filing payload (buildBCFormationValidateRequest).
84529
84582
  a.status !== "inactive" && a.status !== "closed" && a._participant?.participant_type === "person");
@@ -84606,7 +84659,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84606
84659
  const streetNumber = getAddressComponent(address, "Street Number Only");
84607
84660
  const streetName = getAddressComponent(address, "Street Only");
84608
84661
  const suite = getAddressComponent(address, "Suite/Apartment");
84609
- const street = [streetNumber, streetName].filter(Boolean).join(" ") || getAddressComponent(address, "Street Address") || address.street || "";
84662
+ const street = [streetNumber, streetName].filter(Boolean).join(" ") || address.street || "";
84610
84663
  return [
84611
84664
  suite ? `Unit ${suite}` : "",
84612
84665
  street,
@@ -84617,6 +84670,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84617
84670
  address.country
84618
84671
  ].filter((part) => Boolean(part?.trim())).join(", ");
84619
84672
  }
84673
+ static findSharedAddressAffiliation(affiliations, staticTitle) {
84674
+ return affiliations.find((a) => a.role?.role_name === AddressRole2.SHARED_ADDRESS && a.role?.static_title === staticTitle);
84675
+ }
84620
84676
  static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber) {
84621
84677
  return new FormGroup({
84622
84678
  [BCFormationFormControls.ClientMatterNumber]: new FormControl(deltaData?.referenceNumber ?? clientMatterNumber ?? ""),
@@ -84644,9 +84700,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84644
84700
  [BCFormationFormControls.CompanyName]: new FormControl(deltaData?.companyName ?? (corporationNameType === BCNameType.Named ? task.entity._profile.name ?? "" : ""), requiredIfValue(BCFormationFormControls.CorporationNameType, BCNameType.Named)),
84645
84701
  [BCFormationFormControls.NameReservationNumber]: new FormControl(deltaData?.nameReservationNumber ?? task._ext._name_reservationID ?? "", [
84646
84702
  requiredIfValue(BCFormationFormControls.CorporationNameType, BCNameType.Named),
84647
- // The NR number is kept while hidden for Numbered, so its format rules apply to Named only.
84648
- ifNamed(Validators.maxLength(BC_NAME_RESERVATION_MAX_LENGTH)),
84649
- ifNamed(Validators.pattern(BC_NAME_RESERVATION_PATTERN))
84703
+ Validators.maxLength(BC_NAME_RESERVATION_MAX_LENGTH),
84704
+ Validators.pattern(BC_NAME_RESERVATION_PATTERN)
84650
84705
  ]),
84651
84706
  [BCFormationFormControls.RequestedDateForIncorporation]: new FormControl({
84652
84707
  value: requestedDate,
@@ -84671,6 +84726,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84671
84726
  [BCFormationFormControls.NameTranslations]: new FormArray(translationRows)
84672
84727
  });
84673
84728
  }
84729
+ static generateNotificationFormGroup(deltaData, companyEmail) {
84730
+ const requiredForMail = requiredIfValue(BCFormationFormControls.NotificationMethod, BCNotificationMethod.Mail);
84731
+ const mailAddress = deltaData?.mailAddress;
84732
+ return new FormGroup({
84733
+ [BCFormationFormControls.NotificationMethod]: new FormControl(deltaData?.method ?? BCNotificationMethod.Email, Validators.required),
84734
+ [BCFormationFormControls.NotificationEmail]: new FormControl(deltaData?.email ?? companyEmail),
84735
+ [BCFormationFormControls.NotificationName]: new FormControl(deltaData?.name ?? "", requiredForMail),
84736
+ [BCFormationFormControls.AddressLine1]: new FormControl(mailAddress?.addressLine1 ?? "", requiredForMail),
84737
+ [BCFormationFormControls.AddressLine2]: new FormControl(mailAddress?.addressLine2 ?? ""),
84738
+ [BCFormationFormControls.City]: new FormControl(mailAddress?.city ?? "", requiredForMail),
84739
+ [BCFormationFormControls.ProvinceState]: new FormControl(mailAddress?.provinceState ?? BC_DEFAULT_PROVINCE_STATE, requiredForMail),
84740
+ [BCFormationFormControls.PostalZip]: new FormControl(mailAddress?.postalZip ?? ""),
84741
+ [BCFormationFormControls.Country]: new FormControl(mailAddress?.country ?? BC_DEFAULT_COUNTRY, requiredForMail)
84742
+ });
84743
+ }
84674
84744
  /**
84675
84745
  * Completing Party – the individual completing the Articles. Stays editable (saved as delta).
84676
84746
  * Prefilled, when no delta has been saved yet, from the logged-in user (`currentUser`, per the
@@ -84687,9 +84757,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84687
84757
  [BCFormationFormControls.AddressLine1]: new FormControl(mailAddress?.addressLine1 ?? prefill.mailingAddress.addressLine1, [Validators.required, Validators.minLength(3), Validators.maxLength(40)]),
84688
84758
  [BCFormationFormControls.AddressLine2]: new FormControl(mailAddress?.addressLine2 ?? prefill.mailingAddress.addressLine2, Validators.maxLength(40)),
84689
84759
  [BCFormationFormControls.City]: new FormControl(mailAddress?.city ?? prefill.mailingAddress.city, [Validators.required, Validators.maxLength(40)]),
84690
- // The API requires a province / state when the country is Canada or the United States.
84691
- [BCFormationFormControls.ProvinceState]: new FormControl(mailAddress?.provinceState ?? prefill.mailingAddress.provinceState, requiredIfValueIn(BCFormationFormControls.Country, ["Canada", "United States"])),
84692
- [BCFormationFormControls.PostalZip]: new FormControl(mailAddress?.postalZip ?? prefill.mailingAddress.postalZip, [Validators.required, Validators.maxLength(10), ifCanada(Validators.pattern(BC_CANADIAN_POSTAL_PATTERN))]),
84760
+ [BCFormationFormControls.ProvinceState]: new FormControl(mailAddress?.provinceState ?? prefill.mailingAddress.provinceState),
84761
+ [BCFormationFormControls.PostalZip]: new FormControl(mailAddress?.postalZip ?? prefill.mailingAddress.postalZip, [Validators.required, Validators.maxLength(10)]),
84693
84762
  [BCFormationFormControls.Country]: new FormControl(mailAddress?.country ?? (prefill.mailingAddress.country || BC_DEFAULT_COUNTRY), Validators.required),
84694
84763
  [BCFormationFormControls.HasConfirmedCompletion]: new FormControl(deltaData?.hasConfirmedCompletion ?? false, Validators.requiredTrue),
84695
84764
  [BCFormationFormControls.HasRequiredDocuments]: new FormControl(deltaData?.hasRequiredDocuments ?? false, Validators.requiredTrue)
@@ -84725,7 +84794,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84725
84794
  lastName: isPerson ? certified?.lastName ?? "" : "",
84726
84795
  email: certified?.email ?? "",
84727
84796
  mailingAddress: {
84728
- addressLine1: [streetNumber, streetName].filter(Boolean).join(" ") || getAddressComponent(address, "Street Address") || address?.street || "",
84797
+ addressLine1: [streetNumber, streetName].filter(Boolean).join(" ") || address?.street || "",
84729
84798
  addressLine2: getAddressComponent(address, "Suite/Apartment") || address?.address2 || "",
84730
84799
  city: address?.city ?? "",
84731
84800
  provinceState: address?.province_state ?? "",
@@ -84783,8 +84852,1203 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84783
84852
  }
84784
84853
  });
84785
84854
 
84855
+ // src/app/helpers/british-columbia/change-of-directors/british-columbia-change-of-directors-form.helper.ts
84856
+ function notInFuture() {
84857
+ return (control) => {
84858
+ if (!control.value) {
84859
+ return null;
84860
+ }
84861
+ const value = new Date(control.value);
84862
+ const today = /* @__PURE__ */ new Date();
84863
+ today.setHours(23, 59, 59, 999);
84864
+ return value > today ? { futureDate: true } : null;
84865
+ };
84866
+ }
84867
+ var Controls, BritishColumbiaChangeOfDirectorsFormHelper;
84868
+ var init_british_columbia_change_of_directors_form_helper = __esm({
84869
+ "src/app/helpers/british-columbia/change-of-directors/british-columbia-change-of-directors-form.helper.ts"() {
84870
+ init_forms();
84871
+ init_common_models();
84872
+ init_common_utils();
84873
+ init_initial_return_enums();
84874
+ init_british_columbia_form_enums();
84875
+ init_BritishColumbiaConstants();
84876
+ init_custom_validators();
84877
+ init_british_columbia_formation_form_helper();
84878
+ Controls = BCChangeOfDirectorsFormControls;
84879
+ BritishColumbiaChangeOfDirectorsFormHelper = class {
84880
+ static generateConfig(task, _translateFn) {
84881
+ const affiliations = task.entity.affiliations ?? [];
84882
+ const delta = task.deltaData;
84883
+ const format = BritishColumbiaFormationFormHelper.formatFullAddress;
84884
+ const pick = BritishColumbiaFormationFormHelper.pickAddress;
84885
+ const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
84886
+ const companyEmail = registeredOffice?.addresses?.[0]?.communications?.find((c) => c.type === "Business Email")?.value ?? task.entity.communications?.find((c) => c.type === "Business Email")?.value ?? "";
84887
+ const registeredMailing = format(pick(registeredOffice?.addresses, "Mailing"));
84888
+ const today = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
84889
+ const config2 = {};
84890
+ config2[BCChangeOfDirectorsFormGroups.ReferenceNumbers] = this.generateReferenceNumbersFormGroup(delta?.referenceNumbers, task.entity._profile?.client_matter_number);
84891
+ config2[BCChangeOfDirectorsFormGroups.CorporationDetails] = new FormGroup({
84892
+ [Controls.CorporationName]: this.readOnly(task.entity._profile.name),
84893
+ [Controls.IncorporationNumber]: this.readOnly(task.entity._profile.corp_number),
84894
+ [Controls.CompanyEmail]: this.readOnly(companyEmail)
84895
+ });
84896
+ const isDirector = (a) => isPrincipalAffiliation2(a) && a.role?.role_name === "Director";
84897
+ const incoming = task.incomingAffiliations ?? [];
84898
+ const outgoing = task.outgoingAffiliations ?? [];
84899
+ const ceasedIds = new Set(outgoing.filter(isDirector).map((a) => a._id));
84900
+ const incomingIds = new Set(incoming.filter(isDirector).map((a) => a._id));
84901
+ const hasAddOrCease = ceasedIds.size > 0 || incomingIds.size > 0;
84902
+ config2[BCChangeOfDirectorsFormGroups.FilingDetails] = new FormGroup({
84903
+ [Controls.DirectorsAddedOrDeleted]: new FormControl(delta?.filingDetails?.directorsAddedOrDeleted ?? hasAddOrCease),
84904
+ [Controls.ChangeDate]: new FormControl(delta?.filingDetails?.changeDate ?? "", [
84905
+ requiredIfValue(Controls.DirectorsAddedOrDeleted, true),
84906
+ notInFuture()
84907
+ ]),
84908
+ [Controls.FilingFee]: this.readOnly(BC_CHANGE_OF_DIRECTORS_FILING_FEE)
84909
+ });
84910
+ const directors = [
84911
+ ...affiliations.filter((a) => isDirector(a) && !incomingIds.has(a._id)).map((a) => this.generateDirectorFormGroup(a, ceasedIds.has(a._id) ? IRAffiliationType.Ceased : IRAffiliationType.Used)),
84912
+ ...incoming.filter(isDirector).map((a) => this.generateDirectorFormGroup(a, IRAffiliationType.Add))
84913
+ ];
84914
+ const fallbackDirectors = directors.length ? [] : this.generateDirectorFormGroupsFromChangeDirectors(task);
84915
+ if (directors.length || fallbackDirectors.length) {
84916
+ config2[BCChangeOfDirectorsFormGroups.Directors] = new FormArray(directors.length ? directors : fallbackDirectors);
84917
+ }
84918
+ config2[BCChangeOfDirectorsFormGroups.Notification] = new FormGroup({
84919
+ [Controls.RegisterAsOfDate]: this.readOnly(today),
84920
+ [Controls.NotificationMethod]: new FormControl(delta?.notification?.method ?? BCNotificationMethod.Email, Validators.required),
84921
+ [Controls.NotificationEmail]: new FormControl(delta?.notification?.email ?? companyEmail, requiredIfValue(Controls.NotificationMethod, BCNotificationMethod.Email)),
84922
+ [Controls.NotificationMailingAddress]: this.readOnly(registeredMailing)
84923
+ });
84924
+ config2[BCChangeOfDirectorsFormGroups.AnnualReportReminder] = new FormGroup({
84925
+ [Controls.AnnualReportReminder]: new FormControl(delta?.annualReportReminder ?? BCAnnualReportReminder.Yes, Validators.required)
84926
+ });
84927
+ return config2;
84928
+ }
84929
+ static generateReferenceNumbersFormGroup(deltaData, clientMatterNumber) {
84930
+ return new FormGroup({
84931
+ [Controls.ClientMatterNumber]: new FormControl(clientMatterNumber ?? ""),
84932
+ [Controls.DocketNumber]: new FormControl(deltaData?.docketNumber ?? "")
84933
+ });
84934
+ }
84935
+ static generateDirectorFormGroup(affiliation, affiliationType) {
84936
+ const addresses = affiliation.addresses?.length ? affiliation.addresses : affiliation.parent_affiliation?.addresses ?? [];
84937
+ return new FormGroup({
84938
+ [Controls.Id]: new FormControl(affiliation._id),
84939
+ [Controls.AffiliationName]: this.readOnly(generateTaskAffiliationFullName(affiliation)),
84940
+ [Controls.AffiliationType]: this.readOnly(affiliationType),
84941
+ [Controls.MailingAddress]: this.readOnly(BritishColumbiaFormationFormHelper.formatFullAddress(BritishColumbiaFormationFormHelper.pickAddress(addresses, "Mailing"))),
84942
+ [Controls.DeliveryAddress]: this.readOnly(BritishColumbiaFormationFormHelper.formatFullAddress(BritishColumbiaFormationFormHelper.pickAddress(addresses, "Delivery")))
84943
+ });
84944
+ }
84945
+ static generateDirectorFormGroupsFromChangeDirectors(task) {
84946
+ const source = task.changeDirectors ?? task.deltaData?.changeDirectors ?? task.deltaData?.validatedData?.ChangeDirectors;
84947
+ const currentDirectors = source?.Directors ?? source?.directors ?? [];
84948
+ const addedDirectors = [
84949
+ ...source?.AddedDirectors ?? [],
84950
+ ...source?.AddDirector ?? [],
84951
+ ...source?.addDirectors ?? []
84952
+ ];
84953
+ const ceasedDirectors = [
84954
+ ...source?.CeasedDirectors ?? [],
84955
+ ...source?.CeaseDirector ?? [],
84956
+ ...source?.ceaseDirectors ?? []
84957
+ ];
84958
+ const editedDirectors = [
84959
+ ...source?.EditedDirectors ?? [],
84960
+ ...source?.EditDirector ?? [],
84961
+ ...source?.editDirectors ?? []
84962
+ ];
84963
+ return [
84964
+ ...currentDirectors.map((director) => this.generateDirectorFormGroupFromPayload(director, IRAffiliationType.Used)),
84965
+ ...editedDirectors.map((director) => this.generateDirectorFormGroupFromPayload(director, IRAffiliationType.Update)),
84966
+ ...ceasedDirectors.map((director) => this.generateDirectorFormGroupFromPayload(director, IRAffiliationType.Ceased)),
84967
+ ...addedDirectors.map((director) => this.generateDirectorFormGroupFromPayload(director, IRAffiliationType.Add))
84968
+ ];
84969
+ }
84970
+ static generateDirectorFormGroupFromPayload(director, affiliationType) {
84971
+ const name = director?.PersonName ?? director?.personName ?? director;
84972
+ return new FormGroup({
84973
+ [Controls.Id]: new FormControl(director?.Id ?? director?.id ?? ""),
84974
+ [Controls.AffiliationName]: this.readOnly(this.formatDirectorName(name?.FirstName ?? name?.firstName, name?.MiddleName ?? name?.middleName, name?.LastName ?? name?.lastName)),
84975
+ [Controls.AffiliationType]: this.readOnly(affiliationType),
84976
+ [Controls.MailingAddress]: this.readOnly(this.formatPayloadAddress(director)),
84977
+ [Controls.DeliveryAddress]: this.readOnly(this.formatPayloadAddress(director))
84978
+ });
84979
+ }
84980
+ static formatDirectorName(firstName, middleName, lastName) {
84981
+ const givenNames = [firstName, middleName].filter(Boolean).join(" ");
84982
+ return [lastName, givenNames].filter(Boolean).join(", ");
84983
+ }
84984
+ static formatPayloadAddress(director) {
84985
+ const postalAddress = director?.PostalAddress ?? director?.postalAddress;
84986
+ const address = postalAddress?.AddressCA ?? postalAddress?.AddressUS ?? postalAddress?.AddressINTL ?? director?.address ?? {};
84987
+ return [
84988
+ address.Address1 ?? address.address1,
84989
+ address.Address2 ?? address.address2,
84990
+ address.Address3 ?? address.address3,
84991
+ address.CityTown ?? address.city,
84992
+ address.RegionName ?? address.regionName ?? address.provinceState,
84993
+ address.PostCode ?? address.postalZip,
84994
+ address.CountryCodeName ?? address.country
84995
+ ].filter((part) => Boolean(String(part ?? "").trim())).join(", ");
84996
+ }
84997
+ static readOnly(value) {
84998
+ return new FormControl({ value: value ?? "", disabled: true });
84999
+ }
85000
+ };
85001
+ }
85002
+ });
85003
+
85004
+ // src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts
85005
+ var Controls2, labelledValue, readOnlyRow, directorsAddedOrDeleted, isNotifyByMail, BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS, generateBCChangeOfDirectorsIntroFields, BC_COD_CARD_FORM_DIRECTORS_FIELDS, BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
85006
+ var init_british_columbia_change_of_directors_form_constants = __esm({
85007
+ "src/app/constants/ui/british-columbia-change-of-directors-form.constants.ts"() {
85008
+ init_form_enums();
85009
+ init_british_columbia_form_enums();
85010
+ init_BritishColumbiaConstants();
85011
+ Controls2 = BCChangeOfDirectorsFormControls;
85012
+ labelledValue = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("Not specified")}`;
85013
+ readOnlyRow = (label, control, className = "span-12") => ({
85014
+ type: FormType.Text,
85015
+ formControlName: control,
85016
+ class: className,
85017
+ dynamicLabel: (form, t) => labelledValue(label, form.get(control)?.value, t)
85018
+ });
85019
+ directorsAddedOrDeleted = (form) => Boolean(form.get(Controls2.DirectorsAddedOrDeleted)?.value);
85020
+ isNotifyByMail = (form) => form.get(Controls2.NotificationMethod)?.value === BCNotificationMethod.Mail;
85021
+ BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS = [
85022
+ {
85023
+ type: FormType.Input,
85024
+ label: "Client/Matter Number",
85025
+ formControlName: Controls2.ClientMatterNumber
85026
+ },
85027
+ {
85028
+ type: FormType.Input,
85029
+ label: "Docket Number",
85030
+ formControlName: Controls2.DocketNumber
85031
+ }
85032
+ ];
85033
+ BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS = [
85034
+ readOnlyRow("Corporation Name", Controls2.CorporationName),
85035
+ readOnlyRow("Incorporation Number", Controls2.IncorporationNumber),
85036
+ readOnlyRow("Company Email", Controls2.CompanyEmail)
85037
+ ];
85038
+ BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS = [
85039
+ {
85040
+ type: FormType.Text,
85041
+ formControlName: "",
85042
+ class: "span-12",
85043
+ dynamicLabel: (_, t) => `<span class="body-1-semibold">${t("Note")}:</span> ${t("There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing.")}`
85044
+ },
85045
+ {
85046
+ type: FormType.Checkbox,
85047
+ label: "Directors will be added and/or deleted as part of this filing",
85048
+ formControlName: Controls2.DirectorsAddedOrDeleted,
85049
+ class: "span-12",
85050
+ onChange: (form) => {
85051
+ if (!directorsAddedOrDeleted(form)) {
85052
+ form.get(Controls2.ChangeDate)?.setValue("", { emitEvent: false });
85053
+ }
85054
+ form.get(Controls2.ChangeDate)?.updateValueAndValidity({ emitEvent: false });
85055
+ }
85056
+ },
85057
+ {
85058
+ type: FormType.Date,
85059
+ label: "Date Directors were added or deleted",
85060
+ formControlName: Controls2.ChangeDate,
85061
+ required: true,
85062
+ isVisible: directorsAddedOrDeleted,
85063
+ class: "span-8"
85064
+ },
85065
+ __spreadProps(__spreadValues({}, readOnlyRow("Filing Fee", Controls2.FilingFee, "span-4")), {
85066
+ isVisible: directorsAddedOrDeleted
85067
+ }),
85068
+ {
85069
+ type: FormType.Text,
85070
+ formControlName: "",
85071
+ class: "span-12",
85072
+ isVisible: directorsAddedOrDeleted,
85073
+ dynamicLabel: (_, t) => t("The date on which the individual(s) became or ceased to be a director. This date must be today's date or in the past.")
85074
+ }
85075
+ ];
85076
+ generateBCChangeOfDirectorsIntroFields = (registerAsOf) => [
85077
+ {
85078
+ type: FormType.Text,
85079
+ formControlName: "",
85080
+ class: "span-12",
85081
+ dynamicLabel: (_, t) => t("These are the directors on the corporate register as of {{date}}. Director appointments, cessations and changes to a director's details are made on the task before this filing \u2014 they cannot be added, ceased, or edited here. Ceasing or adding a director requires the checkbox and date in Filing Details above.").replace("{{date}}", registerAsOf)
85082
+ }
85083
+ ];
85084
+ BC_COD_CARD_FORM_DIRECTORS_FIELDS = [
85085
+ readOnlyRow("Mailing Address - Full Address", Controls2.MailingAddress),
85086
+ readOnlyRow("Delivery Address - Full Address", Controls2.DeliveryAddress)
85087
+ ];
85088
+ [
85089
+ {
85090
+ type: FormType.Select,
85091
+ label: "Notification Method",
85092
+ formControlName: Controls2.NotificationMethod,
85093
+ required: true,
85094
+ options: BC_NOTIFICATION_METHOD_OPTIONS,
85095
+ needTranslate: true,
85096
+ class: "span-6",
85097
+ onChange: (form) => form.get(Controls2.NotificationEmail)?.updateValueAndValidity({ emitEvent: false })
85098
+ },
85099
+ {
85100
+ type: FormType.Input,
85101
+ label: "Notification Email",
85102
+ formControlName: Controls2.NotificationEmail,
85103
+ required: true,
85104
+ isVisible: (form) => !isNotifyByMail(form),
85105
+ class: "column-3"
85106
+ },
85107
+ {
85108
+ type: FormType.Text,
85109
+ formControlName: Controls2.NotificationMailingAddress,
85110
+ class: "span-12",
85111
+ isVisible: isNotifyByMail,
85112
+ dynamicLabel: (form, t) => `<span class="body-1-semibold">${t("Mailing Address")}:</span> ${t("defaults to Registered Office mailing address")} (${form.get(Controls2.NotificationMailingAddress)?.value || t("Not specified")})`
85113
+ }
85114
+ ];
85115
+ BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS = [
85116
+ {
85117
+ type: FormType.Text,
85118
+ formControlName: "",
85119
+ class: "span-12",
85120
+ dynamicLabel: (_, t) => t("Does this company wish to be reminded to file its annual reports? If an email address is specified, the reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered or head office of the company.")
85121
+ },
85122
+ {
85123
+ type: FormType.Select,
85124
+ label: "Annual Report Reminder",
85125
+ formControlName: Controls2.AnnualReportReminder,
85126
+ required: true,
85127
+ options: BC_ANNUAL_REPORT_REMINDER_OPTIONS,
85128
+ needTranslate: true,
85129
+ class: "column-3"
85130
+ }
85131
+ ];
85132
+ }
85133
+ });
85134
+
85135
+ // src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts
85136
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template(rf, ctx) {
85137
+ if (rf & 1) {
85138
+ \u0275\u0275element(0, "alert", 2);
85139
+ }
85140
+ if (rf & 2) {
85141
+ const ctx_r0 = \u0275\u0275nextContext();
85142
+ \u0275\u0275property("type", ctx_r0.alertType.Info);
85143
+ }
85144
+ }
85145
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template(rf, ctx) {
85146
+ if (rf & 1) {
85147
+ \u0275\u0275element(0, "alert", 3);
85148
+ }
85149
+ if (rf & 2) {
85150
+ const ctx_r0 = \u0275\u0275nextContext();
85151
+ \u0275\u0275property("content", ctx_r0.errors());
85152
+ }
85153
+ }
85154
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template(rf, ctx) {
85155
+ if (rf & 1) {
85156
+ const _r2 = \u0275\u0275getCurrentView();
85157
+ \u0275\u0275elementStart(0, "expandable-card", 5)(1, "filing-form-group", 11);
85158
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template_filing_form_group_visiblyValidChange_1_listener($event) {
85159
+ \u0275\u0275restoreView(_r2);
85160
+ const ctx_r0 = \u0275\u0275nextContext();
85161
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("refNumbers", $event));
85162
+ });
85163
+ \u0275\u0275elementEnd()();
85164
+ }
85165
+ if (rf & 2) {
85166
+ const ctx_r0 = \u0275\u0275nextContext();
85167
+ const referenceNumbers_r3 = \u0275\u0275readContextLet(4);
85168
+ \u0275\u0275property("title", ctx_r0.groups.ReferenceNumbers);
85169
+ \u0275\u0275advance();
85170
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", referenceNumbers_r3)("config", ctx_r0.referenceNumbersFields);
85171
+ }
85172
+ }
85173
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template(rf, ctx) {
85174
+ if (rf & 1) {
85175
+ \u0275\u0275elementStart(0, "expandable-card", 6)(1, "div", 12)(2, "p")(3, "strong");
85176
+ \u0275\u0275text(4);
85177
+ \u0275\u0275pipe(5, "translate");
85178
+ \u0275\u0275elementEnd();
85179
+ \u0275\u0275text(6);
85180
+ \u0275\u0275elementEnd();
85181
+ \u0275\u0275elementStart(7, "p")(8, "strong");
85182
+ \u0275\u0275text(9);
85183
+ \u0275\u0275pipe(10, "translate");
85184
+ \u0275\u0275elementEnd();
85185
+ \u0275\u0275text(11);
85186
+ \u0275\u0275elementEnd();
85187
+ \u0275\u0275elementStart(12, "p")(13, "strong");
85188
+ \u0275\u0275text(14);
85189
+ \u0275\u0275pipe(15, "translate");
85190
+ \u0275\u0275elementEnd();
85191
+ \u0275\u0275text(16);
85192
+ \u0275\u0275elementEnd()()();
85193
+ }
85194
+ if (rf & 2) {
85195
+ let tmp_9_0;
85196
+ let tmp_11_0;
85197
+ let tmp_13_0;
85198
+ const ctx_r0 = \u0275\u0275nextContext();
85199
+ const corporationDetails_r4 = \u0275\u0275readContextLet(6);
85200
+ \u0275\u0275property("isStatusIcon", false)("title", ctx_r0.groups.CorporationDetails);
85201
+ \u0275\u0275advance(4);
85202
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 8, "Corporation Name"), ":");
85203
+ \u0275\u0275advance(2);
85204
+ \u0275\u0275textInterpolate1(" ", (tmp_9_0 = corporationDetails_r4.get(ctx_r0.controls.CorporationName)) == null ? null : tmp_9_0.value, " ");
85205
+ \u0275\u0275advance(3);
85206
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(10, 10, "Incorporation Number"), ":");
85207
+ \u0275\u0275advance(2);
85208
+ \u0275\u0275textInterpolate1(" ", (tmp_11_0 = corporationDetails_r4.get(ctx_r0.controls.IncorporationNumber)) == null ? null : tmp_11_0.value, " ");
85209
+ \u0275\u0275advance(3);
85210
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(15, 12, "Company Email"), ":");
85211
+ \u0275\u0275advance(2);
85212
+ \u0275\u0275textInterpolate1(" ", (tmp_13_0 = corporationDetails_r4.get(ctx_r0.controls.CompanyEmail)) == null ? null : tmp_13_0.value, " ");
85213
+ }
85214
+ }
85215
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template(rf, ctx) {
85216
+ if (rf & 1) {
85217
+ const _r7 = \u0275\u0275getCurrentView();
85218
+ \u0275\u0275elementStart(0, "div", 16)(1, "div", 17)(2, "label");
85219
+ \u0275\u0275text(3);
85220
+ \u0275\u0275pipe(4, "translate");
85221
+ \u0275\u0275elementStart(5, "span");
85222
+ \u0275\u0275text(6, "*");
85223
+ \u0275\u0275elementEnd()();
85224
+ \u0275\u0275elementStart(7, "mat-form-field", 18)(8, "input", 19);
85225
+ \u0275\u0275listener("dateChange", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template_input_dateChange_8_listener() {
85226
+ \u0275\u0275restoreView(_r7);
85227
+ const ctx_r0 = \u0275\u0275nextContext(2);
85228
+ const filingDetails_r6 = \u0275\u0275readContextLet(8);
85229
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
85230
+ });
85231
+ \u0275\u0275elementEnd();
85232
+ \u0275\u0275elementStart(9, "mat-datepicker-toggle", 20)(10, "mat-icon", 21);
85233
+ \u0275\u0275text(11, "calendar_today");
85234
+ \u0275\u0275elementEnd()();
85235
+ \u0275\u0275element(12, "mat-datepicker", null, 0);
85236
+ \u0275\u0275elementEnd();
85237
+ \u0275\u0275elementStart(14, "p", 22);
85238
+ \u0275\u0275text(15);
85239
+ \u0275\u0275pipe(16, "translate");
85240
+ \u0275\u0275elementEnd()();
85241
+ \u0275\u0275elementStart(17, "p", 23)(18, "strong");
85242
+ \u0275\u0275text(19);
85243
+ \u0275\u0275pipe(20, "translate");
85244
+ \u0275\u0275elementEnd();
85245
+ \u0275\u0275text(21);
85246
+ \u0275\u0275elementEnd()();
85247
+ }
85248
+ if (rf & 2) {
85249
+ let tmp_14_0;
85250
+ const changeDatePicker_r8 = \u0275\u0275reference(13);
85251
+ const ctx_r0 = \u0275\u0275nextContext(2);
85252
+ const filingDetails_r6 = \u0275\u0275readContextLet(8);
85253
+ \u0275\u0275advance(3);
85254
+ \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 7, "Date Directors were added or deleted"), "");
85255
+ \u0275\u0275advance(5);
85256
+ \u0275\u0275property("matDatepicker", changeDatePicker_r8)("formControlName", ctx_r0.controls.ChangeDate);
85257
+ \u0275\u0275advance();
85258
+ \u0275\u0275property("for", changeDatePicker_r8);
85259
+ \u0275\u0275advance(6);
85260
+ \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(16, 9, "The date on which the individual(s) became or ceased to be a director. This date must be today's date or in the past."), " ");
85261
+ \u0275\u0275advance(4);
85262
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(20, 11, "Filing Fee"), ":");
85263
+ \u0275\u0275advance(2);
85264
+ \u0275\u0275textInterpolate1(" ", (tmp_14_0 = filingDetails_r6.get(ctx_r0.controls.FilingFee)) == null ? null : tmp_14_0.value, " ");
85265
+ }
85266
+ }
85267
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template(rf, ctx) {
85268
+ if (rf & 1) {
85269
+ const _r5 = \u0275\u0275getCurrentView();
85270
+ \u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 13)(2, "div", 14)(3, "strong");
85271
+ \u0275\u0275text(4);
85272
+ \u0275\u0275pipe(5, "translate");
85273
+ \u0275\u0275elementEnd();
85274
+ \u0275\u0275text(6);
85275
+ \u0275\u0275pipe(7, "translate");
85276
+ \u0275\u0275elementEnd();
85277
+ \u0275\u0275elementStart(8, "mat-checkbox", 15);
85278
+ \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template_mat_checkbox_change_8_listener() {
85279
+ let tmp_7_0;
85280
+ \u0275\u0275restoreView(_r5);
85281
+ const ctx_r0 = \u0275\u0275nextContext();
85282
+ const filingDetails_r6 = \u0275\u0275readContextLet(8);
85283
+ (tmp_7_0 = filingDetails_r6.get(ctx_r0.controls.ChangeDate)) == null ? null : tmp_7_0.updateValueAndValidity({ emitEvent: false });
85284
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("filingDetails", filingDetails_r6.valid));
85285
+ });
85286
+ \u0275\u0275text(9);
85287
+ \u0275\u0275pipe(10, "translate");
85288
+ \u0275\u0275elementEnd();
85289
+ \u0275\u0275template(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Conditional_11_Template, 22, 13, "div", 16);
85290
+ \u0275\u0275elementEnd()();
85291
+ }
85292
+ if (rf & 2) {
85293
+ let tmp_14_0;
85294
+ const ctx_r0 = \u0275\u0275nextContext();
85295
+ const filingDetails_r6 = \u0275\u0275readContextLet(8);
85296
+ \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["filingDetails"])("title", ctx_r0.groups.FilingDetails);
85297
+ \u0275\u0275advance();
85298
+ \u0275\u0275property("formGroup", filingDetails_r6);
85299
+ \u0275\u0275advance(3);
85300
+ \u0275\u0275textInterpolate1("", \u0275\u0275pipeBind1(5, 9, "Note"), ":");
85301
+ \u0275\u0275advance(2);
85302
+ \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(7, 11, "There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing."), " ");
85303
+ \u0275\u0275advance(2);
85304
+ \u0275\u0275property("formControlName", ctx_r0.controls.DirectorsAddedOrDeleted);
85305
+ \u0275\u0275advance();
85306
+ \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(10, 13, "Directors will be added and/or deleted as part of this filing"), " ");
85307
+ \u0275\u0275advance(2);
85308
+ \u0275\u0275conditional(((tmp_14_0 = filingDetails_r6.get(ctx_r0.controls.DirectorsAddedOrDeleted)) == null ? null : tmp_14_0.value) ? 11 : -1);
85309
+ }
85310
+ }
85311
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_4_Template(rf, ctx) {
85312
+ if (rf & 1) {
85313
+ \u0275\u0275elementStart(0, "span", 28);
85314
+ \u0275\u0275text(1);
85315
+ \u0275\u0275pipe(2, "translate");
85316
+ \u0275\u0275elementEnd();
85317
+ }
85318
+ if (rf & 2) {
85319
+ \u0275\u0275advance();
85320
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "NEW"));
85321
+ }
85322
+ }
85323
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_5_Template(rf, ctx) {
85324
+ if (rf & 1) {
85325
+ \u0275\u0275elementStart(0, "span", 29);
85326
+ \u0275\u0275text(1);
85327
+ \u0275\u0275pipe(2, "translate");
85328
+ \u0275\u0275elementEnd();
85329
+ }
85330
+ if (rf & 2) {
85331
+ \u0275\u0275advance();
85332
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "CEASE"));
85333
+ }
85334
+ }
85335
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Template(rf, ctx) {
85336
+ if (rf & 1) {
85337
+ \u0275\u0275elementStart(0, "div", 26)(1, "div", 27)(2, "strong");
85338
+ \u0275\u0275text(3);
85339
+ \u0275\u0275elementEnd();
85340
+ \u0275\u0275template(4, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_4_Template, 3, 3, "span", 28)(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Conditional_5_Template, 3, 3, "span", 29);
85341
+ \u0275\u0275elementEnd();
85342
+ \u0275\u0275elementStart(6, "div", 27);
85343
+ \u0275\u0275text(7);
85344
+ \u0275\u0275elementEnd();
85345
+ \u0275\u0275elementStart(8, "div", 27);
85346
+ \u0275\u0275text(9);
85347
+ \u0275\u0275elementEnd()();
85348
+ }
85349
+ if (rf & 2) {
85350
+ let tmp_19_0;
85351
+ let tmp_22_0;
85352
+ let tmp_23_0;
85353
+ \u0275\u0275nextContext();
85354
+ const directorForm_r9 = \u0275\u0275readContextLet(0);
85355
+ const ctx_r0 = \u0275\u0275nextContext(2);
85356
+ \u0275\u0275advance(3);
85357
+ \u0275\u0275textInterpolate((tmp_19_0 = directorForm_r9.get(ctx_r0.controls.AffiliationName)) == null ? null : tmp_19_0.value);
85358
+ \u0275\u0275advance();
85359
+ \u0275\u0275conditional(ctx_r0.isNewDirector(directorForm_r9) ? 4 : -1);
85360
+ \u0275\u0275advance();
85361
+ \u0275\u0275conditional(ctx_r0.isCeasedDirector(directorForm_r9) ? 5 : -1);
85362
+ \u0275\u0275advance(2);
85363
+ \u0275\u0275textInterpolate((tmp_22_0 = directorForm_r9.get(ctx_r0.controls.MailingAddress)) == null ? null : tmp_22_0.value);
85364
+ \u0275\u0275advance(2);
85365
+ \u0275\u0275textInterpolate((tmp_23_0 = directorForm_r9.get(ctx_r0.controls.DeliveryAddress)) == null ? null : tmp_23_0.value);
85366
+ }
85367
+ }
85368
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Template(rf, ctx) {
85369
+ if (rf & 1) {
85370
+ \u0275\u0275declareLet(0);
85371
+ \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Conditional_1_Template, 10, 5, "div", 26);
85372
+ }
85373
+ if (rf & 2) {
85374
+ const \u0275$index_118_r10 = ctx.$index;
85375
+ const directorForm_r11 = \u0275\u0275storeLet(\u0275\u0275nextContext(2).getDirectorForm(\u0275$index_118_r10));
85376
+ \u0275\u0275advance();
85377
+ \u0275\u0275conditional(directorForm_r11 ? 1 : -1);
85378
+ }
85379
+ }
85380
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template(rf, ctx) {
85381
+ if (rf & 1) {
85382
+ \u0275\u0275elementStart(0, "div", 9)(1, "div", 24)(2, "div", 25);
85383
+ \u0275\u0275text(3);
85384
+ \u0275\u0275pipe(4, "translate");
85385
+ \u0275\u0275elementEnd();
85386
+ \u0275\u0275elementStart(5, "div", 25);
85387
+ \u0275\u0275text(6);
85388
+ \u0275\u0275pipe(7, "translate");
85389
+ \u0275\u0275elementEnd();
85390
+ \u0275\u0275elementStart(8, "div", 25);
85391
+ \u0275\u0275text(9);
85392
+ \u0275\u0275pipe(10, "translate");
85393
+ \u0275\u0275elementEnd()();
85394
+ \u0275\u0275repeaterCreate(11, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_For_12_Template, 2, 2, null, null, \u0275\u0275repeaterTrackByIdentity);
85395
+ \u0275\u0275elementEnd();
85396
+ }
85397
+ if (rf & 2) {
85398
+ \u0275\u0275nextContext();
85399
+ const directorsArray_r12 = \u0275\u0275readContextLet(10);
85400
+ \u0275\u0275advance(3);
85401
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(4, 3, "Name"));
85402
+ \u0275\u0275advance(3);
85403
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(7, 5, "Mailing Address"));
85404
+ \u0275\u0275advance(3);
85405
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 7, "Delivery Address"));
85406
+ \u0275\u0275advance(2);
85407
+ \u0275\u0275repeater(directorsArray_r12.controls);
85408
+ }
85409
+ }
85410
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_14_Template(rf, ctx) {
85411
+ if (rf & 1) {
85412
+ \u0275\u0275elementStart(0, "h2", 10);
85413
+ \u0275\u0275text(1);
85414
+ \u0275\u0275pipe(2, "translate");
85415
+ \u0275\u0275elementEnd();
85416
+ }
85417
+ if (rf & 2) {
85418
+ \u0275\u0275advance();
85419
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "Unchanged"));
85420
+ }
85421
+ }
85422
+ function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_16_Template(rf, ctx) {
85423
+ if (rf & 1) {
85424
+ const _r13 = \u0275\u0275getCurrentView();
85425
+ \u0275\u0275elementStart(0, "expandable-card", 7)(1, "div", 30)(2, "p");
85426
+ \u0275\u0275text(3);
85427
+ \u0275\u0275pipe(4, "translate");
85428
+ \u0275\u0275elementEnd();
85429
+ \u0275\u0275elementStart(5, "mat-radio-group", 31);
85430
+ \u0275\u0275listener("change", function BritishColumbiaChangeOfDirectorsFormComponent_Conditional_16_Template_mat_radio_group_change_5_listener() {
85431
+ \u0275\u0275restoreView(_r13);
85432
+ const ctx_r0 = \u0275\u0275nextContext();
85433
+ const annualReportReminder_r14 = \u0275\u0275readContextLet(15);
85434
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("annualReportReminder", annualReportReminder_r14.valid));
85435
+ });
85436
+ \u0275\u0275elementStart(6, "mat-radio-button", 32);
85437
+ \u0275\u0275text(7);
85438
+ \u0275\u0275pipe(8, "translate");
85439
+ \u0275\u0275elementEnd();
85440
+ \u0275\u0275elementStart(9, "mat-radio-button", 32);
85441
+ \u0275\u0275text(10);
85442
+ \u0275\u0275pipe(11, "translate");
85443
+ \u0275\u0275elementEnd()()()();
85444
+ }
85445
+ if (rf & 2) {
85446
+ const ctx_r0 = \u0275\u0275nextContext();
85447
+ const annualReportReminder_r14 = \u0275\u0275readContextLet(15);
85448
+ \u0275\u0275property("isStatusIcon", !ctx_r0.readonly())("isValid", ctx_r0.sectionValidity["annualReportReminder"])("title", ctx_r0.groups.AnnualReportReminder);
85449
+ \u0275\u0275advance();
85450
+ \u0275\u0275property("formGroup", annualReportReminder_r14);
85451
+ \u0275\u0275advance(2);
85452
+ \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(4, 10, "Does this company wish to be reminded to file its annual reports? If an email address is specified, the reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered or head office of the company."), " ");
85453
+ \u0275\u0275advance(2);
85454
+ \u0275\u0275property("formControlName", ctx_r0.controls.AnnualReportReminder);
85455
+ \u0275\u0275advance();
85456
+ \u0275\u0275property("value", ctx_r0.annualReportReminderOption.Yes);
85457
+ \u0275\u0275advance();
85458
+ \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(8, 12, "Yes, send the annual report reminder"), " ");
85459
+ \u0275\u0275advance(2);
85460
+ \u0275\u0275property("value", ctx_r0.annualReportReminderOption.No);
85461
+ \u0275\u0275advance();
85462
+ \u0275\u0275textInterpolate1(" ", \u0275\u0275pipeBind1(11, 14, "No, I do not need to be reminded"), " ");
85463
+ }
85464
+ }
85465
+ var BritishColumbiaChangeOfDirectorsFormComponent;
85466
+ var init_change_of_directors_form_component = __esm({
85467
+ "src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts"() {
85468
+ init_core();
85469
+ init_forms();
85470
+ init_checkbox();
85471
+ init_datepicker();
85472
+ init_form_field();
85473
+ init_input();
85474
+ init_icon();
85475
+ init_radio();
85476
+ init_ngx_translate_core();
85477
+ init_filing_form_group_component();
85478
+ init_alert_component();
85479
+ init_alert_enum();
85480
+ init_expandable_card_component();
85481
+ init_british_columbia_form_enums();
85482
+ init_british_columbia_change_of_directors_form_constants();
85483
+ init_BritishColumbiaConstants();
85484
+ init_core();
85485
+ init_forms();
85486
+ BritishColumbiaChangeOfDirectorsFormComponent = class _BritishColumbiaChangeOfDirectorsFormComponent {
85487
+ form = input.required();
85488
+ task = input();
85489
+ errors = input([]);
85490
+ isNote = input(false);
85491
+ isSubmitted = input(false);
85492
+ readonly = input(false);
85493
+ visiblyValidChange = output();
85494
+ alertType = AlertType;
85495
+ groups = BCChangeOfDirectorsFormGroups;
85496
+ controls = BCChangeOfDirectorsFormControls;
85497
+ annualReportReminderOption = BCAnnualReportReminder;
85498
+ referenceNumbersFields = BC_COD_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS;
85499
+ corporationDetailsFields = BC_COD_CARD_FORM_CORPORATION_DETAILS_FIELDS;
85500
+ filingDetailsFields = BC_COD_DELTA_CARD_FORM_FILING_DETAILS_FIELDS;
85501
+ directorsFields = BC_COD_CARD_FORM_DIRECTORS_FIELDS;
85502
+ annualReportReminderFields = BC_COD_DELTA_CARD_FORM_ANNUAL_REPORT_REMINDER_FIELDS;
85503
+ directorsIntroFields = computed(() => {
85504
+ const date = this.form().get(this.groups.Notification)?.get(this.controls.RegisterAsOfDate)?.value ?? "";
85505
+ return generateBCChangeOfDirectorsIntroFields(date);
85506
+ });
85507
+ initiallyOpenCardsCount = 3;
85508
+ sectionValidity = {};
85509
+ isVisiblyValid() {
85510
+ return Object.values(this.sectionValidity).every((v) => v);
85511
+ }
85512
+ onSectionValidChange(section, valid) {
85513
+ this.sectionValidity = __spreadProps(__spreadValues({}, this.sectionValidity), { [section]: valid });
85514
+ this.visiblyValidChange.emit(this.isVisiblyValid());
85515
+ }
85516
+ getFormGroup(key) {
85517
+ return this.form().get(key) ?? null;
85518
+ }
85519
+ getFormArray(key) {
85520
+ return this.form().get(key) ?? null;
85521
+ }
85522
+ getDirectorForm(index) {
85523
+ return this.getFormArray(this.groups.Directors)?.at(index) ?? null;
85524
+ }
85525
+ getDirectorStatus(formGroup) {
85526
+ return formGroup.get(this.controls.AffiliationType)?.value ?? "";
85527
+ }
85528
+ isNewDirector(formGroup) {
85529
+ return this.getDirectorStatus(formGroup) === "Add";
85530
+ }
85531
+ isCeasedDirector(formGroup) {
85532
+ return this.getDirectorStatus(formGroup) === "Ceased";
85533
+ }
85534
+ static \u0275fac = function BritishColumbiaChangeOfDirectorsFormComponent_Factory(__ngFactoryType__) {
85535
+ return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsFormComponent)();
85536
+ };
85537
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfDirectorsFormComponent, selectors: [["british-columbia-change-of-directors-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], isSubmitted: [1, "isSubmitted"], readonly: [1, "readonly"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 17, vars: 17, consts: [["changeDatePicker", ""], [1, "change-of-directors-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "change-of-directors-form-content"], [3, "title"], [3, "isStatusIcon", "title"], [3, "isStatusIcon", "isValid", "title"], [3, "isSubmitted", "form", "config"], ["role", "table", 1, "directors-table"], [1, "body-1-regular"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "readonly-summary"], [1, "filing-details", 3, "formGroup"], [1, "note-box"], [1, "directors-change-checkbox", 3, "change", "formControlName"], [1, "filing-details-grid"], [1, "date-field"], ["appearance", "outline"], ["matInput", "", "placeholder", "dd/mm/yyyy", 3, "dateChange", "matDatepicker", "formControlName"], ["matSuffix", "", 3, "for"], ["matDatepickerToggleIcon", ""], [1, "hint"], [1, "filing-fee"], ["role", "row", 1, "directors-table-header"], ["role", "columnheader"], ["role", "row", 1, "directors-table-row"], ["role", "cell"], [1, "status-pill", "new"], [1, "status-pill", "ceased"], [1, "annual-reminder", 3, "formGroup"], [3, "change", "formControlName"], [3, "value"]], template: function BritishColumbiaChangeOfDirectorsFormComponent_Template(rf, ctx) {
85538
+ if (rf & 1) {
85539
+ \u0275\u0275elementStart(0, "div", 1);
85540
+ \u0275\u0275template(1, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_1_Template, 1, 1, "alert", 2)(2, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_2_Template, 1, 1, "alert", 3);
85541
+ \u0275\u0275elementStart(3, "div", 4);
85542
+ \u0275\u0275declareLet(4);
85543
+ \u0275\u0275template(5, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_5_Template, 2, 4, "expandable-card", 5);
85544
+ \u0275\u0275declareLet(6);
85545
+ \u0275\u0275template(7, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_7_Template, 17, 14, "expandable-card", 6);
85546
+ \u0275\u0275declareLet(8);
85547
+ \u0275\u0275template(9, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_9_Template, 12, 15, "expandable-card", 7);
85548
+ \u0275\u0275declareLet(10);
85549
+ \u0275\u0275elementStart(11, "expandable-card", 6);
85550
+ \u0275\u0275element(12, "filing-form-group", 8);
85551
+ \u0275\u0275template(13, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_13_Template, 13, 9, "div", 9)(14, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_14_Template, 3, 3, "h2", 10);
85552
+ \u0275\u0275elementEnd();
85553
+ \u0275\u0275declareLet(15);
85554
+ \u0275\u0275template(16, BritishColumbiaChangeOfDirectorsFormComponent_Conditional_16_Template, 12, 16, "expandable-card", 7);
85555
+ \u0275\u0275elementEnd()();
85556
+ }
85557
+ if (rf & 2) {
85558
+ \u0275\u0275advance();
85559
+ \u0275\u0275conditional(ctx.isNote() ? 1 : -1);
85560
+ \u0275\u0275advance();
85561
+ \u0275\u0275conditional(ctx.errors().length ? 2 : -1);
85562
+ \u0275\u0275advance(2);
85563
+ const referenceNumbers_r15 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
85564
+ \u0275\u0275advance();
85565
+ \u0275\u0275conditional(referenceNumbers_r15 ? 5 : -1);
85566
+ \u0275\u0275advance();
85567
+ const corporationDetails_r16 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
85568
+ \u0275\u0275advance();
85569
+ \u0275\u0275conditional(corporationDetails_r16 ? 7 : -1);
85570
+ \u0275\u0275advance();
85571
+ const filingDetails_r17 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.FilingDetails));
85572
+ \u0275\u0275advance();
85573
+ \u0275\u0275conditional(filingDetails_r17 ? 9 : -1);
85574
+ \u0275\u0275advance();
85575
+ const directorsArray_r18 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
85576
+ \u0275\u0275advance();
85577
+ \u0275\u0275property("isStatusIcon", false)("title", ctx.groups.Directors);
85578
+ \u0275\u0275advance();
85579
+ \u0275\u0275property("isSubmitted", ctx.isSubmitted())("form", ctx.form())("config", ctx.directorsIntroFields());
85580
+ \u0275\u0275advance();
85581
+ \u0275\u0275conditional(directorsArray_r18 && directorsArray_r18.length ? 13 : 14);
85582
+ \u0275\u0275advance(2);
85583
+ const annualReportReminder_r19 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.AnnualReportReminder));
85584
+ \u0275\u0275advance();
85585
+ \u0275\u0275conditional(annualReportReminder_r19 ? 16 : -1);
85586
+ }
85587
+ }, dependencies: [
85588
+ FilingFormGroupComponent,
85589
+ AlertComponent,
85590
+ ExpandableCardComponent,
85591
+ MatCheckbox,
85592
+ MatDatepicker,
85593
+ MatDatepickerInput,
85594
+ MatDatepickerToggle,
85595
+ MatFormField,
85596
+ MatIcon,
85597
+ MatInput,
85598
+ MatRadioButton,
85599
+ MatRadioGroup,
85600
+ ReactiveFormsModule,
85601
+ DefaultValueAccessor,
85602
+ NgControlStatus,
85603
+ NgControlStatusGroup,
85604
+ FormGroupDirective,
85605
+ FormControlName,
85606
+ TranslatePipe
85607
+ ], styles: ["\n\n[_nghost-%COMP%] {\n display: flex;\n flex: 1;\n min-height: 0;\n color: #2f343b;\n}\n[_nghost-%COMP%] .change-of-directors-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n min-height: 0;\n width: 100%;\n}\n[_nghost-%COMP%] .change-of-directors-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 20px;\n min-height: 0;\n overflow-y: auto;\n padding-right: 8px;\n}\n[_nghost-%COMP%] .expandable-card {\n border: 1px solid #e1e6ee;\n border-radius: 8px;\n box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12) !important;\n margin: 0 !important;\n padding: 24px 28px !important;\n}\n[_nghost-%COMP%] .expandable-card-header-title {\n color: #2f343b !important;\n font-weight: 700 !important;\n line-height: 1.2;\n margin: 0;\n}\n[_nghost-%COMP%] .expandable-card-header mat-icon {\n color: #66717f !important;\n}\n[_nghost-%COMP%] .expandable-card-content {\n padding-top: 20px !important;\n}\n[_nghost-%COMP%] .filling-form-fields {\n column-gap: 42px !important;\n}\n[_nghost-%COMP%] .filling-form-fields-item-label, \n[_nghost-%COMP%] .mat-mdc-radio-button .mdc-label, \n[_nghost-%COMP%] .mat-mdc-checkbox .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n[_nghost-%COMP%] .mat-mdc-radio-button, \n[_nghost-%COMP%] .mat-mdc-checkbox {\n --mdc-radio-state-layer-size: 40px;\n --mdc-checkbox-state-layer-size: 40px;\n}\n[_nghost-%COMP%] .mat-mdc-form-field {\n width: 100%;\n}\n[_nghost-%COMP%] .mat-mdc-text-field-wrapper {\n min-height: 46px;\n}\n[_nghost-%COMP%] .mat-mdc-form-field-infix {\n align-items: center;\n display: flex !important;\n min-height: 46px;\n padding-bottom: 0 !important;\n padding-top: 0 !important;\n}\n[_nghost-%COMP%] .mdc-notched-outline__leading {\n border-bottom-left-radius: 6px !important;\n border-top-left-radius: 6px !important;\n}\n[_nghost-%COMP%] .mdc-notched-outline__trailing {\n border-bottom-right-radius: 6px !important;\n border-top-right-radius: 6px !important;\n}\n[_nghost-%COMP%] .readonly-summary[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 18px;\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n}\n[_nghost-%COMP%] .readonly-summary[_ngcontent-%COMP%] p[_ngcontent-%COMP%] {\n margin: 0;\n}\n[_nghost-%COMP%] .readonly-summary[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: #2f343b;\n font-weight: 700;\n}\n[_nghost-%COMP%] .filing-details[_ngcontent-%COMP%], \n[_nghost-%COMP%] .annual-reminder[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n[_nghost-%COMP%] .note-box[_ngcontent-%COMP%] {\n border: 1px solid #f3d27a;\n border-radius: 6px;\n background: #fffaf0;\n color: #84610d;\n font-size: 14px;\n line-height: 1.55;\n padding: 16px 20px;\n}\n[_nghost-%COMP%] .note-box[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n font-weight: 700;\n}\n[_nghost-%COMP%] .directors-change-checkbox[_ngcontent-%COMP%] {\n align-self: flex-start;\n}\n[_nghost-%COMP%] .filing-details-grid[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: minmax(280px, 1fr) minmax(220px, 1fr);\n column-gap: 56px;\n align-items: start;\n max-width: 980px;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%], \n[_nghost-%COMP%] .email-field[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%], \n[_nghost-%COMP%] .email-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%] {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] span[_ngcontent-%COMP%], \n[_nghost-%COMP%] .email-field[_ngcontent-%COMP%] span[_ngcontent-%COMP%] {\n color: #e22222;\n}\n[_nghost-%COMP%] .hint[_ngcontent-%COMP%], \n[_nghost-%COMP%] .annual-reminder[_ngcontent-%COMP%] p[_ngcontent-%COMP%], \n[_nghost-%COMP%] .mailing-copy[_ngcontent-%COMP%] {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n[_nghost-%COMP%] .filing-fee[_ngcontent-%COMP%] {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n margin: 46px 0 0;\n}\n[_nghost-%COMP%] .filing-fee[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: #2f343b;\n font-weight: 700;\n}\n[_nghost-%COMP%] .directors-table[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1.65fr) minmax(280px, 1.65fr);\n margin-top: 28px;\n color: #4b5563;\n font-size: 14px;\n line-height: 1.45;\n}\n[_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%], \n[_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] {\n display: contents;\n}\n[_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%], \n[_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n border-bottom: 1px solid #e1e6ee;\n padding: 16px 24px;\n}\n[_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child), \n[_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]:not(:first-child) {\n border-left: 1px solid #e1e6ee;\n}\n[_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n color: #2f343b;\n font-weight: 700;\n padding-top: 0;\n}\n[_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] strong[_ngcontent-%COMP%] {\n color: #2f343b;\n display: block;\n font-weight: 700;\n margin-bottom: 8px;\n}\n[_nghost-%COMP%] .status-pill[_ngcontent-%COMP%] {\n border-radius: 999px;\n display: inline-flex;\n font-size: 12px;\n font-weight: 700;\n line-height: 1;\n padding: 6px 12px;\n}\n[_nghost-%COMP%] .status-pill.new[_ngcontent-%COMP%] {\n background: #eaf7ef;\n border: 1px solid #b8e3c7;\n color: #15803d;\n}\n[_nghost-%COMP%] .status-pill.ceased[_ngcontent-%COMP%] {\n background: #fff1f2;\n border: 1px solid #fecdd3;\n color: #be123c;\n}\n[_nghost-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n display: flex;\n gap: 48px;\n}\n[_nghost-%COMP%] .annual-reminder[_ngcontent-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n align-items: flex-start;\n flex-direction: column;\n gap: 14px;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix {\n align-items: center;\n display: flex;\n padding-right: 8px;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .mat-datepicker-toggle {\n color: #4b5563;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .mat-datepicker-toggle button {\n --mdc-icon-button-state-layer-size: 36px;\n height: 36px;\n padding: 6px;\n width: 36px;\n}\n[_nghost-%COMP%] .date-field[_ngcontent-%COMP%] .mat-datepicker-toggle .mat-icon {\n color: #4b5563 !important;\n font-size: 20px;\n height: 20px;\n line-height: 20px;\n width: 20px;\n}\n@media (max-width: 900px) {\n [_nghost-%COMP%] .filing-details-grid[_ngcontent-%COMP%], \n [_nghost-%COMP%] .directors-table[_ngcontent-%COMP%] {\n grid-template-columns: 1fr;\n }\n [_nghost-%COMP%] .directors-table-header[_ngcontent-%COMP%] {\n display: none;\n }\n [_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] {\n display: grid;\n grid-template-columns: 1fr;\n border-bottom: 1px solid #e1e6ee;\n }\n [_nghost-%COMP%] .directors-table-row[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] {\n border: 0;\n padding: 14px 0;\n }\n [_nghost-%COMP%] mat-radio-group[_ngcontent-%COMP%] {\n flex-direction: column;\n gap: 14px;\n }\n}\n/*# sourceMappingURL=change-of-directors-form.component.css.map */"], changeDetection: 0 });
85608
+ };
85609
+ (() => {
85610
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfDirectorsFormComponent, [{
85611
+ type: Component,
85612
+ args: [{ standalone: true, selector: "british-columbia-change-of-directors-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [
85613
+ FilingFormGroupComponent,
85614
+ AlertComponent,
85615
+ ExpandableCardComponent,
85616
+ MatCheckbox,
85617
+ MatDatepicker,
85618
+ MatDatepickerInput,
85619
+ MatDatepickerToggle,
85620
+ MatFormField,
85621
+ MatIcon,
85622
+ MatInput,
85623
+ MatRadioButton,
85624
+ MatRadioGroup,
85625
+ ReactiveFormsModule,
85626
+ TranslatePipe
85627
+ ], template: `<div class="change-of-directors-form">
85628
+ @if (isNote()) {
85629
+ <alert
85630
+ [type]="alertType.Info"
85631
+ title="Entity changed"
85632
+ content="A new draft needs to be generated as the Entity was changed since the last draft was produced."
85633
+ />
85634
+ }
85635
+
85636
+ @if (errors().length) {
85637
+ <alert
85638
+ title="The following issues need to be resolved before proceeding:"
85639
+ [content]="errors()"
85640
+ />
85641
+ }
85642
+
85643
+ <div class="change-of-directors-form-content">
85644
+ @let referenceNumbers = getFormGroup(groups.ReferenceNumbers);
85645
+
85646
+ @if (referenceNumbers) {
85647
+ <expandable-card [title]="groups.ReferenceNumbers">
85648
+ <filing-form-group
85649
+ [isSubmitted]="isSubmitted()"
85650
+ [form]="referenceNumbers"
85651
+ [config]="referenceNumbersFields"
85652
+ (visiblyValidChange)="onSectionValidChange('refNumbers', $event)"
85653
+ />
85654
+ </expandable-card>
85655
+ }
85656
+
85657
+ @let corporationDetails = getFormGroup(groups.CorporationDetails);
85658
+
85659
+ @if (corporationDetails) {
85660
+ <expandable-card [isStatusIcon]="false" [title]="groups.CorporationDetails">
85661
+ <div class="readonly-summary">
85662
+ <p>
85663
+ <strong>{{ 'Corporation Name' | translate }}:</strong>
85664
+ {{ corporationDetails.get(controls.CorporationName)?.value }}
85665
+ </p>
85666
+ <p>
85667
+ <strong>{{ 'Incorporation Number' | translate }}:</strong>
85668
+ {{ corporationDetails.get(controls.IncorporationNumber)?.value }}
85669
+ </p>
85670
+ <p>
85671
+ <strong>{{ 'Company Email' | translate }}:</strong>
85672
+ {{ corporationDetails.get(controls.CompanyEmail)?.value }}
85673
+ </p>
85674
+ </div>
85675
+ </expandable-card>
85676
+ }
85677
+
85678
+ @let filingDetails = getFormGroup(groups.FilingDetails);
85679
+
85680
+ @if (filingDetails) {
85681
+ <expandable-card
85682
+ [isStatusIcon]="!readonly()"
85683
+ [isValid]="sectionValidity['filingDetails']"
85684
+ [title]="groups.FilingDetails"
85685
+ >
85686
+ <div class="filing-details" [formGroup]="filingDetails">
85687
+ <div class="note-box">
85688
+ <strong>{{ 'Note' | translate }}:</strong>
85689
+ {{
85690
+ 'There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing.'
85691
+ | translate
85692
+ }}
85693
+ </div>
85694
+
85695
+ <mat-checkbox
85696
+ class="directors-change-checkbox"
85697
+ [formControlName]="controls.DirectorsAddedOrDeleted"
85698
+ (change)="
85699
+ filingDetails.get(controls.ChangeDate)?.updateValueAndValidity({ emitEvent: false });
85700
+ onSectionValidChange('filingDetails', filingDetails.valid)
85701
+ "
85702
+ >
85703
+ {{ 'Directors will be added and/or deleted as part of this filing' | translate }}
85704
+ </mat-checkbox>
85705
+
85706
+ @if (filingDetails.get(controls.DirectorsAddedOrDeleted)?.value) {
85707
+ <div class="filing-details-grid">
85708
+ <div class="date-field">
85709
+ <label>
85710
+ {{ 'Date Directors were added or deleted' | translate }}<span>*</span>
85711
+ </label>
85712
+ <mat-form-field appearance="outline">
85713
+ <input
85714
+ matInput
85715
+ [matDatepicker]="changeDatePicker"
85716
+ [formControlName]="controls.ChangeDate"
85717
+ (dateChange)="onSectionValidChange('filingDetails', filingDetails.valid)"
85718
+ placeholder="dd/mm/yyyy"
85719
+ />
85720
+ <mat-datepicker-toggle matSuffix [for]="changeDatePicker">
85721
+ <mat-icon matDatepickerToggleIcon>calendar_today</mat-icon>
85722
+ </mat-datepicker-toggle>
85723
+ <mat-datepicker #changeDatePicker></mat-datepicker>
85724
+ </mat-form-field>
85725
+ <p class="hint">
85726
+ {{
85727
+ "The date on which the individual(s) became or ceased to be a director. This date must be today's date or in the past."
85728
+ | translate
85729
+ }}
85730
+ </p>
85731
+ </div>
85732
+
85733
+ <p class="filing-fee">
85734
+ <strong>{{ 'Filing Fee' | translate }}:</strong>
85735
+ {{ filingDetails.get(controls.FilingFee)?.value }}
85736
+ </p>
85737
+ </div>
85738
+ }
85739
+ </div>
85740
+ </expandable-card>
85741
+ }
85742
+
85743
+ @let directorsArray = getFormArray(groups.Directors);
85744
+
85745
+ <expandable-card [isStatusIcon]="false" [title]="groups.Directors">
85746
+ <filing-form-group
85747
+ [isSubmitted]="isSubmitted()"
85748
+ [form]="form()"
85749
+ [config]="directorsIntroFields()"
85750
+ />
85751
+
85752
+ @if (directorsArray && directorsArray.length) {
85753
+ <div class="directors-table" role="table">
85754
+ <div class="directors-table-header" role="row">
85755
+ <div role="columnheader">{{ 'Name' | translate }}</div>
85756
+ <div role="columnheader">{{ 'Mailing Address' | translate }}</div>
85757
+ <div role="columnheader">{{ 'Delivery Address' | translate }}</div>
85758
+ </div>
85759
+
85760
+ @for (director of directorsArray.controls; track director; let i = $index) {
85761
+ @let directorForm = getDirectorForm(i);
85762
+ @if (directorForm) {
85763
+ <div class="directors-table-row" role="row">
85764
+ <div role="cell">
85765
+ <strong>{{ directorForm.get(controls.AffiliationName)?.value }}</strong>
85766
+ @if (isNewDirector(directorForm)) {
85767
+ <span class="status-pill new">{{ 'NEW' | translate }}</span>
85768
+ }
85769
+ @if (isCeasedDirector(directorForm)) {
85770
+ <span class="status-pill ceased">{{ 'CEASE' | translate }}</span>
85771
+ }
85772
+ </div>
85773
+ <div role="cell">{{ directorForm.get(controls.MailingAddress)?.value }}</div>
85774
+ <div role="cell">{{ directorForm.get(controls.DeliveryAddress)?.value }}</div>
85775
+ </div>
85776
+ }
85777
+ }
85778
+ </div>
85779
+ } @else {
85780
+ <h2 class="body-1-regular">{{ 'Unchanged' | translate }}</h2>
85781
+ }
85782
+ </expandable-card>
85783
+
85784
+ @let annualReportReminder = getFormGroup(groups.AnnualReportReminder);
85785
+
85786
+ @if (annualReportReminder) {
85787
+ <expandable-card
85788
+ [isStatusIcon]="!readonly()"
85789
+ [isValid]="sectionValidity['annualReportReminder']"
85790
+ [title]="groups.AnnualReportReminder"
85791
+ >
85792
+ <div class="annual-reminder" [formGroup]="annualReportReminder">
85793
+ <p>
85794
+ {{
85795
+ "Does this company wish to be reminded to file its annual reports? If an email address is specified, the reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered or head office of the company."
85796
+ | translate
85797
+ }}
85798
+ </p>
85799
+ <mat-radio-group
85800
+ [formControlName]="controls.AnnualReportReminder"
85801
+ (change)="onSectionValidChange('annualReportReminder', annualReportReminder.valid)"
85802
+ >
85803
+ <mat-radio-button [value]="annualReportReminderOption.Yes">
85804
+ {{ 'Yes, send the annual report reminder' | translate }}
85805
+ </mat-radio-button>
85806
+ <mat-radio-button [value]="annualReportReminderOption.No">
85807
+ {{ 'No, I do not need to be reminded' | translate }}
85808
+ </mat-radio-button>
85809
+ </mat-radio-group>
85810
+ </div>
85811
+ </expandable-card>
85812
+ }
85813
+ </div>
85814
+ </div>
85815
+ `, styles: ["/* src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.scss */\n:host {\n display: flex;\n flex: 1;\n min-height: 0;\n color: #2f343b;\n}\n:host .change-of-directors-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n min-height: 0;\n width: 100%;\n}\n:host .change-of-directors-form-content {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: 20px;\n min-height: 0;\n overflow-y: auto;\n padding-right: 8px;\n}\n:host ::ng-deep .expandable-card {\n border: 1px solid #e1e6ee;\n border-radius: 8px;\n box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12) !important;\n margin: 0 !important;\n padding: 24px 28px !important;\n}\n:host ::ng-deep .expandable-card-header-title {\n color: #2f343b !important;\n font-weight: 700 !important;\n line-height: 1.2;\n margin: 0;\n}\n:host ::ng-deep .expandable-card-header mat-icon {\n color: #66717f !important;\n}\n:host ::ng-deep .expandable-card-content {\n padding-top: 20px !important;\n}\n:host ::ng-deep .filling-form-fields {\n column-gap: 42px !important;\n}\n:host ::ng-deep .filling-form-fields-item-label,\n:host ::ng-deep .mat-mdc-radio-button .mdc-label,\n:host ::ng-deep .mat-mdc-checkbox .mdc-label {\n color: #4b5563 !important;\n font-size: 14px !important;\n line-height: 1.45;\n}\n:host ::ng-deep .mat-mdc-radio-button,\n:host ::ng-deep .mat-mdc-checkbox {\n --mdc-radio-state-layer-size: 40px;\n --mdc-checkbox-state-layer-size: 40px;\n}\n:host ::ng-deep .mat-mdc-form-field {\n width: 100%;\n}\n:host ::ng-deep .mat-mdc-text-field-wrapper {\n min-height: 46px;\n}\n:host ::ng-deep .mat-mdc-form-field-infix {\n align-items: center;\n display: flex !important;\n min-height: 46px;\n padding-bottom: 0 !important;\n padding-top: 0 !important;\n}\n:host ::ng-deep .mdc-notched-outline__leading {\n border-bottom-left-radius: 6px !important;\n border-top-left-radius: 6px !important;\n}\n:host ::ng-deep .mdc-notched-outline__trailing {\n border-bottom-right-radius: 6px !important;\n border-top-right-radius: 6px !important;\n}\n:host .readonly-summary {\n display: flex;\n flex-direction: column;\n gap: 18px;\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n}\n:host .readonly-summary p {\n margin: 0;\n}\n:host .readonly-summary strong {\n color: #2f343b;\n font-weight: 700;\n}\n:host .filing-details,\n:host .annual-reminder {\n display: flex;\n flex-direction: column;\n gap: 24px;\n}\n:host .note-box {\n border: 1px solid #f3d27a;\n border-radius: 6px;\n background: #fffaf0;\n color: #84610d;\n font-size: 14px;\n line-height: 1.55;\n padding: 16px 20px;\n}\n:host .note-box strong {\n font-weight: 700;\n}\n:host .directors-change-checkbox {\n align-self: flex-start;\n}\n:host .filing-details-grid {\n display: grid;\n grid-template-columns: minmax(280px, 1fr) minmax(220px, 1fr);\n column-gap: 56px;\n align-items: start;\n max-width: 980px;\n}\n:host .date-field,\n:host .email-field {\n display: flex;\n flex-direction: column;\n gap: 4px;\n}\n:host .date-field label,\n:host .email-field label {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n}\n:host .date-field span,\n:host .email-field span {\n color: #e22222;\n}\n:host .hint,\n:host .annual-reminder p,\n:host .mailing-copy {\n color: #6b7280;\n font-size: 14px;\n line-height: 1.5;\n margin: 0;\n}\n:host .filing-fee {\n color: #4b5563;\n font-size: 14px;\n line-height: 1.35;\n margin: 46px 0 0;\n}\n:host .filing-fee strong {\n color: #2f343b;\n font-weight: 700;\n}\n:host .directors-table {\n display: grid;\n grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1.65fr) minmax(280px, 1.65fr);\n margin-top: 28px;\n color: #4b5563;\n font-size: 14px;\n line-height: 1.45;\n}\n:host .directors-table-header,\n:host .directors-table-row {\n display: contents;\n}\n:host .directors-table-header > div,\n:host .directors-table-row > div {\n border-bottom: 1px solid #e1e6ee;\n padding: 16px 24px;\n}\n:host .directors-table-header > div:not(:first-child),\n:host .directors-table-row > div:not(:first-child) {\n border-left: 1px solid #e1e6ee;\n}\n:host .directors-table-header > div {\n color: #2f343b;\n font-weight: 700;\n padding-top: 0;\n}\n:host .directors-table-row strong {\n color: #2f343b;\n display: block;\n font-weight: 700;\n margin-bottom: 8px;\n}\n:host .status-pill {\n border-radius: 999px;\n display: inline-flex;\n font-size: 12px;\n font-weight: 700;\n line-height: 1;\n padding: 6px 12px;\n}\n:host .status-pill.new {\n background: #eaf7ef;\n border: 1px solid #b8e3c7;\n color: #15803d;\n}\n:host .status-pill.ceased {\n background: #fff1f2;\n border: 1px solid #fecdd3;\n color: #be123c;\n}\n:host mat-radio-group {\n display: flex;\n gap: 48px;\n}\n:host .annual-reminder mat-radio-group {\n align-items: flex-start;\n flex-direction: column;\n gap: 14px;\n}\n:host .date-field ::ng-deep .mat-mdc-form-field-icon-suffix {\n align-items: center;\n display: flex;\n padding-right: 8px;\n}\n:host .date-field ::ng-deep .mat-datepicker-toggle {\n color: #4b5563;\n}\n:host .date-field ::ng-deep .mat-datepicker-toggle button {\n --mdc-icon-button-state-layer-size: 36px;\n height: 36px;\n padding: 6px;\n width: 36px;\n}\n:host .date-field ::ng-deep .mat-datepicker-toggle .mat-icon {\n color: #4b5563 !important;\n font-size: 20px;\n height: 20px;\n line-height: 20px;\n width: 20px;\n}\n@media (max-width: 900px) {\n :host .filing-details-grid,\n :host .directors-table {\n grid-template-columns: 1fr;\n }\n :host .directors-table-header {\n display: none;\n }\n :host .directors-table-row {\n display: grid;\n grid-template-columns: 1fr;\n border-bottom: 1px solid #e1e6ee;\n }\n :host .directors-table-row > div {\n border: 0;\n padding: 14px 0;\n }\n :host mat-radio-group {\n flex-direction: column;\n gap: 14px;\n }\n}\n/*# sourceMappingURL=change-of-directors-form.component.css.map */\n"] }]
85816
+ }], null, null);
85817
+ })();
85818
+ (() => {
85819
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfDirectorsFormComponent, { className: "BritishColumbiaChangeOfDirectorsFormComponent", filePath: "src/app/components/british-columbia/change-of-directors/change-of-directors-form/change-of-directors-form.component.ts", lineNumber: 64 });
85820
+ })();
85821
+ }
85822
+ });
85823
+
85824
+ // src/app/components/british-columbia/change-of-directors/steps/delta/change-of-directors-delta-form.component.ts
85825
+ var BritishColumbiaChangeOfDirectorsDeltaFormComponent;
85826
+ var init_change_of_directors_delta_form_component = __esm({
85827
+ "src/app/components/british-columbia/change-of-directors/steps/delta/change-of-directors-delta-form.component.ts"() {
85828
+ init_core();
85829
+ init_button();
85830
+ init_ngx_translate_core();
85831
+ init_common_utils();
85832
+ init_change_of_directors_form_component();
85833
+ init_core();
85834
+ BritishColumbiaChangeOfDirectorsDeltaFormComponent = class _BritishColumbiaChangeOfDirectorsDeltaFormComponent {
85835
+ form = input.required();
85836
+ actionsDisabled = input(false);
85837
+ isNote = input(false);
85838
+ task = input();
85839
+ errors = input([]);
85840
+ close = output();
85841
+ save = output();
85842
+ validate = output();
85843
+ submitted = signal(false);
85844
+ visiblyValid = signal(true);
85845
+ clientErrors = signal([]);
85846
+ translate = inject(TranslateService);
85847
+ combinedErrors = computed(() => {
85848
+ const client = this.clientErrors();
85849
+ return client.length ? client : this.errors();
85850
+ });
85851
+ onVisiblyValidChange(valid) {
85852
+ this.visiblyValid.set(valid);
85853
+ }
85854
+ onValidate() {
85855
+ this.submitted.set(true);
85856
+ this.clientErrors.set([]);
85857
+ markFormGroupTouched(this.form());
85858
+ if (!this.visiblyValid()) {
85859
+ this.clientErrors.set([this.translate.instant("Some required fields aren't completed.")]);
85860
+ return;
85861
+ }
85862
+ this.validate.emit();
85863
+ }
85864
+ static \u0275fac = function BritishColumbiaChangeOfDirectorsDeltaFormComponent_Factory(__ngFactoryType__) {
85865
+ return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsDeltaFormComponent)();
85866
+ };
85867
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfDirectorsDeltaFormComponent, selectors: [["british-columbia-change-of-directors-delta-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], isNote: [1, "isNote"], task: [1, "task"], errors: [1, "errors"] }, outputs: { close: "close", save: "save", validate: "validate" }, decls: 15, vars: 18, consts: [[1, "change-of-directors-delta-form"], [1, "change-of-directors-delta-form-content", 3, "visiblyValidChange", "form", "task", "errors", "isNote", "isSubmitted", "readonly"], [1, "change-of-directors-delta-form-actions"], ["mat-stroked-button", "", "mat-button", "", 3, "click", "disabled"], [1, "body-1-semibold"], ["color", "primary", "mat-flat-button", "", 1, "submit", 3, "click", "disabled"]], template: function BritishColumbiaChangeOfDirectorsDeltaFormComponent_Template(rf, ctx) {
85868
+ if (rf & 1) {
85869
+ \u0275\u0275elementStart(0, "div", 0)(1, "british-columbia-change-of-directors-form", 1);
85870
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaChangeOfDirectorsDeltaFormComponent_Template_british_columbia_change_of_directors_form_visiblyValidChange_1_listener($event) {
85871
+ return ctx.onVisiblyValidChange($event);
85872
+ });
85873
+ \u0275\u0275elementEnd();
85874
+ \u0275\u0275elementStart(2, "div", 2)(3, "button", 3);
85875
+ \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsDeltaFormComponent_Template_button_click_3_listener() {
85876
+ return ctx.close.emit();
85877
+ });
85878
+ \u0275\u0275elementStart(4, "span", 4);
85879
+ \u0275\u0275text(5);
85880
+ \u0275\u0275pipe(6, "translate");
85881
+ \u0275\u0275elementEnd()();
85882
+ \u0275\u0275elementStart(7, "button", 3);
85883
+ \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsDeltaFormComponent_Template_button_click_7_listener() {
85884
+ return ctx.save.emit();
85885
+ });
85886
+ \u0275\u0275elementStart(8, "span", 4);
85887
+ \u0275\u0275text(9);
85888
+ \u0275\u0275pipe(10, "translate");
85889
+ \u0275\u0275elementEnd()();
85890
+ \u0275\u0275elementStart(11, "button", 5);
85891
+ \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsDeltaFormComponent_Template_button_click_11_listener() {
85892
+ return ctx.onValidate();
85893
+ });
85894
+ \u0275\u0275elementStart(12, "span", 4);
85895
+ \u0275\u0275text(13);
85896
+ \u0275\u0275pipe(14, "translate");
85897
+ \u0275\u0275elementEnd()()()();
85898
+ }
85899
+ if (rf & 2) {
85900
+ \u0275\u0275advance();
85901
+ \u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.combinedErrors())("isNote", ctx.isNote())("isSubmitted", ctx.submitted())("readonly", false);
85902
+ \u0275\u0275advance(2);
85903
+ \u0275\u0275property("disabled", ctx.actionsDisabled());
85904
+ \u0275\u0275advance(2);
85905
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 12, "Close"));
85906
+ \u0275\u0275advance(2);
85907
+ \u0275\u0275property("disabled", ctx.actionsDisabled());
85908
+ \u0275\u0275advance(2);
85909
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 14, "Save Changes"));
85910
+ \u0275\u0275advance(2);
85911
+ \u0275\u0275property("disabled", ctx.actionsDisabled());
85912
+ \u0275\u0275advance(2);
85913
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(14, 16, "Validate & Generate Draft"));
85914
+ }
85915
+ }, dependencies: [MatButton, TranslatePipe, BritishColumbiaChangeOfDirectorsFormComponent], styles: ["\n\n[_nghost-%COMP%] .change-of-directors-delta-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-directors-delta-form-content[_ngcontent-%COMP%] {\n flex: 1;\n min-height: 0;\n}\n[_nghost-%COMP%] .change-of-directors-delta-form-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n[_nghost-%COMP%] .change-of-directors-delta-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin: 0;\n}\n[_nghost-%COMP%] .change-of-directors-delta-form-actions[_ngcontent-%COMP%] .submit[_ngcontent-%COMP%] {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=change-of-directors-delta-form.component.css.map */"], changeDetection: 0 });
85916
+ };
85917
+ (() => {
85918
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfDirectorsDeltaFormComponent, [{
85919
+ type: Component,
85920
+ args: [{ standalone: true, selector: "british-columbia-change-of-directors-delta-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, TranslatePipe, BritishColumbiaChangeOfDirectorsFormComponent], template: `<div class="change-of-directors-delta-form">\r
85921
+ <british-columbia-change-of-directors-form\r
85922
+ class="change-of-directors-delta-form-content"\r
85923
+ [form]="form()"\r
85924
+ [task]="task()"\r
85925
+ [errors]="combinedErrors()"\r
85926
+ [isNote]="isNote()"\r
85927
+ [isSubmitted]="submitted()"\r
85928
+ [readonly]="false"\r
85929
+ (visiblyValidChange)="onVisiblyValidChange($event)"\r
85930
+ />\r
85931
+ \r
85932
+ <div class="change-of-directors-delta-form-actions">\r
85933
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
85934
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
85935
+ </button>\r
85936
+ <button (click)="save.emit()" [disabled]="actionsDisabled()" mat-stroked-button mat-button>\r
85937
+ <span class="body-1-semibold">{{ 'Save Changes' | translate }}</span>\r
85938
+ </button>\r
85939
+ <button\r
85940
+ class="submit"\r
85941
+ color="primary"\r
85942
+ mat-flat-button\r
85943
+ [disabled]="actionsDisabled()"\r
85944
+ (click)="onValidate()"\r
85945
+ >\r
85946
+ <span class="body-1-semibold">{{ 'Validate & Generate Draft' | translate }}</span>\r
85947
+ </button>\r
85948
+ </div>\r
85949
+ </div>\r
85950
+ `, styles: ["/* src/app/components/british-columbia/change-of-directors/steps/delta/change-of-directors-delta-form.component.scss */\n:host .change-of-directors-delta-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .change-of-directors-delta-form-content {\n flex: 1;\n min-height: 0;\n}\n:host .change-of-directors-delta-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .change-of-directors-delta-form-actions button {\n margin: 0;\n}\n:host .change-of-directors-delta-form-actions .submit {\n padding-left: 30px;\n padding-right: 30px;\n}\n/*# sourceMappingURL=change-of-directors-delta-form.component.css.map */\n"] }]
85951
+ }], null, null);
85952
+ })();
85953
+ (() => {
85954
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfDirectorsDeltaFormComponent, { className: "BritishColumbiaChangeOfDirectorsDeltaFormComponent", filePath: "src/app/components/british-columbia/change-of-directors/steps/delta/change-of-directors-delta-form.component.ts", lineNumber: 25 });
85955
+ })();
85956
+ }
85957
+ });
85958
+
85959
+ // src/app/components/british-columbia/change-of-directors/steps/preview/change-of-directors-preview-form.component.ts
85960
+ var BritishColumbiaChangeOfDirectorsPreviewFormComponent;
85961
+ var init_change_of_directors_preview_form_component = __esm({
85962
+ "src/app/components/british-columbia/change-of-directors/steps/preview/change-of-directors-preview-form.component.ts"() {
85963
+ init_core();
85964
+ init_button();
85965
+ init_ngx_translate_core();
85966
+ init_change_of_directors_form_component();
85967
+ init_core();
85968
+ BritishColumbiaChangeOfDirectorsPreviewFormComponent = class _BritishColumbiaChangeOfDirectorsPreviewFormComponent {
85969
+ form = input.required();
85970
+ actionsDisabled = input(false);
85971
+ task = input();
85972
+ errors = input([]);
85973
+ close = output();
85974
+ file = output();
85975
+ static \u0275fac = function BritishColumbiaChangeOfDirectorsPreviewFormComponent_Factory(__ngFactoryType__) {
85976
+ return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsPreviewFormComponent)();
85977
+ };
85978
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaChangeOfDirectorsPreviewFormComponent, selectors: [["british-columbia-change-of-directors-preview-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], task: [1, "task"], errors: [1, "errors"] }, outputs: { close: "close", file: "file" }, decls: 11, vars: 13, consts: [[1, "change-of-directors-preview-form"], [1, "change-of-directors-preview-form-content", 3, "form", "task", "errors", "isSubmitted", "readonly"], [1, "change-of-directors-preview-form-actions"], ["mat-stroked-button", "", "mat-button", "", 3, "click", "disabled"], [1, "body-1-semibold"], ["color", "primary", "mat-flat-button", "", 1, "submit", 3, "click", "disabled"]], template: function BritishColumbiaChangeOfDirectorsPreviewFormComponent_Template(rf, ctx) {
85979
+ if (rf & 1) {
85980
+ \u0275\u0275elementStart(0, "div", 0);
85981
+ \u0275\u0275element(1, "british-columbia-change-of-directors-form", 1);
85982
+ \u0275\u0275elementStart(2, "div", 2)(3, "button", 3);
85983
+ \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsPreviewFormComponent_Template_button_click_3_listener() {
85984
+ return ctx.close.emit();
85985
+ });
85986
+ \u0275\u0275elementStart(4, "span", 4);
85987
+ \u0275\u0275text(5);
85988
+ \u0275\u0275pipe(6, "translate");
85989
+ \u0275\u0275elementEnd()();
85990
+ \u0275\u0275elementStart(7, "button", 5);
85991
+ \u0275\u0275listener("click", function BritishColumbiaChangeOfDirectorsPreviewFormComponent_Template_button_click_7_listener() {
85992
+ return ctx.file.emit();
85993
+ });
85994
+ \u0275\u0275elementStart(8, "span", 4);
85995
+ \u0275\u0275text(9);
85996
+ \u0275\u0275pipe(10, "translate");
85997
+ \u0275\u0275elementEnd()()()();
85998
+ }
85999
+ if (rf & 2) {
86000
+ \u0275\u0275advance();
86001
+ \u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.errors())("isSubmitted", false)("readonly", true);
86002
+ \u0275\u0275advance(2);
86003
+ \u0275\u0275property("disabled", ctx.actionsDisabled());
86004
+ \u0275\u0275advance(2);
86005
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 9, "Close"));
86006
+ \u0275\u0275advance(2);
86007
+ \u0275\u0275property("disabled", ctx.actionsDisabled());
86008
+ \u0275\u0275advance(2);
86009
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 11, "File"));
86010
+ }
86011
+ }, dependencies: [MatButton, TranslatePipe, BritishColumbiaChangeOfDirectorsFormComponent], styles: ["\n\n[_nghost-%COMP%] .change-of-directors-preview-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-directors-preview-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .change-of-directors-preview-form-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n[_nghost-%COMP%] .change-of-directors-preview-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin: 0;\n}\n/*# sourceMappingURL=change-of-directors-preview-form.component.css.map */"], changeDetection: 0 });
86012
+ };
86013
+ (() => {
86014
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfDirectorsPreviewFormComponent, [{
86015
+ type: Component,
86016
+ args: [{ standalone: true, selector: "british-columbia-change-of-directors-preview-form", changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatButton, TranslatePipe, BritishColumbiaChangeOfDirectorsFormComponent], template: `<div class="change-of-directors-preview-form">\r
86017
+ <british-columbia-change-of-directors-form\r
86018
+ class="change-of-directors-preview-form-content"\r
86019
+ [form]="form()"\r
86020
+ [task]="task()"\r
86021
+ [errors]="errors()"\r
86022
+ [isSubmitted]="false"\r
86023
+ [readonly]="true"\r
86024
+ />\r
86025
+ \r
86026
+ <div class="change-of-directors-preview-form-actions">\r
86027
+ <button [disabled]="actionsDisabled()" mat-stroked-button mat-button (click)="close.emit()">\r
86028
+ <span class="body-1-semibold">{{ 'Close' | translate }}</span>\r
86029
+ </button>\r
86030
+ <button\r
86031
+ class="submit"\r
86032
+ color="primary"\r
86033
+ mat-flat-button\r
86034
+ [disabled]="actionsDisabled()"\r
86035
+ (click)="file.emit()"\r
86036
+ >\r
86037
+ <span class="body-1-semibold">{{ 'File' | translate }}</span>\r
86038
+ </button>\r
86039
+ </div>\r
86040
+ </div>\r
86041
+ `, styles: ["/* src/app/components/british-columbia/change-of-directors/steps/preview/change-of-directors-preview-form.component.scss */\n:host .change-of-directors-preview-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .change-of-directors-preview-form-content {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n:host .change-of-directors-preview-form-actions {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n:host .change-of-directors-preview-form-actions button {\n margin: 0;\n}\n/*# sourceMappingURL=change-of-directors-preview-form.component.css.map */\n"] }]
86042
+ }], null, null);
86043
+ })();
86044
+ (() => {
86045
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaChangeOfDirectorsPreviewFormComponent, { className: "BritishColumbiaChangeOfDirectorsPreviewFormComponent", filePath: "src/app/components/british-columbia/change-of-directors/steps/preview/change-of-directors-preview-form.component.ts", lineNumber: 21 });
86046
+ })();
86047
+ }
86048
+ });
86049
+
84786
86050
  // src/app/constants/ui/british-columbia-formation-form.constants.ts
84787
- var BC_NAME_TYPE_OPTIONS, labelledValue, isNamed, BC_FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_FORMATION_DELTA_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS, BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_ROW_FIELDS, BC_FORMATION_CARD_FORM_REGISTERED_OFFICE_FIELDS, BC_FORMATION_CARD_FORM_RECORDS_OFFICE_FIELDS, BC_FORMATION_DELTA_CARD_FORM_COMPLETING_PARTY_FIELDS, BC_FORMATION_CARD_FORM_DIRECTORS_FIELDS, BC_FORMATION_CARD_FORM_INCORPORATORS_FIELDS;
86051
+ var BC_NAME_TYPE_OPTIONS, labelledValue2, isNamed, isNotifyByMail2, BC_FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS, BC_FORMATION_DELTA_CARD_FORM_CORPORATION_DETAILS_FIELDS, BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_FIELDS, BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_ROW_FIELDS, BC_FORMATION_CARD_FORM_REGISTERED_OFFICE_FIELDS, BC_FORMATION_CARD_FORM_RECORDS_OFFICE_FIELDS, BC_FORMATION_DELTA_CARD_FORM_NOTIFICATION_FIELDS, BC_FORMATION_DELTA_CARD_FORM_COMPLETING_PARTY_FIELDS, BC_FORMATION_CARD_FORM_DIRECTORS_FIELDS, BC_FORMATION_CARD_FORM_INCORPORATORS_FIELDS;
84788
86052
  var init_british_columbia_formation_form_constants = __esm({
84789
86053
  "src/app/constants/ui/british-columbia-formation-form.constants.ts"() {
84790
86054
  init_form_enums();
@@ -84792,8 +86056,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84792
86056
  init_BritishColumbiaConstants();
84793
86057
  init_british_columbia_formation_form_helper();
84794
86058
  BC_NAME_TYPE_OPTIONS = Object.values(BCNameType).filter((v) => typeof v === "number").map((v) => ({ label: BCNameTypeLabel[v], value: v }));
84795
- labelledValue = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("Not specified")}`;
86059
+ labelledValue2 = (label, value, t) => `<span class="body-1-semibold">${t(label)}:</span> ${value || t("Not specified")}`;
84796
86060
  isNamed = (form) => form.get(BCFormationFormControls.CorporationNameType)?.value === BCNameType.Named;
86061
+ isNotifyByMail2 = (form) => form.get(BCFormationFormControls.NotificationMethod)?.value === BCNotificationMethod.Mail;
84797
86062
  BC_FORMATION_DELTA_CARD_FORM_REFERENCE_NUMBERS_FIELDS = [
84798
86063
  {
84799
86064
  type: FormType.Input,
@@ -84815,6 +86080,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84815
86080
  options: BC_NAME_TYPE_OPTIONS,
84816
86081
  needTranslate: true,
84817
86082
  onChange: (form) => {
86083
+ if (!isNamed(form)) {
86084
+ form.get(BCFormationFormControls.CompanyName)?.setValue("", { emitEvent: false });
86085
+ form.get(BCFormationFormControls.NameReservationNumber)?.setValue("", { emitEvent: false });
86086
+ }
84818
86087
  form.get(BCFormationFormControls.CompanyName)?.updateValueAndValidity({ emitEvent: false });
84819
86088
  form.get(BCFormationFormControls.NameReservationNumber)?.updateValueAndValidity({ emitEvent: false });
84820
86089
  }
@@ -84823,13 +86092,17 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84823
86092
  type: FormType.Text,
84824
86093
  formControlName: "",
84825
86094
  class: "span-6 beside-select",
84826
- // Numbered only: a Named company shows no preview of the typed name.
84827
- isVisible: (form) => !isNamed(form),
84828
- dynamicLabel: () => BC_NUMBERED_NAME_PREVIEW
86095
+ dynamicLabel: (form, t) => {
86096
+ if (!isNamed(form)) {
86097
+ return BC_NUMBERED_NAME_PREVIEW;
86098
+ }
86099
+ const companyName = form.get(BCFormationFormControls.CompanyName)?.value ?? "";
86100
+ return companyName.trim() ? companyName.trim().toUpperCase() : t("Name preview \u2014 appears exactly as entered");
86101
+ }
84829
86102
  },
84830
86103
  {
84831
86104
  type: FormType.Input,
84832
- label: "Proposed Corporate Name",
86105
+ label: "Company Name",
84833
86106
  formControlName: BCFormationFormControls.CompanyName,
84834
86107
  required: true,
84835
86108
  isVisible: isNamed,
@@ -84837,12 +86110,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84837
86110
  },
84838
86111
  {
84839
86112
  type: FormType.Input,
84840
- label: "Name Reservation #",
86113
+ label: "Name Reservation (NR) Number",
84841
86114
  formControlName: BCFormationFormControls.NameReservationNumber,
84842
86115
  required: true,
84843
86116
  maxLength: 9,
84844
86117
  errorMessage: "Enter a valid Name Reservation number (for example NR1234567)",
84845
- showRequiredMessage: true,
84846
86118
  isVisible: isNamed,
84847
86119
  class: "span-6"
84848
86120
  },
@@ -84850,7 +86122,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84850
86122
  type: FormType.Text,
84851
86123
  formControlName: BCFormationFormControls.RequestedDateForIncorporation,
84852
86124
  class: "span-12 spaced-text",
84853
- dynamicLabel: (form, t) => labelledValue("Requested Date for Incorporation", form.get(BCFormationFormControls.RequestedDateForIncorporation)?.value, t)
86125
+ dynamicLabel: (form, t) => labelledValue2("Requested Date for Incorporation", form.get(BCFormationFormControls.RequestedDateForIncorporation)?.value, t)
84854
86126
  },
84855
86127
  {
84856
86128
  type: FormType.Text,
@@ -84867,7 +86139,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84867
86139
  required: true,
84868
86140
  maxLength: BC_COMPANY_EMAIL_MAX_LENGTH,
84869
86141
  errorMessage: "Enter a valid email address",
84870
- showRequiredMessage: true,
84871
86142
  class: "span-6"
84872
86143
  },
84873
86144
  {
@@ -84878,7 +86149,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84878
86149
  required: true,
84879
86150
  maxLength: BC_PASSWORD_MAX_LENGTH,
84880
86151
  errorMessage: "Company Password must be 8 to 15 characters",
84881
- showRequiredMessage: true,
84882
86152
  class: "span-6"
84883
86153
  }
84884
86154
  ];
@@ -84924,13 +86194,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84924
86194
  type: FormType.Text,
84925
86195
  formControlName: BCFormationFormControls.MailingAddress,
84926
86196
  class: "span-12",
84927
- dynamicLabel: (form, t) => labelledValue("Mailing Address - Full Address", form.get(BCFormationFormControls.MailingAddress)?.value, t)
86197
+ dynamicLabel: (form, t) => labelledValue2("Mailing Address - Full Address", form.get(BCFormationFormControls.MailingAddress)?.value, t)
84928
86198
  },
84929
86199
  {
84930
86200
  type: FormType.Text,
84931
86201
  formControlName: BCFormationFormControls.DeliveryAddress,
84932
86202
  class: "span-12",
84933
- dynamicLabel: (form, t) => labelledValue("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value, t)
86203
+ dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value, t)
84934
86204
  }
84935
86205
  ];
84936
86206
  BC_FORMATION_CARD_FORM_RECORDS_OFFICE_FIELDS = [
@@ -84938,13 +86208,109 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84938
86208
  type: FormType.Text,
84939
86209
  formControlName: BCFormationFormControls.RecordsOfficeMailingAddress,
84940
86210
  class: "span-12",
84941
- dynamicLabel: (form, t) => labelledValue("Mailing Address - Full Address", form.get(BCFormationFormControls.RecordsOfficeMailingAddress)?.value, t)
86211
+ dynamicLabel: (form, t) => labelledValue2("Mailing Address - Full Address", form.get(BCFormationFormControls.RecordsOfficeMailingAddress)?.value, t)
84942
86212
  },
84943
86213
  {
84944
86214
  type: FormType.Text,
84945
86215
  formControlName: BCFormationFormControls.RecordsOfficeDeliveryAddress,
84946
86216
  class: "span-12",
84947
- dynamicLabel: (form, t) => labelledValue("Delivery Address - Full Address", form.get(BCFormationFormControls.RecordsOfficeDeliveryAddress)?.value, t)
86217
+ dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.RecordsOfficeDeliveryAddress)?.value, t)
86218
+ }
86219
+ ];
86220
+ BC_FORMATION_DELTA_CARD_FORM_NOTIFICATION_FIELDS = [
86221
+ {
86222
+ type: FormType.Radio,
86223
+ label: "Notification Method",
86224
+ formControlName: BCFormationFormControls.NotificationMethod,
86225
+ required: true,
86226
+ options: BC_NOTIFICATION_METHOD_OPTIONS,
86227
+ needTranslate: true,
86228
+ class: "span-12",
86229
+ onChange: (form) => {
86230
+ const byMail = isNotifyByMail2(form);
86231
+ if (!byMail) {
86232
+ [
86233
+ BCFormationFormControls.NotificationName,
86234
+ BCFormationFormControls.AddressLine1,
86235
+ BCFormationFormControls.AddressLine2,
86236
+ BCFormationFormControls.City,
86237
+ BCFormationFormControls.PostalZip
86238
+ ].forEach((control) => form.get(control)?.setValue("", { emitEvent: false }));
86239
+ form.get(BCFormationFormControls.ProvinceState)?.setValue(BC_DEFAULT_PROVINCE_STATE, { emitEvent: false });
86240
+ form.get(BCFormationFormControls.Country)?.setValue(BC_DEFAULT_COUNTRY, { emitEvent: false });
86241
+ }
86242
+ [
86243
+ BCFormationFormControls.NotificationEmail,
86244
+ BCFormationFormControls.NotificationName,
86245
+ BCFormationFormControls.AddressLine1,
86246
+ BCFormationFormControls.City,
86247
+ BCFormationFormControls.ProvinceState,
86248
+ BCFormationFormControls.Country
86249
+ ].forEach((control) => form.get(control)?.updateValueAndValidity({ emitEvent: false }));
86250
+ }
86251
+ },
86252
+ {
86253
+ type: FormType.Input,
86254
+ label: "Notification Email",
86255
+ formControlName: BCFormationFormControls.NotificationEmail,
86256
+ isVisible: (form) => !isNotifyByMail2(form),
86257
+ class: "column-3"
86258
+ },
86259
+ {
86260
+ type: FormType.Input,
86261
+ label: "Name",
86262
+ formControlName: BCFormationFormControls.NotificationName,
86263
+ required: true,
86264
+ isVisible: isNotifyByMail2,
86265
+ class: "column-3"
86266
+ },
86267
+ {
86268
+ type: FormType.Input,
86269
+ label: "Address Line 1",
86270
+ formControlName: BCFormationFormControls.AddressLine1,
86271
+ required: true,
86272
+ isVisible: isNotifyByMail2,
86273
+ class: "column-3"
86274
+ },
86275
+ {
86276
+ type: FormType.Input,
86277
+ label: "Address Line 2",
86278
+ formControlName: BCFormationFormControls.AddressLine2,
86279
+ isVisible: isNotifyByMail2,
86280
+ class: "column-3"
86281
+ },
86282
+ {
86283
+ type: FormType.Input,
86284
+ label: "City",
86285
+ formControlName: BCFormationFormControls.City,
86286
+ required: true,
86287
+ isVisible: isNotifyByMail2,
86288
+ class: "column-2"
86289
+ },
86290
+ {
86291
+ type: FormType.Select,
86292
+ label: "Province / State",
86293
+ formControlName: BCFormationFormControls.ProvinceState,
86294
+ required: true,
86295
+ isVisible: isNotifyByMail2,
86296
+ options: BC_PROVINCE_STATE_OPTIONS,
86297
+ class: "span-4"
86298
+ },
86299
+ {
86300
+ type: FormType.Input,
86301
+ label: "Postal / Zip Code",
86302
+ formControlName: BCFormationFormControls.PostalZip,
86303
+ isVisible: isNotifyByMail2,
86304
+ class: "column-2"
86305
+ },
86306
+ {
86307
+ type: FormType.Select,
86308
+ label: "Country",
86309
+ formControlName: BCFormationFormControls.Country,
86310
+ required: true,
86311
+ isVisible: isNotifyByMail2,
86312
+ options: BC_COUNTRY_OPTIONS,
86313
+ class: "span-4"
84948
86314
  }
84949
86315
  ];
84950
86316
  BC_FORMATION_DELTA_CARD_FORM_COMPLETING_PARTY_FIELDS = [
@@ -84975,7 +86341,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
84975
86341
  formControlName: BCFormationFormControls.CompletingPartyEmail,
84976
86342
  required: true,
84977
86343
  errorMessage: "Enter a valid email address",
84978
- showRequiredMessage: true,
84979
86344
  class: "column-3"
84980
86345
  },
84981
86346
  {
@@ -85015,8 +86380,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85015
86380
  label: "Postal / Zip Code",
85016
86381
  formControlName: BCFormationFormControls.PostalZip,
85017
86382
  required: true,
85018
- errorMessage: "Enter a valid Canadian postal code (for example V8W 1X4)",
85019
- showRequiredMessage: true,
85020
86383
  class: "column-2"
85021
86384
  },
85022
86385
  {
@@ -85025,11 +86388,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85025
86388
  formControlName: BCFormationFormControls.Country,
85026
86389
  required: true,
85027
86390
  options: BC_COMPLETING_PARTY_COUNTRY_OPTIONS,
85028
- class: "span-4",
85029
- // Province / State is required for Canada and the US, and the postal code format is Canada-only.
85030
- onChange: (form) => {
85031
- [BCFormationFormControls.ProvinceState, BCFormationFormControls.PostalZip].forEach((control) => form.get(control)?.updateValueAndValidity({ emitEvent: false }));
85032
- }
86391
+ class: "span-4"
85033
86392
  },
85034
86393
  {
85035
86394
  type: FormType.Checkbox,
@@ -85053,13 +86412,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85053
86412
  type: FormType.Text,
85054
86413
  formControlName: BCFormationFormControls.MailingAddress,
85055
86414
  class: "span-12",
85056
- dynamicLabel: (form, t) => labelledValue("Mailing Address - Full Address", form.get(BCFormationFormControls.MailingAddress)?.value, t)
86415
+ dynamicLabel: (form, t) => labelledValue2("Mailing Address - Full Address", form.get(BCFormationFormControls.MailingAddress)?.value, t)
85057
86416
  },
85058
86417
  {
85059
86418
  type: FormType.Text,
85060
86419
  formControlName: BCFormationFormControls.DeliveryAddress,
85061
86420
  class: "span-12",
85062
- dynamicLabel: (form, t) => labelledValue("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value, t)
86421
+ dynamicLabel: (form, t) => labelledValue2("Delivery Address - Full Address", form.get(BCFormationFormControls.DeliveryAddress)?.value, t)
85063
86422
  }
85064
86423
  ];
85065
86424
  BC_FORMATION_CARD_FORM_INCORPORATORS_FIELDS = [
@@ -85067,7 +86426,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85067
86426
  type: FormType.Text,
85068
86427
  formControlName: BCFormationFormControls.FullAddress,
85069
86428
  class: "span-12",
85070
- dynamicLabel: (form, t) => labelledValue("Full Address", form.get(BCFormationFormControls.FullAddress)?.value, t)
86429
+ dynamicLabel: (form, t) => labelledValue2("Full Address", form.get(BCFormationFormControls.FullAddress)?.value, t)
85071
86430
  }
85072
86431
  ];
85073
86432
  }
@@ -85271,18 +86630,37 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85271
86630
  \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", registeredOfficeForm_r12)("config", ctx_r0.recordsOfficeFields);
85272
86631
  }
85273
86632
  }
85274
- function BritishColumbiaIncorporationFormComponent_Conditional_12_Template(rf, ctx) {
86633
+ function BritishColumbiaIncorporationFormComponent_Conditional_11_Template(rf, ctx) {
86634
+ if (rf & 1) {
86635
+ const _r13 = \u0275\u0275getCurrentView();
86636
+ \u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8)(2, "filing-form-group", 9);
86637
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaIncorporationFormComponent_Conditional_11_Template_filing_form_group_visiblyValidChange_2_listener($event) {
86638
+ \u0275\u0275restoreView(_r13);
86639
+ const ctx_r0 = \u0275\u0275nextContext();
86640
+ return \u0275\u0275resetView(ctx_r0.onSectionValidChange("notification", $event));
86641
+ });
86642
+ \u0275\u0275elementEnd()()();
86643
+ }
86644
+ if (rf & 2) {
86645
+ const ctx_r0 = \u0275\u0275nextContext();
86646
+ const notification_r14 = \u0275\u0275readContextLet(10);
86647
+ \u0275\u0275property("isValid", ctx_r0.sectionValidity["notification"])("isStatusIcon", ctx_r0.statusIcon())("title", ctx_r0.groups.Notification);
86648
+ \u0275\u0275advance(2);
86649
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", notification_r14)("config", ctx_r0.notificationFields);
86650
+ }
86651
+ }
86652
+ function BritishColumbiaIncorporationFormComponent_Conditional_14_Template(rf, ctx) {
85275
86653
  if (rf & 1) {
85276
86654
  \u0275\u0275element(0, "expandable-list-card", 7);
85277
86655
  }
85278
86656
  if (rf & 2) {
85279
86657
  const ctx_r0 = \u0275\u0275nextContext();
85280
- const directorsArray_r13 = \u0275\u0275readContextLet(10);
85281
- const isOpenDirectors_r14 = \u0275\u0275readContextLet(11);
85282
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("isValid", true)("areItemsOpen", isOpenDirectors_r14)("isStatusIcon", false)("fields", ctx_r0.directorsFields)("formArray", directorsArray_r13)("title", ctx_r0.groups.Directors);
86658
+ const directorsArray_r15 = \u0275\u0275readContextLet(12);
86659
+ const isOpenDirectors_r16 = \u0275\u0275readContextLet(13);
86660
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("isValid", true)("areItemsOpen", isOpenDirectors_r16)("isStatusIcon", false)("fields", ctx_r0.directorsFields)("formArray", directorsArray_r15)("title", ctx_r0.groups.Directors);
85283
86661
  }
85284
86662
  }
85285
- function BritishColumbiaIncorporationFormComponent_Conditional_13_Template(rf, ctx) {
86663
+ function BritishColumbiaIncorporationFormComponent_Conditional_15_Template(rf, ctx) {
85286
86664
  if (rf & 1) {
85287
86665
  \u0275\u0275elementStart(0, "expandable-card", 4)(1, "h2", 21);
85288
86666
  \u0275\u0275text(2);
@@ -85296,7 +86674,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85296
86674
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(3, 2, "Unchanged"));
85297
86675
  }
85298
86676
  }
85299
- function BritishColumbiaIncorporationFormComponent_Conditional_15_Conditional_1_For_21_Template(rf, ctx) {
86677
+ function BritishColumbiaIncorporationFormComponent_Conditional_17_Conditional_1_For_21_Template(rf, ctx) {
85300
86678
  if (rf & 1) {
85301
86679
  \u0275\u0275elementStart(0, "tr", 21)(1, "th", 27);
85302
86680
  \u0275\u0275text(2);
@@ -85318,22 +86696,22 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85318
86696
  \u0275\u0275elementEnd()();
85319
86697
  }
85320
86698
  if (rf & 2) {
85321
- let tmp_24_0;
85322
- const row_r15 = ctx.$implicit;
85323
- \u0275\u0275classProp("series", row_r15.isSeries);
86699
+ let tmp_25_0;
86700
+ const row_r17 = ctx.$implicit;
86701
+ \u0275\u0275classProp("series", row_r17.isSeries);
85324
86702
  \u0275\u0275advance(2);
85325
- \u0275\u0275textInterpolate(row_r15.name);
86703
+ \u0275\u0275textInterpolate(row_r17.name);
85326
86704
  \u0275\u0275advance(2);
85327
- \u0275\u0275textInterpolate1(" ", row_r15.maximumShares === null ? \u0275\u0275pipeBind1(5, 7, "Unlimited") : row_r15.maximumShares || "\u2014", " ");
86705
+ \u0275\u0275textInterpolate1(" ", row_r17.maximumShares === null ? \u0275\u0275pipeBind1(5, 7, "Unlimited") : row_r17.maximumShares || "\u2014", " ");
85328
86706
  \u0275\u0275advance(3);
85329
- \u0275\u0275textInterpolate((tmp_24_0 = row_r15.parValue) !== null && tmp_24_0 !== void 0 ? tmp_24_0 : \u0275\u0275pipeBind1(8, 9, "Without Par Value"));
86707
+ \u0275\u0275textInterpolate((tmp_25_0 = row_r17.parValue) !== null && tmp_25_0 !== void 0 ? tmp_25_0 : \u0275\u0275pipeBind1(8, 9, "Without Par Value"));
85330
86708
  \u0275\u0275advance(3);
85331
- \u0275\u0275textInterpolate(row_r15.currency || "\u2014");
86709
+ \u0275\u0275textInterpolate(row_r17.currency || "\u2014");
85332
86710
  \u0275\u0275advance(2);
85333
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(13, 11, row_r15.hasSpecialRights ? "Yes" : "No"));
86711
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(13, 11, row_r17.hasSpecialRights ? "Yes" : "No"));
85334
86712
  }
85335
86713
  }
85336
- function BritishColumbiaIncorporationFormComponent_Conditional_15_Conditional_1_Template(rf, ctx) {
86714
+ function BritishColumbiaIncorporationFormComponent_Conditional_17_Conditional_1_Template(rf, ctx) {
85337
86715
  if (rf & 1) {
85338
86716
  \u0275\u0275elementStart(0, "div", 22)(1, "table", 23)(2, "thead")(3, "tr", 18)(4, "th", 24);
85339
86717
  \u0275\u0275text(5);
@@ -85356,7 +86734,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85356
86734
  \u0275\u0275pipe(18, "translate");
85357
86735
  \u0275\u0275elementEnd()()();
85358
86736
  \u0275\u0275elementStart(19, "tbody");
85359
- \u0275\u0275repeaterCreate(20, BritishColumbiaIncorporationFormComponent_Conditional_15_Conditional_1_For_21_Template, 14, 13, "tr", 26, _forTrack04);
86737
+ \u0275\u0275repeaterCreate(20, BritishColumbiaIncorporationFormComponent_Conditional_17_Conditional_1_For_21_Template, 14, 13, "tr", 26, _forTrack04);
85360
86738
  \u0275\u0275elementEnd()()();
85361
86739
  }
85362
86740
  if (rf & 2) {
@@ -85375,7 +86753,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85375
86753
  \u0275\u0275repeater(ctx_r0.shareRows());
85376
86754
  }
85377
86755
  }
85378
- function BritishColumbiaIncorporationFormComponent_Conditional_15_Conditional_2_Template(rf, ctx) {
86756
+ function BritishColumbiaIncorporationFormComponent_Conditional_17_Conditional_2_Template(rf, ctx) {
85379
86757
  if (rf & 1) {
85380
86758
  \u0275\u0275elementStart(0, "p", 21);
85381
86759
  \u0275\u0275text(1);
@@ -85387,10 +86765,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85387
86765
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2, 1, "None"));
85388
86766
  }
85389
86767
  }
85390
- function BritishColumbiaIncorporationFormComponent_Conditional_15_Template(rf, ctx) {
86768
+ function BritishColumbiaIncorporationFormComponent_Conditional_17_Template(rf, ctx) {
85391
86769
  if (rf & 1) {
85392
86770
  \u0275\u0275elementStart(0, "expandable-card", 6);
85393
- \u0275\u0275template(1, BritishColumbiaIncorporationFormComponent_Conditional_15_Conditional_1_Template, 22, 15, "div", 22)(2, BritishColumbiaIncorporationFormComponent_Conditional_15_Conditional_2_Template, 3, 3, "p", 21);
86771
+ \u0275\u0275template(1, BritishColumbiaIncorporationFormComponent_Conditional_17_Conditional_1_Template, 22, 15, "div", 22)(2, BritishColumbiaIncorporationFormComponent_Conditional_17_Conditional_2_Template, 3, 3, "p", 21);
85394
86772
  \u0275\u0275elementEnd();
85395
86773
  }
85396
86774
  if (rf & 2) {
@@ -85400,18 +86778,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85400
86778
  \u0275\u0275conditional(ctx_r0.shareRows().length ? 1 : 2);
85401
86779
  }
85402
86780
  }
85403
- function BritishColumbiaIncorporationFormComponent_Conditional_18_Template(rf, ctx) {
86781
+ function BritishColumbiaIncorporationFormComponent_Conditional_20_Template(rf, ctx) {
85404
86782
  if (rf & 1) {
85405
86783
  \u0275\u0275element(0, "expandable-list-card", 7);
85406
86784
  }
85407
86785
  if (rf & 2) {
85408
86786
  const ctx_r0 = \u0275\u0275nextContext();
85409
- const incorporatorsArray_r16 = \u0275\u0275readContextLet(16);
85410
- const isOpenIncorporators_r17 = \u0275\u0275readContextLet(17);
85411
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("isValid", true)("areItemsOpen", isOpenIncorporators_r17)("isStatusIcon", false)("fields", ctx_r0.incorporatorsFields)("formArray", incorporatorsArray_r16)("title", ctx_r0.groups.Incorporators);
86787
+ const incorporatorsArray_r18 = \u0275\u0275readContextLet(18);
86788
+ const isOpenIncorporators_r19 = \u0275\u0275readContextLet(19);
86789
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("isValid", true)("areItemsOpen", isOpenIncorporators_r19)("isStatusIcon", false)("fields", ctx_r0.incorporatorsFields)("formArray", incorporatorsArray_r18)("title", ctx_r0.groups.Incorporators);
85412
86790
  }
85413
86791
  }
85414
- function BritishColumbiaIncorporationFormComponent_Conditional_19_Template(rf, ctx) {
86792
+ function BritishColumbiaIncorporationFormComponent_Conditional_21_Template(rf, ctx) {
85415
86793
  if (rf & 1) {
85416
86794
  \u0275\u0275elementStart(0, "expandable-card", 4)(1, "h2", 21);
85417
86795
  \u0275\u0275text(2);
@@ -85425,12 +86803,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85425
86803
  \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(3, 2, "Unchanged"));
85426
86804
  }
85427
86805
  }
85428
- function BritishColumbiaIncorporationFormComponent_Conditional_21_Template(rf, ctx) {
86806
+ function BritishColumbiaIncorporationFormComponent_Conditional_23_Template(rf, ctx) {
85429
86807
  if (rf & 1) {
85430
- const _r18 = \u0275\u0275getCurrentView();
86808
+ const _r20 = \u0275\u0275getCurrentView();
85431
86809
  \u0275\u0275elementStart(0, "expandable-card", 5)(1, "div", 8)(2, "filing-form-group", 9);
85432
- \u0275\u0275listener("visiblyValidChange", function BritishColumbiaIncorporationFormComponent_Conditional_21_Template_filing_form_group_visiblyValidChange_2_listener($event) {
85433
- \u0275\u0275restoreView(_r18);
86810
+ \u0275\u0275listener("visiblyValidChange", function BritishColumbiaIncorporationFormComponent_Conditional_23_Template_filing_form_group_visiblyValidChange_2_listener($event) {
86811
+ \u0275\u0275restoreView(_r20);
85434
86812
  const ctx_r0 = \u0275\u0275nextContext();
85435
86813
  return \u0275\u0275resetView(ctx_r0.onSectionValidChange("completingParty", $event));
85436
86814
  });
@@ -85438,10 +86816,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85438
86816
  }
85439
86817
  if (rf & 2) {
85440
86818
  const ctx_r0 = \u0275\u0275nextContext();
85441
- const completingParty_r19 = \u0275\u0275readContextLet(20);
86819
+ const completingParty_r21 = \u0275\u0275readContextLet(22);
85442
86820
  \u0275\u0275property("isValid", ctx_r0.sectionValidity["completingParty"])("isStatusIcon", ctx_r0.statusIcon())("title", ctx_r0.groups.CompletingParty);
85443
86821
  \u0275\u0275advance(2);
85444
- \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", completingParty_r19)("config", ctx_r0.completingPartyFields);
86822
+ \u0275\u0275property("isSubmitted", ctx_r0.isSubmitted())("form", completingParty_r21)("config", ctx_r0.completingPartyFields);
85445
86823
  }
85446
86824
  }
85447
86825
  var _forTrack04, BritishColumbiaIncorporationFormComponent;
@@ -85479,6 +86857,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85479
86857
  nameTranslationRowFields = BC_FORMATION_DELTA_CARD_FORM_NAME_TRANSLATION_ROW_FIELDS;
85480
86858
  registeredOfficeFields = BC_FORMATION_CARD_FORM_REGISTERED_OFFICE_FIELDS;
85481
86859
  recordsOfficeFields = BC_FORMATION_CARD_FORM_RECORDS_OFFICE_FIELDS;
86860
+ notificationFields = BC_FORMATION_DELTA_CARD_FORM_NOTIFICATION_FIELDS;
85482
86861
  directorsFields = BC_FORMATION_CARD_FORM_DIRECTORS_FIELDS;
85483
86862
  /** Shares and Provisions table rows – same records and order as the eCore payload. */
85484
86863
  shareRows = computed(() => BritishColumbiaFormationFormHelper.buildShareStructureRows(this.task()?.entity.shareclasses));
@@ -85535,7 +86914,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85535
86914
  static \u0275fac = function BritishColumbiaIncorporationFormComponent_Factory(__ngFactoryType__) {
85536
86915
  return new (__ngFactoryType__ || _BritishColumbiaIncorporationFormComponent)();
85537
86916
  };
85538
- static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaIncorporationFormComponent, selectors: [["british-columbia-incorporation-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], statusIcon: [1, "statusIcon"], isSubmitted: [1, "isSubmitted"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 22, vars: 17, consts: [[1, "incorporation-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "incorporation-form-content"], [3, "title"], [3, "isValid", "isStatusIcon", "title"], [3, "isStatusIcon", "title"], [3, "isSubmitted", "isValid", "areItemsOpen", "isStatusIcon", "fields", "formArray", "title"], [1, "incorporation-form-item"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "incorporation-form-item-title"], [1, "incorporation-form-translations"], [1, "incorporation-form-translations-row"], ["role", "alert", 1, "incorporation-form-translations-error", "body-1-regular"], [1, "incorporation-form-translations-actions"], [1, "incorporation-form-translations-row-field", 3, "visiblyValidChange", "isSubmitted", "form", "config"], ["mat-button", "", "type", "button"], ["mat-button", "", "type", "button", 3, "click"], [1, "body-1-semibold"], ["mat-stroked-button", "", "type", "button", 3, "click"], [3, "isSubmitted", "form", "config"], [1, "body-1-regular"], [1, "incorporation-form-shares"], [1, "incorporation-form-shares-table"], ["scope", "col"], ["scope", "col", 1, "numeric"], [1, "body-1-regular", 3, "series"], ["scope", "row", 1, "body-1-semibold"], [1, "numeric"]], template: function BritishColumbiaIncorporationFormComponent_Template(rf, ctx) {
86917
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaIncorporationFormComponent, selectors: [["british-columbia-incorporation-form"]], inputs: { form: [1, "form"], task: [1, "task"], errors: [1, "errors"], isNote: [1, "isNote"], statusIcon: [1, "statusIcon"], isSubmitted: [1, "isSubmitted"] }, outputs: { visiblyValidChange: "visiblyValidChange" }, decls: 24, vars: 19, consts: [[1, "incorporation-form"], ["title", "Entity changed", "content", "A new draft needs to be generated as the Entity was changed since the last draft was produced.", 3, "type"], ["title", "The following issues need to be resolved before proceeding:", 3, "content"], [1, "incorporation-form-content"], [3, "title"], [3, "isValid", "isStatusIcon", "title"], [3, "isStatusIcon", "title"], [3, "isSubmitted", "isValid", "areItemsOpen", "isStatusIcon", "fields", "formArray", "title"], [1, "incorporation-form-item"], [3, "visiblyValidChange", "isSubmitted", "form", "config"], [1, "incorporation-form-item-title"], [1, "incorporation-form-translations"], [1, "incorporation-form-translations-row"], ["role", "alert", 1, "incorporation-form-translations-error", "body-1-regular"], [1, "incorporation-form-translations-actions"], [1, "incorporation-form-translations-row-field", 3, "visiblyValidChange", "isSubmitted", "form", "config"], ["mat-button", "", "type", "button"], ["mat-button", "", "type", "button", 3, "click"], [1, "body-1-semibold"], ["mat-stroked-button", "", "type", "button", 3, "click"], [3, "isSubmitted", "form", "config"], [1, "body-1-regular"], [1, "incorporation-form-shares"], [1, "incorporation-form-shares-table"], ["scope", "col"], ["scope", "col", 1, "numeric"], [1, "body-1-regular", 3, "series"], ["scope", "row", 1, "body-1-semibold"], [1, "numeric"]], template: function BritishColumbiaIncorporationFormComponent_Template(rf, ctx) {
85539
86918
  if (rf & 1) {
85540
86919
  \u0275\u0275elementStart(0, "div", 0);
85541
86920
  \u0275\u0275template(1, BritishColumbiaIncorporationFormComponent_Conditional_1_Template, 1, 1, "alert", 1)(2, BritishColumbiaIncorporationFormComponent_Conditional_2_Template, 1, 1, "alert", 2);
@@ -85546,54 +86925,60 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85546
86925
  \u0275\u0275template(7, BritishColumbiaIncorporationFormComponent_Conditional_7_Template, 8, 13, "expandable-card", 5);
85547
86926
  \u0275\u0275declareLet(8);
85548
86927
  \u0275\u0275template(9, BritishColumbiaIncorporationFormComponent_Conditional_9_Template, 7, 11, "expandable-card", 6);
85549
- \u0275\u0275declareLet(10)(11);
85550
- \u0275\u0275template(12, BritishColumbiaIncorporationFormComponent_Conditional_12_Template, 1, 7, "expandable-list-card", 7)(13, BritishColumbiaIncorporationFormComponent_Conditional_13_Template, 4, 4, "expandable-card", 4);
85551
- \u0275\u0275declareLet(14);
85552
- \u0275\u0275template(15, BritishColumbiaIncorporationFormComponent_Conditional_15_Template, 3, 3, "expandable-card", 6);
85553
- \u0275\u0275declareLet(16)(17);
85554
- \u0275\u0275template(18, BritishColumbiaIncorporationFormComponent_Conditional_18_Template, 1, 7, "expandable-list-card", 7)(19, BritishColumbiaIncorporationFormComponent_Conditional_19_Template, 4, 4, "expandable-card", 4);
85555
- \u0275\u0275declareLet(20);
85556
- \u0275\u0275template(21, BritishColumbiaIncorporationFormComponent_Conditional_21_Template, 3, 6, "expandable-card", 5);
86928
+ \u0275\u0275declareLet(10);
86929
+ \u0275\u0275template(11, BritishColumbiaIncorporationFormComponent_Conditional_11_Template, 3, 6, "expandable-card", 5);
86930
+ \u0275\u0275declareLet(12)(13);
86931
+ \u0275\u0275template(14, BritishColumbiaIncorporationFormComponent_Conditional_14_Template, 1, 7, "expandable-list-card", 7)(15, BritishColumbiaIncorporationFormComponent_Conditional_15_Template, 4, 4, "expandable-card", 4);
86932
+ \u0275\u0275declareLet(16);
86933
+ \u0275\u0275template(17, BritishColumbiaIncorporationFormComponent_Conditional_17_Template, 3, 3, "expandable-card", 6);
86934
+ \u0275\u0275declareLet(18)(19);
86935
+ \u0275\u0275template(20, BritishColumbiaIncorporationFormComponent_Conditional_20_Template, 1, 7, "expandable-list-card", 7)(21, BritishColumbiaIncorporationFormComponent_Conditional_21_Template, 4, 4, "expandable-card", 4);
86936
+ \u0275\u0275declareLet(22);
86937
+ \u0275\u0275template(23, BritishColumbiaIncorporationFormComponent_Conditional_23_Template, 3, 6, "expandable-card", 5);
85557
86938
  \u0275\u0275elementEnd()();
85558
86939
  }
85559
86940
  if (rf & 2) {
85560
- let tmp_9_0;
85561
- let tmp_14_0;
86941
+ let tmp_11_0;
86942
+ let tmp_16_0;
85562
86943
  \u0275\u0275advance();
85563
86944
  \u0275\u0275conditional(ctx.isNote() ? 1 : -1);
85564
86945
  \u0275\u0275advance();
85565
86946
  \u0275\u0275conditional(ctx.errors().length ? 2 : -1);
85566
86947
  \u0275\u0275advance(2);
85567
- const referenceNumbers_r20 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
86948
+ const referenceNumbers_r22 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.ReferenceNumbers));
85568
86949
  \u0275\u0275advance();
85569
- \u0275\u0275conditional(referenceNumbers_r20 ? 5 : -1);
86950
+ \u0275\u0275conditional(referenceNumbers_r22 ? 5 : -1);
85570
86951
  \u0275\u0275advance();
85571
- const corporationDetails_r21 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
86952
+ const corporationDetails_r23 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CorporationDetails));
85572
86953
  \u0275\u0275advance();
85573
- \u0275\u0275conditional(corporationDetails_r21 ? 7 : -1);
86954
+ \u0275\u0275conditional(corporationDetails_r23 ? 7 : -1);
85574
86955
  \u0275\u0275advance();
85575
- const registeredOfficeForm_r22 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress));
86956
+ const registeredOfficeForm_r24 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.RegisteredOfficeAddress));
85576
86957
  \u0275\u0275advance();
85577
- \u0275\u0275conditional(registeredOfficeForm_r22 ? 9 : -1);
86958
+ \u0275\u0275conditional(registeredOfficeForm_r24 ? 9 : -1);
85578
86959
  \u0275\u0275advance();
85579
- const directorsArray_r23 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
86960
+ const notification_r25 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.Notification));
85580
86961
  \u0275\u0275advance();
85581
- \u0275\u0275storeLet(((tmp_9_0 = directorsArray_r23 == null ? null : directorsArray_r23.length) !== null && tmp_9_0 !== void 0 ? tmp_9_0 : 0) <= ctx.initiallyOpenCardsCount);
86962
+ \u0275\u0275conditional(notification_r25 ? 11 : -1);
85582
86963
  \u0275\u0275advance();
85583
- \u0275\u0275conditional(directorsArray_r23 && directorsArray_r23.length ? 12 : 13);
85584
- const sharesAndProvisions_r24 = ctx.getFormGroup(ctx.groups.SharesAndProvisions);
86964
+ const directorsArray_r26 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Directors));
86965
+ \u0275\u0275advance();
86966
+ \u0275\u0275storeLet(((tmp_11_0 = directorsArray_r26 == null ? null : directorsArray_r26.length) !== null && tmp_11_0 !== void 0 ? tmp_11_0 : 0) <= ctx.initiallyOpenCardsCount);
86967
+ \u0275\u0275advance();
86968
+ \u0275\u0275conditional(directorsArray_r26 && directorsArray_r26.length ? 14 : 15);
86969
+ const sharesAndProvisions_r27 = ctx.getFormGroup(ctx.groups.SharesAndProvisions);
85585
86970
  \u0275\u0275advance(3);
85586
- \u0275\u0275conditional(sharesAndProvisions_r24 ? 15 : -1);
86971
+ \u0275\u0275conditional(sharesAndProvisions_r27 ? 17 : -1);
85587
86972
  \u0275\u0275advance();
85588
- const incorporatorsArray_r25 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Incorporators));
86973
+ const incorporatorsArray_r28 = \u0275\u0275storeLet(ctx.getFormArray(ctx.groups.Incorporators));
85589
86974
  \u0275\u0275advance();
85590
- \u0275\u0275storeLet(((tmp_14_0 = incorporatorsArray_r25 == null ? null : incorporatorsArray_r25.length) !== null && tmp_14_0 !== void 0 ? tmp_14_0 : 0) <= ctx.initiallyOpenCardsCount);
86975
+ \u0275\u0275storeLet(((tmp_16_0 = incorporatorsArray_r28 == null ? null : incorporatorsArray_r28.length) !== null && tmp_16_0 !== void 0 ? tmp_16_0 : 0) <= ctx.initiallyOpenCardsCount);
85591
86976
  \u0275\u0275advance();
85592
- \u0275\u0275conditional(incorporatorsArray_r25 && incorporatorsArray_r25.length ? 18 : 19);
86977
+ \u0275\u0275conditional(incorporatorsArray_r28 && incorporatorsArray_r28.length ? 20 : 21);
85593
86978
  \u0275\u0275advance(2);
85594
- const completingParty_r26 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CompletingParty));
86979
+ const completingParty_r29 = \u0275\u0275storeLet(ctx.getFormGroup(ctx.groups.CompletingParty));
85595
86980
  \u0275\u0275advance();
85596
- \u0275\u0275conditional(completingParty_r26 ? 21 : -1);
86981
+ \u0275\u0275conditional(completingParty_r29 ? 23 : -1);
85597
86982
  }
85598
86983
  }, dependencies: [
85599
86984
  ExpandableCardComponent,
@@ -85748,6 +87133,25 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85748
87133
  </div>\r
85749
87134
  </expandable-card>\r
85750
87135
  }\r
87136
+ \r
87137
+ @let notification = getFormGroup(groups.Notification);\r
87138
+ \r
87139
+ @if (notification) {\r
87140
+ <expandable-card\r
87141
+ [isValid]="sectionValidity['notification']"\r
87142
+ [isStatusIcon]="statusIcon()"\r
87143
+ [title]="groups.Notification"\r
87144
+ >\r
87145
+ <div class="incorporation-form-item">\r
87146
+ <filing-form-group\r
87147
+ [isSubmitted]="isSubmitted()"\r
87148
+ [form]="notification"\r
87149
+ [config]="notificationFields"\r
87150
+ (visiblyValidChange)="onSectionValidChange('notification', $event)"\r
87151
+ />\r
87152
+ </div>\r
87153
+ </expandable-card>\r
87154
+ }\r
85751
87155
  \r
85752
87156
  @let directorsArray = getFormArray(groups.Directors);\r
85753
87157
  @let isOpenDirectors =\r
@@ -85853,7 +87257,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
85853
87257
  }], null, null);
85854
87258
  })();
85855
87259
  (() => {
85856
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaIncorporationFormComponent, { className: "BritishColumbiaIncorporationFormComponent", filePath: "src/app/components/british-columbia/incorporation/british-columbia-incorporation-form/british-columbia-incorporation-form.component.ts", lineNumber: 56 });
87260
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaIncorporationFormComponent, { className: "BritishColumbiaIncorporationFormComponent", filePath: "src/app/components/british-columbia/incorporation/british-columbia-incorporation-form/british-columbia-incorporation-form.component.ts", lineNumber: 57 });
85857
87261
  })();
85858
87262
  }
85859
87263
  });
@@ -86007,14 +87411,13 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86007
87411
  form = input.required();
86008
87412
  actionsDisabled = input(false);
86009
87413
  task = input();
86010
- errors = input([]);
86011
87414
  close = output();
86012
87415
  next = output();
86013
87416
  formGroups = BCFormationFormGroups;
86014
87417
  static \u0275fac = function BritishColumbiaIncorporationPreviewFormComponent_Factory(__ngFactoryType__) {
86015
87418
  return new (__ngFactoryType__ || _BritishColumbiaIncorporationPreviewFormComponent)();
86016
87419
  };
86017
- static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaIncorporationPreviewFormComponent, selectors: [["british-columbia-incorporation-preview-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], task: [1, "task"], errors: [1, "errors"] }, outputs: { close: "close", next: "next" }, decls: 11, vars: 12, consts: [[1, "incorporation-preview-form"], [1, "incorporation-preview-form-content", 3, "form", "task", "errors", "statusIcon"], [1, "incorporation-preview-form-actions"], ["mat-stroked-button", "", "mat-button", "", 3, "click", "disabled"], [1, "body-1-semibold"], ["color", "primary", "mat-flat-button", "", 1, "submit", 3, "click", "disabled"]], template: function BritishColumbiaIncorporationPreviewFormComponent_Template(rf, ctx) {
87420
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaIncorporationPreviewFormComponent, selectors: [["british-columbia-incorporation-preview-form"]], inputs: { form: [1, "form"], actionsDisabled: [1, "actionsDisabled"], task: [1, "task"] }, outputs: { close: "close", next: "next" }, decls: 11, vars: 11, consts: [[1, "incorporation-preview-form"], [1, "incorporation-preview-form-content", 3, "form", "task", "statusIcon"], [1, "incorporation-preview-form-actions"], ["mat-stroked-button", "", "mat-button", "", 3, "click", "disabled"], [1, "body-1-semibold"], ["color", "primary", "mat-flat-button", "", 1, "submit", 3, "click", "disabled"]], template: function BritishColumbiaIncorporationPreviewFormComponent_Template(rf, ctx) {
86018
87421
  if (rf & 1) {
86019
87422
  \u0275\u0275elementStart(0, "div", 0);
86020
87423
  \u0275\u0275element(1, "british-columbia-incorporation-form", 1);
@@ -86037,15 +87440,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86037
87440
  }
86038
87441
  if (rf & 2) {
86039
87442
  \u0275\u0275advance();
86040
- \u0275\u0275property("form", ctx.form())("task", ctx.task())("errors", ctx.errors())("statusIcon", false);
87443
+ \u0275\u0275property("form", ctx.form())("task", ctx.task())("statusIcon", false);
86041
87444
  \u0275\u0275advance(2);
86042
87445
  \u0275\u0275property("disabled", ctx.actionsDisabled());
86043
87446
  \u0275\u0275advance(2);
86044
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 8, "Close"));
87447
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6, 7, "Close"));
86045
87448
  \u0275\u0275advance(2);
86046
87449
  \u0275\u0275property("disabled", ctx.actionsDisabled());
86047
87450
  \u0275\u0275advance(2);
86048
- \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 10, "File"));
87451
+ \u0275\u0275textInterpolate(\u0275\u0275pipeBind1(10, 9, "File"));
86049
87452
  }
86050
87453
  }, dependencies: [MatButton, TranslatePipe, BritishColumbiaIncorporationFormComponent], styles: ["\n\n[_nghost-%COMP%] .incorporation-preview-form[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .incorporation-preview-form-content[_ngcontent-%COMP%] {\n display: flex;\n flex-direction: column;\n gap: 16px;\n height: 100%;\n}\n[_nghost-%COMP%] .incorporation-preview-form-actions[_ngcontent-%COMP%] {\n display: flex;\n justify-content: flex-end;\n align-items: center;\n gap: 8px;\n padding-top: 16px;\n}\n[_nghost-%COMP%] .incorporation-preview-form-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] {\n margin: 0;\n}\n/*# sourceMappingURL=british-columbia-incorporation-preview-form.component.css.map */"], changeDetection: 0 });
86051
87454
  };
@@ -86057,7 +87460,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86057
87460
  class="incorporation-preview-form-content"\r
86058
87461
  [form]="form()"\r
86059
87462
  [task]="task()"\r
86060
- [errors]="errors()"\r
86061
87463
  [statusIcon]="false"\r
86062
87464
  />\r
86063
87465
  \r
@@ -86089,58 +87491,167 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86089
87491
  function BritishColumbiaComponent_Conditional_1_Conditional_0_Template(rf, ctx) {
86090
87492
  if (rf & 1) {
86091
87493
  const _r1 = \u0275\u0275getCurrentView();
86092
- \u0275\u0275elementStart(0, "british-columbia-incorporation-delta-form", 2);
86093
- \u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_1_Conditional_0_Template_british_columbia_incorporation_delta_form_validate_0_listener() {
87494
+ \u0275\u0275elementStart(0, "british-columbia-change-of-directors-delta-form", 3);
87495
+ \u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_1_Conditional_0_Template_british_columbia_change_of_directors_delta_form_validate_0_listener() {
86094
87496
  \u0275\u0275restoreView(_r1);
86095
87497
  const ctx_r1 = \u0275\u0275nextContext(2);
86096
- return \u0275\u0275resetView(ctx_r1.onFormationValidate());
86097
- })("close", function BritishColumbiaComponent_Conditional_1_Conditional_0_Template_british_columbia_incorporation_delta_form_close_0_listener() {
87498
+ return \u0275\u0275resetView(ctx_r1.onChangeOfDirectorsValidate());
87499
+ })("close", function BritishColumbiaComponent_Conditional_1_Conditional_0_Template_british_columbia_change_of_directors_delta_form_close_0_listener() {
86098
87500
  \u0275\u0275restoreView(_r1);
86099
87501
  const ctx_r1 = \u0275\u0275nextContext(2);
86100
87502
  return \u0275\u0275resetView(ctx_r1.onClose());
86101
- })("save", function BritishColumbiaComponent_Conditional_1_Conditional_0_Template_british_columbia_incorporation_delta_form_save_0_listener() {
87503
+ })("save", function BritishColumbiaComponent_Conditional_1_Conditional_0_Template_british_columbia_change_of_directors_delta_form_save_0_listener() {
86102
87504
  \u0275\u0275restoreView(_r1);
86103
87505
  const ctx_r1 = \u0275\u0275nextContext(2);
86104
- return \u0275\u0275resetView(ctx_r1.onFormationSave());
87506
+ return \u0275\u0275resetView(ctx_r1.onChangeOfDirectorsSave());
86105
87507
  });
86106
87508
  \u0275\u0275elementEnd();
86107
87509
  }
86108
87510
  if (rf & 2) {
86109
87511
  const ctx_r1 = \u0275\u0275nextContext(2);
86110
87512
  const taskData_r3 = \u0275\u0275readContextLet(0);
86111
- \u0275\u0275property("task", taskData_r3)("errors", ctx_r1.errors())("isNote", ctx_r1.isNote())("actionsDisabled", ctx_r1.actionsDisabled())("form", ctx_r1.deltaForm());
87513
+ \u0275\u0275property("task", taskData_r3)("form", ctx_r1.deltaForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors())("isNote", ctx_r1.isNote());
86112
87514
  }
86113
87515
  }
86114
87516
  function BritishColumbiaComponent_Conditional_1_Conditional_1_Template(rf, ctx) {
86115
87517
  if (rf & 1) {
86116
87518
  const _r4 = \u0275\u0275getCurrentView();
86117
- \u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form", 3);
86118
- \u0275\u0275listener("next", function BritishColumbiaComponent_Conditional_1_Conditional_1_Template_british_columbia_incorporation_preview_form_next_0_listener() {
87519
+ \u0275\u0275elementStart(0, "british-columbia-change-of-directors-preview-form", 4);
87520
+ \u0275\u0275listener("close", function BritishColumbiaComponent_Conditional_1_Conditional_1_Template_british_columbia_change_of_directors_preview_form_close_0_listener() {
86119
87521
  \u0275\u0275restoreView(_r4);
86120
87522
  const ctx_r1 = \u0275\u0275nextContext(2);
86121
- return \u0275\u0275resetView(ctx_r1.onFormationSubmit());
86122
- })("close", function BritishColumbiaComponent_Conditional_1_Conditional_1_Template_british_columbia_incorporation_preview_form_close_0_listener() {
87523
+ return \u0275\u0275resetView(ctx_r1.close.emit());
87524
+ })("file", function BritishColumbiaComponent_Conditional_1_Conditional_1_Template_british_columbia_change_of_directors_preview_form_file_0_listener() {
86123
87525
  \u0275\u0275restoreView(_r4);
86124
87526
  const ctx_r1 = \u0275\u0275nextContext(2);
86125
- return \u0275\u0275resetView(ctx_r1.close.emit());
87527
+ return \u0275\u0275resetView(ctx_r1.nextStep.emit());
86126
87528
  });
86127
87529
  \u0275\u0275elementEnd();
86128
87530
  }
86129
87531
  if (rf & 2) {
86130
87532
  const ctx_r1 = \u0275\u0275nextContext(2);
86131
87533
  const taskData_r3 = \u0275\u0275readContextLet(0);
86132
- \u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("errors", ctx_r1.errors())("actionsDisabled", ctx_r1.actionsDisabled());
87534
+ \u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("actionsDisabled", ctx_r1.actionsDisabled())("errors", ctx_r1.errors());
87535
+ }
87536
+ }
87537
+ function BritishColumbiaComponent_Conditional_1_Conditional_2_Template(rf, ctx) {
87538
+ if (rf & 1) {
87539
+ const _r5 = \u0275\u0275getCurrentView();
87540
+ \u0275\u0275elementStart(0, "terms-and-conditions", 5);
87541
+ \u0275\u0275listener("prev", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_prev_0_listener() {
87542
+ \u0275\u0275restoreView(_r5);
87543
+ const ctx_r1 = \u0275\u0275nextContext(2);
87544
+ return \u0275\u0275resetView(ctx_r1.prevStep.emit());
87545
+ })("close", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_close_0_listener() {
87546
+ \u0275\u0275restoreView(_r5);
87547
+ const ctx_r1 = \u0275\u0275nextContext(2);
87548
+ return \u0275\u0275resetView(ctx_r1.close.emit());
87549
+ })("confirm", function BritishColumbiaComponent_Conditional_1_Conditional_2_Template_terms_and_conditions_confirm_0_listener($event) {
87550
+ \u0275\u0275restoreView(_r5);
87551
+ const ctx_r1 = \u0275\u0275nextContext(2);
87552
+ return \u0275\u0275resetView(ctx_r1.onChangeOfDirectorsSubmit($event));
87553
+ });
87554
+ \u0275\u0275elementEnd();
87555
+ }
87556
+ if (rf & 2) {
87557
+ const ctx_r1 = \u0275\u0275nextContext(2);
87558
+ \u0275\u0275property("errors", ctx_r1.errors());
86133
87559
  }
86134
87560
  }
86135
87561
  function BritishColumbiaComponent_Conditional_1_Template(rf, ctx) {
86136
87562
  if (rf & 1) {
86137
- \u0275\u0275template(0, BritishColumbiaComponent_Conditional_1_Conditional_0_Template, 1, 5, "british-columbia-incorporation-delta-form", 0)(1, BritishColumbiaComponent_Conditional_1_Conditional_1_Template, 1, 4, "british-columbia-incorporation-preview-form", 1);
87563
+ \u0275\u0275template(0, BritishColumbiaComponent_Conditional_1_Conditional_0_Template, 1, 5, "british-columbia-change-of-directors-delta-form", 0)(1, BritishColumbiaComponent_Conditional_1_Conditional_1_Template, 1, 4, "british-columbia-change-of-directors-preview-form", 1)(2, BritishColumbiaComponent_Conditional_1_Conditional_2_Template, 1, 1, "terms-and-conditions", 2);
86138
87564
  }
86139
87565
  if (rf & 2) {
86140
87566
  const ctx_r1 = \u0275\u0275nextContext();
86141
87567
  \u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.Validate ? 0 : -1);
86142
87568
  \u0275\u0275advance();
86143
87569
  \u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.FilingPreview ? 1 : -1);
87570
+ \u0275\u0275advance();
87571
+ \u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.TermsAndConditions ? 2 : -1);
87572
+ }
87573
+ }
87574
+ function BritishColumbiaComponent_Conditional_2_Conditional_0_Template(rf, ctx) {
87575
+ if (rf & 1) {
87576
+ const _r6 = \u0275\u0275getCurrentView();
87577
+ \u0275\u0275elementStart(0, "british-columbia-incorporation-delta-form", 8);
87578
+ \u0275\u0275listener("validate", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_validate_0_listener() {
87579
+ \u0275\u0275restoreView(_r6);
87580
+ const ctx_r1 = \u0275\u0275nextContext(2);
87581
+ return \u0275\u0275resetView(ctx_r1.onFormationValidate());
87582
+ })("close", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_close_0_listener() {
87583
+ \u0275\u0275restoreView(_r6);
87584
+ const ctx_r1 = \u0275\u0275nextContext(2);
87585
+ return \u0275\u0275resetView(ctx_r1.onClose());
87586
+ })("save", function BritishColumbiaComponent_Conditional_2_Conditional_0_Template_british_columbia_incorporation_delta_form_save_0_listener() {
87587
+ \u0275\u0275restoreView(_r6);
87588
+ const ctx_r1 = \u0275\u0275nextContext(2);
87589
+ return \u0275\u0275resetView(ctx_r1.onFormationSave());
87590
+ });
87591
+ \u0275\u0275elementEnd();
87592
+ }
87593
+ if (rf & 2) {
87594
+ const ctx_r1 = \u0275\u0275nextContext(2);
87595
+ const taskData_r3 = \u0275\u0275readContextLet(0);
87596
+ \u0275\u0275property("task", taskData_r3)("errors", ctx_r1.errors())("isNote", ctx_r1.isNote())("actionsDisabled", ctx_r1.actionsDisabled())("form", ctx_r1.deltaForm());
87597
+ }
87598
+ }
87599
+ function BritishColumbiaComponent_Conditional_2_Conditional_1_Template(rf, ctx) {
87600
+ if (rf & 1) {
87601
+ const _r7 = \u0275\u0275getCurrentView();
87602
+ \u0275\u0275elementStart(0, "british-columbia-incorporation-preview-form", 9);
87603
+ \u0275\u0275listener("next", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_next_0_listener() {
87604
+ \u0275\u0275restoreView(_r7);
87605
+ const ctx_r1 = \u0275\u0275nextContext(2);
87606
+ return \u0275\u0275resetView(ctx_r1.nextStep.emit());
87607
+ })("close", function BritishColumbiaComponent_Conditional_2_Conditional_1_Template_british_columbia_incorporation_preview_form_close_0_listener() {
87608
+ \u0275\u0275restoreView(_r7);
87609
+ const ctx_r1 = \u0275\u0275nextContext(2);
87610
+ return \u0275\u0275resetView(ctx_r1.close.emit());
87611
+ });
87612
+ \u0275\u0275elementEnd();
87613
+ }
87614
+ if (rf & 2) {
87615
+ const ctx_r1 = \u0275\u0275nextContext(2);
87616
+ const taskData_r3 = \u0275\u0275readContextLet(0);
87617
+ \u0275\u0275property("task", taskData_r3)("form", ctx_r1.previewForm())("actionsDisabled", ctx_r1.actionsDisabled());
87618
+ }
87619
+ }
87620
+ function BritishColumbiaComponent_Conditional_2_Conditional_2_Template(rf, ctx) {
87621
+ if (rf & 1) {
87622
+ const _r8 = \u0275\u0275getCurrentView();
87623
+ \u0275\u0275elementStart(0, "terms-and-conditions", 5);
87624
+ \u0275\u0275listener("prev", function BritishColumbiaComponent_Conditional_2_Conditional_2_Template_terms_and_conditions_prev_0_listener() {
87625
+ \u0275\u0275restoreView(_r8);
87626
+ const ctx_r1 = \u0275\u0275nextContext(2);
87627
+ return \u0275\u0275resetView(ctx_r1.prevStep.emit());
87628
+ })("close", function BritishColumbiaComponent_Conditional_2_Conditional_2_Template_terms_and_conditions_close_0_listener() {
87629
+ \u0275\u0275restoreView(_r8);
87630
+ const ctx_r1 = \u0275\u0275nextContext(2);
87631
+ return \u0275\u0275resetView(ctx_r1.close.emit());
87632
+ })("confirm", function BritishColumbiaComponent_Conditional_2_Conditional_2_Template_terms_and_conditions_confirm_0_listener($event) {
87633
+ \u0275\u0275restoreView(_r8);
87634
+ const ctx_r1 = \u0275\u0275nextContext(2);
87635
+ return \u0275\u0275resetView(ctx_r1.onFormationSubmit($event));
87636
+ });
87637
+ \u0275\u0275elementEnd();
87638
+ }
87639
+ if (rf & 2) {
87640
+ const ctx_r1 = \u0275\u0275nextContext(2);
87641
+ \u0275\u0275property("errors", ctx_r1.errors());
87642
+ }
87643
+ }
87644
+ function BritishColumbiaComponent_Conditional_2_Template(rf, ctx) {
87645
+ if (rf & 1) {
87646
+ \u0275\u0275template(0, BritishColumbiaComponent_Conditional_2_Conditional_0_Template, 1, 5, "british-columbia-incorporation-delta-form", 6)(1, BritishColumbiaComponent_Conditional_2_Conditional_1_Template, 1, 3, "british-columbia-incorporation-preview-form", 7)(2, BritishColumbiaComponent_Conditional_2_Conditional_2_Template, 1, 1, "terms-and-conditions", 2);
87647
+ }
87648
+ if (rf & 2) {
87649
+ const ctx_r1 = \u0275\u0275nextContext();
87650
+ \u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.Validate ? 0 : -1);
87651
+ \u0275\u0275advance();
87652
+ \u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.FilingPreview ? 1 : -1);
87653
+ \u0275\u0275advance();
87654
+ \u0275\u0275conditional(ctx_r1.activeStep() === ctx_r1.steps.TermsAndConditions ? 2 : -1);
86144
87655
  }
86145
87656
  }
86146
87657
  var BritishColumbiaComponent;
@@ -86151,11 +87662,16 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86151
87662
  init_dialog2();
86152
87663
  init_ngx_translate_core();
86153
87664
  init_app_enums();
87665
+ init_BritishColumbiaConstants();
86154
87666
  init_british_columbia_form_enums();
87667
+ init_british_columbia_change_of_directors_form_helper();
86155
87668
  init_british_columbia_formation_form_helper();
86156
87669
  init_delta_state_service();
86157
87670
  init_common_utils();
86158
87671
  init_confirm_modal_component();
87672
+ init_terms_and_conditions_component();
87673
+ init_change_of_directors_delta_form_component();
87674
+ init_change_of_directors_preview_form_component();
86159
87675
  init_british_columbia_incorporation_delta_form_component();
86160
87676
  init_british_columbia_incorporation_preview_form_component();
86161
87677
  init_core();
@@ -86167,20 +87683,29 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86167
87683
  actionsDisabled = input(false);
86168
87684
  errors = input([]);
86169
87685
  close = output();
87686
+ codValidate = output();
87687
+ saveCodDeltaData = output();
87688
+ codSubmit = output();
86170
87689
  formationValidate = output();
86171
87690
  formationSubmit = output();
86172
87691
  saveFormationDeltaData = output();
86173
87692
  nextStep = output();
87693
+ prevStep = output();
86174
87694
  dialog = inject(MatDialog);
86175
87695
  deltaState = inject(DeltaStateService);
86176
87696
  translate = inject(TranslateService);
86177
87697
  steps = Step;
87698
+ isChangeOfDirectorsTask = isChangeOfPrincipalsTask;
86178
87699
  isFormationTask = isFormationTask2;
86179
87700
  deltaForm = signal(new FormGroup({}));
86180
87701
  previewForm = signal(new FormGroup({}));
86181
87702
  constructor() {
86182
87703
  effect(() => {
86183
87704
  const task = this.task();
87705
+ if (task && isChangeOfPrincipalsTask(task)) {
87706
+ this.deltaForm.set(new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key))));
87707
+ this.deltaState.setBCChangeOfDirectorsInitialDelta(this.generateChangeOfDirectorsDeltaData());
87708
+ }
86184
87709
  if (task && isFormationTask2(task)) {
86185
87710
  this.deltaForm.set(new FormGroup(BritishColumbiaFormationFormHelper.generateConfig(task, (key) => this.translate.instant(key), untracked2(() => this.currentUser()))));
86186
87711
  this.deltaState.setBCFormationInitialDelta(this.generateFormationDeltaData());
@@ -86189,7 +87714,18 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86189
87714
  effect(() => {
86190
87715
  const task = this.task();
86191
87716
  const deltaData = task?.deltaData;
86192
- if (task && isFormationTask2(task) && deltaData) {
87717
+ if (!task || !deltaData) {
87718
+ return;
87719
+ }
87720
+ if (isChangeOfPrincipalsTask(task)) {
87721
+ const form = new FormGroup(BritishColumbiaChangeOfDirectorsFormHelper.generateConfig(task, (key) => this.translate.instant(key)));
87722
+ form.disable();
87723
+ this.previewForm.set(form);
87724
+ if (untracked2(() => this.activeStep()) === Step.Validate) {
87725
+ this.nextStep.emit();
87726
+ }
87727
+ }
87728
+ if (isFormationTask2(task)) {
86193
87729
  const form = new FormGroup(BritishColumbiaFormationFormHelper.generateConfig(task, (key) => this.translate.instant(key), untracked2(() => this.currentUser())));
86194
87730
  form.disable();
86195
87731
  this.previewForm.set(form);
@@ -86199,6 +87735,21 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86199
87735
  }
86200
87736
  });
86201
87737
  }
87738
+ onChangeOfDirectorsValidate() {
87739
+ markFormGroupTouched(this.deltaForm());
87740
+ this.codValidate.emit(this.generateChangeOfDirectorsDeltaData());
87741
+ }
87742
+ onChangeOfDirectorsSave() {
87743
+ const delta = this.generateChangeOfDirectorsDeltaData();
87744
+ this.deltaState.setBCChangeOfDirectorsInitialDelta(delta);
87745
+ this.saveCodDeltaData.emit(delta);
87746
+ }
87747
+ onChangeOfDirectorsSubmit(termsAndConditions) {
87748
+ this.codSubmit.emit(__spreadProps(__spreadValues({}, this.generateChangeOfDirectorsDeltaData()), {
87749
+ signatoryFirstName: termsAndConditions.firstName,
87750
+ signatoryLastName: termsAndConditions.lastName
87751
+ }));
87752
+ }
86202
87753
  onFormationValidate() {
86203
87754
  markFormGroupTouched(this.deltaForm());
86204
87755
  this.formationValidate.emit(this.generateFormationDeltaData());
@@ -86208,16 +87759,44 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86208
87759
  this.deltaState.setBCFormationInitialDelta(delta);
86209
87760
  this.saveFormationDeltaData.emit(delta);
86210
87761
  }
86211
- onFormationSubmit() {
86212
- this.formationSubmit.emit();
87762
+ onFormationSubmit(termsAndConditions) {
87763
+ this.formationSubmit.emit(this.generateFormationDeltaData(termsAndConditions));
87764
+ }
87765
+ generateChangeOfDirectorsDeltaData() {
87766
+ const c = BCChangeOfDirectorsFormControls;
87767
+ const formData = this.deltaForm().getRawValue();
87768
+ const refNumbers = formData[BCChangeOfDirectorsFormGroups.ReferenceNumbers];
87769
+ const filing = formData[BCChangeOfDirectorsFormGroups.FilingDetails];
87770
+ const notification = formData[BCChangeOfDirectorsFormGroups.Notification];
87771
+ const reminder = formData[BCChangeOfDirectorsFormGroups.AnnualReportReminder];
87772
+ const addedOrDeleted = Boolean(filing?.[c.DirectorsAddedOrDeleted]);
87773
+ const notifyByMail = notification?.[c.NotificationMethod] === BCNotificationMethod.Mail;
87774
+ return {
87775
+ referenceNumbers: {
87776
+ referenceNumber: refNumbers?.[c.ClientMatterNumber] ?? null,
87777
+ docketNumber: refNumbers?.[c.DocketNumber] ?? null
87778
+ },
87779
+ filingDetails: {
87780
+ directorsAddedOrDeleted: addedOrDeleted,
87781
+ changeDate: addedOrDeleted ? filing?.[c.ChangeDate] ?? null : void 0
87782
+ },
87783
+ notification: {
87784
+ method: notification?.[c.NotificationMethod] ?? null,
87785
+ email: notifyByMail ? void 0 : notification?.[c.NotificationEmail] ?? null
87786
+ },
87787
+ annualReportReminder: reminder?.[c.AnnualReportReminder] ?? null
87788
+ };
86213
87789
  }
86214
- generateFormationDeltaData() {
87790
+ generateFormationDeltaData(termsAndConditions) {
86215
87791
  const formData = this.deltaForm().getRawValue();
86216
87792
  const refNumbers = formData[BCFormationFormGroups.ReferenceNumbers];
86217
87793
  const corpDetails = formData[BCFormationFormGroups.CorporationDetails];
87794
+ const notification = formData[BCFormationFormGroups.Notification];
86218
87795
  const completingParty = formData[BCFormationFormGroups.CompletingParty];
87796
+ const isNamed2 = corpDetails?.[BCFormationFormControls.CorporationNameType] === BCNameType.Named;
86219
87797
  const usesNameTranslation = Boolean(corpDetails?.[BCFormationFormControls.UsesNameTranslation]);
86220
87798
  const nameTranslations = usesNameTranslation ? (corpDetails?.[BCFormationFormControls.NameTranslations] ?? []).map((row) => (row[BCFormationFormControls.NameTranslation] ?? "").trim()).filter(Boolean) : [];
87799
+ const notifyByMail = notification?.[BCFormationFormControls.NotificationMethod] === BCNotificationMethod.Mail;
86221
87800
  const data = {
86222
87801
  referenceNumbers: {
86223
87802
  referenceNumber: refNumbers?.[BCFormationFormControls.ClientMatterNumber] ?? null,
@@ -86225,15 +87804,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86225
87804
  },
86226
87805
  entityDetails: {
86227
87806
  corporationNameType: corpDetails?.[BCFormationFormControls.CorporationNameType] ?? null,
86228
- // Kept for Numbered too so the name survives a save / reload; the payload mapper only
86229
- // sends them when the type is Named.
86230
- companyName: corpDetails?.[BCFormationFormControls.CompanyName] || null,
86231
- nameReservationNumber: corpDetails?.[BCFormationFormControls.NameReservationNumber] || null,
87807
+ companyName: isNamed2 ? corpDetails?.[BCFormationFormControls.CompanyName] ?? null : null,
87808
+ nameReservationNumber: isNamed2 ? corpDetails?.[BCFormationFormControls.NameReservationNumber] ?? null : null,
86232
87809
  usesNameTranslation,
86233
87810
  nameTranslations,
86234
87811
  companyEmail: corpDetails?.[BCFormationFormControls.CompanyEmail] ?? null,
86235
87812
  password: corpDetails?.[BCFormationFormControls.CompanyPassword] ?? null
86236
87813
  },
87814
+ notification: {
87815
+ method: notification?.[BCFormationFormControls.NotificationMethod] ?? null,
87816
+ email: notifyByMail ? null : notification?.[BCFormationFormControls.NotificationEmail] ?? null,
87817
+ name: notifyByMail ? notification?.[BCFormationFormControls.NotificationName] ?? null : null,
87818
+ mailAddress: notifyByMail ? {
87819
+ addressLine1: notification?.[BCFormationFormControls.AddressLine1] ?? null,
87820
+ addressLine2: notification?.[BCFormationFormControls.AddressLine2] ?? null,
87821
+ city: notification?.[BCFormationFormControls.City] ?? null,
87822
+ provinceState: notification?.[BCFormationFormControls.ProvinceState] ?? null,
87823
+ postalZip: notification?.[BCFormationFormControls.PostalZip] ?? null,
87824
+ country: notification?.[BCFormationFormControls.Country] ?? null
87825
+ } : void 0
87826
+ },
86237
87827
  completingParty: {
86238
87828
  firstName: completingParty?.[BCFormationFormControls.CompletingPartyFirstName] ?? null,
86239
87829
  middleName: completingParty?.[BCFormationFormControls.CompletingPartyMiddleName] ?? null,
@@ -86251,10 +87841,15 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86251
87841
  hasRequiredDocuments: Boolean(completingParty?.[BCFormationFormControls.HasRequiredDocuments])
86252
87842
  }
86253
87843
  };
87844
+ if (termsAndConditions) {
87845
+ data.signatoryFirstName = termsAndConditions.firstName;
87846
+ data.signatoryLastName = termsAndConditions.lastName;
87847
+ }
86254
87848
  return data;
86255
87849
  }
86256
87850
  onClose() {
86257
- const hasChanges = !deepEqual(this.deltaState.bcFormationInitialDelta(), this.generateFormationDeltaData());
87851
+ const task = this.task();
87852
+ const hasChanges = task && isFormationTask2(task) ? !deepEqual(this.deltaState.bcFormationInitialDelta(), this.generateFormationDeltaData()) : !deepEqual(this.deltaState.bcChangeOfDirectorsInitialDelta(), this.generateChangeOfDirectorsDeltaData());
86258
87853
  if (!hasChanges) {
86259
87854
  this.close.emit();
86260
87855
  return;
@@ -86270,7 +87865,11 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86270
87865
  width: "65rem"
86271
87866
  }).afterClosed().subscribe((val) => {
86272
87867
  if (val) {
86273
- this.onFormationSave();
87868
+ if (task && isFormationTask2(task)) {
87869
+ this.onFormationSave();
87870
+ } else {
87871
+ this.onChangeOfDirectorsSave();
87872
+ }
86274
87873
  }
86275
87874
  this.close.emit();
86276
87875
  });
@@ -86278,32 +87877,40 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
86278
87877
  static \u0275fac = function BritishColumbiaComponent_Factory(__ngFactoryType__) {
86279
87878
  return new (__ngFactoryType__ || _BritishColumbiaComponent)();
86280
87879
  };
86281
- static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaComponent, selectors: [["british-columbia"]], inputs: { task: [1, "task"], currentUser: [1, "currentUser"], activeStep: [1, "activeStep"], isNote: [1, "isNote"], actionsDisabled: [1, "actionsDisabled"], errors: [1, "errors"] }, outputs: { close: "close", formationValidate: "formationValidate", formationSubmit: "formationSubmit", saveFormationDeltaData: "saveFormationDeltaData", nextStep: "nextStep" }, decls: 2, vars: 2, consts: [[3, "task", "errors", "isNote", "actionsDisabled", "form"], [3, "task", "form", "errors", "actionsDisabled"], [3, "validate", "close", "save", "task", "errors", "isNote", "actionsDisabled", "form"], [3, "next", "close", "task", "form", "errors", "actionsDisabled"]], template: function BritishColumbiaComponent_Template(rf, ctx) {
87880
+ static \u0275cmp = /* @__PURE__ */ \u0275\u0275defineComponent({ type: _BritishColumbiaComponent, selectors: [["british-columbia"]], inputs: { task: [1, "task"], currentUser: [1, "currentUser"], activeStep: [1, "activeStep"], isNote: [1, "isNote"], actionsDisabled: [1, "actionsDisabled"], errors: [1, "errors"] }, outputs: { close: "close", codValidate: "codValidate", saveCodDeltaData: "saveCodDeltaData", codSubmit: "codSubmit", formationValidate: "formationValidate", formationSubmit: "formationSubmit", saveFormationDeltaData: "saveFormationDeltaData", nextStep: "nextStep", prevStep: "prevStep" }, decls: 3, vars: 3, consts: [[3, "task", "form", "actionsDisabled", "errors", "isNote"], [3, "task", "form", "actionsDisabled", "errors"], [3, "errors"], [3, "validate", "close", "save", "task", "form", "actionsDisabled", "errors", "isNote"], [3, "close", "file", "task", "form", "actionsDisabled", "errors"], [3, "prev", "close", "confirm", "errors"], [3, "task", "errors", "isNote", "actionsDisabled", "form"], [3, "task", "form", "actionsDisabled"], [3, "validate", "close", "save", "task", "errors", "isNote", "actionsDisabled", "form"], [3, "next", "close", "task", "form", "actionsDisabled"]], template: function BritishColumbiaComponent_Template(rf, ctx) {
86282
87881
  if (rf & 1) {
86283
87882
  \u0275\u0275declareLet(0);
86284
- \u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 2, 2);
87883
+ \u0275\u0275template(1, BritishColumbiaComponent_Conditional_1_Template, 3, 3)(2, BritishColumbiaComponent_Conditional_2_Template, 3, 3);
86285
87884
  }
86286
87885
  if (rf & 2) {
86287
- const taskData_r5 = \u0275\u0275storeLet(ctx.task());
87886
+ const taskData_r9 = \u0275\u0275storeLet(ctx.task());
87887
+ \u0275\u0275advance();
87888
+ \u0275\u0275conditional(ctx.isChangeOfDirectorsTask(taskData_r9) ? 1 : -1);
86288
87889
  \u0275\u0275advance();
86289
- \u0275\u0275conditional(ctx.isFormationTask(taskData_r5) ? 1 : -1);
87890
+ \u0275\u0275conditional(ctx.isFormationTask(taskData_r9) ? 2 : -1);
86290
87891
  }
86291
87892
  }, dependencies: [
87893
+ BritishColumbiaChangeOfDirectorsDeltaFormComponent,
87894
+ BritishColumbiaChangeOfDirectorsPreviewFormComponent,
86292
87895
  BritishColumbiaIncorporationDeltaFormComponent,
86293
- BritishColumbiaIncorporationPreviewFormComponent
87896
+ BritishColumbiaIncorporationPreviewFormComponent,
87897
+ TermsAndConditionsComponent
86294
87898
  ], styles: ["\n\n[_nghost-%COMP%] {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */"], changeDetection: 0 });
86295
87899
  };
86296
87900
  (() => {
86297
87901
  (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaComponent, [{
86298
87902
  type: Component,
86299
87903
  args: [{ standalone: true, selector: "british-columbia", changeDetection: ChangeDetectionStrategy.OnPush, imports: [
87904
+ BritishColumbiaChangeOfDirectorsDeltaFormComponent,
87905
+ BritishColumbiaChangeOfDirectorsPreviewFormComponent,
86300
87906
  BritishColumbiaIncorporationDeltaFormComponent,
86301
- BritishColumbiaIncorporationPreviewFormComponent
86302
- ], template: '@let taskData = this.task();\r\n\r\n@if (isFormationTask(taskData)) {\r\n @if (activeStep() === steps.Validate) {\r\n <british-columbia-incorporation-delta-form\r\n [task]="taskData"\r\n [errors]="errors()"\r\n [isNote]="isNote()"\r\n [actionsDisabled]="actionsDisabled()"\r\n [form]="deltaForm()"\r\n (validate)="onFormationValidate()"\r\n (close)="onClose()"\r\n (save)="onFormationSave()"\r\n />\r\n }\r\n\r\n @if (activeStep() === steps.FilingPreview) {\r\n <british-columbia-incorporation-preview-form\r\n [task]="taskData"\r\n [form]="previewForm()"\r\n [errors]="errors()"\r\n [actionsDisabled]="actionsDisabled()"\r\n (next)="onFormationSubmit()"\r\n (close)="close.emit()"\r\n />\r\n }\r\n}\r\n', styles: ["/* src/app/components/british-columbia/british-columbia.component.scss */\n:host {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */\n"] }]
87907
+ BritishColumbiaIncorporationPreviewFormComponent,
87908
+ TermsAndConditionsComponent
87909
+ ], template: '@let taskData = this.task();\n\n@if (isChangeOfDirectorsTask(taskData)) {\n @if (activeStep() === steps.Validate) {\n <british-columbia-change-of-directors-delta-form\n [task]="taskData"\n [form]="deltaForm()"\n [actionsDisabled]="actionsDisabled()"\n [errors]="errors()"\n [isNote]="isNote()"\n (validate)="onChangeOfDirectorsValidate()"\n (close)="onClose()"\n (save)="onChangeOfDirectorsSave()"\n />\n }\n\n @if (activeStep() === steps.FilingPreview) {\n <british-columbia-change-of-directors-preview-form\n [task]="taskData"\n [form]="previewForm()"\n [actionsDisabled]="actionsDisabled()"\n [errors]="errors()"\n (close)="close.emit()"\n (file)="nextStep.emit()"\n />\n }\n\n @if (activeStep() === steps.TermsAndConditions) {\n <terms-and-conditions\n [errors]="errors()"\n (prev)="prevStep.emit()"\n (close)="close.emit()"\n (confirm)="onChangeOfDirectorsSubmit($event)"\n />\n }\n}\n\n@if (isFormationTask(taskData)) {\n @if (activeStep() === steps.Validate) {\n <british-columbia-incorporation-delta-form\n [task]="taskData"\n [errors]="errors()"\n [isNote]="isNote()"\n [actionsDisabled]="actionsDisabled()"\n [form]="deltaForm()"\n (validate)="onFormationValidate()"\n (close)="onClose()"\n (save)="onFormationSave()"\n />\n }\n\n @if (activeStep() === steps.FilingPreview) {\n <british-columbia-incorporation-preview-form\n [task]="taskData"\n [form]="previewForm()"\n [actionsDisabled]="actionsDisabled()"\n (next)="nextStep.emit()"\n (close)="close.emit()"\n />\n }\n\n @if (activeStep() === steps.TermsAndConditions) {\n <terms-and-conditions\n [errors]="errors()"\n (prev)="prevStep.emit()"\n (close)="close.emit()"\n (confirm)="onFormationSubmit($event)"\n />\n }\n}\n', styles: ["/* src/app/components/british-columbia/british-columbia.component.scss */\n:host {\n display: contents;\n}\n/*# sourceMappingURL=british-columbia.component.css.map */\n"] }]
86303
87910
  }], () => [], null);
86304
87911
  })();
86305
87912
  (() => {
86306
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber: 43 });
87913
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(BritishColumbiaComponent, { className: "BritishColumbiaComponent", filePath: "src/app/components/british-columbia/british-columbia.component.ts", lineNumber: 65 });
86307
87914
  })();
86308
87915
  }
86309
87916
  });
@@ -92358,66 +93965,10 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
92358
93965
  /** POST /filings/ca/bc/incorporation – validates, stages and returns a draft PDF + ServiceOrderId. */
92359
93966
  validate(_0, _1) {
92360
93967
  return __async(this, arguments, function* (signature, requestBody, opts = {}) {
92361
- return this.sendStagedIncorporation(signature, "POST", INCORPORATION_PATH, requestBody, opts);
92362
- });
92363
- }
92364
- /** PUT /filings/ca/bc/incorporation/{serviceOrderId} – replaces a staged incorporation and returns a fresh draft PDF. */
92365
- edit(_0, _1, _2) {
92366
- return __async(this, arguments, function* (signature, serviceOrderId, requestBody, opts = {}) {
92367
- if (!serviceOrderId) {
92368
- throw new Error("Missing serviceOrderId.");
92369
- }
92370
- return this.sendStagedIncorporation(signature, "PUT", `${INCORPORATION_PATH}/${encodeURIComponent(serviceOrderId)}`, requestBody, opts);
92371
- });
92372
- }
92373
- /** GET /filings/ca/bc/incorporation/{serviceOrderId} – retrieves the incorporation result. */
92374
- getResult(_0, _1) {
92375
- return __async(this, arguments, function* (signature, serviceOrderId, opts = {}) {
92376
93968
  ensureAuthInputs(signature);
92377
- if (!serviceOrderId) {
92378
- throw new Error("Missing serviceOrderId.");
92379
- }
92380
93969
  const fetchFn = opts.fetchImpl ?? fetch;
92381
- const resp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
92382
- method: "GET",
92383
- headers: {
92384
- Authorization: `Bearer ${signature.jwtToken}`,
92385
- "x-target-url": this.targetUrl(signature.env, `${INCORPORATION_PATH}/${encodeURIComponent(serviceOrderId)}`)
92386
- }
92387
- }));
92388
- const raw = yield resp.text();
92389
- const parsed = tryParseJson(raw);
92390
- if (!parsed.ok) {
92391
- const err = new Error(`eCore retrieve returned ${resp.status} ${resp.statusText}: ${raw || "(empty response)"}`);
92392
- err.httpStatus = resp.status;
92393
- throw err;
92394
- }
92395
- const payload = unwrapRequestResults(parsed.value);
92396
- if (!resp.ok) {
92397
- const result = {
92398
- Status: payload?.status,
92399
- Errors: toValidateErrors(payload) ?? [{ Message: `HTTP ${resp.status}` }]
92400
- };
92401
- const err = buildGenericError(resp.status, "eCore retrieve failed", result);
92402
- err.httpStatus = resp.status;
92403
- throw err;
92404
- }
92405
- return payload;
92406
- });
92407
- }
92408
- /** Shared by validate (POST) and edit (PUT): both stage the incorporation and return a draft + ServiceOrderId. */
92409
- sendStagedIncorporation(signature, method, path, requestBody, opts) {
92410
- return __async(this, null, function* () {
92411
- ensureAuthInputs(signature);
92412
- const fetchFn = opts.fetchImpl ?? fetch;
92413
- const resp = yield fetchWithJwtRetry(signature, () => fetchFn(signature.proxyApiUrl, {
92414
- method,
92415
- headers: {
92416
- "Content-Type": "application/json",
92417
- Authorization: `Bearer ${signature.jwtToken}`,
92418
- "x-target-url": this.targetUrl(signature.env, path)
92419
- },
92420
- body: JSON.stringify(requestBody)
93970
+ const resp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, signature.proxyApiUrl, signature.jwtToken, requestBody, {
93971
+ "x-target-url": this.targetUrl(signature.env, INCORPORATION_PATH)
92421
93972
  }));
92422
93973
  const raw = yield resp.text();
92423
93974
  const parsed = tryParseJson(raw);
@@ -92515,6 +94066,175 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
92515
94066
  }
92516
94067
  });
92517
94068
 
94069
+ // src/app/services/british-columbia/british-columbia-change-of-directors.service.ts
94070
+ var BritishColumbiaChangeOfDirectorsService;
94071
+ var init_british_columbia_change_of_directors_service = __esm({
94072
+ "src/app/services/british-columbia/british-columbia-change-of-directors.service.ts"() {
94073
+ init_core();
94074
+ init_common_utils();
94075
+ init_core();
94076
+ BritishColumbiaChangeOfDirectorsService = class _BritishColumbiaChangeOfDirectorsService {
94077
+ config;
94078
+ setConfig(config2) {
94079
+ this.config = config2;
94080
+ }
94081
+ validate(_0, _1) {
94082
+ return __async(this, arguments, function* (signature, requestBody, opts = {}) {
94083
+ ensureAuthInputs(signature);
94084
+ const fetchFn = opts.fetchImpl ?? fetch;
94085
+ const url = signature.proxyApiUrl;
94086
+ const targetUrl = opts.endpointPath ?? `${this.getOnbisOrigin()}/filings/ca/bc/maintenance-filing`;
94087
+ const resp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, url, signature.jwtToken, requestBody, __spreadValues({
94088
+ "x-target-url": targetUrl
94089
+ }, opts.headers ?? {})));
94090
+ const raw = yield resp.text();
94091
+ const parsed = tryParseJson(raw);
94092
+ if (!parsed.ok) {
94093
+ const err2 = new Error(`BC change of directors validation returned ${resp.status} ${resp.statusText}: ${raw || "(empty response)"}`);
94094
+ err2.httpStatus = resp.status;
94095
+ throw err2;
94096
+ }
94097
+ const payload = unwrapRequestResults(parsed.value);
94098
+ if (resp.ok && !payload.Errors?.length) {
94099
+ return payload;
94100
+ }
94101
+ const err = buildValidationError(resp.status, payload);
94102
+ err.validateResult = payload;
94103
+ err.httpStatus = resp.status;
94104
+ throw err;
94105
+ });
94106
+ }
94107
+ getFilingResult(_0, _1) {
94108
+ return __async(this, arguments, function* (signature, serviceOrderId, opts = {}) {
94109
+ ensureAuthInputs(signature);
94110
+ if (!serviceOrderId) {
94111
+ throw new Error("Missing serviceOrderId.");
94112
+ }
94113
+ const fetchFn = opts.fetchImpl ?? fetch;
94114
+ const url = signature.proxyApiUrl;
94115
+ const targetUrl = opts.endpointPath ?? `${this.getOnbisOrigin()}/filings/ca/bc/maintenance-filing/${encodeURIComponent(serviceOrderId)}`;
94116
+ const resp = yield fetchWithJwtRetry(signature, () => fetchFn(url, {
94117
+ method: "GET",
94118
+ headers: __spreadValues({
94119
+ Authorization: `Bearer ${signature.jwtToken}`,
94120
+ "x-target-url": targetUrl
94121
+ }, opts.headers ?? {})
94122
+ }));
94123
+ const raw = yield resp.text();
94124
+ const parsed = tryParseJson(raw);
94125
+ const payload = parsed.ok ? unwrapRequestResults(parsed.value) : { raw };
94126
+ if (resp.ok && !payload.Errors?.length) {
94127
+ return payload;
94128
+ }
94129
+ const err = buildGenericError(resp.status, "BC change of directors filing result failed", payload);
94130
+ err.submitResult = payload;
94131
+ err.httpStatus = resp.status;
94132
+ throw err;
94133
+ });
94134
+ }
94135
+ submitFiling(_0, _1) {
94136
+ return __async(this, arguments, function* (signature, serviceOrderId, opts = {}) {
94137
+ ensureAuthInputs(signature);
94138
+ if (!serviceOrderId) {
94139
+ throw new Error("Missing serviceOrderId.");
94140
+ }
94141
+ const fetchFn = opts.fetchImpl ?? fetch;
94142
+ const url = signature.proxyApiUrl;
94143
+ const targetUrl = opts.endpointPath ?? `${this.getOnbisOrigin()}/filings/ca/bc/maintenance-filing/${encodeURIComponent(serviceOrderId)}/submit`;
94144
+ const resp = yield fetchWithJwtRetry(signature, () => postJson(fetchFn, url, signature.jwtToken, {}, __spreadValues({
94145
+ "x-target-url": targetUrl
94146
+ }, opts.headers ?? {})));
94147
+ const raw = yield resp.text();
94148
+ const parsed = tryParseJson(raw);
94149
+ const payload = parsed.ok ? unwrapRequestResults(parsed.value) : { raw };
94150
+ if (resp.ok && !payload.Errors?.length) {
94151
+ return payload;
94152
+ }
94153
+ const err = buildGenericError(resp.status, "BC change of directors submit failed", payload);
94154
+ err.submitResult = payload;
94155
+ err.httpStatus = resp.status;
94156
+ throw err;
94157
+ });
94158
+ }
94159
+ getOnbisOrigin() {
94160
+ const filingUrl = this.config?.ONFiling;
94161
+ if (!filingUrl) {
94162
+ throw new Error("BritishColumbiaChangeOfDirectorsService: missing EnvConfig.ONFiling.");
94163
+ }
94164
+ return new URL(filingUrl).origin;
94165
+ }
94166
+ static \u0275fac = function BritishColumbiaChangeOfDirectorsService_Factory(__ngFactoryType__) {
94167
+ return new (__ngFactoryType__ || _BritishColumbiaChangeOfDirectorsService)();
94168
+ };
94169
+ static \u0275prov = /* @__PURE__ */ \u0275\u0275defineInjectable({ token: _BritishColumbiaChangeOfDirectorsService, factory: _BritishColumbiaChangeOfDirectorsService.\u0275fac, providedIn: "root" });
94170
+ };
94171
+ (() => {
94172
+ (typeof ngDevMode === "undefined" || ngDevMode) && setClassMetadata(BritishColumbiaChangeOfDirectorsService, [{
94173
+ type: Injectable,
94174
+ args: [{
94175
+ providedIn: "root"
94176
+ }]
94177
+ }], null, null);
94178
+ })();
94179
+ }
94180
+ });
94181
+
94182
+ // src/app/helpers/mappers/british-columbia-change-of-directors.mapper.ts
94183
+ function buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData) {
94184
+ const incomingDirectors = (task.incomingAffiliations ?? []).filter(isDirectorAffiliation);
94185
+ const outgoingDirectors = (task.outgoingAffiliations ?? []).filter(isDirectorAffiliation);
94186
+ const companyEmail = findCompanyEmail(task);
94187
+ const serviceOrderId = deltaData.serviceOrderId;
94188
+ return __spreadValues({
94189
+ filingType: "changeOfDirectorsFiling",
94190
+ filing: {
94191
+ reference: deltaData.referenceNumbers.referenceNumber ?? null,
94192
+ docket: deltaData.referenceNumbers.docketNumber ?? null,
94193
+ addOrDeleteDirectors: deltaData.filingDetails.directorsAddedOrDeleted,
94194
+ effectiveDate: toYyyyMmDd(deltaData.filingDetails.changeDate) ?? toYyyyMmDd(/* @__PURE__ */ new Date()),
94195
+ addDirectors: incomingDirectors.map((affiliation) => buildDirector(affiliation)),
94196
+ ceaseDirectors: outgoingDirectors.map((affiliation) => buildDirector(affiliation)),
94197
+ editDirectors: [],
94198
+ companyEmail,
94199
+ isAnnualReportReminderRequired: deltaData.annualReportReminder === BCAnnualReportReminder.Yes
94200
+ }
94201
+ }, serviceOrderId ? { ServiceOrderId: serviceOrderId } : {});
94202
+ }
94203
+ function isDirectorAffiliation(affiliation) {
94204
+ return isPrincipalAffiliation2(affiliation) && affiliation.role?.role_name === "Director";
94205
+ }
94206
+ function buildDirector(affiliation) {
94207
+ const profile = affiliation.participant?._profile ?? {};
94208
+ const addresses = getAffiliationAddresses(affiliation);
94209
+ return {
94210
+ firstName: profile.firstName ?? "",
94211
+ middleName: profile.middleName ?? "",
94212
+ lastName: profile.lastName ?? "",
94213
+ isDeliveryAddressSameAsMailing: isDeliveryAddressSameAsMailing(addresses)
94214
+ };
94215
+ }
94216
+ function findCompanyEmail(task) {
94217
+ const affiliations = task.entity.affiliations ?? [];
94218
+ const registeredOffice = BritishColumbiaFormationFormHelper.findSharedAddressAffiliation(affiliations, AddressTitle2.REGISTERED_OFFICE);
94219
+ return registeredOffice?.addresses?.[0]?.communications?.find((communication) => communication.type === "Business Email")?.value ?? task.entity.communications?.find((communication) => communication.type === "Business Email")?.value ?? null;
94220
+ }
94221
+ function getAffiliationAddresses(affiliation) {
94222
+ return affiliation.addresses?.length ? affiliation.addresses : affiliation.parent_affiliation?.addresses ?? [];
94223
+ }
94224
+ function isDeliveryAddressSameAsMailing(addresses) {
94225
+ const mailing = BritishColumbiaFormationFormHelper.pickAddress(addresses, "Mailing");
94226
+ const delivery = BritishColumbiaFormationFormHelper.pickAddress(addresses, "Delivery");
94227
+ return BritishColumbiaFormationFormHelper.formatFullAddress(mailing) === BritishColumbiaFormationFormHelper.formatFullAddress(delivery);
94228
+ }
94229
+ var init_british_columbia_change_of_directors_mapper = __esm({
94230
+ "src/app/helpers/mappers/british-columbia-change-of-directors.mapper.ts"() {
94231
+ init_BritishColumbiaConstants();
94232
+ init_common_models();
94233
+ init_british_columbia_formation_form_helper();
94234
+ init_common_utils();
94235
+ }
94236
+ });
94237
+
92518
94238
  // src/app/components/filing/filing.component.ts
92519
94239
  function FilingComponent_Conditional_7_Template(rf, ctx) {
92520
94240
  if (rf & 1) {
@@ -92594,6 +94314,26 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
92594
94314
  \u0275\u0275restoreView(_r6);
92595
94315
  const ctx_r2 = \u0275\u0275nextContext(2);
92596
94316
  return \u0275\u0275resetView(ctx_r2.close.emit());
94317
+ })("nextStep", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_nextStep_0_listener() {
94318
+ \u0275\u0275restoreView(_r6);
94319
+ const ctx_r2 = \u0275\u0275nextContext(2);
94320
+ return \u0275\u0275resetView(ctx_r2.onNextStepClick());
94321
+ })("prevStep", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_prevStep_0_listener() {
94322
+ \u0275\u0275restoreView(_r6);
94323
+ const ctx_r2 = \u0275\u0275nextContext(2);
94324
+ return \u0275\u0275resetView(ctx_r2.onOntarioPrevStep());
94325
+ })("codValidate", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_codValidate_0_listener($event) {
94326
+ \u0275\u0275restoreView(_r6);
94327
+ const ctx_r2 = \u0275\u0275nextContext(2);
94328
+ return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfDirectorsValidate($event));
94329
+ })("saveCodDeltaData", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_saveCodDeltaData_0_listener($event) {
94330
+ \u0275\u0275restoreView(_r6);
94331
+ const ctx_r2 = \u0275\u0275nextContext(2);
94332
+ return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfDirectorsSave($event));
94333
+ })("codSubmit", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_codSubmit_0_listener() {
94334
+ \u0275\u0275restoreView(_r6);
94335
+ const ctx_r2 = \u0275\u0275nextContext(2);
94336
+ return \u0275\u0275resetView(ctx_r2.onBritishColumbiaChangeOfDirectorsSubmit());
92597
94337
  })("formationValidate", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_formationValidate_0_listener($event) {
92598
94338
  \u0275\u0275restoreView(_r6);
92599
94339
  const ctx_r2 = \u0275\u0275nextContext(2);
@@ -92606,10 +94346,6 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
92606
94346
  \u0275\u0275restoreView(_r6);
92607
94347
  const ctx_r2 = \u0275\u0275nextContext(2);
92608
94348
  return \u0275\u0275resetView(ctx_r2.onBritishColumbiaFormationSubmit());
92609
- })("nextStep", function FilingComponent_Conditional_10_Conditional_1_Template_british_columbia_nextStep_0_listener() {
92610
- \u0275\u0275restoreView(_r6);
92611
- const ctx_r2 = \u0275\u0275nextContext(2);
92612
- return \u0275\u0275resetView(ctx_r2.onNextStepClick());
92613
94349
  });
92614
94350
  \u0275\u0275elementEnd();
92615
94351
  }
@@ -92711,6 +94447,8 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
92711
94447
  init_british_columbia_formation_mapper();
92712
94448
  init_british_columbia_formation_service();
92713
94449
  init_delta_state_service();
94450
+ init_british_columbia_change_of_directors_service();
94451
+ init_british_columbia_change_of_directors_mapper();
92714
94452
  init_core();
92715
94453
  init_button();
92716
94454
  FilingComponent = class _FilingComponent {
@@ -92766,6 +94504,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
92766
94504
  bcFormationService = inject(BritishColumbiaFormationService);
92767
94505
  federalUpdateMaintainService = inject(FederalUpdateMaintainService);
92768
94506
  updateMaintainService = inject(OntarioUpdateMaintainService);
94507
+ britishColumbiaChangeOfDirectorsService = inject(BritishColumbiaChangeOfDirectorsService);
92769
94508
  translate = inject(TranslateService);
92770
94509
  isEditButton = computed(() => {
92771
94510
  const task = this.task();
@@ -92804,6 +94543,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
92804
94543
  if (isFormationTask2(task)) {
92805
94544
  return `File ${jurisdiction} Articles of Incorporation`;
92806
94545
  }
94546
+ if (isChangeOfPrincipalsTask(task) && isBritishColumbiaTask(task)) {
94547
+ return "File British Columbia Notice of Change of Directors";
94548
+ }
92807
94549
  return "";
92808
94550
  });
92809
94551
  constructor() {
@@ -92815,6 +94557,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
92815
94557
  this.federalFormationService.setConfig(config2);
92816
94558
  this.bcFormationService.setConfig(config2);
92817
94559
  this.federalUpdateMaintainService.setConfig(config2);
94560
+ this.britishColumbiaChangeOfDirectorsService.setConfig(config2);
92818
94561
  }
92819
94562
  });
92820
94563
  addStylesVariables();
@@ -92953,6 +94696,80 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
92953
94696
  }
92954
94697
  this.deltaDataChange.emit(deltaData);
92955
94698
  }
94699
+ onBritishColumbiaChangeOfDirectorsValidate(deltaData) {
94700
+ return __async(this, null, function* () {
94701
+ const task = this.task();
94702
+ const signature = this._signature();
94703
+ if (!task || !signature || !isChangeOfPrincipalsTask(task)) {
94704
+ return;
94705
+ }
94706
+ try {
94707
+ this.isLoading.set(true);
94708
+ this.errors.set([]);
94709
+ const requestBody = buildBritishColumbiaChangeOfDirectorsValidationRequest(task, deltaData);
94710
+ const response = yield this.britishColumbiaChangeOfDirectorsService.validate(signature, requestBody, this.validateOptions() ?? {});
94711
+ if (this.hasResponseErrors(response))
94712
+ return;
94713
+ const serviceOrderId = response.ServiceOrderId ?? "";
94714
+ if (response.Draft) {
94715
+ this.filingValidateSuccess.emit({
94716
+ searchOrFilingType: getSearchOrFilingType(task),
94717
+ serviceOrderId,
94718
+ validatedOn: /* @__PURE__ */ new Date(),
94719
+ provider: "obr",
94720
+ draftPdf: response.Draft,
94721
+ documentName: this.validateOptions()?.documentName ?? "BC Change of Directors Draft",
94722
+ documentType: "pdf"
94723
+ });
94724
+ }
94725
+ const validatedData = this.task()?.deltaData?.validatedData;
94726
+ if (validatedData) {
94727
+ delete this.task()?.deltaData.validatedData;
94728
+ }
94729
+ this.deltaDataChange.emit(__spreadProps(__spreadValues({}, deltaData), {
94730
+ serviceOrderId,
94731
+ validatedData: JSON.parse(JSON.stringify(requestBody))
94732
+ }));
94733
+ this.close.emit();
94734
+ } catch (response) {
94735
+ this.handleCatchError(response);
94736
+ } finally {
94737
+ this.isLoading.set(false);
94738
+ }
94739
+ });
94740
+ }
94741
+ onBritishColumbiaChangeOfDirectorsSave(deltaData) {
94742
+ const oldDeltaData = this.task()?.deltaData;
94743
+ if (oldDeltaData) {
94744
+ delete this.task()?.deltaData;
94745
+ }
94746
+ this.deltaDataChange.emit(deltaData);
94747
+ }
94748
+ onBritishColumbiaChangeOfDirectorsSubmit() {
94749
+ return __async(this, null, function* () {
94750
+ try {
94751
+ this.isLoading.set(true);
94752
+ this.errors.set([]);
94753
+ const signature = this._signature();
94754
+ const serviceOrderId = this.task()?.deltaData?.serviceOrderId;
94755
+ if (!signature || !serviceOrderId) {
94756
+ throw new Error("Missing serviceOrderId.");
94757
+ }
94758
+ const response = yield this.britishColumbiaChangeOfDirectorsService.submitFiling(signature, serviceOrderId, this.validateOptions() ?? {});
94759
+ if (this.hasResponseErrors(response))
94760
+ return;
94761
+ this.filingSubmitSuccess.emit({
94762
+ serviceOrderId: response.ServiceOrderId ?? serviceOrderId,
94763
+ filedOn: /* @__PURE__ */ new Date()
94764
+ });
94765
+ this.close.emit();
94766
+ } catch (response) {
94767
+ this.handleCatchError(response);
94768
+ } finally {
94769
+ this.isLoading.set(false);
94770
+ }
94771
+ });
94772
+ }
92956
94773
  /**
92957
94774
  * British Columbia Formation validate (AC8 / AC9): sends the payload to the BC Filing API,
92958
94775
  * hands the draft PDF to UEM and saves the delta + ServiceOrderId + full payload.
@@ -93432,7 +95249,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
93432
95249
  if (rf & 2) {
93433
95250
  \u0275\u0275styleProp("height", ctx.modalHeight());
93434
95251
  }
93435
- }, inputs: { env: [1, "env"], config: [1, "config"], language: [1, "language"], proxyApiUrl: [1, "proxyApiUrl"], jwtToken: [1, "jwtToken"], task: [1, "task"], currentUser: [1, "currentUser"], height: [1, "height"], validateOptions: [1, "validateOptions"], getDocumentBytes: [1, "getDocumentBytes"] }, outputs: { deltaDataChange: "deltaDataChange", filingValidateSuccess: "filingValidateSuccess", filingSubmitSuccess: "filingSubmitSuccess", close: "close" }, decls: 12, vars: 9, consts: [[1, "filing"], [1, "filing-title"], [1, "filing-title-text"], [1, "filing-title-action", 3, "click"], [1, "filing-header"], [1, "filing-content"], [1, "filing-content-loading"], ["mat-stroked-button", "", 3, "click", "disabled"], [3, "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors"], [3, "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "close", "formationValidate", "saveFormationDeltaData", "formationSubmit", "nextStep", "prevStep", "irValidate", "saveIrDeltaData", "irSubmit", "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "close", "formationValidate", "saveFormationDeltaData", "formationSubmit", "nextStep", "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors"], [3, "close", "deltaDataChange", "file", "validate", "umSave", "umValidate", "umSubmit", "nextStep", "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
95252
+ }, inputs: { env: [1, "env"], config: [1, "config"], language: [1, "language"], proxyApiUrl: [1, "proxyApiUrl"], jwtToken: [1, "jwtToken"], task: [1, "task"], currentUser: [1, "currentUser"], height: [1, "height"], validateOptions: [1, "validateOptions"], getDocumentBytes: [1, "getDocumentBytes"] }, outputs: { deltaDataChange: "deltaDataChange", filingValidateSuccess: "filingValidateSuccess", filingSubmitSuccess: "filingSubmitSuccess", close: "close" }, decls: 12, vars: 9, consts: [[1, "filing"], [1, "filing-title"], [1, "filing-title-text"], [1, "filing-title-action", 3, "click"], [1, "filing-header"], [1, "filing-content"], [1, "filing-content-loading"], ["mat-stroked-button", "", 3, "click", "disabled"], [3, "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors"], [3, "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "close", "formationValidate", "saveFormationDeltaData", "formationSubmit", "nextStep", "prevStep", "irValidate", "saveIrDeltaData", "irSubmit", "task", "activeStep", "isNote", "actionsDisabled", "errors", "prevData", "irValidationConfig"], [3, "close", "nextStep", "prevStep", "codValidate", "saveCodDeltaData", "codSubmit", "formationValidate", "saveFormationDeltaData", "formationSubmit", "task", "currentUser", "activeStep", "isNote", "actionsDisabled", "errors"], [3, "close", "deltaDataChange", "file", "validate", "umSave", "umValidate", "umSubmit", "nextStep", "actionsDisabled", "isNote", "activeStep", "task", "errors"], [3, "diameter"]], template: function FilingComponent_Template(rf, ctx) {
93436
95253
  if (rf & 1) {
93437
95254
  const _r1 = \u0275\u0275getCurrentView();
93438
95255
  \u0275\u0275elementStart(0, "div", 0)(1, "div", 1)(2, "h1", 2);
@@ -93498,13 +95315,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
93498
95315
  \r
93499
95316
  @if (isEditButton()) {\r
93500
95317
  <div class="filing-header">\r
93501
- <button\r
93502
- mat-stroked-button\r
93503
- [disabled]="isLoading()"\r
93504
- (click)="onEditClick()"\r
93505
- >\r
93506
- {{ 'Edit' | translate }}\r
93507
- </button>\r
95318
+ <button mat-stroked-button [disabled]="isLoading()" (click)="onEditClick()">\r
95319
+ {{ 'Edit' | translate }}\r
95320
+ </button>\r
93508
95321
  </div>\r
93509
95322
  }\r
93510
95323
  \r
@@ -93512,70 +95325,43 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
93512
95325
  @let currentTask = task();\r
93513
95326
  \r
93514
95327
  @if (currentTask) {\r
93515
- @if (isOntarioTask(currentTask)) {\r
93516
- <ontario\r
93517
- [task]="currentTask"\r
93518
- [activeStep]="activeStep()"\r
93519
- [isNote]="dataWasChanged()"\r
93520
- [actionsDisabled]="isLoading()"\r
93521
- [errors]="errors()"\r
93522
- [prevData]="prevData()"\r
93523
- (close)="close.emit()"\r
93524
- (formationValidate)="onOntarioFormationValidate($event)"\r
93525
- (saveFormationDeltaData)="onOntarioFormationSave($event)"\r
93526
- (formationSubmit)="onOntarioFormationSubmit()"\r
93527
- (nextStep)="onNextStepClick()"\r
93528
- (prevStep)="onOntarioPrevStep()"\r
93529
- [irValidationConfig]="validationConfig()"\r
93530
- (irValidate)="validateAndFileInitialReturnTask($event)"\r
93531
- (saveIrDeltaData)="onOntarioUpdateMaintainSave($event)"\r
93532
- (irSubmit)="onInitialReturnSubmit()"\r
93533
- />\r
93534
- } @else if (isBritishColumbiaTask(currentTask)) {\r
93535
- <british-columbia\r
93536
- [task]="currentTask"\r
93537
- [currentUser]="currentUser()"\r
93538
- [activeStep]="activeStep()"\r
93539
- [isNote]="dataWasChanged()"\r
93540
- [actionsDisabled]="isLoading()"\r
93541
- [errors]="errors()"\r
93542
- (close)="close.emit()"\r
93543
- (formationValidate)="onBritishColumbiaFormationValidate($event)"\r
93544
- (saveFormationDeltaData)="onBritishColumbiaFormationSave($event)"\r
93545
- (formationSubmit)="onBritishColumbiaFormationSubmit()"\r
93546
- (nextStep)="onNextStepClick()"\r
93547
- />\r
93548
- } @else {\r
93549
- <federal\r
93550
- [actionsDisabled]="isLoading()"\r
93551
- [isNote]="dataWasChanged()"\r
93552
- [activeStep]="activeStep()"\r
93553
- [task]="currentTask"\r
93554
- [errors]="errors()"\r
93555
- (close)="close.emit()"\r
93556
- (deltaDataChange)="onFederalFormationSave($event)"\r
93557
- (file)="onFederalFormationSubmit()"\r
93558
- (validate)="onFederalValidate($event)"\r
93559
- (umSave)="onFederalUpdateMaintainSave($event)"\r
93560
- (umValidate)="onFederalUpdateMaintainValidate($event)"\r
93561
- (umSubmit)="onFederalUpdateMaintainSubmit()"\r
93562
- (nextStep)="defineInitialStep()"\r
93563
- />\r
93564
- }\r
95328
+ @if (isOntarioTask(currentTask)) {\r
95329
+ <ontario [task]="currentTask" [activeStep]="activeStep()" [isNote]="dataWasChanged()"\r
95330
+ [actionsDisabled]="isLoading()" [errors]="errors()" [prevData]="prevData()" (close)="close.emit()"\r
95331
+ (formationValidate)="onOntarioFormationValidate($event)" (saveFormationDeltaData)="onOntarioFormationSave($event)"\r
95332
+ (formationSubmit)="onOntarioFormationSubmit()" (nextStep)="onNextStepClick()" (prevStep)="onOntarioPrevStep()"\r
95333
+ [irValidationConfig]="validationConfig()" (irValidate)="validateAndFileInitialReturnTask($event)"\r
95334
+ (saveIrDeltaData)="onOntarioUpdateMaintainSave($event)" (irSubmit)="onInitialReturnSubmit()" />\r
95335
+ } @else if (isBritishColumbiaTask(currentTask)) {\r
95336
+ <british-columbia [task]="currentTask" [currentUser]="currentUser()" [activeStep]="activeStep()"\r
95337
+ [isNote]="dataWasChanged()" [actionsDisabled]="isLoading()" [errors]="errors()" (close)="close.emit()"\r
95338
+ (nextStep)="onNextStepClick()" (prevStep)="onOntarioPrevStep()"\r
95339
+ (codValidate)="onBritishColumbiaChangeOfDirectorsValidate($event)"\r
95340
+ (saveCodDeltaData)="onBritishColumbiaChangeOfDirectorsSave($event)"\r
95341
+ (codSubmit)="onBritishColumbiaChangeOfDirectorsSubmit()"\r
95342
+ (formationValidate)="onBritishColumbiaFormationValidate($event)"\r
95343
+ (saveFormationDeltaData)="onBritishColumbiaFormationSave($event)"\r
95344
+ (formationSubmit)="onBritishColumbiaFormationSubmit()" />\r
95345
+ } @else {\r
95346
+ <federal [actionsDisabled]="isLoading()" [isNote]="dataWasChanged()" [activeStep]="activeStep()"\r
95347
+ [task]="currentTask" [errors]="errors()" (close)="close.emit()" (deltaDataChange)="onFederalFormationSave($event)"\r
95348
+ (file)="onFederalFormationSubmit()" (validate)="onFederalValidate($event)"\r
95349
+ (umSave)="onFederalUpdateMaintainSave($event)" (umValidate)="onFederalUpdateMaintainValidate($event)"\r
95350
+ (umSubmit)="onFederalUpdateMaintainSubmit()" (nextStep)="defineInitialStep()" />\r
95351
+ }\r
93565
95352
  }\r
93566
95353
  \r
93567
95354
  @if (isLoading()) {\r
93568
- <div class="filing-content-loading">\r
93569
- <mat-spinner [diameter]="40" />\r
93570
- </div>\r
95355
+ <div class="filing-content-loading">\r
95356
+ <mat-spinner [diameter]="40" />\r
95357
+ </div>\r
93571
95358
  }\r
93572
95359
  </div>\r
93573
- </div>\r
93574
- `, styles: ["/* src/app/components/filing/filing.component.scss */\n:host {\n display: flex;\n width: 100%;\n min-width: 0;\n min-height: 480px;\n box-sizing: border-box;\n overflow: hidden;\n}\n:host .filing {\n position: relative;\n width: 100%;\n min-width: 0;\n min-height: 0;\n height: 100%;\n display: flex;\n flex-direction: column;\n gap: 16px;\n box-sizing: border-box;\n background: #ffffff;\n}\n:host .filing-title {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n:host .filing-title-text {\n color: #666666;\n}\n:host .filing-title-action {\n cursor: pointer;\n}\n:host .filing-header {\n display: flex;\n width: 100%;\n justify-content: flex-end;\n}\n:host .filing-content {\n min-height: 0;\n height: calc(100% - 44px);\n}\n:host .filing-content.edit {\n height: calc(100% - 95px);\n}\n:host .filing-content-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n background: transparent;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.pointer {\n cursor: pointer;\n}\n/*# sourceMappingURL=filing.component.css.map */\n", '/* src/app/components/filing/typography.scss */\n:host {\n --filing-modal-color-grey: #444444;\n --filing-modal-color-dark-blue: #485673;\n --filing-modal-color-grey-mid: #A0A0A0;\n --filing-modal-color-light-blue: #3778E4;\n --filing-modal-color-black: #444444;\n}\nmat-icon {\n font-family: "Material Icons" !important;\n font-size: 20px;\n height: 20px;\n width: 20px;\n line-height: 20px;\n}\nh1 {\n font-size: 24px;\n line-height: 28px;\n font-weight: 700;\n font-family: "Open Sans";\n margin: 0;\n}\nh2 {\n font-size: 22px;\n line-height: 26px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh3 {\n font-size: 18px;\n font-weight: 600;\n font-family: "Open Sans";\n margin-top: 0;\n margin-bottom: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 22px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 20px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\n.body-1-regular {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-1-bold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-1-semibold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 600;\n font-family: "Open Sans";\n}\n.body-2-regular {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-2-bold {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-3-regular {\n line-height: 20px;\n font-size: 16px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-regular {\n line-height: 18px;\n font-size: 18px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-bold {\n line-height: 20px;\n font-size: 20px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np {\n margin: 0;\n}\n.black {\n color: var(--filing-modal-color-black);\n}\n.grey {\n color: var(--filing-modal-color-grey);\n}\n.dark-blue {\n color: var(--filing-modal-color-dark-blue);\n}\n.grey-mid {\n color: var(--filing-modal-color-grey-mid);\n}\n.light-blue {\n color: var(--filing-modal-color-light-blue);\n}\n/*# sourceMappingURL=typography.css.map */\n', '/* src/app/components/filing/material-theme.scss */\n.filling {\n height: 100%;\n overflow: hidden;\n}\n* {\n box-sizing: border-box;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n}\n.filling {\n margin: 0;\n font-family: "Helvetica Neue", sans-serif;\n}\n.filing {\n --app-font-family:\n -apple-system,\n BlinkMacSystemFont,\n "Helvetica Neue",\n Helvetica,\n Arial,\n sans-serif;\n --mat-sys-background: #faf9fd;\n --mat-sys-error: #ba1a1a;\n --mat-sys-error-container: #ffdad6;\n --mat-sys-inverse-on-surface: #f2f0f4;\n --mat-sys-inverse-primary: #abc7ff;\n --mat-sys-inverse-surface: #2f3033;\n --mat-sys-on-background: #1a1b1f;\n --mat-sys-on-error: #ffffff;\n --mat-sys-on-error-container: #93000a;\n --mat-sys-on-primary: #ffffff;\n --mat-sys-on-primary-container: #00458f;\n --mat-sys-on-primary-fixed: #001b3f;\n --mat-sys-on-primary-fixed-variant: #00458f;\n --mat-sys-on-secondary: #ffffff;\n --mat-sys-on-secondary-container: #3e4759;\n --mat-sys-on-secondary-fixed: #131c2b;\n --mat-sys-on-secondary-fixed-variant: #3e4759;\n --mat-sys-on-surface: #1a1b1f;\n --mat-sys-on-surface-variant: var(--filing-modal-color-grey);\n --mat-sys-on-tertiary: #ffffff;\n --mat-sys-on-tertiary-container: #0000ef;\n --mat-sys-on-tertiary-fixed: #00006e;\n --mat-sys-on-tertiary-fixed-variant: #0000ef;\n --mat-sys-outline: #74777f;\n --mat-sys-outline-variant: #c4c6d0;\n --mat-sys-primary: #3778e4;\n --mat-sys-primary-container: #d7e3ff;\n --mat-sys-primary-fixed: #d7e3ff;\n --mat-sys-primary-fixed-dim: #abc7ff;\n --mat-sys-scrim: #000000;\n --mat-sys-secondary: #565e71;\n --mat-sys-secondary-container: #dae2f9;\n --mat-sys-secondary-fixed: #dae2f9;\n --mat-sys-secondary-fixed-dim: #bec6dc;\n --mat-sys-shadow: #000000;\n --mat-sys-surface: #faf9fd;\n --mat-sys-surface-bright: #faf9fd;\n --mat-sys-surface-container: #efedf0;\n --mat-sys-surface-container-high: #e9e7eb;\n --mat-sys-surface-container-highest: #e3e2e6;\n --mat-sys-surface-container-low: #f4f3f6;\n --mat-sys-surface-container-lowest: #ffffff;\n --mat-sys-surface-dim: #dbd9dd;\n --mat-sys-surface-tint: #005cbb;\n --mat-sys-surface-variant: #e0e2ec;\n --mat-sys-tertiary: #343dff;\n --mat-sys-tertiary-container: #e0e0ff;\n --mat-sys-tertiary-fixed: #e0e0ff;\n --mat-sys-tertiary-fixed-dim: #bec2ff;\n --mat-sys-neutral-variant20: #2d3038;\n --mat-sys-neutral10: #1a1b1f;\n --mdc-filled-button-container-height: 35px;\n --mdc-outlined-button-container-height: 35px;\n --mdc-text-button-label-text-color: #808090;\n --mdc-filled-button-label-text-weight: 600;\n --mdc-text-button-label-text-weight: 600;\n --mdc-filled-button-container-shape: 4px;\n --mdc-outlined-button-outline-color: none;\n --mdc-outlined-button-container-shape: 6px;\n --mat-sys-level0:\n 0px 0px 0px 0px rgba(0, 0, 0, 0.2),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.14),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level1:\n 0px 2px 1px -1px rgba(0, 0, 0, 0.2),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level2:\n 0px 3px 3px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 4px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 8px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level3:\n 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 6px 10px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level4:\n 0px 5px 5px -3px rgba(0, 0, 0, 0.2),\n 0px 8px 10px 1px rgba(0, 0, 0, 0.14),\n 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n --mat-sys-level5:\n 0px 7px 8px -4px rgba(0, 0, 0, 0.2),\n 0px 12px 17px 2px rgba(0, 0, 0, 0.14),\n 0px 5px 22px 4px rgba(0, 0, 0, 0.12);\n --mdc-outlined-button-label-text-size: 14px;\n --mdc-filled-button-label-text-size: 14px;\n --mdc-filled-text-field-label-text-size: 16px;\n --mat-sys-body-large: 400 1rem / 1.5rem var(--app-font-family);\n --mat-sys-body-large-font: var(--app-font-family);\n --mat-sys-body-large-line-height: 1.5rem;\n --mat-sys-body-large-size: 14px;\n --mat-sys-body-large-tracking: 0.031rem;\n --mat-sys-body-large-weight: 400;\n --mat-sys-body-medium: 400 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-body-medium-font: var(--app-font-family);\n --mat-sys-body-medium-line-height: 1.25rem;\n --mat-sys-body-medium-size: 0.875rem;\n --mat-sys-body-medium-tracking: 0.016rem;\n --mat-sys-body-medium-weight: 400;\n --mat-sys-body-small: 400 0.75rem / 1rem var(--app-font-family);\n --mat-sys-body-small-font: var(--app-font-family);\n --mat-sys-body-small-line-height: 1rem;\n --mat-sys-body-small-size: 0.75rem;\n --mat-sys-body-small-tracking: 0.025rem;\n --mat-sys-body-small-weight: 400;\n --mat-sys-display-large: 400 3.562rem / 4rem var(--app-font-family);\n --mat-sys-display-large-font: var(--app-font-family);\n --mat-sys-display-large-line-height: 4rem;\n --mat-sys-display-large-size: 3.562rem;\n --mat-sys-display-large-tracking: -0.016rem;\n --mat-sys-display-large-weight: 400;\n --mat-sys-display-medium: 400 2.812rem / 3.25rem var(--app-font-family);\n --mat-sys-display-medium-font: var(--app-font-family);\n --mat-sys-display-medium-line-height: 3.25rem;\n --mat-sys-display-medium-size: 2.812rem;\n --mat-sys-display-medium-tracking: 0;\n --mat-sys-display-medium-weight: 400;\n --mat-sys-display-small: 400 2.25rem / 2.75rem var(--app-font-family);\n --mat-sys-display-small-font: var(--app-font-family);\n --mat-sys-display-small-line-height: 2.75rem;\n --mat-sys-display-small-size: 2.25rem;\n --mat-sys-display-small-tracking: 0;\n --mat-sys-display-small-weight: 400;\n --mat-sys-headline-large: 400 2rem / 2.5rem var(--app-font-family);\n --mat-sys-headline-large-font: var(--app-font-family);\n --mat-sys-headline-large-line-height: 2.5rem;\n --mat-sys-headline-large-size: 2rem;\n --mat-sys-headline-large-tracking: 0;\n --mat-sys-headline-large-weight: 400;\n --mat-sys-headline-medium: 400 1.75rem / 2.25rem var(--app-font-family);\n --mat-sys-headline-medium-font: var(--app-font-family);\n --mat-sys-headline-medium-line-height: 2.25rem;\n --mat-sys-headline-medium-size: 1.75rem;\n --mat-sys-headline-medium-tracking: 0;\n --mat-sys-headline-medium-weight: 400;\n --mat-sys-headline-small: 400 1.5rem / 2rem var(--app-font-family);\n --mat-sys-headline-small-font: var(--app-font-family);\n --mat-sys-headline-small-line-height: 2rem;\n --mat-sys-headline-small-size: 1.5rem;\n --mat-sys-headline-small-tracking: 0;\n --mat-sys-headline-small-weight: 400;\n --mat-sys-label-large: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-label-large-font: var(--app-font-family);\n --mat-sys-label-large-line-height: 1.25rem;\n --mat-sys-label-large-size: 0.875rem;\n --mat-sys-label-large-tracking: 0.006rem;\n --mat-sys-label-large-weight: 500;\n --mat-sys-label-large-weight-prominent: 700;\n --mat-sys-label-medium: 500 0.75rem / 1rem var(--app-font-family);\n --mat-sys-label-medium-font: var(--app-font-family);\n --mat-sys-label-medium-line-height: 1rem;\n --mat-sys-label-medium-size: 0.75rem;\n --mat-sys-label-medium-tracking: 0.031rem;\n --mat-sys-label-medium-weight: 500;\n --mat-sys-label-medium-weight-prominent: 700;\n --mat-sys-label-small: 500 0.688rem / 1rem var(--app-font-family);\n --mat-sys-label-small-font: var(--app-font-family);\n --mat-sys-label-small-line-height: 1rem;\n --mat-sys-label-small-size: 0.688rem;\n --mat-sys-label-small-tracking: 0.031rem;\n --mat-sys-label-small-weight: 500;\n --mat-sys-title-large: 400 1.375rem / 1.75rem var(--app-font-family);\n --mat-sys-title-large-font: var(--app-font-family);\n --mat-sys-title-large-line-height: 1.75rem;\n --mat-sys-title-large-size: 1.375rem;\n --mat-sys-title-large-tracking: 0;\n --mat-sys-title-large-weight: 400;\n --mat-sys-title-medium: 500 1rem / 1.5rem var(--app-font-family);\n --mat-sys-title-medium-font: var(--app-font-family);\n --mat-sys-title-medium-line-height: 1.5rem;\n --mat-sys-title-medium-size: 1rem;\n --mat-sys-title-medium-tracking: 0.009rem;\n --mat-sys-title-medium-weight: 500;\n --mat-sys-title-small: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-title-small-font: var(--app-font-family);\n --mat-sys-title-small-line-height: 1.25rem;\n --mat-sys-title-small-size: 0.875rem;\n --mat-sys-title-small-tracking: 0.006rem;\n --mat-sys-title-small-weight: 500;\n --mat-sys-corner-extra-large: 28px;\n --mat-sys-corner-extra-large-top: 28px 28px 0 0;\n --mat-sys-corner-extra-small: 4px;\n --mat-sys-corner-extra-small-top: 4px 4px 0 0;\n --mat-sys-corner-full: 9999px;\n --mat-sys-corner-large: 16px;\n --mat-sys-corner-large-end: 0 16px 16px 0;\n --mat-sys-corner-large-start: 16px 0 0 16px;\n --mat-sys-corner-large-top: 16px 16px 0 0;\n --mat-sys-corner-medium: 12px;\n --mat-sys-corner-none: 0;\n --mat-sys-corner-small: 8px;\n --mat-sys-dragged-state-layer-opacity: 0.16;\n --mat-sys-focus-state-layer-opacity: 0.12;\n --mat-sys-hover-state-layer-opacity: 0.08;\n --mat-sys-pressed-state-layer-opacity: 0.12;\n}\n.filing .mat-primary .mat-pseudo-checkbox-checked,\n.filing .mat-primary .mat-pseudo-checkbox-indeterminate {\n background: transparent !important;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox {\n width: 24px;\n height: 24px;\n flex-basis: 24px;\n padding: 0;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__background {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n top: 0;\n left: 0;\n border: 3px solid var(--filing-modal-color-grey);\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__checkmark {\n height: 20px;\n width: 20px;\n font-size: 20px;\n top: 1px;\n left: 1px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__ripple,\n.filing .mat-mdc-checkbox[cardView] .mat-ripple {\n display: none;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-label {\n padding-left: 8px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-button__label {\n line-height: 10px;\n}\n/*# sourceMappingURL=material-theme.css.map */\n'] }]
95360
+ </div>`, styles: ["/* src/app/components/filing/filing.component.scss */\n:host {\n display: flex;\n width: 100%;\n min-width: 0;\n min-height: 480px;\n box-sizing: border-box;\n overflow: hidden;\n}\n:host .filing {\n position: relative;\n width: 100%;\n min-width: 0;\n min-height: 0;\n height: 100%;\n display: flex;\n flex-direction: column;\n gap: 16px;\n box-sizing: border-box;\n background: #ffffff;\n}\n:host .filing-title {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n:host .filing-title-text {\n color: #666666;\n}\n:host .filing-title-action {\n cursor: pointer;\n}\n:host .filing-header {\n display: flex;\n width: 100%;\n justify-content: flex-end;\n}\n:host .filing-content {\n min-height: 0;\n height: calc(100% - 44px);\n}\n:host .filing-content.edit {\n height: calc(100% - 95px);\n}\n:host .filing-content-loading {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n background: transparent;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n.pointer {\n cursor: pointer;\n}\n/*# sourceMappingURL=filing.component.css.map */\n", '/* src/app/components/filing/typography.scss */\n:host {\n --filing-modal-color-grey: #444444;\n --filing-modal-color-dark-blue: #485673;\n --filing-modal-color-grey-mid: #A0A0A0;\n --filing-modal-color-light-blue: #3778E4;\n --filing-modal-color-black: #444444;\n}\nmat-icon {\n font-family: "Material Icons" !important;\n font-size: 20px;\n height: 20px;\n width: 20px;\n line-height: 20px;\n}\nh1 {\n font-size: 24px;\n line-height: 28px;\n font-weight: 700;\n font-family: "Open Sans";\n margin: 0;\n}\nh2 {\n font-size: 22px;\n line-height: 26px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh3 {\n font-size: 18px;\n font-weight: 600;\n font-family: "Open Sans";\n margin-top: 0;\n margin-bottom: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 22px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\nh4 {\n font-size: 16px;\n line-height: 20px;\n font-weight: 600;\n font-family: "Open Sans";\n margin: 0;\n}\n.body-1-regular {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-1-bold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-1-semibold {\n line-height: 20px;\n font-size: 14px !important;\n font-weight: 600;\n font-family: "Open Sans";\n}\n.body-2-regular {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-2-bold {\n line-height: 20px;\n font-size: 12px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\n.body-3-regular {\n line-height: 20px;\n font-size: 16px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-regular {\n line-height: 18px;\n font-size: 18px !important;\n font-weight: 400;\n font-family: "Open Sans";\n}\n.body-4-bold {\n line-height: 20px;\n font-size: 20px !important;\n font-weight: 700;\n font-family: "Open Sans";\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np {\n margin: 0;\n}\n.black {\n color: var(--filing-modal-color-black);\n}\n.grey {\n color: var(--filing-modal-color-grey);\n}\n.dark-blue {\n color: var(--filing-modal-color-dark-blue);\n}\n.grey-mid {\n color: var(--filing-modal-color-grey-mid);\n}\n.light-blue {\n color: var(--filing-modal-color-light-blue);\n}\n/*# sourceMappingURL=typography.css.map */\n', '/* src/app/components/filing/material-theme.scss */\n.filling {\n height: 100%;\n overflow: hidden;\n}\n* {\n box-sizing: border-box;\n}\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0;\n}\n.filling {\n margin: 0;\n font-family: "Helvetica Neue", sans-serif;\n}\n.filing {\n --app-font-family:\n -apple-system,\n BlinkMacSystemFont,\n "Helvetica Neue",\n Helvetica,\n Arial,\n sans-serif;\n --mat-sys-background: #faf9fd;\n --mat-sys-error: #ba1a1a;\n --mat-sys-error-container: #ffdad6;\n --mat-sys-inverse-on-surface: #f2f0f4;\n --mat-sys-inverse-primary: #abc7ff;\n --mat-sys-inverse-surface: #2f3033;\n --mat-sys-on-background: #1a1b1f;\n --mat-sys-on-error: #ffffff;\n --mat-sys-on-error-container: #93000a;\n --mat-sys-on-primary: #ffffff;\n --mat-sys-on-primary-container: #00458f;\n --mat-sys-on-primary-fixed: #001b3f;\n --mat-sys-on-primary-fixed-variant: #00458f;\n --mat-sys-on-secondary: #ffffff;\n --mat-sys-on-secondary-container: #3e4759;\n --mat-sys-on-secondary-fixed: #131c2b;\n --mat-sys-on-secondary-fixed-variant: #3e4759;\n --mat-sys-on-surface: #1a1b1f;\n --mat-sys-on-surface-variant: var(--filing-modal-color-grey);\n --mat-sys-on-tertiary: #ffffff;\n --mat-sys-on-tertiary-container: #0000ef;\n --mat-sys-on-tertiary-fixed: #00006e;\n --mat-sys-on-tertiary-fixed-variant: #0000ef;\n --mat-sys-outline: #74777f;\n --mat-sys-outline-variant: #c4c6d0;\n --mat-sys-primary: #3778e4;\n --mat-sys-primary-container: #d7e3ff;\n --mat-sys-primary-fixed: #d7e3ff;\n --mat-sys-primary-fixed-dim: #abc7ff;\n --mat-sys-scrim: #000000;\n --mat-sys-secondary: #565e71;\n --mat-sys-secondary-container: #dae2f9;\n --mat-sys-secondary-fixed: #dae2f9;\n --mat-sys-secondary-fixed-dim: #bec6dc;\n --mat-sys-shadow: #000000;\n --mat-sys-surface: #faf9fd;\n --mat-sys-surface-bright: #faf9fd;\n --mat-sys-surface-container: #efedf0;\n --mat-sys-surface-container-high: #e9e7eb;\n --mat-sys-surface-container-highest: #e3e2e6;\n --mat-sys-surface-container-low: #f4f3f6;\n --mat-sys-surface-container-lowest: #ffffff;\n --mat-sys-surface-dim: #dbd9dd;\n --mat-sys-surface-tint: #005cbb;\n --mat-sys-surface-variant: #e0e2ec;\n --mat-sys-tertiary: #343dff;\n --mat-sys-tertiary-container: #e0e0ff;\n --mat-sys-tertiary-fixed: #e0e0ff;\n --mat-sys-tertiary-fixed-dim: #bec2ff;\n --mat-sys-neutral-variant20: #2d3038;\n --mat-sys-neutral10: #1a1b1f;\n --mdc-filled-button-container-height: 35px;\n --mdc-outlined-button-container-height: 35px;\n --mdc-text-button-label-text-color: #808090;\n --mdc-filled-button-label-text-weight: 600;\n --mdc-text-button-label-text-weight: 600;\n --mdc-filled-button-container-shape: 4px;\n --mdc-outlined-button-outline-color: none;\n --mdc-outlined-button-container-shape: 6px;\n --mat-sys-level0:\n 0px 0px 0px 0px rgba(0, 0, 0, 0.2),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.14),\n 0px 0px 0px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level1:\n 0px 2px 1px -1px rgba(0, 0, 0, 0.2),\n 0px 1px 1px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 3px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level2:\n 0px 3px 3px -2px rgba(0, 0, 0, 0.2),\n 0px 3px 4px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 8px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level3:\n 0px 3px 5px -1px rgba(0, 0, 0, 0.2),\n 0px 6px 10px 0px rgba(0, 0, 0, 0.14),\n 0px 1px 18px 0px rgba(0, 0, 0, 0.12);\n --mat-sys-level4:\n 0px 5px 5px -3px rgba(0, 0, 0, 0.2),\n 0px 8px 10px 1px rgba(0, 0, 0, 0.14),\n 0px 3px 14px 2px rgba(0, 0, 0, 0.12);\n --mat-sys-level5:\n 0px 7px 8px -4px rgba(0, 0, 0, 0.2),\n 0px 12px 17px 2px rgba(0, 0, 0, 0.14),\n 0px 5px 22px 4px rgba(0, 0, 0, 0.12);\n --mdc-outlined-button-label-text-size: 14px;\n --mdc-filled-button-label-text-size: 14px;\n --mdc-filled-text-field-label-text-size: 16px;\n --mat-sys-body-large: 400 1rem / 1.5rem var(--app-font-family);\n --mat-sys-body-large-font: var(--app-font-family);\n --mat-sys-body-large-line-height: 1.5rem;\n --mat-sys-body-large-size: 14px;\n --mat-sys-body-large-tracking: 0.031rem;\n --mat-sys-body-large-weight: 400;\n --mat-sys-body-medium: 400 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-body-medium-font: var(--app-font-family);\n --mat-sys-body-medium-line-height: 1.25rem;\n --mat-sys-body-medium-size: 0.875rem;\n --mat-sys-body-medium-tracking: 0.016rem;\n --mat-sys-body-medium-weight: 400;\n --mat-sys-body-small: 400 0.75rem / 1rem var(--app-font-family);\n --mat-sys-body-small-font: var(--app-font-family);\n --mat-sys-body-small-line-height: 1rem;\n --mat-sys-body-small-size: 0.75rem;\n --mat-sys-body-small-tracking: 0.025rem;\n --mat-sys-body-small-weight: 400;\n --mat-sys-display-large: 400 3.562rem / 4rem var(--app-font-family);\n --mat-sys-display-large-font: var(--app-font-family);\n --mat-sys-display-large-line-height: 4rem;\n --mat-sys-display-large-size: 3.562rem;\n --mat-sys-display-large-tracking: -0.016rem;\n --mat-sys-display-large-weight: 400;\n --mat-sys-display-medium: 400 2.812rem / 3.25rem var(--app-font-family);\n --mat-sys-display-medium-font: var(--app-font-family);\n --mat-sys-display-medium-line-height: 3.25rem;\n --mat-sys-display-medium-size: 2.812rem;\n --mat-sys-display-medium-tracking: 0;\n --mat-sys-display-medium-weight: 400;\n --mat-sys-display-small: 400 2.25rem / 2.75rem var(--app-font-family);\n --mat-sys-display-small-font: var(--app-font-family);\n --mat-sys-display-small-line-height: 2.75rem;\n --mat-sys-display-small-size: 2.25rem;\n --mat-sys-display-small-tracking: 0;\n --mat-sys-display-small-weight: 400;\n --mat-sys-headline-large: 400 2rem / 2.5rem var(--app-font-family);\n --mat-sys-headline-large-font: var(--app-font-family);\n --mat-sys-headline-large-line-height: 2.5rem;\n --mat-sys-headline-large-size: 2rem;\n --mat-sys-headline-large-tracking: 0;\n --mat-sys-headline-large-weight: 400;\n --mat-sys-headline-medium: 400 1.75rem / 2.25rem var(--app-font-family);\n --mat-sys-headline-medium-font: var(--app-font-family);\n --mat-sys-headline-medium-line-height: 2.25rem;\n --mat-sys-headline-medium-size: 1.75rem;\n --mat-sys-headline-medium-tracking: 0;\n --mat-sys-headline-medium-weight: 400;\n --mat-sys-headline-small: 400 1.5rem / 2rem var(--app-font-family);\n --mat-sys-headline-small-font: var(--app-font-family);\n --mat-sys-headline-small-line-height: 2rem;\n --mat-sys-headline-small-size: 1.5rem;\n --mat-sys-headline-small-tracking: 0;\n --mat-sys-headline-small-weight: 400;\n --mat-sys-label-large: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-label-large-font: var(--app-font-family);\n --mat-sys-label-large-line-height: 1.25rem;\n --mat-sys-label-large-size: 0.875rem;\n --mat-sys-label-large-tracking: 0.006rem;\n --mat-sys-label-large-weight: 500;\n --mat-sys-label-large-weight-prominent: 700;\n --mat-sys-label-medium: 500 0.75rem / 1rem var(--app-font-family);\n --mat-sys-label-medium-font: var(--app-font-family);\n --mat-sys-label-medium-line-height: 1rem;\n --mat-sys-label-medium-size: 0.75rem;\n --mat-sys-label-medium-tracking: 0.031rem;\n --mat-sys-label-medium-weight: 500;\n --mat-sys-label-medium-weight-prominent: 700;\n --mat-sys-label-small: 500 0.688rem / 1rem var(--app-font-family);\n --mat-sys-label-small-font: var(--app-font-family);\n --mat-sys-label-small-line-height: 1rem;\n --mat-sys-label-small-size: 0.688rem;\n --mat-sys-label-small-tracking: 0.031rem;\n --mat-sys-label-small-weight: 500;\n --mat-sys-title-large: 400 1.375rem / 1.75rem var(--app-font-family);\n --mat-sys-title-large-font: var(--app-font-family);\n --mat-sys-title-large-line-height: 1.75rem;\n --mat-sys-title-large-size: 1.375rem;\n --mat-sys-title-large-tracking: 0;\n --mat-sys-title-large-weight: 400;\n --mat-sys-title-medium: 500 1rem / 1.5rem var(--app-font-family);\n --mat-sys-title-medium-font: var(--app-font-family);\n --mat-sys-title-medium-line-height: 1.5rem;\n --mat-sys-title-medium-size: 1rem;\n --mat-sys-title-medium-tracking: 0.009rem;\n --mat-sys-title-medium-weight: 500;\n --mat-sys-title-small: 500 0.875rem / 1.25rem var(--app-font-family);\n --mat-sys-title-small-font: var(--app-font-family);\n --mat-sys-title-small-line-height: 1.25rem;\n --mat-sys-title-small-size: 0.875rem;\n --mat-sys-title-small-tracking: 0.006rem;\n --mat-sys-title-small-weight: 500;\n --mat-sys-corner-extra-large: 28px;\n --mat-sys-corner-extra-large-top: 28px 28px 0 0;\n --mat-sys-corner-extra-small: 4px;\n --mat-sys-corner-extra-small-top: 4px 4px 0 0;\n --mat-sys-corner-full: 9999px;\n --mat-sys-corner-large: 16px;\n --mat-sys-corner-large-end: 0 16px 16px 0;\n --mat-sys-corner-large-start: 16px 0 0 16px;\n --mat-sys-corner-large-top: 16px 16px 0 0;\n --mat-sys-corner-medium: 12px;\n --mat-sys-corner-none: 0;\n --mat-sys-corner-small: 8px;\n --mat-sys-dragged-state-layer-opacity: 0.16;\n --mat-sys-focus-state-layer-opacity: 0.12;\n --mat-sys-hover-state-layer-opacity: 0.08;\n --mat-sys-pressed-state-layer-opacity: 0.12;\n}\n.filing .mat-primary .mat-pseudo-checkbox-checked,\n.filing .mat-primary .mat-pseudo-checkbox-indeterminate {\n background: transparent !important;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox {\n width: 24px;\n height: 24px;\n flex-basis: 24px;\n padding: 0;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__background {\n width: 24px;\n height: 24px;\n border-radius: 6px;\n top: 0;\n left: 0;\n border: 3px solid var(--filing-modal-color-grey);\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__checkmark {\n height: 20px;\n width: 20px;\n font-size: 20px;\n top: 1px;\n left: 1px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-checkbox__ripple,\n.filing .mat-mdc-checkbox[cardView] .mat-ripple {\n display: none;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-label {\n padding-left: 8px;\n}\n.filing .mat-mdc-checkbox[cardView] .mdc-button__label {\n line-height: 10px;\n}\n/*# sourceMappingURL=material-theme.css.map */\n'] }]
93575
95361
  }], () => [], null);
93576
95362
  })();
93577
95363
  (() => {
93578
- (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 82 });
95364
+ (typeof ngDevMode === "undefined" || ngDevMode) && \u0275setClassDebugInfo(FilingComponent, { className: "FilingComponent", filePath: "src/app/components/filing/filing.component.ts", lineNumber: 86 });
93579
95365
  })();
93580
95366
  }
93581
95367
  });
@@ -97779,6 +99565,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
97779
99565
  Directors: "Directors",
97780
99566
  Officers: "Officers",
97781
99567
  "Certified By": "Certified By",
99568
+ "Certified by": "Certified by",
97782
99569
  "Expand all": "Expand all",
97783
99570
  "Collapse all": "Collapse all",
97784
99571
  Add: "Add",
@@ -97801,6 +99588,7 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
97801
99588
  "Cancel Edits": "Cancel Edits",
97802
99589
  Cancel: "Cancel",
97803
99590
  NOTE: "NOTE",
99591
+ "NOTE A new draft needs to be generated as the Entity was changed since the last draft was produced.": "NOTE A new draft needs to be generated as the Entity was changed since the last draft was produced.",
97804
99592
  "A new draft needs to be generated as the Entity was changed since the last draft was produced.": "A new draft needs to be generated as the Entity was changed since the last draft was produced.",
97805
99593
  "Terms and Conditions": "Terms and Conditions",
97806
99594
  "I have read and agree to the Terms and Conditions": "I have read and agree to the Terms and Conditions",
@@ -98163,10 +99951,25 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
98163
99951
  "Existing Officer": "Existing Officer",
98164
99952
  "No supporting documents have been added to UEM for this entity. Add them in UEM, then try again.": "No supporting documents have been added to UEM for this entity. Add them in UEM, then try again.",
98165
99953
  "All supporting documents have already been added.": "All supporting documents have already been added.",
99954
+ "File British Columbia Notice of Change of Directors": "File British Columbia Notice of Change of Directors",
99955
+ "There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing.": "There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing.",
99956
+ "Directors will be added and/or deleted as part of this filing": "Directors will be added and/or deleted as part of this filing",
99957
+ "Date Directors were added or deleted": "Date Directors were added or deleted",
99958
+ "The date on which the individual(s) became or ceased to be a director. This date must be today's date or in the past.": "The date on which the individual(s) became or ceased to be a director. This date must be today's date or in the past.",
99959
+ "These are the directors on the corporate register as of {{date}}. Director appointments, cessations and changes to a director's details are made on the task before this filing \u2014 they cannot be added, ceased, or edited here. Ceasing or adding a director requires the checkbox and date in Filing Details above.": "These are the directors on the corporate register as of {{date}}. Director appointments, cessations and changes to a director's details are made on the task before this filing \u2014 they cannot be added, ceased, or edited here. Ceasing or adding a director requires the checkbox and date in Filing Details above.",
99960
+ "defaults to Registered Office mailing address": "defaults to Registered Office mailing address",
99961
+ "Does this company wish to be reminded to file its annual reports? If an email address is specified, the reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered or head office of the company.": "Does this company wish to be reminded to file its annual reports? If an email address is specified, the reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered or head office of the company.",
99962
+ "Annual Report Reminder": "Annual Report Reminder",
99963
+ "Yes, send the annual report reminder": "Yes, send the annual report reminder",
99964
+ "No, I do not need to be reminded": "No, I do not need to be reminded",
99965
+ "Director Information": "Director Information",
99966
+ "Filing Details": "Filing Details",
99967
+ "Incorporation Number": "Incorporation Number",
99968
+ "Filing Fee": "Filing Fee",
98166
99969
  "File British Columbia Articles of Incorporation": "File British Columbia Articles of Incorporation",
98167
99970
  Named: "Named",
98168
- "Proposed Corporate Name": "Proposed Corporate Name",
98169
- "Name Reservation #": "Name Reservation #",
99971
+ "Company Name": "Company Name",
99972
+ "Name Reservation (NR) Number": "Name Reservation (NR) Number",
98170
99973
  "Name preview \u2014 appears exactly as entered": "Name preview \u2014 appears exactly as entered",
98171
99974
  "Company Email": "Company Email",
98172
99975
  "There is an additional fee of {{fee}} for an effective date in the future.": "There is an additional fee of {{fee}} for an effective date in the future.",
@@ -98234,8 +100037,9 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
98234
100037
  "Canadian Resident": "R\xE9sident canadien",
98235
100038
  Officers: "Officiers",
98236
100039
  "Certified By": "Certifi\xE9 par",
100040
+ "Certified by": "Certifi\xE9 par",
98237
100041
  "Expand all": "Afficher tout",
98238
- "Collapse all": "Masquer tout",
100042
+ "Collapse all": "Tout Masquer",
98239
100043
  Add: "Ajouter",
98240
100044
  Update: "Mettre \xE0 jour",
98241
100045
  Cease: "Cesser",
@@ -98251,11 +100055,12 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
98251
100055
  "The following issues need to be resolved before proceeding:": "Les probl\xE8mes suivants doivent \xEAtre r\xE9solus avant de poursuivre :",
98252
100056
  "All addresses must have a street type and direction specified.": "Toutes les adresses doivent inclure un type de rue et une direction.",
98253
100057
  "Validate & Generate Draft": "Valider et g\xE9n\xE9rer le brouillon",
98254
- File: "D\xE9poser",
100058
+ File: "Fichier",
98255
100059
  Edit: "Modifier",
98256
100060
  "Cancel Edits": "Annuler les modifications",
98257
100061
  Cancel: "Annuler",
98258
100062
  NOTE: "REMARQUE",
100063
+ "NOTE A new draft needs to be generated as the Entity was changed since the last draft was produced.": "REMARQUE Un nouveau projet doit \xEAtre g\xE9n\xE9r\xE9 car l'entit\xE9 a \xE9t\xE9 modifi\xE9e depuis la production du dernier projet.",
98259
100064
  "A new draft needs to be generated as the Entity was changed since the last draft was produced.": "Un nouveau brouillon doit \xEAtre g\xE9n\xE9r\xE9 car l'entit\xE9 a \xE9t\xE9 modifi\xE9e depuis la production du dernier brouillon.",
98260
100065
  "Terms and Conditions": "Termes et conditions",
98261
100066
  "I have read and agree to the Terms and Conditions": "J'ai lu et j'accepte les Termes et conditions",
@@ -98494,10 +100299,24 @@ Note: Recommended intrinsic image size is calculated assuming a maximum DPR of $
98494
100299
  "Existing Officer": "Dirigeant existant",
98495
100300
  "No supporting documents have been added to UEM for this entity. Add them in UEM, then try again.": "Aucun document justificatif n'a \xE9t\xE9 ajout\xE9 dans UEM pour cette entit\xE9. Ajoutez-les dans UEM, puis r\xE9essayez.",
98496
100301
  "All supporting documents have already been added.": "Tous les documents justificatifs ont d\xE9j\xE0 \xE9t\xE9 ajout\xE9s.",
98497
- "File British Columbia Articles of Incorporation": "D\xE9poser les statuts constitutifs de la Colombie-Britannique",
100302
+ "File British Columbia Notice of Change of Directors": "D\xE9poser l'avis de changement d'administrateurs de la Colombie-Britannique",
100303
+ "There is no fee for changing the legal name or the address of a director. A filing fee applies when directors are added or deleted as part of this filing.": "Aucuns frais ne s'appliquent au changement du nom l\xE9gal ou de l'adresse d'un administrateur. Des frais de d\xE9p\xF4t s'appliquent lorsque des administrateurs sont ajout\xE9s ou retir\xE9s dans le cadre de ce d\xE9p\xF4t.",
100304
+ "Directors will be added and/or deleted as part of this filing": "Des administrateurs seront ajout\xE9s et/ou retir\xE9s dans le cadre de ce d\xE9p\xF4t",
100305
+ "Date Directors were added or deleted": "Date d'ajout ou de retrait des administrateurs",
100306
+ "The date on which the individual(s) became or ceased to be a director. This date must be today's date or in the past.": "La date \xE0 laquelle la ou les personnes sont devenues administrateurs ou ont cess\xE9 de l'\xEAtre. Cette date doit \xEAtre la date d'aujourd'hui ou une date pass\xE9e.",
100307
+ "These are the directors on the corporate register as of {{date}}. Director appointments, cessations and changes to a director's details are made on the task before this filing \u2014 they cannot be added, ceased, or edited here. Ceasing or adding a director requires the checkbox and date in Filing Details above.": "Voici les administrateurs inscrits au registre de la soci\xE9t\xE9 au {{date}}. Les nominations, cessations et modifications des renseignements d'un administrateur se font dans la t\xE2che avant ce d\xE9p\xF4t \u2014 ils ne peuvent \xEAtre ajout\xE9s, cess\xE9s ou modifi\xE9s ici. L'ajout ou la cessation d'un administrateur exige la case \xE0 cocher et la date dans les D\xE9tails du d\xE9p\xF4t ci-dessus.",
100308
+ "defaults to Registered Office mailing address": "par d\xE9faut, l'adresse postale du si\xE8ge social",
100309
+ "Does this company wish to be reminded to file its annual reports? If an email address is specified, the reminder will be sent to the company's email address. Otherwise, the reminder will be mailed to the registered or head office of the company.": "Cette soci\xE9t\xE9 souhaite-t-elle recevoir un rappel pour le d\xE9p\xF4t de ses rapports annuels ? Si une adresse courriel est indiqu\xE9e, le rappel sera envoy\xE9 \xE0 l'adresse courriel de la soci\xE9t\xE9. Sinon, le rappel sera post\xE9 au si\xE8ge social ou au bureau principal de la soci\xE9t\xE9.",
100310
+ "Annual Report Reminder": "Rappel du rapport annuel",
100311
+ "Yes, send the annual report reminder": "Oui, envoyer le rappel du rapport annuel",
100312
+ "No, I do not need to be reminded": "Non, je n'ai pas besoin de rappel",
100313
+ "Director Information": "Renseignements sur les administrateurs",
100314
+ "Filing Details": "D\xE9tails du d\xE9p\xF4t",
100315
+ "Incorporation Number": "Num\xE9ro de constitution",
100316
+ "Filing Fee": "Frais de d\xE9p\xF4t",
98498
100317
  Named: "D\xE9nomination",
98499
- "Proposed Corporate Name": "D\xE9nomination sociale propos\xE9e",
98500
- "Name Reservation #": "N\xB0 de r\xE9servation de nom (NR)",
100318
+ "Company Name": "Nom de la soci\xE9t\xE9",
100319
+ "Name Reservation (NR) Number": "Num\xE9ro de r\xE9servation de nom (NR)",
98501
100320
  "Name preview \u2014 appears exactly as entered": "Aper\xE7u du nom \u2014 appara\xEEt exactement tel que saisi",
98502
100321
  "Company Email": "Courriel de la soci\xE9t\xE9",
98503
100322
  "There is an additional fee of {{fee}} for an effective date in the future.": "Des frais suppl\xE9mentaires de {{fee}} s'appliquent pour une date d'entr\xE9e en vigueur future.",