@kenyaemr/esm-patient-registration-app 8.1.1-pre.111 → 8.1.1-pre.116

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 (101) hide show
  1. package/.turbo/turbo-build.log +22 -23
  2. package/dist/108.js +1 -1
  3. package/dist/130.js +1 -1
  4. package/dist/130.js.LICENSE.txt +2 -0
  5. package/dist/130.js.map +1 -1
  6. package/dist/2.js +1 -0
  7. package/dist/2.js.map +1 -0
  8. package/dist/250.js +1 -0
  9. package/dist/250.js.map +1 -0
  10. package/dist/271.js +1 -1
  11. package/dist/319.js +1 -1
  12. package/dist/325.js +1 -0
  13. package/dist/325.js.map +1 -0
  14. package/dist/372.js +2 -0
  15. package/dist/372.js.map +1 -0
  16. package/dist/460.js +1 -1
  17. package/dist/471.js +1 -0
  18. package/dist/471.js.map +1 -0
  19. package/dist/574.js +1 -1
  20. package/dist/644.js +1 -1
  21. package/dist/662.js +1 -0
  22. package/dist/662.js.map +1 -0
  23. package/dist/757.js +1 -1
  24. package/dist/76.js +1 -1
  25. package/dist/788.js +1 -1
  26. package/dist/807.js +1 -1
  27. package/dist/833.js +1 -1
  28. package/dist/895.js +2 -0
  29. package/dist/{745.js.LICENSE.txt → 895.js.LICENSE.txt} +10 -0
  30. package/dist/895.js.map +1 -0
  31. package/dist/kenyaemr-esm-patient-registration-app.js +1 -1
  32. package/dist/kenyaemr-esm-patient-registration-app.js.buildmanifest.json +150 -177
  33. package/dist/kenyaemr-esm-patient-registration-app.js.map +1 -1
  34. package/dist/main.js +1 -1
  35. package/dist/main.js.map +1 -1
  36. package/dist/routes.json +1 -1
  37. package/package.json +2 -2
  38. package/src/config-schema.ts +28 -2
  39. package/src/index.ts +1 -4
  40. package/src/patient-registration/field/cause-of-death/cause-of-death.component.tsx +98 -0
  41. package/src/patient-registration/field/date-and-time-of-death/date-and-time-of-death.component.tsx +84 -0
  42. package/src/patient-registration/field/dob/dob.component.tsx +21 -7
  43. package/src/patient-registration/field/field.component.tsx +11 -5
  44. package/src/patient-registration/field/field.resource.ts +11 -4
  45. package/src/patient-registration/field/field.scss +23 -1
  46. package/src/patient-registration/field/gender/gender-field.component.tsx +2 -1
  47. package/src/patient-registration/field/gender/gender-field.test.tsx +1 -0
  48. package/src/patient-registration/field/name/name-field.component.tsx +5 -1
  49. package/src/patient-registration/form-manager.test.ts +3 -0
  50. package/src/patient-registration/form-manager.ts +30 -15
  51. package/src/patient-registration/input/basic-input/input/input.component.tsx +5 -1
  52. package/src/patient-registration/input/custom-input/identifier/identifier-input.component.tsx +2 -2
  53. package/src/patient-registration/input/custom-input/identifier/identifier-input.test.tsx +122 -71
  54. package/src/patient-registration/input/dummy-data/dummy-data-input.component.tsx +3 -0
  55. package/src/patient-registration/patient-registration-context.ts +4 -3
  56. package/src/patient-registration/patient-registration-hooks.ts +63 -8
  57. package/src/patient-registration/patient-registration-utils.ts +3 -7
  58. package/src/patient-registration/patient-registration.component.tsx +20 -13
  59. package/src/patient-registration/patient-registration.resource.ts +8 -0
  60. package/src/patient-registration/patient-registration.test.tsx +9 -3
  61. package/src/patient-registration/patient-registration.types.ts +4 -1
  62. package/src/patient-registration/section/death-info/death-info-section.component.tsx +22 -17
  63. package/src/patient-registration/section/death-info/death-info-section.test.tsx +4 -14
  64. package/src/patient-registration/section/section.component.tsx +1 -1
  65. package/src/patient-registration/section/section.scss +5 -0
  66. package/src/patient-registration/validation/{patient-registration-validation.test.tsx → patient-registration-validation.test.ts} +26 -4
  67. package/src/patient-registration/validation/patient-registration-validation.ts +126 -0
  68. package/src/routes.json +10 -18
  69. package/src/widgets/cancel-patient-edit.modal.tsx +33 -0
  70. package/src/widgets/cancel-patient-edit.test.tsx +2 -3
  71. package/src/widgets/delete-identifier-confirmation.modal.tsx +22 -15
  72. package/src/widgets/delete-identifier-confirmation.test.tsx +2 -1
  73. package/translations/am.json +36 -25
  74. package/translations/ar.json +37 -26
  75. package/translations/en.json +37 -20
  76. package/translations/es.json +38 -26
  77. package/translations/fr.json +47 -35
  78. package/translations/he.json +37 -30
  79. package/translations/km.json +37 -30
  80. package/translations/zh.json +37 -20
  81. package/translations/zh_CN.json +37 -20
  82. package/dist/152.js +0 -1
  83. package/dist/152.js.map +0 -1
  84. package/dist/255.js +0 -2
  85. package/dist/255.js.map +0 -1
  86. package/dist/303.js +0 -1
  87. package/dist/303.js.map +0 -1
  88. package/dist/623.js +0 -1
  89. package/dist/623.js.map +0 -1
  90. package/dist/729.js +0 -1
  91. package/dist/729.js.map +0 -1
  92. package/dist/735.js +0 -1
  93. package/dist/735.js.map +0 -1
  94. package/dist/745.js +0 -2
  95. package/dist/745.js.map +0 -1
  96. package/dist/830.js +0 -1
  97. package/dist/830.js.map +0 -1
  98. package/src/patient-registration/validation/patient-registration-validation.tsx +0 -60
  99. package/src/widgets/cancel-patient-edit.component.tsx +0 -37
  100. package/src/widgets/delete-identifier-confirmation.scss +0 -34
  101. /package/dist/{255.js.LICENSE.txt → 372.js.LICENSE.txt} +0 -0
package/dist/2.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[2],{3372:(e,t,n)=>{n.r(t),n.d(t,{default:()=>l,immutable:()=>o});var r=n(268),i=n(3100),a=n(3629);const s=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),d={dedupe:!0};a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig});const u=(0,a.withArgs)(((e,t,n)=>{const{cache:u,compare:o,suspense:l,fallbackData:c,revalidateOnMount:f,revalidateIfStale:E,refreshInterval:g,refreshWhenHidden:R,refreshWhenOffline:h,keepPreviousData:v}=n,[p,U,_,T]=a.SWRGlobalState.get(u),[V,m]=(0,a.serialize)(e),b=(0,r.useRef)(!1),C=(0,r.useRef)(!1),S=(0,r.useRef)(V),L=(0,r.useRef)(t),O=(0,r.useRef)(n),k=()=>O.current,I=()=>k().isVisible()&&k().isOnline(),[w,y,D,A]=(0,a.createCacheHelper)(u,V),N=(0,r.useRef)({}).current,F=(0,a.isUndefined)(c)?n.fallback[V]:c,P=(e,t)=>{for(const n in N){const r=n;if("data"===r){if(!o(e[r],t[r])){if(!(0,a.isUndefined)(e[r]))return!1;if(!o(z,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},M=(0,r.useMemo)((()=>{const e=!!V&&!!t&&((0,a.isUndefined)(f)?!k().isPaused()&&!l&&(!!(0,a.isUndefined)(E)||E):f),n=t=>{const n=(0,a.mergeObjects)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=w(),i=A(),s=n(r),d=r===i?s:n(i);let u=s;return[()=>{const e=n(w());return P(e,u)?(u.data=e.data,u.isLoading=e.isLoading,u.isValidating=e.isValidating,u.error=e.error,u):(u=e,e)},()=>d]}),[u,V]),W=(0,i.useSyncExternalStore)((0,r.useCallback)((e=>D(V,((t,n)=>{P(n,t)||e()}))),[u,V]),M[0],M[1]),j=!b.current,G=p[V]&&p[V].length>0,H=W.data,Y=(0,a.isUndefined)(H)?F:H,q=W.error,x=(0,r.useRef)(Y),z=v?(0,a.isUndefined)(H)?x.current:H:Y,B=!(G&&!(0,a.isUndefined)(q))&&(j&&!(0,a.isUndefined)(f)?f:!k().isPaused()&&(l?!(0,a.isUndefined)(Y)&&E:(0,a.isUndefined)(Y)||E)),J=!!(V&&t&&j&&B),K=(0,a.isUndefined)(W.isValidating)?J:W.isValidating,Q=(0,a.isUndefined)(W.isLoading)?J:W.isLoading,X=(0,r.useCallback)((async e=>{const t=L.current;if(!V||!t||C.current||k().isPaused())return!1;let r,i,s=!0;const d=e||{},u=!_[V]||!d.dedupe,l=()=>a.IS_REACT_LEGACY?!C.current&&V===S.current&&b.current:V===S.current,c={isValidating:!1,isLoading:!1},f=()=>{y(c)},E=()=>{const e=_[V];e&&e[1]===i&&delete _[V]},g={isValidating:!0};(0,a.isUndefined)(w().data)&&(g.isLoading=!0);try{if(u&&(y(g),n.loadingTimeout&&(0,a.isUndefined)(w().data)&&setTimeout((()=>{s&&l()&&k().onLoadingSlow(V,n)}),n.loadingTimeout),_[V]=[t(m),(0,a.getTimestamp)()]),[r,i]=_[V],r=await r,u&&setTimeout(E,n.dedupingInterval),!_[V]||_[V][1]!==i)return u&&l()&&k().onDiscarded(V),!1;c.error=a.UNDEFINED;const e=U[V];if(!(0,a.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),u&&l()&&k().onDiscarded(V),!1;const d=w().data;c.data=o(d,r)?d:r,u&&l()&&k().onSuccess(r,V,n)}catch(e){E();const t=k(),{shouldRetryOnError:n}=t;t.isPaused()||(c.error=e,u&&l()&&(t.onError(e,V,t),(!0===n||(0,a.isFunction)(n)&&n(e))&&(k().revalidateOnFocus&&k().revalidateOnReconnect&&!I()||t.onErrorRetry(e,V,t,(e=>{const t=p[V];t&&t[0]&&t[0](a.revalidateEvents.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(d.retryCount||0)+1,dedupe:!0}))))}return s=!1,f(),!0}),[V,u]),Z=(0,r.useCallback)(((...e)=>(0,a.internalMutate)(u,S.current,...e)),[]);if((0,a.useIsomorphicLayoutEffect)((()=>{L.current=t,O.current=n,(0,a.isUndefined)(H)||(x.current=H)})),(0,a.useIsomorphicLayoutEffect)((()=>{if(!V)return;const e=X.bind(a.UNDEFINED,d);let t=0;const n=(0,a.subscribeCallback)(V,p,((n,r={})=>{if(n==a.revalidateEvents.FOCUS_EVENT){const n=Date.now();k().revalidateOnFocus&&n>t&&I()&&(t=n+k().focusThrottleInterval,e())}else if(n==a.revalidateEvents.RECONNECT_EVENT)k().revalidateOnReconnect&&I()&&e();else{if(n==a.revalidateEvents.MUTATE_EVENT)return X();if(n==a.revalidateEvents.ERROR_REVALIDATE_EVENT)return X(r)}}));return C.current=!1,S.current=V,b.current=!0,y({_k:m}),B&&((0,a.isUndefined)(Y)||a.IS_SERVER?e():(0,a.rAF)(e)),()=>{C.current=!0,n()}}),[V]),(0,a.useIsomorphicLayoutEffect)((()=>{let e;function t(){const t=(0,a.isFunction)(g)?g(w().data):g;t&&-1!==e&&(e=setTimeout(n,t))}function n(){w().error||!R&&!k().isVisible()||!h&&!k().isOnline()?t():X(d).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[g,R,h,V]),(0,r.useDebugValue)(z),l&&(0,a.isUndefined)(Y)&&V){if(!a.IS_REACT_LEGACY&&a.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");L.current=t,O.current=n,C.current=!1;const e=T[V];if(!(0,a.isUndefined)(e)){const t=Z(e);s(t)}if(!(0,a.isUndefined)(q))throw q;{const e=X(d);(0,a.isUndefined)(z)||(e.status="fulfilled",e.value=!0),s(e)}}return{mutate:Z,get data(){return N.data=!0,z},get error(){return N.error=!0,q},get isValidating(){return N.isValidating=!0,K},get isLoading(){return N.isLoading=!0,Q}}})),o=e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)),l=(0,a.withMiddleware)(u,o)}}]);
package/dist/2.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"2.js","mappings":"wPAMA,MAAMA,EAAM,OAAoB,CAAEC,IAC9B,GAAuB,YAAnBA,EAAQC,OACR,MAAMD,EACH,GAAuB,cAAnBA,EAAQC,OACf,OAAOD,EAAQE,MACZ,KAAuB,aAAnBF,EAAQC,OACTD,EAAQG,QAEdH,EAAQC,OAAS,UACjBD,EAAQI,MAAMC,IACVL,EAAQC,OAAS,YACjBD,EAAQE,MAAQG,CAAC,IACjBC,IACAN,EAAQC,OAAS,WACjBD,EAAQG,OAASG,CAAC,IAEhBN,EAEb,GACKO,EAAc,CAChBC,QAAQ,GA6eZ,EAAAC,OAAOC,eAAe,EA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J,EAAIC,EACR,CACA,KAAI,IAAAuD,aAAYwB,GAQZ,MAAMA,EARc,CACpB,MAAM/E,EAAU0F,EAAWnF,IACtB,IAAAgD,aAAYK,KACb5D,EAAQC,OAAS,YACjBD,EAAQE,OAAQ,GAEpBH,EAAIC,EACR,CAGJ,CACA,MAAO,CACH2J,OAAQ1B,EACJnD,WAEA,OADAzB,EAAkByB,MAAO,EAClBlB,CACX,EACImB,YAEA,OADA1B,EAAkB0B,OAAQ,EACnBA,CACX,EACIT,mBAEA,OADAjB,EAAkBiB,cAAe,EAC1BA,CACX,EACIC,gBAEA,OADAlB,EAAkBkB,WAAY,EACvBA,CACX,EACH,IAqBCqF,EAAaC,GAAa,CAAC3H,EAAKlB,EAASC,KAEvCA,EAAOwG,mBAAoB,EAC3BxG,EAAOM,mBAAoB,EAC3BN,EAAOyG,uBAAwB,EACxBmC,EAAW3H,EAAKlB,EAASC,IAElC6I,GAAkB,IAAAC,gBAAelJ,EAAQ+I,E","sources":["webpack://@kenyaemr/esm-patient-registration-app/../../node_modules/swr/dist/immutable/index.mjs"],"names":["use","promise","status","value","reason","then","v","e","WITH_DEDUPE","dedupe","OBJECT","defineProperty","SWRConfig","defaultConfig","useSWR","withArgs","_key","fetcher","config","cache","compare","suspense","fallbackData","revalidateOnMount","revalidateIfStale","refreshInterval","refreshWhenHidden","refreshWhenOffline","keepPreviousData","EVENT_REVALIDATORS","MUTATION","FETCH","PRELOAD","SWRGlobalState","get","key","fnArg","serialize","initialMountedRef","useRef","unmountedRef","keyRef","fetcherRef","configRef","getConfig","current","isActive","isVisible","isOnline","getCache","setCache","subscribeCache","getInitialCache","createCacheHelper","stateDependencies","fallback","isUndefined","isEqual","prev","_","t","returnedData","getSnapshot","useMemo","shouldStartRequest","isPaused","getSelectedCache","state","snapshot","mergeObjects","_k","isValidating","isLoading","cachedData","initialData","clientSnapshot","serverSnapshot","memorizedSnapshot","newSnapshot","data","error","cached","useSyncExternalStore","useCallback","callback","isInitialMount","hasRevalidator","length","laggyDataRef","shouldDoInitialRevalidation","defaultValidatingState","revalidate","async","revalidateOpts","currentFetcher","newData","startAt","loading","opts","shouldStartNewRequest","callbackSafeguard","IS_REACT_LEGACY","finalState","finishRequestAndUpdateState","cleanupState","requestInfo","initialState","loadingTimeout","setTimeout","onLoadingSlow","getTimestamp","dedupingInterval","onDiscarded","UNDEFINED","mutationInfo","cacheData","onSuccess","err","currentConfig","shouldRetryOnError","onError","isFunction","revalidateOnFocus","revalidateOnReconnect","onErrorRetry","_opts","revalidators","revalidateEvents","ERROR_REVALIDATE_EVENT","retryCount","boundMutate","args","internalMutate","useIsomorphicLayoutEffect","softRevalidate","bind","nextFocusRevalidatedAt","unsubEvents","subscribeCallback","type","FOCUS_EVENT","now","Date","focusThrottleInterval","RECONNECT_EVENT","MUTATE_EVENT","IS_SERVER","rAF","timer","next","interval","execute","clearTimeout","useDebugValue","Error","req","mutate","immutable","useSWRNext","useSWRImmutable","withMiddleware"],"sourceRoot":""}
package/dist/250.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[250],{9250:(e,t,n)=>{n.r(t),n.d(t,{default:()=>o});var l=n(268),i=n.n(l),r=n(4924),a=n(5615);const o=function(e){var t=e.closeModal,n=e.deleteIdentifier,l=e.identifierName,o=e.identifierValue,c=(0,r.useTranslation)().t;return i().createElement(i().Fragment,null,i().createElement(a.xBx,{closeModal:t,title:c("deleteIdentifierModalHeading","Delete identifier?")}),i().createElement(a.fef,null,i().createElement("p",null,l&&o&&i().createElement("span",null,i().createElement("strong",null,l),c("deleteIdentifierModalText"," has a value of ")," ",i().createElement("strong",null,o),"."," "),c("confirmIdentifierDeletionText","Are you sure you want to delete this identifier?"))),i().createElement(a.mzw,null,i().createElement(a.zxk,{kind:"secondary",size:"lg",onClick:function(){return n(!1)}},c("cancel","Cancel")),i().createElement(a.zxk,{kind:"danger",size:"lg",onClick:function(){return n(!0)}},c("removeIdentifierButton","Remove identifier"))))}}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"250.js","mappings":"mPA+CA,QApC4F,Y,IAC1FA,EAAAA,EAAAA,WACAC,EAAAA,EAAAA,iBACAC,EAAAA,EAAAA,eACAC,EAAAA,EAAAA,gBAEM,GAAQC,EAAAA,EAAAA,kBAANC,EAER,OACE,oCACE,kBAACC,EAAAA,IAAWA,CACVN,WAAYA,EACZO,MAAOF,EAAE,+BAAgC,wBAC3C,kBAACG,EAAAA,IAASA,KACR,kBAACC,IAAAA,KACEP,GAAkBC,GACjB,kBAACO,OAAAA,KACC,kBAACC,SAAAA,KAAQT,GACRG,EAAE,4BAA6B,oBAAoB,IAAC,kBAACM,SAAAA,KAAQR,GAAyB,IAAE,KAG5FE,EAAE,gCAAiC,sDAGxC,kBAACO,EAAAA,IAAWA,KACV,kBAACC,EAAAA,IAAMA,CAACC,KAAK,YAAYC,KAAK,KAAKC,QAAS,W,OAAMf,GAAiB,E,GAChEI,EAAE,SAAU,WAEf,kBAACQ,EAAAA,IAAMA,CAACC,KAAK,SAASC,KAAK,KAAKC,QAAS,W,OAAMf,GAAiB,E,GAC7DI,EAAE,yBAA0B,uBAKvC,C","sources":["webpack://@kenyaemr/esm-patient-registration-app/./src/widgets/delete-identifier-confirmation.modal.tsx"],"names":["closeModal","deleteIdentifier","identifierName","identifierValue","useTranslation","t","ModalHeader","title","ModalBody","p","span","strong","ModalFooter","Button","kind","size","onClick"],"sourceRoot":""}
package/dist/271.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[271],{8271:e=>{e.exports=JSON.parse('{"addRelationshipButtonText":"添加关系","addressHeader":"地址","allFieldsRequiredText":"所有字段都是必填的,除非标记为可选。","autoGeneratedPlaceholderText":"自动生成","birthdayNotInTheFuture":"生日不能是未来的日期","birthdayRequired":"生日是必填项","birthFieldLabelText":"出生","cancel":"取消","causeOfDeathInputLabel":"死因","closeOverlay":"关闭叠加","codedPersonAttributeAnswerSetEmpty":"编码的人员属性字段\'{{codedPersonAttributeFieldId}}\'已使用没有任何概念答案的答案概念集UUID\'{{answerConceptSetUuid}}\'进行定义。","codedPersonAttributeAnswerSetInvalid":"编码的人员属性字段\'{{codedPersonAttributeFieldId}}\'已使用无效的答案概念集UUID\'{{answerConceptSetUuid}}\'进行定义。","codedPersonAttributeNoAnswerSet":"人员属性字段\'{{codedPersonAttributeFieldId}}\'的类型为\'coded\',但未定义答案概念集UUID。\'answerConceptSetUuid\'键是必需的。","configure":"配置","configureIdentifiers":"配置ID标识","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"联系方式","createNewPatient":"Create new patient","dateOfBirthLabelText":"出生日期","deathDateInputLabel":"死亡日期","deathdayNotInTheFuture":"死亡日期不能是未来的日期","deathSection":"死亡信息","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"删除","deleteRelationshipTooltipText":"删除","demographicsSection":"基本信息","discard":"放弃","discardModalBody":"您对该患者的详细信息所做的更改尚未保存。放弃更改吗?","discardModalHeader":"确认放弃更改","dobToggleLabelText":"出生日期已知?","editIdentifierTooltip":"编辑","editPatientDetails":"编辑患者详情","editPatientDetailsBreadcrumb":"编辑患者详情","error":"错误","errorFetchingOrderedFields":"获取地址层次结构的排序字段时发生错误","estimatedAgeInMonthsLabelText":"月龄估算","estimatedAgeInYearsLabelText":"年龄估算","familyNameLabelText":"姓氏","familyNameRequired":"姓氏是必填项","female":"女性","fullNameLabelText":"全名","genderLabelText":"性别","genderRequired":"性别是必填项","genderUnspecified":"性别未指定","givenNameLabelText":"名字","givenNameRequired":"名字是必填项","identifierValueRequired":"ID标识是必填项","idFieldLabelText":"ID","IDInstructions":"选择您想为该患者添加的ID标识:","incompleteForm":"表单未填完","invalidEmail":"需要提供一个有效的电子邮件地址","invalidInput":"输入无效","isDeadInputLabel":"已故","jumpTo":"跳转至","male":"男性","middleNameLabelText":"中间名","negativeMonths":"负的月份","negativeYears":"负的年份","no":"否","numberInNameDubious":"姓名中含有数字","obsFieldUnknownDatatype":"obs字段\'{{fieldDefinitionId}}\'的概念具有未知数据类型\'{{datatypeName}}\'","optional":"可选的","other":"其他","patientNameKnown":"患者的姓名已知?","patientRegistrationBreadcrumb":"患者注册","registerPatient":"注册患者","registerPatientSuccessSnackbarSubtitle":"现在可以通过姓名或ID号搜索到该患者","registerPatientSuccessSnackbarTitle":"新患者已创建","registrationErrorSnackbarTitle":"患者注册失败","relationship":"关系","relationshipPersonMustExist":"关系人必须是现有的人员","relationshipPlaceholder":"关系","relationshipRemovedText":"关系已移除","relationshipsSection":"关系人信息","relationshipToPatient":"与患者的关系","relativeFullNameLabelText":"关系人","relativeNamePlaceholder":"名字 姓氏","removeIdentifierButton":"Remove Identifier","resetIdentifierTooltip":"重置","restoreRelationshipActionButton":"撤销","searchAddress":"搜索地址","searchIdentifierPlaceholder":"搜索ID标识","selectAnOption":"选择一个选项","sexFieldLabelText":"性别","source":"来源","stroke":"卒中","submitting":"提交中","unableToFetch":"无法获取人员属性类型{{personattributetype}}","unknown":"未知","unknownPatientAttributeType":"患者属性类型具有未知格式{{personAttributeTypeFormat}}","updatePatient":"更新患者","updatePatientErrorSnackbarTitle":"患者详情更新失败","updatePatientSuccessSnackbarSubtitle":"患者的信息已成功更新","updatePatientSuccessSnackbarTitle":"患者详情已更新","yearsEstimateRequired":"需要年龄估算","yes":"是"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[271],{8271:e=>{e.exports=JSON.parse('{"addRelationshipButtonText":"添加关系","addressHeader":"地址","allFieldsRequiredText":"所有字段都是必填的,除非标记为可选。","autoGeneratedPlaceholderText":"自动生成","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"生日是必填项","birthFieldLabelText":"出生","cancel":"取消","causeOfDeathInputLabel":"Cause of death","closeOverlay":"关闭叠加","codedPersonAttributeAnswerSetEmpty":"编码的人员属性字段\'{{codedPersonAttributeFieldId}}\'已使用没有任何概念答案的答案概念集UUID\'{{answerConceptSetUuid}}\'进行定义。","codedPersonAttributeAnswerSetInvalid":"编码的人员属性字段\'{{codedPersonAttributeFieldId}}\'已使用无效的答案概念集UUID\'{{answerConceptSetUuid}}\'进行定义。","codedPersonAttributeNoAnswerSet":"人员属性字段\'{{codedPersonAttributeFieldId}}\'的类型为\'coded\',但未定义答案概念集UUID。\'answerConceptSetUuid\'键是必需的。","configure":"配置","configureIdentifiers":"配置ID标识","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"联系方式","createNewPatient":"Create new patient","dateOfBirthLabelText":"Date of birth","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"Date of death","deathDateRequired":"Death date is required","deathdayInvalidDate":"Death date and time cannot be before the birthday","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"死亡信息","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"删除","deleteRelationshipTooltipText":"删除","demographicsSection":"基本信息","discard":"放弃","dobToggleLabelText":"出生日期已知?","editIdentifierTooltip":"编辑","editPatientDetails":"编辑患者详情","editPatientDetailsBreadcrumb":"编辑患者详情","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"错误","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"获取地址层次结构的排序字段时发生错误","estimatedAgeInMonthsLabelText":"月龄估算","estimatedAgeInYearsLabelText":"年龄估算","familyNameLabelText":"姓氏","familyNameRequired":"姓氏是必填项","female":"女性","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"全名","genderLabelText":"性别","genderRequired":"性别是必填项","genderUnspecified":"Gender unspecified","givenNameLabelText":"名字","givenNameRequired":"名字是必填项","identifierValueRequired":"ID标识是必填项","idFieldLabelText":"ID","IDInstructions":"选择您想为该患者添加的ID标识:","invalidEmail":"Invalid email","invalidInput":"输入无效","isDeadInputLabel":"Is dead","jumpTo":"跳转至","male":"男性","middleNameLabelText":"中间名","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"否","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"姓名中含有数字","obsFieldUnknownDatatype":"obs字段\'{{fieldDefinitionId}}\'的概念具有未知数据类型\'{{datatypeName}}\'","optional":"可选的","other":"其他","patientNameKnown":"患者的姓名已知?","patientRegistrationBreadcrumb":"患者注册","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"Register patient","registerPatientSuccessSnackbarSubtitle":"现在可以通过姓名或ID号搜索到该患者","registerPatientSuccessSnackbarTitle":"新患者已创建","registrationErrorSnackbarTitle":"患者注册失败","relationship":"关系","relationshipPersonMustExist":"关系人必须是现有的人员","relationshipPlaceholder":"关系","relationshipRemovedText":"关系已移除","relationshipsSection":"关系人信息","relationshipToPatient":"与患者的关系","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"名字 姓氏","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"重置","restoreRelationshipActionButton":"撤销","searchAddress":"搜索地址","searchIdentifierPlaceholder":"搜索ID标识","selectAnOption":"选择一个选项","sexFieldLabelText":"性别","source":"来源","submitting":"提交中","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"未知","unknownPatientAttributeType":"患者属性类型具有未知格式{{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"患者详情更新失败","updatePatientSuccessSnackbarSubtitle":"患者的信息已成功更新","updatePatientSuccessSnackbarTitle":"患者详情已更新","yearsEstimateRequired":"Estimated years required","yes":"是"}')}}]);
package/dist/319.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[319],{8319:e=>{e.exports=JSON.parse('{"addRelationshipButtonText":"Agregar relación","addressHeader":"Dirección","age":"Age","allFieldsRequiredText":"Todos los campos son obligatorios a menos que se indique como opcionales","autoGeneratedPlaceholderText":"Autogenerado","birthdayNotInTheFuture":"Cumpleaños no puede ser en el futuro","birthdayRequired":"Cumpleaños es obligatorio","birthFieldLabelText":"Nacimiento","cancel":"Cancelar","causeOfDeathInputLabel":"Causa de defunción","closeOverlay":"Cerrar superposición","codedPersonAttributeAnswerSetEmpty":"El campo de atributo de persona codificado \'{{codedPersonAttributeFieldId}}\' se ha definido con un conjunto de conceptos de respuesta UUID \'{{answerConceptSetUuid}}\' que no tiene respuestas de concepto.","codedPersonAttributeAnswerSetInvalid":"El campo de atributo de persona codificado \'{{codedPersonAttributeFieldId}}\' se ha definido con un UUID de conjunto de conceptos de respuesta no válido \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"El campo de atributo de persona \'{{codedPersonAttributeFieldId}}\' es de tipo \'codificado\' pero se ha definido sin UUID de conjunto de conceptos de respuesta. La clave \'answerConceptSetUuid\' es requerida.","configure":"Configurar","configureIdentifiers":"Configurar identificadores","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"Detalles de Contacto","createNewPatient":"Create new patient","continue":"Continue to registration","createNew":"Crear Nuevo/a","dateOfBirth":"Date of birth","dateOfBirthLabelText":"Fecha de Nacimiento","deathDateInputLabel":"Fecha de fallecimiento","deathdayNotInTheFuture":"El día de la muerte no puede ser en el futuro","deathSection":"Información de Fallecimiento","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"Eliminar","deleteRelationshipTooltipText":"Eliminar","demographicsSection":"Información Básica","discard":"Descartar","discardModalBody":"Los cambios realizados en los datos de este paciente no se han guardado. ¿Descartar cambios?","discardModalHeader":"Confirmar descarte de cambios","dobToggleLabelText":"¿Se conoce la fecha de nacimiento?","editIdentifierTooltip":"Editar","editPatientDetails":"Modificar los datos del paciente","editPatientDetailsBreadcrumb":"Editar detalles del paciente","error":"Error","errorFetchingOrderedFields":"Ocurrió un error al obtener campos ordenados para la jerarquía de direcciones","estimatedAgeInMonthsLabelText":"Edad estimada en meses","estimatedAgeInYearsLabelText":"Edad estimada en años","familyNameLabelText":"Apellidos","familyNameRequired":"Apellidos es obligatorio","female":"Femenino","fullNameLabelText":"Nombre y Apellidos","gender":"Gender","genderLabelText":"Sexo","genderRequired":"El sexo es obligatorio","genderUnspecified":"Género no especificado","givenNameLabelText":"Nombre","givenNameRequired":"El nombre es obligatorio","identifierValueRequired":"El valor del identificador es obligatorio","idFieldLabelText":"Identificadores","IDInstructions":"Selecciona los identificadores que te gustaría agregar para este paciente:","incompleteForm":"Formulario incompleto","invalidEmail":"Debe indicar un email válido","invalidInput":"Entrada no válida","isDeadInputLabel":"Está muerto","jumpTo":"Ir a","male":"Masculino","middleNameLabelText":"Segundo Nombre","nascopNumber":"Nascop facility no","nationalId":"National ID","negativeMonths":"Meses negativos","negativeYears":"Años negativos","no":"No","numberInNameDubious":"Número en nombre es dudoso","obsFieldUnknownDatatype":"El concepto para el campo de observación \'{{fieldDefinitionId}}\' tiene un tipo de datos desconocido \'{{datatypeName}}\'","optional":"Opcional","other":"Otro","patient":"Paciente","patientDetailsFound":"Patient information found in the registry, do you want to use the information to continue with registration?","patientName":"Patient name","patientNameKnown":"¿Se sabe el nombre del paciente?","patientRegistrationBreadcrumb":"Registro de Pacientes","registerPatient":"Registrar paciente","registerPatientSuccessSnackbarSubtitle":"El paciente ahora se puede encontrar buscándolo por su nombre o número de identificación","registerPatientSuccessSnackbarTitle":"Nuevo paciente creado","registrationErrorSnackbarTitle":"Error en el registro del paciente","relationship":"Relación","relationshipPersonMustExist":"La persona relacionada debe ser una persona existente","relationshipPlaceholder":"Relación","relationshipRemovedText":"Relación eliminada","relationshipsSection":"Relaciones","relationshipToPatient":"Relación con el paciente","relativeFullNameLabelText":"Nombre y Apellidos","relativeNamePlaceholder":"Nombre Apellido","removeIdentifierButton":"Remove Identifier","resetIdentifierTooltip":"Resetear","restoreRelationshipActionButton":"Deshacer","searchAddress":"Buscar dirección","searchIdentifierPlaceholder":"Buscar identificador","selectAnOption":"Seleccionar una opción","selectCountry":"Select country","selectIdentifierType":"Select identifier type","sexFieldLabelText":"Sexo","source":"Fuente","stroke":"Ictus","submitting":"Enviando","unableToFetch":"No se puede obtener el tipo de atributo de persona {{personattributetype}}","unknown":"Desconocido","unknownPatientAttributeType":"El tipo de atributo del paciente tiene un formato desconocido {{personAttributeTypeFormat}}","updatePatient":"Paciente Actualizado","updatePatientErrorSnackbarTitle":"Error al actualizar los detalles del paciente","updatePatientSuccessSnackbarSubtitle":"La información del paciente se ha actualizado correctamente","updatePatientSuccessSnackbarTitle":"Detalles del paciente actualizados","yearsEstimateRequired":"Estimación de años obligatoria","yes":"Sí"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[319],{8319:e=>{e.exports=JSON.parse('{"addRelationshipButtonText":"Agregar relación","addressHeader":"Dirección","age":"Age","allFieldsRequiredText":"Todos los campos son obligatorios a menos que se indique como opcionales","autoGeneratedPlaceholderText":"Autogenerado","birthdayNotInTheFuture":"La fecha de nacimiento no puede ser en el futuro","birthdayNotOver140YearsAgo":"La fecha de nacimiento no puede ser de hace más de 140 años","birthdayRequired":"Cumpleaños es obligatorio","birthFieldLabelText":"Nacimiento","cancel":"Cancelar","causeOfDeathInputLabel":"Causa de muerte","closeOverlay":"Cerrar superposición","codedPersonAttributeAnswerSetEmpty":"El campo de atributo de persona codificado \'{{codedPersonAttributeFieldId}}\' se ha definido con un conjunto de conceptos de respuesta UUID \'{{answerConceptSetUuid}}\' que no tiene respuestas de concepto.","codedPersonAttributeAnswerSetInvalid":"El campo de atributo de persona codificado \'{{codedPersonAttributeFieldId}}\' se ha definido con un UUID de conjunto de conceptos de respuesta no válido \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"El campo de atributo de persona \'{{codedPersonAttributeFieldId}}\' es de tipo \'codificado\' pero se ha definido sin UUID de conjunto de conceptos de respuesta. La clave \'answerConceptSetUuid\' es requerida.","configure":"Configurar","configureIdentifiers":"Configurar identificadores","confirmDiscardChangesBody":"Tus cambios sin guardar serán perdidos si procedes a descartar el formulario","confirmDiscardChangesTitle":"¿Estás seguro de que deseas descartar estos cambios?","confirmIdentifierDeletionText":"¿Estás seguro de que deseas eliminar este identificador?","contactSection":"Detalles de Contacto","createNewPatient":"Crear nuevo paciente","dateOfBirthLabelText":"Fecha de nacimiento","deathCauseRequired":"La causa de muerte es obligatoria","deathDateInFuture":"La fecha de fallecimiento no puede ser en el futuro","deathDateInputLabel":"Fecha de fallecimiento","deathDateRequired":"La fecha de nacimiento es obligatoria","deathdayInvalidDate":"La fecha y hora del fallecimiento no pueden ser anteriores a la fecha de nacimiento","deathdayIsRequired":"La fecha de fallecimiento es obligatoria cuando el paciente se marca como fallecido","deathdayNotInTheFuture":"","deathSection":"Información de Fallecimiento","deathTimeFormatInvalid":"El formato de hora es inválido","deathTimeFormatRequired":"El formato de hora es obligatorio","deathTimeInvalid":"La hora no coincide con el formato \'hh:mm\'","deathTimeRequired":"La hora de fallecimiento es requerida","deleteIdentifierModalHeading":"¿Eliminar identificador?","deleteIdentifierModalText":"tiene un valor de","deleteIdentifierTooltip":"Eliminar","deleteRelationshipTooltipText":"Eliminar","demographicsSection":"Información Básica","discard":"Descartar","dobToggleLabelText":"¿Se conoce la fecha de nacimiento?","editIdentifierTooltip":"Editar","editPatientDetails":"Modificar los datos del paciente","editPatientDetailsBreadcrumb":"Editar detalles del paciente","enterNonCodedCauseOfDeath":"Ingresar causa del fallecimiento no-codificada","error":"Error","errorFetchingCodedCausesOfDeath":"Error al obtener causas del fallecimiento codificadas","errorFetchingOrderedFields":"Ocurrió un error al obtener campos ordenados para la jerarquía de direcciones","estimatedAgeInMonthsLabelText":"Edad estimada en meses","estimatedAgeInYearsLabelText":"Edad estimada en años","familyNameLabelText":"Apellidos","familyNameRequired":"Apellidos es obligatorio","female":"Femenino","fieldsWithErrors":"Los siguientes campos tienen errores:","fullNameLabelText":"Nombre y Apellidos","gender":"Gender","genderLabelText":"Sexo","genderRequired":"El sexo es obligatorio","genderUnspecified":"Género no especificado","givenNameLabelText":"Nombre","givenNameRequired":"El nombre es obligatorio","identifierValueRequired":"El valor del identificador es obligatorio","idFieldLabelText":"Identificadores","IDInstructions":"Selecciona los identificadores que te gustaría agregar para este paciente:","invalidEmail":"Email inválido","invalidInput":"Entrada no válida","isDeadInputLabel":"Está fallecido","jumpTo":"Ir a","male":"Masculino","middleNameLabelText":"Segundo Nombre","negativeMonths":"Los meses estimados no pueden ser negativos","negativeYears":"Los años estimados no pueden ser negativos","no":"No","nonCodedCauseOfDeath":"Causa del fallecimiento no-codificada","nonCodedCauseOfDeathRequired":"La causa del fallecimiento es obligatoria","nonsensicalYears":"Los años estimados no pueden ser mayores a 140","numberInNameDubious":"Número en nombre es dudoso","obsFieldUnknownDatatype":"El concepto para el campo de observación \'{{fieldDefinitionId}}\' tiene un tipo de datos desconocido \'{{datatypeName}}\'","optional":"Opcional","other":"Otro","patient":"Paciente","patientDetailsFound":"Patient information found in the registry, do you want to use the information to continue with registration?","patientName":"Patient name","patientNameKnown":"¿Se sabe el nombre del paciente?","patientRegistrationBreadcrumb":"Registro de Pacientes","refreshOrContactAdmin":"Intente refrescar la página o contactar al administrador de tu sistema","registerPatient":"Registrar paciente","registerPatientSuccessSnackbarSubtitle":"El paciente ahora se puede encontrar buscándolo por su nombre o número de identificación","registerPatientSuccessSnackbarTitle":"Nuevo paciente creado","registrationErrorSnackbarTitle":"Error en el registro del paciente","relationship":"Relación","relationshipPersonMustExist":"La persona relacionada debe ser una persona existente","relationshipPlaceholder":"Relación","relationshipRemovedText":"Relación eliminada","relationshipsSection":"Relaciones","relationshipToPatient":"Relación con el paciente","relativeFullNameLabelText":"Nombre completo","relativeNamePlaceholder":"Nombre Apellido","removeIdentifierButton":"Eliminar identificador","resetIdentifierTooltip":"Resetear","restoreRelationshipActionButton":"Deshacer","searchAddress":"Buscar dirección","searchIdentifierPlaceholder":"Buscar identificador","selectAnOption":"Seleccionar una opción","selectCountry":"Select country","selectIdentifierType":"Select identifier type","sexFieldLabelText":"Sexo","source":"Fuente","submitting":"Enviando","timeFormat":"Formato de hora","timeOfDeathInputLabel":"Hora del fallecimiento (hh:mm)","unableToFetch":"No se puede obtener el tipo de atributo de persona - {{personattributetype}}","unknown":"Desconocido","unknownPatientAttributeType":"El tipo de atributo del paciente tiene un formato desconocido {{personAttributeTypeFormat}}","updatePatient":"Actualizar paciente","updatePatientErrorSnackbarTitle":"Error al actualizar los detalles del paciente","updatePatientSuccessSnackbarSubtitle":"La información del paciente se ha actualizado correctamente","updatePatientSuccessSnackbarTitle":"Detalles del paciente actualizados","yearsEstimateRequired":"Los años estimados son obligatorios","yes":"Sí"}')}}]);
package/dist/325.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[325],{1325:(e,t,n)=>{n.r(t),n.d(t,{INFINITE_PREFIX:()=>B,IS_REACT_LEGACY:()=>S,IS_SERVER:()=>k,OBJECT:()=>s,SWRConfig:()=>H,SWRGlobalState:()=>_,UNDEFINED:()=>i,cache:()=>q,compare:()=>$,createCacheHelper:()=>y,defaultConfig:()=>j,defaultConfigOptions:()=>O,getTimestamp:()=>V,hasRequestAnimationFrame:()=>v,initCache:()=>U,internalMutate:()=>x,isDocumentDefined:()=>w,isFunction:()=>c,isPromiseLike:()=>l,isUndefined:()=>a,isWindowDefined:()=>g,mergeConfigs:()=>z,mergeObjects:()=>u,mutate:()=>J,noop:()=>r,normalize:()=>K,preload:()=>Z,preset:()=>T,rAF:()=>I,revalidateEvents:()=>M,serialize:()=>F,slowConnection:()=>L,stableHash:()=>p,subscribeCallback:()=>ne,useIsomorphicLayoutEffect:()=>A,useSWRConfig:()=>Q,withArgs:()=>te,withMiddleware:()=>oe});var o=n(268);const r=()=>{},i=r(),s=Object,a=e=>e===i,c=e=>"function"==typeof e,u=(e,t)=>({...e,...t}),l=e=>c(e.then),f=new WeakMap;let d=0;const p=e=>{const t=typeof e,n=e&&e.constructor,o=n==Date;let r,i;if(s(e)!==e||o||n==RegExp)r=o?e.toJSON():"symbol"==t?e.toString():"string"==t?JSON.stringify(e):""+e;else{if(r=f.get(e),r)return r;if(r=++d+"~",f.set(e,r),n==Array){for(r="@",i=0;i<e.length;i++)r+=p(e[i])+",";f.set(e,r)}if(n==s){r="#";const t=s.keys(e).sort();for(;!a(i=t.pop());)a(e[i])||(r+=i+":"+p(e[i])+",");f.set(e,r)}}return r},_=new WeakMap,h={},E={},m="undefined",g=typeof window!=m,w=typeof document!=m,v=()=>g&&typeof window.requestAnimationFrame!=m,y=(e,t)=>{const n=_.get(e);return[()=>!a(t)&&e.get(t)||h,o=>{if(!a(t)){const r=e.get(t);t in E||(E[t]=r),n[5](t,u(r,o),r||h)}},n[6],()=>!a(t)&&t in E?E[t]:!a(t)&&e.get(t)||h]};let b=!0;const[R,C]=g&&window.addEventListener?[window.addEventListener.bind(window),window.removeEventListener.bind(window)]:[r,r],T={isOnline:()=>b,isVisible:()=>{const e=w&&document.visibilityState;return a(e)||"hidden"!==e}},O={initFocus:e=>(w&&document.addEventListener("visibilitychange",e),R("focus",e),()=>{w&&document.removeEventListener("visibilitychange",e),C("focus",e)}),initReconnect:e=>{const t=()=>{b=!0,e()},n=()=>{b=!1};return R("online",t),R("offline",n),()=>{C("online",t),C("offline",n)}}},S=!o.useId,k=!g||"Deno"in window,I=e=>v()?window.requestAnimationFrame(e):setTimeout(e,1),A=k?o.useEffect:o.useLayoutEffect,D="undefined"!=typeof navigator&&navigator.connection,L=!k&&D&&(["slow-2g","2g"].includes(D.effectiveType)||D.saveData),F=e=>{if(c(e))try{e=e()}catch(t){e=""}const t=e;return[e="string"==typeof e?e:(Array.isArray(e)?e.length:e)?p(e):"",t]};let N=0;const V=()=>++N,W=2;var M={__proto__:null,ERROR_REVALIDATE_EVENT:3,FOCUS_EVENT:0,MUTATE_EVENT:W,RECONNECT_EVENT:1};async function x(...e){const[t,n,o,r]=e,s=u({populateCache:!0,throwOnError:!0},"boolean"==typeof r?{revalidate:r}:r||{});let f=s.populateCache;const d=s.rollbackOnError;let p=s.optimisticData;const h=s.throwOnError;if(c(n)){const e=n,o=[],r=t.keys();for(const n of r)!/^\$(inf|sub)\$/.test(n)&&e(t.get(n)._k)&&o.push(n);return Promise.all(o.map(E))}return E(n);async function E(n){const[r]=F(n);if(!r)return;const[u,E]=y(t,r),[m,g,w,v]=_.get(t),b=()=>{const e=m[r];return(c(s.revalidate)?s.revalidate(u().data,n):!1!==s.revalidate)&&(delete w[r],delete v[r],e&&e[0])?e[0](W).then((()=>u().data)):u().data};if(e.length<3)return b();let R,C=o;const T=V();g[r]=[T,0];const O=!a(p),S=u(),k=S.data,I=S._c,A=a(I)?k:I;if(O&&(p=c(p)?p(A,k):p,E({data:p,_c:A})),c(C))try{C=C(A)}catch(e){R=e}if(C&&l(C)){if(C=await C.catch((e=>{R=e})),T!==g[r][0]){if(R)throw R;return C}R&&O&&(e=>"function"==typeof d?d(e):!1!==d)(R)&&(f=!0,E({data:A,_c:i}))}if(f&&!R)if(c(f)){const e=f(C,A);E({data:e,error:i,_c:i})}else E({data:C,error:i,_c:i});if(g[r][1]=V(),Promise.resolve(b()).then((()=>{E({_c:i})})),!R)return C;if(h)throw R}}const P=(e,t)=>{for(const n in e)e[n][0]&&e[n][0](t)},U=(e,t)=>{if(!_.has(e)){const n=u(O,t),o={},s=x.bind(i,e);let a=r;const c={},l=(e,t)=>{const n=c[e]||[];return c[e]=n,n.push(t),()=>n.splice(n.indexOf(t),1)},f=(t,n,o)=>{e.set(t,n);const r=c[t];if(r)for(const e of r)e(n,o)},d=()=>{if(!_.has(e)&&(_.set(e,[o,{},{},{},s,f,l]),!k)){const t=n.initFocus(setTimeout.bind(i,P.bind(i,o,0))),r=n.initReconnect(setTimeout.bind(i,P.bind(i,o,1)));a=()=>{t&&t(),r&&r(),_.delete(e)}}};return d(),[e,s,d,a]}return[e,_.get(e)[4]]},$=(e,t)=>p(e)==p(t),[q,J]=U(new Map),j=u({onLoadingSlow:r,onSuccess:r,onError:r,onErrorRetry:(e,t,n,o,r)=>{const i=n.errorRetryCount,s=r.retryCount,c=~~((Math.random()+.5)*(1<<(s<8?s:8)))*n.errorRetryInterval;!a(i)&&s>i||setTimeout(o,c,r)},onDiscarded:r,revalidateOnFocus:!0,revalidateOnReconnect:!0,revalidateIfStale:!0,shouldRetryOnError:!0,errorRetryInterval:L?1e4:5e3,focusThrottleInterval:5e3,dedupingInterval:2e3,loadingTimeout:L?5e3:3e3,compare:$,isPaused:()=>!1,cache:q,mutate:J,fallback:{}},T),z=(e,t)=>{const n=u(e,t);if(t){const{use:o,fallback:r}=e,{use:i,fallback:s}=t;o&&i&&(n.use=o.concat(i)),r&&s&&(n.fallback=u(r,s))}return n},G=(0,o.createContext)({}),H=e=>{const{value:t}=e,n=(0,o.useContext)(G),r=c(t),s=(0,o.useMemo)((()=>r?t(n):t),[r,n,t]),a=(0,o.useMemo)((()=>r?s:z(n,s)),[r,n,s]),l=s&&s.provider,f=(0,o.useRef)(i);l&&!f.current&&(f.current=U(l(a.cache||q),s));const d=f.current;return d&&(a.cache=d[0],a.mutate=d[1]),A((()=>{if(d)return d[2]&&d[2](),d[3]}),[]),(0,o.createElement)(G.Provider,u(e,{value:a}))},B="$inf$",X=g&&window.__SWR_DEVTOOLS_USE__,Y=X?window.__SWR_DEVTOOLS_USE__:[],K=e=>c(e[1])?[e[0],e[1],e[2]||{}]:[e[0],null,(null===e[1]?e[2]:e[1])||{}],Q=()=>u(j,(0,o.useContext)(G)),Z=(e,t)=>{const[n,o]=F(e),[,,,r]=_.get(q);if(r[n])return r[n];const i=t(o);return r[n]=i,i},ee=Y.concat((e=>(t,n,o)=>e(t,n&&((...e)=>{const[o]=F(t),[,,,r]=_.get(q);if(o.startsWith(B))return n(...e);const i=r[o];return a(i)?n(...e):(delete r[o],i)}),o))),te=e=>function(...t){const n=Q(),[o,r,i]=K(t),s=z(n,i);let a=e;const{use:c}=s,u=(c||[]).concat(ee);for(let e=u.length;e--;)a=u[e](a);return a(o,r||s.fetcher||null,s)},ne=(e,t,n)=>{const o=t[e]||(t[e]=[]);return o.push(n),()=>{const e=o.indexOf(n);e>=0&&(o[e]=o[o.length-1],o.pop())}},oe=(e,t)=>(...n)=>{const[o,r,i]=K(n),s=(i.use||[]).concat(t);return e(o,r,{...i,use:s})};X&&(window.__SWR_DEVTOOLS_REACT__=o)}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"325.js","mappings":"q5BAGA,MAAMA,EAAO,OAKPC,EAA8BD,IAC9BE,EAASC,OACTC,EAAeC,GAAIA,IAAMJ,EACzBK,EAAcD,GAAgB,mBAALA,EACzBE,EAAe,CAACC,EAAGC,KAAI,IAClBD,KACAC,IAELC,EAAiBC,GAAIL,EAAWK,EAAEC,MAMlCC,EAAQ,IAAIC,QAElB,IAAIC,EAAU,EASd,MAAMC,EAAcC,IAChB,MAAMC,SAAcD,EACdE,EAAcF,GAAOA,EAAIE,YACzBC,EAASD,GAAeE,KAC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AMgI,EAAM7F,EAAQxE,GACpB,OAAI3C,EAAYgN,GAAaG,KAAYnI,WAClCmC,EAAQxE,GACRqK,EACV,GACgClD,KAOnCuD,GAAYC,GACP,YAAuBtI,GAE1B,MAAMuI,EAAiBZ,KAEhBhK,EAAKoG,EAAIyE,GAAWd,EAAU1H,GAE/B8E,EAASmB,EAAasC,EAAgBC,GAE5C,IAAIC,EAAOH,EACX,MAAM,IAAEpC,GAAQpB,EACV4D,GAAcxC,GAAO,IAAIK,OAAO0B,IACtC,IAAI,IAAIU,EAAID,EAAW9L,OAAQ+L,KAC3BF,EAAOC,EAAWC,GAAGF,GAEzB,OAAOA,EAAK9K,EAAKoG,GAAMe,EAAOgD,SAAW,KAAMhD,EACnD,EAKE8D,GAAoB,CAACjL,EAAKkL,EAAWlK,KACvC,MAAMmK,EAAoBD,EAAUlL,KAASkL,EAAUlL,GAAO,IAE9D,OADAmL,EAAkBnH,KAAKhD,GAChB,KACH,MAAMxC,EAAQ2M,EAAkBlF,QAAQjF,GACpCxC,GAAS,IAET2M,EAAkB3M,GAAS2M,EAAkBA,EAAkBlM,OAAS,GACxEkM,EAAkB/L,MACtB,CACH,EAICgM,GAAiB,CAACC,EAAQN,IACrB,IAAI1I,KACP,MAAOrC,EAAKoG,EAAIe,GAAU4C,EAAU1H,GAC9BiJ,GAAQnE,EAAOoB,KAAO,IAAIK,OAAOmC,GACvC,OAAOM,EAAOrL,EAAKoG,EAAI,IAChBe,EACHoB,IAAK+C,GACP,EA/FFzB,IAEAnK,OAAO6L,uBAAyB,E","sources":["webpack://@kenyaemr/esm-patient-registration-app/../../node_modules/swr/dist/_internal/index.mjs"],"names":["noop","UNDEFINED","OBJECT","Object","isUndefined","v","isFunction","mergeObjects","a","b","isPromiseLike","x","then","table","WeakMap","counter","stableHash","arg","type","constructor","isDate","Date","result","index","RegExp","toJSON","toString","JSON","stringify","get","set","Array","length","keys","sort","pop","SWRGlobalState","EMPTY_CACHE","INITIAL_CACHE","STR_UNDEFINED","isWindowDefined","window","isDocumentDefined","document","hasRequestAnimationFrame","createCacheHelper","cache","key","state","info","prev","online","onWindowEvent","offWindowEvent","addEventListener","bind","removeEventListener","preset","isOnline","isVisible","visibilityState","defaultConfigOptions","initFocus","callback","initReconnect","onOnline","onOffline","IS_REACT_LEGACY","IS_SERVER","rAF","f","setTimeout","useIsomorphicLayoutEffect","useEffect","useLayoutEffect","navigatorConnection","navigator","connection","slowConnection","includes","effectiveType","saveData","serialize","err","args","isArray","__timestamp","getTimestamp","MUTATE_EVENT","events","__proto__","ERROR_REVALIDATE_EVENT","FOCUS_EVENT","RECONNECT_EVENT","async","internalMutate","_key","_data","_opts","options","populateCache","throwOnError","revalidate","rollbackOnErrorOption","rollbackOnError","optimisticData","keyFilter","matchedKeys","it","test","_k","push","Promise","all","map","mutateByKey","EVENT_REVALIDATORS","MUTATION","FETCH","PRELOAD","startRevalidate","revalidators","data","error","beforeMutationTs","hasOptimisticData","displayedData","currentData","_c","committedData","catch","populateCachedData","resolve","revalidateAllKeys","initCache","provider","has","opts","mutate","unmount","subscriptions","subscribe","subs","splice","indexOf","setter","value","fn","initProvider","releaseFocus","releaseReconnect","delete","compare","newData","Map","defaultConfig","onLoadingSlow","onSuccess","onError","onErrorRetry","_","__","config","maxRetryCount","errorRetryCount","currentRetryCount","retryCount","timeout","Math","random","errorRetryInterval","onDiscarded","revalidateOnFocus","revalidateOnReconnect","revalidateIfStale","shouldRetryOnError","focusThrottleInterval","dedupingInterval","loadingTimeout","isPaused","fallback","mergeConfigs","use","u1","f1","u2","f2","concat","SWRConfigContext","createContext","SWRConfig","props","parentConfig","useContext","isFunctionalConfig","useMemo","extendedConfig","cacheContextRef","useRef","current","cacheContext","createElement","Provider","INFINITE_PREFIX","enableDevtools","__SWR_DEVTOOLS_USE__","normalize","useSWRConfig","preload","key_","fetcher","fnArg","req","BUILT_IN_MIDDLEWARE","useSWRNext","fetcher_","startsWith","withArgs","hook","fallbackConfig","_config","next","middleware","i","subscribeCallback","callbacks","keyedRevalidators","withMiddleware","useSWR","uses","__SWR_DEVTOOLS_REACT__"],"sourceRoot":""}
package/dist/372.js ADDED
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 372.js.LICENSE.txt */
2
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[372,2],{452:(e,t,n)=>{var r=n(268),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=r.useState,s=r.useEffect,u=r.useLayoutEffect,d=r.useDebugValue;function o(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!i(e,n)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var n=t(),r=a({inst:{value:n,getSnapshot:t}}),i=r[0].inst,c=r[1];return u((function(){i.value=n,i.getSnapshot=t,o(i)&&c({inst:i})}),[e,n,t]),s((function(){return o(i)&&c({inst:i}),e((function(){o(i)&&c({inst:i})}))}),[e]),d(n),n};t.useSyncExternalStore=void 0!==r.useSyncExternalStore?r.useSyncExternalStore:c},3100:(e,t,n)=>{e.exports=n(452)},3372:(e,t,n)=>{n.r(t),n.d(t,{default:()=>c,immutable:()=>o});var r=n(268),i=n(3100),a=n(3629);const s=r.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(e.status="pending",e.then((t=>{e.status="fulfilled",e.value=t}),(t=>{e.status="rejected",e.reason=t})),e)}),u={dedupe:!0};a.OBJECT.defineProperty(a.SWRConfig,"defaultValue",{value:a.defaultConfig});const d=(0,a.withArgs)(((e,t,n)=>{const{cache:d,compare:o,suspense:c,fallbackData:l,revalidateOnMount:f,revalidateIfStale:E,refreshInterval:g,refreshWhenHidden:v,refreshWhenOffline:h,keepPreviousData:p}=n,[R,S,U,_]=a.SWRGlobalState.get(d),[m,b]=(0,a.serialize)(e),T=(0,r.useRef)(!1),V=(0,r.useRef)(!1),w=(0,r.useRef)(m),y=(0,r.useRef)(t),C=(0,r.useRef)(n),O=()=>C.current,L=()=>O().isVisible()&&O().isOnline(),[k,I,D,A]=(0,a.createCacheHelper)(d,m),N=(0,r.useRef)({}).current,F=(0,a.isUndefined)(l)?n.fallback[m]:l,P=(e,t)=>{for(const n in N){const r=n;if("data"===r){if(!o(e[r],t[r])){if(!(0,a.isUndefined)(e[r]))return!1;if(!o(z,t[r]))return!1}}else if(t[r]!==e[r])return!1}return!0},j=(0,r.useMemo)((()=>{const e=!!m&&!!t&&((0,a.isUndefined)(f)?!O().isPaused()&&!c&&(!!(0,a.isUndefined)(E)||E):f),n=t=>{const n=(0,a.mergeObjects)(t);return delete n._k,e?{isValidating:!0,isLoading:!0,...n}:n},r=k(),i=A(),s=n(r),u=r===i?s:n(i);let d=s;return[()=>{const e=n(k());return P(e,d)?(d.data=e.data,d.isLoading=e.isLoading,d.isValidating=e.isValidating,d.error=e.error,d):(d=e,e)},()=>u]}),[d,m]),x=(0,i.useSyncExternalStore)((0,r.useCallback)((e=>D(m,((t,n)=>{P(n,t)||e()}))),[d,m]),j[0],j[1]),M=!T.current,W=R[m]&&R[m].length>0,G=x.data,H=(0,a.isUndefined)(G)?F:G,Y=x.error,q=(0,r.useRef)(H),z=p?(0,a.isUndefined)(G)?q.current:G:H,B=!(W&&!(0,a.isUndefined)(Y))&&(M&&!(0,a.isUndefined)(f)?f:!O().isPaused()&&(c?!(0,a.isUndefined)(H)&&E:(0,a.isUndefined)(H)||E)),J=!!(m&&t&&M&&B),K=(0,a.isUndefined)(x.isValidating)?J:x.isValidating,Q=(0,a.isUndefined)(x.isLoading)?J:x.isLoading,X=(0,r.useCallback)((async e=>{const t=y.current;if(!m||!t||V.current||O().isPaused())return!1;let r,i,s=!0;const u=e||{},d=!U[m]||!u.dedupe,c=()=>a.IS_REACT_LEGACY?!V.current&&m===w.current&&T.current:m===w.current,l={isValidating:!1,isLoading:!1},f=()=>{I(l)},E=()=>{const e=U[m];e&&e[1]===i&&delete U[m]},g={isValidating:!0};(0,a.isUndefined)(k().data)&&(g.isLoading=!0);try{if(d&&(I(g),n.loadingTimeout&&(0,a.isUndefined)(k().data)&&setTimeout((()=>{s&&c()&&O().onLoadingSlow(m,n)}),n.loadingTimeout),U[m]=[t(b),(0,a.getTimestamp)()]),[r,i]=U[m],r=await r,d&&setTimeout(E,n.dedupingInterval),!U[m]||U[m][1]!==i)return d&&c()&&O().onDiscarded(m),!1;l.error=a.UNDEFINED;const e=S[m];if(!(0,a.isUndefined)(e)&&(i<=e[0]||i<=e[1]||0===e[1]))return f(),d&&c()&&O().onDiscarded(m),!1;const u=k().data;l.data=o(u,r)?u:r,d&&c()&&O().onSuccess(r,m,n)}catch(e){E();const t=O(),{shouldRetryOnError:n}=t;t.isPaused()||(l.error=e,d&&c()&&(t.onError(e,m,t),(!0===n||(0,a.isFunction)(n)&&n(e))&&(O().revalidateOnFocus&&O().revalidateOnReconnect&&!L()||t.onErrorRetry(e,m,t,(e=>{const t=R[m];t&&t[0]&&t[0](a.revalidateEvents.ERROR_REVALIDATE_EVENT,e)}),{retryCount:(u.retryCount||0)+1,dedupe:!0}))))}return s=!1,f(),!0}),[m,d]),Z=(0,r.useCallback)(((...e)=>(0,a.internalMutate)(d,w.current,...e)),[]);if((0,a.useIsomorphicLayoutEffect)((()=>{y.current=t,C.current=n,(0,a.isUndefined)(G)||(q.current=G)})),(0,a.useIsomorphicLayoutEffect)((()=>{if(!m)return;const e=X.bind(a.UNDEFINED,u);let t=0;const n=(0,a.subscribeCallback)(m,R,((n,r={})=>{if(n==a.revalidateEvents.FOCUS_EVENT){const n=Date.now();O().revalidateOnFocus&&n>t&&L()&&(t=n+O().focusThrottleInterval,e())}else if(n==a.revalidateEvents.RECONNECT_EVENT)O().revalidateOnReconnect&&L()&&e();else{if(n==a.revalidateEvents.MUTATE_EVENT)return X();if(n==a.revalidateEvents.ERROR_REVALIDATE_EVENT)return X(r)}}));return V.current=!1,w.current=m,T.current=!0,I({_k:b}),B&&((0,a.isUndefined)(H)||a.IS_SERVER?e():(0,a.rAF)(e)),()=>{V.current=!0,n()}}),[m]),(0,a.useIsomorphicLayoutEffect)((()=>{let e;function t(){const t=(0,a.isFunction)(g)?g(k().data):g;t&&-1!==e&&(e=setTimeout(n,t))}function n(){k().error||!v&&!O().isVisible()||!h&&!O().isOnline()?t():X(u).then(t)}return t(),()=>{e&&(clearTimeout(e),e=-1)}}),[g,v,h,m]),(0,r.useDebugValue)(z),c&&(0,a.isUndefined)(H)&&m){if(!a.IS_REACT_LEGACY&&a.IS_SERVER)throw new Error("Fallback data is required when using suspense in SSR.");y.current=t,C.current=n,V.current=!1;const e=_[m];if(!(0,a.isUndefined)(e)){const t=Z(e);s(t)}if(!(0,a.isUndefined)(Y))throw Y;{const e=X(u);(0,a.isUndefined)(z)||(e.status="fulfilled",e.value=!0),s(e)}}return{mutate:Z,get data(){return N.data=!0,z},get error(){return N.error=!0,Y},get isValidating(){return N.isValidating=!0,K},get isLoading(){return N.isLoading=!0,Q}}})),o=e=>(t,n,r)=>(r.revalidateOnFocus=!1,r.revalidateIfStale=!1,r.revalidateOnReconnect=!1,e(t,n,r)),c=(0,a.withMiddleware)(d,o)}}]);
@@ -0,0 +1 @@
1
+ {"version":3,"file":"372.js","mappings":";4KASa,IAAIA,EAAE,EAAQ,KAA4EC,EAAE,mBAAoBC,OAAOC,GAAGD,OAAOC,GAA1G,SAAWC,EAAEC,GAAG,OAAOD,IAAIC,IAAI,IAAID,GAAG,EAAEA,GAAI,EAAEC,IAAID,GAAIA,GAAGC,GAAIA,CAAC,EAAiDC,EAAEN,EAAEO,SAASC,EAAER,EAAES,UAAUC,EAAEV,EAAEW,gBAAgBC,EAAEZ,EAAEa,cACtM,SAASC,EAAEV,GAAG,IAAIC,EAAED,EAAEW,YAAYX,EAAEA,EAAEY,MAAM,IAAI,IAAIC,EAAEZ,IAAI,OAAOJ,EAAEG,EAAEa,EAAE,CAAC,MAAMC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,EAAQC,OAAS,YACjBD,EAAQd,OAAQ,GAEpBa,EAAIC,EACR,CAGJ,CACA,MAAO,CACHsJ,OAAQzB,EACJlD,WAEA,OADAxB,EAAkBwB,MAAO,EAClBjB,CACX,EACIkB,YAEA,OADAzB,EAAkByB,OAAQ,EACnBA,CACX,EACIT,mBAEA,OADAhB,EAAkBgB,cAAe,EAC1BA,CACX,EACIC,gBAEA,OADAjB,EAAkBiB,WAAY,EACvBA,CACX,EACH,IAqBCmF,EAAaC,GAAa,CAACxH,EAAKlB,EAASC,KAEvCA,EAAOsG,mBAAoB,EAC3BtG,EAAOM,mBAAoB,EAC3BN,EAAOuG,uBAAwB,EACxBkC,EAAWxH,EAAKlB,EAASC,IAElC0I,GAAkB,IAAAC,gBAAe/I,EAAQ4I","sources":["webpack://@kenyaemr/esm-patient-registration-app/../../node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.min.js","webpack://@kenyaemr/esm-patient-registration-app/../../node_modules/use-sync-external-store/shim/index.js","webpack://@kenyaemr/esm-patient-registration-app/../../node_modules/swr/dist/immutable/index.mjs"],"names":["e","k","Object","is","a","b","l","useState","m","useEffect","n","useLayoutEffect","p","useDebugValue","r","getSnapshot","value","d","f","u","window","document","createElement","inst","c","g","exports","useSyncExternalStore","module","use","promise","status","reason","then","v","WITH_DEDUPE","dedupe","OBJECT","defineProperty","SWRConfig","defaultConfig","useSWR","withArgs","_key","fetcher","config","cache","compare","suspense","fallbackData","revalidateOnMount","revalidateIfStale","refreshInterval","refreshWhenHidden","refreshWhenOffline","keepPreviousData","EVENT_REVALIDATORS","MUTATION","FETCH","PRELOAD","SWRGlobalState","get","key","fnArg","serialize","initialMountedRef","useRef","unmountedRef","keyRef","fetcherRef","configRef","getConfig","current","isActive","isVisible","isOnline","getCache","setCache","subscribeCache","getInitialCache","createCacheHelper","stateDependencies","fallback","isUndefined","isEqual","prev","_","t","returnedData","useMemo","shouldStartRequest","isPaused","getSelectedCache","state","snapshot","mergeObjects","_k","isValidating","isLoading","cachedData","initialData","clientSnapshot","serverSnapshot","memorizedSnapshot","newSnapshot","data","error","cached","useCallback","callback","isInitialMount","hasRevalidator","length","laggyDataRef","shouldDoInitialRevalidation","defaultValidatingState","revalidate","async","revalidateOpts","currentFetcher","newData","startAt","loading","opts","shouldStartNewRequest","callbackSafeguard","IS_REACT_LEGACY","finalState","finishRequestAndUpdateState","cleanupState","requestInfo","initialState","loadingTimeout","setTimeout","onLoadingSlow","getTimestamp","dedupingInterval","onDiscarded","UNDEFINED","mutationInfo","cacheData","onSuccess","err","currentConfig","shouldRetryOnError","onError","isFunction","revalidateOnFocus","revalidateOnReconnect","onErrorRetry","_opts","revalidators","revalidateEvents","ERROR_REVALIDATE_EVENT","retryCount","boundMutate","args","internalMutate","useIsomorphicLayoutEffect","softRevalidate","bind","nextFocusRevalidatedAt","unsubEvents","subscribeCallback","type","FOCUS_EVENT","now","Date","focusThrottleInterval","RECONNECT_EVENT","MUTATE_EVENT","IS_SERVER","rAF","timer","next","interval","execute","clearTimeout","Error","req","mutate","immutable","useSWRNext","useSWRImmutable","withMiddleware"],"sourceRoot":""}
package/dist/460.js CHANGED
@@ -1 +1 @@
1
- "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[460],{4460:e=>{e.exports=JSON.parse('{"addRelationshipButtonText":"أضف علاقة","addressHeader":"العنوان","age":"Age","allFieldsRequiredText":"جميع الحقول مطلوبة ما لم يتم التأشير عليها بأنها اختيارية","autoGeneratedPlaceholderText":"تم إنشاؤه تلقائيًا","birthdayNotInTheFuture":"Birthday cannot be in the future","birthdayRequired":"Birthday is required","birthFieldLabelText":"الميلاد","cancel":"إلغاء","causeOfDeathInputLabel":"سبب الوفاة","clientRegistryEmpty":"Create & Post Patient","clientVerificationWithClientRegistry":"Client verification with client registry","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"تكوين","configureIdentifiers":"Configure identifiers","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"تفاصيل الاتصال","createNewPatient":"Create new patient","continue":"Continue to registration","createNew":"أنشئ جديد","dateOfBirth":"Date of birth","dateOfBirthLabelText":"تاريخ الميلاد","deathDateInputLabel":"تاريخ الوفاة","deathdayNotInTheFuture":"Death day cannot be in the future","deathSection":"معلومات الوفاة","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"حذف","deleteRelationshipTooltipText":"حذف","demographicsSection":"معلومات أساسية","discard":"تجاهل","discardModalBody":"لم يتم حفظ التغييرات التي قمت بها في تفاصيل هذا المريض. هل تريد تجاهل التغييرات؟","discardModalHeader":"تأكيد تجاهل التغييرات","dobToggleLabelText":"هل تاريخ الميلاد معروف؟","editIdentifierTooltip":"تعديل","editPatientDetails":"تعديل تفاصيل المريض","editPatientDetailsBreadcrumb":"Edit patient details","error":"خطأ","errorFetchingOrderedFields":"حدث خطأ أثناء جلب الحقول المرتبة لتسلسل العنوان","estimatedAgeInMonthsLabelText":"العمر المقدر بالشهور","estimatedAgeInYearsLabelText":"العمر المقدر بالسنوات","familyNameLabelText":"اسم العائلة","familyNameRequired":"Family name is required","female":"أنثى","fullNameLabelText":"الاسم الكامل","gender":"Gender","genderLabelText":"الجنس","genderRequired":"Gender is required","genderUnspecified":"Gender is not specified","givenNameLabelText":"الاسم الأول","givenNameRequired":"Given name is required","identifierValueRequired":"قيمة المعرف مطلوبة","idFieldLabelText":"المعرفات","IDInstructions":"Select the identifiers you\'d like to add for this patient:","incompleteForm":"نموذج غير مكتمل","invalidEmail":"A valid email has to be given","invalidInput":"إدخال غير صالح","isDeadInputLabel":"هل المريض متوفى؟","jumpTo":"اذهب إلى","male":"ذكر","middleNameLabelText":"الاسم الأوسط","negativeMonths":"Negative months","negativeYears":"Negative years","no":"لا","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"اختياري","originFacilityCode":"Origin facility code","originFacilityName":"Origin facility name","other":"آخر","patient":"المريض","patientDetailsFound":"Patient information found in the registry, do you want to use the information to continue with registration?","patientName":"Patient name","patientNameKnown":"هل اسم المريض معروف؟","patientNotFound":"The patient records could not be found in Client registry, do you want to continue to create and post patient to registry","patientRegistrationBreadcrumb":"Patient Registration","postToRegistry":"Post to registry","registerPatient":"تسجيل المريض","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"العلاقة","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"العلاقة","relationshipRemovedText":"تمت إزالة العلاقة","relationshipsSection":"العلاقات","relationshipToPatient":"العلاقة بالمريض","relativeFullNameLabelText":"الاسم الكامل للقريب","relativeNamePlaceholder":"الاسم الأول اسم العائلة","removeIdentifierButton":"Remove Identifier","resetIdentifierTooltip":"إعادة تعيين","restoreRelationshipActionButton":"تراجع","searchAddress":"ابحث عن العنوان","searchIdentifierPlaceholder":"Search identifier","selectAnOption":"اختر خيارًا","selectCountry":"Select country","selectIdentifierType":"Select identifier type","sexFieldLabelText":"الجنس","source":"Source","stroke":"جلطة","submitting":"Submitting","unableToFetch":"تعذر الجلب نوع السمة الشخصية - {{personattributetype}}","unknown":"غير معروف","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"تحديث المريض","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Years estimate required","yes":"نعم"}')}}]);
1
+ "use strict";(globalThis.webpackChunk_kenyaemr_esm_patient_registration_app=globalThis.webpackChunk_kenyaemr_esm_patient_registration_app||[]).push([[460],{4460:e=>{e.exports=JSON.parse('{"addRelationshipButtonText":"أضف علاقة","addressHeader":"العنوان","age":"Age","allFieldsRequiredText":"جميع الحقول مطلوبة ما لم يتم التأشير عليها بأنها اختيارية","autoGeneratedPlaceholderText":"تم إنشاؤه تلقائيًا","birthdayNotInTheFuture":"Birthday cannot be in future","birthdayNotOver140YearsAgo":"Birthday cannot be more than 140 years ago","birthdayRequired":"Birthday is required","birthFieldLabelText":"الميلاد","cancel":"إلغاء","causeOfDeathInputLabel":"Cause of death","closeOverlay":"Close overlay","codedPersonAttributeAnswerSetEmpty":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an answer concept set UUID \'{{answerConceptSetUuid}}\' that does not have any concept answers.","codedPersonAttributeAnswerSetInvalid":"The coded person attribute field \'{{codedPersonAttributeFieldId}}\' has been defined with an invalid answer concept set UUID \'{{answerConceptSetUuid}}\'.","codedPersonAttributeNoAnswerSet":"The person attribute field \'{{codedPersonAttributeFieldId}}\' is of type \'coded\' but has been defined without an answer concept set UUID. The \'answerConceptSetUuid\' key is required.","configure":"تكوين","configureIdentifiers":"Configure identifiers","confirmDiscardChangesBody":"Your unsaved changes will be lost if you proceed to discard the form","confirmDiscardChangesTitle":"Are you sure you want to discard these changes?","confirmIdentifierDeletionText":"Are you sure you want to remove this identifier?","contactSection":"تفاصيل الاتصال","createNewPatient":"Create new patient","dateOfBirthLabelText":"Date of birth","deathCauseRequired":"Cause of death is required","deathDateInFuture":"Death date cannot be in future","deathDateInputLabel":"Date of death","deathDateRequired":"Death date is required","deathdayInvalidDate":"Death date and time cannot be before the birthday","deathdayIsRequired":"Death date is required when the patient is marked as deceased.","deathdayNotInTheFuture":"","deathSection":"معلومات الوفاة","deathTimeFormatInvalid":"Time format is invalid","deathTimeFormatRequired":"Time format is required","deathTimeInvalid":"Time doesn\'t match the format \'hh:mm\'","deathTimeRequired":"Death time is required","deleteIdentifierModalHeading":"Remove identifier?","deleteIdentifierModalText":" has a value of ","deleteIdentifierTooltip":"حذف","deleteRelationshipTooltipText":"حذف","demographicsSection":"معلومات أساسية","discard":"تجاهل","dobToggleLabelText":"هل تاريخ الميلاد معروف؟","editIdentifierTooltip":"تعديل","editPatientDetails":"تعديل تفاصيل المريض","editPatientDetailsBreadcrumb":"Edit patient details","enterNonCodedCauseOfDeath":"Enter non-coded cause of death","error":"خطأ","errorFetchingCodedCausesOfDeath":"Error fetching coded causes of death","errorFetchingOrderedFields":"حدث خطأ أثناء جلب الحقول المرتبة لتسلسل العنوان","estimatedAgeInMonthsLabelText":"العمر المقدر بالشهور","estimatedAgeInYearsLabelText":"العمر المقدر بالسنوات","familyNameLabelText":"اسم العائلة","familyNameRequired":"Family name is required","female":"أنثى","fieldsWithErrors":"The following fields have errors: ","fullNameLabelText":"الاسم الكامل","gender":"Gender","genderLabelText":"الجنس","genderRequired":"Gender is required","genderUnspecified":"Gender unspecified","givenNameLabelText":"الاسم الأول","givenNameRequired":"Given name is required","identifierValueRequired":"قيمة المعرف مطلوبة","idFieldLabelText":"المعرفات","IDInstructions":"Select the identifiers you\'d like to add for this patient:","invalidEmail":"Invalid email","invalidInput":"إدخال غير صالح","isDeadInputLabel":"Is dead","jumpTo":"اذهب إلى","male":"ذكر","middleNameLabelText":"الاسم الأوسط","negativeMonths":"Estimated months cannot be negative","negativeYears":"Estimated years cannot be negative","no":"لا","nonCodedCauseOfDeath":"Non-coded cause of death","nonCodedCauseOfDeathRequired":"Cause of death is required","nonsensicalYears":"Estimated years cannot be more than 140","numberInNameDubious":"Number in name is dubious","obsFieldUnknownDatatype":"Concept for obs field \'{{fieldDefinitionId}}\' has unknown datatype \'{{datatypeName}}\'","optional":"اختياري","originFacilityCode":"Origin facility code","originFacilityName":"Origin facility name","other":"آخر","patient":"المريض","patientDetailsFound":"Patient information found in the registry, do you want to use the information to continue with registration?","patientName":"Patient name","patientNameKnown":"هل اسم المريض معروف؟","patientNotFound":"The patient records could not be found in Client registry, do you want to continue to create and post patient to registry","patientRegistrationBreadcrumb":"Patient Registration","refreshOrContactAdmin":"Try refreshing the page or contact your system administrator","registerPatient":"Register patient","registerPatientSuccessSnackbarSubtitle":"The patient can now be found by searching for them using their name or ID number","registerPatientSuccessSnackbarTitle":"New Patient Created","registrationErrorSnackbarTitle":"Patient Registration Failed","relationship":"العلاقة","relationshipPersonMustExist":"Related person must be an existing person","relationshipPlaceholder":"العلاقة","relationshipRemovedText":"تمت إزالة العلاقة","relationshipsSection":"العلاقات","relationshipToPatient":"العلاقة بالمريض","relativeFullNameLabelText":"Full name","relativeNamePlaceholder":"الاسم الأول اسم العائلة","removeIdentifierButton":"Remove identifier","resetIdentifierTooltip":"إعادة تعيين","restoreRelationshipActionButton":"تراجع","searchAddress":"ابحث عن العنوان","searchIdentifierPlaceholder":"Search identifier","selectAnOption":"اختر خيارًا","selectCountry":"Select country","selectIdentifierType":"Select identifier type","sexFieldLabelText":"الجنس","source":"Source","submitting":"Submitting","timeFormat":"Time Format","timeOfDeathInputLabel":"Time of death (hh:mm)","unableToFetch":"Unable to fetch person attribute type - {{personattributetype}}","unknown":"غير معروف","unknownPatientAttributeType":"Patient attribute type has unknown format {{personAttributeTypeFormat}}","updatePatient":"Update patient","updatePatientErrorSnackbarTitle":"Patient Details Update Failed","updatePatientSuccessSnackbarSubtitle":"The patient\'s information has been successfully updated","updatePatientSuccessSnackbarTitle":"Patient Details Updated","yearsEstimateRequired":"Estimated years required","yes":"نعم"}')}}]);