@openmrs/esm-active-visits-app 3.1.1-pre.611 → 3.1.1-pre.619

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/150.js CHANGED
@@ -1,2 +1,2 @@
1
- (self.webpackChunk_openmrs_esm_active_visits_app=self.webpackChunk_openmrs_esm_active_visits_app||[]).push([[150],{150:(e,s,i)=>{"use strict";i.r(s),i.d(s,{backendDependencies:()=>a,frontendDependencies:()=>o,importTranslation:()=>r,setupOpenMRS:()=>c});var t=i(3066),n={activeVisits:{pageSize:{_type:t.Type.Number,_description:"Count of active visits to be shown in a single page.",_default:10},pageSizes:{_type:t.Type.Array,_description:"Customizable page sizes that user can choose",_default:[10,20,50]}}},r=i(3979),a={"webservices.rest":"^2.2.0"},o={"@openmrs/esm-framework":"^3.2.1-pre.1127"};function c(){var e="@openmrs/esm-active-visits-app",s={featureName:"active-visits",moduleName:e};return(0,t.defineConfigSchema)(e,n),{extensions:[{id:"active-visits-widget",slot:"homepage-widgets-slot",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(403),i.e(547),i.e(902),i.e(56),i.e(91)]).then(i.bind(i,6091))}),s)},{id:"visit-summary-widget",slot:"visit-summary-slot",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(403),i.e(260),i.e(902),i.e(56),i.e(920)]).then(i.bind(i,9920))}),s)}]}}},3979:(e,s,i)=>{var t={"./en.json":[3574,574],"./es.json":[8319,319]};function n(e){if(!i.o(t,e))return Promise.resolve().then((()=>{var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}));var s=t[e],n=s[0];return i.e(s[1]).then((()=>i(n)))}n.keys=()=>Object.keys(t),n.id=3979,e.exports=n}}]);
1
+ (self.webpackChunk_openmrs_esm_active_visits_app=self.webpackChunk_openmrs_esm_active_visits_app||[]).push([[150],{150:(e,s,i)=>{"use strict";i.r(s),i.d(s,{backendDependencies:()=>a,frontendDependencies:()=>o,importTranslation:()=>r,setupOpenMRS:()=>c});var t=i(3066),n={activeVisits:{pageSize:{_type:t.Type.Number,_description:"Count of active visits to be shown in a single page.",_default:10},pageSizes:{_type:t.Type.Array,_description:"Customizable page sizes that user can choose",_default:[10,20,50]}}},r=i(3979),a={"webservices.rest":"^2.2.0"},o={"@openmrs/esm-framework":"^3.2.1-pre.1163"};function c(){var e="@openmrs/esm-active-visits-app",s={featureName:"active-visits",moduleName:e};return(0,t.defineConfigSchema)(e,n),{extensions:[{id:"active-visits-widget",slot:"homepage-widgets-slot",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(403),i.e(614),i.e(902),i.e(56),i.e(91)]).then(i.bind(i,6091))}),s)},{id:"visit-summary-widget",slot:"visit-summary-slot",load:(0,t.getAsyncLifecycle)((function(){return Promise.all([i.e(403),i.e(260),i.e(902),i.e(56),i.e(920)]).then(i.bind(i,9920))}),s)}]}}},3979:(e,s,i)=>{var t={"./en.json":[3574,574],"./es.json":[8319,319]};function n(e){if(!i.o(t,e))return Promise.resolve().then((()=>{var s=new Error("Cannot find module '"+e+"'");throw s.code="MODULE_NOT_FOUND",s}));var s=t[e],n=s[0];return i.e(s[1]).then((()=>i(n)))}n.keys=()=>Object.keys(t),n.id=3979,e.exports=n}}]);
2
2
  //# sourceMappingURL=150.js.map
package/dist/614.js ADDED
@@ -0,0 +1,2 @@
1
+ (self.webpackChunk_openmrs_esm_active_visits_app=self.webpackChunk_openmrs_esm_active_visits_app||[]).push([[614],{182:(e,t,n)=>{"use strict";n.d(t,{Z:()=>N});var a,i,l=n(7896),c=n(2159),o=n(9902),r=n.n(o),s=n(3980),d=n.n(s),p=n(2779),u=n.n(p),g=n(5495),h=["children"],m=r().forwardRef((function(e,t){var n=e.children,l=(0,g._)(e,h);return r().createElement(g.I,(0,g.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},l),a||(a=r().createElement("path",{d:"M8,1C4.1,1,1,4.1,1,8s3.1,7,7,7s7-3.1,7-7S11.9,1,8,1z M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z"})),i||(i=r().createElement("path",{fill:"none",d:"M10.7,11.5L4.5,5.3l0.8-0.8l6.2,6.2L10.7,11.5z","data-icon-path":"inner-path",opacity:"0"})),n)})),f=n(8358),v=n(3597),b=n(6666),x=n(3182),Z=n(330),T=["id","active","className","withOverlay","small","description"],w=(0,x.Z)();function y(e){var t,n,a=e.id,i=e.active,s=e.className,d=e.withOverlay,p=e.small,g=e.description,h=(0,c.Z)(e,T),m=(0,Z.A)(),f=(0,o.useRef)(w()).current,v=u()(s,(t={},(0,b.Z)(t,"".concat(m,"--loading"),!0),(0,b.Z)(t,"".concat(m,"--loading--small"),p),(0,b.Z)(t,"".concat(m,"--loading--stop"),!i),t)),x=u()((n={},(0,b.Z)(n,"".concat(m,"--loading-overlay"),!0),(0,b.Z)(n,"".concat(m,"--loading-overlay--stop"),!i),n)),y=a||"loading-id-".concat(f),C=r().createElement("div",(0,l.Z)({},h,{"aria-atomic":"true","aria-labelledby":y,"aria-live":i?"assertive":"off",className:v}),r().createElement("label",{id:y,className:"".concat(m,"--visually-hidden")},g),r().createElement("svg",{className:"".concat(m,"--loading__svg"),viewBox:"0 0 100 100"},r().createElement("title",null,g),p?r().createElement("circle",{className:"".concat(m,"--loading__background"),cx:"50%",cy:"50%",r:"44"}):null,r().createElement("circle",{className:"".concat(m,"--loading__stroke"),cx:"50%",cy:"50%",r:"44"})));return d?r().createElement("div",{className:x},C):C}y.propTypes={active:d().bool,className:d().string,description:d().string,id:d().string,small:d().bool,withOverlay:d().bool},y.defaultProps={active:!0,withOverlay:!0,small:!1,description:"Active loading indicator"};const C=y;var k=["className","success","status","iconDescription","description","onSuccess","successDelay"];function N(e){var t=e.className,n=e.success,a=e.status,i=void 0===a?n?"finished":"active":a,o=e.iconDescription,s=e.description,d=e.onSuccess,p=e.successDelay,g=(0,c.Z)(e,k),h=(0,Z.A)(),v=u()("".concat(h,"--inline-loading"),t),b=r().createElement("div",{className:"".concat(h,"--inline-loading__text")},s),x="error"===i?r().createElement(m,{className:"".concat(h,"--inline-loading--error")},r().createElement("title",null,o)):"finished"===i?(setTimeout((function(){d&&d()}),p),r().createElement(f.Y3p,{className:"".concat(h,"--inline-loading__checkmark-container")},r().createElement("title",null,o))):"inactive"===i||"active"===i?r().createElement(C,{small:!0,description:o,withOverlay:!1,active:"active"===i}):void 0,T=x&&r().createElement("div",{className:"".concat(h,"--inline-loading__animation")},x);return r().createElement("div",(0,l.Z)({className:v},g,{"aria-live":"assertive"}),T,s&&b)}N.propTypes={className:d().string,description:d().node,iconDescription:d().string,onSuccess:d().func,status:d().oneOf(["inactive","active","finished","error"]),success:(0,v.Z)(d().bool,'\nThe prop `success` for InlineLoading has been deprecated in favor of `status`. Please use `status="finished"` instead.'),successDelay:d().number},N.defaultProps={successDelay:1500}},448:(e,t,n)=>{"use strict";n.d(t,{Z:()=>le});var a,i,l,c,o,r,s,d=n(145),p=n(7896),u=n(2159),g=n(9249),h=n(7371),m=n(753),f=n(8106),v=n(1987),b=n(5058),x=n(6666),Z=n(6522),T=n(3980),w=n.n(T),y=n(9902),C=n.n(y),k=n(2779),N=n.n(k),E=n(5495),_=["children"],I=["children"],S=C().forwardRef((function(e,t){var n=e.children,i=(0,E._)(e,_);return C().createElement(E.I,(0,E.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),a||(a=C().createElement("path",{d:"M20 24L10 16 20 8z"})),n)})),D=C().forwardRef((function(e,t){var n=e.children,a=(0,E._)(e,I);return C().createElement(E.I,(0,E.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},a),i||(i=C().createElement("path",{d:"M12 8L22 16 12 24z"})),n)})),P=n(8358),z=["children"],R=["children"],M=C().forwardRef((function(e,t){var n=e.children,a=(0,E._)(e,z);return C().createElement(E.I,(0,E.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},a),l||(l=C().createElement("path",{fill:"none",d:"M16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Zm-1.125-5h2.25V12h-2.25Z","data-icon-path":"inner-path"})),c||(c=C().createElement("path",{d:"M16.002,6.1714h-.004L4.6487,27.9966,4.6506,28H27.3494l.0019-.0034ZM14.875,12h2.25v9h-2.25ZM16,26a1.5,1.5,0,1,1,1.5-1.5A1.5,1.5,0,0,1,16,26Z"})),o||(o=C().createElement("path",{d:"M29,30H3a1,1,0,0,1-.8872-1.4614l13-25a1,1,0,0,1,1.7744,0l13,25A1,1,0,0,1,29,30ZM4.6507,28H27.3493l.002-.0033L16.002,6.1714h-.004L4.6487,27.9967Z"})),n)})),K=C().forwardRef((function(e,t){var n=e.children,a=(0,E._)(e,R);return C().createElement(E.I,(0,E.a)({width:16,height:16,viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},a),r||(r=C().createElement("path",{d:"M8,1C4.2,1,1,4.2,1,8s3.2,7,7,7s7-3.1,7-7S11.9,1,8,1z M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2\tc-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8c0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z"})),s||(s=C().createElement("path",{d:"M7.5,4h1v5h-1C7.5,9,7.5,4,7.5,4z M8,12.2c-0.4,0-0.8-0.4-0.8-0.8s0.3-0.8,0.8-0.8\tc0.4,0,0.8,0.4,0.8,0.8S8.4,12.2,8,12.2z","data-icon-path":"inner-path",opacity:"0"})),n)})),L=n(3597),O=n(309),A=n(330),B=["className","id","inline","labelText","disabled","children","noLabel","iconDescription","hideLabel","invalid","invalidText","helperText","light","size","warn","warnText"],H=C().forwardRef((function(e,t){var n,a,i,l=e.className,c=e.id,o=e.inline,r=e.labelText,s=e.disabled,d=e.children,g=e.noLabel,h=(e.iconDescription,e.hideLabel),m=e.invalid,f=e.invalidText,v=e.helperText,b=e.light,Z=e.size,T=e.warn,w=e.warnText,y=(0,u.Z)(e,B),k=(0,A.A)(),E=(0,O.ye)("enable-v11-release"),_=N()((n={},(0,x.Z)(n,"".concat(k,"--select"),!0),(0,x.Z)(n,"".concat(k,"--select--inline"),o),(0,x.Z)(n,"".concat(k,"--select--light"),b),(0,x.Z)(n,"".concat(k,"--select--invalid"),m),(0,x.Z)(n,"".concat(k,"--select--disabled"),s),(0,x.Z)(n,"".concat(k,"--select--warning"),T),n),[E?null:l]),I=N()("".concat(k,"--label"),(a={},(0,x.Z)(a,"".concat(k,"--visually-hidden"),h),(0,x.Z)(a,"".concat(k,"--label--disabled"),s),a)),S=N()((i={},(0,x.Z)(i,"".concat(k,"--select-input"),!0),(0,x.Z)(i,"".concat(k,"--select-input--").concat(Z),Z),i)),D="".concat(c,"-error-msg"),z=m?f:T?w:void 0,R=m||T?C().createElement("div",{className:"".concat(k,"--form-requirement"),id:D},z):null,L=N()("".concat(k,"--form__helper-text"),(0,x.Z)({},"".concat(k,"--form__helper-text--disabled"),s)),H=v?C().createElement("div",{className:L},v):null,U={};m&&(U["aria-describedby"]=D);var j=C().createElement(C().Fragment,null,C().createElement("select",(0,p.Z)({},y,U,{id:c,className:S,disabled:s||void 0,"aria-invalid":m||void 0,ref:t}),d),C().createElement(P.cRw,{className:"".concat(k,"--select__arrow")}),m&&C().createElement(K,{className:"".concat(k,"--select__invalid-icon")}),!m&&T&&C().createElement(M,{className:"".concat(k,"--select__invalid-icon ").concat(k,"--select__invalid-icon--warning")}));return C().createElement("div",{className:E?N()("".concat(k,"--form-item"),l):"".concat(k,"--form-item")},C().createElement("div",{className:_},!g&&C().createElement("label",{htmlFor:c,className:I},r),o&&C().createElement("div",{className:"".concat(k,"--select-input--inline__wrapper")},C().createElement("div",{className:"".concat(k,"--select-input__wrapper"),"data-invalid":m||null},j),R),!o&&C().createElement("div",{className:"".concat(k,"--select-input__wrapper"),"data-invalid":m||null},j),!o&&R?R:H))}));H.displayName="Select",H.propTypes={children:w().node,className:w().string,defaultValue:w().any,disabled:w().bool,helperText:w().node,hideLabel:w().bool,iconDescription:(0,L.Z)(w().string,"The `iconDescription` prop for `Select` is no longer needed and has been deprecated. It will be moved in the next major release."),id:w().string.isRequired,inline:w().bool,invalid:w().bool,invalidText:w().node,labelText:w().node,light:w().bool,noLabel:w().bool,onChange:w().func,size:d.am("enable-v11-release")?w().oneOf(["sm","md","lg"]):w().oneOf(["sm","md","lg","xl"]),warn:w().bool,warnText:w().node},H.defaultProps={disabled:!1,labelText:"Select",inline:!1,invalid:!1,invalidText:"",helperText:"",light:!1};const U=H;var j=["className","value","disabled","hidden","text"],F=function(e){var t,n=e.className,a=e.value,i=e.disabled,l=e.hidden,c=e.text,o=(0,u.Z)(e,j),r=(0,A.A)(),s=N()((t={},(0,x.Z)(t,"".concat(r,"--select-option"),!0),(0,x.Z)(t,n,n),t));return C().createElement("option",(0,p.Z)({},o,{className:s,value:a,disabled:i,hidden:l}),c)};F.propTypes={className:w().string,disabled:w().bool,hidden:w().bool,text:w().string.isRequired,value:w().any.isRequired},F.defaultProps={disabled:!1,hidden:!1,value:"",text:""};const V=F;function q(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;if(e===t)return!0;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}var Y=n(7030),W=["backwardText","className","forwardText","id","itemsPerPageText","itemRangeText","pageRangeText","pageSize","pageSizes","itemText","pageText","pageNumberText","pagesUnknown","isLastPage","disabled","pageInputDisabled","pageSizeInputDisabled","totalItems","onChange","page","size","forwardedRef"];var G=0,J=function(e){return"object"===(0,Z.Z)(e[0])&&null!==e[0]?e:e.map((function(e){return{text:e,value:e}}))},Q=function(e){(0,f.Z)(i,e);var t,n,a=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,a=(0,b.Z)(t);if(n){var i=(0,b.Z)(this).constructor;e=Reflect.construct(a,arguments,i)}else e=a.apply(this,arguments);return(0,v.Z)(this,e)});function i(e){var t;(0,g.Z)(this,i),t=a.call(this,e),(0,x.Z)((0,m.Z)(t),"handleSizeChange",(function(e){var n=Number(e.target.value);t.setState({pageSize:n,page:1}),t.props.onChange({page:1,pageSize:n})})),(0,x.Z)((0,m.Z)(t),"handlePageChange",(function(e){t.setState({page:e.target.value})})),(0,x.Z)((0,m.Z)(t),"handlePageInputChange",(function(e){var n=Number(e.target.value);n>0&&n<=Math.max(Math.ceil(t.props.totalItems/t.state.pageSize),1)&&(t.setState({page:n}),t.props.onChange({page:n,pageSize:t.state.pageSize}))})),(0,x.Z)((0,m.Z)(t),"incrementPage",(function(){var e=t.state.page+1;t.setState({page:e}),t.props.onChange({page:e,pageSize:t.state.pageSize})})),(0,x.Z)((0,m.Z)(t),"decrementPage",(function(){var e=t.state.page-1;t.setState({page:e}),t.props.onChange({page:e,pageSize:t.state.pageSize})})),(0,x.Z)((0,m.Z)(t),"renderSelectItems",(function(e){for(var t=1,n=[];t<=e;)n.push(C().createElement(V,{key:t,value:t,text:String(t)})),t++;return n}));var n=t.props,l=n.pageSizes,c=n.page,o=n.pageSize,r=J(l);return t.state={page:c,pageSize:o&&r.some((function(e){return o===e.value}))?o:r[0].value,prevPageSizes:r,prevPage:c,prevPageSize:o},t.uniqueId=++G,t}return(0,h.Z)(i,[{key:"render",value:function(){var e=this,t=this.props,n=t.backwardText,a=t.className,i=t.forwardText,l=t.id,c=t.itemsPerPageText,o=t.itemRangeText,r=t.pageRangeText,s=(t.pageSize,t.pageSizes),d=t.itemText,g=t.pageText,h=(t.pageNumberText,t.pagesUnknown),m=t.isLastPage,f=t.disabled,v=t.pageInputDisabled,b=t.pageSizeInputDisabled,Z=t.totalItems,T=(t.onChange,t.page,t.size),w=t.forwardedRef,y=(0,u.Z)(t,W);return C().createElement(A.T.Consumer,null,(function(t){var u=N()("".concat(t,"--pagination"),a,(0,x.Z)({},"".concat(t,"--pagination--").concat(T),T)),k=l||e.uniqueId,E=e.state,_=E.page,I=E.pageSize,P=Math.max(Math.ceil(Z/I),1),z=f||1===_,R=N()("".concat(t,"--pagination__button"),"".concat(t,"--pagination__button--backward"),(0,x.Z)({},"".concat(t,"--pagination__button--no-index"),z)),M=f||_===P,K=N()("".concat(t,"--pagination__button"),"".concat(t,"--pagination__button--forward"),(0,x.Z)({},"".concat(t,"--pagination__button--no-index"),M)),L=e.renderSelectItems(P),O=J(s);return C().createElement("div",(0,p.Z)({className:u,ref:w},y),C().createElement("div",{className:"".concat(t,"--pagination__left")},C().createElement("label",{id:"".concat(t,"-pagination-select-").concat(k,"-count-label"),className:"".concat(t,"--pagination__text"),htmlFor:"".concat(t,"-pagination-select-").concat(k)},c),C().createElement(U,{id:"".concat(t,"-pagination-select-").concat(k),className:"".concat(t,"--select__item-count"),labelText:"",hideLabel:!0,noLabel:!0,inline:!0,onChange:e.handleSizeChange,disabled:b||f,value:I},O.map((function(e){return C().createElement(V,{key:e.value,value:e.value,text:String(e.text)})}))),C().createElement("span",{className:"".concat(t,"--pagination__text ").concat(t,"--pagination__items-count")},h?d(I*(_-1)+1,_*I):o(Math.min(I*(_-1)+1,Z),Math.min(_*I,Z),Z))),C().createElement("div",{className:"".concat(t,"--pagination__right")},C().createElement(U,{id:"".concat(t,"-pagination-select-").concat(k,"-right"),className:"".concat(t,"--select__page-number"),labelText:"Page number, of ".concat(P," pages"),inline:!0,hideLabel:!0,onChange:e.handlePageInputChange,value:_,disabled:v||f},L),C().createElement("span",{className:"".concat(t,"--pagination__text")},h?g(_):r(_,P)),C().createElement("div",{className:"".concat(t,"--pagination__control-buttons")},C().createElement(Y.Z,{kind:"ghost",className:R,hasIconOnly:!0,renderIcon:S,iconDescription:n,tooltipAlignment:"center",tooltipPosition:"top",onClick:e.decrementPage,disabled:z}),C().createElement(Y.Z,{kind:"ghost",className:K,hasIconOnly:!0,renderIcon:D,iconDescription:i,tooltipAlignment:"end",tooltipPosition:"top",onClick:e.incrementPage,disabled:M||m}))))}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.pageSizes,a=e.page,i=e.pageSize,l=t.prevPageSizes,c=t.prevPage,o=t.prevPageSize,r=t.page,s=t.pageSize,d=J(n),p=!q(d.map((function(e){return e.value})),l.map((function(e){return e.value})));p&&!d.some((function(e){return i===e.value}))&&(i=d[0].value);var u=a!==c,g=i!==o;return p||u||g?{page:(g?1:u&&a)||r,pageSize:g?i:s,prevPageSizes:d,prevPage:a,prevPageSize:i}:null}}]),i}(y.Component);(0,x.Z)(Q,"propTypes",{backwardText:w().string,className:w().string,disabled:w().bool,forwardText:w().string,id:w().oneOfType([w().string,w().number]),isLastPage:w().bool,itemRangeText:w().func,itemText:w().func,itemsPerPageText:w().string,onChange:w().func,page:w().number,pageInputDisabled:w().bool,pageNumberText:w().string,pageRangeText:w().func,pageSize:w().number,pageSizeInputDisabled:w().bool,pageSizes:w().oneOfType([w().arrayOf(w().number),w().arrayOf(w().shape({text:w().text,value:w().number}))]).isRequired,pageText:w().func,pagesUnknown:w().bool,size:w().oneOf(["sm","md","lg"]),totalItems:w().number}),(0,x.Z)(Q,"defaultProps",{backwardText:"Previous page",itemRangeText:function(e,t,n){return"".concat(e,"–").concat(t," of ").concat(n," items")},forwardText:"Next page",itemsPerPageText:"Items per page:",pageNumberText:"Page Number",pageRangeText:function(e,t){return"of ".concat(t," ").concat(1===t?"page":"pages")},disabled:!1,page:1,pagesUnknown:!1,isLastPage:!1,itemText:function(e,t){return"".concat(e,"–").concat(t," items")},pageText:function(e){return"page ".concat(e)}});var X=n(2867),$=n(7304),ee=["backwardText","className","disabled","forwardText","id","isLastPage","itemText","itemRangeText","itemsPerPageText","onChange","pageNumberText","pageRangeText","page","pageInputDisabled","pageSize","pageSizeInputDisabled","pageSizes","pageText","pagesUnknown","size","totalItems"];function te(e){return"object"===(0,Z.Z)(e[0])&&null!==e[0]?e:e.map((function(e){return{text:e,value:e}}))}function ne(e,t){return t&&e.find((function(e){return t===e.value}))?t:e[0].value}var ae=C().forwardRef((function(e,t){var n,a,i,l=e.backwardText,c=void 0===l?"Previous page":l,o=e.className,r=e.disabled,s=void 0!==r&&r,d=e.forwardText,g=void 0===d?"Next page":d,h=e.id,m=e.isLastPage,f=void 0!==m&&m,v=e.itemText,b=void 0===v?function(e,t){return"".concat(e,"–").concat(t," items")}:v,Z=e.itemRangeText,T=void 0===Z?function(e,t,n){return"".concat(e,"–").concat(t," of ").concat(n," items")}:Z,w=e.itemsPerPageText,k=void 0===w?"Items per page:":w,E=e.onChange,_=(e.pageNumberText,e.pageRangeText),I=void 0===_?function(e,t){return"of ".concat(t," ").concat(1===t?"page":"pages")}:_,P=e.page,z=void 0===P?1:P,R=e.pageInputDisabled,M=e.pageSize,K=e.pageSizeInputDisabled,L=e.pageSizes,O=e.pageText,B=void 0===O?function(e){return"page ".concat(e)}:O,H=e.pagesUnknown,j=void 0!==H&&H,F=e.size,W=e.totalItems,G=(0,u.Z)(e,ee),J=(0,A.A)(),Q=(0,$.E)(h),ae=(0,y.useState)((function(){return te(L)})),ie=(0,X.Z)(ae,2),le=ie[0],ce=ie[1],oe=(0,y.useState)(L),re=(0,X.Z)(oe,2),se=re[0],de=re[1],pe=(0,y.useState)(z),ue=(0,X.Z)(pe,2),ge=ue[0],he=ue[1],me=(0,y.useState)(z),fe=(0,X.Z)(me,2),ve=fe[0],be=fe[1],xe=(0,y.useState)((function(){return ne(le,M)})),Ze=(0,X.Z)(xe,2),Te=Ze[0],we=Ze[1],ye=(0,y.useState)(M),Ce=(0,X.Z)(ye,2),ke=Ce[0],Ne=Ce[1],Ee=N()((n={},(0,x.Z)(n,"".concat(J,"--pagination"),!0),(0,x.Z)(n,"".concat(J,"--pagination--").concat(F),F),(0,x.Z)(n,o,!!o),n)),_e=Math.max(Math.ceil(W/Te),1),Ie=s||1===ge,Se=N()((a={},(0,x.Z)(a,"".concat(J,"--pagination__button"),!0),(0,x.Z)(a,"".concat(J,"--pagination__button--backward"),!0),(0,x.Z)(a,"".concat(J,"--pagination__button--no-index"),Ie),a)),De=s||ge===_e,Pe=N()((i={},(0,x.Z)(i,"".concat(J,"--pagination__button"),!0),(0,x.Z)(i,"".concat(J,"--pagination__button--forward"),!0),(0,x.Z)(i,"".concat(J,"--pagination__button--no-index"),De),i)),ze=function(e){for(var t=1,n=[];t<=e;)n.push(C().createElement(V,{key:t,value:t,text:String(t)})),t++;return n}(_e);if(z!==ve&&(he(z),be(z)),M!==ke&&(we(ne(le,M)),Ne(M)),!q(L,se)){var Re=te(L),Me=Re.find((function(e){return e.value===Te}));Me||he(1),ce(Re),de(L)}return C().createElement("div",(0,p.Z)({className:Ee,ref:t},G),C().createElement("div",{className:"".concat(J,"--pagination__left")},C().createElement("label",{id:"".concat(J,"-pagination-select-").concat(Q,"-count-label"),className:"".concat(J,"--pagination__text"),htmlFor:"".concat(J,"-pagination-select-").concat(Q)},k),C().createElement(U,{id:"".concat(J,"-pagination-select-").concat(Q),className:"".concat(J,"--select__item-count"),labelText:"",hideLabel:!0,noLabel:!0,inline:!0,onChange:function(e){var t={pageSize:Number(e.target.value),page:1};he(t.page),we(t.pageSize),E&&E(t)},disabled:K||s,value:Te},le.map((function(e){return C().createElement(V,{key:e.value,value:e.value,text:String(e.text)})}))),C().createElement("span",{className:"".concat(J,"--pagination__text ").concat(J,"--pagination__items-count")},j?b(Te*(ge-1)+1,ge*Te):T(Math.min(Te*(ge-1)+1,W),Math.min(ge*Te,W),W))),C().createElement("div",{className:"".concat(J,"--pagination__right")},C().createElement(U,{id:"".concat(J,"-pagination-select-").concat(Q,"-right"),className:"".concat(J,"--select__page-number"),labelText:"Page number, of ".concat(_e," pages"),inline:!0,hideLabel:!0,onChange:function(e){var t=Number(e.target.value);t>0&&t<=Math.max(Math.ceil(W/Te),1)&&(he(t),E&&E({page:t,pageSize:Te}))},value:ge,disabled:R||s},ze),C().createElement("span",{className:"".concat(J,"--pagination__text")},j?B(ge):I(ge,_e)),C().createElement("div",{className:"".concat(J,"--pagination__control-buttons")},C().createElement(Y.Z,{kind:"ghost",className:Se,hasIconOnly:!0,renderIcon:S,iconDescription:c,tooltipAlignment:"center",tooltipPosition:"top",onClick:function(){var e=ge-1;he(e),E&&E({page:e,pageSize:Te})},disabled:Ie}),C().createElement(Y.Z,{kind:"ghost",className:Pe,hasIconOnly:!0,renderIcon:D,iconDescription:g,tooltipAlignment:"end",tooltipPosition:"top",onClick:function(){var e=ge+1;he(e),E&&E({page:e,pageSize:Te})},disabled:De||f}))))}));ae.propTypes={backwardText:w().string,className:w().string,disabled:w().bool,forwardText:w().string,id:w().oneOfType([w().string,w().number]),isLastPage:w().bool,itemRangeText:w().func,itemText:w().func,itemsPerPageText:w().string,onChange:w().func,page:w().number,pageInputDisabled:w().bool,pageNumberText:w().string,pageRangeText:w().func,pageSize:w().number,pageSizeInputDisabled:w().bool,pageSizes:w().oneOfType([w().arrayOf(w().number),w().arrayOf(w().shape({text:w().text,value:w().number}))]).isRequired,pageText:w().func,pagesUnknown:w().bool,size:w().oneOf(["sm","md","lg"]),totalItems:w().number};const ie=ae,le=d.am("enable-v11-release")?ie:Q},8306:(e,t,n)=>{"use strict";n.d(t,{n9:()=>le});var a,i,l,c=n(145),o=n(2867),r=n(7896),s=n(6666),d=n(2159),p=n(9902),u=n.n(p),g=n(3980),h=n.n(g),m=n(2779),f=n.n(m),v=n(5495),b=["children"],x=["children"],Z=u().forwardRef((function(e,t){var n=e.children,i=(0,v._)(e,b);return u().createElement(v.I,(0,v.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},i),a||(a=u().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM6,26V6H26V26Z"})),n)})),T=u().forwardRef((function(e,t){var n=e.children,a=(0,v._)(e,x);return u().createElement(v.I,(0,v.a)({width:16,height:16,viewBox:"0 0 32 32",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",ref:t},a),i||(i=u().createElement("path",{d:"M26,4H6A2,2,0,0,0,4,6V26a2,2,0,0,0,2,2H26a2,2,0,0,0,2-2V6A2,2,0,0,0,26,4ZM14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z"})),l||(l=u().createElement("path",{fill:"none",d:"M14,21.5,9,16.5427,10.5908,15,14,18.3456,21.4087,11l1.5918,1.5772Z","data-icon-path":"inner-path"})),n)})),w=n(8358),y=n(330),C=["children","className","href","disabled","inline","visited","renderIcon","size"],k=u().forwardRef((function(e,t){var n,a=e.children,i=e.className,l=e.href,c=e.disabled,o=e.inline,p=e.visited,g=e.renderIcon,h=e.size,m=(0,d.Z)(e,C),v=(0,y.A)(),b={className:f()("".concat(v,"--link"),i,(n={},(0,s.Z)(n,"".concat(v,"--link--disabled"),c),(0,s.Z)(n,"".concat(v,"--link--inline"),o),(0,s.Z)(n,"".concat(v,"--link--visited"),p),(0,s.Z)(n,"".concat(v,"--link--").concat(h),h),n)),rel:"_blank"===m.target?"noopener":null};return c?(b.role="link",b["aria-disabled"]=!0):b.href=l,u().createElement("a",(0,r.Z)({ref:t},b,m),a,!o&&g&&u().createElement("div",{className:"".concat(v,"--link__icon")},u().createElement(g,null)))}));k.displayName="Link",k.propTypes={children:h().node,className:h().string,disabled:h().bool,href:h().string,inline:h().bool,renderIcon:h().oneOfType([h().func,h().object]),size:h().oneOf(["sm","md","lg"]),visited:h().bool};const N=k;var E=n(4509),_=n(4817),I=n(3597),S=n(3834),D=n(1223),P=["children","className","light"],z=["children","className","clicked","handleClick","handleKeyDown","href","light","onClick","onKeyDown"],R=["children","className","disabled","handleClick","handleKeyDown","iconDescription","id","light","name","onClick","onChange","onKeyDown","selected","tabIndex","title","value"],M=["tabIndex","className","children","expanded","tileMaxHeight","tilePadding","onClick","onKeyUp","tileCollapsedIconText","tileExpandedIconText","tileCollapsedLabel","tileExpandedLabel","onBeforeClick","light"],K=u().forwardRef((function(e,t){var n=e.children,a=e.className,i=e.light,l=void 0!==i&&i,c=(0,d.Z)(e,P),o=(0,y.A)(),p=f()("".concat(o,"--tile"),(0,s.Z)({},"".concat(o,"--tile--light"),l),a);return u().createElement("div",(0,r.Z)({className:p,ref:t},c),n)}));K.displayName="Tile",K.propTypes={children:h().node,className:h().string,light:(0,I.Z)(h().bool,"The `light` prop for `Tile` is no longer needed and has been deprecated. It will be removed in the next major release. Use the Layer component instead.")};var L=u().forwardRef((function(e,t){var n,a=e.children,i=e.className,l=e.clicked,c=void 0!==l&&l,g=e.handleClick,h=e.handleKeyDown,m=e.href,v=e.light,b=void 0!==v&&v,x=e.onClick,Z=void 0===x?function(){}:x,T=e.onKeyDown,w=void 0===T?function(){}:T,C=(0,d.Z)(e,z),k=(0,y.A)(),I=f()("".concat(k,"--tile"),"".concat(k,"--tile--clickable"),(n={},(0,s.Z)(n,"".concat(k,"--tile--is-clicked"),c),(0,s.Z)(n,"".concat(k,"--tile--light"),b),n),i),S=(0,p.useState)(c),D=(0,o.Z)(S,2),P=D[0],R=D[1],M=g||Z,K=h||w;return u().createElement(N,(0,r.Z)({className:I,href:m,onClick:function(e){e.persist(),R(!P),M(e)},onKeyDown:function(e){e.persist(),(0,E.wB)(e,[_.Ce,_.T])&&(e.preventDefault(),R(!P),K(e)),K(e)},ref:t},C),a)}));L.displayName="ClickableTile",L.propTypes={children:h().node,className:h().string,clicked:h().bool,handleClick:(0,I.Z)(h().func,"The handleClick prop for ClickableTile has been deprecated in favor of onClick. It will be removed in the next major release."),handleKeyDown:(0,I.Z)(h().func,"The handleKeyDown prop for ClickableTile has been deprecated in favor of onKeyDown. It will be removed in the next major release."),href:h().string,light:(0,I.Z)(h().bool,"The `light` prop for `ClickableTile` is no longer needed and has been deprecated. It will be removed in the next major release. Use the Layer component instead."),onClick:h().func,onKeyDown:h().func,rel:h().string};var O=u().forwardRef((function(e,t){var n,a=e.children,i=e.className,l=e.disabled,c=e.handleClick,g=e.handleKeyDown,h=(e.iconDescription,e.id),m=e.light,v=void 0!==m&&m,b=e.name,x=e.onClick,w=void 0===x?function(){}:x,C=e.onChange,k=void 0===C?function(){}:C,N=e.onKeyDown,I=void 0===N?function(){}:N,S=e.selected,D=void 0!==S&&S,P=e.tabIndex,z=void 0===P?0:P,M=e.title,K=void 0===M?"title":M,L=e.value,O=void 0===L?"value":L,A=(0,d.Z)(e,R),B=(0,y.A)(),H=c||w,U=g||I,j=(0,p.useState)(D),F=(0,o.Z)(j,2),V=F[0],q=F[1],Y=(0,p.useState)(D),W=(0,o.Z)(Y,2),G=W[0],J=W[1],Q=f()("".concat(B,"--tile"),"".concat(B,"--tile--selectable"),(n={},(0,s.Z)(n,"".concat(B,"--tile--is-selected"),V),(0,s.Z)(n,"".concat(B,"--tile--light"),v),(0,s.Z)(n,"".concat(B,"--tile--disabled"),l),n),i),X=f()("".concat(B,"--tile-input"),(0,s.Z)({},"".concat(B,"--tile-input--checked"),V));return D!==G&&(q(D),J(D)),u().createElement(u().Fragment,null,u().createElement("input",{checked:V,className:X,disabled:l,id:h,name:b,onChange:l?null:function(e){q(e.target.checked),k(e)},ref:t,tabIndex:-1,title:K,type:"checkbox",value:O}),u().createElement("label",(0,r.Z)({className:Q,htmlFor:h,onClick:l?null:function(e){e.preventDefault(),e.persist(),q(!V),H(e),k(e)},onKeyDown:l?null:function(e){e.persist(),(0,E.wB)(e,[_.Ce,_.T])&&(e.preventDefault(),q(!V),k(e)),U(e)},tabIndex:l?null:z},A),u().createElement("span",{className:"".concat(B,"--tile__checkmark ").concat(B,"--tile__checkmark--persistent")},V?u().createElement(T,null):u().createElement(Z,null)),u().createElement("span",{className:"".concat(B,"--tile-content")},a)))}));function A(e){var t,n=e.tabIndex,a=e.className,i=e.children,l=e.expanded,c=e.tileMaxHeight,g=e.tilePadding,h=e.onClick,m=e.onKeyUp,v=e.tileCollapsedIconText,b=e.tileExpandedIconText,x=e.tileCollapsedLabel,Z=e.tileExpandedLabel,T=e.onBeforeClick,C=e.light,k=(0,d.Z)(e,M),N=(0,p.useState)(c),I=(0,o.Z)(N,2),P=I[0],z=I[1],R=(0,p.useState)(g),K=(0,o.Z)(R,2),L=K[0],O=K[1],A=(0,p.useState)(l),B=(0,o.Z)(A,2),H=B[0],U=B[1],j=(0,p.useState)(c),F=(0,o.Z)(j,2),V=F[0],q=F[1],Y=(0,p.useState)(g),W=(0,o.Z)(Y,2),G=W[0],J=W[1],Q=(0,p.useState)(l),X=(0,o.Z)(Q,2),$=X[0],ee=X[1],te=(0,p.useRef)(null),ne=(0,p.useRef)(null),ae=(0,p.useRef)(null),ie=(0,y.A)();function le(){$&&z(ne.current.getBoundingClientRect().height),z(te.current.getBoundingClientRect().height)}l!==H&&(ee(l),U(l),le()),c!==V&&(z(c),q(c)),g!==G&&(O(g),J(g));var ce=f()("".concat(ie,"--tile"),"".concat(ie,"--tile--expandable"),(t={},(0,s.Z)(t,"".concat(ie,"--tile--is-expanded"),$),(0,s.Z)(t,"".concat(ie,"--tile--light"),C),t),a),oe={maxHeight:$?null:P+L},re=u().Children.toArray(i);return(0,D.Z)((function(){var e=window.getComputedStyle(ae.current,null),t=te.current.getBoundingClientRect().height,n=parseInt(e.getPropertyValue("padding-top"),10),a=parseInt(e.getPropertyValue("padding-bottom"),10);z(t),O(n+a)}),[]),(0,p.useEffect)((function(){var e=new ResizeObserver((function(e){var t=(0,o.Z)(e,1)[0];z(t.contentRect.height)}));return e.observe(te.current),function(){return e.disconnect()}}),[]),u().createElement("button",(0,r.Z)({type:"button",ref:ae,style:oe,className:ce,"aria-expanded":$,title:$?b:v},k,{onKeyUp:(0,S.M)([m,function(e){e.target!==ae.current&&(0,E.wB)(e,[_.Ce,_.T])&&e.preventDefault()}]),onClick:(0,S.M)([h,function(e){T(e)&&"INPUT"!==e.target.tagName&&(e.persist(),ee(!$),le(),h&&h(e))}]),tabIndex:n}),u().createElement("div",{ref:ne},u().createElement("div",{ref:te,className:"".concat(ie,"--tile-content")},re[0]),u().createElement("div",{className:"".concat(ie,"--tile__chevron")},u().createElement("span",null,$?Z:x),u().createElement(w.cRw,null)),u().createElement("div",{className:"".concat(ie,"--tile-content")},re[1])))}O.displayName="SelectableTile",O.propTypes={children:h().node,className:h().string,disabled:h().bool,handleClick:(0,I.Z)(h().func,"The `handleClick` prop for `SelectableTile` has been deprecated in favor of `onClick`. It will be removed in the next major release."),handleKeyDown:(0,I.Z)(h().func,"The `handleKeyDown` prop for `SelectableTile` has been deprecated in favor of `onKeyDown`. It will be removed in the next major release."),iconDescription:(0,I.Z)(h().string,"The `iconDescription` prop for `SelectableTile` is no longer needed and has been deprecated. It will be removed in the next major release."),id:h().string,light:(0,I.Z)(h().bool,"The `light` prop for `SelectableTile` is no longer needed and has been deprecated. It will be removed in the next major release. Use the Layer component instead."),name:h().string,onChange:h().func,onClick:h().func,onKeyDown:h().func,selected:h().bool,tabIndex:h().number,title:h().string,value:h().oneOfType([h().string,h().number]).isRequired},A.propTypes={children:h().node,className:h().string,expanded:h().bool,id:h().string,light:(0,I.Z)(h().bool,"The `light` prop for `ExpandableTile` is no longer needed and has been deprecated. It will be removed in the next major release. Use the Layer component instead."),onBeforeClick:h().func,onClick:h().func,onKeyUp:h().func,tabIndex:h().number,tileCollapsedIconText:h().string,tileCollapsedLabel:h().string,tileExpandedIconText:h().string,tileExpandedLabel:h().string},A.defaultProps={tabIndex:0,expanded:!1,tileMaxHeight:0,tilePadding:0,onBeforeClick:function(){return!0},onClick:function(){},tileCollapsedIconText:"Interact to expand Tile",tileExpandedIconText:"Interact to collapse Tile"},A.displayName="ExpandableTile";var B=u().forwardRef((function(e,t){var n=e.children,a=(0,y.A)();return u().createElement("span",{ref:t,className:"".concat(a,"--tile-content__above-the-fold")},n)}));B.propTypes={children:h().node},B.displayName="TileAboveTheFoldContent";var H=u().forwardRef((function(e,t){var n=e.children,a=(0,y.A)();return u().createElement("span",{ref:t,className:"".concat(a,"--tile-content__below-the-fold")},n)}));H.propTypes={children:h().node},H.displayName="TileBelowTheFoldContent";var U=n(753),j=n(9249),F=n(7371),V=n(8106),q=n(1987),Y=n(5058),W=["children","className","light"],G=["children","href","className","handleClick","handleKeyDown","onClick","onKeyDown","clicked","light"],J=["children","id","tabIndex","value","name","title","iconDescription","className","handleClick","handleKeyDown","onClick","onChange","onKeyDown","light","disabled","selected"],Q=["tabIndex","className","expanded","tileMaxHeight","tilePadding","handleClick","onKeyUp","tileCollapsedIconText","tileExpandedIconText","tileCollapsedLabel","tileExpandedLabel","onBeforeClick","light"];function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=(0,Y.Z)(e);if(t){var i=(0,Y.Z)(this).constructor;n=Reflect.construct(a,arguments,i)}else n=a.apply(this,arguments);return(0,q.Z)(this,n)}}var $=function(e){(0,V.Z)(n,e);var t=X(n);function n(){return(0,j.Z)(this,n),t.apply(this,arguments)}return(0,F.Z)(n,[{key:"render",value:function(){var e=this.context,t=this.props,n=t.children,a=t.className,i=t.light,l=(0,d.Z)(t,W),c=f()("".concat(e,"--tile"),(0,s.Z)({},"".concat(e,"--tile--light"),i),a);return u().createElement("div",(0,r.Z)({className:c},l),n)}}]),n}(p.Component);(0,s.Z)($,"propTypes",{children:h().node,className:h().string,light:h().bool}),(0,s.Z)($,"contextType",y.T),(0,s.Z)($,"defaultProps",{light:!1});var ee=function(e){(0,V.Z)(n,e);var t=X(n);function n(){var e;(0,j.Z)(this,n);for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return e=t.call.apply(t,[this].concat(i)),(0,s.Z)((0,U.Z)(e),"state",{}),(0,s.Z)((0,U.Z)(e),"handleClick",(function(t){t.persist(),e.setState({clicked:!e.state.clicked},(function(){var n,a,i,l;(null===(n=(a=e.props).handleClick)||void 0===n?void 0:n.call(a,t))||null===(i=(l=e.props).onClick)||void 0===i||i.call(l,t)}))})),(0,s.Z)((0,U.Z)(e),"handleKeyDown",(function(t){var n,a;t.persist(),(0,E.wB)(t,[_.Ce,_.T])?e.setState({clicked:!e.state.clicked},(function(){var n,a;(null===(n=(a=e.props).handleKeyDown)||void 0===n?void 0:n.call(a,t))||e.props.onKeyDown(t)})):(null===(n=(a=e.props).handleKeyDown)||void 0===n?void 0:n.call(a,t))||e.props.onKeyDown(t)})),e}return(0,F.Z)(n,[{key:"render",value:function(){var e,t=this.context,n=this.props,a=n.children,i=n.href,l=n.className,c=(n.handleClick,n.handleKeyDown,n.onClick,n.onKeyDown,n.clicked,n.light),o=(0,d.Z)(n,G),p=f()("".concat(t,"--tile"),"".concat(t,"--tile--clickable"),(e={},(0,s.Z)(e,"".concat(t,"--tile--is-clicked"),this.state.clicked),(0,s.Z)(e,"".concat(t,"--tile--light"),c),e),l);return u().createElement(N,(0,r.Z)({href:i,className:p},o,{onClick:this.handleClick,onKeyDown:this.handleKeyDown}),a)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.clicked;return t.prevClicked===n?null:{clicked:n,prevClicked:n}}}]),n}(p.Component);function te(e){var t,n=e.children,a=e.id,i=e.tabIndex,l=e.value,c=e.name,g=e.title,h=(e.iconDescription,e.className),m=e.handleClick,v=e.handleKeyDown,b=e.onClick,x=e.onChange,w=e.onKeyDown,C=e.light,k=e.disabled,N=e.selected,I=(0,d.Z)(e,J),S=(0,y.A)(),D=m||b,P=v||w,z=(0,p.useState)(N),R=(0,o.Z)(z,2),M=R[0],K=R[1],L=(0,p.useRef)(null),O=f()("".concat(S,"--tile"),"".concat(S,"--tile--selectable"),(t={},(0,s.Z)(t,"".concat(S,"--tile--is-selected"),M),(0,s.Z)(t,"".concat(S,"--tile--light"),C),(0,s.Z)(t,"".concat(S,"--tile--disabled"),k),t),h),A=f()("".concat(S,"--tile-input"),(0,s.Z)({},"".concat(S,"--tile-input--checked"),M));return(0,p.useEffect)((function(){K(N)}),[N]),u().createElement(u().Fragment,null,u().createElement("input",{ref:L,tabIndex:-1,id:a,className:A,value:l,onChange:k?null:function(e){K(e.target.checked),x(e)},type:"checkbox",disabled:k,name:c,title:g,checked:M}),u().createElement("label",(0,r.Z)({htmlFor:a,className:O,tabIndex:k?null:i},I,{onClick:k?null:function(e){e.preventDefault(),e.persist(),K(!M),D(e),x(e)},onKeyDown:k?null:function(e){e.persist(),(0,E.wB)(e,[_.Ce,_.T])&&(e.preventDefault(),K(!M),x(e)),P(e)}}),u().createElement("span",{className:"".concat(S,"--tile__checkmark ").concat(S,"--tile__checkmark--persistent")},M?u().createElement(T,null):u().createElement(Z,null)),u().createElement("span",{className:"".concat(S,"--tile-content")},n)))}(0,s.Z)(ee,"propTypes",{children:h().node,className:h().string,handleClick:(0,I.Z)(h().func,"The handleClick prop for ClickableTile has been deprecated in favor of onClick. It will be removed in the next major release."),handleKeyDown:(0,I.Z)(h().func,"The handleKeyDown prop for ClickableTile has been deprecated in favor of onKeyDown. It will be removed in the next major release."),href:h().string,light:h().bool,onClick:h().func,onKeyDown:h().func,rel:h().string}),(0,s.Z)(ee,"contextType",y.T),(0,s.Z)(ee,"defaultProps",{clicked:!1,onClick:function(){},onKeyDown:function(){},light:!1}),te.defaultProps={value:"value",title:"title",selected:!1,tabIndex:0,light:!1,onClick:function(){},onChange:function(){},onKeyDown:function(){}},te.propTypes={children:h().node,className:h().string,disabled:h().bool,handleClick:(0,I.Z)(h().func,"The `handleClick` prop for `SelectableTile` has been deprecated in favor of `onClick`. It will be removed in the next major release."),handleKeyDown:(0,I.Z)(h().func,"The `handleKeyDown` prop for `SelectableTile` has been deprecated in favor of `onKeyDown`. It will be removed in the next major release."),iconDescription:(0,I.Z)(h().string,"The `iconDescription` prop for `SelectableTile` is no longer needed and has been deprecated. It will be removed in the next major release."),id:h().string,light:h().bool,name:h().string,onChange:h().func,onClick:h().func,onKeyDown:h().func,selected:h().bool,tabIndex:h().number,title:h().string,value:h().oneOfType([h().string,h().number]).isRequired};var ne=function(e){(0,V.Z)(n,e);var t=X(n);function n(){var e;(0,j.Z)(this,n);for(var a=arguments.length,i=new Array(a),l=0;l<a;l++)i[l]=arguments[l];return e=t.call.apply(t,[this].concat(i)),(0,s.Z)((0,U.Z)(e),"state",{}),(0,s.Z)((0,U.Z)(e),"resizeObserver",null),(0,s.Z)((0,U.Z)(e),"componentDidMount",(function(){if(e.resizeObserver=new ResizeObserver((function(t){var n=(0,o.Z)(t,1)[0];e.setState({tileMaxHeight:n.contentRect.height})})),e.tile){var t=window.getComputedStyle(e.tile,null);e.aboveTheFold&&(e.resizeObserver.observe(e.aboveTheFold),e.setState({tileMaxHeight:e.aboveTheFold.getBoundingClientRect().height,tilePadding:parseInt(t.getPropertyValue("padding-top"),10)+parseInt(t.getPropertyValue("padding-bottom"),10)}))}})),(0,s.Z)((0,U.Z)(e),"componentDidUpdate",(function(t){t.expanded!==e.props.expanded&&e.setMaxHeight()})),(0,s.Z)((0,U.Z)(e),"setMaxHeight",(function(){(e.state.expanded?e.tileContent:e.aboveTheFold)&&e.setState({tileMaxHeight:e.state.expanded?e.tileContent.getBoundingClientRect().height:e.aboveTheFold.getBoundingClientRect().height})})),(0,s.Z)((0,U.Z)(e),"handleClick",(function(t){e.props.onBeforeClick(t)&&"INPUT"!==t.target.tagName&&(t.persist(),e.setState({expanded:!e.state.expanded},(function(){var n,a,i,l;e.setMaxHeight(),(null===(n=(a=e.props).handleClick)||void 0===n?void 0:n.call(a,t))||null===(i=(l=e.props).onClick)||void 0===i||i.call(l,t)})))})),(0,s.Z)((0,U.Z)(e),"handleKeyUp",(function(t){t.target!==e.tile&&(0,E.wB)(t,[_.Ce,_.T])&&t.preventDefault()})),(0,s.Z)((0,U.Z)(e),"getChildren",(function(){return u().Children.toArray(e.props.children)})),e}return(0,F.Z)(n,[{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect()}},{key:"render",value:function(){var e,t=this,n=this.props,a=n.tabIndex,i=n.className,l=(n.expanded,n.tileMaxHeight,n.tilePadding,n.handleClick,n.onKeyUp),c=n.tileCollapsedIconText,o=n.tileExpandedIconText,p=n.tileCollapsedLabel,g=n.tileExpandedLabel,h=(n.onBeforeClick,n.light),m=(0,d.Z)(n,Q),v=this.context,b=this.state.expanded,x=f()("".concat(v,"--tile"),"".concat(v,"--tile--expandable"),(e={},(0,s.Z)(e,"".concat(v,"--tile--is-expanded"),b),(0,s.Z)(e,"".concat(v,"--tile--light"),h),e),i),Z={maxHeight:b?null:this.state.tileMaxHeight+this.state.tilePadding},T=this.getChildren();return u().createElement("button",(0,r.Z)({type:"button",ref:function(e){t.tile=e},style:Z,className:x,"aria-expanded":b,title:b?o:c},m,{onKeyUp:(0,S.M)([l,this.handleKeyUp]),onClick:this.handleClick,tabIndex:a}),u().createElement("div",{ref:function(e){t.tileContent=e}},u().createElement("div",{ref:function(e){t.aboveTheFold=e},className:"".concat(v,"--tile-content")},T[0]),u().createElement("div",{className:"".concat(v,"--tile__chevron")},u().createElement("span",null,b?g:p),u().createElement(w.cRw,null)),u().createElement("div",{className:"".concat(v,"--tile-content")},T[1])))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.expanded,a=e.tileMaxHeight,i=e.tilePadding,l=t.prevExpanded,c=t.prevTileMaxHeight,o=t.prevTilePadding,r=t.expanded,s=t.tileMaxHeight,d=t.tilePadding,p=l!==n,u=c!==a,g=o!==i;return p||u||g?{expanded:p?n:r,tileMaxHeight:u?a:s,tilePadding:g?i:d,prevExpanded:n,prevTileMaxHeight:a,prevTilePadding:i}:null}}]),n}(p.Component);(0,s.Z)(ne,"propTypes",{children:h().node,className:h().string,expanded:h().bool,handleClick:(0,I.Z)(h().func,"The handleClick prop for ExpandableTile has been deprecated in favor of onClick. It will be removed in the next major release."),id:h().string,light:h().bool,onBeforeClick:h().func,onClick:h().func,onKeyUp:h().func,tabIndex:h().number,tileCollapsedIconText:h().string,tileCollapsedLabel:h().string,tileExpandedIconText:h().string,tileExpandedLabel:h().string}),(0,s.Z)(ne,"contextType",y.T),(0,s.Z)(ne,"defaultProps",{tabIndex:0,expanded:!1,tileMaxHeight:0,tilePadding:0,onBeforeClick:function(){return!0},onClick:function(){},tileCollapsedIconText:"Interact to expand Tile",tileExpandedIconText:"Interact to collapse Tile",light:!1});var ae=function(e){(0,V.Z)(n,e);var t=X(n);function n(){return(0,j.Z)(this,n),t.apply(this,arguments)}return(0,F.Z)(n,[{key:"render",value:function(){var e=this.context,t=this.props.children;return u().createElement("span",{className:"".concat(e,"--tile-content__above-the-fold")},t)}}]),n}(p.Component);(0,s.Z)(ae,"propTypes",{children:h().node}),(0,s.Z)(ae,"contextType",y.T);var ie=function(e){(0,V.Z)(n,e);var t=X(n);function n(){return(0,j.Z)(this,n),t.apply(this,arguments)}return(0,F.Z)(n,[{key:"render",value:function(){var e=this.props.children,t=this.context;return u().createElement("span",{className:"".concat(t,"--tile-content__below-the-fold")},e)}}]),n}(p.Component);(0,s.Z)(ie,"propTypes",{children:h().node}),(0,s.Z)(ie,"contextType",y.T);var le=c.am("enable-v11-release")?K:$;c.am("enable-v11-release"),c.am("enable-v11-release"),c.am("enable-v11-release"),c.am("enable-v11-release"),c.am("enable-v11-release")},6824:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isToday=function(){var e="YYYY-MM-DD",t=n();return this.format(e)===t.format(e)}}}()}}]);
2
+ //# sourceMappingURL=614.js.map