UNPKG

@icap-ethiopia/esm-ethiohri-phrh

Version:

An OpenMRS seed application for building microfrontends

1 lines 74.3 kB
"use strict";(globalThis.webpackChunk_icap_ethiopia_esm_ethiohri_phrh=globalThis.webpackChunk_icap_ethiopia_esm_ethiohri_phrh||[]).push([[200],{2250:(e,n,t)=>{t.d(n,{Aq:()=>s,C1:()=>a,VJ:()=>i,b8:()=>l,m5:()=>o,uM:()=>r});var a={enrollmentDate:"b8cd8630-56dd-495e-8c84-e36a636febe7",sbccCompleted:"9c135d66-ff6f-4fc0-bd22-6ab7ec72faa4",reachedWithPackage:"c2e939f9-5a2c-437c-8743-ab5a5d0862b9",hivTestedPreviously:"f4bcd7bc-83c2-40b1-9159-dadb97a83fc8",hivTestResult:"23ef2580-e9e5-4e1b-af9b-584cdd30abc4",artStarted:"1149AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",artStartDate:"ae329187-6232-4142-aa91-22c85bc8e5b5",uniqueArtNumber:"c8d98ef1-5e58-417c-a7c3-7f30f76a7155",durationSinceLastTest:"d002eb43-bcba-4435-8e0d-b0a6130f09bd",prepPreviously:"740e5d37-2b4e-4a38-907d-f6c2cd828af7"},r={enrollmentDate:null,sbccCompleted:"",reachedWithPackage:"",hivTestedPreviously:"",hivTestResult:"",artStarted:"",artStartDate:null,uniqueArtNumber:"",durationSinceLastTest:null,prepPreviously:""},i={followUpDate:"b8cd8630-56dd-495e-8c84-e36a636febe7",riskBehaviorsPresent:"154fda32-fbc1-4ed3-ab7a-477e2cfe76b1",riskBehaviors:"beaaba00-bc94-40f4-bb3c-aaa97b23b2c4",targetGroup:"ca2c04ba-d9bd-4bad-ab03-e57ea9e49016",modalityUsed:"79c5e586-95a0-40af-a34c-852909d6a88d",couponId:"1fc5d156-10fa-4654-85ba-799039b73671",couponReturnDate:"a54b4a31-a65d-4dc1-b3b3-df0665470f26",etbPaid:"435bed47-53e7-40a4-8d3e-309e7f977e4e",hivSelfTestDistributed:"166464AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",hivSelfTestModality:"2f8edc50-7018-4557-bb23-2bb28d3f4092",hivSelfTestFor:"55d35624-fb83-400b-8cfb-0783e3a0ef65",hivSelfTestResult:"e77fb81b-7811-41e4-8f30-af101d9c1c6b",selfTestResultReported:"fe83f450-4966-4fc6-8b50-375b6d64f546",conventionalTestDone:"164401AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",conventionalTestDate:"160082AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",conventionalTestResult:"40d1c129-5373-4005-95b1-409e56db9743",linkageToCare:"c1bb9738-10aa-4905-bb5d-af4e55b4bb69",pregnancyTestDone:"f562d24b-4c2f-44cd-b894-7ee94ef0078c",breastFeeding:"5526AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",hcgTestResult:"d30935f7-49ab-4984-b9e7-b18391a7efc8",pmtctLinkageDate:"67ff87d3-f1c1-4f00-922a-59a295b23f49",prepEligible:"f9747f64-d9ad-496d-888d-4a3de096ff8d",prepStarted:"3b4bc0b2-acbb-4fb5-82eb-6f0479915862",prepStartDate:"a216f62d-5b73-4b99-b96a-37172a0c811e",prepNotStartedReasons:"e03bd6fa-2733-4ea7-b8b5-fc3221b4ca36",prepType:"a501dd8a-8aa3-4595-a0be-2d7519504612",prepFollowUpStatus:"b23c8ae7-cd07-4ec2-b60c-ad0e46f0d6f9",prepNotContinuedReasons:"e03bd6fa-2733-4ea7-b8b5-fc3221b4ca36",prepSideEffects:"14718b2b-d38a-4f68-8e22-8bc739ae43f7",prepAdherence:"23d97715-589c-4dcf-bb86-70e26bba2269",pepDischargeDate:"18f78400-d91c-40ea-bd9f-4388c10d50c1",stiScreened:"f461ff79-1873-4f80-bffd-6b3164db7e88",syndromicStiDiagnosis:"7a643a93-3f11-4ad0-acfa-b15f2d7c8ddc",stiManagementProvided:"a64f8fa4-5e3d-47d9-b1c3-fe7a6998e99c",tbScreened:"feebf47b-c11e-4fa7-bb4b-1a9fc444bcc9",tbScreeningResult:"c20140f7-d45d-4b44-a1b9-0534861a615d",tbConfirmed:"ceeb9fe5-3f90-4abd-9b7b-0188fd8c4991",tbLinked:"f47dfd57-f4a1-4d18-b47f-46126de40318",mentalHealthScreened:"0f19d323-f7c9-4b64-b1ec-9bd5cd37ebec",mhiSudIdentified:"160246AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",mhiSudLinked:"d25ddd73-6d0e-49db-9b7d-99c376f2469e",hepBTested:"6c6a1af6-f37b-4e40-9dc3-cb69c1e9d96c",hepBResult:"1322AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",hepBReferred:"6b2fdc09-6981-47f3-badd-b66c54207225",hepBVaccination:"b91b464f-fcb3-44e3-9666-546f3fbe1a27",hepCTested:"aa82f32b-93f4-4b9e-b26a-9242455abcf6",hepCResult:"1325AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",hepCReferred:"404360b6-3326-41da-950c-edc66d303adf",fpCounseling:"1382AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",fpMethodProvided:"8d5be308-7205-4a57-844e-968f62850e65",fpMethodType:"160576AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",condomDemo:"408f420c-284e-456c-9c8e-89f18fcc02b0",condomsProvided:"159777AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA",condomCount:"1f0bb965-e2ec-4f74-a640-9ca0082711d1",gbvAssessment:"b3e4157e-e170-4608-aca5-d832a8d5a4bb",gbvOutcome:"9e730210-9008-48cb-b182-cec8501cd453",gbvLinked:"5fdc49a5-18fd-4817-8270-9e5b4f47c62f",gbvServiceProvided:"202444f5-00b7-42c4-9d8d-87c7fbab5ee7",cervicalCancerEligible:"1b1dc36e-fe65-4f4b-8304-09fbd9c106ad",cervicalCancerCounselled:"a3998691-d9cc-492b-81f2-7bd28a6e413b",cervicalCancerScreened:"db2c6647-0f71-414a-9100-8ea9a870fa26",cervicalCancerNotScreenedReason:"650c7f2c-558e-47e0-aaed-035a242771a6",cervicalCancerResult:"01c546b4-e08a-4c0c-82ef-d387cab6bbbf",cervicalCancerTreatment:"3dff2a98-0af9-4a52-b9b8-e958bcfc7329",lastFollowUpOutcome:"c0a705b5-c77d-4553-84b2-dfaa30444a69",finalDecision:"f0652b88-d1dd-4ec5-add7-8bdda63b5a8a",nextAppointmentDate:"c596f199-4d76-4eca-b3c4-ffa631c0aee9",lastFollowUpOutcomeOther:"a918e37b-8581-44d7-90f3-0e5ad4e7380d",reasonForDiscontinuation:"4bf84596-dd44-4b81-a638-4617e189a89d",amount:"b237ed21-8cd7-4e80-8a86-c0d6e0ab9215",prepDischargeDate:"18f78400-d91c-40ea-bd9f-4388c10d50c1",linkedToPmct:"4f0586cd-4479-4629-aca1-8766b5d5ecd3"},o={followUpDate:null,riskBehaviorsPresent:"",riskBehaviors:{selectedItems:[]},targetGroup:{selectedItems:[]},modalityUsed:"",couponId:"",couponReturnDate:null,etbPaid:"",hivSelfTestDistributed:"",hivSelfTestModality:"",hivSelfTestFor:"",selfTestResultReported:"",hivSelfTestResult:"",conventionalTestDone:"",conventionalTestDate:null,conventionalTestResult:"",linkageToCare:"",pregnancyTestDone:"",breastFeeding:"",hcgTestResult:"",pmtctLinkageDate:null,prepEligible:"",prepStarted:"",prepStartDate:null,prepNotStartedReasons:"",prepType:"",prepFollowUpStatus:"",prepNotContinuedReasons:"",prepSideEffects:"",prepAdherence:"",pepDischargeDate:null,nextAppointmentDate:null,stiScreened:"",syndromicStiDiagnosis:"",stiManagementProvided:"",tbScreened:"",tbScreeningResult:"",tbConfirmed:"",tbLinked:"",mentalHealthScreened:"",mhiSudIdentified:"",mhiSudLinked:"",hepBTested:"",hepBResult:"",hepBReferred:"",hepBVaccination:"",hepCTested:"",hepCResult:"",hepCReferred:"",fpCounseling:"",fpMethodProvided:"",fpMethodType:{selectedItems:[]},condomDemo:"",condomsProvided:"",condomCount:"",gbvAssessment:"",gbvOutcome:"",gbvLinked:"",gbvServiceProvided:"",cervicalCancerEligible:"",cervicalCancerCounselled:"",cervicalCancerScreened:"",cervicalCancerNotScreenedReason:"",cervicalCancerResult:"",cervicalCancerTreatment:"",lastFollowUpOutcome:"",finalDecision:"",reasonForDiscontinuation:"",lastFollowUpOutcomeOther:"",amount:null,prepDischargeDate:null,linkedToPmct:null},l={followUpDate:"b8cd8630-56dd-495e-8c84-e36a636febe7",numberOfCoupons:"7b88fad4-2be2-4881-b758-26a5f4da50ee",coupon:"49e5f947-3db9-4e44-9ce2-fe7c59ae3acf",couponId:"1fc5d156-10fa-4654-85ba-799039b73671"},s={followUpDate:null,numberOfCoupons:null,coupon:[{value:""}]}},3371:(e,n,t)=>{t.d(n,{g:()=>d});var a=t(5987),r=t(8322),i=t(231),o=t.n(i);function l(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,a=new Array(n);t<n;t++)a[t]=e[t];return a}function s(e,n,t,a,r,i,o){try{var l=e[i](o),s=l.value}catch(e){return void t(e)}l.done?n(s):Promise.resolve(s).then(a,r)}function c(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var a,r,i=[],o=!0,l=!1;try{for(t=t.call(e);!(o=(a=t.next()).done)&&(i.push(a.value),!n||i.length!==n);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==t.return||t.return()}finally{if(l)throw r}}return i}}(e,n)||function(e,n){if(e){if("string"==typeof e)return l(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(t):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?l(e,n):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=function(e,n,t,a){var r;if(!((null===(r=e)||void 0===r?void 0:r.obs)&&n&&t&&a))return[];var i=Object.keys(n).filter((function(e){return n[e]&&t[e]})).map((function(e){return t[e]}));return e.obs.filter((function(e){var n,t;return i.includes(null===(t=e)||void 0===t||null===(n=t.concept)||void 0===n?void 0:n.uuid)})).filter((function(e){var n,r,i,o,l,s=Object.keys(t).find((function(n){return t[n]===e.concept.uuid}));if(!s)return!1;var c,u,d,f,p,h,b=null!==(l=null===(r=e)||void 0===r||null===(n=r.value)||void 0===n?void 0:n.uuid)&&void 0!==l?l:null===(i=e)||void 0===i?void 0:i.value,g=a[s];return c=(null===(o=g)||void 0===o?void 0:o.selectedItems)?Array.isArray(g.selectedItems)?g.selectedItems.map((function(e){var n;return null!==(u=null===(n=e)||void 0===n?void 0:n.uuid)&&void 0!==u?u:e})):[]:null!==(h=null===(f=g)||void 0===f||null===(d=f.value)||void 0===d?void 0:d.uuid)&&void 0!==h?h:null===(p=g)||void 0===p?void 0:p.value,Array.isArray(c)?!c.includes(b):b!==c})).map((function(e){return{uuid:e.uuid,voided:!0}}))};function d(e,n){return f.apply(this,arguments)}function f(){var e;return e=function(e,n){var t,i,l,s,d,f,p,h,b,g,A,y,m,$,v,_,w,C,k,x,S,T,D,z,M,q,E;return function(e,n){var t,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;o;)try{if(t=1,a&&(r=2&i[0]?a.return:i[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,i[1])).done)return r;switch(a=0,r&&(i=[2&i[0],r.value]),i[0]){case 0:case 1:r=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,a=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!r||i[1]>r[0]&&i[1]<r[3])){o.label=i[1];break}if(6===i[0]&&o.label<r[1]){o.label=r[1],r=i;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(i);break}r[2]&&o.ops.pop(),o.trys.pop();continue}i=n.call(e,o)}catch(e){i=[6,e],a=0}finally{t=r=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,(function(Y){switch(Y.label){case 0:return i=n.namespace,l=n.touchedFields,s=n.encounter,d=n.conceptsUuid,f=n.encounterType,p=n.formUuid,h=n.encounterDate,b=n.patientUuid,g=n.providerUuid,A=n.locationUuid,y=n.visibilityRules,m=void 0===y?{}:y,$=n.context,v=void 0===$?{}:$,_=n.encounterUuid,w=n.mutateEncounters,C=n.workspaceName,k=n.editMode,x=void 0!==k&&k,S=[],[4,u(s,l,d,e)];case 1:Y.sent().forEach((function(e){return S.push(e)})),(null===(t=s)||void 0===t?void 0:t.obs)&&Object.keys(m).length>0&&Object.keys(m).forEach((function(n){var t=d[n];if(t){var a=m[n](e,v);l[n],a||s.obs.filter((function(e){var n;return(null===(n=e.concept)||void 0===n?void 0:n.uuid)===t})).forEach((function(e){S.push({uuid:e.uuid,voided:!0})}))}})),Object.entries(e).filter((function(n){var t=c(n,2),a=t[0],r=t[1];if(""===r||null==r||0===r)return!1;var i=l[a],o=!m[a]||m[a](e,v);return i&&o})).forEach((function(e){var n,t=c(e,2),a=t[0],r=t[1],l="".concat(i,"-").concat(a);if(Array.isArray(null===(n=r)||void 0===n?void 0:n.selectedItems))r.selectedItems.forEach((function(e){S.push({concept:d[a],formFieldNamespace:i,formFieldPath:l,value:e.concept})}));else if("coupon"===a&&Array.isArray(r)){var s={concept:d.coupon,formFieldNamespace:i,formFieldPath:l,groupMembers:[]};r.forEach((function(e,n){e.value&&s.groupMembers.push({concept:d.couponId,formFieldNamespace:i,formFieldPath:l,value:e.value})})),s.groupMembers.length>0&&S.push(s)}else{var u=function(e,n){if(n.toLowerCase().includes("date")&&e){var t=new Date(e);return isNaN(t.getTime())?null:o()(t).format("YYYY-MM-DD")}return Array.isArray(e)?e.filter((function(e){return""!==e&&null!=e})):""===e||null==e||0===e?null:e}(r,a);null!==u&&S.push({concept:d[a],formFieldNamespace:i,formFieldPath:l,value:u})}})),T={encounterDatetime:h,encounterProviders:[{provider:g,encounterRole:"a0b03050-c99b-11e0-9572-0800200c9a66"}],encounterType:f,form:{uuid:p},location:A,patient:b,orders:[],obs:S},Y.label=2;case 2:return Y.trys.push([2,4,,5]),[4,(0,r.t2)(new AbortController,T,_)];case 3:return D=Y.sent(),(0,a.showSnackbar)({isLowContrast:!0,title:x?"Record Updated":"Record Saved",kind:"success",subtitle:x?"Encounter Updated":"A new encounter was created"}),w(),(0,a.closeWorkspace)(C),[2,D.data];case 4:throw z=Y.sent(),(0,a.showSnackbar)({isLowContrast:!0,title:x?"Error Updating encounter":"Error creating encounter",kind:"error",subtitle:(null===(E=z.response)||void 0===E||null===(q=E.data)||void 0===q||null===(M=q.error)||void 0===M?void 0:M.message)||z.message}),z;case 5:return[2]}}))},f=function(){var n=this,t=arguments;return new Promise((function(a,r){var i=e.apply(n,t);function o(e){s(i,a,r,o,l,"next",e)}function l(e){s(i,a,r,o,l,"throw",e)}o(void 0)}))},f.apply(this,arguments)}},3901:(e,n,t)=>{t.d(n,{aG:()=>r,cG:()=>o,qV:()=>i});var a=t(2664),r=a.Ik({enrollmentDate:a.gl().required("Enrollment Date is required"),sbccCompleted:a.Yj().required("SBCC Completed is required"),reachedWithPackage:a.Yj().required("Reached with Package is required"),hivTestedPreviously:a.Yj().required("This field is required"),hivTestResult:a.Yj().nullable().when("hivTestedPreviously",{is:function(e){return"1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e},then:function(e){return e.required("Previous HIV Test Result is required").min(1,"Previous HIV Test Result is required")},otherwise:function(e){return e.nullable()}}),artStarted:a.Yj().nullable().when("hivTestResult",{is:function(e){return"703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===e},then:function(e){return e.required("ART Started is required").min(1,"ART Started is requires")},otherwise:function(e){return e.nullable()}}),artStartDate:a.gl().nullable(),uniqueArtNumber:a.Yj().nullable(),durationSinceLastTest:a.Yj().nullable().when("hivTestResult",{is:function(e){return"5e4fc757-0b14-49ae-b3b7-419666f41e15"===e},then:function(e){return e.required("Months Since Last Test is required").min(1,"Months Since Last Test is required ")},otherwise:function(e){return e.nullable()}}),prepPreviously:a.Yj().required("Pre-EP previously is required")}),i=a.Ik({artStarted:a.zM().nullable(),followUpDate:a.gl().required("Follow-up Date is required"),riskBehaviorsPresent:a.Yj().required("Risk Behaviors Present is required"),riskBehaviors:a.Ik({selectedItems:a.YO(a.Ik({concept:a.Yj().nullable(),label:a.Yj().nullable()}))}).required("Risk behaviors are required"),targetGroup:a.Ik({selectedItems:a.YO(a.Ik({concept:a.Yj().nullable(),label:a.Yj().nullable()}))}).required("Target group is required"),modalityUsed:a.Yj().required("Modality Used is required"),couponId:a.Yj().nullable().when("modalityUsed",{is:function(e){return"8d560b25-6860-44fb-bf16-d21672435c6d"===e},then:function(e){return e.required("Coupon ID is required").min(1,"Coupon ID is required")},otherwise:function(e){return e.nullable()}}),couponValid:a.zM().nullable(),couponReturnDate:a.gl().nullable().when("couponValid",{is:function(e){return!0===e},then:function(e){return e.required("Coupon Return Date is required")},otherwise:function(e){return e.nullable()}}),etbPaid:a.Yj().nullable().when("couponValid",{is:function(e){return e},then:function(e){return e.required("ETB Paid to Recruiter is required").min(1,"ETB Paid to Recruiter is required")},otherwise:function(e){return e.nullable()}}),amount:a.ai().nullable(),hivSelfTestDistributed:a.Yj().required("HIV self-test distribution is required"),hivSelfTestModality:a.Yj().nullable(),hivSelfTestFor:a.Yj().nullable().when("hivSelfTestModality",{is:function(e){return"ef43abdd-5150-4b13-b424-486e20ab52d1"===e},then:function(e){return e.required("Kit Collected For is required").min(1,"Kit Collected For is required")},otherwise:function(e){return e.nullable()}}),selfTestResultReported:a.Yj().required("Self-test result reported is required"),hivSelfTestResult:a.Yj().nullable(),conventionalTestDone:a.Yj().nullable().when("artStarted",{is:function(e){return e},then:function(e){return e.required("Conventional test status is required").min(1,"Conventional test status is required")},otherwise:function(e){return e.nullable()}}),conventionalTestDate:a.gl().nullable(),prepEligible:a.Yj().when("artStarted",{is:function(e){return e},then:function(e){return e.required("PrEP Eligible is required").min(1,"PrEP Eligible is required")},otherwise:function(e){return e.nullable()}}),prepStarted:a.Yj().nullable(),prepStartDate:a.gl().nullable(),prepType:a.Yj().nullable(),prepFollowUpStatus:a.Yj().nullable(),reasonForDiscontinuation:a.Yj().nullable(),prepDischargeDate:a.gl().nullable(),prepSideEffects:a.Yj(),prepSideEffectsOther:a.Yj().nullable(),prepAdherence:a.Yj().nullable(),prepNotContinuedReasons:a.Yj().nullable(),stiScreened:a.Yj().required("STI screening is required"),syndromicStiDiagnosis:a.Yj().nullable(),stiManagementProvided:a.Yj().nullable(),tbScreened:a.Yj().nullable(),tbScreeningResult:a.Yj().nullable(),tbConfirmed:a.Yj().nullable(),tbLinked:a.Yj().nullable(),mentalHealthScreened:a.Yj().required("Mental health screening is required"),mhiSudIdentified:a.Yj().nullable(),mhiSudLinked:a.Yj().nullable(),hepBResult:a.Yj().nullable(),hepBReferred:a.Yj().nullable(),hepBVaccination:a.Yj().nullable(),hepBTested:a.Yj().nullable(),hepCResult:a.Yj().nullable(),hepCReferred:a.Yj().nullable(),hepCTested:a.Yj().nullable(),cervicalCancerEligible:a.Yj().nullable().test("cervicalCancerEligible","Cervical cancer eligibility is required",(function(e){var n=this.parent,t=n.age;return!("female"===n.sex&&t>=25&&t<=65)||null!=e&&String(e).trim().length>0})),cervicalCancerCounselled:a.Yj().nullable(),cervicalCancerScreened:a.Yj().nullable(),cervicalCancerResult:a.Yj().nullable(),cervicalCancerTreatment:a.Yj().nullable(),cervicalCancerNotScreenedReason:a.Yj().nullable(),fpCounseling:a.Yj().required("Family planning counseling is required"),fpMethodProvided:a.Yj().nullable(),fpMethodType:a.Ik({selectedItems:a.YO(a.Ik({concept:a.Yj().nullable(),label:a.Yj().nullable()}))}),condomDemo:a.Yj().nullable(),condomsProvided:a.Yj().nullable(),pregnancyTestDone:a.Yj().required("is the client pregnant is required"),linkedToPmct:a.Yj().nullable().test("linkedToPmct","Is the Client Linked to PMTCT is required",(function(e){var n=this.parent,t=n.conventionalTestResult,a=n.pregnancyTestDone;return!("703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===t)||!("1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===a)||null!=e&&String(e).trim().length>0})),pmtctLinkageDate:a.gl().nullable().test("pmtctLinkageDate","Date Linked to PMTCT",(function(e){var n=this.parent,t=n.conventionalTestResult,a=n.pregnancyTestDone;return!("703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===t)||!("1065AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"===a)||null!=e&&String(e).trim().length>0})),conventionalTestResult:a.Yj().nullable(),breastFeeding:a.Yj().required("is the client breast Feeding is required"),nextAppointmentDate:a.gl().nullable(),lastFollowUpOutcome:a.Yj().nullable(),lastFollowUpOutcomeOther:a.Yj().nullable(),finalDecision:a.Yj().nullable(),age:a.ai().nullable(),sex:a.Yj().nullable()}),o=a.Ik({followUpDate:a.gl().required("Enrollment Date is required"),numberOfCoupons:a.ai().required("Number of coupons is required").max(5,"You can select a maximum of 5 coupons"),coupon:a.YO().of(a.Ik({value:a.Yj().required("Coupon ID is required").test("duplicateCheck","Coupon ID should not be duplicate",(function(e){var n,t;return(null===(t=this.from[1])||void 0===t||null===(n=t.value)||void 0===n?void 0:n.coupon).filter((function(n){return n.value===e})).length<=1}))}))})},4200:(e,n,t)=>{t.d(n,{KC:()=>u,LJ:()=>i,Ny:()=>c,OV:()=>r,RZ:()=>a,aE:()=>s,kB:()=>o,kH:()=>d,tY:()=>l});var a="custom:(uuid,encounterDatetime,encounterType,location:(uuid,name),patient:(uuid,display),encounterProviders:(uuid,provider:(uuid,name)),obs:(uuid,obsDatetime,voided,groupMembers,formFieldNamespace,formFieldPath,concept:(uuid,name:(uuid,name)),value:(uuid,name:(uuid,name),names:(uuid,conceptNameType,name))))",r="custom:(uuid,encounterDatetime,encounterType,location:(uuid,name),patient:(uuid,display),encounterProviders:(uuid,provider:(uuid,name)),obs:(uuid,obsDatetime,voided,groupMembers:(uuid,value,formFieldNamespace,formFieldPath,concept:(uuid,name:(uuid,name))),formFieldNamespace,formFieldPath,concept:(uuid,name:(uuid,name)),value:(uuid,name:(uuid,name),names:(uuid,conceptNameType,name))))",i="c785bab5-f909-4d97-990f-9ba790a537ce",o="67a0ace5-fc4a-47e6-b01b-4767d4dfcc5e",l="6c59be46-5857-4d07-8fcb-177b919d80ac",s="5ae976bb-d07a-42d4-b182-d91be62602cd",c="16e0d4c7-8383-4997-aacb-6fbe3194528d",u="7f350e12-c709-434b-8440-9704e26e0846",d="136b2ded-22a3-4831-a39a-088d35a50ef5"},5956:(e,n,t)=>{t.d(n,{A:()=>l});var a=t(5037),r=t.n(a),i=t(5720),o=t.n(i)()(r());o.push([e.id,":root{--brand-01: #005d5d;--brand-02: #004144;--brand-03: #007d79}.-esm-ethiohri-phrh__form-styles__container___1YdzW section{margin:1rem 0}.-esm-ethiohri-phrh__form-styles__formContainer___yZbHL{display:flex;flex-direction:column;gap:1rem}.-esm-ethiohri-phrh__form-styles__content___mSc3G{flex:1;margin-bottom:16px}.-esm-ethiohri-phrh__form-styles__buttonContainer___QYsUa{margin-top:auto}.-esm-ethiohri-phrh__form-styles__form___YWHEn{display:flex;flex-direction:column;justify-content:space-between;height:100%}.-esm-ethiohri-phrh__form-styles__fieldWrapper___Ty2Xt{margin-bottom:16px}.-esm-ethiohri-phrh__form-styles__label___aZ4m7{display:flex;flex-direction:row;top:5px;bottom:5px;color:#000;font-weight:bold}.-esm-ethiohri-phrh__form-styles__radio___7Q\\+to{display:flex;flex-direction:row}.-esm-ethiohri-phrh__form-styles__buttonSet___a10Fe{position:absolute;bottom:0;left:0;right:0;width:100%}.-esm-ethiohri-phrh__form-styles__button___jPsq2{height:4rem;flex:1}.-esm-ethiohri-phrh__form-styles__tablet___iSWgY{padding:1.5rem 1rem;background-color:#fff}.-esm-ethiohri-phrh__form-styles__desktop___yow5P{padding:0}.-esm-ethiohri-phrh__form-styles__dateTimeSection___yZORb{display:flex;gap:.75rem}.-esm-ethiohri-phrh__form-styles__dateTimeSection___yZORb>div:first-child{flex:2}.-esm-ethiohri-phrh__form-styles__dateTimeSection___yZORb>div:last-child{flex:1}.-esm-ethiohri-phrh__form-styles__pmtctSection___QNNya{display:flex;gap:.75rem}@media screen and (max-width: 600px){.-esm-ethiohri-phrh__form-styles__dateTimeSection___yZORb{flex-direction:column;gap:.75rem}}.omrs-breakpoint-lt-desktop .-esm-ethiohri-phrh__form-styles__formGroup___hN5us{flex-direction:row}.omrs-breakpoint-lt-desktop .-esm-ethiohri-phrh__form-styles__formGroup___hN5us .-esm-ethiohri-phrh__form-styles__heading___ap20k{flex:1}.omrs-breakpoint-lt-desktop .-esm-ethiohri-phrh__form-styles__formGroup___hN5us div{flex:3}.-esm-ethiohri-phrh__form-styles__heading___ap20k{font-size:var(--cds-heading-compact-02-font-size, 1rem);font-weight:var(--cds-heading-compact-02-font-weight, 600);line-height:var(--cds-heading-compact-02-line-height, 1.375);letter-spacing:var(--cds-heading-compact-02-letter-spacing, 0);margin-bottom:.5rem}.-esm-ethiohri-phrh__form-styles__lastField___kiOSZ{margin-bottom:76px}.-esm-ethiohri-phrh__form-styles__containerForm___ZHbNs{overflow:auto;height:80vh}.-esm-ethiohri-phrh__form-styles__helperText___2Ys9v{color:red;font-weight:bold}.-esm-ethiohri-phrh__form-styles__required___JDqUE{color:red}.-esm-ethiohri-phrh__form-styles__formNew___XeNnJ{display:flex;flex-direction:column;height:100vh;background-color:#fff}.-esm-ethiohri-phrh__form-styles__scrollableContent___xICKt{flex:1;overflow-y:auto;min-height:0}.-esm-ethiohri-phrh__form-styles__stickyButtonSet___CfBUp{position:sticky;bottom:0;background-color:#fff;padding:1rem;display:flex;gap:.5rem;box-shadow:0 -2px 4px rgba(0,0,0,.08);z-index:10}","",{version:3,sources:["webpack://./node_modules/@openmrs/esm-styleguide/src/_vars.scss","webpack://./src/forms/form-styles.scss","webpack://./node_modules/@carbon/layout/scss/generated/_spacing.scss","webpack://./node_modules/@carbon/type/scss/_styles.scss","webpack://./node_modules/@carbon/colors/index.scss"],names:[],mappings:"AAoDA,MACE,mBAAA,CACA,mBAAA,CACA,mBAAA,CChDA,4DACE,aAAA,CAKJ,wDACE,YAAA,CACA,qBAAA,CACA,QCeW,CDZb,kDACE,MAAA,CACA,kBAAA,CAGF,0DACE,eAAA,CAEF,+CACE,YAAA,CACA,qBAAA,CACA,6BAAA,CACA,WAAA,CAGF,uDACE,kBAAA,CAGF,gDACE,YAAA,CACA,kBAAA,CACA,OAAA,CACA,UAAA,CACA,UAAA,CACA,gBAAA,CAEF,iDACE,YAAA,CACA,kBAAA,CAIF,oDACE,iBAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,UAAA,CAIF,iDACE,WCNW,CDOX,MAAA,CAGF,iDACE,mBAAA,CACA,qBDnEM,CCsER,kDACE,SAAA,CAGF,0DACE,YAAA,CACA,UCnDW,CDqDX,0EACE,MAAA,CAGF,yEACE,MAAA,CAIJ,uDACE,YAAA,CACA,UChEW,CDmEb,qCACE,0DACE,qBAAA,CACA,UCtES,CAAA,CDyEb,gFACI,kBAAA,CAEA,kIACE,MAAA,CAGF,oFACE,MAAA,CAIN,kDEmvBI,uDAAA,CAAA,0DAAA,CAAA,4DAAA,CAAA,8DAAA,CFhvBF,mBC7FW,CDiGb,oDACE,kBAAA,CAGF,wDACE,aAAA,CACA,WAAA,CAEF,qDACE,SAAA,CACA,gBAAA,CAEF,mDACE,SAAA,CAIF,kDACE,YAAA,CACA,qBAAA,CACA,YAAA,CACA,qBGjBQ,CHoBV,4DACE,MAAA,CACA,eAAA,CACA,YAAA,CAGF,0DACE,eAAA,CACA,QAAA,CACA,qBG7BQ,CH8BR,YCzHW,CD0HX,YAAA,CACA,SCrIW,CDsIX,qCAAA,CACA,UAAA",sourcesContent:["$ui-01: #f4f4f4;\n$ui-02: #ffffff;\n$ui-03: #e0e0e0;\n$ui-04: #8d8d8d;\n$ui-05: #161616;\n$text-02: #525252;\n$text-03: #a8a8a8;\n$ui-background: #ffffff;\n$color-gray-30: #c6c6c6;\n$color-gray-70: #525252;\n$color-gray-100: #161616;\n$color-blue-60-2: #0f62fe;\n$color-blue-10: #edf5ff;\n$color-yellow-50: #feecae;\n$carbon--red-50: #fa4d56;\n$inverse-link: #78a9ff;\n$support-02: #24a148;\n$inverse-support-03: #f1c21b;\n$warning-background: #fff8e1;\n$openmrs-background-grey: #f4f4f4;\n$danger: #da1e28;\n$interactive-01: #0f62fe;\n$field-01: #f4f4f4;\n$grey-2: #e0e0e0;\n$labeldropdown: #c6c6c6;\n\n$brand-primary-10: #d9fbfb;\n$brand-primary-20: #9ef0f0;\n$brand-primary-30: #3ddbd9;\n$brand-primary-40: #08bdba;\n$brand-primary-50: #009d9a;\n\n/* 60,70 and 80 are already declared as brand-01, 02 and 03 respectively */\n\n$brand-primary-90: #022b30;\n$brand-primary-100: #081a1c;\n\n@mixin brand-01($property) {\n #{$property}: #005d5d;\n #{$property}: var(--brand-01);\n}\n\n@mixin brand-02($property) {\n #{$property}: #004144;\n #{$property}: var(--brand-02);\n}\n\n@mixin brand-03($property) {\n #{$property}: #007d79;\n #{$property}: var(--brand-03);\n}\n\n:root {\n --brand-01: #005d5d;\n --brand-02: #004144;\n --brand-03: #007d79;\n}\n\n$breakpoint-phone-min: 0px;\n$breakpoint-phone-max: 600px;\n$breakpoint-tablet-min: 601px;\n$breakpoint-tablet-max: 1023px;\n$breakpoint-small-desktop-min: 1024px;\n$breakpoint-small-desktop-max: 1439px;\n$breakpoint-large-desktop-min: 1440px;\n$breakpoint-large-desktop-max: 99999999px;\n\n/* These color variables will be removed in a future release */\n$brand-teal-01: #007d79;\n$brand-01: #005d5d;\n$brand-02: #004144;\n"," \n@use '@carbon/layout';\n@use '@openmrs/esm-styleguide/src/vars' as *;\n@use '@carbon/colors';\n@use '@carbon/type';\n\n.container { \n & section {\n margin: layout.$spacing-05 0;\n }\n \n}\n\n.formContainer {\n display: flex;\n flex-direction: column; // Ensures stacked layout\n gap: layout.$spacing-05; // Carbon spacing token for consistency \n \n}\n.content {\n flex: 1; /* Make the content div take up available space */\n margin-bottom: 16px;\n /* Add any additional styling for the content */\n}\n.buttonContainer {\n margin-top: auto; /* Push the buttons to the bottom */\n}\n.form {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n height: 100%;\n \n}\n.fieldWrapper {\n margin-bottom: 16px;\n}\n\n.label {\n display: flex;\n flex-direction: row;\n top: 5px;\n bottom: 5px;\n color: black;\n font-weight:bold;\n}\n.radio {\n display: flex;\n flex-direction: row; \n}\n\n\n.buttonSet {\n position: absolute;\n bottom: 0;\n left: 0;\n right: 0; \n width: 100%;\n\n}\n\n.button {\n height: layout.$spacing-10; \n flex: 1;\n}\n\n.tablet {\n padding: layout.$spacing-06 layout.$spacing-05;\n background-color: $ui-02;\n}\n\n.desktop {\n padding: 0;\n}\n\n.dateTimeSection {\n display: flex;\n gap: layout.$spacing-04;\n\n & > div:first-child {\n flex: 2; // This makes the first column take up 2/3 of the space\n }\n\n & > div:last-child {\n flex: 1; // This makes the second column take up 1/3 of the space\n }\n}\n\n.pmtctSection {\n display: flex;\n gap: layout.$spacing-04;\n}\n\n@media screen and (max-width: 600px) {\n .dateTimeSection {\n flex-direction: column;\n gap: layout.$spacing-04;\n }\n}\n:global(.omrs-breakpoint-lt-desktop) .formGroup {\n flex-direction: row;\n \n .heading {\n flex: 1;\n }\n \n div {\n flex: 3;\n }\n }\n\n.heading {\n // color: colors.$gray-70;\n @include type.type-style('heading-compact-02');\n margin-bottom: layout.$spacing-03;\n // margin-left: layout.$spacing-05;\n}\n\n.lastField {\n margin-bottom: 76px; /* Adjust as necessary */\n}\n// styles.module.scss\n.containerForm {\n overflow: auto; // scrolls vertically and horizontally if needed\n height: 80vh;\n}\n.helperText{\n color: red;\n font-weight:bold;\n}\n.required {\n color:red\n}\n\n\n.formNew {\n display: flex;\n flex-direction: column;\n height: 100vh; // or 100% if in a constrained container\n background-color: colors.$white-0;\n}\n\n.scrollableContent {\n flex: 1;\n overflow-y: auto; \n min-height: 0;\n}\n\n.stickyButtonSet {\n position: sticky;\n bottom: 0;\n background-color: colors.$white-0;\n padding: layout.$spacing-05;\n display: flex; \n gap: layout.$spacing-03;\n box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.08);\n z-index: 10;\n}","// Code generated by @carbon/layout. DO NOT EDIT.\n//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-01: 0.125rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-02: 0.25rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-03: 0.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-04: 0.75rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-05: 1rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-06: 1.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-07: 2rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-08: 2.5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-09: 3rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-10: 4rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-11: 5rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-12: 6rem !default;\n\n/// @type Number\n/// @access public\n/// @group @carbon/layout\n$spacing-13: 10rem !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/layout\n$spacing: (\n spacing-01: $spacing-01,\n spacing-02: $spacing-02,\n spacing-03: $spacing-03,\n spacing-04: $spacing-04,\n spacing-05: $spacing-05,\n spacing-06: $spacing-06,\n spacing-07: $spacing-07,\n spacing-08: $spacing-08,\n spacing-09: $spacing-09,\n spacing-10: $spacing-10,\n spacing-11: $spacing-11,\n spacing-12: $spacing-12,\n spacing-13: $spacing-13,\n);\n","//\n// Copyright IBM Corp. 2018, 2023\n//\n// This source code is licensed under the Apache-2.0 license found in the\n// LICENSE file in the root directory of this source tree.\n//\n\n// stylelint-disable number-max-precision\n\n@use 'sass:map';\n@use 'sass:math';\n@use '@carbon/grid/scss/config' as gridconfig;\n@use '@carbon/grid/scss/breakpoint' as grid;\n@use 'prefix' as *;\n@use 'font-family';\n@use 'scale';\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$caption-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$label-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-01: (\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$legal-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-01: (\n font-size: scale.type-scale(1),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @deprecated\n/// @group @carbon/type\n$helper-text-02: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-01: $body-short-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-01: $body-long-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-short-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-compact-02: $body-short-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-long-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$body-02: $body-long-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-01: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(1),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.33333,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$code-02: (\n font-family: font-family.font-family('mono'),\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.42857,\n letter-spacing: 0.32px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.42857,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-01: (\n font-size: scale.type-scale(2),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.28572,\n letter-spacing: 0.16px,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-01: $productive-heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.5,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-02: (\n font-size: scale.type-scale(3),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.375,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-compact-02: $productive-heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-03: $productive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-04: $productive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-05: $productive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-06: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n // Extra digit needed for precision in Chrome\n line-height: 1.199,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-06: $productive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$productive-heading-07: (\n font-size: scale.type-scale(12),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$heading-07: $productive-heading-07 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-01: $heading-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-02: $heading-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-03: (\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.4,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(5),\n line-height: 1.4,\n ),\n max: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-03: $expressive-heading-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-04: (\n font-size: scale.type-scale(7),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.28572,\n letter-spacing: 0,\n breakpoints: (\n xlg: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n font-weight: font-family.font-weight('regular'),\n ),\n max: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-04: $expressive-heading-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-05: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n font-weight: font-family.font-weight('light'),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-05: $expressive-heading-05 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-heading-06: (\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-heading-06: $expressive-heading-06 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$expressive-paragraph-01: (\n font-size: scale.type-scale(6),\n font-weight: font-family.font-weight('light'),\n line-height: 1.334,\n letter-spacing: 0,\n breakpoints: (\n lg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n);\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-paragraph-01: $expressive-paragraph-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-01: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(5),\n font-weight: font-family.font-weight('regular'),\n line-height: 1.3,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(5),\n ),\n lg: (\n font-size: scale.type-scale(6),\n line-height: 1.334,\n ),\n xlg: (\n font-size: scale.type-scale(7),\n line-height: 1.28572,\n ),\n max: (\n font-size: scale.type-scale(8),\n line-height: 1.25,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-01: $quotation-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$quotation-02: (\n font-family: font-family.font-family('serif'),\n font-size: scale.type-scale(8),\n font-weight: font-family.font-weight('light'),\n line-height: 1.25,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(9),\n line-height: 1.22,\n ),\n lg: (\n font-size: scale.type-scale(10),\n line-height: 1.19,\n ),\n xlg: (\n font-size: scale.type-scale(11),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(13),\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-quotation-02: $quotation-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-01: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.17,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-01: $display-01 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-02: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('semibold'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(10),\n ),\n lg: (\n font-size: scale.type-scale(12),\n ),\n xlg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n ),\n max: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-02: $display-02 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-03: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(12),\n line-height: 1.18,\n ),\n lg: (\n font-size: scale.type-scale(13),\n line-height: 1.16,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(15),\n line-height: 1.13,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(16),\n line-height: 1.11,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-03: $display-03 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$display-04: (\n font-size: scale.type-scale(10),\n font-weight: font-family.font-weight('light'),\n line-height: 1.19,\n letter-spacing: 0,\n breakpoints: (\n md: (\n font-size: scale.type-scale(14),\n line-height: 1.15,\n ),\n lg: (\n font-size: scale.type-scale(17),\n line-height: 1.11,\n letter-spacing: -0.64px,\n ),\n xlg: (\n font-size: scale.type-scale(20),\n line-height: 1.07,\n letter-spacing: -0.64px,\n ),\n max: (\n font-size: scale.type-scale(23),\n line-height: 1.05,\n letter-spacing: -0.96px,\n ),\n ),\n) !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$fluid-display-04: $display-04 !default;\n\n/// @type Map\n/// @access public\n/// @group @carbon/type\n$tokens: (\n caption-01: $caption-01,\n caption-02: $caption-02,\n label-01: $label-01,\n label-02: $label-02,\n helper-text-01: $helper-text-01,\n helper-text-02: $helper-text-02,\n body-short-01: $body-short-01,\n body-short-02: $body-short-02,\n body-long-01: $body-long-01,\n body-long-02: $body-long-02,\n code-01: $code-01,\n code-02: $code-02,\n heading-01: $heading-01,\n heading-02: $heading-02,\n productive-heading-01: $productive-heading-01,\n productive-heading-02: $productive-heading-02,\n productive-heading-03: $productive-heading-03,\n productive-heading-04: $productive-heading-04,\n productive-heading-05: $productive-heading-05,\n productive-heading-06: $productive-heading-06,\n productive-heading-07: $productive-heading-07,\n expressive-paragraph-01: $expressive-paragraph-01,\n expressive-heading-01: $expressive-heading-01,\n expressive-heading-02: $expressive-heading-02,\n expressive-heading-03: $expressive-heading-03,\n expressive-heading-04: $expressive-heading-04,\n expressive-heading-05: $expressive-heading-05,\n expressive-heading-06: $expressive-heading-06,\n quotation-01: $quotation-01,\n quotation-02: $quotation-02,\n display-01: $display-01,\n display-02: $display-02,\n display-03: $display-03,\n display-04: $display-04,\n // V11 Tokens\n legal-01: $legal-01,\n legal-02: $legal-02,\n body-compact-01: $body-compact-01,\n body-compact-02: $body-compact-02,\n heading-compact-01: $heading-compact-01,\n heading-compact-02: $heading-compact-02,\n body-01: $body-01,\n body-02: $body-02,\n heading-03: $heading-03,\n heading-04: $heading-04,\n heading-05: $heading-05,\n heading-06: $heading-06,\n heading-07: $heading-07,\n fluid-heading-03: $fluid-heading-03,\n fluid-heading-04: $fluid-heading-04,\n fluid-heading-05: $fluid-heading-05,\n fluid-heading-06: $fluid-heading-06,\n fluid-paragraph-01: $fluid-paragraph-01,\n fluid-quotation-01: $fluid-quotation-01,\n fluid-quotation-02: $fluid-quotation-02,\n fluid-display-01: $fluid-display-01,\n fluid-display-02: $fluid-display-02,\n fluid-display-03: $fluid-display-03,\n fluid-display-04: $fluid-display-04,\n) !default;\n\n/// @param {Map} $map\n/// @access public\n/// @group @carbon/type\n@mixin properties($map) {\n @each $name, $value in $map {\n #{$name}: $value;\n }\n}\n\n/// @param {Number} $value - Number with units\n/// @return {Number} Without units\n/// @access public\n/// @group @carbon/type\n@function strip-unit($value) {\n @return math.div($value, $value * 0 + 1);\n}\n\n/// This helper includes fluid type styles for the given token value. Fluid type\n/// means that the `font-size` is computed using `calc()` in order to be\n/// determined by the screen size instead of a breakpoint. As a result, fluid\n/// styles should be used with caution in fixed width contexts.\n///\n/// In addition, we make use of %-based line-heights so that the line-height of\n/// each type style is computed correctly due to the dynamic nature of the\n/// `font-size`.\n///\n/// Most of the logic for this work comes from CSS Tricks:\n/// https://css-tricks.com/snippets/css/fluid-typography/\n///\n/// @param {Map} $type-styles - The value of a given type token\n/// @param {Map} $breakpoints [$grid-breakpoints] - Custom breakpoints to use\n/// @access public\n/// @group @carbon/type\n@mixin fluid-type($type-styles, $breakpoints: gridconfig.$grid-breakpoints) {\n // Include the initial styles for the given token by default without any\n // media query guard. This includes `font-size` as a fallback in the case\n // that a browser does not support `calc()`\n @include properties(map.remove($type-styles, breakpoints));\n // We also need to include the `sm` styles by default since they don't\n // appear in the fluid styles for tokens\n @include fluid-type-size($type-st