hplx-feature-library 1.0.308 → 1.0.310
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.
- package/dist/{APIAction-BPjQvoDr.cjs → APIAction-BC572SUh.cjs} +1 -1
- package/dist/{APIAction-Cn6CnUPj.js → APIAction-Dh1jeN3Q.js} +2 -2
- package/dist/AllInvestigations/index.js +1 -1
- package/dist/{AllInvestigationsTable-o7sUrypz.js → AllInvestigationsTable-6WZYLxgn.js} +121 -121
- package/dist/AllInvestigationsTable-IN3Gv1wb.cjs +80 -0
- package/dist/Attachments/index.js +1 -1
- package/dist/Attachments-C5eZR_b9.cjs +186 -0
- package/dist/{Attachments-Bl0Bb93j.js → Attachments-Ddu-Ak3N.js} +36 -36
- package/dist/NineDots/index.js +1 -1
- package/dist/{NineDots-BenIdNn6.cjs → NineDots-CEKYCz_l.cjs} +1 -1
- package/dist/{NineDots-BovmR9lR.js → NineDots-CZxm95h0.js} +1 -1
- package/dist/PatientAddEdit/index.js +1 -1
- package/dist/{PatientAddEdit-BsvMkDPi.js → PatientAddEdit-Bsa6mPrj.js} +5 -5
- package/dist/{PatientAddEdit-CiUyGlRS.cjs → PatientAddEdit-CtM4xbMa.cjs} +1 -1
- package/dist/PatientPopup/index.js +1 -1
- package/dist/PatientPopupContainer-DOJniw5Q.cjs +36 -0
- package/dist/{PatientPopupContainer-BjejzoZp.js → PatientPopupContainer-VaUWBPAN.js} +512 -512
- package/dist/PediatricsCalculator/index.js +1 -1
- package/dist/{PediatricsCalculatorTable-CoHNZcKB.js → PediatricsCalculatorTable-Bsotwgba.js} +2 -2
- package/dist/{PediatricsCalculatorTable-Bfnfpscv.cjs → PediatricsCalculatorTable-C59lNMNS.cjs} +1 -1
- package/dist/{PrintModal-BYaI_gvN.cjs → PrintModal-D8CPsVQ6.cjs} +46 -46
- package/dist/{PrintModal-Dnu4I6Bq.js → PrintModal-DAhX2jNv.js} +587 -587
- package/dist/SearchPatients/index.js +1 -1
- package/dist/{SearchPatients-BURn-eU9.cjs → SearchPatients-1FVfZoeQ.cjs} +1 -1
- package/dist/{SearchPatients-BTmBvIpk.js → SearchPatients-tEIv_TBu.js} +3 -3
- package/dist/UserProfile/index.js +1 -1
- package/dist/{UserProfile-D9u7TGPM.js → UserProfile-CXotmcbO.js} +4 -4
- package/dist/{UserProfile-BcdsuEnn.cjs → UserProfile-DeVg1Gym.cjs} +1 -1
- package/dist/{common-utils-BmJs-CNu.cjs → common-utils-D1ID7-VY.cjs} +1 -1
- package/dist/{common-utils-fQX0KRKT.js → common-utils-P_6EPLut.js} +1 -1
- package/dist/{dayjs.min-Dx50Uhvr.js → dayjs.min-CI-igRZR.js} +15 -15
- package/dist/dayjs.min-Dq_-qqjW.cjs +1 -0
- package/dist/hplx-feature-library.css +1 -1
- package/dist/index-C8nmTIgQ.cjs +102 -0
- package/dist/{index-DPIXOYYJ.js → index-CJFGOBPb.js} +2 -2
- package/dist/{index-Cuk4eOa2.js → index-D9tHKxGo.js} +19 -19
- package/dist/index-DfcUmlge.cjs +17 -0
- package/dist/{index-D-5bovl6.js → index-Ku_Lrm51.js} +565 -565
- package/dist/index-fA2CtGkU.cjs +32 -0
- package/dist/index.js +9 -9
- package/dist/print-pdf/index.js +1 -1
- package/package.json +2 -2
- package/dist/AllInvestigationsTable-DKMxC37E.cjs +0 -80
- package/dist/Attachments-DP1L4bRq.cjs +0 -186
- package/dist/PatientPopupContainer-CNb0MKZc.cjs +0 -36
- package/dist/dayjs.min-QUFnA3Sz.cjs +0 -1
- package/dist/index-83gl7aAu.cjs +0 -32
- package/dist/index-D-bucTJp.cjs +0 -102
- package/dist/index-Dsi-BJd2.cjs +0 -17
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const G=require("./index-D-bucTJp.cjs");var W={exports:{}},K=W.exports,E;function X(){return E||(E=1,(function(V,nt){(function(A,x){V.exports=x()})(K,(function(){var A=1e3,x=6e4,U=36e5,I="millisecond",S="second",w="minute",_="hour",y="day",H="week",m="month",q="quarter",M="year",O="date",J="Invalid Date",B=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,P=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Q={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(s){var n=["th","st","nd","rd"],t=s%100;return"["+s+(n[(t-20)%10]||n[t]||n[0])+"]"}},F=function(s,n,t){var r=String(s);return!r||r.length>=n?s:""+Array(n+1-r.length).join(t)+s},R={s:F,z:function(s){var n=-s.utcOffset(),t=Math.abs(n),r=Math.floor(t/60),e=t%60;return(n<=0?"+":"-")+F(r,2,"0")+":"+F(e,2,"0")},m:function s(n,t){if(n.date()<t.date())return-s(t,n);var r=12*(t.year()-n.year())+(t.month()-n.month()),e=n.clone().add(r,m),i=t-e<0,u=n.clone().add(r+(i?-1:1),m);return+(-(r+(t-e)/(i?e-u:u-e))||0)},a:function(s){return s<0?Math.ceil(s)||0:Math.floor(s)},p:function(s){return{M:m,y:M,w:H,d:y,D:O,h:_,m:w,s:S,ms:I,Q:q}[s]||String(s||"").toLowerCase().replace(/s$/,"")},u:function(s){return s===void 0}},k="en",D={};D[k]=Q;var Z="$isDayjsObject",N=function(s){return s instanceof C||!(!s||!s[Z])},T=function s(n,t,r){var e;if(!n)return k;if(typeof n=="string"){var i=n.toLowerCase();D[i]&&(e=i),t&&(D[i]=t,e=i);var u=n.split("-");if(!e&&u.length>1)return s(u[0])}else{var o=n.name;D[o]=n,e=o}return!r&&e&&(k=e),e||!r&&k},f=function(s,n){if(N(s))return s.clone();var t=typeof n=="object"?n:{};return t.date=s,t.args=arguments,new C(t)},a=R;a.l=T,a.i=N,a.w=function(s,n){return f(s,{locale:n.$L,utc:n.$u,x:n.$x,$offset:n.$offset})};var C=(function(){function s(t){this.$L=T(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[Z]=!0}var n=s.prototype;return n.parse=function(t){this.$d=(function(r){var e=r.date,i=r.utc;if(e===null)return new Date(NaN);if(a.u(e))return new Date;if(e instanceof Date)return new Date(e);if(typeof e=="string"&&!/Z$/i.test(e)){var u=e.match(B);if(u){var o=u[2]-1||0,c=(u[7]||"0").substring(0,3);return i?new Date(Date.UTC(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)):new Date(u[1],o,u[3]||1,u[4]||0,u[5]||0,u[6]||0,c)}}return new Date(e)})(t),this.init()},n.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},n.$utils=function(){return a},n.isValid=function(){return this.$d.toString()!==J},n.isSame=function(t,r){var e=f(t);return this.startOf(r)<=e&&e<=this.endOf(r)},n.isAfter=function(t,r){return f(t)<this.startOf(r)},n.isBefore=function(t,r){return this.endOf(r)<f(t)},n.$g=function(t,r,e){return a.u(t)?this[r]:this.set(e,t)},n.unix=function(){return Math.floor(this.valueOf()/1e3)},n.valueOf=function(){return this.$d.getTime()},n.startOf=function(t,r){var e=this,i=!!a.u(r)||r,u=a.p(t),o=function(p,$){var v=a.w(e.$u?Date.UTC(e.$y,$,p):new Date(e.$y,$,p),e);return i?v:v.endOf(y)},c=function(p,$){return a.w(e.toDate()[p].apply(e.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice($)),e)},h=this.$W,d=this.$M,l=this.$D,b="set"+(this.$u?"UTC":"");switch(u){case M:return i?o(1,0):o(31,11);case m:return i?o(1,d):o(0,d+1);case H:var g=this.$locale().weekStart||0,j=(h<g?h+7:h)-g;return o(i?l-j:l+(6-j),d);case y:case O:return c(b+"Hours",0);case _:return c(b+"Minutes",1);case w:return c(b+"Seconds",2);case S:return c(b+"Milliseconds",3);default:return this.clone()}},n.endOf=function(t){return this.startOf(t,!1)},n.$set=function(t,r){var e,i=a.p(t),u="set"+(this.$u?"UTC":""),o=(e={},e[y]=u+"Date",e[O]=u+"Date",e[m]=u+"Month",e[M]=u+"FullYear",e[_]=u+"Hours",e[w]=u+"Minutes",e[S]=u+"Seconds",e[I]=u+"Milliseconds",e)[i],c=i===y?this.$D+(r-this.$W):r;if(i===m||i===M){var h=this.clone().set(O,1);h.$d[o](c),h.init(),this.$d=h.set(O,Math.min(this.$D,h.daysInMonth())).$d}else o&&this.$d[o](c);return this.init(),this},n.set=function(t,r){return this.clone().$set(t,r)},n.get=function(t){return this[a.p(t)]()},n.add=function(t,r){var e,i=this;t=Number(t);var u=a.p(r),o=function(d){var l=f(i);return a.w(l.date(l.date()+Math.round(d*t)),i)};if(u===m)return this.set(m,this.$M+t);if(u===M)return this.set(M,this.$y+t);if(u===y)return o(1);if(u===H)return o(7);var c=(e={},e[w]=x,e[_]=U,e[S]=A,e)[u]||1,h=this.$d.getTime()+t*c;return a.w(h,this)},n.subtract=function(t,r){return this.add(-1*t,r)},n.format=function(t){var r=this,e=this.$locale();if(!this.isValid())return e.invalidDate||J;var i=t||"YYYY-MM-DDTHH:mm:ssZ",u=a.z(this),o=this.$H,c=this.$m,h=this.$M,d=e.weekdays,l=e.months,b=e.meridiem,g=function($,v,Y,L){return $&&($[v]||$(r,i))||Y[v].slice(0,L)},j=function($){return a.s(o%12||12,$,"0")},p=b||function($,v,Y){var L=$<12?"AM":"PM";return Y?L.toLowerCase():L};return i.replace(P,(function($,v){return v||(function(Y){switch(Y){case"YY":return String(r.$y).slice(-2);case"YYYY":return a.s(r.$y,4,"0");case"M":return h+1;case"MM":return a.s(h+1,2,"0");case"MMM":return g(e.monthsShort,h,l,3);case"MMMM":return g(l,h);case"D":return r.$D;case"DD":return a.s(r.$D,2,"0");case"d":return String(r.$W);case"dd":return g(e.weekdaysMin,r.$W,d,2);case"ddd":return g(e.weekdaysShort,r.$W,d,3);case"dddd":return d[r.$W];case"H":return String(o);case"HH":return a.s(o,2,"0");case"h":return j(1);case"hh":return j(2);case"a":return p(o,c,!0);case"A":return p(o,c,!1);case"m":return String(c);case"mm":return a.s(c,2,"0");case"s":return String(r.$s);case"ss":return a.s(r.$s,2,"0");case"SSS":return a.s(r.$ms,3,"0");case"Z":return u}return null})($)||u.replace(":","")}))},n.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},n.diff=function(t,r,e){var i,u=this,o=a.p(r),c=f(t),h=(c.utcOffset()-this.utcOffset())*x,d=this-c,l=function(){return a.m(u,c)};switch(o){case M:i=l()/12;break;case m:i=l();break;case q:i=l()/3;break;case H:i=(d-h)/6048e5;break;case y:i=(d-h)/864e5;break;case _:i=d/U;break;case w:i=d/x;break;case S:i=d/A;break;default:i=d}return e?i:a.a(i)},n.daysInMonth=function(){return this.endOf(m).$D},n.$locale=function(){return D[this.$L]},n.locale=function(t,r){if(!t)return this.$L;var e=this.clone(),i=T(t,r,!0);return i&&(e.$L=i),e},n.clone=function(){return a.w(this.$d,this)},n.toDate=function(){return new Date(this.valueOf())},n.toJSON=function(){return this.isValid()?this.toISOString():null},n.toISOString=function(){return this.$d.toISOString()},n.toString=function(){return this.$d.toUTCString()},s})(),z=C.prototype;return f.prototype=z,[["$ms",I],["$s",S],["$m",w],["$H",_],["$W",y],["$M",m],["$y",M],["$D",O]].forEach((function(s){z[s[1]]=function(n){return this.$g(n,s[0],s[1])}})),f.extend=function(s,n){return s.$i||(s(n,C,f),s.$i=!0),f},f.locale=T,f.isDayjs=N,f.unix=function(s){return f(1e3*s)},f.en=D[k],f.Ls=D,f.p={},f}))})(W)),W.exports}var tt=X();const et=G.getDefaultExportFromCjs(tt);exports.dayjs=et;
|
package/dist/index-83gl7aAu.cjs
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";const X=require("./index-D-bucTJp.cjs"),pe=require("react"),Ee=require("react-dom"),Se=require("./warning-W0tkkrLJ.cjs");var Y={exports:{}},W={},G={exports:{}},T={},J={exports:{}},te;function ve(){return te||(te=1,(function(p,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=a;/*!
|
|
2
|
-
* Adapted from jQuery UI core
|
|
3
|
-
*
|
|
4
|
-
* http://jqueryui.com
|
|
5
|
-
*
|
|
6
|
-
* Copyright 2014 jQuery Foundation and other contributors
|
|
7
|
-
* Released under the MIT license.
|
|
8
|
-
* http://jquery.org/license
|
|
9
|
-
*
|
|
10
|
-
* http://api.jqueryui.com/category/ui-core/
|
|
11
|
-
*/var h="none",i="contents",f=/^(input|select|textarea|button|object|iframe)$/;function v(n,u){return u.getPropertyValue("overflow")!=="visible"||n.scrollWidth<=0&&n.scrollHeight<=0}function E(n){var u=n.offsetWidth<=0&&n.offsetHeight<=0;if(u&&!n.innerHTML)return!0;try{var l=window.getComputedStyle(n),y=l.getPropertyValue("display");return u?y!==i&&v(n,l):y===h}catch{return console.warn("Failed to inspect element style"),!1}}function t(n){for(var u=n,l=n.getRootNode&&n.getRootNode();u&&u!==document.body;){if(l&&u===l&&(u=l.host.parentNode),E(u))return!1;u=u.parentNode}return!0}function _(n,u){var l=n.nodeName.toLowerCase(),y=f.test(l)&&!n.disabled||l==="a"&&n.href||u;return y&&t(n)}function m(n){var u=n.getAttribute("tabindex");u===null&&(u=void 0);var l=isNaN(u);return(l||u>=0)&&_(n,!l)}function a(n){var u=[].slice.call(n.querySelectorAll("*"),0).reduce(function(l,y){return l.concat(y.shadowRoot?a(y.shadowRoot):[y])},[]);return u.filter(m)}p.exports=s.default})(J,J.exports)),J.exports}var ne;function Me(){if(ne)return T;ne=1,Object.defineProperty(T,"__esModule",{value:!0}),T.resetState=E,T.log=t,T.handleBlur=_,T.handleFocus=m,T.markForFocusLater=a,T.returnFocus=n,T.popWithoutFocus=u,T.setupScopedFocus=l,T.teardownScopedFocus=y;var p=ve(),s=h(p);function h(O){return O&&O.__esModule?O:{default:O}}var i=[],f=null,v=!1;function E(){i=[]}function t(){process.env.NODE_ENV!=="production"&&(console.log("focusManager ----------"),i.forEach(function(O){var S=O||{};console.log(S.nodeName,S.className,S.id)}),console.log("end focusManager ----------"))}function _(){v=!0}function m(){if(v){if(v=!1,!f)return;setTimeout(function(){if(!f.contains(document.activeElement)){var O=(0,s.default)(f)[0]||f;O.focus()}},0)}}function a(){i.push(document.activeElement)}function n(){var O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,S=null;try{i.length!==0&&(S=i.pop(),S.focus({preventScroll:O}));return}catch{console.warn(["You tried to return focus to",S,"but it is not in the DOM anymore"].join(" "))}}function u(){i.length>0&&i.pop()}function l(O){f=O,window.addEventListener?(window.addEventListener("blur",_,!1),document.addEventListener("focus",m,!0)):(window.attachEvent("onBlur",_),document.attachEvent("onFocus",m))}function y(){f=null,window.addEventListener?(window.removeEventListener("blur",_),document.removeEventListener("focus",m)):(window.detachEvent("onBlur",_),document.detachEvent("onFocus",m))}return T}var Q={exports:{}},oe;function we(){return oe||(oe=1,(function(p,s){Object.defineProperty(s,"__esModule",{value:!0}),s.default=E;var h=ve(),i=f(h);function f(t){return t&&t.__esModule?t:{default:t}}function v(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:document;return t.activeElement.shadowRoot?v(t.activeElement.shadowRoot):t.activeElement}function E(t,_){var m=(0,i.default)(t);if(!m.length){_.preventDefault();return}var a=void 0,n=_.shiftKey,u=m[0],l=m[m.length-1],y=v();if(t===y){if(!n)return;a=l}if(l===y&&!n&&(a=u),u===y&&n&&(a=l),a){_.preventDefault(),a.focus();return}var O=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent),S=O!=null&&O[1]!="Chrome"&&/\biPod\b|\biPad\b/g.exec(navigator.userAgent)==null;if(S){var R=m.indexOf(y);if(R>-1&&(R+=n?-1:1),a=m[R],typeof a>"u"){_.preventDefault(),a=n?l:u,a.focus();return}_.preventDefault(),a.focus()}}p.exports=s.default})(Q,Q.exports)),Q.exports}var D={},P={},Z={exports:{}};/*!
|
|
12
|
-
Copyright (c) 2015 Jed Watson.
|
|
13
|
-
Based on code that is Copyright 2013-2015, Facebook, Inc.
|
|
14
|
-
All rights reserved.
|
|
15
|
-
*/var re;function Ne(){return re||(re=1,(function(p){(function(){var s=!!(typeof window<"u"&&window.document&&window.document.createElement),h={canUseDOM:s,canUseWorkers:typeof Worker<"u",canUseEventListeners:s&&!!(window.addEventListener||window.attachEvent),canUseViewport:s&&!!window.screen};p.exports?p.exports=h:window.ExecutionEnvironment=h})()})(Z)),Z.exports}var ae;function ee(){if(ae)return P;ae=1,Object.defineProperty(P,"__esModule",{value:!0}),P.canUseDOM=P.SafeNodeList=P.SafeHTMLCollection=void 0;var p=Ne(),s=h(p);function h(v){return v&&v.__esModule?v:{default:v}}var i=s.default,f=i.canUseDOM?window.HTMLElement:{};return P.SafeHTMLCollection=i.canUseDOM?window.HTMLCollection:{},P.SafeNodeList=i.canUseDOM?window.NodeList:{},P.canUseDOM=i.canUseDOM,P.default=f,P}var le;function me(){if(le)return D;le=1,Object.defineProperty(D,"__esModule",{value:!0}),D.resetState=v,D.log=E,D.assertNodeList=t,D.setElement=_,D.validateElement=m,D.hide=a,D.show=n,D.documentNotReadyOrSSRTesting=u;var p=Se.requireWarning(),s=i(p),h=ee();function i(l){return l&&l.__esModule?l:{default:l}}var f=null;function v(){f&&(f.removeAttribute?f.removeAttribute("aria-hidden"):f.length!=null?f.forEach(function(l){return l.removeAttribute("aria-hidden")}):document.querySelectorAll(f).forEach(function(l){return l.removeAttribute("aria-hidden")})),f=null}function E(){if(process.env.NODE_ENV!=="production"){var l=f||{};console.log("ariaAppHider ----------"),console.log(l.nodeName,l.className,l.id),console.log("end ariaAppHider ----------")}}function t(l,y){if(!l||!l.length)throw new Error("react-modal: No elements were found for selector "+y+".")}function _(l){var y=l;if(typeof y=="string"&&h.canUseDOM){var O=document.querySelectorAll(y);t(O,y),y=O}return f=y||f,f}function m(l){var y=l||f;return y?Array.isArray(y)||y instanceof HTMLCollection||y instanceof NodeList?y:[y]:((0,s.default)(!1,["react-modal: App element is not defined.","Please use `Modal.setAppElement(el)` or set `appElement={el}`.","This is needed so screen readers don't see main content","when modal is opened. It is not recommended, but you can opt-out","by setting `ariaHideApp={false}`."].join(" ")),[])}function a(l){var y=!0,O=!1,S=void 0;try{for(var R=m(l)[Symbol.iterator](),A;!(y=(A=R.next()).done);y=!0){var x=A.value;x.setAttribute("aria-hidden","true")}}catch(L){O=!0,S=L}finally{try{!y&&R.return&&R.return()}finally{if(O)throw S}}}function n(l){var y=!0,O=!1,S=void 0;try{for(var R=m(l)[Symbol.iterator](),A;!(y=(A=R.next()).done);y=!0){var x=A.value;x.removeAttribute("aria-hidden")}}catch(L){O=!0,S=L}finally{try{!y&&R.return&&R.return()}finally{if(O)throw S}}}function u(){f=null}return D}var I={},se;function Re(){if(se)return I;se=1,Object.defineProperty(I,"__esModule",{value:!0}),I.resetState=i,I.log=f;var p={},s={};function h(m,a){m.classList.remove(a)}function i(){var m=document.getElementsByTagName("html")[0];for(var a in p)h(m,p[a]);var n=document.body;for(var u in s)h(n,s[u]);p={},s={}}function f(){if(process.env.NODE_ENV!=="production"){var m=document.getElementsByTagName("html")[0].className,a=`Show tracked classes:
|
|
16
|
-
|
|
17
|
-
`;a+="<html /> ("+m+`):
|
|
18
|
-
`;for(var n in p)a+=" "+n+" "+p[n]+`
|
|
19
|
-
`;m=document.body.className,a+=`
|
|
20
|
-
|
|
21
|
-
doc.body (`+m+`):
|
|
22
|
-
`;for(var u in s)a+=" "+u+" "+s[u]+`
|
|
23
|
-
`;a+=`
|
|
24
|
-
`,console.log(a)}}var v=function(a,n){return a[n]||(a[n]=0),a[n]+=1,n},E=function(a,n){return a[n]&&(a[n]-=1),n},t=function(a,n,u){u.forEach(function(l){v(n,l),a.add(l)})},_=function(a,n,u){u.forEach(function(l){E(n,l),n[l]===0&&a.remove(l)})};return I.add=function(a,n){return t(a.classList,a.nodeName.toLowerCase()=="html"?p:s,n.split(" "))},I.remove=function(a,n){return _(a.classList,a.nodeName.toLowerCase()=="html"?p:s,n.split(" "))},I}var V={},ie;function he(){if(ie)return V;ie=1,Object.defineProperty(V,"__esModule",{value:!0}),V.log=i,V.resetState=f;function p(v,E){if(!(v instanceof E))throw new TypeError("Cannot call a class as a function")}var s=function v(){var E=this;p(this,v),this.register=function(t){if(E.openInstances.indexOf(t)!==-1){process.env.NODE_ENV!=="production"&&console.warn("React-Modal: Cannot register modal instance that's already open");return}E.openInstances.push(t),E.emit("register")},this.deregister=function(t){var _=E.openInstances.indexOf(t);if(_===-1){process.env.NODE_ENV!=="production"&&console.warn("React-Modal: Unable to deregister "+t+" as it was never registered");return}E.openInstances.splice(_,1),E.emit("deregister")},this.subscribe=function(t){E.subscribers.push(t)},this.emit=function(t){E.subscribers.forEach(function(_){return _(t,E.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},h=new s;function i(){console.log("portalOpenInstances ----------"),console.log(h.openInstances.length),h.openInstances.forEach(function(v){return console.log(v)}),console.log("end portalOpenInstances ----------")}function f(){h=new s}return V.default=h,V}var j={},ue;function Te(){if(ue)return j;ue=1,Object.defineProperty(j,"__esModule",{value:!0}),j.resetState=E,j.log=t;var p=he(),s=h(p);function h(a){return a&&a.__esModule?a:{default:a}}var i=void 0,f=void 0,v=[];function E(){for(var a=[i,f],n=0;n<a.length;n++){var u=a[n];u&&u.parentNode&&u.parentNode.removeChild(u)}i=f=null,v=[]}function t(){console.log("bodyTrap ----------"),console.log(v.length);for(var a=[i,f],n=0;n<a.length;n++){var u=a[n],l=u||{};console.log(l.nodeName,l.className,l.id)}console.log("edn bodyTrap ----------")}function _(){if(v.length===0){process.env.NODE_ENV!=="production"&&console.warn("React-Modal: Open instances > 0 expected");return}v[v.length-1].focusContent()}function m(a,n){!i&&!f&&(i=document.createElement("div"),i.setAttribute("data-react-modal-body-trap",""),i.style.position="absolute",i.style.opacity="0",i.setAttribute("tabindex","0"),i.addEventListener("focus",_),f=i.cloneNode(),f.addEventListener("focus",_)),v=n,v.length>0?(document.body.firstChild!==i&&document.body.insertBefore(i,document.body.firstChild),document.body.lastChild!==f&&document.body.appendChild(f)):(i.parentElement&&i.parentElement.removeChild(i),f.parentElement&&f.parentElement.removeChild(f))}return s.default.subscribe(m),j}var fe;function De(){return fe||(fe=1,(function(p,s){Object.defineProperty(s,"__esModule",{value:!0});var h=Object.assign||function(r){for(var o=1;o<arguments.length;o++){var g=arguments[o];for(var e in g)Object.prototype.hasOwnProperty.call(g,e)&&(r[e]=g[e])}return r},i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},f=(function(){function r(o,g){for(var e=0;e<g.length;e++){var c=g[e];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(o,c.key,c)}}return function(o,g,e){return g&&r(o.prototype,g),e&&r(o,e),o}})(),v=pe,E=X.requirePropTypes(),t=B(E),_=Me(),m=L(_),a=we(),n=B(a),u=me(),l=L(u),y=Re(),O=L(y),S=ee(),R=B(S),A=he(),x=B(A);Te();function L(r){if(r&&r.__esModule)return r;var o={};if(r!=null)for(var g in r)Object.prototype.hasOwnProperty.call(r,g)&&(o[g]=r[g]);return o.default=r,o}function B(r){return r&&r.__esModule?r:{default:r}}function F(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")}function K(r,o){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o&&(typeof o=="object"||typeof o=="function")?o:r}function $(r,o){if(typeof o!="function"&&o!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof o);r.prototype=Object.create(o&&o.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(r,o):r.__proto__=o)}var U={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},H=function(o){return o.code==="Tab"||o.keyCode===9},b=function(o){return o.code==="Escape"||o.keyCode===27},d=0,C=(function(r){$(o,r);function o(g){F(this,o);var e=K(this,(o.__proto__||Object.getPrototypeOf(o)).call(this,g));return e.setOverlayRef=function(c){e.overlay=c,e.props.overlayRef&&e.props.overlayRef(c)},e.setContentRef=function(c){e.content=c,e.props.contentRef&&e.props.contentRef(c)},e.afterClose=function(){var c=e.props,w=c.appElement,M=c.ariaHideApp,N=c.htmlOpenClassName,q=c.bodyOpenClassName,k=c.parentSelector,z=k&&k().ownerDocument||document;q&&O.remove(z.body,q),N&&O.remove(z.getElementsByTagName("html")[0],N),M&&d>0&&(d-=1,d===0&&l.show(w)),e.props.shouldFocusAfterRender&&(e.props.shouldReturnFocusAfterClose?(m.returnFocus(e.props.preventScroll),m.teardownScopedFocus()):m.popWithoutFocus()),e.props.onAfterClose&&e.props.onAfterClose(),x.default.deregister(e)},e.open=function(){e.beforeOpen(),e.state.afterOpen&&e.state.beforeClose?(clearTimeout(e.closeTimer),e.setState({beforeClose:!1})):(e.props.shouldFocusAfterRender&&(m.setupScopedFocus(e.node),m.markForFocusLater()),e.setState({isOpen:!0},function(){e.openAnimationFrame=requestAnimationFrame(function(){e.setState({afterOpen:!0}),e.props.isOpen&&e.props.onAfterOpen&&e.props.onAfterOpen({overlayEl:e.overlay,contentEl:e.content})})}))},e.close=function(){e.props.closeTimeoutMS>0?e.closeWithTimeout():e.closeWithoutTimeout()},e.focusContent=function(){return e.content&&!e.contentHasFocus()&&e.content.focus({preventScroll:!0})},e.closeWithTimeout=function(){var c=Date.now()+e.props.closeTimeoutMS;e.setState({beforeClose:!0,closesAt:c},function(){e.closeTimer=setTimeout(e.closeWithoutTimeout,e.state.closesAt-Date.now())})},e.closeWithoutTimeout=function(){e.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},e.afterClose)},e.handleKeyDown=function(c){H(c)&&(0,n.default)(e.content,c),e.props.shouldCloseOnEsc&&b(c)&&(c.stopPropagation(),e.requestClose(c))},e.handleOverlayOnClick=function(c){e.shouldClose===null&&(e.shouldClose=!0),e.shouldClose&&e.props.shouldCloseOnOverlayClick&&(e.ownerHandlesClose()?e.requestClose(c):e.focusContent()),e.shouldClose=null},e.handleContentOnMouseUp=function(){e.shouldClose=!1},e.handleOverlayOnMouseDown=function(c){!e.props.shouldCloseOnOverlayClick&&c.target==e.overlay&&c.preventDefault()},e.handleContentOnClick=function(){e.shouldClose=!1},e.handleContentOnMouseDown=function(){e.shouldClose=!1},e.requestClose=function(c){return e.ownerHandlesClose()&&e.props.onRequestClose(c)},e.ownerHandlesClose=function(){return e.props.onRequestClose},e.shouldBeClosed=function(){return!e.state.isOpen&&!e.state.beforeClose},e.contentHasFocus=function(){return document.activeElement===e.content||e.content.contains(document.activeElement)},e.buildClassName=function(c,w){var M=(typeof w>"u"?"undefined":i(w))==="object"?w:{base:U[c],afterOpen:U[c]+"--after-open",beforeClose:U[c]+"--before-close"},N=M.base;return e.state.afterOpen&&(N=N+" "+M.afterOpen),e.state.beforeClose&&(N=N+" "+M.beforeClose),typeof w=="string"&&w?N+" "+w:N},e.attributesFromObject=function(c,w){return Object.keys(w).reduce(function(M,N){return M[c+"-"+N]=w[N],M},{})},e.state={afterOpen:!1,beforeClose:!1},e.shouldClose=null,e.moveFromContentToOverlay=null,e}return f(o,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,c){process.env.NODE_ENV!=="production"&&(e.bodyOpenClassName!==this.props.bodyOpenClassName&&console.warn('React-Modal: "bodyOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.'),e.htmlOpenClassName!==this.props.htmlOpenClassName&&console.warn('React-Modal: "htmlOpenClassName" prop has been modified. This may cause unexpected behavior when multiple modals are open.')),this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!c.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,c=e.appElement,w=e.ariaHideApp,M=e.htmlOpenClassName,N=e.bodyOpenClassName,q=e.parentSelector,k=q&&q().ownerDocument||document;N&&O.add(k.body,N),M&&O.add(k.getElementsByTagName("html")[0],M),w&&(d+=1,l.hide(c)),x.default.register(this)}},{key:"render",value:function(){var e=this.props,c=e.id,w=e.className,M=e.overlayClassName,N=e.defaultStyles,q=e.children,k=w?{}:N.content,z=M?{}:N.overlay;if(this.shouldBeClosed())return null;var ge={ref:this.setOverlayRef,className:this.buildClassName("overlay",M),style:h({},z,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},_e=h({id:c,ref:this.setContentRef,style:h({},k,this.props.style.content),className:this.buildClassName("content",w),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",h({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),Ce=this.props.contentElement(_e,q);return this.props.overlayElement(ge,Ce)}}]),o})(v.Component);C.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},C.propTypes={isOpen:t.default.bool.isRequired,defaultStyles:t.default.shape({content:t.default.object,overlay:t.default.object}),style:t.default.shape({content:t.default.object,overlay:t.default.object}),className:t.default.oneOfType([t.default.string,t.default.object]),overlayClassName:t.default.oneOfType([t.default.string,t.default.object]),parentSelector:t.default.func,bodyOpenClassName:t.default.string,htmlOpenClassName:t.default.string,ariaHideApp:t.default.bool,appElement:t.default.oneOfType([t.default.instanceOf(R.default),t.default.instanceOf(S.SafeHTMLCollection),t.default.instanceOf(S.SafeNodeList),t.default.arrayOf(t.default.instanceOf(R.default))]),onAfterOpen:t.default.func,onAfterClose:t.default.func,onRequestClose:t.default.func,closeTimeoutMS:t.default.number,shouldFocusAfterRender:t.default.bool,shouldCloseOnOverlayClick:t.default.bool,shouldReturnFocusAfterClose:t.default.bool,preventScroll:t.default.bool,role:t.default.string,contentLabel:t.default.string,aria:t.default.object,data:t.default.object,children:t.default.node,shouldCloseOnEsc:t.default.bool,overlayRef:t.default.func,contentRef:t.default.func,id:t.default.string,overlayElement:t.default.func,contentElement:t.default.func,testId:t.default.string},s.default=C,p.exports=s.default})(G,G.exports)),G.exports}function ye(){var p=this.constructor.getDerivedStateFromProps(this.props,this.state);p!=null&&this.setState(p)}function be(p){function s(h){var i=this.constructor.getDerivedStateFromProps(p,h);return i??null}this.setState(s.bind(this))}function Oe(p,s){try{var h=this.props,i=this.state;this.props=p,this.state=s,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(h,i)}finally{this.props=h,this.state=i}}ye.__suppressDeprecationWarning=!0;be.__suppressDeprecationWarning=!0;Oe.__suppressDeprecationWarning=!0;function Ae(p){var s=p.prototype;if(!s||!s.isReactComponent)throw new Error("Can only polyfill class components");if(typeof p.getDerivedStateFromProps!="function"&&typeof s.getSnapshotBeforeUpdate!="function")return p;var h=null,i=null,f=null;if(typeof s.componentWillMount=="function"?h="componentWillMount":typeof s.UNSAFE_componentWillMount=="function"&&(h="UNSAFE_componentWillMount"),typeof s.componentWillReceiveProps=="function"?i="componentWillReceiveProps":typeof s.UNSAFE_componentWillReceiveProps=="function"&&(i="UNSAFE_componentWillReceiveProps"),typeof s.componentWillUpdate=="function"?f="componentWillUpdate":typeof s.UNSAFE_componentWillUpdate=="function"&&(f="UNSAFE_componentWillUpdate"),h!==null||i!==null||f!==null){var v=p.displayName||p.name,E=typeof p.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
25
|
-
|
|
26
|
-
`+v+" uses "+E+" but also contains the following legacy lifecycles:"+(h!==null?`
|
|
27
|
-
`+h:"")+(i!==null?`
|
|
28
|
-
`+i:"")+(f!==null?`
|
|
29
|
-
`+f:"")+`
|
|
30
|
-
|
|
31
|
-
The above lifecycles should be removed. Learn more about this warning here:
|
|
32
|
-
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof p.getDerivedStateFromProps=="function"&&(s.componentWillMount=ye,s.componentWillReceiveProps=be),typeof s.getSnapshotBeforeUpdate=="function"){if(typeof s.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");s.componentWillUpdate=Oe;var t=s.componentDidUpdate;s.componentDidUpdate=function(m,a,n){var u=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;t.call(this,m,a,u)}}return p}const Pe=Object.freeze(Object.defineProperty({__proto__:null,polyfill:Ae},Symbol.toStringTag,{value:"Module"})),Le=X.getAugmentedNamespace(Pe);var ce;function Fe(){if(ce)return W;ce=1,Object.defineProperty(W,"__esModule",{value:!0}),W.bodyOpenClassName=W.portalClassName=void 0;var p=Object.assign||function(b){for(var d=1;d<arguments.length;d++){var C=arguments[d];for(var r in C)Object.prototype.hasOwnProperty.call(C,r)&&(b[r]=C[r])}return b},s=(function(){function b(d,C){for(var r=0;r<C.length;r++){var o=C[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(d,o.key,o)}}return function(d,C,r){return C&&b(d.prototype,C),r&&b(d,r),d}})(),h=pe,i=S(h),f=Ee,v=S(f),E=X.requirePropTypes(),t=S(E),_=De(),m=S(_),a=me(),n=O(a),u=ee(),l=S(u),y=Le;function O(b){if(b&&b.__esModule)return b;var d={};if(b!=null)for(var C in b)Object.prototype.hasOwnProperty.call(b,C)&&(d[C]=b[C]);return d.default=b,d}function S(b){return b&&b.__esModule?b:{default:b}}function R(b,d){if(!(b instanceof d))throw new TypeError("Cannot call a class as a function")}function A(b,d){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:b}function x(b,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);b.prototype=Object.create(d&&d.prototype,{constructor:{value:b,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(b,d):b.__proto__=d)}var L=W.portalClassName="ReactModalPortal",B=W.bodyOpenClassName="ReactModal__Body--open",F=u.canUseDOM&&v.default.createPortal!==void 0,K=function(d){return document.createElement(d)},$=function(){return F?v.default.createPortal:v.default.unstable_renderSubtreeIntoContainer};function U(b){return b()}var H=(function(b){x(d,b);function d(){var C,r,o,g;R(this,d);for(var e=arguments.length,c=Array(e),w=0;w<e;w++)c[w]=arguments[w];return g=(r=(o=A(this,(C=d.__proto__||Object.getPrototypeOf(d)).call.apply(C,[this].concat(c))),o),o.removePortal=function(){!F&&v.default.unmountComponentAtNode(o.node);var M=U(o.props.parentSelector);M&&M.contains(o.node)?M.removeChild(o.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},o.portalRef=function(M){o.portal=M},o.renderPortal=function(M){var N=$(),q=N(o,i.default.createElement(m.default,p({defaultStyles:d.defaultStyles},M)),o.node);o.portalRef(q)},r),A(o,g)}return s(d,[{key:"componentDidMount",value:function(){if(u.canUseDOM){F||(this.node=K("div")),this.node.className=this.props.portalClassName;var r=U(this.props.parentSelector);r.appendChild(this.node),!F&&this.renderPortal(this.props)}}},{key:"getSnapshotBeforeUpdate",value:function(r){var o=U(r.parentSelector),g=U(this.props.parentSelector);return{prevParent:o,nextParent:g}}},{key:"componentDidUpdate",value:function(r,o,g){if(u.canUseDOM){var e=this.props,c=e.isOpen,w=e.portalClassName;r.portalClassName!==w&&(this.node.className=w);var M=g.prevParent,N=g.nextParent;N!==M&&(M.removeChild(this.node),N.appendChild(this.node)),!(!r.isOpen&&!c)&&!F&&this.renderPortal(this.props)}}},{key:"componentWillUnmount",value:function(){if(!(!u.canUseDOM||!this.node||!this.portal)){var r=this.portal.state,o=Date.now(),g=r.isOpen&&this.props.closeTimeoutMS&&(r.closesAt||o+this.props.closeTimeoutMS);g?(r.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,g-o)):this.removePortal()}}},{key:"render",value:function(){if(!u.canUseDOM||!F)return null;!this.node&&F&&(this.node=K("div"));var r=$();return r(i.default.createElement(m.default,p({ref:this.portalRef,defaultStyles:d.defaultStyles},this.props)),this.node)}}],[{key:"setAppElement",value:function(r){n.setElement(r)}}]),d})(h.Component);return H.propTypes={isOpen:t.default.bool.isRequired,style:t.default.shape({content:t.default.object,overlay:t.default.object}),portalClassName:t.default.string,bodyOpenClassName:t.default.string,htmlOpenClassName:t.default.string,className:t.default.oneOfType([t.default.string,t.default.shape({base:t.default.string.isRequired,afterOpen:t.default.string.isRequired,beforeClose:t.default.string.isRequired})]),overlayClassName:t.default.oneOfType([t.default.string,t.default.shape({base:t.default.string.isRequired,afterOpen:t.default.string.isRequired,beforeClose:t.default.string.isRequired})]),appElement:t.default.oneOfType([t.default.instanceOf(l.default),t.default.instanceOf(u.SafeHTMLCollection),t.default.instanceOf(u.SafeNodeList),t.default.arrayOf(t.default.instanceOf(l.default))]),onAfterOpen:t.default.func,onRequestClose:t.default.func,closeTimeoutMS:t.default.number,ariaHideApp:t.default.bool,shouldFocusAfterRender:t.default.bool,shouldCloseOnOverlayClick:t.default.bool,shouldReturnFocusAfterClose:t.default.bool,preventScroll:t.default.bool,parentSelector:t.default.func,aria:t.default.object,data:t.default.object,role:t.default.string,contentLabel:t.default.string,shouldCloseOnEsc:t.default.bool,overlayRef:t.default.func,contentRef:t.default.func,id:t.default.string,overlayElement:t.default.func,contentElement:t.default.func},H.defaultProps={isOpen:!1,portalClassName:L,bodyOpenClassName:B,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(d,C){return i.default.createElement("div",d,C)},contentElement:function(d,C){return i.default.createElement("div",d,C)}},H.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,y.polyfill)(H),process.env.NODE_ENV!=="production"&&(H.setCreateHTMLElement=function(b){return K=b}),W.default=H,W}var de;function qe(){return de||(de=1,(function(p,s){Object.defineProperty(s,"__esModule",{value:!0});var h=Fe(),i=f(h);function f(v){return v&&v.__esModule?v:{default:v}}s.default=i.default,p.exports=s.default})(Y,Y.exports)),Y.exports}var xe=qe();const Ue=X.getDefaultExportFromCjs(xe);exports.Modal=Ue;
|