@unite-us/app-create-referral 0.1.14 → 0.1.15

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.
@@ -4,7 +4,7 @@ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/obje
4
4
  _Object$defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.REVIEW_REFERRAL_DESCRIPTION = exports.REFERRAL_PII_PHI_DESCRIPTION = exports.REFERRAL_BUILDER_DESCRIPTION = exports.GROUPED_REFERRAL_MUST_HAVE_SAME = exports.GROUPED_REFERRALS_VS_INDIVIDUAL_REFERRALS = exports.EDITING_REFERRAL_GROUPINGS = exports.CREATE_REFERRAL_DESCRIPTION = exports.ABOUT_GROUPED_REFERRALS = void 0;
7
+ exports.REVIEW_REFERRAL_DESCRIPTION = exports.REFERRAL_SENT_SUCCESS = exports.REFERRAL_PII_PHI_DESCRIPTION = exports.REFERRAL_BUILDER_DESCRIPTION = exports.GROUPED_REFERRAL_MUST_HAVE_SAME = exports.GROUPED_REFERRALS_VS_INDIVIDUAL_REFERRALS = exports.EDITING_REFERRAL_GROUPINGS = exports.CREATE_REFERRAL_DESCRIPTION = exports.ABOUT_GROUPED_REFERRALS = void 0;
8
8
  var REFERRAL_BUILDER_DESCRIPTION = "Organize referrals according to your client's needs,\n then add referral descriptions and upload any necessary attachments.\n We group compatible referrals by default. ";
9
9
  exports.REFERRAL_BUILDER_DESCRIPTION = REFERRAL_BUILDER_DESCRIPTION;
10
10
  var CREATE_REFERRAL_DESCRIPTION = "Add supporting information\n providing this information can help us quickly connect your client with services";
@@ -21,4 +21,6 @@ var GROUPED_REFERRAL_MUST_HAVE_SAME = ['Service Type', 'Network Status (in or ou
21
21
  exports.GROUPED_REFERRAL_MUST_HAVE_SAME = GROUPED_REFERRAL_MUST_HAVE_SAME;
22
22
  var REFERRAL_PII_PHI_DESCRIPTION = "Only include personally identifiable information (PII), protected health information (PHI), or other sensitive information if it is necessary to provide services to the client.";
23
23
  exports.REFERRAL_PII_PHI_DESCRIPTION = REFERRAL_PII_PHI_DESCRIPTION;
24
+ var REFERRAL_SENT_SUCCESS = "We've saved a list of these referred programs to the client's profile.\n Share this resource list with the client by text, email, or print.";
25
+ exports.REFERRAL_SENT_SUCCESS = REFERRAL_SENT_SUCCESS;
24
26
  //# sourceMappingURL=constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","names":["REFERRAL_BUILDER_DESCRIPTION","exports","CREATE_REFERRAL_DESCRIPTION","REVIEW_REFERRAL_DESCRIPTION","ABOUT_GROUPED_REFERRALS","GROUPED_REFERRALS_VS_INDIVIDUAL_REFERRALS","EDITING_REFERRAL_GROUPINGS","GROUPED_REFERRAL_MUST_HAVE_SAME","REFERRAL_PII_PHI_DESCRIPTION"],"sources":["../../../src/pages/referrals/constants.js"],"sourcesContent":["export const REFERRAL_BUILDER_DESCRIPTION = `Organize referrals according to your client's needs,\n then add referral descriptions and upload any necessary attachments.\n We group compatible referrals by default. `;\n\nexport const CREATE_REFERRAL_DESCRIPTION = `Add supporting information\n providing this information can help us quickly connect your client with services`;\n\nexport const REVIEW_REFERRAL_DESCRIPTION = `You are almost there, please review the referrals for accuracy and submit them below.`;\n\nexport const ABOUT_GROUPED_REFERRALS = `Grouped referrals allow you to send referrals to several organizations at once.\n Whoever accepts the referral first works with the client and the rest of the referrals are recalled.\n We automatically group referrals for you. To be in a group, referrals must have the same:`;\n\nexport const GROUPED_REFERRALS_VS_INDIVIDUAL_REFERRALS = `Unite Us groups compatible referrals by default in order to optimize network resources.\n If you wish to change the default grouping behavior, go to the settings page and select “Group Referrals Individually by default”.`;\n\nexport const EDITING_REFERRAL_GROUPINGS = `To remove a resource from a group and send it as an individual referral, click the three dots to the right of the resource and select “Move to a new referral.”\n\n To move a referral into another compatible group, click the three dots to the right of the resource and select a group. You cannot group incompatible referrals (e.g. in-network referrals and out-of-network referrals, food pantry referrals and ride assistance referrals, etc.).`;\n\nexport const GROUPED_REFERRAL_MUST_HAVE_SAME = ['Service Type', 'Network Status (in or out of network)', 'Coordination Center', 'Cost (free or paid)'];\n\nexport const REFERRAL_PII_PHI_DESCRIPTION = \"Only include personally identifiable information (PII), protected health information (PHI), or other sensitive information if it is necessary to provide services to the client.\";\n"],"mappings":";;;;;;;AAAO,IAAMA,4BAA4B,+KAEI;AAACC,OAAA,CAAAD,4BAAA,GAAAA,4BAAA;AAEvC,IAAME,2BAA2B,mHAC2C;AAACD,OAAA,CAAAC,2BAAA,GAAAA,2BAAA;AAE7E,IAAMC,2BAA2B,0FAA0F;AAACF,OAAA,CAAAE,2BAAA,GAAAA,2BAAA;AAE5H,IAAMC,uBAAuB,yRAEwD;AAACH,OAAA,CAAAG,uBAAA,GAAAA,uBAAA;AAEtF,IAAMC,yCAAyC,4OAC+E;AAACJ,OAAA,CAAAI,yCAAA,GAAAA,yCAAA;AAE/H,IAAMC,0BAA0B,wcAEgP;AAACL,OAAA,CAAAK,0BAAA,GAAAA,0BAAA;AAEjR,IAAMC,+BAA+B,GAAG,CAAC,cAAc,EAAE,uCAAuC,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;AAACN,OAAA,CAAAM,+BAAA,GAAAA,+BAAA;AAEhJ,IAAMC,4BAA4B,GAAG,kLAAkL;AAACP,OAAA,CAAAO,4BAAA,GAAAA,4BAAA"}
1
+ {"version":3,"file":"constants.js","names":["REFERRAL_BUILDER_DESCRIPTION","exports","CREATE_REFERRAL_DESCRIPTION","REVIEW_REFERRAL_DESCRIPTION","ABOUT_GROUPED_REFERRALS","GROUPED_REFERRALS_VS_INDIVIDUAL_REFERRALS","EDITING_REFERRAL_GROUPINGS","GROUPED_REFERRAL_MUST_HAVE_SAME","REFERRAL_PII_PHI_DESCRIPTION","REFERRAL_SENT_SUCCESS"],"sources":["../../../src/pages/referrals/constants.js"],"sourcesContent":["export const REFERRAL_BUILDER_DESCRIPTION = `Organize referrals according to your client's needs,\n then add referral descriptions and upload any necessary attachments.\n We group compatible referrals by default. `;\n\nexport const CREATE_REFERRAL_DESCRIPTION = `Add supporting information\n providing this information can help us quickly connect your client with services`;\n\nexport const REVIEW_REFERRAL_DESCRIPTION = `You are almost there, please review the referrals for accuracy and submit them below.`;\n\nexport const ABOUT_GROUPED_REFERRALS = `Grouped referrals allow you to send referrals to several organizations at once.\n Whoever accepts the referral first works with the client and the rest of the referrals are recalled.\n We automatically group referrals for you. To be in a group, referrals must have the same:`;\n\nexport const GROUPED_REFERRALS_VS_INDIVIDUAL_REFERRALS = `Unite Us groups compatible referrals by default in order to optimize network resources.\n If you wish to change the default grouping behavior, go to the settings page and select “Group Referrals Individually by default”.`;\n\nexport const EDITING_REFERRAL_GROUPINGS = `To remove a resource from a group and send it as an individual referral, click the three dots to the right of the resource and select “Move to a new referral.”\n\n To move a referral into another compatible group, click the three dots to the right of the resource and select a group. You cannot group incompatible referrals (e.g. in-network referrals and out-of-network referrals, food pantry referrals and ride assistance referrals, etc.).`;\n\nexport const GROUPED_REFERRAL_MUST_HAVE_SAME = ['Service Type', 'Network Status (in or out of network)', 'Coordination Center', 'Cost (free or paid)'];\n\nexport const REFERRAL_PII_PHI_DESCRIPTION = \"Only include personally identifiable information (PII), protected health information (PHI), or other sensitive information if it is necessary to provide services to the client.\";\n\nexport const REFERRAL_SENT_SUCCESS = `We've saved a list of these referred programs to the client's profile.\n Share this resource list with the client by text, email, or print.`;"],"mappings":";;;;;;;AAAO,IAAMA,4BAA4B,+KAEI;AAACC,OAAA,CAAAD,4BAAA,GAAAA,4BAAA;AAEvC,IAAME,2BAA2B,mHAC2C;AAACD,OAAA,CAAAC,2BAAA,GAAAA,2BAAA;AAE7E,IAAMC,2BAA2B,0FAA0F;AAACF,OAAA,CAAAE,2BAAA,GAAAA,2BAAA;AAE5H,IAAMC,uBAAuB,yRAEwD;AAACH,OAAA,CAAAG,uBAAA,GAAAA,uBAAA;AAEtF,IAAMC,yCAAyC,4OAC+E;AAACJ,OAAA,CAAAI,yCAAA,GAAAA,yCAAA;AAE/H,IAAMC,0BAA0B,wcAEgP;AAACL,OAAA,CAAAK,0BAAA,GAAAA,0BAAA;AAEjR,IAAMC,+BAA+B,GAAG,CAAC,cAAc,EAAE,uCAAuC,EAAE,qBAAqB,EAAE,qBAAqB,CAAC;AAACN,OAAA,CAAAM,+BAAA,GAAAA,+BAAA;AAEhJ,IAAMC,4BAA4B,GAAG,kLAAkL;AAACP,OAAA,CAAAO,4BAAA,GAAAA,4BAAA;AAExN,IAAMC,qBAAqB,iJACmC;AAACR,OAAA,CAAAQ,qBAAA,GAAAA,qBAAA"}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
5
+ _Object$defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports.default = ReferralsSent;
9
+ var _ui = require("@unite-us/ui");
10
+ var _react = _interopRequireDefault(require("react"));
11
+ var _api = require("../../config/api");
12
+ var _constants = require("../referrals/constants");
13
+ function ReferralsSent() {
14
+ return /*#__PURE__*/_react.default.createElement("div", {
15
+ className: "flex justify-around mt-24"
16
+ }, /*#__PURE__*/_react.default.createElement("div", {
17
+ className: "py-32 bg-white"
18
+ }, /*#__PURE__*/_react.default.createElement("h1", {
19
+ className: "text-5xl my-5 text-center font-bold"
20
+ }, "Referrals Successfully Sent!"), /*#__PURE__*/_react.default.createElement("div", {
21
+ className: "w-7/12 p-4 pb-12 text-center mx-auto"
22
+ }, _constants.REFERRAL_SENT_SUCCESS), /*#__PURE__*/_react.default.createElement("div", {
23
+ className: "flex justify-center gap-4"
24
+ }, /*#__PURE__*/_react.default.createElement(_ui.Button, {
25
+ id: "dashboard",
26
+ onClick: function onClick() {
27
+ _api.callbacks.onReferralCompleted();
28
+ },
29
+ className: "font-semibold normal-case w-64",
30
+ label: "Go to my Dashboard"
31
+ }), /*#__PURE__*/_react.default.createElement(_ui.Button, {
32
+ id: "share",
33
+ iconLeft: /*#__PURE__*/_react.default.createElement(_ui.Icon, {
34
+ icon: "IconExternalLink"
35
+ }),
36
+ onClick: function onClick() {
37
+ // TODO: add share programs functionality
38
+ },
39
+ primary: true,
40
+ className: "font-semibold bg-current-blue normal-case w-64",
41
+ label: "Share Programs"
42
+ }))));
43
+ }
44
+ //# sourceMappingURL=ReferralsSent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ReferralsSent.js","names":["_ui","require","_react","_interopRequireDefault","_api","_constants","ReferralsSent","default","createElement","className","REFERRAL_SENT_SUCCESS","Button","id","onClick","callbacks","onReferralCompleted","label","iconLeft","Icon","icon","primary"],"sources":["../../../src/pages/review/ReferralsSent.js"],"sourcesContent":["import { Button, Icon } from '@unite-us/ui';\nimport React from 'react';\nimport { callbacks } from '../../config/api';\nimport { REFERRAL_SENT_SUCCESS } from '../referrals/constants';\n\nexport default function ReferralsSent() {\n return (\n <div className='flex justify-around mt-24'>\n <div className='py-32 bg-white'>\n <h1 className='text-5xl my-5 text-center font-bold'>Referrals Successfully Sent!</h1>\n <div className='w-7/12 p-4 pb-12 text-center mx-auto'>\n {REFERRAL_SENT_SUCCESS}\n </div>\n\n <div className='flex justify-center gap-4'>\n <Button\n id=\"dashboard\"\n onClick={() => {\n callbacks.onReferralCompleted();\n }}\n className=\"font-semibold normal-case w-64\"\n label=\"Go to my Dashboard\"\n />\n\n <Button\n id=\"share\"\n iconLeft={<Icon icon=\"IconExternalLink\" />}\n onClick={() => {\n // TODO: add share programs functionality\n }}\n primary\n className=\"font-semibold bg-current-blue normal-case w-64\"\n label=\"Share Programs\"\n />\n </div>\n </div>\n </div>\n )\n}\n"],"mappings":";;;;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,IAAA,GAAAH,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AAEe,SAASK,aAAaA,CAAA,EAAG;EACtC,oBACEJ,MAAA,CAAAK,OAAA,CAAAC,aAAA;IAAKC,SAAS,EAAC;EAA2B,gBACxCP,MAAA,CAAAK,OAAA,CAAAC,aAAA;IAAKC,SAAS,EAAC;EAAgB,gBAC7BP,MAAA,CAAAK,OAAA,CAAAC,aAAA;IAAIC,SAAS,EAAC;EAAqC,GAAC,8BAA4B,CAAK,eACrFP,MAAA,CAAAK,OAAA,CAAAC,aAAA;IAAKC,SAAS,EAAC;EAAsC,GAClDC,gCAAqB,CAClB,eAENR,MAAA,CAAAK,OAAA,CAAAC,aAAA;IAAKC,SAAS,EAAC;EAA2B,gBACxCP,MAAA,CAAAK,OAAA,CAAAC,aAAA,CAACR,GAAA,CAAAW,MAAM;IACLC,EAAE,EAAC,WAAW;IACdC,OAAO,EAAE,SAAAA,QAAA,EAAM;MACbC,cAAS,CAACC,mBAAmB,EAAE;IACjC,CAAE;IACFN,SAAS,EAAC,gCAAgC;IAC1CO,KAAK,EAAC;EAAoB,EAC1B,eAEFd,MAAA,CAAAK,OAAA,CAAAC,aAAA,CAACR,GAAA,CAAAW,MAAM;IACLC,EAAE,EAAC,OAAO;IACVK,QAAQ,eAAEf,MAAA,CAAAK,OAAA,CAAAC,aAAA,CAACR,GAAA,CAAAkB,IAAI;MAACC,IAAI,EAAC;IAAkB,EAAI;IAC3CN,OAAO,EAAE,SAAAA,QAAA,EAAM;MACb;IAAA,CACA;IACFO,OAAO;IACPX,SAAS,EAAC,gDAAgD;IAC1DO,KAAK,EAAC;EAAgB,EACtB,CACE,CACF,CACF;AAEV"}
@@ -1,24 +1,35 @@
1
1
  "use strict";
2
2
 
3
+ var _typeof = require("@babel/runtime-corejs3/helpers/typeof");
4
+ var _WeakMap = require("@babel/runtime-corejs3/core-js-stable/weak-map");
3
5
  var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
6
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
4
7
  var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
5
8
  _Object$defineProperty(exports, "__esModule", {
6
9
  value: true
7
10
  });
8
11
  exports.default = Review;
9
12
  var _stringify = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/json/stringify"));
13
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
10
14
  var _ui = require("@unite-us/ui");
11
- var _react = _interopRequireDefault(require("react"));
15
+ var _react = _interopRequireWildcard(require("react"));
12
16
  var _Stepper = _interopRequireDefault(require("../../components/Stepper"));
13
17
  var _StepHeader = _interopRequireDefault(require("../../components/StepHeader"));
14
18
  var _constants = require("../referrals/constants");
15
19
  var _api = require("../../config/api");
20
+ var _ReferralsSent = _interopRequireDefault(require("./ReferralsSent"));
16
21
  var _AppCreateReferralProvider = require("../../context/AppCreateReferralProvider");
17
22
  var _ClientHeader = _interopRequireDefault(require("../../components/ClientHeader/ClientHeader"));
23
+ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
24
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
25
  function Review(props) {
19
26
  var location = props.location;
20
27
  var _useAppCreateReferral = (0, _AppCreateReferralProvider.useAppCreateReferralContext)(),
21
28
  state = _useAppCreateReferral.state;
29
+ var _useState = (0, _react.useState)(false),
30
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
31
+ sent = _useState2[0],
32
+ updateSent = _useState2[1];
22
33
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ClientHeader.default, {
23
34
  name: "Richard Wilson",
24
35
  consentStatus: "accepted",
@@ -27,7 +38,7 @@ function Review(props) {
27
38
  email: "rwilson@test.com"
28
39
  }), /*#__PURE__*/_react.default.createElement(_Stepper.default, {
29
40
  location: location
30
- }), /*#__PURE__*/_react.default.createElement("div", {
41
+ }), sent ? /*#__PURE__*/_react.default.createElement(_ReferralsSent.default, null) : /*#__PURE__*/_react.default.createElement("div", {
31
42
  className: "px-12"
32
43
  }, /*#__PURE__*/_react.default.createElement(_StepHeader.default, {
33
44
  icon: true,
@@ -41,7 +52,7 @@ function Review(props) {
41
52
  }), /*#__PURE__*/_react.default.createElement(_ui.Button, {
42
53
  id: "done",
43
54
  onClick: function onClick() {
44
- _api.callbacks.onReferralCompleted();
55
+ updateSent(true);
45
56
  },
46
57
  primary: true,
47
58
  label: "Finish"
@@ -1 +1 @@
1
- {"version":3,"file":"Review.js","names":["_ui","require","_react","_interopRequireDefault","_Stepper","_StepHeader","_constants","_api","_AppCreateReferralProvider","_ClientHeader","Review","props","location","_useAppCreateReferral","useAppCreateReferralContext","state","default","createElement","Fragment","name","consentStatus","dob","Date","now","tel","email","className","icon","header","REVIEW_REFERRAL_DESCRIPTION","_stringify","Button","id","onClick","browserHistory","goBack","label","callbacks","onReferralCompleted","primary"],"sources":["../../../src/pages/review/Review.js"],"sourcesContent":["import { Button } from '@unite-us/ui';\nimport React from 'react';\nimport Stepper from '../../components/Stepper';\nimport StepHeader from '../../components/StepHeader';\nimport { REVIEW_REFERRAL_DESCRIPTION } from '../referrals/constants';\nimport { browserHistory, callbacks } from '../../config/api';\nimport { useAppCreateReferralContext } from '../../context/AppCreateReferralProvider';\nimport ClientHeader from '../../components/ClientHeader/ClientHeader';\n\nexport default function Review(props) {\n const { location } = props;\n const { state } = useAppCreateReferralContext();\n\n return (\n <>\n <ClientHeader name=\"Richard Wilson\" consentStatus=\"accepted\" dob={Date.now()} tel=\"9876543210\" email=\"rwilson@test.com\" />\n <Stepper location={location} />\n <div className=\"px-12\">\n <StepHeader icon header={'Review Step'}>\n {REVIEW_REFERRAL_DESCRIPTION}\n </StepHeader>\n\n <div>\n <h1>Context State:</h1>\n <code>{JSON.stringify(state)}</code>\n </div>\n <Button\n id=\"back\"\n onClick={() => {\n browserHistory.goBack()\n }}\n label=\"Back\"\n />\n\n <Button\n id=\"done\"\n onClick={() => {\n callbacks.onReferralCompleted();\n }}\n primary\n label=\"Finish\"\n />\n </div>\n </>\n )\n}\n"],"mappings":";;;;;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,QAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,WAAA,GAAAF,sBAAA,CAAAF,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,IAAA,GAAAN,OAAA;AACA,IAAAO,0BAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAN,sBAAA,CAAAF,OAAA;AAEe,SAASS,MAAMA,CAACC,KAAK,EAAE;EACpC,IAAQC,QAAQ,GAAKD,KAAK,CAAlBC,QAAQ;EAChB,IAAAC,qBAAA,GAAkB,IAAAC,sDAA2B,GAAE;IAAvCC,KAAK,GAAAF,qBAAA,CAALE,KAAK;EAEb,oBACEb,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAAAf,MAAA,CAAAc,OAAA,CAAAE,QAAA,qBACEhB,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACR,aAAA,CAAAO,OAAY;IAACG,IAAI,EAAC,gBAAgB;IAACC,aAAa,EAAC,UAAU;IAACC,GAAG,EAAEC,IAAI,CAACC,GAAG,EAAG;IAACC,GAAG,EAAC,YAAY;IAACC,KAAK,EAAC;EAAkB,EAAG,eAC1HvB,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACb,QAAA,CAAAY,OAAO;IAACJ,QAAQ,EAAEA;EAAS,EAAG,eAC/BV,MAAA,CAAAc,OAAA,CAAAC,aAAA;IAAKS,SAAS,EAAC;EAAO,gBACpBxB,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACZ,WAAA,CAAAW,OAAU;IAACW,IAAI;IAACC,MAAM,EAAE;EAAc,GACpCC,sCAA2B,CACjB,eAEb3B,MAAA,CAAAc,OAAA,CAAAC,aAAA,2BACEf,MAAA,CAAAc,OAAA,CAAAC,aAAA,aAAI,gBAAc,CAAK,eACvBf,MAAA,CAAAc,OAAA,CAAAC,aAAA,eAAO,IAAAa,UAAA,CAAAd,OAAA,EAAeD,KAAK,CAAC,CAAQ,CAChC,eACNb,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACjB,GAAA,CAAA+B,MAAM;IACLC,EAAE,EAAC,MAAM;IACTC,OAAO,EAAE,SAAAA,QAAA,EAAM;MACbC,mBAAc,CAACC,MAAM,EAAE;IACzB,CAAE;IACFC,KAAK,EAAC;EAAM,EACZ,eAEFlC,MAAA,CAAAc,OAAA,CAAAC,aAAA,CAACjB,GAAA,CAAA+B,MAAM;IACLC,EAAE,EAAC,MAAM;IACTC,OAAO,EAAE,SAAAA,QAAA,EAAM;MACbI,cAAS,CAACC,mBAAmB,EAAE;IACjC,CAAE;IACFC,OAAO;IACPH,KAAK,EAAC;EAAQ,EACd,CACE,CACL;AAEP"}
1
+ {"version":3,"file":"Review.js","names":["_ui","require","_react","_interopRequireWildcard","_Stepper","_interopRequireDefault","_StepHeader","_constants","_api","_ReferralsSent","_AppCreateReferralProvider","_ClientHeader","_getRequireWildcardCache","nodeInterop","_WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","_Object$defineProperty","_Object$getOwnPropertyDescriptor","key","Object","prototype","hasOwnProperty","call","desc","set","Review","props","location","_useAppCreateReferral","useAppCreateReferralContext","state","_useState","useState","_useState2","_slicedToArray2","sent","updateSent","createElement","Fragment","name","consentStatus","dob","Date","now","tel","email","className","icon","header","REVIEW_REFERRAL_DESCRIPTION","_stringify","Button","id","onClick","browserHistory","goBack","label","primary"],"sources":["../../../src/pages/review/Review.js"],"sourcesContent":["import { Button } from '@unite-us/ui';\nimport React, { useState } from 'react';\nimport Stepper from '../../components/Stepper';\nimport StepHeader from '../../components/StepHeader';\nimport { REVIEW_REFERRAL_DESCRIPTION } from '../referrals/constants';\nimport { browserHistory } from '../../config/api';\nimport ReferralsSent from './ReferralsSent';\nimport { useAppCreateReferralContext } from '../../context/AppCreateReferralProvider';\nimport ClientHeader from '../../components/ClientHeader/ClientHeader';\n\nexport default function Review(props) {\n const { location } = props;\n const { state } = useAppCreateReferralContext();\n\n const [sent, updateSent] = useState(false);\n\n return (\n <>\n <ClientHeader name=\"Richard Wilson\" consentStatus=\"accepted\" dob={Date.now()} tel=\"9876543210\" email=\"rwilson@test.com\" />\n <Stepper location={location} />\n {\n sent ? <ReferralsSent/> : (\n <div className=\"px-12\">\n <StepHeader icon header={'Review Step'}>\n {REVIEW_REFERRAL_DESCRIPTION}\n </StepHeader>\n\n <div>\n <h1>Context State:</h1>\n <code>{JSON.stringify(state)}</code>\n </div>\n <Button\n id=\"back\"\n onClick={() => {\n browserHistory.goBack()\n }}\n label=\"Back\"\n />\n\n <Button\n id=\"done\"\n onClick={() => {\n updateSent(true);\n }}\n primary\n label=\"Finish\"\n />\n </div>\n )\n }\n </>\n )\n}\n"],"mappings":";;;;;;;;;;;;;AAAA,IAAAA,GAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AAC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B,OAAA,CAAA2B,aAAA,aAAI,gBAAc,CAAK,eACvB7C,MAAA,CAAAkB,OAAA,CAAA2B,aAAA,eAAO,IAAAa,UAAA,CAAAxC,OAAA,EAAeoB,KAAK,CAAC,CAAQ,CAChC,eACNtC,MAAA,CAAAkB,OAAA,CAAA2B,aAAA,CAAC/C,GAAA,CAAA6D,MAAM;IACLC,EAAE,EAAC,MAAM;IACTC,OAAO,EAAE,SAAAA,QAAA,EAAM;MACbC,mBAAc,CAACC,MAAM,EAAE;IACzB,CAAE;IACFC,KAAK,EAAC;EAAM,EACZ,eAEFhE,MAAA,CAAAkB,OAAA,CAAA2B,aAAA,CAAC/C,GAAA,CAAA6D,MAAM;IACLC,EAAE,EAAC,MAAM;IACTC,OAAO,EAAE,SAAAA,QAAA,EAAM;MACbjB,UAAU,CAAC,IAAI,CAAC;IAClB,CAAE;IACFqB,OAAO;IACPD,KAAK,EAAC;EAAQ,EACd,CAEL,CAEF;AAEP"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unite-us/app-create-referral",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "main": "build/index.js",
5
5
  "author": "Alex Morales",
6
6
  "dependencies": {