@voplus/morpho-csp 1.2.59 → 1.2.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/es/Modules.js +2 -2
  2. package/es/data/clda-setting/interfaces.d.ts +10 -1
  3. package/es/data/clda-setting/types.d.ts +18 -2
  4. package/es/data/incorporation-clda/interfaces.d.ts +3 -1
  5. package/es/data/incorporation-form/metas.d.ts +4 -2
  6. package/es/data/incorporation-form/metas.js +13 -4
  7. package/es/data/incorporation-form/metas.js.map +1 -1
  8. package/es/modules/corporate/clda/components/CLDAProperties/index.d.ts +1 -0
  9. package/es/modules/corporate/clda/components/CLDAProperties/index.js +2 -1
  10. package/es/modules/corporate/clda/components/CLDAProperties/index.js.map +1 -1
  11. package/es/modules/corporate/clda/components/CLDAProperties/index.less +5 -0
  12. package/es/modules/corporate/clda/components/CLDASendForm/index.js +15 -12
  13. package/es/modules/corporate/clda/components/CLDASendForm/index.js.map +1 -1
  14. package/es/modules/corporate/clda/controls/CLDAMenu/index.js +2 -2
  15. package/es/modules/corporate/clda/controls/CLDAMenu/index.js.map +1 -1
  16. package/es/modules/corporate/clda/pages/CLDASettingsPage/Content.js +69 -42
  17. package/es/modules/corporate/clda/pages/CLDASettingsPage/Content.js.map +1 -1
  18. package/es/modules/corporate/clda/pages/CLDASettingsPage/index.less +17 -4
  19. package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.js +26 -12
  20. package/es/modules/self-registration/incorporation-clda/components/DetailsStep/index.js.map +1 -1
  21. package/es/modules/self-registration/incorporation-clda/components/StartStep/index.js +10 -4
  22. package/es/modules/self-registration/incorporation-clda/components/StartStep/index.js.map +1 -1
  23. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js +22 -19
  24. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js.map +1 -1
  25. package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.less +28 -1
  26. package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.js +2 -5
  27. package/es/modules/self-registration/incorporation-form/CompanyInfoForm/index.js.map +1 -1
  28. package/es/modules/self-registration/incorporation-form/IncorporationFormRoutes.js +1 -1
  29. package/es/modules/self-registration/incorporation-form/IncorporationFormRoutes.js.map +1 -1
  30. package/es/modules/self-registration/incorporation-form/components/CompanyInfo/index.js +69 -66
  31. package/es/modules/self-registration/incorporation-form/components/CompanyInfo/index.js.map +1 -1
  32. package/es/modules/self-registration/incorporation-form/components/IncorporationFormProperties/index.d.ts +6 -0
  33. package/es/modules/self-registration/incorporation-form/components/{IncorporationFromProperties → IncorporationFormProperties}/index.js +10 -10
  34. package/es/modules/self-registration/incorporation-form/components/IncorporationFormProperties/index.js.map +1 -0
  35. package/es/modules/self-registration/incorporation-form/components/IncorporationFormQuickViewDialog/index.d.ts +7 -0
  36. package/es/modules/self-registration/incorporation-form/components/IncorporationFormQuickViewDialog/index.js +36 -0
  37. package/es/modules/self-registration/incorporation-form/components/IncorporationFormQuickViewDialog/index.js.map +1 -0
  38. package/es/modules/self-registration/incorporation-form/components/IncorporationFormQuickViewDialog/index.less +13 -0
  39. package/es/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.d.ts +5 -0
  40. package/es/modules/self-registration/incorporation-form/components/{IncorporationFromReview → IncorporationFormReview}/index.js +4 -7
  41. package/es/modules/self-registration/incorporation-form/components/IncorporationFormReview/index.js.map +1 -0
  42. package/es/modules/self-registration/incorporation-form/components/OfficerList/index.js +31 -33
  43. package/es/modules/self-registration/incorporation-form/components/OfficerList/index.js.map +1 -1
  44. package/es/modules/self-registration/incorporation-form/components/OfficerList/state.d.ts +1 -3
  45. package/es/modules/self-registration/incorporation-form/components/OfficerList/state.js +0 -11
  46. package/es/modules/self-registration/incorporation-form/components/OfficerList/state.js.map +1 -1
  47. package/es/modules/self-registration/incorporation-form/components/ShareholderList/index.js +13 -18
  48. package/es/modules/self-registration/incorporation-form/components/ShareholderList/index.js.map +1 -1
  49. package/es/modules/self-registration/incorporation-form/components/ShareholderList/state.d.ts +1 -3
  50. package/es/modules/self-registration/incorporation-form/components/ShareholderList/state.js +0 -11
  51. package/es/modules/self-registration/incorporation-form/components/ShareholderList/state.js.map +1 -1
  52. package/es/modules/self-registration/incorporation-form/pages/IncoprorationFormClientView/index.js +2 -2
  53. package/es/modules/self-registration/incorporation-form/pages/IncorporationFormDefaultView/index.d.ts +3 -0
  54. package/es/modules/self-registration/incorporation-form/pages/{IncorporationFromDefaultView → IncorporationFormDefaultView}/index.js +6 -6
  55. package/es/modules/self-registration/incorporation-form/pages/{IncorporationFromDefaultView → IncorporationFormDefaultView}/index.js.map +1 -1
  56. package/es/modules/self-registration/shopping-cart/ChooseService/index.js +2 -2
  57. package/es/modules/self-registration/shopping-cart/ChooseService/index.js.map +1 -1
  58. package/es/routes.d.ts +1 -1
  59. package/es/routes.js +15 -15
  60. package/es/routes.js.map +1 -1
  61. package/package.json +1 -1
  62. package/es/modules/self-registration/incorporation-form/components/IncorporationFromProperties/index.d.ts +0 -5
  63. package/es/modules/self-registration/incorporation-form/components/IncorporationFromProperties/index.js.map +0 -1
  64. package/es/modules/self-registration/incorporation-form/components/IncorporationFromReview/index.d.ts +0 -5
  65. package/es/modules/self-registration/incorporation-form/components/IncorporationFromReview/index.js.map +0 -1
  66. package/es/modules/self-registration/incorporation-form/pages/IncorporationFromDefaultView/index.d.ts +0 -3
  67. /package/es/modules/self-registration/incorporation-form/pages/{IncorporationFromDefaultView → IncorporationFormDefaultView}/index.less +0 -0
package/es/Modules.js CHANGED
@@ -2,7 +2,7 @@ import { ActivityLogRenderService } from "@voplus/morpho-document-core/es/servic
2
2
  import CLDAActivityLogRenderer from "./services/CLDAActivityLogRenderer";
3
3
  import { DocumentMetaStore } from "@voplus/morpho-document/es/data/DocumentMetaStore";
4
4
  import { FormElementRegister } from "@voplus/morpho-form/es/services/FormElementRegister";
5
- import { IncorporationFromTypeMeta } from "./data/incorporation-form/metas";
5
+ import { IncorporationFormTypeMeta } from "./data/incorporation-form/metas";
6
6
  import Routes from "./routes";
7
7
  import { nameof } from "ts-simple-nameof";
8
8
  import registerItems from "@voplus/morpho-form/es/elements/registerItems";
@@ -23,7 +23,7 @@ const Modules = {
23
23
  // register coa type metas.
24
24
  //store.addMeta(new ChartOfAccountsTypeMeta());
25
25
  // register incorporation-from type metas.
26
- metas.addMeta(new IncorporationFromTypeMeta());
26
+ metas.addMeta(new IncorporationFormTypeMeta());
27
27
  // register routes.
28
28
  Routes.addRoutes();
29
29
  },
@@ -1,4 +1,13 @@
1
1
  import { ILoadable } from "@voplus/morpho-data";
2
+ export interface ClientTexts {
3
+ emailContent?: string;
4
+ description?: string;
5
+ uploadDescription?: string;
6
+ formTitle?: string;
7
+ formDescription?: string;
8
+ quotationTitle?: string;
9
+ quotationDescription?: string;
10
+ }
2
11
  export interface ICLDASetting extends ILoadable {
3
12
  id: string;
4
13
  iso?: string;
@@ -15,5 +24,5 @@ export interface ICLDASetting extends ILoadable {
15
24
  name: string;
16
25
  };
17
26
  }[];
18
- defaultEmailContent?: string;
27
+ clientTexts?: ClientTexts;
19
28
  }
@@ -24,7 +24,23 @@ export declare type CLDASettingEditOptions = {
24
24
  /** Gets th document template id for the setting tempalte */
25
25
  TemplateId: string;
26
26
  }[];
27
- /** Gets the default email of the CLDA */
28
- DefaultEmailContent?: string;
27
+ ClientTexts?: {
28
+ /** Gets or sets the default email content */
29
+ EmailContent?: string;
30
+ /** Gets or sets the description user see when opening client view */
31
+ Description?: string;
32
+ /** Gets or sets the description of the upload folder */
33
+ UploadDescription?: string;
34
+ /** Gets or sets the title for the form section in client view */
35
+ FormTitle?: string;
36
+ /** Gets or sets the description for the form section in client view */
37
+ FormDescription?: string;
38
+ /** Gets or sets the title for the quotation section in client view */
39
+ QuotationTitle?: string;
40
+ /** Gets or sets the description for the quotation section in client view */
41
+ QuotationDescription?: string;
42
+ };
43
+ /** Gets whether to include an upload foler in clda */
44
+ UplodFolder?: boolean;
29
45
  };
30
46
  } & StoreActionOptions;
@@ -1,4 +1,5 @@
1
1
  import { AssistantStatus } from "../CLDA";
2
+ import { ClientTexts } from "../clda-setting";
2
3
  import { IDocument } from "@voplus/morpho-document-core";
3
4
  export interface IIncorporationCLDA extends IDocument {
4
5
  /** incorporation form */
@@ -7,6 +8,7 @@ export interface IIncorporationCLDA extends IDocument {
7
8
  kycFormId?: string;
8
9
  /** quotation id */
9
10
  quotationId?: string;
11
+ uploadFolderId?: string;
10
12
  /** corporate of the CLDA */
11
13
  corporate: {
12
14
  id: string;
@@ -27,7 +29,7 @@ export interface IIncorporationCLDA extends IDocument {
27
29
  assistantStatus?: AssistantStatus;
28
30
  /** id of envelope of the signingMode = 'Digital' */
29
31
  envelopeId?: string;
30
- emailContent?: string;
32
+ clientTexts?: ClientTexts;
31
33
  contact: {
32
34
  id: string;
33
35
  name: string;
@@ -1,8 +1,10 @@
1
- import { IDocument } from "@voplus/morpho-document-core";
1
+ /// <reference types="react" />
2
+ import { IDocument, QuickViewProps } from "@voplus/morpho-document-core";
2
3
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
3
4
  /** Meta information for Meeting document. */
4
- export declare class IncorporationFromTypeMeta extends DefaultDocumentTypeMeta {
5
+ export declare class IncorporationFormTypeMeta extends DefaultDocumentTypeMeta {
5
6
  static TypeName: string;
6
7
  getRoute(document: IDocument): string;
7
8
  get name(): string;
9
+ getQuickView(document: IDocument, props: QuickViewProps): JSX.Element;
8
10
  }
@@ -1,17 +1,26 @@
1
1
  import { DefaultDocumentTypeMeta } from "@voplus/morpho-document";
2
+ import IncorporationFormQuickViewDialog from "../../modules/self-registration/incorporation-form/components/IncorporationFormQuickViewDialog";
3
+ import React from "react";
2
4
  /** Meta information for Meeting document. */
3
- export class IncorporationFromTypeMeta extends DefaultDocumentTypeMeta {
5
+ export class IncorporationFormTypeMeta extends DefaultDocumentTypeMeta {
4
6
  getRoute(document) {
5
7
  return `/incorporation-form/${document.id}`;
6
8
  }
7
9
  get name() {
8
- return IncorporationFromTypeMeta.TypeName;
10
+ return IncorporationFormTypeMeta.TypeName;
11
+ }
12
+ // public getIcon(document: IDocument): JSX.Element {
13
+ // return <FontAwesomeIcon icon={faFileInvoiceDollar} />;
14
+ // }
15
+ getQuickView(document, props) {
16
+ props.id = document.id;
17
+ return (React.createElement(IncorporationFormQuickViewDialog, { id: document.id, visible: props.visible, onCancel: props.onCancel }));
9
18
  }
10
19
  }
11
- Object.defineProperty(IncorporationFromTypeMeta, "TypeName", {
20
+ Object.defineProperty(IncorporationFormTypeMeta, "TypeName", {
12
21
  enumerable: true,
13
22
  configurable: true,
14
23
  writable: true,
15
- value: "IncorporationFrom"
24
+ value: "IncorporationForm"
16
25
  });
17
26
  //# sourceMappingURL=metas.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/incorporation-form/metas.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAKlE,6CAA6C;AAC7C,MAAM,OAAO,yBAA0B,SAAQ,uBAAuB;IAG9D,QAAQ,CAAC,QAAmB;QAClC,OAAO,uBAAuB,QAAQ,CAAC,EAAE,EAAE,CAAC;IAC7C,CAAC;IAED,IAAW,IAAI;QACd,OAAO,yBAAyB,CAAC,QAAQ,CAAC;IAC3C,CAAC;;AARD;;;;WAAyB,mBAAmB;GAAC"}
1
+ {"version":3,"file":"metas.js","sourceRoot":"","sources":["../../../src/data/incorporation-form/metas.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,gCAAgC,MAAM,gGAAgG,CAAC;AAC9I,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,6CAA6C;AAC7C,MAAM,OAAO,yBAA0B,SAAQ,uBAAuB;IAG9D,QAAQ,CAAC,QAAmB;QAClC,OAAO,uBAAuB,QAAQ,CAAC,EAAE,EAAE,CAAC;IAC7C,CAAC;IAED,IAAW,IAAI;QACd,OAAO,yBAAyB,CAAC,QAAQ,CAAC;IAC3C,CAAC;IAED,qDAAqD;IACrD,0DAA0D;IAC1D,IAAI;IAEG,YAAY,CAAC,QAAmB,EAAE,KAAqB;QAC7D,KAAK,CAAC,EAAE,GAAG,QAAQ,CAAC,EAAE,CAAC;QACvB,OAAO,CACN,oBAAC,gCAAgC,IAChC,EAAE,EAAE,QAAQ,CAAC,EAAE,EACf,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACF,CAAC;IACH,CAAC;;AAvBD;;;;WAAyB,mBAAmB;GAAC"}
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ import "./index.less";
2
3
  declare const CLDAProperties: (props: {
3
4
  id: string;
4
5
  }) => JSX.Element;
@@ -5,12 +5,13 @@ import { observe } from "@voplus/morpho-ui";
5
5
  import Scrollbars from "react-custom-scrollbars";
6
6
  import MetionList from "@voplus/morpho-org/es/controls/MetionList";
7
7
  import CLDAStatusButton from "../../controls/CLDAStatusButton";
8
+ import "./index.less";
8
9
  const CLDAProperties = (props) => {
9
10
  const { id } = props;
10
11
  const CLDA = useCLDA(id, { reload: true });
11
12
  const CLDAStore = useCLDAStore();
12
13
  return observe(() => (React.createElement(Scrollbars, { autoHide: true },
13
- React.createElement(Form, { labelAlign: "left", labelCol: { span: 5 }, className: "CLDA-details" },
14
+ React.createElement(Form, { labelAlign: "left", labelCol: { span: 5 }, className: "clda-properties" },
14
15
  React.createElement(Form.Item, { label: "Type" },
15
16
  React.createElement("span", null, CLDA.type)),
16
17
  React.createElement(Form.Item, { label: "Contact" },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDAProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,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AC,IAAI,IAAC,KAAK,EAAC,SAAS;gBACzB,oBAAC,UAAU,IAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE,GAAI,CAClE;YACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,QAAQ;gBACxB,oBAAC,gBAAgB,IAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,eAAe,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC,GAAI,CAC5E;YACZ,oBAAC,IAAI,CAAC,IAAI,IAAC,KAAK,EAAC,OAAO;gBACvB,oBAAC,UAAU,IAAC,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,GAAI,CAC9D,CACN,CACK,CACb,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,5 @@
1
+ :global {
2
+ .clda-properties {
3
+ padding: 15px 20px;
4
+ }
5
+ }
@@ -8,20 +8,23 @@ import Modal from "@voplus/morpho-ui/es/components/Modal";
8
8
  import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
9
9
  import styles from "./index.less";
10
10
  const CLDASendForm = (props) => {
11
- const clda = useIncorporationCLDA(props.id, { reload: true, includes: "email-content" });
11
+ const clda = useIncorporationCLDA(props.id, { reload: true, includes: "client-texts" });
12
12
  const store = useIncorporationCLDAStore();
13
13
  const [state] = useState(new State());
14
- useEffect(() => runInAction(() => state.update(clda.emailContent)));
15
- return observe(() => (React.createElement(Modal, { title: "CLDA Send Form Dialog", visible: true, destroyOnClose: true, closable: false, footer: null, onCancel: props.onCancel },
16
- React.createElement("div", { className: styles["clda-send-form"] },
17
- React.createElement(Form, { layout: "vertical" },
18
- React.createElement(Form.Item, { label: "Email Content" },
19
- React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, defaultHtml: clda === null || clda === void 0 ? void 0 : clda.emailContent, className: "proseMirror", onChange: (opt) => (state.text =
20
- opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) })),
21
- React.createElement(Row, { justify: "end" },
22
- React.createElement(Space, null,
23
- React.createElement(Button, { onClick: onCancel }, "Cancel"),
24
- React.createElement(Button, { type: "primary", onClick: onSend }, "Send"))))))));
14
+ useEffect(() => runInAction(() => { var _a; return state.update((_a = clda.clientTexts) === null || _a === void 0 ? void 0 : _a.emailContent); }));
15
+ return observe(() => {
16
+ var _a;
17
+ return (React.createElement(Modal, { title: "CLDA Send Form Dialog", visible: true, destroyOnClose: true, closable: false, footer: null, onCancel: props.onCancel },
18
+ React.createElement("div", { className: styles["clda-send-form"] },
19
+ React.createElement(Form, { layout: "vertical" },
20
+ React.createElement(Form.Item, { label: "Email Content" },
21
+ React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, defaultHtml: (_a = clda === null || clda === void 0 ? void 0 : clda.clientTexts) === null || _a === void 0 ? void 0 : _a.emailContent, className: "proseMirror", onChange: (opt) => (state.text =
22
+ opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) })),
23
+ React.createElement(Row, { justify: "end" },
24
+ React.createElement(Space, null,
25
+ React.createElement(Button, { onClick: onCancel }, "Cancel"),
26
+ React.createElement(Button, { type: "primary", onClick: onSend }, "Send")))))));
27
+ });
25
28
  function onCancel() {
26
29
  if (props.onCancel)
27
30
  props.onCancel();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDASendForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAA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wBAC/B,oBAAC,WAAW,IACX,YAAY,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAC/B,MAAM,QACN,WAAW,EAAE,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,WAAW,0CAAE,YAAY,EAC5C,SAAS,EAAC,aAAa,EACvB,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CACjB,CAAC,KAAK,CAAC,IAAI;gCACV,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,KAAK,aAAa,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,SAAS,CAAC,GAE5E,CACS;oBACZ,oBAAC,GAAG,IAAC,OAAO,EAAC,KAAK;wBACjB,oBAAC,KAAK;4BACL,oBAAC,MAAM,IAAC,OAAO,EAAE,QAAQ,aAAiB;4BAC1C,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,MAAM,WAE7B,CACF,CACH,CACA,CACF,CACC,CACR,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;IAED,iBAAiB;IACjB,KAAK,UAAU,MAAM;QACpB,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QAC9E,IAAI,KAAK,CAAC,QAAQ;YAAE,KAAK,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -10,11 +10,11 @@ import { useCLDAStore } from "../../../../../data/CLDA";
10
10
  const CLDAMenu = (props) => {
11
11
  const store = useCLDAStore();
12
12
  return observe(() => (React.createElement(DocumentMenu, { id: props.id },
13
- React.createElement(Button, { type: "link", key: "Envelope", onClick: invite },
13
+ React.createElement(Button, { type: "link", key: "Envelope", disabled: true, onClick: invite },
14
14
  React.createElement(FAIcon, { icon: faEnvelope }),
15
15
  React.createElement("span", null, "Notify CLDA")),
16
16
  React.createElement(SendCLDA, null),
17
- React.createElement(LegalDocuments, null),
17
+ React.createElement(LegalDocuments, { disabled: true }),
18
18
  React.createElement(Access, null),
19
19
  React.createElement(Delete, null))));
20
20
  /** email send */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/controls/CLDAMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,wDAAwD,CAAC;AACxF,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,YAAY,MAAM,kDAAkD,CAAC;AAC5E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAExD,MAAM,QAAQ,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1C,MAAM,KAAK,GAAG,YAAY,EAAE,CAAC;IAC7B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE;QACzB,oBAAC,MAAM,IAAC,IAAI,EAAC,MAAM,EAAC,GAAG,EAAC,UAAU,EAAC,OAAO,EAAE,MAAM;YACjD,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI;YAC5B,gDAAwB,CAChB;QACT,oB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AwB,CAChB;QACT,oBAAC,QAAQ,OAAG;QACZ,oBAAC,cAAc,IAAC,QAAQ,SAAG;QAC3B,oBAAC,MAAM,OAAG;QACV,oBAAC,MAAM,OAAG,CACI,CACf,CAAC,CAAC;IAEH,iBAAiB;IACjB,KAAK,UAAU,MAAM;QACpB,MAAM,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACpD,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
@@ -1,48 +1,79 @@
1
- import React, { useState } from "react";
2
- import { Scrollbars } from "react-custom-scrollbars";
3
- import { observe } from "@voplus/morpho-ui";
4
- import { Checkbox, Divider, Button, Row, Space } from "@voplus/antd";
1
+ import { Checkbox, Divider } from "@voplus/antd";
2
+ import React from "react";
5
3
  import { useCLDASetting, useCLDASettingStore } from "../../../../../data/clda-setting";
6
4
  import { Delete } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
7
- import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
5
+ import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
8
6
  import ReferenceList from "@voplus/morpho-document/es/controls/ReferenceList";
7
+ import { Scrollbars } from "react-custom-scrollbars";
8
+ import { observe } from "@voplus/morpho-ui";
9
9
  const Content = (props) => {
10
10
  const { id } = props;
11
11
  const store = useCLDASettingStore();
12
12
  const cldaSetting = useCLDASetting(id);
13
- const [text, setText] = useState("");
14
- return observe(() => (React.createElement(Scrollbars, { autoHide: true },
15
- React.createElement("div", { className: "clda-settings-content" },
16
- React.createElement("header", { className: "settings-header" },
17
- React.createElement("div", { className: "title" }, cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.jurisdiction),
18
- React.createElement(Delete, { action: onDelete })),
19
- React.createElement("div", { className: "sub-title" }, "General"),
20
- React.createElement(Checkbox, { onChange: onChange }, "Default Quotation"),
21
- React.createElement(ReferenceList, { contains: ["Quotation"], document: (cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.quotation) ? [cldaSetting.quotation] : [], canEdit: true, placeholder: "Select Quotation", onChange: onEditQuotation }),
22
- React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
23
- React.createElement("div", { className: "sub-title" }, "Legal Templates"),
24
- React.createElement("div", null, (cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.templates) &&
25
- cldaSetting.templates.map((item, index) => (React.createElement("div", { key: item.id },
26
- React.createElement("div", { className: "templates-title" },
27
- index + 1,
28
- ". ",
29
- item.templateKey),
30
- React.createElement(ReferenceList, { document: item.template ? [item.template] : [], canEdit: true, placeholder: `Select a ${item.templateKey} Templates`, onChange: (list) => {
31
- store.edit(id, {
32
- data: { Templates: [{ Id: item.id, TemplateId: list[0].id }] },
33
- error: "message",
34
- });
35
- } }))))),
36
- React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
37
- React.createElement("div", { className: "sub-title" }, "AddItional Forms"),
38
- React.createElement(ReferenceList, { document: [], canEdit: true, placeholder: "Select AddItional Forms" }),
39
- React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
40
- React.createElement("div", { className: "sub-title" }, "Default Email Content"),
41
- React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, defaultHtml: cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.defaultEmailContent, className: "proseMirror", onChange: (opt) => setText(opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) }),
42
- React.createElement(Row, { justify: "end", style: { marginTop: "20px" } },
43
- React.createElement(Space, null,
44
- React.createElement(Button, { onClick: onCancel }, "Cancel"),
45
- React.createElement(Button, { type: "primary", onClick: onSave }, "Save")))))));
13
+ return observe(() => {
14
+ var _a, _b, _c, _d, _e, _f, _g;
15
+ return (React.createElement(Scrollbars, { autoHide: true },
16
+ React.createElement("div", { className: "clda-settings-content" },
17
+ React.createElement("header", { className: "settings-header" },
18
+ React.createElement("div", { className: "title" }, cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.jurisdiction),
19
+ React.createElement(Delete, { action: onDelete })),
20
+ React.createElement("div", { className: "sub-title" }, "General"),
21
+ React.createElement(Checkbox, { onChange: onChange }, "Default Quotation"),
22
+ React.createElement(ReferenceList, { contains: ["Quotation"], document: (cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.quotation) ? [cldaSetting.quotation] : [], canEdit: true, placeholder: "Select Quotation", onChange: onEditQuotation }),
23
+ React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
24
+ React.createElement("div", { className: "sub-title" }, "Legal Templates"),
25
+ React.createElement("div", null, (cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.templates) &&
26
+ cldaSetting.templates.map((item, index) => (React.createElement("div", { key: item.id },
27
+ React.createElement("div", { className: "templates-title" },
28
+ index + 1,
29
+ ". ",
30
+ item.templateKey),
31
+ React.createElement(ReferenceList, { document: item.template ? [item.template] : [], canEdit: true, placeholder: `Select a ${item.templateKey} Templates`, onChange: (list) => {
32
+ store.edit(id, {
33
+ data: { Templates: [{ Id: item.id, TemplateId: list[0].id }] },
34
+ error: "message",
35
+ });
36
+ } }))))),
37
+ React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
38
+ React.createElement("div", { className: "sub-title" }, "AddItional Forms"),
39
+ React.createElement(ReferenceList, { document: [], canEdit: true, placeholder: "Select AddItional Forms" }),
40
+ React.createElement(Divider, { plain: true, style: { margin: "15px 0" } }),
41
+ React.createElement("div", { className: "sub-title" }, "Default Email Content"),
42
+ React.createElement(DescriptionEditor, { id: id, description: (_a = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _a === void 0 ? void 0 : _a.emailContent, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
43
+ data: { ClientTexts: { EmailContent: description || "" } },
44
+ error: "message",
45
+ }) }),
46
+ React.createElement("div", { className: "sub-title" }, "Description"),
47
+ React.createElement(DescriptionEditor, { id: id, description: (_b = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _b === void 0 ? void 0 : _b.description, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
48
+ data: { ClientTexts: { Description: description || "" } },
49
+ error: "message",
50
+ }) }),
51
+ React.createElement("div", { className: "sub-title" }, "Upload Description"),
52
+ React.createElement(DescriptionEditor, { id: id, description: (_c = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _c === void 0 ? void 0 : _c.uploadDescription, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
53
+ data: { ClientTexts: { UploadDescription: description || "" } },
54
+ error: "message",
55
+ }) }),
56
+ React.createElement("div", { className: "sub-title" }, "Form Title"),
57
+ React.createElement(DescriptionEditor, { id: id, description: (_d = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _d === void 0 ? void 0 : _d.formTitle, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
58
+ data: { ClientTexts: { FormTitle: description || "" } },
59
+ error: "message",
60
+ }) }),
61
+ React.createElement("div", { className: "sub-title" }, "Form Description"),
62
+ React.createElement(DescriptionEditor, { id: id, description: (_e = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _e === void 0 ? void 0 : _e.formDescription, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
63
+ data: { ClientTexts: { FormDescription: description || "" } },
64
+ error: "message",
65
+ }) }),
66
+ React.createElement("div", { className: "sub-title" }, "Quotation Title"),
67
+ React.createElement(DescriptionEditor, { id: id, description: (_f = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _f === void 0 ? void 0 : _f.quotationTitle, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
68
+ data: { ClientTexts: { QuotationTitle: description || "" } },
69
+ error: "message",
70
+ }) }),
71
+ React.createElement("div", { className: "sub-title" }, "Quotation Description"),
72
+ React.createElement(DescriptionEditor, { id: id, description: (_g = cldaSetting === null || cldaSetting === void 0 ? void 0 : cldaSetting.clientTexts) === null || _g === void 0 ? void 0 : _g.quotationDescription, padding: "0 0 0.75rem 0", onSave: (description) => store.edit(id, {
73
+ data: { ClientTexts: { QuotationDescription: description || "" } },
74
+ error: "message",
75
+ }) }))));
76
+ });
46
77
  function onChange(e) {
47
78
  console.log(`checked = ${e.target.checked}`);
48
79
  }
@@ -52,10 +83,6 @@ const Content = (props) => {
52
83
  function onEditQuotation(list) {
53
84
  store.edit(id, { data: { QuotationId: list[0].id }, error: "message" });
54
85
  }
55
- function onCancel() { }
56
- async function onSave() {
57
- store.edit(id, { data: { DefaultEmailContent: text }, error: "message" });
58
- }
59
86
  };
60
87
  export default Content;
61
88
  //# sourceMappingURL=Content.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/pages/CLDASettingsPage/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAQ,GAAG,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC7E,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,aAAa,MAAM,mDAAmD,CAAC;AAE9E,MAAM,OAAO,GAAG,CAAC,KAAqB,EAAE,EAAE;IACzC,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,KAAK,GAAG,mBAAmB,EAAE,CAAC;IACpC,M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ChC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;wBACd,IAAI,EAAE,EAAE,WAAW,EAAE,EAAE,oBAAoB,EAAE,WAAW,IAAI,EAAE,EAAE,EAAE;wBAClE,KAAK,EAAE,SAAS;qBAChB,CAAC,GAEF,CACG,CACM,CACb,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,QAAQ,CAAC,CAAM;QACvB,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;IAC9C,CAAC;IAED,SAAS,QAAQ;QAChB,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC;IAED,SAAS,eAAe,CAAC,IAAoC;QAC5D,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IACzE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -35,7 +35,7 @@
35
35
  }
36
36
 
37
37
  .reference-list {
38
- >div:first-child {
38
+ > div:first-child {
39
39
  padding: 5px 0 2px;
40
40
  }
41
41
  }
@@ -44,11 +44,24 @@
44
44
  padding: 10px 0;
45
45
  }
46
46
 
47
- .proseMirror {
47
+ .description-editor-proseMirror {
48
48
  height: 10rem !important;
49
- background: #fff;
49
+ padding: 0;
50
+ .ProseMirror {
51
+ background: #fff;
52
+ }
53
+ }
54
+
55
+ .description-readonly-proseMirror {
56
+ .ProseMirror {
57
+ padding: 0;
58
+ }
59
+ }
60
+
61
+ .description-editor-header {
62
+ padding: 0;
50
63
  }
51
64
  }
52
65
  }
53
66
  }
54
- }
67
+ }
@@ -1,7 +1,10 @@
1
+ import { Button, Card } from "@voplus/antd";
1
2
  import React from "react";
2
3
  import { Scrollbars } from "react-custom-scrollbars";
4
+ import SubmitterSectionItem from "@voplus/morpho-document/es/pages/VSubmit/components/SubmitSections/SubmitterSectionItem";
5
+ import Viewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
6
+ import classnames from "classnames";
3
7
  import { observe } from "@voplus/morpho-ui";
4
- import { Button, Card } from "@voplus/antd";
5
8
  import { useFIncorporationCLDAClientContext } from "../../pages/IncorporationCLDAClientView/IncorporationCLDAClientContext";
6
9
  import { useIncorporationCLDA } from "../../../../../data/incorporation-clda";
7
10
  import { useLayout } from "@voplus/morpho-data";
@@ -9,17 +12,28 @@ const DetailsStep = () => {
9
12
  const context = useFIncorporationCLDAClientContext();
10
13
  const layout = useLayout();
11
14
  const incorporation = useIncorporationCLDA(context.id);
12
- return observe(() => (React.createElement(Scrollbars, { autoHide: true },
13
- React.createElement(Card, { title: "Step1 Provide Incorporation details", className: "steps-content" },
14
- React.createElement("div", null, "This is an electronic incorporation form for you to fill up the relevant company details for your company formation."),
15
- React.createElement("div", { className: "step-actions" },
16
- React.createElement(Button, { type: "primary", loading: context.loading, onClick: () => {
17
- if (incorporation.incorporationFormId)
18
- onOpen(`/incorporation-form-client/${incorporation.incorporationFormId}`);
19
- } }, "Open"))),
20
- React.createElement(Card, { title: "Step3 Review Quotation", className: "steps-content" },
21
- React.createElement("div", null, "This is an electronic quotation for your kind confirmation on the quote."),
22
- React.createElement("div", { className: "step-actions" }, incorporation.quotationId ? (React.createElement(Button, { type: "primary", loading: context.loading, onClick: () => onOpen(`/c/quotations/${incorporation.quotationId}`) }, "Open")) : (React.createElement(Button, null, "No Data")))))));
15
+ return observe(() => {
16
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
17
+ return (React.createElement(Scrollbars, { autoHide: true },
18
+ React.createElement(Card, { title: React.createElement("div", { className: "steps-title" },
19
+ React.createElement("span", { className: "steps-number" }, "Step1"),
20
+ ((_a = incorporation.clientTexts) === null || _a === void 0 ? void 0 : _a.formTitle) ? (React.createElement(Viewer, { html: (_b = incorporation.clientTexts) === null || _b === void 0 ? void 0 : _b.formTitle })) : ("Provide Incorporation details")), className: "steps-content" },
21
+ React.createElement("div", null, ((_c = incorporation.clientTexts) === null || _c === void 0 ? void 0 : _c.formDescription) ? (React.createElement(Viewer, { html: (_d = incorporation.clientTexts) === null || _d === void 0 ? void 0 : _d.formDescription })) : ("This is an electronic incorporation form for you to fill up the relevant company details for your company formation.")),
22
+ React.createElement("div", { className: "step-actions" },
23
+ React.createElement(Button, { type: "primary", loading: context.loading, onClick: () => {
24
+ if (incorporation.incorporationFormId)
25
+ onOpen(`/c/incorporation-form/${incorporation.incorporationFormId}`);
26
+ } }, "Open"))),
27
+ React.createElement(Card, { title: React.createElement("div", { className: "steps-title" },
28
+ React.createElement("span", { className: "steps-number" }, "Step2"),
29
+ ((_e = incorporation.clientTexts) === null || _e === void 0 ? void 0 : _e.quotationTitle) ? (React.createElement(Viewer, { html: (_f = incorporation.clientTexts) === null || _f === void 0 ? void 0 : _f.quotationTitle })) : ("Review Quotation")), className: "steps-content" },
30
+ React.createElement("div", null, ((_g = incorporation.clientTexts) === null || _g === void 0 ? void 0 : _g.quotationDescription) ? (React.createElement(Viewer, { html: (_h = incorporation.clientTexts) === null || _h === void 0 ? void 0 : _h.quotationDescription })) : ("This is an electronic quotation for your kind confirmation on the quote.")),
31
+ React.createElement("div", { className: "step-actions" }, incorporation.quotationId ? (React.createElement(Button, { type: "primary", loading: context.loading, onClick: () => onOpen(`/c/quotations/${incorporation.quotationId}`) }, "Open")) : (React.createElement(Button, null, "No Data")))),
32
+ incorporation.uploadFolderId && (React.createElement(Card, { title: React.createElement("div", { className: "steps-title" },
33
+ React.createElement("span", { className: "steps-number" }, "Step3"),
34
+ ((_j = incorporation.clientTexts) === null || _j === void 0 ? void 0 : _j.uploadDescription) ? (React.createElement(Viewer, { html: (_k = incorporation.clientTexts) === null || _k === void 0 ? void 0 : _k.uploadDescription })) : ("Upload Folder")), className: classnames("steps-content", "steps-content-upload") },
35
+ React.createElement(SubmitterSectionItem, { id: incorporation.uploadFolderId, index: 0 })))));
36
+ });
23
37
  function onOpen(url) {
24
38
  layout.history.push(url);
25
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/DetailsStep/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,wEAAwE,CAAC;AAC5H,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,WAAW,GAAG,GAAG,EAAE;IACxB,MAAM,OAAO,GAAG,kCAAkC,EAAE,CAAC;IAErD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,aAAa,GAAG,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEvD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,UAAU,IAAC,QAAQ;QACnB,oBAAC,IAAI,IAAC,KAAK,EAAC,qCAAqC,EAAC,SAAS,EAAC,eAAe;YAC1E,wJAGM;YACN,6BAAK,SAAS,EAAC,cAAc;gBAC5B,oBAAC,MAAM,IACN,IAAI,EAAC,SAAS,EACd,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,OAAO,EAAE,GAAG,EAAE;wBACb,IAAI,aAAa,CAAC,mBAAmB;4BACpC,MAAM,CAAC,8BAA8B,aAAa,CAAC,mBAAmB,EAAE,CAAC,CAAC;oBAC5E,CAAC,WAGO,CACJ,CACA;QAqBP,oBAAC,IAAI,IAAC,KAAK,EAAC,wBAAwB,EAAC,SAAS,EAAC,eAAe;YAC7D,4GAAmF;YAEnF,6BAAK,SAAS,EAAC,cAAc,IAC3B,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAC5B,oBAAC,MAAM,IACN,IAAI,EAAC,SAAS,EACd,OAAO,EAAE,OAAO,CAAC,OAAO,EACxB,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,iBAAiB,aAAa,CAAC,WAAW,EAAE,CAAC,WAG3D,CACT,CAAC,CAAC,CAAC,CACH,oBAAC,MAAM,kBAAiB,CACxB,CACI,CACA,CACK,CACb,CAAC,CAAC;IAEH,SAAS,MAAM,CAAC,GAAW;QAC1B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/DetailsStep/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,oBAAoB,MAAM,yFAAyF,CAAC;AAC3H,OAAO,MAAM,MAAM,oDAAoD,CAAC;AACxE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,wEAAwE,CAAC;AAC5H,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,WAAW,GAAG,GAAG,EAAE;IACxB,MAAM,OAAO,GAAG,kCAAkC,EAAE,CAAC;IAErD,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,aAAa,GAAG,oBAAoB,CAAC,OA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{ Button, Card } from "@voplus/antd";
2
2
  import React from "react";
3
+ import Viewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
3
4
  import { observe } from "@voplus/morpho-ui";
4
5
  import { useFIncorporationCLDAClientContext } from "../../pages/IncorporationCLDAClientView/IncorporationCLDAClientContext";
6
+ import { useIncorporationCLDA } from "../../../../../data/incorporation-clda";
5
7
  const StartStep = () => {
6
8
  const context = useFIncorporationCLDAClientContext();
7
- return observe(() => (React.createElement(Card, { title: "Incorporation CLDA", className: "steps-content" },
8
- React.createElement("div", null, `Thank you for using our Legal Incorporation CLDA. This tool will assist you to complete the whole process for the “xxxxx”.`),
9
- React.createElement("div", { className: "step-actions" },
10
- React.createElement(Button, { type: "primary", loading: context.loading, onClick: start }, "Start")))));
9
+ const incorporation = useIncorporationCLDA(context.id);
10
+ return observe(() => {
11
+ var _a, _b;
12
+ return (React.createElement(Card, { title: "Incorporation CLDA", className: "steps-content" },
13
+ React.createElement("div", null, ((_a = incorporation.clientTexts) === null || _a === void 0 ? void 0 : _a.description) ? (React.createElement(Viewer, { html: (_b = incorporation.clientTexts) === null || _b === void 0 ? void 0 : _b.description })) : ("Thank you for using our Legal Incorporation CLDA. This tool will assist you to complete the whole process for the “xxxxx”.")),
14
+ React.createElement("div", { className: "step-actions" },
15
+ React.createElement(Button, { type: "primary", loading: context.loading, onClick: start }, "Start"))));
16
+ });
11
17
  function start() {
12
18
  context.step = context.step + 1;
13
19
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/StartStep/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,wEAAwE,CAAC;AAE5H,MAAM,SAAS,GAAG,GAAG,EAAE;IACtB,MAAM,OAAO,GAAG,kCAAkC,EAAE,CAAC;IAErD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,IAAI,IAAC,KAAK,EAAC,oBAAoB,EAAC,SAAS,EAAC,eAAe;QACzD,iCAAM,4HAA4H,CAAO;QACzI,6BAAK,SAAS,EAAC,cAAc;YAC5B,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,YAEtD,CACJ,CACA,CACP,CAAC,CAAC;IAEH,SAAS,KAAK;QACb,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC;IACjC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/StartStep/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,oDAAoD,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,wEAAwE,CAAC;AAC5H,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,MAAM,SAAS,GAAG,GAAG,EAAE;IACtB,MAAM,OAAO,GAAG,kCAAkC,EAAE,CAAC;IACrD,MAAM,aAAa,GAAG,oBAAoB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;IAEvD,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,IAAI,IAAC,KAAK,EAAC,oBAAoB,EAAC,SAAS,EAAC,eAAe;YACzD,iCACE,CAAA,MAAA,aAAa,CAAC,WAAW,0CAAE,WAAW,EAAC,CAAC,CAAC,CACzC,oBAAC,MAAM,IAAC,IAAI,EAAE,MAAA,aAAa,CAAC,WAAW,0CAAE,WAAW,GAAI,CACxD,CAAC,CAAC,CAAC,CACH,4HAA4H,CAC5H,CACI;YACN,6BAAK,SAAS,EAAC,cAAc;gBAC5B,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,YAEtD,CACJ,CACA,CACP,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,KAAK;QACb,OAAO,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,GAAG,CAAC,CAAC;IACjC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}