diff --git a/pull/2158/1440-f49ceddb4143bbcbdfd0.css b/pull/2158/1440-9f901811f495954f7b4e.css similarity index 100% rename from pull/2158/1440-f49ceddb4143bbcbdfd0.css rename to pull/2158/1440-9f901811f495954f7b4e.css diff --git a/pull/2158/1440-f49ceddb4143bbcbdfd0.js b/pull/2158/1440-9f901811f495954f7b4e.js similarity index 73% rename from pull/2158/1440-f49ceddb4143bbcbdfd0.js rename to pull/2158/1440-9f901811f495954f7b4e.js index 102e55e1671..ac14be8021e 100644 --- a/pull/2158/1440-f49ceddb4143bbcbdfd0.js +++ b/pull/2158/1440-9f901811f495954f7b4e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[1440],{1440:function(e,t,l){var a=l(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(l(96540)),i=a(l(67967)),o=a(l(93089)),n=a(l(51866)),u=a(l(51680)),d=i.default.bind(o.default);t.default=function(){return r.default.createElement(n.default,{data:u.default.slice(0,3),ariaLabel:"Example of selectable and removable Filter Pills",className:d(["show-border","width-10"])})}},51680:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{label:"asthma",labelCategory:"respiratory",id:"terra-filter-pills-asthma"},{label:"bronchitis",labelCategory:"respiratory",id:"terra-filter-pills-bronchitis"},{label:"fibro",labelCategory:"respiratory",id:"terra-filter-pills-fibro"},{label:"allergies",labelCategory:"skin",id:"terra-filter-pills-allergies"},{label:"hypertension",labelCategory:"cardio",id:"terra-filter-pills-hypertension"},{label:"cardiac",labelCategory:"cardio",id:"terra-filter-pills-cardiac"}]},51866:function(e,t,l){var a=l(24994),r=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(l(41132)),o=a(l(85715)),n=f(l(96540)),u=a(l(5556)),d=f(l(90180));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(s=function(e){return e?l:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var l=s(t);if(l&&l.has(e))return l.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=i?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(a,o,n):a[o]=e[o]}return a.default=e,l&&l.set(e,a),a}var c={ariaLabel:u.default.string,className:u.default.string,data:u.default.array,isCollapsible:u.default.bool},p=function(e){var t=e.data,l=e.ariaLabel,a=e.className,r=e.isCollapsible,u=(0,n.useState)(t),s=(0,o.default)(u,2),f=s[0],c=s[1],p=(0,n.useState)(0),b=(0,o.default)(p,2),_=b[0],m=b[1];return n.default.createElement(n.default.Fragment,null,n.default.createElement(d.default,{ariaLabel:l,onRemove:function(e,t){var l=f;l.splice(t.index,1),c((0,i.default)(l))},className:a,isCollapsible:r},f.map((function(e,t){return n.default.createElement(d.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:t}})}))),f.length<=0&&n.default.createElement("button",{type:"button",onClick:function(){return c(t)}},"Show Pills"),r&&n.default.createElement("button",{type:"button",onClick:function(){var e=f,t={label:"test-pill- ".concat(_),id:"test-filter-pills-test-".concat(_)};m((function(e){return e+1})),e.push(t),c(e)}}," Add more pills"))};p.propTypes=c,p.defaultProps={isCollapsible:!1};t.default=p},93089:function(e,t,l){l.r(t),t.default={"spacing-wrapper":"FilterPillsTestCommon-module__spacing-wrapper___VtTUh",container:"FilterPillsTestCommon-module__container___kHV-K","show-border":"FilterPillsTestCommon-module__show-border___zbvfC","width-50":"FilterPillsTestCommon-module__width-50___+OPfT","width-10":"FilterPillsTestCommon-module__width-10___mO70v",hidden:"FilterPillsTestCommon-module__hidden___+-b03"}}}]); \ No newline at end of file +"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[1440],{1440:function(e,t,l){var a=l(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(l(96540)),i=a(l(67967)),o=a(l(93089)),n=a(l(51866)),u=a(l(51680)),d=i.default.bind(o.default);t.default=function(){return r.default.createElement(n.default,{data:u.default.slice(0,3),ariaLabel:"Example of selectable and removable Filter Pills",className:d(["show-border","width-10"])})}},51680:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{label:"asthma",labelCategory:"respiratory",id:"terra-filter-pills-asthma"},{label:"bronchitis",labelCategory:"respiratory",id:"terra-filter-pills-bronchitis"},{label:"fibro",labelCategory:"respiratory",id:"terra-filter-pills-fibro"},{label:"allergies",labelCategory:"skin",id:"terra-filter-pills-allergies"},{label:"hypertension",labelCategory:"cardio",id:"terra-filter-pills-hypertension"},{label:"cardiac",labelCategory:"cardio",id:"terra-filter-pills-cardiac"}]},51866:function(e,t,l){var a=l(24994),r=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(l(41132)),o=a(l(85715)),n=f(l(96540)),u=a(l(5556)),d=f(l(90180));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(s=function(e){return e?l:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var l=s(t);if(l&&l.has(e))return l.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=i?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(a,o,n):a[o]=e[o]}return a.default=e,l&&l.set(e,a),a}var c={ariaLabel:u.default.string,className:u.default.string,data:u.default.array,isCollapsible:u.default.bool},p=function(e){var t=e.data,l=e.ariaLabel,a=e.className,r=e.isCollapsible,u=(0,n.useState)(t),s=(0,o.default)(u,2),f=s[0],c=s[1],p=(0,n.useState)(0),b=(0,o.default)(p,2),_=b[0],m=b[1];return n.default.createElement(n.default.Fragment,null,n.default.createElement(d.default,{ariaLabel:l,onRemove:function(e,t){var l=f;l.splice(t.index,1),c((0,i.default)(l))},className:a,isCollapsible:r},f.map((function(e,t){return n.default.createElement(d.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:t},isPopupHeaderDisabled:!1})}))),f.length<=0&&n.default.createElement("button",{type:"button",onClick:function(){return c(t)}},"Show Pills"),r&&n.default.createElement("button",{type:"button",onClick:function(){var e=f,t={label:"test-pill- ".concat(_),id:"test-filter-pills-test-".concat(_)};m((function(e){return e+1})),e.push(t),c(e)}}," Add more pills"))};p.propTypes=c,p.defaultProps={isCollapsible:!1};t.default=p},93089:function(e,t,l){l.r(t),t.default={"spacing-wrapper":"FilterPillsTestCommon-module__spacing-wrapper___VtTUh",container:"FilterPillsTestCommon-module__container___kHV-K","show-border":"FilterPillsTestCommon-module__show-border___zbvfC","width-50":"FilterPillsTestCommon-module__width-50___+OPfT","width-10":"FilterPillsTestCommon-module__width-10___mO70v",hidden:"FilterPillsTestCommon-module__hidden___+-b03"}}}]); \ No newline at end of file diff --git a/pull/2158/43121-4a97654d55b2388e3080.css b/pull/2158/43121-d48b42e992407bdc8d61.css similarity index 100% rename from pull/2158/43121-4a97654d55b2388e3080.css rename to pull/2158/43121-d48b42e992407bdc8d61.css diff --git a/pull/2158/43121-4a97654d55b2388e3080.js b/pull/2158/43121-d48b42e992407bdc8d61.js similarity index 53% rename from pull/2158/43121-4a97654d55b2388e3080.js rename to pull/2158/43121-d48b42e992407bdc8d61.js index 365ed24bf54..de250002d79 100644 --- a/pull/2158/43121-4a97654d55b2388e3080.js +++ b/pull/2158/43121-d48b42e992407bdc8d61.js @@ -1 +1 @@ -"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[43121],{43121:function(e,t,l){var a=l(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(l(96540)),i=a(l(67967)),n=a(l(93089)),o=a(l(51866)),u=a(l(51680)),d=i.default.bind(n.default);t.default=function(){return r.default.createElement(r.default.Fragment,null,r.default.createElement(o.default,{data:u.default,ariaLabel:"Example of collapsed filter pills",isCollapsible:!0,className:d(["container","show-border","width-50"])}))}},51680:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{label:"asthma",labelCategory:"respiratory",id:"terra-filter-pills-asthma"},{label:"bronchitis",labelCategory:"respiratory",id:"terra-filter-pills-bronchitis"},{label:"fibro",labelCategory:"respiratory",id:"terra-filter-pills-fibro"},{label:"allergies",labelCategory:"skin",id:"terra-filter-pills-allergies"},{label:"hypertension",labelCategory:"cardio",id:"terra-filter-pills-hypertension"},{label:"cardiac",labelCategory:"cardio",id:"terra-filter-pills-cardiac"}]},51866:function(e,t,l){var a=l(24994),r=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(l(41132)),n=a(l(85715)),o=f(l(96540)),u=a(l(5556)),d=f(l(90180));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(s=function(e){return e?l:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var l=s(t);if(l&&l.has(e))return l.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&{}.hasOwnProperty.call(e,n)){var o=i?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(a,n,o):a[n]=e[n]}return a.default=e,l&&l.set(e,a),a}var c={ariaLabel:u.default.string,className:u.default.string,data:u.default.array,isCollapsible:u.default.bool},p=function(e){var t=e.data,l=e.ariaLabel,a=e.className,r=e.isCollapsible,u=(0,o.useState)(t),s=(0,n.default)(u,2),f=s[0],c=s[1],p=(0,o.useState)(0),b=(0,n.default)(p,2),_=b[0],m=b[1];return o.default.createElement(o.default.Fragment,null,o.default.createElement(d.default,{ariaLabel:l,onRemove:function(e,t){var l=f;l.splice(t.index,1),c((0,i.default)(l))},className:a,isCollapsible:r},f.map((function(e,t){return o.default.createElement(d.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:t}})}))),f.length<=0&&o.default.createElement("button",{type:"button",onClick:function(){return c(t)}},"Show Pills"),r&&o.default.createElement("button",{type:"button",onClick:function(){var e=f,t={label:"test-pill- ".concat(_),id:"test-filter-pills-test-".concat(_)};m((function(e){return e+1})),e.push(t),c(e)}}," Add more pills"))};p.propTypes=c,p.defaultProps={isCollapsible:!1};t.default=p},93089:function(e,t,l){l.r(t),t.default={"spacing-wrapper":"FilterPillsTestCommon-module__spacing-wrapper___VtTUh",container:"FilterPillsTestCommon-module__container___kHV-K","show-border":"FilterPillsTestCommon-module__show-border___zbvfC","width-50":"FilterPillsTestCommon-module__width-50___+OPfT","width-10":"FilterPillsTestCommon-module__width-10___mO70v",hidden:"FilterPillsTestCommon-module__hidden___+-b03"}}}]); \ No newline at end of file +"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[43121],{43121:function(e,t,l){var a=l(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(l(96540)),i=a(l(67967)),o=a(l(93089)),n=a(l(51866)),u=a(l(51680)),d=i.default.bind(o.default);t.default=function(){return r.default.createElement(r.default.Fragment,null,r.default.createElement(n.default,{data:u.default,ariaLabel:"Example of collapsed filter pills",isCollapsible:!0,className:d(["container","show-border","width-50"])}))}},51680:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{label:"asthma",labelCategory:"respiratory",id:"terra-filter-pills-asthma"},{label:"bronchitis",labelCategory:"respiratory",id:"terra-filter-pills-bronchitis"},{label:"fibro",labelCategory:"respiratory",id:"terra-filter-pills-fibro"},{label:"allergies",labelCategory:"skin",id:"terra-filter-pills-allergies"},{label:"hypertension",labelCategory:"cardio",id:"terra-filter-pills-hypertension"},{label:"cardiac",labelCategory:"cardio",id:"terra-filter-pills-cardiac"}]},51866:function(e,t,l){var a=l(24994),r=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(l(41132)),o=a(l(85715)),n=f(l(96540)),u=a(l(5556)),d=f(l(90180));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(s=function(e){return e?l:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var l=s(t);if(l&&l.has(e))return l.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=i?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(a,o,n):a[o]=e[o]}return a.default=e,l&&l.set(e,a),a}var c={ariaLabel:u.default.string,className:u.default.string,data:u.default.array,isCollapsible:u.default.bool},p=function(e){var t=e.data,l=e.ariaLabel,a=e.className,r=e.isCollapsible,u=(0,n.useState)(t),s=(0,o.default)(u,2),f=s[0],c=s[1],p=(0,n.useState)(0),b=(0,o.default)(p,2),_=b[0],m=b[1];return n.default.createElement(n.default.Fragment,null,n.default.createElement(d.default,{ariaLabel:l,onRemove:function(e,t){var l=f;l.splice(t.index,1),c((0,i.default)(l))},className:a,isCollapsible:r},f.map((function(e,t){return n.default.createElement(d.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:t},isPopupHeaderDisabled:!1})}))),f.length<=0&&n.default.createElement("button",{type:"button",onClick:function(){return c(t)}},"Show Pills"),r&&n.default.createElement("button",{type:"button",onClick:function(){var e=f,t={label:"test-pill- ".concat(_),id:"test-filter-pills-test-".concat(_)};m((function(e){return e+1})),e.push(t),c(e)}}," Add more pills"))};p.propTypes=c,p.defaultProps={isCollapsible:!1};t.default=p},93089:function(e,t,l){l.r(t),t.default={"spacing-wrapper":"FilterPillsTestCommon-module__spacing-wrapper___VtTUh",container:"FilterPillsTestCommon-module__container___kHV-K","show-border":"FilterPillsTestCommon-module__show-border___zbvfC","width-50":"FilterPillsTestCommon-module__width-50___+OPfT","width-10":"FilterPillsTestCommon-module__width-10___mO70v",hidden:"FilterPillsTestCommon-module__hidden___+-b03"}}}]); \ No newline at end of file diff --git a/pull/2158/53476-6702a7fa7bbc9e0ab838.css b/pull/2158/53476-8827384f7b1dc96a3351.css similarity index 100% rename from pull/2158/53476-6702a7fa7bbc9e0ab838.css rename to pull/2158/53476-8827384f7b1dc96a3351.css diff --git a/pull/2158/53476-6702a7fa7bbc9e0ab838.js b/pull/2158/53476-8827384f7b1dc96a3351.js similarity index 72% rename from pull/2158/53476-6702a7fa7bbc9e0ab838.js rename to pull/2158/53476-8827384f7b1dc96a3351.js index 612c86389d8..8c07bd5ef1c 100644 --- a/pull/2158/53476-6702a7fa7bbc9e0ab838.js +++ b/pull/2158/53476-8827384f7b1dc96a3351.js @@ -1 +1 @@ -"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[53476],{53476:function(e,t,l){var a=l(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(l(96540)),i=a(l(67967)),o=a(l(51866)),n=a(l(51680)),u=a(l(93089)),s=i.default.bind(u.default);t.default=function(){return r.default.createElement(o.default,{data:n.default.slice(0,3),ariaLabel:"Example of removable Pills",className:s(["show-border"])})}},51680:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{label:"asthma",labelCategory:"respiratory",id:"terra-filter-pills-asthma"},{label:"bronchitis",labelCategory:"respiratory",id:"terra-filter-pills-bronchitis"},{label:"fibro",labelCategory:"respiratory",id:"terra-filter-pills-fibro"},{label:"allergies",labelCategory:"skin",id:"terra-filter-pills-allergies"},{label:"hypertension",labelCategory:"cardio",id:"terra-filter-pills-hypertension"},{label:"cardiac",labelCategory:"cardio",id:"terra-filter-pills-cardiac"}]},51866:function(e,t,l){var a=l(24994),r=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(l(41132)),o=a(l(85715)),n=f(l(96540)),u=a(l(5556)),s=f(l(90180));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(d=function(e){return e?l:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var l=d(t);if(l&&l.has(e))return l.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=i?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(a,o,n):a[o]=e[o]}return a.default=e,l&&l.set(e,a),a}var c={ariaLabel:u.default.string,className:u.default.string,data:u.default.array,isCollapsible:u.default.bool},p=function(e){var t=e.data,l=e.ariaLabel,a=e.className,r=e.isCollapsible,u=(0,n.useState)(t),d=(0,o.default)(u,2),f=d[0],c=d[1],p=(0,n.useState)(0),b=(0,o.default)(p,2),_=b[0],m=b[1];return n.default.createElement(n.default.Fragment,null,n.default.createElement(s.default,{ariaLabel:l,onRemove:function(e,t){var l=f;l.splice(t.index,1),c((0,i.default)(l))},className:a,isCollapsible:r},f.map((function(e,t){return n.default.createElement(s.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:t}})}))),f.length<=0&&n.default.createElement("button",{type:"button",onClick:function(){return c(t)}},"Show Pills"),r&&n.default.createElement("button",{type:"button",onClick:function(){var e=f,t={label:"test-pill- ".concat(_),id:"test-filter-pills-test-".concat(_)};m((function(e){return e+1})),e.push(t),c(e)}}," Add more pills"))};p.propTypes=c,p.defaultProps={isCollapsible:!1};t.default=p},93089:function(e,t,l){l.r(t),t.default={"spacing-wrapper":"FilterPillsTestCommon-module__spacing-wrapper___VtTUh",container:"FilterPillsTestCommon-module__container___kHV-K","show-border":"FilterPillsTestCommon-module__show-border___zbvfC","width-50":"FilterPillsTestCommon-module__width-50___+OPfT","width-10":"FilterPillsTestCommon-module__width-10___mO70v",hidden:"FilterPillsTestCommon-module__hidden___+-b03"}}}]); \ No newline at end of file +"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[53476],{53476:function(e,t,l){var a=l(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(l(96540)),i=a(l(67967)),o=a(l(51866)),n=a(l(51680)),u=a(l(93089)),s=i.default.bind(u.default);t.default=function(){return r.default.createElement(o.default,{data:n.default.slice(0,3),ariaLabel:"Example of removable Pills",className:s(["show-border"])})}},51680:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{label:"asthma",labelCategory:"respiratory",id:"terra-filter-pills-asthma"},{label:"bronchitis",labelCategory:"respiratory",id:"terra-filter-pills-bronchitis"},{label:"fibro",labelCategory:"respiratory",id:"terra-filter-pills-fibro"},{label:"allergies",labelCategory:"skin",id:"terra-filter-pills-allergies"},{label:"hypertension",labelCategory:"cardio",id:"terra-filter-pills-hypertension"},{label:"cardiac",labelCategory:"cardio",id:"terra-filter-pills-cardiac"}]},51866:function(e,t,l){var a=l(24994),r=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(l(41132)),o=a(l(85715)),n=f(l(96540)),u=a(l(5556)),s=f(l(90180));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(d=function(e){return e?l:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var l=d(t);if(l&&l.has(e))return l.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=i?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(a,o,n):a[o]=e[o]}return a.default=e,l&&l.set(e,a),a}var c={ariaLabel:u.default.string,className:u.default.string,data:u.default.array,isCollapsible:u.default.bool},p=function(e){var t=e.data,l=e.ariaLabel,a=e.className,r=e.isCollapsible,u=(0,n.useState)(t),d=(0,o.default)(u,2),f=d[0],c=d[1],p=(0,n.useState)(0),b=(0,o.default)(p,2),_=b[0],m=b[1];return n.default.createElement(n.default.Fragment,null,n.default.createElement(s.default,{ariaLabel:l,onRemove:function(e,t){var l=f;l.splice(t.index,1),c((0,i.default)(l))},className:a,isCollapsible:r},f.map((function(e,t){return n.default.createElement(s.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:t},isPopupHeaderDisabled:!1})}))),f.length<=0&&n.default.createElement("button",{type:"button",onClick:function(){return c(t)}},"Show Pills"),r&&n.default.createElement("button",{type:"button",onClick:function(){var e=f,t={label:"test-pill- ".concat(_),id:"test-filter-pills-test-".concat(_)};m((function(e){return e+1})),e.push(t),c(e)}}," Add more pills"))};p.propTypes=c,p.defaultProps={isCollapsible:!1};t.default=p},93089:function(e,t,l){l.r(t),t.default={"spacing-wrapper":"FilterPillsTestCommon-module__spacing-wrapper___VtTUh",container:"FilterPillsTestCommon-module__container___kHV-K","show-border":"FilterPillsTestCommon-module__show-border___zbvfC","width-50":"FilterPillsTestCommon-module__width-50___+OPfT","width-10":"FilterPillsTestCommon-module__width-10___mO70v",hidden:"FilterPillsTestCommon-module__hidden___+-b03"}}}]); \ No newline at end of file diff --git a/pull/2158/76497-8e5da46e0871b2ce2af4.css b/pull/2158/76497-03df7d989bff42d21702.css similarity index 100% rename from pull/2158/76497-8e5da46e0871b2ce2af4.css rename to pull/2158/76497-03df7d989bff42d21702.css diff --git a/pull/2158/76497-8e5da46e0871b2ce2af4.js b/pull/2158/76497-03df7d989bff42d21702.js similarity index 50% rename from pull/2158/76497-8e5da46e0871b2ce2af4.js rename to pull/2158/76497-03df7d989bff42d21702.js index 8d39f7bdc74..96d87675f7e 100644 --- a/pull/2158/76497-8e5da46e0871b2ce2af4.js +++ b/pull/2158/76497-03df7d989bff42d21702.js @@ -1 +1 @@ -"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[76497],{76497:function(e,l,t){t.r(l),t.d(l,{default:function(){return K}});var a=t(58168),n=t(53986),r=t(96540),i=t(36665),o=t(70514),s=t(74647),d=t(47849),m=t(50548),p=["components"],c={};function u(e){var l=e.components,t=(0,n.A)(e,p);return(0,i.mdx)("wrapper",(0,a.A)({},c,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React, { useState } from 'react';\nimport classNamesBind from 'classnames/bind';\nimport { Button as DocsButton, Placeholder } from '@cerner/terra-docs';\nimport Button from 'terra-button';\nimport FilterPills, { Pill } from '@cerner/terra-pills';\nimport Text from 'terra-text';\nimport ThemeContext from 'terra-theme-context';\nimport Toolbar from 'terra-toolbar';\nimport styles from './FilterPillsCommon.module.scss';\n\nconst cx = classNamesBind.bind(styles);\n\nconst AppliedFiltersExample = () => {\n const theme = React.useContext(ThemeContext);\n\n const pillsData = [];\n for (let pillCount = 1; pillCount < 11; pillCount += 1) {\n const pillData = {\n label: `Selection ${pillCount}`,\n labelCategory: 'Category',\n id: `terra-filter-pills-category-selection-${pillCount}`,\n };\n pillsData.push(pillData);\n }\n const [pills, setPills] = useState(pillsData);\n\n const handleOnRemove = (id, metaData) => {\n const pillsArray = pills;\n pillsArray.splice(metaData.index, 1);\n setPills([...pillsArray]);\n };\n\n const handleResetClick = () => {\n setPills(pillsData);\n };\n\n const appliedFiltersLabel = 'Applied Filters:';\n\n return (\n <>\n
\n \n
\n
\n \n {appliedFiltersLabel}\n \n
\n
\n \n {pills.map((pill, index) => (\n \n ))}\n \n
\n
\n setPills([])}\n />\n
\n
\n
\n
\n \n
\n
\n \n Reset Example\n \n \n );\n};\n\nAppliedFiltersExample.contextType = ThemeContext;\n\nexport default AppliedFiltersExample;\n\n")))}u.isMDXComponent=!0;var x=t(201),f=["components"],b={};function h(e){var l=e.components,t=(0,n.A)(e,f);return(0,i.mdx)("wrapper",(0,a.A)({},b,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-scss"},"// Themes\n@import '../../../theme/clinical-lowlight-theme/FilterPills.module';\n@import '../../../theme/orion-fusion-theme/FilterPills.module';\n\n:local {\n // Terra Docs Example Reset Button\n .terra-docs-example-reset-button {\n margin-bottom: var(--terra-framework-docs-example-reset-button-margin-bottom, -2.42857rem);\n margin-top: 1.42857rem;\n position: relative;\n }\n\n // Applied Filters Toolbar Example\n .terra-filter-pills-doc-example-applied-filters {\n border: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-border, 1px solid #d3d4d5);\n margin: 0;\n padding: 0;\n\n .applied-filters-content-panel {\n background-color: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-content-panel-background-color, #f4f4f4);\n margin: 0;\n padding: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-content-panel-padding, 0);\n }\n\n .applied-filters-label {\n color: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-label-color, #4d5153);\n display: inline-block;\n font-size: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-label-font-size, 0.92857rem);\n font-weight: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-label-font-weight, 400);\n vertical-align: top;\n }\n }\n \n .terra-filter-pills-doc-example-applied-filters-toolbar {\n padding-bottom: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-toolbar-padding-bottom, 0.42857rem);\n padding-left: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-toolbar-padding-left, 0.71429rem);\n padding-right: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-toolbar-padding-right, 0.35714rem);\n padding-top: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-toolbar-padding-top, 0.42857rem);\n\n > [class*='Toolbar-module__item___'] {\n display: block;\n margin: 0;\n padding: 0;\n width: 100%;\n }\n\n .toolbar-flex-container {\n display: flex;\n margin: 0;\n min-width: 100%;\n padding: 0;\n width: 100%;\n }\n\n .toolbar-flex-item-start,\n .toolbar-flex-item-fill,\n .toolbar-flex-item-end {\n margin: 0;\n padding: 0;\n }\n\n .toolbar-flex-item-start {\n flex: 0 0 auto;\n margin-right: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-flex-item-start-margin-right, 0.57143rem);\n padding-top: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-flex-item-start-padding-top, 0.5rem);\n vertical-align: top;\n }\n\n .toolbar-flex-item-fill {\n flex: 1 1 auto;\n min-width: 3rem;\n vertical-align: top;\n }\n\n .toolbar-flex-item-end {\n flex: 0 0 auto;\n margin-left: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-flex-item-end-margin-left, 0);\n padding-top: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-flex-item-end-padding-top, 0.10714rem);\n vertical-align: top;\n }\n }\n\n\n\n // Truncated Label Example\n .terra-filter-pills-doc-example-truncated-label-container {\n background-color: var(--terra-framework-docs-filter-pills-doc-example-truncated-label-container-background-color, #f4f4f4);\n border: var(--terra-framework-docs-filter-pills-doc-example-truncated-label-container-border, 2px dashed #d1d1d1);\n border-bottom: 0 none;\n border-top: 0 none;\n box-sizing: content-box;\n max-width: 20rem;\n min-height: var(--terra-framework-docs-filter-pills-doc-example-truncated-label-container-min-height, 2.28571rem);\n padding: var(--terra-framework-docs-filter-pills-doc-example-truncated-label-container-padding, 0.71428rem 0.21428rem 0.71428rem 0.21428rem);\n width: 100%;\n }\n\n // Search Terms Example (has Visible Label)\n .terra-filter-pills-doc-example-search-terms {\n background-color: var(--terra-framework-docs-filter-pills-doc-example-search-terms-background-color, #ecf3ff);\n box-sizing: border-box;\n min-height: var(--terra-framework-docs-filter-pills-doc-example-search-terms-min-height, 7.5rem);\n padding: var(--terra-framework-docs-filter-pills-doc-example-search-terms-padding, 0.71428rem 0.85714rem);\n\n .search-terms-label {\n color: var(--terra-framework-docs-filter-pills-doc-example-search-terms-label-color, #1a2f4b);\n display: block;\n font-size: var(--terra-framework-docs-filter-pills-doc-example-search-terms-label-font-size, 1.07142rem);\n font-weight: var(--terra-framework-docs-filter-pills-doc-example-search-terms-label-font-weight, 500);\n padding-bottom: var(--terra-framework-docs-filter-pills-doc-example-search-terms-label-padding-bottom, 0.21428rem);\n padding-left: var(--terra-framework-docs-filter-pills-doc-example-search-terms-label-padding-left, 0.14285rem);\n }\n }\n} \n\n")))}h.isMDXComponent=!0;var y=function(e){var l=e.title,t=e.description,a=e.isExpanded;return r.createElement(x.A,{title:l||"Applied Filters Example",description:t,example:r.createElement(m.A,null),exampleCssSrc:r.createElement(h,null),exampleSrc:r.createElement(u,null),isExpanded:a})},g=t(58568),v=["components"],C={};function w(e){var l=e.components,t=(0,n.A)(e,v);return(0,i.mdx)("wrapper",(0,a.A)({},C,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React, { useState } from 'react';\nimport classNamesBind from 'classnames/bind';\nimport { Button as DocsButton } from '@cerner/terra-docs';\nimport FilterPills, { Pill } from '@cerner/terra-pills';\nimport ThemeContext from 'terra-theme-context';\nimport styles from './FilterPillsCommon.module.scss';\n\nconst cx = classNamesBind.bind(styles);\n\nconst BasicLabelExample = () => {\n const theme = React.useContext(ThemeContext);\n\n const pillsData = [\n {\n label: 'Asthma',\n id: 'terra-filter-pills-asthma',\n },\n {\n label: 'Bronchitis',\n id: 'terra-filter-pills-bronchitis',\n },\n {\n label: 'Fibro',\n id: 'terra-filter-pills-fibro',\n },\n ];\n const [pills, setPills] = useState(pillsData);\n\n const handleOnRemove = (id, metaData) => {\n const pillsArray = pills;\n pillsArray.splice(metaData.index, 1);\n setPills([...pillsArray]);\n };\n\n const handleResetClick = () => {\n setPills(pillsData);\n };\n\n return (\n <>\n \n {pills.map((pill, index) => (\n \n ))}\n \n \n Reset Example\n \n \n );\n};\n\nBasicLabelExample.contextType = ThemeContext;\n\nexport default BasicLabelExample;\n\n")))}w.isMDXComponent=!0;var N=function(e){var l=e.title,t=e.description,a=e.isExpanded;return r.createElement(x.A,{title:l||"Basic Label Example",description:t,example:r.createElement(g.A,null),exampleCssSrc:r.createElement(h,null),exampleSrc:r.createElement(w,null),isExpanded:a})},T=t(66756),P=["components"],_={};function k(e){var l=e.components,t=(0,n.A)(e,P);return(0,i.mdx)("wrapper",(0,a.A)({},_,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React, { useState } from 'react';\nimport classNamesBind from 'classnames/bind';\nimport { Button as DocsButton } from '@cerner/terra-docs';\nimport FilterPills, { Pill } from '@cerner/terra-pills';\nimport ThemeContext from 'terra-theme-context';\nimport styles from './FilterPillsCommon.module.scss';\n\nconst cx = classNamesBind.bind(styles);\n\nconst CategoryLabelExample = () => {\n const theme = React.useContext(ThemeContext);\n\n const pillsData = [\n {\n label: 'Asthma',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-asthma',\n },\n {\n label: 'Bronchitis',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-bronchitis',\n },\n {\n label: 'Fibro',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-fibro',\n },\n ];\n const [pills, setPills] = useState(pillsData);\n\n const handleResetClick = () => {\n setPills(pillsData);\n };\n\n const handleOnRemove = (id, metaData) => {\n const pillsArray = pills;\n pillsArray.splice(metaData.index, 1);\n setPills([...pillsArray]);\n };\n\n return (\n <>\n \n {pills.map((pill, index) => (\n \n ))}\n \n \n Reset Example\n \n \n );\n};\n\nCategoryLabelExample.contextType = ThemeContext;\n\nexport default CategoryLabelExample;\n\n")))}k.isMDXComponent=!0;var D=function(e){var l=e.title,t=e.description,a=e.isExpanded;return r.createElement(x.A,{title:l||"Category Label Example",description:t,example:r.createElement(T.A,null),exampleCssSrc:r.createElement(h,null),exampleSrc:r.createElement(k,null),isExpanded:a})},R=t(78612),E=["components"],A={};function F(e){var l=e.components,t=(0,n.A)(e,E);return(0,i.mdx)("wrapper",(0,a.A)({},A,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React, { useState } from 'react';\nimport classNamesBind from 'classnames/bind';\nimport { Button as DocsButton } from '@cerner/terra-docs';\nimport FilterPills, { Pill } from '@cerner/terra-pills';\nimport ThemeContext from 'terra-theme-context';\nimport styles from './FilterPillsCommon.module.scss';\n\nconst cx = classNamesBind.bind(styles);\n\nconst FilterPillsWithLongLabel = () => {\n const theme = React.useContext(ThemeContext);\n\n const pillsData = [\n {\n label: 'Chronic Obstructive Pulmonary Disease (COPD)',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-copd',\n },\n ];\n const [pills, setPills] = useState(pillsData);\n\n const handleOnRemove = (id, metaData) => {\n const pillsArray = pills;\n pillsArray.splice(metaData.index, 1);\n setPills([...pillsArray]);\n };\n\n const handleResetClick = () => {\n setPills(pillsData);\n };\n\n return (\n <>\n
\n \n {pills.map((pill, index) => (\n \n ))}\n \n
\n \n Reset Example\n \n \n );\n};\n\nFilterPillsWithLongLabel.contextType = ThemeContext;\n\nexport default FilterPillsWithLongLabel;\n\n")))}F.isMDXComponent=!0;var L=function(e){var l=e.title,t=e.description,a=e.isExpanded;return r.createElement(x.A,{title:l||"Truncated Label Example",description:t,example:r.createElement(R.A,null),exampleCssSrc:r.createElement(h,null),exampleSrc:r.createElement(F,null),isExpanded:a})},O=t(86644),B=["components"],j={};function S(e){var l=e.components,t=(0,n.A)(e,B);return(0,i.mdx)("wrapper",(0,a.A)({},j,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React, { useState } from 'react';\nimport classNamesBind from 'classnames/bind';\nimport { Button as DocsButton } from '@cerner/terra-docs';\nimport FilterPills, { Pill } from '@cerner/terra-pills';\nimport Text from 'terra-text';\nimport ThemeContext from 'terra-theme-context';\nimport styles from './FilterPillsCommon.module.scss';\n\nconst cx = classNamesBind.bind(styles);\n\nconst VisibleLabelExample = () => {\n const theme = React.useContext(ThemeContext);\n\n const pillsData = [\n {\n label: 'Asthma',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-asthma',\n },\n {\n label: 'Bronchitis',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-bronchitis',\n },\n {\n label: 'Fibro',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-fibro',\n },\n ];\n const [pills, setPills] = useState(pillsData);\n\n const handleOnRemove = (id, metaData) => {\n const pillsArray = pills;\n pillsArray.splice(metaData.index, 1);\n setPills([...pillsArray]);\n };\n\n const handleResetClick = () => {\n setPills(pillsData);\n };\n\n const patientEducationSearchTermsLabel = 'Patient Education Search Terms:';\n const patientEducationSearchTermsLabelId = 'terra-filter-pills-example-patient-education-search-terms-label';\n\n return (\n <>\n
\n \n {patientEducationSearchTermsLabel}\n \n \n {pills.map((pill, index) => (\n \n ))}\n \n
\n \n Reset Example\n \n \n );\n};\n\nVisibleLabelExample.contextType = ThemeContext;\n\nexport default VisibleLabelExample;\n\n")))}S.isMDXComponent=!0;var W=function(e){var l=e.title,t=e.description,a=e.isExpanded;return r.createElement(x.A,{title:l||"Visible Label Example",description:t,example:r.createElement(O.A,null),exampleCssSrc:r.createElement(h,null),exampleSrc:r.createElement(S,null),isExpanded:a})},M=t(12883),I=["components"],q={},Z="wrapper";function X(e){var l=e.components,t=(0,n.A)(e,I);return(0,i.mdx)(Z,(0,a.A)({},q,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)(M.Ay,{mdxType:"PropsTable"},(0,i.mdx)(M.fI,{key:"ROW1",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"ariaLabel"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"string\n"))),(0,i.mdx)(M.YZ,{isRequired:!0,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"The string that labels the collection of pills, used in cases where the text label is not visible on\nthe screen and required for minimum accessibility standards. Providing this prop adds the ",(0,i.mdx)("inlineCode",{parentName:"p"},"aria-label"),"\nattribute to the Pill List container element. (Required)"))),(0,i.mdx)(M.fI,{key:"ROW2",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"ariaLabelledBy"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"string\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"If a visible text label is used with the collection of pills, provide a string of the ID for the html\nelement containing the visible text label. Supplying the 'ariaLabelledBy' prop will override the 'ariaLabel'\nprop and adds the ",(0,i.mdx)("inlineCode",{parentName:"p"},"aria-labelledby")," attribute instead to the Pill List container element."),(0,i.mdx)("p",null,(0,i.mdx)("img",{parentName:"p",src:"https://badgen.net/badge/UX/Accessibility/blue",alt:"IMPORTANT"})," For best practices, ensure the visible text\nin the html element ",(0,i.mdx)("inlineCode",{parentName:"p"},"id")," provided to the Pill List ",(0,i.mdx)("inlineCode",{parentName:"p"},"ariaLabelledby")," prop matches the text provided to the\n",(0,i.mdx)("inlineCode",{parentName:"p"},"ariaLabel")," prop, for consistency in the case of fallback or errors."))),(0,i.mdx)(M.fI,{key:"ROW3",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"ariaDescribedBy"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"string\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"If additional visible information text is used, provide a string containing the IDs for html elements that\nhelp describe the intent of the group of pills."))),(0,i.mdx)(M.fI,{key:"ROW4",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"isCollapsible"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"bool\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"false\n"))),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"Indicates if the Pills container is rolled up or not."))),(0,i.mdx)(M.fI,{key:"ROW5",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"onRemove"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"func\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"Callback function to remove a pill, returns 'id' and 'metadata'.")))))}X.isMDXComponent=!0;var V=["components"],H={},U="wrapper";function $(e){var l=e.components,t=(0,n.A)(e,V);return(0,i.mdx)(U,(0,a.A)({},H,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)(M.Ay,{mdxType:"PropsTable"},(0,i.mdx)(M.fI,{key:"ROW1",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"id"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"string\n"))),(0,i.mdx)(M.YZ,{isRequired:!0,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"The html 'id' attribute for the pill, needed for proper keyboard interactions. (Required & must be unique)."))),(0,i.mdx)(M.fI,{key:"ROW2",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"label"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"string\n"))),(0,i.mdx)(M.YZ,{isRequired:!0,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"The label text for the pill. (Required)."))),(0,i.mdx)(M.fI,{key:"ROW3",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"labelCategory"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"string\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"Secondary label text for the pill that displays a filter category."))),(0,i.mdx)(M.fI,{key:"ROW4",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"metaData"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"object\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"The associated metaData to be returned in the onRemove callback."))),(0,i.mdx)(M.fI,{key:"ROW5",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"onRemove"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"func\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"A callback function to execute when the pill is removed. Returns id, metadata.")))))}$.isMDXComponent=!0;var Y=["components"],z={},G="wrapper";function K(e){var l=e.components,t=(0,n.A)(e,Y);return(0,i.mdx)(G,(0,a.A)({},z,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)(o.E,{mdxType:"Badge"}),(0,i.mdx)("h1",{id:"terra-filter-pills"},"Terra Filter Pills"),(0,i.mdx)("p",null,"Pills are generally used to assign a label or keyword to user interface (UI) objects, defining a non-hierarchical group. They are used to visually label UI objects for quick recognition. These labels can be generated either by the system or users entering data."),(0,i.mdx)("p",null,"When using a filter workflow, which removes items from a view that do not satisfy specific criteria, Filter Pills can provide indication as to which facet categories and attributes the user can narrow the content by, helping to further divide content in order to assist users in refining large results."),(0,i.mdx)("h2",{id:"what-the-component-is"},"What the component is"),(0,i.mdx)("p",null,"Filter Pills are comprised of the following:"),(0,i.mdx)("ul",null,(0,i.mdx)("li",{parentName:"ul"},"Label ",(0,i.mdx)("em",{parentName:"li"},"(clickable if truncated to disclose the full label)")),(0,i.mdx)("li",{parentName:"ul"},"An optional category to help describe the label"),(0,i.mdx)("li",{parentName:"ul"},"An interactive button to remove the filter")),(0,i.mdx)("h2",{id:"what-the-component-is-not"},"What the component is not"),(0,i.mdx)("ul",null,(0,i.mdx)("li",{parentName:"ul"},"Although similar, pills and tags have their own use cases and best practices for when they should be used within the UI. See ",(0,i.mdx)("a",{parentName:"li",href:"https://engineering.cerner.com/terra-ui/components/terra-tag/tag/tag"},"tags")," for more information."),(0,i.mdx)("li",{parentName:"ul"},"Although the filtering workflow may narrow down content to drive the user's workflow, it should not be used in the place of primary or secondary navigation.")),(0,i.mdx)("h2",{id:"getting-started"},"Getting Started"),(0,i.mdx)("ul",null,(0,i.mdx)("li",{parentName:"ul"},"Install with ",(0,i.mdx)("a",{parentName:"li",href:"https://www.npmjs.com/"},"npmjs"),":",(0,i.mdx)("ul",{parentName:"li"},(0,i.mdx)("li",{parentName:"ul"},(0,i.mdx)("inlineCode",{parentName:"li"},"npm install terra-pills"))))),(0,i.mdx)("h2",{id:"peer-dependencies"},"Peer Dependencies"),(0,i.mdx)("p",null,"This component requires the following peer dependencies be installed in your app for the component to properly function."),(0,i.mdx)("table",null,(0,i.mdx)("thead",{parentName:"table"},(0,i.mdx)("tr",{parentName:"thead"},(0,i.mdx)("th",{parentName:"tr",align:null},"Peer Dependency"),(0,i.mdx)("th",{parentName:"tr",align:null},"Version"))),(0,i.mdx)("tbody",{parentName:"table"},(0,i.mdx)("tr",{parentName:"tbody"},(0,i.mdx)("td",{parentName:"tr",align:null},"react"),(0,i.mdx)("td",{parentName:"tr",align:null},"^16.8.5")),(0,i.mdx)("tr",{parentName:"tbody"},(0,i.mdx)("td",{parentName:"tr",align:null},"react-dom"),(0,i.mdx)("td",{parentName:"tr",align:null},"^16.8.5")),(0,i.mdx)("tr",{parentName:"tbody"},(0,i.mdx)("td",{parentName:"tr",align:null},"react-intl"),(0,i.mdx)("td",{parentName:"tr",align:null},">=2.8.0 <6.0.0")))),(0,i.mdx)("h2",{id:"usage"},"Usage"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import FilterPills, { Pill } from '@cerner/terra-pills';\n")),(0,i.mdx)("h2",{id:"component-features"},"Component Features"),(0,i.mdx)("ul",null,(0,i.mdx)("li",{parentName:"ul"},(0,i.mdx)("a",{parentName:"li",href:"https://engineering.cerner.com/terra-ui/about/terra-ui/component-standards#cross-browser-support"},"Cross-Browser Support")),(0,i.mdx)("li",{parentName:"ul"},(0,i.mdx)("a",{parentName:"li",href:"https://engineering.cerner.com/terra-ui/about/terra-ui/component-standards#responsive-support"},"Responsive Support")),(0,i.mdx)("li",{parentName:"ul"},(0,i.mdx)("a",{parentName:"li",href:"https://engineering.cerner.com/terra-ui/about/terra-ui/component-standards#mobile-support"},"Mobile Support"))),(0,i.mdx)(d.A,{newline:3,mdxType:"Whitespace"}),(0,i.mdx)("h2",{id:"introduction"},"Introduction:"),(0,i.mdx)("p",null,"Filter Pills can be added to a variety of situations and compositions when it is necessary to display the selected facets being applied to a filtered layout. They can be constructed into in various higher-order component patterns like an ",(0,i.mdx)("strong",{parentName:"p"},"Applied Filters")," toolbar, and similar locations that the applied category labels are removable by the user. They also have the ability to flex layouts between an expanded state showing all filter pills, and a collapsed state showing just a single line and roll-up toggle to show and hide the additional filter pills."),(0,i.mdx)(y,{title:"Introduction to Filter Pills: Applied Filters Toolbar",mdxType:"AppliedFiltersExample"}),(0,i.mdx)(d.A,{newline:3,mdxType:"Whitespace"}),(0,i.mdx)("h2",{id:"how-to-construct"},"How To Construct:"),(0,i.mdx)("h3",{id:"filter-pill-with-a-basic-label"},"Filter Pill with a basic Label"),(0,i.mdx)("p",null,"Filter Pills in their standard form display a single keyword or short phrase as their label. They are also removable, which makes them interactive with the clickable remove (\"X\") button, as well as by interactive by keyboard, able to be removed by pressing the 'delete' or 'backspace' key when they are in focus."),(0,i.mdx)(N,{title:"Basic Label",mdxType:"BasicLabelExample"}),(0,i.mdx)(d.A,{mdxType:"Whitespace"}),(0,i.mdx)("h3",{id:"adding-an-optional-category-to-the-label"},"Adding an optional Category to the Label"),(0,i.mdx)("p",null,"Additional category terms can be added to the single keyword or short phrase label to provide additional clarity in situations where the same keyword label may appear twice (but apply to different groupings), or is needed to help indicate to a user the category groupings the labels belong to."),(0,i.mdx)(D,{title:"Adding a Label Category",mdxType:"CategoryLabelExample"}),(0,i.mdx)(d.A,{mdxType:"Whitespace"}),(0,i.mdx)("h3",{id:"long-labels--truncation-a-popup-is-added"},"Long Labels & Truncation: A Popup is Added"),(0,i.mdx)("p",null,"In cases where the width of the space is constrained and the text label for the Filter Pill is unable to fully display, a popup will automatically be added, the label will become an interactive target. Clicking the label will disclose the full Filter Pill text label (and category if applied) as the contents. No additional content can be added to the popup."),(0,i.mdx)(L,{title:"Selectable Label when Truncated",mdxType:"TruncatedLabelExample"}),(0,i.mdx)(d.A,{newline:3,mdxType:"Whitespace"}),(0,i.mdx)("h2",{id:"usage-considerations"},"Usage Considerations:"),(0,i.mdx)("h3",{id:"adding-a-visible-label"},"Adding a Visible Label"),(0,i.mdx)("p",null,"Filter Pills are commonly used in a group or list, which must include a label to indicate the intent or purpose of the contents of the list. Accordingly, the filter pills component requires the ",(0,i.mdx)("inlineCode",{parentName:"p"},"ariaLabel")," prop for accessibility minimum standards, to give a screen reader user the proper context of the list, but it is not visible to users."),(0,i.mdx)(s.Notice,{variant:"ux-recommendation",ariaLevel:"3",mdxType:"Notice"},(0,i.mdx)("p",null,"As a best practice, the Filter Pills component should be accompanied by a visible label, which may need to be styled and positioned according to a specific usage and should be done so by each consumer. Use the ",(0,i.mdx)("inlineCode",{parentName:"p"},"ariaLabelledBy")," prop in Filter Pills, and provide it the 'id' of the visible label or heading, which will allow for the visible text to be accessibly connected to the pills. Read more details about the construction method in the ",(0,i.mdx)("a",{parentName:"p",href:"/terra-framework/pull/2158/components/cerner-terra-framework-docs/pills/accessibility-guide"},"Accessibility Guide")," and the example below.")),(0,i.mdx)("p",null,"Note: ",(0,i.mdx)("em",{parentName:"p"},"The visible label referenced by the ",(0,i.mdx)("inlineCode",{parentName:"em"},"ariaLabelledBy")," prop and the ",(0,i.mdx)("inlineCode",{parentName:"em"},"ariaLabel")," prop should be set to the same string values for fallback protection, even though when done properly ",(0,i.mdx)("inlineCode",{parentName:"em"},"ariaLabelledBy")," should override ",(0,i.mdx)("inlineCode",{parentName:"em"},"ariaLabel")," and the 'aria-labelledby' property will replace the 'aria-label' property in the compiled markup.")),(0,i.mdx)(W,{title:"Adding a Styled Label or Heading",mdxType:"VisibleLabelExample"}),(0,i.mdx)(d.A,{mdxType:"Whitespace"}),(0,i.mdx)("h3",{id:"incorrect-use"},"Incorrect Use"),(0,i.mdx)("p",null,"Terra Filter Pills contains a specific reusable subcomponent ",(0,i.mdx)("inlineCode",{parentName:"p"},""),". However, the inner 'Pill' subcomponent is not intended to be used alone, or independently without being used properly as children of the ",(0,i.mdx)("inlineCode",{parentName:"p"},"")," parent container. If used as standalone, the ",(0,i.mdx)("inlineCode",{parentName:"p"},"")," offers ",(0,i.mdx)("a",{parentName:"p",href:"/terra-framework/pull/2158/components/cerner-terra-framework-docs/pills/accessibility-guide"},"no support for accessibility")," or correct behaviors."),(0,i.mdx)("p",null,"The ",(0,i.mdx)("inlineCode",{parentName:"p"},"")," subcomponent was created and tested with the express intent of always being used as children of the ",(0,i.mdx)("inlineCode",{parentName:"p"},"")," component."),(0,i.mdx)(s.Notice,{variant:"not-supported",ariaLevel:"3",mdxType:"Notice"},(0,i.mdx)("p",null,"The example below shows an implementation with the intention of removing the parent ",(0,i.mdx)("inlineCode",{parentName:"p"},"")," component, such that only a single (or series) of the ",(0,i.mdx)("inlineCode",{parentName:"p"},"")," subcomponent remains:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-diff"},'
\n- \n \n- \n
\n')),(0,i.mdx)("p",null,"Consumers should be aware to not intentionally create the above situation. ")),(0,i.mdx)(d.A,{newline:5,mdxType:"Whitespace"}),(0,i.mdx)("h2",{id:"props-for-filter-pills"},"Props for Filter Pills"),(0,i.mdx)(X,{mdxType:"FilterPillsPropsTable"}),(0,i.mdx)("h2",{id:"props-for-pill-subcomponent"},"Props for Pill subcomponent"),(0,i.mdx)($,{mdxType:"PillsPropsTable"}),(0,i.mdx)("h2",{id:"testing"},"Testing"),(0,i.mdx)("p",null,"Pills uses ",(0,i.mdx)("inlineCode",{parentName:"p"},"uuid")," which changes the component's description id dynamically. To mock the return value with the Jest testing library, ",(0,i.mdx)("inlineCode",{parentName:"p"},"jest.spyOn")," can be used."),(0,i.mdx)("p",null,"If Enzyme ",(0,i.mdx)("inlineCode",{parentName:"p"},"shallow")," rendering is being used for the tests then the mock may not be required. However, if ",(0,i.mdx)("inlineCode",{parentName:"p"},"mount")," is used then ",(0,i.mdx)("inlineCode",{parentName:"p"},"uuid")," should be mocked as shown below:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-js"},"import { v4 as uuidv4 } from 'uuid';\n\nlet mockSpyUuid;\n\n// using a variable may result in failures. For best results, mock return value.\nbeforeAll(() => {\n mockSpyUuid = jest.spyOn(uuidv4, 'v4').mockReturnValue('00000000-0000-0000-0000-000000000000');\n});\n\n// restore the mock\nafterAll(() => {\n mockSpyUuid.mockRestore();\n});\n\n")))}K.isMDXComponent=!0},70514:function(e,l,t){t.d(l,{E:function(){return r}});var a=t(96540),n=t(55713),r=function(e){var l=e.url;return a.createElement(n.A,{src:"https://github.com/cerner/terra-framework/tree/main/packages/terra-pills",name:"@cerner/terra-pills",version:"1.26.0",url:l})}},47849:function(e,l,t){var a=t(24994);l.A=void 0;var n=a(t(94634)),r=a(t(91847)),i=a(t(96540)),o=a(t(5556)),s=a(t(46942)),d=a(t(67967)),m=a(t(29146)),p=["newline"],c=d.default.bind(m.default),u={newline:o.default.oneOf([1,2,3,4,5,6,7,8])},x=function(e){var l=e.newline,t=(0,r.default)(e,p),a=(0,s.default)(c("whitespace","newline-".concat(l)),t.className);return i.default.createElement("div",(0,n.default)({},t,{className:a,"aria-hidden":"true"}))};x.propTypes=u,x.defaultProps={newline:1};l.A=x},50548:function(e,l,t){var a=t(24994),n=t(73738);l.A=void 0;var r=a(t(41132)),i=a(t(85715)),o=h(t(96540)),s=a(t(67967)),d=t(74647),m=a(t(23986)),p=h(t(90180)),c=a(t(39716)),u=a(t(23695)),x=a(t(6740)),f=a(t(25110));function b(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,t=new WeakMap;return(b=function(e){return e?t:l})(e)}function h(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var t=b(l);if(t&&t.has(e))return t.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,t&&t.set(e,a),a}var y=s.default.bind(f.default),g=function(){for(var e=o.default.useContext(u.default),l=[],t=1;t<11;t+=1){var a={label:"Selection ".concat(t),labelCategory:"Category",id:"terra-filter-pills-category-selection-".concat(t)};l.push(a)}var n=(0,o.useState)(l),s=(0,i.default)(n,2),f=s[0],b=s[1],h="Applied Filters:";return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:y(["terra-filter-pills-doc-example-applied-filters",e.className])},o.default.createElement(x.default,{className:y("terra-filter-pills-doc-example-applied-filters-toolbar")},o.default.createElement("div",{className:y("toolbar-flex-container")},o.default.createElement("div",{className:y("toolbar-flex-item-start")},o.default.createElement(c.default,{className:y("applied-filters-label")},h)),o.default.createElement("div",{className:y("toolbar-flex-item-fill")},o.default.createElement(p.default,{ariaLabel:h,isCollapsible:!0,onRemove:function(e,l){var t=f;t.splice(l.index,1),b((0,r.default)(t))}},f.map((function(e,l){return o.default.createElement(p.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:l}})})))),o.default.createElement("div",{className:y("toolbar-flex-item-end")},o.default.createElement(m.default,{text:"Clear All Filters","aria-label":"Clear All Applied Filters",variant:"de-emphasis",onClick:function(){return b([])}})))),o.default.createElement("div",{className:y("applied-filters-content-panel")},o.default.createElement(d.Placeholder,{title:"Filtered Content Goes Here"}))),o.default.createElement(d.Button,{className:y(["terra-docs-example-reset-button",e.className]),onClick:function(){b(l)}},"Reset Example"))};g.contextType=u.default;l.A=g},58568:function(e,l,t){var a=t(24994),n=t(73738);l.A=void 0;var r=a(t(41132)),i=a(t(85715)),o=x(t(96540)),s=a(t(67967)),d=t(74647),m=x(t(90180)),p=a(t(23695)),c=a(t(25110));function u(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,t=new WeakMap;return(u=function(e){return e?t:l})(e)}function x(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var t=u(l);if(t&&t.has(e))return t.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,t&&t.set(e,a),a}var f=s.default.bind(c.default),b=function(){var e=o.default.useContext(p.default),l=[{label:"Asthma",id:"terra-filter-pills-asthma"},{label:"Bronchitis",id:"terra-filter-pills-bronchitis"},{label:"Fibro",id:"terra-filter-pills-fibro"}],t=(0,o.useState)(l),a=(0,i.default)(t,2),n=a[0],s=a[1];return o.default.createElement(o.default.Fragment,null,o.default.createElement(m.default,{ariaLabel:"Demonstration example of Filter Pills with basic labels",onRemove:function(e,l){var t=n;t.splice(l.index,1),s((0,r.default)(t))}},n.map((function(e,l){return o.default.createElement(m.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:l}})}))),o.default.createElement(d.Button,{className:f(["terra-docs-example-reset-button",e.className]),onClick:function(){s(l)}},"Reset Example"))};b.contextType=p.default;l.A=b},66756:function(e,l,t){var a=t(24994),n=t(73738);l.A=void 0;var r=a(t(41132)),i=a(t(85715)),o=x(t(96540)),s=a(t(67967)),d=t(74647),m=x(t(90180)),p=a(t(23695)),c=a(t(25110));function u(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,t=new WeakMap;return(u=function(e){return e?t:l})(e)}function x(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var t=u(l);if(t&&t.has(e))return t.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,t&&t.set(e,a),a}var f=s.default.bind(c.default),b=function(){var e=o.default.useContext(p.default),l=[{label:"Asthma",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-asthma"},{label:"Bronchitis",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-bronchitis"},{label:"Fibro",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-fibro"}],t=(0,o.useState)(l),a=(0,i.default)(t,2),n=a[0],s=a[1];return o.default.createElement(o.default.Fragment,null,o.default.createElement(m.default,{ariaLabel:"Demonstration example of Filter Pills with category labels",onRemove:function(e,l){var t=n;t.splice(l.index,1),s((0,r.default)(t))}},n.map((function(e,l){return o.default.createElement(m.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:l}})}))),o.default.createElement(d.Button,{className:f(["terra-docs-example-reset-button",e.className]),onClick:function(){s(l)}},"Reset Example"))};b.contextType=p.default;l.A=b},78612:function(e,l,t){var a=t(24994),n=t(73738);l.A=void 0;var r=a(t(41132)),i=a(t(85715)),o=x(t(96540)),s=a(t(67967)),d=t(74647),m=x(t(90180)),p=a(t(23695)),c=a(t(25110));function u(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,t=new WeakMap;return(u=function(e){return e?t:l})(e)}function x(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var t=u(l);if(t&&t.has(e))return t.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,t&&t.set(e,a),a}var f=s.default.bind(c.default),b=function(){var e=o.default.useContext(p.default),l=[{label:"Chronic Obstructive Pulmonary Disease (COPD)",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-copd"}],t=(0,o.useState)(l),a=(0,i.default)(t,2),n=a[0],s=a[1];return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:f(["terra-filter-pills-doc-example-truncated-label-container",e.className])},o.default.createElement(m.default,{ariaLabel:"Demonstration example of a Filter Pill with a long label",onRemove:function(e,l){var t=n;t.splice(l.index,1),s((0,r.default)(t))}},n.map((function(e,l){return o.default.createElement(m.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:l}})})))),o.default.createElement(d.Button,{className:f(["terra-docs-example-reset-button",e.className]),onClick:function(){s(l)}},"Reset Example"))};b.contextType=p.default;l.A=b},86644:function(e,l,t){var a=t(24994),n=t(73738);l.A=void 0;var r=a(t(41132)),i=a(t(85715)),o=f(t(96540)),s=a(t(67967)),d=t(74647),m=f(t(90180)),p=a(t(39716)),c=a(t(23695)),u=a(t(25110));function x(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,t=new WeakMap;return(x=function(e){return e?t:l})(e)}function f(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var t=x(l);if(t&&t.has(e))return t.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,t&&t.set(e,a),a}var b=s.default.bind(u.default),h=function(){var e=o.default.useContext(c.default),l=[{label:"Asthma",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-asthma"},{label:"Bronchitis",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-bronchitis"},{label:"Fibro",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-fibro"}],t=(0,o.useState)(l),a=(0,i.default)(t,2),n=a[0],s=a[1],u="Patient Education Search Terms:",x="terra-filter-pills-example-patient-education-search-terms-label";return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:b(["terra-filter-pills-doc-example-search-terms",e.className])},o.default.createElement(p.default,{id:x,className:b("search-terms-label")},u),o.default.createElement(m.default,{ariaLabelledBy:x,ariaLabel:u,onRemove:function(e,l){var t=n;t.splice(l.index,1),s((0,r.default)(t))}},n.map((function(e,l){return o.default.createElement(m.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:l}})})))),o.default.createElement(d.Button,{className:b(["terra-docs-example-reset-button",e.className]),onClick:function(){s(l)}},"Reset Example"))};h.contextType=c.default;l.A=h},29146:function(e,l,t){t.r(l),l.default={whitespace:"Whitespace-module__whitespace___ZHva5","newline-1":"Whitespace-module__newline-1___aPEyq","newline-2":"Whitespace-module__newline-2___G+-sh","newline-3":"Whitespace-module__newline-3___4OJK-","newline-4":"Whitespace-module__newline-4___3Z0jB","newline-5":"Whitespace-module__newline-5___lBkK-","newline-6":"Whitespace-module__newline-6___FT7fE","newline-7":"Whitespace-module__newline-7___OMery","newline-8":"Whitespace-module__newline-8___vvoWz"}},25110:function(e,l,t){t.r(l),l.default={"clinical-lowlight-theme":"FilterPillsCommon-module__clinical-lowlight-theme___kufCR","orion-fusion-theme":"FilterPillsCommon-module__orion-fusion-theme___DX+Eh","terra-docs-example-reset-button":"FilterPillsCommon-module__terra-docs-example-reset-button___4QxNs","terra-filter-pills-doc-example-applied-filters":"FilterPillsCommon-module__terra-filter-pills-doc-example-applied-filters___FHD3-","applied-filters-content-panel":"FilterPillsCommon-module__applied-filters-content-panel___UliYh","applied-filters-label":"FilterPillsCommon-module__applied-filters-label___qK0hr","terra-filter-pills-doc-example-applied-filters-toolbar":"FilterPillsCommon-module__terra-filter-pills-doc-example-applied-filters-toolbar___XhHa0","toolbar-flex-container":"FilterPillsCommon-module__toolbar-flex-container___5Vbzr","toolbar-flex-item-start":"FilterPillsCommon-module__toolbar-flex-item-start___-CPMv","toolbar-flex-item-fill":"FilterPillsCommon-module__toolbar-flex-item-fill___vGICq","toolbar-flex-item-end":"FilterPillsCommon-module__toolbar-flex-item-end___kRZI6","terra-filter-pills-doc-example-truncated-label-container":"FilterPillsCommon-module__terra-filter-pills-doc-example-truncated-label-container___sgh3Q","terra-filter-pills-doc-example-search-terms":"FilterPillsCommon-module__terra-filter-pills-doc-example-search-terms___my1Na","search-terms-label":"FilterPillsCommon-module__search-terms-label___ABfLO"}}}]); \ No newline at end of file +"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[76497],{76497:function(e,l,t){t.r(l),t.d(l,{default:function(){return K}});var a=t(58168),n=t(53986),r=t(96540),i=t(36665),o=t(70514),s=t(74647),d=t(47849),m=t(50548),p=["components"],c={};function u(e){var l=e.components,t=(0,n.A)(e,p);return(0,i.mdx)("wrapper",(0,a.A)({},c,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React, { useState } from 'react';\nimport classNamesBind from 'classnames/bind';\nimport { Button as DocsButton, Placeholder } from '@cerner/terra-docs';\nimport Button from 'terra-button';\nimport FilterPills, { Pill } from '@cerner/terra-pills';\nimport Text from 'terra-text';\nimport ThemeContext from 'terra-theme-context';\nimport Toolbar from 'terra-toolbar';\nimport styles from './FilterPillsCommon.module.scss';\n\nconst cx = classNamesBind.bind(styles);\n\nconst AppliedFiltersExample = () => {\n const theme = React.useContext(ThemeContext);\n\n const pillsData = [];\n for (let pillCount = 1; pillCount < 11; pillCount += 1) {\n const pillData = {\n label: `Selection ${pillCount}`,\n labelCategory: 'Category',\n id: `terra-filter-pills-category-selection-${pillCount}`,\n };\n pillsData.push(pillData);\n }\n const [pills, setPills] = useState(pillsData);\n\n const handleOnRemove = (id, metaData) => {\n const pillsArray = pills;\n pillsArray.splice(metaData.index, 1);\n setPills([...pillsArray]);\n };\n\n const handleResetClick = () => {\n setPills(pillsData);\n };\n\n const appliedFiltersLabel = 'Applied Filters:';\n\n return (\n <>\n
\n \n
\n
\n \n {appliedFiltersLabel}\n \n
\n
\n \n {pills.map((pill, index) => (\n \n ))}\n \n
\n
\n setPills([])}\n />\n
\n
\n
\n
\n \n
\n
\n \n Reset Example\n \n \n );\n};\n\nAppliedFiltersExample.contextType = ThemeContext;\n\nexport default AppliedFiltersExample;\n\n")))}u.isMDXComponent=!0;var x=t(201),f=["components"],b={};function h(e){var l=e.components,t=(0,n.A)(e,f);return(0,i.mdx)("wrapper",(0,a.A)({},b,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-scss"},"// Themes\n@import '../../../theme/clinical-lowlight-theme/FilterPills.module';\n@import '../../../theme/orion-fusion-theme/FilterPills.module';\n\n:local {\n // Terra Docs Example Reset Button\n .terra-docs-example-reset-button {\n margin-bottom: var(--terra-framework-docs-example-reset-button-margin-bottom, -2.42857rem);\n margin-top: 1.42857rem;\n position: relative;\n }\n\n // Applied Filters Toolbar Example\n .terra-filter-pills-doc-example-applied-filters {\n border: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-border, 1px solid #d3d4d5);\n margin: 0;\n padding: 0;\n\n .applied-filters-content-panel {\n background-color: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-content-panel-background-color, #f4f4f4);\n margin: 0;\n padding: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-content-panel-padding, 0);\n }\n\n .applied-filters-label {\n color: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-label-color, #4d5153);\n display: inline-block;\n font-size: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-label-font-size, 0.92857rem);\n font-weight: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-label-font-weight, 400);\n vertical-align: top;\n }\n }\n \n .terra-filter-pills-doc-example-applied-filters-toolbar {\n padding-bottom: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-toolbar-padding-bottom, 0.42857rem);\n padding-left: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-toolbar-padding-left, 0.71429rem);\n padding-right: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-toolbar-padding-right, 0.35714rem);\n padding-top: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-toolbar-padding-top, 0.42857rem);\n\n > [class*='Toolbar-module__item___'] {\n display: block;\n margin: 0;\n padding: 0;\n width: 100%;\n }\n\n .toolbar-flex-container {\n display: flex;\n margin: 0;\n min-width: 100%;\n padding: 0;\n width: 100%;\n }\n\n .toolbar-flex-item-start,\n .toolbar-flex-item-fill,\n .toolbar-flex-item-end {\n margin: 0;\n padding: 0;\n }\n\n .toolbar-flex-item-start {\n flex: 0 0 auto;\n margin-right: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-flex-item-start-margin-right, 0.57143rem);\n padding-top: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-flex-item-start-padding-top, 0.5rem);\n vertical-align: top;\n }\n\n .toolbar-flex-item-fill {\n flex: 1 1 auto;\n min-width: 3rem;\n vertical-align: top;\n }\n\n .toolbar-flex-item-end {\n flex: 0 0 auto;\n margin-left: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-flex-item-end-margin-left, 0);\n padding-top: var(--terra-framework-docs-filter-pills-doc-example-applied-filters-flex-item-end-padding-top, 0.10714rem);\n vertical-align: top;\n }\n }\n\n\n\n // Truncated Label Example\n .terra-filter-pills-doc-example-truncated-label-container {\n background-color: var(--terra-framework-docs-filter-pills-doc-example-truncated-label-container-background-color, #f4f4f4);\n border: var(--terra-framework-docs-filter-pills-doc-example-truncated-label-container-border, 2px dashed #d1d1d1);\n border-bottom: 0 none;\n border-top: 0 none;\n box-sizing: content-box;\n max-width: 20rem;\n min-height: var(--terra-framework-docs-filter-pills-doc-example-truncated-label-container-min-height, 2.28571rem);\n padding: var(--terra-framework-docs-filter-pills-doc-example-truncated-label-container-padding, 0.71428rem 0.21428rem 0.71428rem 0.21428rem);\n width: 100%;\n }\n\n // Search Terms Example (has Visible Label)\n .terra-filter-pills-doc-example-search-terms {\n background-color: var(--terra-framework-docs-filter-pills-doc-example-search-terms-background-color, #ecf3ff);\n box-sizing: border-box;\n min-height: var(--terra-framework-docs-filter-pills-doc-example-search-terms-min-height, 7.5rem);\n padding: var(--terra-framework-docs-filter-pills-doc-example-search-terms-padding, 0.71428rem 0.85714rem);\n\n .search-terms-label {\n color: var(--terra-framework-docs-filter-pills-doc-example-search-terms-label-color, #1a2f4b);\n display: block;\n font-size: var(--terra-framework-docs-filter-pills-doc-example-search-terms-label-font-size, 1.07142rem);\n font-weight: var(--terra-framework-docs-filter-pills-doc-example-search-terms-label-font-weight, 500);\n padding-bottom: var(--terra-framework-docs-filter-pills-doc-example-search-terms-label-padding-bottom, 0.21428rem);\n padding-left: var(--terra-framework-docs-filter-pills-doc-example-search-terms-label-padding-left, 0.14285rem);\n }\n }\n} \n\n")))}h.isMDXComponent=!0;var y=function(e){var l=e.title,t=e.description,a=e.isExpanded;return r.createElement(x.A,{title:l||"Applied Filters Example",description:t,example:r.createElement(m.A,null),exampleCssSrc:r.createElement(h,null),exampleSrc:r.createElement(u,null),isExpanded:a})},g=t(58568),v=["components"],C={};function w(e){var l=e.components,t=(0,n.A)(e,v);return(0,i.mdx)("wrapper",(0,a.A)({},C,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React, { useState } from 'react';\nimport classNamesBind from 'classnames/bind';\nimport { Button as DocsButton } from '@cerner/terra-docs';\nimport FilterPills, { Pill } from '@cerner/terra-pills';\nimport ThemeContext from 'terra-theme-context';\nimport styles from './FilterPillsCommon.module.scss';\n\nconst cx = classNamesBind.bind(styles);\n\nconst BasicLabelExample = () => {\n const theme = React.useContext(ThemeContext);\n\n const pillsData = [\n {\n label: 'Asthma',\n id: 'terra-filter-pills-asthma',\n },\n {\n label: 'Bronchitis',\n id: 'terra-filter-pills-bronchitis',\n },\n {\n label: 'Fibro',\n id: 'terra-filter-pills-fibro',\n },\n ];\n const [pills, setPills] = useState(pillsData);\n\n const handleOnRemove = (id, metaData) => {\n const pillsArray = pills;\n pillsArray.splice(metaData.index, 1);\n setPills([...pillsArray]);\n };\n\n const handleResetClick = () => {\n setPills(pillsData);\n };\n\n return (\n <>\n \n {pills.map((pill, index) => (\n \n ))}\n
\n \n Reset Example\n \n \n );\n};\n\nBasicLabelExample.contextType = ThemeContext;\n\nexport default BasicLabelExample;\n\n")))}w.isMDXComponent=!0;var N=function(e){var l=e.title,t=e.description,a=e.isExpanded;return r.createElement(x.A,{title:l||"Basic Label Example",description:t,example:r.createElement(g.A,null),exampleCssSrc:r.createElement(h,null),exampleSrc:r.createElement(w,null),isExpanded:a})},T=t(66756),P=["components"],_={};function k(e){var l=e.components,t=(0,n.A)(e,P);return(0,i.mdx)("wrapper",(0,a.A)({},_,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React, { useState } from 'react';\nimport classNamesBind from 'classnames/bind';\nimport { Button as DocsButton } from '@cerner/terra-docs';\nimport FilterPills, { Pill } from '@cerner/terra-pills';\nimport ThemeContext from 'terra-theme-context';\nimport styles from './FilterPillsCommon.module.scss';\n\nconst cx = classNamesBind.bind(styles);\n\nconst CategoryLabelExample = () => {\n const theme = React.useContext(ThemeContext);\n\n const pillsData = [\n {\n label: 'Asthma',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-asthma',\n },\n {\n label: 'Bronchitis',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-bronchitis',\n },\n {\n label: 'Fibro',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-fibro',\n },\n ];\n const [pills, setPills] = useState(pillsData);\n\n const handleResetClick = () => {\n setPills(pillsData);\n };\n\n const handleOnRemove = (id, metaData) => {\n const pillsArray = pills;\n pillsArray.splice(metaData.index, 1);\n setPills([...pillsArray]);\n };\n\n return (\n <>\n \n {pills.map((pill, index) => (\n \n ))}\n
\n \n Reset Example\n \n \n );\n};\n\nCategoryLabelExample.contextType = ThemeContext;\n\nexport default CategoryLabelExample;\n\n")))}k.isMDXComponent=!0;var D=function(e){var l=e.title,t=e.description,a=e.isExpanded;return r.createElement(x.A,{title:l||"Category Label Example",description:t,example:r.createElement(T.A,null),exampleCssSrc:r.createElement(h,null),exampleSrc:r.createElement(k,null),isExpanded:a})},R=t(78612),E=["components"],A={};function F(e){var l=e.components,t=(0,n.A)(e,E);return(0,i.mdx)("wrapper",(0,a.A)({},A,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React, { useState } from 'react';\nimport classNamesBind from 'classnames/bind';\nimport { Button as DocsButton } from '@cerner/terra-docs';\nimport FilterPills, { Pill } from '@cerner/terra-pills';\nimport ThemeContext from 'terra-theme-context';\nimport styles from './FilterPillsCommon.module.scss';\n\nconst cx = classNamesBind.bind(styles);\n\nconst FilterPillsWithLongLabel = () => {\n const theme = React.useContext(ThemeContext);\n\n const pillsData = [\n {\n label: 'Chronic Obstructive Pulmonary Disease (COPD)',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-copd',\n },\n ];\n const [pills, setPills] = useState(pillsData);\n\n const handleOnRemove = (id, metaData) => {\n const pillsArray = pills;\n pillsArray.splice(metaData.index, 1);\n setPills([...pillsArray]);\n };\n\n const handleResetClick = () => {\n setPills(pillsData);\n };\n\n return (\n <>\n
\n \n {pills.map((pill, index) => (\n \n ))}\n \n
\n \n Reset Example\n \n \n );\n};\n\nFilterPillsWithLongLabel.contextType = ThemeContext;\n\nexport default FilterPillsWithLongLabel;\n\n")))}F.isMDXComponent=!0;var L=function(e){var l=e.title,t=e.description,a=e.isExpanded;return r.createElement(x.A,{title:l||"Truncated Label Example",description:t,example:r.createElement(R.A,null),exampleCssSrc:r.createElement(h,null),exampleSrc:r.createElement(F,null),isExpanded:a})},O=t(86644),B=["components"],j={};function W(e){var l=e.components,t=(0,n.A)(e,B);return(0,i.mdx)("wrapper",(0,a.A)({},j,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import React, { useState } from 'react';\nimport classNamesBind from 'classnames/bind';\nimport { Button as DocsButton } from '@cerner/terra-docs';\nimport FilterPills, { Pill } from '@cerner/terra-pills';\nimport Text from 'terra-text';\nimport ThemeContext from 'terra-theme-context';\nimport styles from './FilterPillsCommon.module.scss';\n\nconst cx = classNamesBind.bind(styles);\n\nconst VisibleLabelExample = () => {\n const theme = React.useContext(ThemeContext);\n\n const pillsData = [\n {\n label: 'Asthma',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-asthma',\n },\n {\n label: 'Bronchitis',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-bronchitis',\n },\n {\n label: 'Fibro',\n labelCategory: 'Respiratory',\n id: 'terra-filter-pills-respiratory-fibro',\n },\n ];\n const [pills, setPills] = useState(pillsData);\n\n const handleOnRemove = (id, metaData) => {\n const pillsArray = pills;\n pillsArray.splice(metaData.index, 1);\n setPills([...pillsArray]);\n };\n\n const handleResetClick = () => {\n setPills(pillsData);\n };\n\n const patientEducationSearchTermsLabel = 'Patient Education Search Terms:';\n const patientEducationSearchTermsLabelId = 'terra-filter-pills-example-patient-education-search-terms-label';\n\n return (\n <>\n
\n \n {patientEducationSearchTermsLabel}\n \n \n {pills.map((pill, index) => (\n \n ))}\n \n
\n \n Reset Example\n \n \n );\n};\n\nVisibleLabelExample.contextType = ThemeContext;\n\nexport default VisibleLabelExample;\n\n")))}W.isMDXComponent=!0;var S=function(e){var l=e.title,t=e.description,a=e.isExpanded;return r.createElement(x.A,{title:l||"Visible Label Example",description:t,example:r.createElement(O.A,null),exampleCssSrc:r.createElement(h,null),exampleSrc:r.createElement(W,null),isExpanded:a})},M=t(12883),q=["components"],I={},Z="wrapper";function X(e){var l=e.components,t=(0,n.A)(e,q);return(0,i.mdx)(Z,(0,a.A)({},I,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)(M.Ay,{mdxType:"PropsTable"},(0,i.mdx)(M.fI,{key:"ROW1",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"ariaLabel"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"string\n"))),(0,i.mdx)(M.YZ,{isRequired:!0,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"The string that labels the collection of pills, used in cases where the text label is not visible on\nthe screen and required for minimum accessibility standards. Providing this prop adds the ",(0,i.mdx)("inlineCode",{parentName:"p"},"aria-label"),"\nattribute to the Pill List container element. (Required)"))),(0,i.mdx)(M.fI,{key:"ROW2",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"ariaLabelledBy"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"string\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"If a visible text label is used with the collection of pills, provide a string of the ID for the html\nelement containing the visible text label. Supplying the 'ariaLabelledBy' prop will override the 'ariaLabel'\nprop and adds the ",(0,i.mdx)("inlineCode",{parentName:"p"},"aria-labelledby")," attribute instead to the Pill List container element."),(0,i.mdx)("p",null,(0,i.mdx)("img",{parentName:"p",src:"https://badgen.net/badge/UX/Accessibility/blue",alt:"IMPORTANT"})," For best practices, ensure the visible text\nin the html element ",(0,i.mdx)("inlineCode",{parentName:"p"},"id")," provided to the Pill List ",(0,i.mdx)("inlineCode",{parentName:"p"},"ariaLabelledby")," prop matches the text provided to the\n",(0,i.mdx)("inlineCode",{parentName:"p"},"ariaLabel")," prop, for consistency in the case of fallback or errors."))),(0,i.mdx)(M.fI,{key:"ROW3",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"ariaDescribedBy"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"string\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"If additional visible information text is used, provide a string containing the IDs for html elements that\nhelp describe the intent of the group of pills."))),(0,i.mdx)(M.fI,{key:"ROW4",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"isCollapsible"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"bool\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"false\n"))),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"Indicates if the Pills container is rolled up or not."))),(0,i.mdx)(M.fI,{key:"ROW5",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"onRemove"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"func\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"Callback function to remove a pill, returns 'id' and 'metadata'.")))))}X.isMDXComponent=!0;var H=["components"],V={},U="wrapper";function $(e){var l=e.components,t=(0,n.A)(e,H);return(0,i.mdx)(U,(0,a.A)({},V,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)(M.Ay,{mdxType:"PropsTable"},(0,i.mdx)(M.fI,{key:"ROW1",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"id"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"string\n"))),(0,i.mdx)(M.YZ,{isRequired:!0,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"The html 'id' attribute for the pill, needed for proper keyboard interactions. (Required & must be unique)."))),(0,i.mdx)(M.fI,{key:"ROW2",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"label"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"string\n"))),(0,i.mdx)(M.YZ,{isRequired:!0,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"The label text for the pill. (Required)."))),(0,i.mdx)(M.fI,{key:"ROW3",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"labelCategory"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"string\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"Secondary label text for the pill that displays a filter category."))),(0,i.mdx)(M.fI,{key:"ROW4",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"metaData"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"object\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"The associated metaData to be returned in the onRemove callback."))),(0,i.mdx)(M.fI,{key:"ROW5",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"onRemove"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"func\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("p",null,"none")),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"A callback function to execute when the pill is removed. Returns id, metadata."))),(0,i.mdx)(M.fI,{key:"ROW6",mdxType:"Row"},(0,i.mdx)(M.dt,{mdxType:"PropNameCell"},"isPopupHeaderDisabled"),(0,i.mdx)(M.$d,{mdxType:"TypeCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"custom\n"))),(0,i.mdx)(M.YZ,{isRequired:!1,mdxType:"RequiredCell"}),(0,i.mdx)(M.NZ,{mdxType:"DefaultValueCell"},(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-javascript"},"true\n"))),(0,i.mdx)(M.Hd,{mdxType:"DescriptionCell"},(0,i.mdx)("p",null,"Adds a header with close button to the popup.")))))}$.isMDXComponent=!0;var Y=["components"],z={},G="wrapper";function K(e){var l=e.components,t=(0,n.A)(e,Y);return(0,i.mdx)(G,(0,a.A)({},z,t,{components:l,mdxType:"MDXLayout"}),(0,i.mdx)(o.E,{mdxType:"Badge"}),(0,i.mdx)("h1",{id:"terra-filter-pills"},"Terra Filter Pills"),(0,i.mdx)("p",null,"Pills are generally used to assign a label or keyword to user interface (UI) objects, defining a non-hierarchical group. They are used to visually label UI objects for quick recognition. These labels can be generated either by the system or users entering data."),(0,i.mdx)("p",null,"When using a filter workflow, which removes items from a view that do not satisfy specific criteria, Filter Pills can provide indication as to which facet categories and attributes the user can narrow the content by, helping to further divide content in order to assist users in refining large results."),(0,i.mdx)("h2",{id:"what-the-component-is"},"What the component is"),(0,i.mdx)("p",null,"Filter Pills are comprised of the following:"),(0,i.mdx)("ul",null,(0,i.mdx)("li",{parentName:"ul"},"Label ",(0,i.mdx)("em",{parentName:"li"},"(clickable if truncated to disclose the full label)")),(0,i.mdx)("li",{parentName:"ul"},"An optional category to help describe the label"),(0,i.mdx)("li",{parentName:"ul"},"An interactive button to remove the filter")),(0,i.mdx)("h2",{id:"what-the-component-is-not"},"What the component is not"),(0,i.mdx)("ul",null,(0,i.mdx)("li",{parentName:"ul"},"Although similar, pills and tags have their own use cases and best practices for when they should be used within the UI. See ",(0,i.mdx)("a",{parentName:"li",href:"https://engineering.cerner.com/terra-ui/components/terra-tag/tag/tag"},"tags")," for more information."),(0,i.mdx)("li",{parentName:"ul"},"Although the filtering workflow may narrow down content to drive the user's workflow, it should not be used in the place of primary or secondary navigation.")),(0,i.mdx)("h2",{id:"getting-started"},"Getting Started"),(0,i.mdx)("ul",null,(0,i.mdx)("li",{parentName:"ul"},"Install with ",(0,i.mdx)("a",{parentName:"li",href:"https://www.npmjs.com/"},"npmjs"),":",(0,i.mdx)("ul",{parentName:"li"},(0,i.mdx)("li",{parentName:"ul"},(0,i.mdx)("inlineCode",{parentName:"li"},"npm install terra-pills"))))),(0,i.mdx)("h2",{id:"peer-dependencies"},"Peer Dependencies"),(0,i.mdx)("p",null,"This component requires the following peer dependencies be installed in your app for the component to properly function."),(0,i.mdx)("table",null,(0,i.mdx)("thead",{parentName:"table"},(0,i.mdx)("tr",{parentName:"thead"},(0,i.mdx)("th",{parentName:"tr",align:null},"Peer Dependency"),(0,i.mdx)("th",{parentName:"tr",align:null},"Version"))),(0,i.mdx)("tbody",{parentName:"table"},(0,i.mdx)("tr",{parentName:"tbody"},(0,i.mdx)("td",{parentName:"tr",align:null},"react"),(0,i.mdx)("td",{parentName:"tr",align:null},"^16.8.5")),(0,i.mdx)("tr",{parentName:"tbody"},(0,i.mdx)("td",{parentName:"tr",align:null},"react-dom"),(0,i.mdx)("td",{parentName:"tr",align:null},"^16.8.5")),(0,i.mdx)("tr",{parentName:"tbody"},(0,i.mdx)("td",{parentName:"tr",align:null},"react-intl"),(0,i.mdx)("td",{parentName:"tr",align:null},">=2.8.0 <6.0.0")))),(0,i.mdx)("h2",{id:"usage"},"Usage"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-jsx"},"import FilterPills, { Pill } from '@cerner/terra-pills';\n")),(0,i.mdx)("h2",{id:"component-features"},"Component Features"),(0,i.mdx)("ul",null,(0,i.mdx)("li",{parentName:"ul"},(0,i.mdx)("a",{parentName:"li",href:"https://engineering.cerner.com/terra-ui/about/terra-ui/component-standards#cross-browser-support"},"Cross-Browser Support")),(0,i.mdx)("li",{parentName:"ul"},(0,i.mdx)("a",{parentName:"li",href:"https://engineering.cerner.com/terra-ui/about/terra-ui/component-standards#responsive-support"},"Responsive Support")),(0,i.mdx)("li",{parentName:"ul"},(0,i.mdx)("a",{parentName:"li",href:"https://engineering.cerner.com/terra-ui/about/terra-ui/component-standards#mobile-support"},"Mobile Support"))),(0,i.mdx)(d.A,{newline:3,mdxType:"Whitespace"}),(0,i.mdx)("h2",{id:"introduction"},"Introduction:"),(0,i.mdx)("p",null,"Filter Pills can be added to a variety of situations and compositions when it is necessary to display the selected facets being applied to a filtered layout. They can be constructed into in various higher-order component patterns like an ",(0,i.mdx)("strong",{parentName:"p"},"Applied Filters")," toolbar, and similar locations that the applied category labels are removable by the user. They also have the ability to flex layouts between an expanded state showing all filter pills, and a collapsed state showing just a single line and roll-up toggle to show and hide the additional filter pills."),(0,i.mdx)(y,{title:"Introduction to Filter Pills: Applied Filters Toolbar",mdxType:"AppliedFiltersExample"}),(0,i.mdx)(d.A,{newline:3,mdxType:"Whitespace"}),(0,i.mdx)("h2",{id:"how-to-construct"},"How To Construct:"),(0,i.mdx)("h3",{id:"filter-pill-with-a-basic-label"},"Filter Pill with a basic Label"),(0,i.mdx)("p",null,"Filter Pills in their standard form display a single keyword or short phrase as their label. They are also removable, which makes them interactive with the clickable remove (\"X\") button, as well as by interactive by keyboard, able to be removed by pressing the 'delete' or 'backspace' key when they are in focus."),(0,i.mdx)(N,{title:"Basic Label",mdxType:"BasicLabelExample"}),(0,i.mdx)(d.A,{mdxType:"Whitespace"}),(0,i.mdx)("h3",{id:"adding-an-optional-category-to-the-label"},"Adding an optional Category to the Label"),(0,i.mdx)("p",null,"Additional category terms can be added to the single keyword or short phrase label to provide additional clarity in situations where the same keyword label may appear twice (but apply to different groupings), or is needed to help indicate to a user the category groupings the labels belong to."),(0,i.mdx)(D,{title:"Adding a Label Category",mdxType:"CategoryLabelExample"}),(0,i.mdx)(d.A,{mdxType:"Whitespace"}),(0,i.mdx)("h3",{id:"long-labels--truncation-a-popup-is-added"},"Long Labels & Truncation: A Popup is Added"),(0,i.mdx)("p",null,"In cases where the width of the space is constrained and the text label for the Filter Pill is unable to fully display, a popup will automatically be added, the label will become an interactive target. Clicking the label will disclose the full Filter Pill text label (and category if applied) as the contents. No additional content can be added to the popup."),(0,i.mdx)(L,{title:"Selectable Label when Truncated",mdxType:"TruncatedLabelExample"}),(0,i.mdx)(d.A,{newline:3,mdxType:"Whitespace"}),(0,i.mdx)("h2",{id:"usage-considerations"},"Usage Considerations:"),(0,i.mdx)("h3",{id:"adding-a-visible-label"},"Adding a Visible Label"),(0,i.mdx)("p",null,"Filter Pills are commonly used in a group or list, which must include a label to indicate the intent or purpose of the contents of the list. Accordingly, the filter pills component requires the ",(0,i.mdx)("inlineCode",{parentName:"p"},"ariaLabel")," prop for accessibility minimum standards, to give a screen reader user the proper context of the list, but it is not visible to users."),(0,i.mdx)(s.Notice,{variant:"ux-recommendation",ariaLevel:"3",mdxType:"Notice"},(0,i.mdx)("p",null,"As a best practice, the Filter Pills component should be accompanied by a visible label, which may need to be styled and positioned according to a specific usage and should be done so by each consumer. Use the ",(0,i.mdx)("inlineCode",{parentName:"p"},"ariaLabelledBy")," prop in Filter Pills, and provide it the 'id' of the visible label or heading, which will allow for the visible text to be accessibly connected to the pills. Read more details about the construction method in the ",(0,i.mdx)("a",{parentName:"p",href:"/terra-framework/pull/2158/components/cerner-terra-framework-docs/pills/accessibility-guide"},"Accessibility Guide")," and the example below.")),(0,i.mdx)("p",null,"Note: ",(0,i.mdx)("em",{parentName:"p"},"The visible label referenced by the ",(0,i.mdx)("inlineCode",{parentName:"em"},"ariaLabelledBy")," prop and the ",(0,i.mdx)("inlineCode",{parentName:"em"},"ariaLabel")," prop should be set to the same string values for fallback protection, even though when done properly ",(0,i.mdx)("inlineCode",{parentName:"em"},"ariaLabelledBy")," should override ",(0,i.mdx)("inlineCode",{parentName:"em"},"ariaLabel")," and the 'aria-labelledby' property will replace the 'aria-label' property in the compiled markup.")),(0,i.mdx)(S,{title:"Adding a Styled Label or Heading",mdxType:"VisibleLabelExample"}),(0,i.mdx)(d.A,{mdxType:"Whitespace"}),(0,i.mdx)("h3",{id:"incorrect-use"},"Incorrect Use"),(0,i.mdx)("p",null,"Terra Filter Pills contains a specific reusable subcomponent ",(0,i.mdx)("inlineCode",{parentName:"p"},""),". However, the inner 'Pill' subcomponent is not intended to be used alone, or independently without being used properly as children of the ",(0,i.mdx)("inlineCode",{parentName:"p"},"")," parent container. If used as standalone, the ",(0,i.mdx)("inlineCode",{parentName:"p"},"")," offers ",(0,i.mdx)("a",{parentName:"p",href:"/terra-framework/pull/2158/components/cerner-terra-framework-docs/pills/accessibility-guide"},"no support for accessibility")," or correct behaviors."),(0,i.mdx)("p",null,"The ",(0,i.mdx)("inlineCode",{parentName:"p"},"")," subcomponent was created and tested with the express intent of always being used as children of the ",(0,i.mdx)("inlineCode",{parentName:"p"},"")," component."),(0,i.mdx)(s.Notice,{variant:"not-supported",ariaLevel:"3",mdxType:"Notice"},(0,i.mdx)("p",null,"The example below shows an implementation with the intention of removing the parent ",(0,i.mdx)("inlineCode",{parentName:"p"},"")," component, such that only a single (or series) of the ",(0,i.mdx)("inlineCode",{parentName:"p"},"")," subcomponent remains:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-diff"},'
\n- \n \n- \n
\n')),(0,i.mdx)("p",null,"Consumers should be aware to not intentionally create the above situation. ")),(0,i.mdx)(d.A,{newline:5,mdxType:"Whitespace"}),(0,i.mdx)("h2",{id:"props-for-filter-pills"},"Props for Filter Pills"),(0,i.mdx)(X,{mdxType:"FilterPillsPropsTable"}),(0,i.mdx)("h2",{id:"props-for-pill-subcomponent"},"Props for Pill subcomponent"),(0,i.mdx)($,{mdxType:"PillsPropsTable"}),(0,i.mdx)("h2",{id:"testing"},"Testing"),(0,i.mdx)("p",null,"Pills uses ",(0,i.mdx)("inlineCode",{parentName:"p"},"uuid")," which changes the component's description id dynamically. To mock the return value with the Jest testing library, ",(0,i.mdx)("inlineCode",{parentName:"p"},"jest.spyOn")," can be used."),(0,i.mdx)("p",null,"If Enzyme ",(0,i.mdx)("inlineCode",{parentName:"p"},"shallow")," rendering is being used for the tests then the mock may not be required. However, if ",(0,i.mdx)("inlineCode",{parentName:"p"},"mount")," is used then ",(0,i.mdx)("inlineCode",{parentName:"p"},"uuid")," should be mocked as shown below:"),(0,i.mdx)("pre",null,(0,i.mdx)("code",{parentName:"pre",className:"language-js"},"import { v4 as uuidv4 } from 'uuid';\n\nlet mockSpyUuid;\n\n// using a variable may result in failures. For best results, mock return value.\nbeforeAll(() => {\n mockSpyUuid = jest.spyOn(uuidv4, 'v4').mockReturnValue('00000000-0000-0000-0000-000000000000');\n});\n\n// restore the mock\nafterAll(() => {\n mockSpyUuid.mockRestore();\n});\n\n")))}K.isMDXComponent=!0},70514:function(e,l,t){t.d(l,{E:function(){return r}});var a=t(96540),n=t(55713),r=function(e){var l=e.url;return a.createElement(n.A,{src:"https://github.com/cerner/terra-framework/tree/main/packages/terra-pills",name:"@cerner/terra-pills",version:"1.26.0",url:l})}},47849:function(e,l,t){var a=t(24994);l.A=void 0;var n=a(t(94634)),r=a(t(91847)),i=a(t(96540)),o=a(t(5556)),s=a(t(46942)),d=a(t(67967)),m=a(t(29146)),p=["newline"],c=d.default.bind(m.default),u={newline:o.default.oneOf([1,2,3,4,5,6,7,8])},x=function(e){var l=e.newline,t=(0,r.default)(e,p),a=(0,s.default)(c("whitespace","newline-".concat(l)),t.className);return i.default.createElement("div",(0,n.default)({},t,{className:a,"aria-hidden":"true"}))};x.propTypes=u,x.defaultProps={newline:1};l.A=x},50548:function(e,l,t){var a=t(24994),n=t(73738);l.A=void 0;var r=a(t(41132)),i=a(t(85715)),o=h(t(96540)),s=a(t(67967)),d=t(74647),m=a(t(23986)),p=h(t(90180)),c=a(t(39716)),u=a(t(23695)),x=a(t(6740)),f=a(t(25110));function b(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,t=new WeakMap;return(b=function(e){return e?t:l})(e)}function h(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var t=b(l);if(t&&t.has(e))return t.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,t&&t.set(e,a),a}var y=s.default.bind(f.default),g=function(){for(var e=o.default.useContext(u.default),l=[],t=1;t<11;t+=1){var a={label:"Selection ".concat(t),labelCategory:"Category",id:"terra-filter-pills-category-selection-".concat(t)};l.push(a)}var n=(0,o.useState)(l),s=(0,i.default)(n,2),f=s[0],b=s[1],h="Applied Filters:";return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:y(["terra-filter-pills-doc-example-applied-filters",e.className])},o.default.createElement(x.default,{className:y("terra-filter-pills-doc-example-applied-filters-toolbar")},o.default.createElement("div",{className:y("toolbar-flex-container")},o.default.createElement("div",{className:y("toolbar-flex-item-start")},o.default.createElement(c.default,{className:y("applied-filters-label")},h)),o.default.createElement("div",{className:y("toolbar-flex-item-fill")},o.default.createElement(p.default,{ariaLabel:h,isCollapsible:!0,onRemove:function(e,l){var t=f;t.splice(l.index,1),b((0,r.default)(t))}},f.map((function(e,l){return o.default.createElement(p.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:l}})})))),o.default.createElement("div",{className:y("toolbar-flex-item-end")},o.default.createElement(m.default,{text:"Clear All Filters","aria-label":"Clear All Applied Filters",variant:"de-emphasis",onClick:function(){return b([])}})))),o.default.createElement("div",{className:y("applied-filters-content-panel")},o.default.createElement(d.Placeholder,{title:"Filtered Content Goes Here"}))),o.default.createElement(d.Button,{className:y(["terra-docs-example-reset-button",e.className]),onClick:function(){b(l)}},"Reset Example"))};g.contextType=u.default;l.A=g},58568:function(e,l,t){var a=t(24994),n=t(73738);l.A=void 0;var r=a(t(41132)),i=a(t(85715)),o=x(t(96540)),s=a(t(67967)),d=t(74647),m=x(t(90180)),p=a(t(23695)),c=a(t(25110));function u(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,t=new WeakMap;return(u=function(e){return e?t:l})(e)}function x(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var t=u(l);if(t&&t.has(e))return t.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,t&&t.set(e,a),a}var f=s.default.bind(c.default),b=function(){var e=o.default.useContext(p.default),l=[{label:"Asthma",id:"terra-filter-pills-asthma"},{label:"Bronchitis",id:"terra-filter-pills-bronchitis"},{label:"Fibro",id:"terra-filter-pills-fibro"}],t=(0,o.useState)(l),a=(0,i.default)(t,2),n=a[0],s=a[1];return o.default.createElement(o.default.Fragment,null,o.default.createElement(m.default,{ariaLabel:"Demonstration example of Filter Pills with basic labels",onRemove:function(e,l){var t=n;t.splice(l.index,1),s((0,r.default)(t))}},n.map((function(e,l){return o.default.createElement(m.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:l}})}))),o.default.createElement(d.Button,{className:f(["terra-docs-example-reset-button",e.className]),onClick:function(){s(l)}},"Reset Example"))};b.contextType=p.default;l.A=b},66756:function(e,l,t){var a=t(24994),n=t(73738);l.A=void 0;var r=a(t(41132)),i=a(t(85715)),o=x(t(96540)),s=a(t(67967)),d=t(74647),m=x(t(90180)),p=a(t(23695)),c=a(t(25110));function u(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,t=new WeakMap;return(u=function(e){return e?t:l})(e)}function x(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var t=u(l);if(t&&t.has(e))return t.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,t&&t.set(e,a),a}var f=s.default.bind(c.default),b=function(){var e=o.default.useContext(p.default),l=[{label:"Asthma",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-asthma"},{label:"Bronchitis",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-bronchitis"},{label:"Fibro",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-fibro"}],t=(0,o.useState)(l),a=(0,i.default)(t,2),n=a[0],s=a[1];return o.default.createElement(o.default.Fragment,null,o.default.createElement(m.default,{ariaLabel:"Demonstration example of Filter Pills with category labels",onRemove:function(e,l){var t=n;t.splice(l.index,1),s((0,r.default)(t))}},n.map((function(e,l){return o.default.createElement(m.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:l}})}))),o.default.createElement(d.Button,{className:f(["terra-docs-example-reset-button",e.className]),onClick:function(){s(l)}},"Reset Example"))};b.contextType=p.default;l.A=b},78612:function(e,l,t){var a=t(24994),n=t(73738);l.A=void 0;var r=a(t(41132)),i=a(t(85715)),o=x(t(96540)),s=a(t(67967)),d=t(74647),m=x(t(90180)),p=a(t(23695)),c=a(t(25110));function u(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,t=new WeakMap;return(u=function(e){return e?t:l})(e)}function x(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var t=u(l);if(t&&t.has(e))return t.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,t&&t.set(e,a),a}var f=s.default.bind(c.default),b=function(){var e=o.default.useContext(p.default),l=[{label:"Chronic Obstructive Pulmonary Disease (COPD)",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-copd"}],t=(0,o.useState)(l),a=(0,i.default)(t,2),n=a[0],s=a[1];return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:f(["terra-filter-pills-doc-example-truncated-label-container",e.className])},o.default.createElement(m.default,{ariaLabel:"Demonstration example of a Filter Pill with a long label",onRemove:function(e,l){var t=n;t.splice(l.index,1),s((0,r.default)(t))}},n.map((function(e,l){return o.default.createElement(m.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:l}})})))),o.default.createElement(d.Button,{className:f(["terra-docs-example-reset-button",e.className]),onClick:function(){s(l)}},"Reset Example"))};b.contextType=p.default;l.A=b},86644:function(e,l,t){var a=t(24994),n=t(73738);l.A=void 0;var r=a(t(41132)),i=a(t(85715)),o=f(t(96540)),s=a(t(67967)),d=t(74647),m=f(t(90180)),p=a(t(39716)),c=a(t(23695)),u=a(t(25110));function x(e){if("function"!=typeof WeakMap)return null;var l=new WeakMap,t=new WeakMap;return(x=function(e){return e?t:l})(e)}function f(e,l){if(!l&&e&&e.__esModule)return e;if(null===e||"object"!=n(e)&&"function"!=typeof e)return{default:e};var t=x(l);if(t&&t.has(e))return t.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,t&&t.set(e,a),a}var b=s.default.bind(u.default),h=function(){var e=o.default.useContext(c.default),l=[{label:"Asthma",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-asthma"},{label:"Bronchitis",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-bronchitis"},{label:"Fibro",labelCategory:"Respiratory",id:"terra-filter-pills-respiratory-fibro"}],t=(0,o.useState)(l),a=(0,i.default)(t,2),n=a[0],s=a[1],u="Patient Education Search Terms:",x="terra-filter-pills-example-patient-education-search-terms-label";return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",{className:b(["terra-filter-pills-doc-example-search-terms",e.className])},o.default.createElement(p.default,{id:x,className:b("search-terms-label")},u),o.default.createElement(m.default,{ariaLabelledBy:x,ariaLabel:u,onRemove:function(e,l){var t=n;t.splice(l.index,1),s((0,r.default)(t))}},n.map((function(e,l){return o.default.createElement(m.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:l}})})))),o.default.createElement(d.Button,{className:b(["terra-docs-example-reset-button",e.className]),onClick:function(){s(l)}},"Reset Example"))};h.contextType=c.default;l.A=h},29146:function(e,l,t){t.r(l),l.default={whitespace:"Whitespace-module__whitespace___ZHva5","newline-1":"Whitespace-module__newline-1___aPEyq","newline-2":"Whitespace-module__newline-2___G+-sh","newline-3":"Whitespace-module__newline-3___4OJK-","newline-4":"Whitespace-module__newline-4___3Z0jB","newline-5":"Whitespace-module__newline-5___lBkK-","newline-6":"Whitespace-module__newline-6___FT7fE","newline-7":"Whitespace-module__newline-7___OMery","newline-8":"Whitespace-module__newline-8___vvoWz"}},25110:function(e,l,t){t.r(l),l.default={"clinical-lowlight-theme":"FilterPillsCommon-module__clinical-lowlight-theme___kufCR","orion-fusion-theme":"FilterPillsCommon-module__orion-fusion-theme___DX+Eh","terra-docs-example-reset-button":"FilterPillsCommon-module__terra-docs-example-reset-button___4QxNs","terra-filter-pills-doc-example-applied-filters":"FilterPillsCommon-module__terra-filter-pills-doc-example-applied-filters___FHD3-","applied-filters-content-panel":"FilterPillsCommon-module__applied-filters-content-panel___UliYh","applied-filters-label":"FilterPillsCommon-module__applied-filters-label___qK0hr","terra-filter-pills-doc-example-applied-filters-toolbar":"FilterPillsCommon-module__terra-filter-pills-doc-example-applied-filters-toolbar___XhHa0","toolbar-flex-container":"FilterPillsCommon-module__toolbar-flex-container___5Vbzr","toolbar-flex-item-start":"FilterPillsCommon-module__toolbar-flex-item-start___-CPMv","toolbar-flex-item-fill":"FilterPillsCommon-module__toolbar-flex-item-fill___vGICq","toolbar-flex-item-end":"FilterPillsCommon-module__toolbar-flex-item-end___kRZI6","terra-filter-pills-doc-example-truncated-label-container":"FilterPillsCommon-module__terra-filter-pills-doc-example-truncated-label-container___sgh3Q","terra-filter-pills-doc-example-search-terms":"FilterPillsCommon-module__terra-filter-pills-doc-example-search-terms___my1Na","search-terms-label":"FilterPillsCommon-module__search-terms-label___ABfLO"}}}]); \ No newline at end of file diff --git a/pull/2158/90180-2a2cd18371f07fd30fed.css b/pull/2158/90180-0b10843a2925efbc18f1.css similarity index 100% rename from pull/2158/90180-2a2cd18371f07fd30fed.css rename to pull/2158/90180-0b10843a2925efbc18f1.css diff --git a/pull/2158/90180-0b10843a2925efbc18f1.js b/pull/2158/90180-0b10843a2925efbc18f1.js new file mode 100644 index 00000000000..ae07208850d --- /dev/null +++ b/pull/2158/90180-0b10843a2925efbc18f1.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[90180],{25986:function(e,t,l){var r=l(24994),a=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(l(94634)),u=r(l(41132)),i=r(l(85715)),o=r(l(91847)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var l=E(t);if(l&&l.has(e))return l.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=n?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(r,u,i):r[u]=e[u]}return r.default=e,l&&l.set(e,r),r}(l(96540)),s=l(25966),d=r(l(46942)),f=r(l(67967)),p=r(l(5556)),b=r(l(7829)),m=r(l(23695)),v=l(8604),_=l(68414),g=r(l(16524)),y=r(l(39575)),h=r(l(43017)),C=r(l(97412)),P=["ariaLabel","ariaLabelledBy","ariaDescribedBy","children","intl","isCollapsible","onRemove"];function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(E=function(e){return e?l:t})(e)}var R=f.default.bind(C.default),S={ariaLabel:p.default.string.isRequired,ariaLabelledBy:p.default.string,ariaDescribedBy:p.default.string,children:p.default.node,isCollapsible:p.default.bool,onRemove:p.default.func,intl:p.default.shape({formatMessage:p.default.func}).isRequired},w=function(e){var t=e.ariaLabel,l=e.ariaLabelledBy,r=e.ariaDescribedBy,a=e.children,f=e.intl,p=e.isCollapsible,v=e.onRemove,C=(0,o.default)(e,P),E=c.default.useContext(m.default),S=(0,c.useState)("-1"),w=(0,i.default)(S,2),k=w[0],A=w[1],D=(0,c.useState)(c.default.Children.count(a)),N=(0,i.default)(D,2),M=N[0],T=N[1],O=(0,c.useState)(c.default.Children.count(a)),j=(0,i.default)(O,2),x=j[0],q=j[1],I=(0,c.useState)(p),K=(0,i.default)(I,2),L=K[0],W=K[1],B=(0,c.useState)(!1),U=(0,i.default)(B,2),Y=U[0],H=U[1],V=(0,c.useState)(!1),F=(0,i.default)(V,2),G=F[0],Q=F[1],J=(0,c.useRef)(),z=(0,c.useRef)(),X=(0,c.useRef)(0),Z=(0,c.useRef)(!1),$=(0,c.useRef)(!1),ee=(0,c.useRef)(),te=(0,c.useRef)(null),le=(0,c.useCallback)((function(){var e=y.default.getRollUpIndex(z);L?(T(e),q(c.default.Children.count(a)-e)):e===c.default.Children.count(a)&&q(0)}),[a,L]),re=function(e){var t=J.current?z.current.querySelector("[id='".concat(J.current,"']")):null;t&&t.setAttribute("tabIndex",e)},ae=function(){var e=J.current?z.current.querySelector("[id='".concat(J.current,"']")):null;e&&e.focus()},ne=function(){A("0"),z.current.focus()},ue=(0,c.useCallback)((function(){var e=(0,u.default)(z.current.querySelectorAll("[data-terra-pill]")),t=z.current.querySelector("[data-terra-rollup-pill]");t&&y.default.setRollUpPillTabIndex(t,"-1"),e.length>0&&X.current0&&e.length===c.default.Children.count(a)&&(re("-1"),J.current=e[X.current].id,re("0"),$.current&&(ae(),$.current=!1))}),[a,L,p]),oe=(0,c.useCallback)((function(){var e=(0,u.default)(z.current.querySelectorAll("[data-terra-pill]")),t=z.current.querySelector("[data-terra-rollup-pill]"),l=y.default.getRollUpIndex(z);if(Z.current){if(c.default.Children.count(a)<=0)return void ne();t&&y.default.setRollUpPillTabIndex(t,"-1"),e.length>0&&y.default.setPillsTabIndex(e,"-1"),e.length===l||t&&l>=1?J.current=e[X.current].id:t&&(J.current=t.getAttribute("id")),re("0"),ae(),Z.current=!1}}),[a]),ce=(0,c.useCallback)((function(e){Array.isArray(e)&&(T(c.default.Children.count(a)),q(c.default.Children.count(a)),p&&le(),ue(),ie(),oe())}),[a,p,ue,ie,oe,le]);(0,c.useLayoutEffect)((function(){var e=new b.default((function(e){clearTimeout(te.current),te.current=setTimeout((function(){te.current&&ce(e)}),100)}));return e.observe(z.current.parentNode),function(){e.disconnect()}}),[a,z,ce]);var se=function(e,t,l){var r=(0,u.default)(z.current.querySelectorAll("[data-terra-pill]")),a=l.target.parentElement.getAttribute("id"),n=r.findIndex((function(e){return e.id===a}));"click"===l.type&&(r.length>1&&(re("-1"),X.current=0===n?0:n-1,re("0")),H(!0)),ne(),v&&v(e,t)},de=function(e){e.current&&e.current.children.length>0&&(ee.current=e.current.children[0].innerText)},fe={};fe.onKeyDown=function(e){var t=(0,u.default)(z.current.querySelectorAll("[data-terra-pill]")),l=z.current.querySelector("[data-terra-rollup-pill]");switch(H(!1),Q(!1),e.keyCode){case s.KEY_RIGHT:e.preventDefault(),function(e,t){var l=t?t.getAttribute("id"):null;X.current+1<=e.length&&(re("-1"),t&&X.current+1===e.length?J.current=l:X.current+1=1)&&(re("-1"),t&&J.current===l?(X.current=e.length-1,J.current=a[X.current].props.id):(X.current-=1,J.current=a[X.current].props.id),re("0"),ae())}(t,l);break;case s.KEY_BACK_SPACE:case s.KEY_DELETE:e.preventDefault(),function(e){c.default.Children.count(a)>0&&e.length-10&&(X.current-=1),T(c.default.Children.count(a)),Z.current=!0)}(t);break;case s.KEY_HOME:e.preventDefault(),re("-1"),X.current=0,J.current=t[X.current].id,re("0"),ae();break;case s.KEY_END:e.preventDefault(),re("-1"),X.current=t.length-1,J.current=t[X.current].id,re("0"),ae()}},fe.onBlur=function(){return A("-1")};var pe=(0,d.default)(R(["pills-group",E.className]),C.className),be="terra-pills-group-interaction-hint-".concat((0,_.v4)()),me="",ve=r?"".concat(r," ").concat(be):be,_e=f.formatMessage({id:"Terra.pills.hint.pillList"},{numberOfPills:c.default.Children.count(a)});p&&x>0&&L?_e+=", ".concat(f.formatMessage({id:"Terra.pills.hint.rollupNotVisible"},{pillsNotVisibleCount:x})):p&&!L&&G&&(_e=f.formatMessage({id:"Terra.pills.hint.rollupVisible"})),Y&&(me=f.formatMessage({id:"Terra.pills.hint.wasRemoved"},{pillLabelName:ee.current}));var ge,ye=l?void 0:"".concat(me,", ").concat(t),he=c.default.Children.count(a)?{"aria-live":"assertive","aria-label":ye,"aria-labelledby":l,"aria-describedby":ve,role:"list"}:{role:"group"};return c.default.Children.count(a)||(_e="".concat(_e,", ").concat(ye)),c.default.createElement(c.default.Fragment,null,c.default.createElement("div",(0,n.default)({},C,fe,he,{tabIndex:k,className:pe,ref:z}),a?(ge=a,c.default.Children.map(ge,(function(e){if(c.default.isValidElement(e))return c.default.cloneElement(e,{onRemove:se,onSelect:de})})).splice(0,M)):[],p&&x>0&&c.default.createElement(h.default,{isCollapsed:L,onSelectRollUp:function(e){var t=(0,u.default)(z.current.querySelectorAll("[data-terra-pill]"));p&&L?"keydown"===e.type?($.current=!0,X.current=t.length):(re("-1"),X.current=t.length):Q(!1),W(!L)},rollupCount:x})),c.default.createElement(g.default,{"aria-live":"polite",id:be,text:_e}))};w.defaultProps={isCollapsible:!1},w.propTypes=S;t.default=(0,v.injectIntl)(w)},39575:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l={getRollUpIndex:function(e){var t,l=e.current.querySelector("[data-terra-rollup-pill]"),r=e.current.querySelectorAll("[data-terra-pill]"),a=e.current.offsetWidth,n=0,u=0,i=0;l&&(i=function(e){return e.parentElement.offsetWidth+parseFloat(window.getComputedStyle(e.parentElement,null).getPropertyValue("margin-right"),10)}(l));for(var o=0;o=a);o+=1){var c=(t=r[o]).offsetWidth+parseFloat(window.getComputedStyle(t,null).getPropertyValue("margin-right"),10);c+n+iE.current.firstElementChild.clientWidth?k(!0):k(!1)}),[]),O=(0,o.useCallback)((function(e){Array.isArray(e)&&T()}),[T]);(0,o.useLayoutEffect)((function(){var e=new m.default((function(e){O(e)}));return e.observe(E.current.parentNode),function(){e.disconnect(),e=null}}),[T,O]);var j=function(){M(!1),E.current.setAttribute("aria-expanded",!1)},x=function(){return E.current},q={};q.isSelectable=w,q.isRemovable=d,q.isSelectableAndRemovable=d&&w;var I={},K=l?"".concat(l,": ").concat(t):t;I.title=p||(w?K:void 0),(q.isSelectable||q.isRemovable)&&(I.tabIndex="0",I.onKeyDown=function(e){E.current.setAttribute("data-terra-pills-show-focus-styles","true"),e.keyCode===c.KEY_RETURN||e.keyCode===c.KEY_SPACE?(e.preventDefault(),w&&M(!0)):e.keyCode!==c.KEY_DELETE&&e.keyCode!==c.KEY_BACK_SPACE||(e.preventDefault(),d&&d(r,s,e))},I.onMouseDown=function(e){E.current.setAttribute("data-terra-pills-show-focus-styles","false"),_(E,e)},I.onBlur=function(){E.current.setAttribute("data-terra-pills-show-focus-styles","true")});var L={};q.isSelectable&&(L.onClick=function(e){e.preventDefault(),e.stopPropagation(),w&&(M(!0),E.current.setAttribute("aria-expanded",!0))});var W,B={};d&&(B.onClick=function(e){e.preventDefault(),e.stopPropagation(),d(r,s,e)}),q.isSelectableAndRemovable?W=", ".concat(a.formatMessage({id:"Terra.pills.hint.selectableAndRemovable"})):q.isSelectable?W=", ".concat(a.formatMessage({id:"Terra.pills.hint.selectable"})):q.isRemovable&&(W=", ".concat(a.formatMessage({id:"Terra.pills.hint.removable"})));var U,Y=(0,f.default)(h(["pill-label",{"is-focusable":q.isSelectable||q.isRemovable},{"is-removable":q.isRemovable&&!q.isSelectableAndRemovable},{"is-selectable-and-removable":q.isSelectableAndRemovable},P.className]),C.className),H=(0,f.default)(h(["pill","is-focusable",P.className]),C.className),V=function(){return o.default.createElement("button",(0,n.default)({},B,{className:h("pill-remove-button"),tabIndex:"-1",type:"button","aria-label":a.formatMessage({id:"Terra.pills.label.delete"},{pillLabelName:t})}),o.default.createElement("span",{className:h("clear-icon")}))};return q.isSelectable?(U=" ".concat(l||""," ").concat(t," ").concat(W),o.default.createElement(o.default.Fragment,null,o.default.createElement("div",(0,n.default)({},C,I,L,{"aria-haspopup":q.isSelectable?"dialog":void 0,id:r,className:H,ref:E,role:"listitem","aria-label":U,"data-terra-pills-show-focus-styles":!0,"data-terra-pill":!0}),o.default.createElement("span",{className:Y},l?o.default.createElement("span",{className:h("pill-category")},"".concat(l,": ")):void 0,o.default.createElement("span",null,t)),q.isRemovable&&V()),w&&o.default.createElement(b.default,{isOpen:N,isArrowDisplayed:!0,targetRef:x,onRequestClose:j,contentHeight:"auto",contentWidth:"auto",isHeaderDisabled:y},o.default.createElement("div",{className:h(["popup-content-pill-label",P.className])},l?o.default.createElement("span",{className:h(["popup-content-pill-category",P.className])},"".concat(l,": ")):void 0,o.default.createElement("span",null,t))))):function(){var e=" ".concat(l||""," ").concat(t," ").concat(W);return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",(0,n.default)({},C,I,{id:r,className:H,ref:E,role:"listitem","aria-label":e,"data-terra-pills-show-focus-styles":!0,"data-terra-pill":!0}),o.default.createElement("span",{className:Y},l?o.default.createElement("span",{className:h("pill-category")},"".concat(l,": ")):void 0,o.default.createElement("span",null,t)),q.isRemovable&&V()))}()};P.propTypes=C,P.defaultProps={isPopupHeaderDisabled:!0};t.default=(0,s.injectIntl)(P)},43017:function(e,t,l){var r=l(24994),a=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var l=b(t);if(l&&l.has(e))return l.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=n?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(r,u,i):r[u]=e[u]}return r.default=e,l&&l.set(e,r),r}(l(96540)),u=l(25966),i=l(8604),o=r(l(67967)),c=r(l(5556)),s=r(l(23695)),d=l(68414),f=r(l(16524)),p=r(l(97412));function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(b=function(e){return e?l:t})(e)}var m=o.default.bind(p.default),v={isCollapsed:c.default.bool,onSelectRollUp:c.default.func,rollupCount:c.default.number,intl:c.default.shape({formatMessage:c.default.func}).isRequired},_=function(e){var t=e.isCollapsed,l=e.onSelectRollUp,r=e.intl,a=e.rollupCount,i=(0,n.useRef)(),o=n.default.useContext(s.default),c=t&&a>0?r.formatMessage({id:"Terra.pills.label.rollupPill"},{pillsNotVisibleCount:a}):r.formatMessage({id:"Terra.pills.label.showLess"}),p=t?r.formatMessage({id:"Terra.pills.hint.rollupPill"},{pillsNotVisibleCount:a}):r.formatMessage({id:"Terra.pills.hint.showLess"}),b="terra-rollup-pill-".concat((0,d.v4)()),v="terra-rollup-pill-".concat((0,d.v4)());return n.default.createElement("div",{role:"listitem",className:m("pill-list-item")},n.default.createElement("button",{id:b,className:m(["rollup-pill",o.className]),onClick:function(e){e.preventDefault(),e.stopPropagation(),l(e)},onKeyDown:function(e){i.current.setAttribute("data-terra-rollup-pill-show-focus-styles","true"),e.keyCode!==u.KEY_RETURN&&e.keyCode!==u.KEY_SPACE||(e.preventDefault(),e.stopPropagation(),l(e))},onMouseDown:function(){i.current.setAttribute("data-terra-rollup-pill-show-focus-styles","false")},onBlur:function(){i.current.setAttribute("data-terra-rollup-pill-show-focus-styles","true")},ref:i,tabIndex:"0",type:"button","aria-describedby":v,"data-terra-rollup-pill-show-focus-styles":!0,"data-terra-rollup-pill":!0},n.default.createElement("span",{className:m("rollup-pill-label")},c)),n.default.createElement(f.default,{id:v,text:p,"aria-hidden":"true"}))};_.propTypes=v;t.default=(0,i.injectIntl)(_)},97412:function(e,t,l){l.r(t),t.default={"clinical-lowlight-theme":"Pill-module__clinical-lowlight-theme___6e6Ug","orion-fusion-theme":"Pill-module__orion-fusion-theme___BcmBS","pills-group":"Pill-module__pills-group___sq89H","pill-list-item":"Pill-module__pill-list-item___k0qf6",pill:"Pill-module__pill___eeL05","is-focusable":"Pill-module__is-focusable___Q6EGN","pill-label":"Pill-module__pill-label___+br8j","pill-category":"Pill-module__pill-category___Rkjqr","is-removable":"Pill-module__is-removable___d4BHt","pill-remove-button":"Pill-module__pill-remove-button___CH1Py","clear-icon":"Pill-module__clear-icon___NvKUS","is-selectable-and-removable":"Pill-module__is-selectable-and-removable___Vo-YG","rollup-pill":"Pill-module__rollup-pill___Q+GVC","rollup-pill-label":"Pill-module__rollup-pill-label___SPSFI","popup-content-pill-label":"Pill-module__popup-content-pill-label___47C1k","popup-content-pill-category":"Pill-module__popup-content-pill-category___LSi+J"}}}]); \ No newline at end of file diff --git a/pull/2158/90180-2a2cd18371f07fd30fed.js b/pull/2158/90180-2a2cd18371f07fd30fed.js deleted file mode 100644 index 81f94f99cc6..00000000000 --- a/pull/2158/90180-2a2cd18371f07fd30fed.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[90180],{25986:function(e,t,l){var r=l(24994),a=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(l(94634)),u=r(l(41132)),i=r(l(85715)),o=r(l(91847)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var l=P(t);if(l&&l.has(e))return l.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=n?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(r,u,i):r[u]=e[u]}return r.default=e,l&&l.set(e,r),r}(l(96540)),s=l(25966),d=r(l(46942)),f=r(l(67967)),p=r(l(5556)),b=r(l(7829)),m=r(l(23695)),v=l(8604),_=l(68414),g=r(l(16524)),y=r(l(39575)),h=r(l(43017)),C=r(l(97412)),E=["ariaLabel","ariaLabelledBy","ariaDescribedBy","children","intl","isCollapsible","onRemove"];function P(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(P=function(e){return e?l:t})(e)}var R=f.default.bind(C.default),S={ariaLabel:p.default.string.isRequired,ariaLabelledBy:p.default.string,ariaDescribedBy:p.default.string,children:p.default.node,isCollapsible:p.default.bool,onRemove:p.default.func,intl:p.default.shape({formatMessage:p.default.func}).isRequired},w=function(e){var t=e.ariaLabel,l=e.ariaLabelledBy,r=e.ariaDescribedBy,a=e.children,f=e.intl,p=e.isCollapsible,v=e.onRemove,C=(0,o.default)(e,E),P=c.default.useContext(m.default),S=(0,c.useState)("-1"),w=(0,i.default)(S,2),k=w[0],A=w[1],N=(0,c.useState)(c.default.Children.count(a)),M=(0,i.default)(N,2),D=M[0],T=M[1],O=(0,c.useState)(c.default.Children.count(a)),j=(0,i.default)(O,2),x=j[0],q=j[1],I=(0,c.useState)(p),K=(0,i.default)(I,2),L=K[0],W=K[1],B=(0,c.useState)(!1),U=(0,i.default)(B,2),Y=U[0],V=U[1],F=(0,c.useState)(!1),H=(0,i.default)(F,2),G=H[0],Q=H[1],J=(0,c.useRef)(),z=(0,c.useRef)(),X=(0,c.useRef)(0),Z=(0,c.useRef)(!1),$=(0,c.useRef)(!1),ee=(0,c.useRef)(),te=(0,c.useRef)(null),le=(0,c.useCallback)((function(){var e=y.default.getRollUpIndex(z);L?(T(e),q(c.default.Children.count(a)-e)):e===c.default.Children.count(a)&&q(0)}),[a,L]),re=function(e){var t=J.current?z.current.querySelector("[id='".concat(J.current,"']")):null;t&&t.setAttribute("tabIndex",e)},ae=function(){var e=J.current?z.current.querySelector("[id='".concat(J.current,"']")):null;e&&e.focus()},ne=function(){A("0"),z.current.focus()},ue=(0,c.useCallback)((function(){var e=(0,u.default)(z.current.querySelectorAll("[data-terra-pill]")),t=z.current.querySelector("[data-terra-rollup-pill]");t&&y.default.setRollUpPillTabIndex(t,"-1"),e.length>0&&X.current0&&e.length===c.default.Children.count(a)&&(re("-1"),J.current=e[X.current].id,re("0"),$.current&&(ae(),$.current=!1))}),[a,L,p]),oe=(0,c.useCallback)((function(){var e=(0,u.default)(z.current.querySelectorAll("[data-terra-pill]")),t=z.current.querySelector("[data-terra-rollup-pill]"),l=y.default.getRollUpIndex(z);if(Z.current){if(c.default.Children.count(a)<=0)return void ne();t&&y.default.setRollUpPillTabIndex(t,"-1"),e.length>0&&y.default.setPillsTabIndex(e,"-1"),e.length===l||t&&l>=1?J.current=e[X.current].id:t&&(J.current=t.getAttribute("id")),re("0"),ae(),Z.current=!1}}),[a]),ce=(0,c.useCallback)((function(e){Array.isArray(e)&&(T(c.default.Children.count(a)),q(c.default.Children.count(a)),p&&le(),ue(),ie(),oe())}),[a,p,ue,ie,oe,le]);(0,c.useLayoutEffect)((function(){var e=new b.default((function(e){clearTimeout(te.current),te.current=setTimeout((function(){te.current&&ce(e)}),100)}));return e.observe(z.current.parentNode),function(){e.disconnect()}}),[a,z,ce]);var se=function(e,t,l){var r=(0,u.default)(z.current.querySelectorAll("[data-terra-pill]")),a=l.target.parentElement.getAttribute("id"),n=r.findIndex((function(e){return e.id===a}));"click"===l.type&&(r.length>1&&(re("-1"),X.current=0===n?0:n-1,re("0")),V(!0)),ne(),v&&v(e,t)},de=function(e){e.current&&e.current.children.length>0&&(ee.current=e.current.children[0].innerText)},fe={};fe.onKeyDown=function(e){var t=(0,u.default)(z.current.querySelectorAll("[data-terra-pill]")),l=z.current.querySelector("[data-terra-rollup-pill]");switch(V(!1),Q(!1),e.keyCode){case s.KEY_RIGHT:e.preventDefault(),function(e,t){var l=t?t.getAttribute("id"):null;X.current+1<=e.length&&(re("-1"),t&&X.current+1===e.length?J.current=l:X.current+1=1)&&(re("-1"),t&&J.current===l?(X.current=e.length-1,J.current=a[X.current].props.id):(X.current-=1,J.current=a[X.current].props.id),re("0"),ae())}(t,l);break;case s.KEY_BACK_SPACE:case s.KEY_DELETE:e.preventDefault(),function(e){c.default.Children.count(a)>0&&e.length-10&&(X.current-=1),T(c.default.Children.count(a)),Z.current=!0)}(t);break;case s.KEY_HOME:e.preventDefault(),re("-1"),X.current=0,J.current=t[X.current].id,re("0"),ae();break;case s.KEY_END:e.preventDefault(),re("-1"),X.current=t.length-1,J.current=t[X.current].id,re("0"),ae()}},fe.onBlur=function(){return A("-1")};var pe=(0,d.default)(R(["pills-group",P.className]),C.className),be="terra-pills-group-interaction-hint-".concat((0,_.v4)()),me="",ve=r?"".concat(r," ").concat(be):be,_e=f.formatMessage({id:"Terra.pills.hint.pillList"},{numberOfPills:c.default.Children.count(a)});p&&x>0&&L?_e+=", ".concat(f.formatMessage({id:"Terra.pills.hint.rollupNotVisible"},{pillsNotVisibleCount:x})):p&&!L&&G&&(_e=f.formatMessage({id:"Terra.pills.hint.rollupVisible"})),Y&&(me=f.formatMessage({id:"Terra.pills.hint.wasRemoved"},{pillLabelName:ee.current}));var ge,ye=l?void 0:"".concat(me,", ").concat(t),he=c.default.Children.count(a)?{"aria-live":"assertive","aria-label":ye,"aria-labelledby":l,"aria-describedby":ve,role:"list"}:{role:"group"};return c.default.Children.count(a)||(_e="".concat(_e,", ").concat(ye)),c.default.createElement(c.default.Fragment,null,c.default.createElement("div",(0,n.default)({},C,fe,he,{tabIndex:k,className:pe,ref:z}),a?(ge=a,c.default.Children.map(ge,(function(e){if(c.default.isValidElement(e))return c.default.cloneElement(e,{onRemove:se,onSelect:de})})).splice(0,D)):[],p&&x>0&&c.default.createElement(h.default,{isCollapsed:L,onSelectRollUp:function(e){var t=(0,u.default)(z.current.querySelectorAll("[data-terra-pill]"));p&&L?"keydown"===e.type?($.current=!0,X.current=t.length):(re("-1"),X.current=t.length):Q(!1),W(!L)},rollupCount:x})),c.default.createElement(g.default,{"aria-live":"polite",id:be,text:_e}))};w.defaultProps={isCollapsible:!1},w.propTypes=S;t.default=(0,v.injectIntl)(w)},39575:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var l={getRollUpIndex:function(e){var t,l=e.current.querySelector("[data-terra-rollup-pill]"),r=e.current.querySelectorAll("[data-terra-pill]"),a=e.current.offsetWidth,n=0,u=0,i=0;l&&(i=function(e){return e.parentElement.offsetWidth+parseFloat(window.getComputedStyle(e.parentElement,null).getPropertyValue("margin-right"),10)}(l));for(var o=0;o=a);o+=1){var c=(t=r[o]).offsetWidth+parseFloat(window.getComputedStyle(t,null).getPropertyValue("margin-right"),10);c+n+iE.current.firstElementChild.clientWidth?w(!0):w(!1)}),[]),T=(0,o.useCallback)((function(e){Array.isArray(e)&&D()}),[D]);(0,o.useLayoutEffect)((function(){var e=new m.default((function(e){T(e)}));return e.observe(E.current.parentNode),function(){e.disconnect(),e=null}}),[D,T]);var O=function(){M(!1),E.current.setAttribute("aria-expanded",!1)},j=function(){return E.current},x={};x.isSelectable=S,x.isRemovable=d,x.isSelectableAndRemovable=d&&S;var q={},I=l?"".concat(l,": ").concat(t):t;q.title=p||(S?I:void 0),(x.isSelectable||x.isRemovable)&&(q.tabIndex="0",q.onKeyDown=function(e){E.current.setAttribute("data-terra-pills-show-focus-styles","true"),e.keyCode===c.KEY_RETURN||e.keyCode===c.KEY_SPACE?(e.preventDefault(),S&&M(!0)):e.keyCode!==c.KEY_DELETE&&e.keyCode!==c.KEY_BACK_SPACE||(e.preventDefault(),d&&d(r,s,e))},q.onMouseDown=function(e){E.current.setAttribute("data-terra-pills-show-focus-styles","false"),_(E,e)},q.onBlur=function(){E.current.setAttribute("data-terra-pills-show-focus-styles","true")});var K={};x.isSelectable&&(K.onClick=function(e){e.preventDefault(),e.stopPropagation(),S&&(M(!0),E.current.setAttribute("aria-expanded",!0))});var L,W={};d&&(W.onClick=function(e){e.preventDefault(),e.stopPropagation(),d(r,s,e)}),x.isSelectableAndRemovable?L=", ".concat(a.formatMessage({id:"Terra.pills.hint.selectableAndRemovable"})):x.isSelectable?L=", ".concat(a.formatMessage({id:"Terra.pills.hint.selectable"})):x.isRemovable&&(L=", ".concat(a.formatMessage({id:"Terra.pills.hint.removable"})));var B,U=(0,f.default)(h(["pill-label",{"is-focusable":x.isSelectable||x.isRemovable},{"is-removable":x.isRemovable&&!x.isSelectableAndRemovable},{"is-selectable-and-removable":x.isSelectableAndRemovable},C.className]),y.className),Y=(0,f.default)(h(["pill","is-focusable",C.className]),y.className),V=function(){return o.default.createElement("button",(0,n.default)({},W,{className:h("pill-remove-button"),tabIndex:"-1",type:"button","aria-label":a.formatMessage({id:"Terra.pills.label.delete"},{pillLabelName:t})}),o.default.createElement("span",{className:h("clear-icon")}))};return x.isSelectable?(B=" ".concat(l||""," ").concat(t," ").concat(L),o.default.createElement(o.default.Fragment,null,o.default.createElement("div",(0,n.default)({},y,q,K,{"aria-haspopup":x.isSelectable?"dialog":void 0,id:r,className:Y,ref:E,role:"listitem","aria-label":B,"data-terra-pills-show-focus-styles":!0,"data-terra-pill":!0}),o.default.createElement("span",{className:U},l?o.default.createElement("span",{className:h("pill-category")},"".concat(l,": ")):void 0,o.default.createElement("span",null,t)),x.isRemovable&&V()),S&&o.default.createElement(b.default,{isOpen:N,isArrowDisplayed:!0,targetRef:j,onRequestClose:O,contentHeight:"auto",contentWidth:"auto",isHeaderDisabled:!1},o.default.createElement("div",{className:h(["popup-content-pill-label",C.className])},l?o.default.createElement("span",{className:h(["popup-content-pill-category",C.className])},"".concat(l,": ")):void 0,o.default.createElement("span",null,t))))):function(){var e=" ".concat(l||""," ").concat(t," ").concat(L);return o.default.createElement(o.default.Fragment,null,o.default.createElement("div",(0,n.default)({},y,q,{id:r,className:Y,ref:E,role:"listitem","aria-label":e,"data-terra-pills-show-focus-styles":!0,"data-terra-pill":!0}),o.default.createElement("span",{className:U},l?o.default.createElement("span",{className:h("pill-category")},"".concat(l,": ")):void 0,o.default.createElement("span",null,t)),x.isRemovable&&V()))}()};E.propTypes=C;t.default=(0,s.injectIntl)(E)},43017:function(e,t,l){var r=l(24994),a=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var l=b(t);if(l&&l.has(e))return l.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&{}.hasOwnProperty.call(e,u)){var i=n?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(r,u,i):r[u]=e[u]}return r.default=e,l&&l.set(e,r),r}(l(96540)),u=l(25966),i=l(8604),o=r(l(67967)),c=r(l(5556)),s=r(l(23695)),d=l(68414),f=r(l(16524)),p=r(l(97412));function b(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(b=function(e){return e?l:t})(e)}var m=o.default.bind(p.default),v={isCollapsed:c.default.bool,onSelectRollUp:c.default.func,rollupCount:c.default.number,intl:c.default.shape({formatMessage:c.default.func}).isRequired},_=function(e){var t=e.isCollapsed,l=e.onSelectRollUp,r=e.intl,a=e.rollupCount,i=(0,n.useRef)(),o=n.default.useContext(s.default),c=t&&a>0?r.formatMessage({id:"Terra.pills.label.rollupPill"},{pillsNotVisibleCount:a}):r.formatMessage({id:"Terra.pills.label.showLess"}),p=t?r.formatMessage({id:"Terra.pills.hint.rollupPill"},{pillsNotVisibleCount:a}):r.formatMessage({id:"Terra.pills.hint.showLess"}),b="terra-rollup-pill-".concat((0,d.v4)()),v="terra-rollup-pill-".concat((0,d.v4)());return n.default.createElement("div",{role:"listitem",className:m("pill-list-item")},n.default.createElement("button",{id:b,className:m(["rollup-pill",o.className]),onClick:function(e){e.preventDefault(),e.stopPropagation(),l(e)},onKeyDown:function(e){i.current.setAttribute("data-terra-rollup-pill-show-focus-styles","true"),e.keyCode!==u.KEY_RETURN&&e.keyCode!==u.KEY_SPACE||(e.preventDefault(),e.stopPropagation(),l(e))},onMouseDown:function(){i.current.setAttribute("data-terra-rollup-pill-show-focus-styles","false")},onBlur:function(){i.current.setAttribute("data-terra-rollup-pill-show-focus-styles","true")},ref:i,tabIndex:"0",type:"button","aria-describedby":v,"data-terra-rollup-pill-show-focus-styles":!0,"data-terra-rollup-pill":!0},n.default.createElement("span",{className:m("rollup-pill-label")},c)),n.default.createElement(f.default,{id:v,text:p,"aria-hidden":"true"}))};_.propTypes=v;t.default=(0,i.injectIntl)(_)},97412:function(e,t,l){l.r(t),t.default={"clinical-lowlight-theme":"Pill-module__clinical-lowlight-theme___6e6Ug","orion-fusion-theme":"Pill-module__orion-fusion-theme___BcmBS","pills-group":"Pill-module__pills-group___sq89H","pill-list-item":"Pill-module__pill-list-item___k0qf6",pill:"Pill-module__pill___eeL05","is-focusable":"Pill-module__is-focusable___Q6EGN","pill-label":"Pill-module__pill-label___+br8j","pill-category":"Pill-module__pill-category___Rkjqr","is-removable":"Pill-module__is-removable___d4BHt","pill-remove-button":"Pill-module__pill-remove-button___CH1Py","clear-icon":"Pill-module__clear-icon___NvKUS","is-selectable-and-removable":"Pill-module__is-selectable-and-removable___Vo-YG","rollup-pill":"Pill-module__rollup-pill___Q+GVC","rollup-pill-label":"Pill-module__rollup-pill-label___SPSFI","popup-content-pill-label":"Pill-module__popup-content-pill-label___47C1k","popup-content-pill-category":"Pill-module__popup-content-pill-category___LSi+J"}}}]); \ No newline at end of file diff --git a/pull/2158/93939-40d89f6ba3ded60f0e1a.css b/pull/2158/93939-2b12d8cd96f260a7e6f2.css similarity index 100% rename from pull/2158/93939-40d89f6ba3ded60f0e1a.css rename to pull/2158/93939-2b12d8cd96f260a7e6f2.css diff --git a/pull/2158/93939-40d89f6ba3ded60f0e1a.js b/pull/2158/93939-2b12d8cd96f260a7e6f2.js similarity index 74% rename from pull/2158/93939-40d89f6ba3ded60f0e1a.js rename to pull/2158/93939-2b12d8cd96f260a7e6f2.js index 0a3ec727eda..69442725f87 100644 --- a/pull/2158/93939-40d89f6ba3ded60f0e1a.js +++ b/pull/2158/93939-2b12d8cd96f260a7e6f2.js @@ -1 +1 @@ -"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[93939],{93939:function(e,t,l){var a=l(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(l(96540)),i=a(l(67967)),o=a(l(51866)),n=a(l(51680)),u=a(l(93089)),d=i.default.bind(u.default);t.default=function(){return r.default.createElement(o.default,{data:n.default.slice(0,1),ariaLabel:"Example of Single Removable Filter Pill",className:d(["show-border"])})}},51680:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{label:"asthma",labelCategory:"respiratory",id:"terra-filter-pills-asthma"},{label:"bronchitis",labelCategory:"respiratory",id:"terra-filter-pills-bronchitis"},{label:"fibro",labelCategory:"respiratory",id:"terra-filter-pills-fibro"},{label:"allergies",labelCategory:"skin",id:"terra-filter-pills-allergies"},{label:"hypertension",labelCategory:"cardio",id:"terra-filter-pills-hypertension"},{label:"cardiac",labelCategory:"cardio",id:"terra-filter-pills-cardiac"}]},51866:function(e,t,l){var a=l(24994),r=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(l(41132)),o=a(l(85715)),n=f(l(96540)),u=a(l(5556)),d=f(l(90180));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(s=function(e){return e?l:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var l=s(t);if(l&&l.has(e))return l.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=i?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(a,o,n):a[o]=e[o]}return a.default=e,l&&l.set(e,a),a}var c={ariaLabel:u.default.string,className:u.default.string,data:u.default.array,isCollapsible:u.default.bool},p=function(e){var t=e.data,l=e.ariaLabel,a=e.className,r=e.isCollapsible,u=(0,n.useState)(t),s=(0,o.default)(u,2),f=s[0],c=s[1],p=(0,n.useState)(0),b=(0,o.default)(p,2),_=b[0],m=b[1];return n.default.createElement(n.default.Fragment,null,n.default.createElement(d.default,{ariaLabel:l,onRemove:function(e,t){var l=f;l.splice(t.index,1),c((0,i.default)(l))},className:a,isCollapsible:r},f.map((function(e,t){return n.default.createElement(d.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:t}})}))),f.length<=0&&n.default.createElement("button",{type:"button",onClick:function(){return c(t)}},"Show Pills"),r&&n.default.createElement("button",{type:"button",onClick:function(){var e=f,t={label:"test-pill- ".concat(_),id:"test-filter-pills-test-".concat(_)};m((function(e){return e+1})),e.push(t),c(e)}}," Add more pills"))};p.propTypes=c,p.defaultProps={isCollapsible:!1};t.default=p},93089:function(e,t,l){l.r(t),t.default={"spacing-wrapper":"FilterPillsTestCommon-module__spacing-wrapper___VtTUh",container:"FilterPillsTestCommon-module__container___kHV-K","show-border":"FilterPillsTestCommon-module__show-border___zbvfC","width-50":"FilterPillsTestCommon-module__width-50___+OPfT","width-10":"FilterPillsTestCommon-module__width-10___mO70v",hidden:"FilterPillsTestCommon-module__hidden___+-b03"}}}]); \ No newline at end of file +"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[93939],{93939:function(e,t,l){var a=l(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(l(96540)),i=a(l(67967)),o=a(l(51866)),n=a(l(51680)),u=a(l(93089)),d=i.default.bind(u.default);t.default=function(){return r.default.createElement(o.default,{data:n.default.slice(0,1),ariaLabel:"Example of Single Removable Filter Pill",className:d(["show-border"])})}},51680:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=[{label:"asthma",labelCategory:"respiratory",id:"terra-filter-pills-asthma"},{label:"bronchitis",labelCategory:"respiratory",id:"terra-filter-pills-bronchitis"},{label:"fibro",labelCategory:"respiratory",id:"terra-filter-pills-fibro"},{label:"allergies",labelCategory:"skin",id:"terra-filter-pills-allergies"},{label:"hypertension",labelCategory:"cardio",id:"terra-filter-pills-hypertension"},{label:"cardiac",labelCategory:"cardio",id:"terra-filter-pills-cardiac"}]},51866:function(e,t,l){var a=l(24994),r=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(l(41132)),o=a(l(85715)),n=f(l(96540)),u=a(l(5556)),d=f(l(90180));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(s=function(e){return e?l:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var l=s(t);if(l&&l.has(e))return l.get(e);var a={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&{}.hasOwnProperty.call(e,o)){var n=i?Object.getOwnPropertyDescriptor(e,o):null;n&&(n.get||n.set)?Object.defineProperty(a,o,n):a[o]=e[o]}return a.default=e,l&&l.set(e,a),a}var c={ariaLabel:u.default.string,className:u.default.string,data:u.default.array,isCollapsible:u.default.bool},p=function(e){var t=e.data,l=e.ariaLabel,a=e.className,r=e.isCollapsible,u=(0,n.useState)(t),s=(0,o.default)(u,2),f=s[0],c=s[1],p=(0,n.useState)(0),b=(0,o.default)(p,2),_=b[0],m=b[1];return n.default.createElement(n.default.Fragment,null,n.default.createElement(d.default,{ariaLabel:l,onRemove:function(e,t){var l=f;l.splice(t.index,1),c((0,i.default)(l))},className:a,isCollapsible:r},f.map((function(e,t){return n.default.createElement(d.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:t},isPopupHeaderDisabled:!1})}))),f.length<=0&&n.default.createElement("button",{type:"button",onClick:function(){return c(t)}},"Show Pills"),r&&n.default.createElement("button",{type:"button",onClick:function(){var e=f,t={label:"test-pill- ".concat(_),id:"test-filter-pills-test-".concat(_)};m((function(e){return e+1})),e.push(t),c(e)}}," Add more pills"))};p.propTypes=c,p.defaultProps={isCollapsible:!1};t.default=p},93089:function(e,t,l){l.r(t),t.default={"spacing-wrapper":"FilterPillsTestCommon-module__spacing-wrapper___VtTUh",container:"FilterPillsTestCommon-module__container___kHV-K","show-border":"FilterPillsTestCommon-module__show-border___zbvfC","width-50":"FilterPillsTestCommon-module__width-50___+OPfT","width-10":"FilterPillsTestCommon-module__width-10___mO70v",hidden:"FilterPillsTestCommon-module__hidden___+-b03"}}}]); \ No newline at end of file diff --git a/pull/2158/9495-ac810e0a321d5c214c87.css b/pull/2158/9495-6f9c37898c61f3a4f57a.css similarity index 100% rename from pull/2158/9495-ac810e0a321d5c214c87.css rename to pull/2158/9495-6f9c37898c61f3a4f57a.css diff --git a/pull/2158/9495-ac810e0a321d5c214c87.js b/pull/2158/9495-6f9c37898c61f3a4f57a.js similarity index 70% rename from pull/2158/9495-ac810e0a321d5c214c87.js rename to pull/2158/9495-6f9c37898c61f3a4f57a.js index 6074b146acf..ed8223cc839 100644 --- a/pull/2158/9495-ac810e0a321d5c214c87.js +++ b/pull/2158/9495-6f9c37898c61f3a4f57a.js @@ -1 +1 @@ -"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[9495],{9495:function(e,t,l){var a=l(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(l(96540)),n=a(l(67967)),i=a(l(51866)),o=a(l(93089)),u=n.default.bind(o.default);t.default=function(){return r.default.createElement(i.default,{data:[{label:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pulvinar magna non erat eleifend auctor. Ut rhoncus nibh sed ante mollis, ac iaculis libero lacinia.",labelCategory:"Long Label",id:"terra-filter-pills-selectable-removable-pill-asthma"}],ariaLabel:"Example of single selectable and removable Filter Pill with long label",className:u(["show-border","width-10"])})}},51866:function(e,t,l){var a=l(24994),r=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(l(41132)),i=a(l(85715)),o=f(l(96540)),u=a(l(5556)),s=f(l(90180));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(d=function(e){return e?l:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var l=d(t);if(l&&l.has(e))return l.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,l&&l.set(e,a),a}var c={ariaLabel:u.default.string,className:u.default.string,data:u.default.array,isCollapsible:u.default.bool},p=function(e){var t=e.data,l=e.ariaLabel,a=e.className,r=e.isCollapsible,u=(0,o.useState)(t),d=(0,i.default)(u,2),f=d[0],c=d[1],p=(0,o.useState)(0),m=(0,i.default)(p,2),b=m[0],_=m[1];return o.default.createElement(o.default.Fragment,null,o.default.createElement(s.default,{ariaLabel:l,onRemove:function(e,t){var l=f;l.splice(t.index,1),c((0,n.default)(l))},className:a,isCollapsible:r},f.map((function(e,t){return o.default.createElement(s.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:t}})}))),f.length<=0&&o.default.createElement("button",{type:"button",onClick:function(){return c(t)}},"Show Pills"),r&&o.default.createElement("button",{type:"button",onClick:function(){var e=f,t={label:"test-pill- ".concat(b),id:"test-filter-pills-test-".concat(b)};_((function(e){return e+1})),e.push(t),c(e)}}," Add more pills"))};p.propTypes=c,p.defaultProps={isCollapsible:!1};t.default=p},93089:function(e,t,l){l.r(t),t.default={"spacing-wrapper":"FilterPillsTestCommon-module__spacing-wrapper___VtTUh",container:"FilterPillsTestCommon-module__container___kHV-K","show-border":"FilterPillsTestCommon-module__show-border___zbvfC","width-50":"FilterPillsTestCommon-module__width-50___+OPfT","width-10":"FilterPillsTestCommon-module__width-10___mO70v",hidden:"FilterPillsTestCommon-module__hidden___+-b03"}}}]); \ No newline at end of file +"use strict";(self.webpackChunkterra_framework=self.webpackChunkterra_framework||[]).push([[9495],{9495:function(e,t,l){var a=l(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=a(l(96540)),n=a(l(67967)),i=a(l(51866)),o=a(l(93089)),u=n.default.bind(o.default);t.default=function(){return r.default.createElement(i.default,{data:[{label:"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Phasellus pulvinar magna non erat eleifend auctor. Ut rhoncus nibh sed ante mollis, ac iaculis libero lacinia.",labelCategory:"Long Label",id:"terra-filter-pills-selectable-removable-pill-asthma"}],ariaLabel:"Example of single selectable and removable Filter Pill with long label",className:u(["show-border","width-10"])})}},51866:function(e,t,l){var a=l(24994),r=l(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(l(41132)),i=a(l(85715)),o=f(l(96540)),u=a(l(5556)),s=f(l(90180));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,l=new WeakMap;return(d=function(e){return e?l:t})(e)}function f(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=r(e)&&"function"!=typeof e)return{default:e};var l=d(t);if(l&&l.has(e))return l.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var o=n?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(a,i,o):a[i]=e[i]}return a.default=e,l&&l.set(e,a),a}var c={ariaLabel:u.default.string,className:u.default.string,data:u.default.array,isCollapsible:u.default.bool},p=function(e){var t=e.data,l=e.ariaLabel,a=e.className,r=e.isCollapsible,u=(0,o.useState)(t),d=(0,i.default)(u,2),f=d[0],c=d[1],p=(0,o.useState)(0),m=(0,i.default)(p,2),b=m[0],_=m[1];return o.default.createElement(o.default.Fragment,null,o.default.createElement(s.default,{ariaLabel:l,onRemove:function(e,t){var l=f;l.splice(t.index,1),c((0,n.default)(l))},className:a,isCollapsible:r},f.map((function(e,t){return o.default.createElement(s.Pill,{label:e.label,labelCategory:e.labelCategory,id:e.id,key:e.id,metaData:{index:t},isPopupHeaderDisabled:!1})}))),f.length<=0&&o.default.createElement("button",{type:"button",onClick:function(){return c(t)}},"Show Pills"),r&&o.default.createElement("button",{type:"button",onClick:function(){var e=f,t={label:"test-pill- ".concat(b),id:"test-filter-pills-test-".concat(b)};_((function(e){return e+1})),e.push(t),c(e)}}," Add more pills"))};p.propTypes=c,p.defaultProps={isCollapsible:!1};t.default=p},93089:function(e,t,l){l.r(t),t.default={"spacing-wrapper":"FilterPillsTestCommon-module__spacing-wrapper___VtTUh",container:"FilterPillsTestCommon-module__container___kHV-K","show-border":"FilterPillsTestCommon-module__show-border___zbvfC","width-50":"FilterPillsTestCommon-module__width-50___+OPfT","width-10":"FilterPillsTestCommon-module__width-10___mO70v",hidden:"FilterPillsTestCommon-module__hidden___+-b03"}}}]); \ No newline at end of file diff --git a/pull/2158/index-9ead3216ec9fc2df0f1c.css b/pull/2158/index-67b20951f5e70fc7faac.css similarity index 100% rename from pull/2158/index-9ead3216ec9fc2df0f1c.css rename to pull/2158/index-67b20951f5e70fc7faac.css diff --git a/pull/2158/index-9ead3216ec9fc2df0f1c.js b/pull/2158/index-67b20951f5e70fc7faac.js similarity index 99% rename from pull/2158/index-9ead3216ec9fc2df0f1c.js rename to pull/2158/index-67b20951f5e70fc7faac.js index b8b63f85afa..7ce882ca918 100644 --- a/pull/2158/index-9ead3216ec9fc2df0f1c.js +++ b/pull/2158/index-67b20951f5e70fc7faac.js @@ -1,2 +1,2 @@ -/*! For license information please see index-9ead3216ec9fc2df0f1c.js.LICENSE.txt */ -!function(){var e,t,n,r,a={19883:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(){try{return window.sessionStorage}catch(e){return void 0}}},17604:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(5556)),i=r(n(67967)),l=n(92912),u=r(n(16379)),s=i.default.bind(u.default),c={type:o.default.string,children:o.default.element.isRequired,isScrollContainer:o.default.bool},d=function(e){var t=e.children,n=e.type,r=e.isScrollContainer,o=a.default.useContext(l.ThemeContext);return a.default.createElement("div",{id:"site","data-terra-dev-site-content":!0,"data-terra-test-content":!0,className:s(o.className,"dev-site-content",{markdown:["md","mdx"].includes(n),scroll:r})},t)};d.propTypes=c;t.default=d},50565:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(85715)),o=r(n(96540)),i=n(28651),l=r(n(94480)),u=r(n(73171)),s=r(n(17604)),c=n(87038),d=r(n(75980)),f={pageContentConfig:c.pageContentConfigShape.isRequired,contentImports:c.contentImportsShape.isRequired},p=function(e){var t=e.pageContentConfig,n=e.contentImports[(0,i.useLocation)().pathname],r=o.default.useState(),c=(0,a.default)(r,2),f=c[0],p=c[1];return t&&n?f?o.default.createElement(s.default,{type:t.type,isScrollContainer:!0},o.default.createElement("div",null,"Error: chunk failed to load.")):o.default.createElement(u.default,{onError:function(){return p(!0)}},o.default.createElement(s.default,{type:t.type,isScrollContainer:!0},o.default.createElement(n,null))):o.default.createElement(l.default,{src:d.default,width:"100%",alt:"404"})};p.propTypes=f;t.default=p},52976:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(5556)),i=n(28651),l=r(n(84806)),u=r(n(83858)),s={siteConfig:r(n(87038)).default.isRequired,ApplicationNavigation:o.default.func},c=function(e){var t=e.siteConfig,n=e.ApplicationNavigation;return(0,i.useRouteMatch)("/raw")?a.default.createElement(u.default,{siteConfig:t}):a.default.createElement(l.default,{siteConfig:t,ApplicationNavigation:n})};c.propTypes=s;t.default=c},84806:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(5556)),i=n(28651),l=r(n(98814)),u=r(n(17534)),s=r(n(80428)),c=n(53480),d=r(n(19752)),f=r(n(63635)),p=r(n(41379)),m=r(n(4595)),h=r(n(51500)),b=r(n(64055)),v=r(n(87038)),g=r(n(42266)),y=r(n(50565)),_={siteConfig:v.default.isRequired,ApplicationNavigation:o.default.func},w=function(e){var t,n,r,o=e.siteConfig,v=e.ApplicationNavigation,_=(0,i.useLocation)(),w=(0,i.useHistory)(),k=(0,i.useRouteMatch)("/home"),O=a.default.useContext(c.DisclosureManagerContext),E=v||s.default,x="/".concat(_.pathname.toLocaleLowerCase().split("/")[1]),P=o.navigationConfig.find((function(e){return e.path===x}));return a.default.createElement(a.default.Fragment,null,a.default.createElement(E,{id:"terra-dev-site",titleConfig:o.titleConfig,navigationItems:o.navigationConfig.map((function(e){return{key:e.path,text:e.label}})),onSelectSettings:function(){O.disclose({preferredType:"modal",size:"small",content:{key:"terra-dev-site.settings",component:a.default.createElement(m.default,null)}})},onSelectExtensionItem:function(e,t){t.disclose()},onSelectUtilityItem:function(e,t){t.disclose()},onSelectNavigationItem:function(e){!function(e){w.push(o.routesMap[e])}(e)},activeNavigationItemKey:P?x:void 0,extensionItems:(r=(o.extensionItems||[]).map((function(e){return{icon:a.default.createElement(e.icon,null),key:e.key,text:e.text,metaData:{disclose:function(){O.disclose({preferredType:"modal",size:"large",content:{key:e.key,component:a.default.createElement(e.modal,null)}})}}}})),r.unshift({icon:a.default.createElement(l.default,null),key:"terra-dev-site.search",text:"Search",metaData:{disclose:function(){O.disclose({preferredType:"modal",size:"large",content:{key:"terra-dev-site.search",component:a.default.createElement(h.default,{pageConfig:o.pageConfig})}})}}}),r),utilityItems:(t=o.sites,n=[],t.length>0&&n.push({icon:a.default.createElement(u.default,null),key:"terra-dev-site.application-switcher",text:"Application Switcher",metaData:{disclose:function(){O.disclose({preferredType:"modal",size:"tiny",content:{key:"terra-dev-site.application-switcher",component:a.default.createElement(b.default,{sites:t})}})}}}),n)},P?P.pageConfig?k?a.default.createElement(y.default,{pageContentConfig:P.pageConfig,contentImports:o.contentImports}):a.default.createElement(f.default,null,a.default.createElement(d.default,{pageContentConfig:P.pageConfig,contentImports:o.contentImports})):a.default.createElement(g.default,{label:P.label,id:P.path.substring(1),config:P.children,contentImports:o.contentImports}):a.default.createElement(f.default,null,a.default.createElement(p.default,null))))};w.propTypes=_;t.default=w},42266:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(96540)),i=r(n(5556)),l=n(28651),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(85055)),s=r(n(63635)),c=r(n(58028)),d=r(n(41859)),f=r(n(19752)),p=r(n(41379)),m=n(87038);function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}var b={id:i.default.string.isRequired,contentImports:m.contentImportsShape.isRequired,config:m.navigationConfigShape,label:i.default.string.isRequired},v=function e(t,n){return t.map((function(t){return t.children?o.default.createElement(d.default,{key:t.label,label:t.label},e(t.children,n)):o.default.createElement(u.default,{key:t.path,navigationKey:t.path,label:t.label,renderPage:function(){return o.default.createElement(f.default,{pageContentConfig:t,contentImports:n})}})}))},g=function(e){var t=e.id,n=e.label,r=e.config,a=e.contentImports,i=(0,l.useLocation)(),d=(0,l.useHistory)(),f=o.default.useContext(u.NavigationItemContext).isActive,m=o.default.useMemo((function(){return v(r,a)}),[r,a]);return f?o.default.createElement(c.default,{id:t,activeNavigationKey:i.pathname.toLocaleLowerCase(),label:n,onSelectNavigationItem:function(e){return d.push(e)},renderNavigationFallback:function(){return o.default.createElement(s.default,{isMain:!0},o.default.createElement(p.default,null))}},m):null};g.propTypes=b;t.default=g},83858:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(85715)),o=r(n(96540)),i=n(28651),l=r(n(67967)),u=r(n(94480)),s=r(n(17604)),c=r(n(73171)),d=r(n(75980)),f=r(n(87038)),p=r(n(92292)),m=l.default.bind(p.default),h={siteConfig:f.default.isRequired},b=function(e){var t=e.siteConfig,n=(0,i.useLocation)().pathname.substring(4).toLocaleLowerCase(),r=t.pageConfig[n],l=t.contentImports[n],f=o.default.useState(),p=(0,a.default)(f,2),h=p[0],b=p[1];return r&&l?h?o.default.createElement(s.default,{type:r.type,isScrollContainer:!0},o.default.createElement("div",null,"Error: chunk failed to load.")):o.default.createElement("div",{role:"main",className:m("main")},o.default.createElement(c.default,{fallback:o.default.createElement("div",null,"loading"),onError:function(){return b(!0)}},o.default.createElement(s.default,{type:r.type,isScrollContainer:!0},o.default.createElement(l,null)))):o.default.createElement(u.default,{src:d.default,width:"100%",alt:"404"})};b.propTypes=h;t.default=b},2801:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(5556)),i=r(n(67967)),l=r(n(34068)),u=r(n(45722)),s=r(n(17371)),c=i.default.bind(s.default),d={children:o.default.node},f=function(e){var t=e.children,n=a.default.useContext(l.default),r=a.default.useMemo((function(){return{startActions:n.startActions||[],containerActions:[]}}),[n.startActions]);return a.default.createElement("div",{className:c("page-container"),"data-testid":"page-container"},a.default.createElement(u.default.Provider,{value:r},t))};f.propTypes=d;t.default=f},45722:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.contextShape=void 0;var a=r(n(96540)),o=r(n(5556)),i=a.default.createContext(),l=o.default.shape({key:o.default.string.isRequired,label:o.default.string.isRequired,icon:o.default.elementType,onSelect:o.default.func});t.contextShape={containerStartActions:o.default.arrayOf(l),containerEndActions:o.default.arrayOf(l)},t.default=i},63635:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(2801));t.default=a.default},34068:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.contextShape=void 0;var a=n(96540),o=r(n(5556)),i=(0,a.createContext)({startActions:[],endActions:[]}),l=o.default.shape({key:o.default.string.isRequired,label:o.default.string.isRequired,icon:o.default.elementType,onSelect:o.default.func,isToggleActive:o.default.bool});t.contextShape={startActions:o.default.arrayOf(l),endActions:o.default.arrayOf(l)},t.default=i},41859:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(5556)),i={label:o.default.string,children:o.default.node},l=function(e){e.label,e.children;return a.default.createElement("div",null)};l.propTypes=i;t.default=l},58028:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(41132)),o=r(n(85715)),i=r(n(96540)),l=r(n(5556)),u=r(n(67967)),s=n(25966),c=r(n(8237)),d=n(92912),f=n(53757),p=r(n(58175)),m=r(n(85055)),h=r(n(63635)),b=r(n(97448)),v=r(n(34068)),g=r(n(41859)),y=r(n(12371)),_=r(n(70669)),w=r(n(41042)),k=u.default.bind(w.default),O=["tiny","small","medium"],E={id:l.default.string.isRequired,label:l.default.string.isRequired,activeNavigationKey:l.default.string.isRequired,onSelectNavigationItem:l.default.func,renderPage:l.default.func,renderLayout:l.default.func,renderNavigationFallback:l.default.func,children:l.default.node};function x(e){return{text:e.label,name:e.label,path:e.key,childItems:e.childItems?e.childItems.map(x):void 0}}var P=function(e){var t=e.id,n=e.label,r=e.activeNavigationKey,l=e.children,u=e.onSelectNavigationItem,w=e.renderPage,E=e.renderLayout,P=e.renderNavigationFallback,S=i.default.useContext(f.ActiveBreakpointContext),C=i.default.useContext(v.default),j=i.default.useContext(d.ThemeContext),D=i.default.useRef(),M=i.default.useRef(),T=i.default.useRef(),A=i.default.useRef(),N=(0,p.default)(r,(function(){(0,b.default)((function(){document.body.focus()}))})),I=(0,o.default)(N,3),R=I[0],F=I[1],L=I[2],z=i.default.useState(!1),B=(0,o.default)(z,2),U=B[0],W=B[1];var H=function e(t){return i.default.Children.toArray(t).reduce((function(t,n){var r=(0,a.default)(t);if(n.type===m.default)r.push(n);else if(n.type===g.default){var o=e(n.props.children);o&&r.push.apply(r,(0,a.default)(o))}return r}),[])}(l),G=!!H.find((function(e){return e.props.navigationKey===r})),V=!!H.length,q=-1!==O.indexOf(S),K=V&&(U||-1===O.indexOf(S)),Y=i.default.useMemo((function(){var e=C.startActions;return V&&q&&(e=[].concat((0,a.default)(e),[{key:"secondary-navigation-layout-toggle-navigation-panel",label:"Toggle Navigation Panel ".concat(U?"Closed":"Open"),icon:c.default,onSelect:function(){W((function(e){return!e}))}}])),{startActions:e,endActions:C.endActions}}),[C.startActions,C.endActions,V,q,U]);i.default.useEffect((function(){var e=H.map((function(e){return e.props.navigationKey}));Object.keys(F.current).filter((function(t){return!e.includes(t)})).forEach((function(e){delete F.current[e]}))}),[H,F]);var $,X=i.default.useRef(U);return i.default.useEffect((function(){U&&!X.current?(0,b.default)((function(){T.current.focus()})):!U&&X.current&&(0,b.default)((function(){var e=document.querySelector("main");e&&e.focus()})),X.current=U}),[U]),i.default.useEffect((function(){if(U)return document.addEventListener("keydown",e),function(){document.removeEventListener("keydown",e)};function e(e){e.keyCode===s.KEY_ESCAPE&&(e.target===D.current||D.current.contains(e.target))&&W(!1)}}),[U,W]),$=w?i.default.createElement(h.default,null,w()):E?E():H.length?i.default.createElement(i.default.Fragment,null,H.map((function(e){var t,n=null===(t=F.current[e.props.navigationKey])||void 0===t?void 0:t.element;return n||((n=document.createElement("div")).style.position="relative",n.style.height="100%",n.style.width="100%",n.id="side-nav-".concat(e.props.navigationKey),F.current[e.props.navigationKey]={element:n}),i.default.createElement(i.default.Fragment,{key:e.props.navigationKey},i.default.cloneElement(e,{isActive:e.props.navigationKey===L,portalElement:n}))})),!G&&P?P():void 0):l,i.default.createElement(i.default.Fragment,null,i.default.createElement("div",{className:k("side-nav-container",j.className),ref:D},i.default.createElement("div",{ref:T,className:k("side-nav-sidebar",{visible:V&&K,overlay:q}),tabIndex:"-1"},V&&i.default.createElement("div",{className:k("sidebar-container")},i.default.createElement("div",{className:k("header-container")},i.default.createElement(_.default,{label:n,onRequestClose:U?function(){W(!1)}:void 0})),i.default.createElement("div",{className:k("content")},i.default.createElement(y.default,{id:"".concat(t,"-side-nav"),selectedPath:r,onSelect:function(e){var t;t=e,W(!1),t!==r&&u(t)},menuItems:[{childItems:function e(t){return i.default.Children.map(t,(function(t){return t.type===m.default?{key:t.props.navigationKey,label:t.props.label}:t.type===g.default?{key:t.props.label,label:t.props.label,childItems:e(t.props.children)}:null}))}(l).map(x)}]})))),i.default.createElement("div",{ref:M,className:k("side-nav-body")},i.default.createElement("div",{ref:R,className:k("page-body"),inert:U?"true":null},i.default.createElement(v.default.Provider,{value:Y},$)),U?i.default.createElement("div",{ref:A,className:k("side-nav-overlay"),onClick:function(){W(!1)}}):null)))};P.propTypes=E;t.default=P},69198:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(41132)),o=r(n(96540)),i=r(n(40961)),l=r(n(5556)),u=r(n(94027)),s=r(n(63635)),c={navigationKey:l.default.string.isRequired,label:l.default.string.isRequired,renderLayout:l.default.func,renderPage:l.default.func,children:l.default.node,isActive:l.default.bool,portalElement:l.default.instanceOf(HTMLElement)},d=function(e){var t,n=e.navigationKey,r=e.children,l=e.renderLayout,c=e.renderPage,d=e.isActive,f=e.portalElement,p=o.default.useContext(u.default),m=o.default.useMemo((function(){return{isActive:d&&p.isActive,navigationKeys:[].concat((0,a.default)(p.navigationKeys),[n])}}),[d,n,p.isActive,p.navigationKeys]);return t=l?l({isActive:d}):c?o.default.createElement(s.default,null,c({isActive:d})):r,i.default.createPortal(o.default.createElement(u.default.Provider,{value:m},t),f)};d.propTypes=c;t.default=d},94027:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.contextShape=void 0;var a=n(96540),o=r(n(5556)),i=(0,a.createContext)({isActive:!0,navigationKeys:[]});t.contextShape={isActive:o.default.bool,navigationKeys:o.default.arrayOf(o.default.string)},t.default=i},85055:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NavigationItemContext",{enumerable:!0,get:function(){return i.default}}),t.default=void 0,Object.defineProperty(t,"navigationItemContextShape",{enumerable:!0,get:function(){return i.contextShape}});var o=r(n(69198)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(r,i,u):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(94027));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}t.default=o.default},12371:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(43693)),i=r(n(85715)),l=h(n(96540)),u=r(n(5556)),s=r(n(67967)),c=h(n(25966)),d=n(92912),f=r(n(95088)),p=r(n(85599));function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function h(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t0&&(r=o.concat([t.path]),!0)})),r},w=function(e,t){return _(e,t).reduce((function(e,t){return e[t]=!0,e}),{})},k=function(e){var t=e.id,n=e.selectedPath,r=void 0===n?void 0:n,a=e.menuItems,u=e.onSelect,s=l.default.useRef(),p=(0,l.useState)(w(a[0],r)),m=(0,i.default)(p,2),h=m[0],b=m[1],y=(0,l.useRef)(),_=(0,l.useRef)(0),k=(0,l.useRef)(),O=(0,l.useRef)(r),E=[],x=l.default.useContext(d.ThemeContext),P=function(e){var t=y.current&&s.current?s.current.querySelector("#".concat(y.current)):null;t&&t.setAttribute("tabIndex",e)},S=function(){var e=y.current&&s.current?s.current.querySelector("#".concat(y.current)):null;e&&e.focus()};(0,l.useEffect)((function(){var e,t,n=null===(e=k.current)||void 0===e?void 0:e.getAttribute("id");(t=n?E.findIndex((function(e){return e.id===n})):0)>=0&&(_.current=t,y.current=E[_.current].id,P("0")),k&&k.current&&k.current.scrollIntoView()}),[]),(0,l.useEffect)((function(){var e,t=null===(e=k.current)||void 0===e?void 0:e.getAttribute("id"),n=E.findIndex((function(e){return e.id===t}));n>=0&&(_.current=n,y.current=E[_.current].id)}),[r]),(0,l.useEffect)((function(){if(y.current&&(_.current=E.findIndex((function(e){return e.id===y.current}))),O.current!==r){var e=null!=k&&k.current?k.current.getBoundingClientRect():null,t=s.current.getBoundingClientRect();e&&t&&(e.bottom>t.bottom||e.top=1&&(P("-1"),_.current-=1,y.current=E[_.current].id,P("0"),S());break;case c.KEY_RIGHT:e.preventDefault(),y.current&&(n=s.current.querySelector("#".concat(y.current)).getAttribute("aria-expanded"))&&("true"===n?j():C(e,t));break;case c.KEY_LEFT:e.preventDefault(),y.current&&((n=s.current.querySelector("#".concat(y.current)).getAttribute("aria-expanded"))&&"true"===n?C(e,t):function(){if(y.current){var e=E.find((function(e){return e.id===y.current})).parent;e&&(P("-1"),_.current=E.findIndex((function(t){return t.id===e})),y.current=E[_.current].id,P("0"),S())}}());break;case c.KEY_HOME:e.preventDefault(),P("-1"),_.current=0,y.current=E[_.current].id,P("0"),S();break;case c.KEY_END:e.preventDefault(),P("-1"),_.current=E.length-1,y.current=E[_.current].id,P("0"),S();break;default:if(e.nativeEvent.keyCode>=c.KEY_A&&e.nativeEvent.keyCode<=c.KEY_Z)e.preventDefault(),function(e){var t=E.slice(_.current+1,E.length),n=(t=t.concat(E.slice(0,_.current))).find((function(t){return t.id[0].toUpperCase()===e}));n&&(P("-1"),_.current=E.findIndex((function(e){return e.id===n.id})),y.current=n.id,P("0"),S())}(String.fromCharCode(e.nativeEvent.keyCode))}};return l.default.createElement("div",{ref:s,className:g("collapsing-navigation-menu",x.className),id:"terra-dev-site-nav-menu",role:"tree"},a?function e(n){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3?arguments[3]:void 0;if(n)return n.map((function(n,u){var s;s=i?"".concat(i,"-").concat(u):"idxPath-".concat(u);var c="".concat(t,"-").concat(s),d=!!h[n.path],p=r===n.path;return E.push({id:c,parentId:a}),l.default.createElement(f.default,{id:c,key:c,item:n,itemIsOpen:d,isSelected:p,childItems:d?e(n.childItems,c,!1,s):null,firstLevel:o,handleKeyDown:D,handleOnClick:C,ref:p?k:null})}))}(a[0].childItems,"",!0):void 0)};k.propTypes=y;t.default=k},95088:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(94634)),o=r(n(96540)),i=r(n(5556)),l=r(n(67967)),u=r(n(16345)),s=r(n(47479)),c=r(n(85599)),d=l.default.bind(c.default),f={item:i.default.shape({text:i.default.string,path:i.default.string,childItems:i.default.arrayOf(i.default.object),name:i.default.string}).isRequired,id:i.default.string.isRequired,itemIsOpen:i.default.bool,isSelected:i.default.bool,childItems:i.default.arrayOf(i.default.element),firstLevel:i.default.bool,handleKeyDown:i.default.func.isRequired,handleOnClick:i.default.func.isRequired},p=function(e){e.currentTarget.setAttribute("data-focus-styles-enabled","true")},m=function(e){e.currentTarget.setAttribute("data-focus-styles-enabled","false")},h=o.default.forwardRef((function(e,t){var n=e.item,r=e.id,i=e.itemIsOpen,c=e.isSelected,f=e.childItems,h=e.firstLevel,b=e.handleKeyDown,v=e.handleOnClick,g=void 0!==n.childItems,y=(0,l.default)(d(["item",{"is-selected":c}])),_=g?{"aria-expanded":i}:{};return o.default.createElement(o.default.Fragment,{key:n.path},o.default.createElement("div",{className:h?null:d("indent")},o.default.createElement("div",(0,a.default)({className:y,tabIndex:"-1",role:"treeitem","aria-selected":c,id:r,onKeyDown:function(e){return b(e,n)},onClick:function(e){return v(e,n)},onBlur:p,onMouseDown:m,"data-focus-styles-enabled":!0,ref:t},_),g?o.default.createElement("span",{className:d("disclosure")},i?o.default.createElement(s.default,{className:d("caret")}):o.default.createElement(u.default,{className:d("caret")})):null,n.name),f))}));h.propTypes=f;t.default=h},70669:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(96540)),i=r(n(5556)),l=r(n(67967)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(23986)),s=r(n(89115)),c=n(92912),d=n(70817),f=r(n(85419));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}var m=l.default.bind(f.default),h={onRequestClose:i.default.func,label:i.default.string},b=function(e){var t=e.onRequestClose,n=e.label,r=o.default.useContext(c.ThemeContext),a=o.default.useContext(d.ApplicationIntlContext);return o.default.createElement("div",{className:m("page-header-container",r.className)},o.default.createElement("div",{className:m("page-layout-header")},t?o.default.createElement("div",{className:m("back-button-container")},o.default.createElement(u.default,{className:m(["header-button","back-button"]),icon:o.default.createElement(s.default,null),text:a.formatMessage({id:"terraDevSite.pageHeader.back"}),onClick:t,variant:u.ButtonVariants.UTILITY})):null,o.default.createElement("div",{className:m("label-container")},n)))};b.propTypes=h;t.default=b},28801:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(94634)),i=r(n(96540)),l=r(n(5556)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(24541)),s=r(n(67967)),c=r(n(65343));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}var f=s.default.bind(c.default),p={children:l.default.node,className:l.default.string},m=function(e){var t=e.children,n=(e.className||"").replace(/language-/,"");return i.default.createElement(u.default,(0,o.default)({},u.defaultProps,{code:t,language:n,theme:void 0}),(function(e){var t=e.className,n=e.tokens,r=e.getLineProps,a=e.getTokenProps;return i.default.createElement("code",{className:f("code",t)},n.slice(0,-1).map((function(e,t){return i.default.createElement("div",r({line:e,key:t}),e.map((function(e,t){return i.default.createElement("span",a({token:e,key:t}))})))})))}))};m.propTypes=p;t.default=m},95240:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(94634)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),l=r(n(5556)),u=r(n(67967)),s=r(n(23695)),c=r(n(65343));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}var f=u.default.bind(c.default),p={Tag:l.default.string,props:l.default.shape({className:l.default.string.isRequired,children:l.default.node,id:l.default.string})},m=function(e){var t=e.Tag,n=e.props,r=(0,i.useRef)(null),a=i.default.useContext(s.default);return(0,i.useEffect)((function(){if(window.location&&!(window.location.length<2)){var e=window.location.hash.slice(1);n.id===e&&r.current.scrollIntoView()}}),[n.id]),i.default.createElement(t,(0,o.default)({},n,{className:[f(t),n.className].join(" ")}),i.default.createElement("a",{ref:r,"aria-hidden":"true",href:"#".concat(n.id),tabIndex:"-1",className:f("a","anchor")},i.default.createElement("span",{className:f("icon","icon-link",a.className)})),n.children)};m.propTypes=p;t.default=m},29598:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(94634)),o=r(n(96540)),i=r(n(5556)),l=r(n(67967)),u=n(92912),s=r(n(65343)),c=l.default.bind(s.default),d={Tag:i.default.string,props:i.default.shape({className:i.default.string,children:i.default.node})},f=function(e){var t=e.Tag,n=e.props,r=o.default.useContext(u.ThemeContext),i=(0,l.default)(c(t,r.className),n.className);return o.default.createElement(t,(0,a.default)({},n,{className:i}),n.children)};f.propTypes=d;t.default=f},61488:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=n(36665),i=r(n(5556)),l=r(n(29598)),u=r(n(95240)),s=r(n(28801)),c={children:i.default.node},d={a:function(e){return(0,l.default)({Tag:"a",props:e})},blockquote:function(e){return(0,l.default)({Tag:"blockquote",props:e})},code:function(e){return(0,s.default)(e)},dd:function(e){return(0,l.default)({Tag:"dd",props:e})},dl:function(e){return(0,l.default)({Tag:"dl",props:e})},dt:function(e){return(0,l.default)({Tag:"dt",props:e})},h1:function(e){return(0,u.default)({Tag:"h1",props:e})},h2:function(e){return(0,u.default)({Tag:"h2",props:e})},h3:function(e){return(0,u.default)({Tag:"h3",props:e})},h4:function(e){return(0,u.default)({Tag:"h4",props:e})},h5:function(e){return(0,u.default)({Tag:"h5",props:e})},h6:function(e){return(0,u.default)({Tag:"h6",props:e})},hr:function(e){return(0,l.default)({Tag:"hr",props:e})},img:function(e){return(0,l.default)({Tag:"img",props:e})},input:function(e){return(0,l.default)({Tag:"input",props:e})},kbd:function(e){return(0,l.default)({Tag:"kbd",props:e})},li:function(e){return(0,l.default)({Tag:"li",props:e})},ol:function(e){return(0,l.default)({Tag:"ol",props:e})},p:function(e){return(0,l.default)({Tag:"p",props:e})},pre:function(e){return(0,l.default)({Tag:"pre",props:e})},strong:function(e){return(0,l.default)({Tag:"strong",props:e})},table:function(e){return(0,l.default)({Tag:"table",props:e})},td:function(e){return(0,l.default)({Tag:"td",props:e})},th:function(e){return(0,l.default)({Tag:"th",props:e})},tr:function(e){return(0,l.default)({Tag:"tr",props:e})},ul:function(e){return(0,l.default)({Tag:"ul",props:e})}},f=function(e){var t=e.children;return a.default.createElement(o.MDXProvider,{components:d},t)};f.propTypes=c;t.default=f},64055:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(96540)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=d(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(80708)),l=r(n(19992)),u=n(53480),s=r(n(54495)),c=r(n(82941));function d(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(d=function(e){return e?n:t})(e)}var f={sites:n(87038).sitesShape.isRequired},p=function(e){var t=e.sites,n=o.default.useContext(u.DisclosureManagerContext);return o.default.createElement(s.default,{header:o.default.createElement(c.default,{title:"Application Switcher",onBack:n.goBack,onClose:n.closeDisclosure}),fill:!0},o.default.createElement(i.default,{dividerStyle:"bottom-only",paddingStyle:"standard"},t.map((function(e){return o.default.createElement(i.Item,{key:e.url},o.default.createElement(l.default,{"data-app-switcher-link":!0,href:e.url},e.title))}))))};p.propTypes=f;t.default=p},51500:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(85715)),i=_(n(96540)),l=n(28651),u=n(53480),s=r(n(54495)),c=r(n(82941)),d=r(n(67967)),f=_(n(80708)),p=r(n(39381)),m=n(92912),h=r(n(38354)),b=r(n(95881)),v=n(87038),g=r(n(30547));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}function _(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var w=d.default.bind(g.default),k={pageConfig:v.pageConfigShape.isRequired},O=function(e,t,n){var r=t.searchItems;r&&n({results:new h.default(r,{shouldSort:!0,tokenize:!0,includeMatches:!0,threshold:.4,location:0,distance:100,maxPatternLength:32,minMatchCharLength:2,keys:["title","tags"]}).search(e),searchString:e,searchItems:r})},E=function(e,t){var n=t.matches.filter((function(t){return t.key===e})).map((function(e){var t=0,n=e.indices.reduce((function(n,r){return n.push(e.value.slice(t,r[0])),n.push(i.default.createElement("span",{key:r[0]},e.value.slice(r[0],r[1]+1))),t=r[1]+1,n}),[]);return n.push(e.value.slice(t)),n}));return 1===n.length?n[0]:t.item[e]},x=function(e){var t=e.pageConfig,n=(0,i.useState)({results:[]}),r=(0,o.default)(n,2),a=r[0],d=r[1],h=(0,l.useHistory)();!function(e,t,n){if(!t.searchItems){var r=Object.entries(e).map((function(e){var t=(0,o.default)(e,2),n=t[0];return{title:t[1].label,path:n,tags:n.split("/")}})),a=t.results,i=t.searchString;n({results:a,searchString:i,searchItems:r}),O(i,t,n)}}(t,a,d);var v=a.searchItems,g=a.searchString,y=a.results,_=i.default.useContext(m.ThemeContext),k=i.default.useContext(u.DisclosureManagerContext),x=(0,i.useRef)(null);return(0,i.useEffect)((function(){x.focus()}),[]),i.default.createElement(s.default,{header:i.default.createElement(i.default.Fragment,null,i.default.createElement(c.default,{title:"Site Search",onBack:k.goBack,onClose:k.closeDisclosure}),i.default.createElement(p.default,{className:w("search-field",_.className),isBlock:!0,placeholder:"Search",onSearch:function(e){return O(e,a,d)},onInvalidSearch:function(){return function(e){return e({results:[]})}(d)},inputRefCallback:function(e){x=e}})),fill:!0},v&&g&&y.length<=0&&i.default.createElement(b.default,{variant:"no-matching-results"}),y.length>0&&i.default.createElement(f.default,{dividerStyle:"standard",role:"listbox","aria-label":"Search Results",className:w(_.className)},a.results.slice(0,25).map((function(e){return i.default.createElement(f.Item,{key:e.item.path,id:e.item.path.replace(/\//g,"-"),isSelectable:!0,metaData:e,onSelect:function(e,t){k.dismiss(),h.push(t.item.path)}},function(e){return i.default.createElement("div",{className:w("item")},i.default.createElement("div",{className:w("title")},E("title",e)),i.default.createElement("div",{className:w("path")},E("path",e)))}(e))}))))};x.propTypes=k;t.default=x},4595:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(85715)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),l=r(n(23986)),u=r(n(9113)),s=r(n(54495)),c=r(n(82941)),d=r(n(80765)),f=r(n(32527)),p=r(n(67967)),m=n(53480),h=r(n(62673)),b=r(n(46354));function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}var g=p.default.bind(b.default);t.default=function(){var e=i.default.useContext(h.default),t=(0,i.useState)({locale:e.currentLocale,theme:e.currentTheme,density:e.currentDensity,direction:e.currentDirection}),n=(0,o.default)(t,2),r=n[0],a=n[1],p=r.locale,b=r.theme,v=r.density,y=r.direction,_=e.locales,w=e.themes,k=e.directions,O=i.default.useContext(m.DisclosureManagerContext);return i.default.createElement(s.default,{fill:!0,header:i.default.createElement(c.default,{title:"Settings",onBack:O.goBack,onClose:O.closeDisclosure}),footer:i.default.createElement(u.default,{end:i.default.createElement(i.default.Fragment,null,i.default.createElement(l.default,{text:"Submit",id:"submit",variant:l.default.Opts.Variants.EMPHASIS,className:g("button"),onClick:function(){e.onUpdate({locale:p,theme:b,density:v,direction:y}),O.dismiss()}}),i.default.createElement(l.default,{text:"Cancel",id:"cancel",className:g("button"),onClick:function(){O.dismiss()}}))})},i.default.createElement("div",{className:g("container")},_.length>1?i.default.createElement(f.default,{label:"Locale",htmlFor:"terra-dev-site-locale-select"},i.default.createElement(d.default,{isFilterStyle:!0,ariaLabel:"Locale",id:"terra-dev-site-locale-select",value:p,onChange:function(e){a({locale:e.currentTarget.value,theme:b,density:v,direction:y})},options:_.map((function(e){return{value:e,display:e}}))})):void 0,w.length>1?i.default.createElement(f.default,{label:"Theme",htmlFor:"terra-dev-site-theme-select"},i.default.createElement(d.default,{isFilterStyle:!0,ariaLabel:"Theme",id:"terra-dev-site-theme-select",value:b,onChange:function(e){a({locale:p,theme:e.currentTarget.value,density:v,direction:y})},options:w.map((function(e){return{value:e,display:e}}))})):void 0,i.default.createElement(f.default,{label:"Density",htmlFor:"terra-dev-site-density-select"},i.default.createElement(d.default,{isFilterStyle:!0,ariaLabel:"Density",id:"terra-dev-site-density-select",value:v,onChange:function(e){a({locale:p,theme:b,density:e.currentTarget.value,direction:y})},options:[{value:"compact",display:"compact"},{value:"comfortable",display:"comfortable"},{value:"spacious",display:"spacious"}]})),k.length>1?i.default.createElement(f.default,{label:"Direction",htmlFor:"terra-dev-site-direction-select"},i.default.createElement(d.default,{isFilterStyle:!0,ariaLabel:"Direction",id:"terra-dev-site-direction-select",value:y,onChange:function(e){a({locale:p,theme:b,direction:e.currentTarget.value})},options:k.map((function(e){return{value:e,display:e}}))})):void 0))}},19752:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(85715)),i=r(n(96540)),l=r(n(21369)),u=r(n(70675)),s=n(28651),c=r(n(23986)),d=n(53480),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=y(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(30248)),p=r(n(73171)),m=n(87038),h=r(n(17604)),b=r(n(41379)),v=n(85055),g=r(n(4595));function y(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(y=function(e){return e?n:t})(e)}var _={pageContentConfig:m.pageContentConfigShape.isRequired,contentImports:m.contentImportsShape.isRequired},w=function(e){var t=e.pageContentConfig,n=e.contentImports,r=(0,s.useLocation)(),a=(0,s.useHistory)(),m=i.default.useContext(v.NavigationItemContext).isActive,y=i.default.useContext(d.DisclosureManagerContext),_=i.default.useState(),w=(0,o.default)(_,2),k=w[0],O=w[1],E=i.default.useState(),x=(0,o.default)(E,2),P=x[0],S=x[1];if(!m)return null;if(!t)return b.default;var C=n[t.path];if(!C)return b.default;var j,D,M=i.default.createElement(f.default.Actions,null,i.default.createElement(f.default.Action,{actionKey:"raw",label:"Raw",icon:i.default.createElement(l.default,null),onSelect:function(){a.push("/raw".concat(t.path))}}),i.default.createElement(f.default.Action,{actionKey:"settings",label:"Settings",icon:i.default.createElement(u.default,null),onSelect:function(){y.disclose({preferredType:"modal",size:"small",content:{key:"terra-dev-site.settings",component:i.default.createElement(g.default,null)}})}}));return k&&(j=i.default.createElement(f.PageActivityOverlay,{variant:"loading"})),P&&(D=i.default.createElement(h.default,{type:t.type},i.default.createElement(f.StatusLayout,{message:"Chunk failed to load.",variant:"error"},i.default.createElement(c.default,{text:"Reload Site",onClick:function(){r.reload()}})))),i.default.createElement(f.default,{label:t.label,pageKey:t.path,actions:M,activityOverlay:j,statusOverlay:D},i.default.createElement(p.default,{onLoadStart:function(){O(!0)},onLoadEnd:function(){O(!1)},onError:function(){S(!0),O(!1)}},i.default.createElement(f.CardLayout,null,i.default.createElement(f.Card,{minHeightFill:!0},i.default.createElement(h.default,{type:t.type},i.default.createElement(C,{key:t.path}))))))};w.propTypes=_;t.default=w},41379:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(96540)),i=r(n(94480)),l=n(85055),u=r(n(75980)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=c(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(30248));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(c=function(e){return e?n:t})(e)}t.default=function(){return o.default.useContext(l.NavigationItemContext).isActive?o.default.createElement(s.default,{pageKey:"Not Found Page",label:"Page not found"},o.default.createElement(s.CardLayout,null,o.default.createElement(s.Card,{minHeightFill:!0},o.default.createElement(i.default,{src:u.default,width:"100%",alt:"404",variant:"rounded"})))):null}},80121:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(5556)),i=r(n(67967)),l=r(n(23695)),u=r(n(27366)),s=r(n(42580)),c=r(n(4454)),d=r(n(23427)),f=r(n(73509)),p=i.default.bind(f.default),m={label:o.default.string.isRequired,actions:o.default.element,onRequestClose:o.default.func,activityOverlay:o.default.element,statusOverlay:o.default.element,children:o.default.node},h=function(e){var t=e.label,n=e.actions,r=e.onRequestClose,o=e.children,i=e.statusOverlay,d=e.activityOverlay;if(n&&n.type!==c.default)throw new Error("[terra-application] Page.Actions must be used to define actions for ".concat(t,"."));var f=a.default.useContext(l.default),m=r?function(){r()}:void 0,h=p("page",f.className),b=a.default.useMemo((function(){var e=[];return i&&e.push({key:"status-overlay",component:i}),d&&e.push({key:"activity-overlay",component:d}),e}),[i,d]);return a.default.createElement("div",{className:h},a.default.createElement("div",{className:p("header")},a.default.createElement(s.default,{onSelectBack:m,label:t,actions:n})),a.default.createElement("div",{className:p("content")},a.default.createElement(u.default,{overlays:b},o)))};h.propTypes=m,h.Actions=c.default,h.Action=d.default;t.default=h},23427:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(5556)),i={icon:o.default.element,label:o.default.string.isRequired,onSelect:o.default.func,refCallback:o.default.func},l=function(){return a.default.createElement(a.default.Fragment,null)};l.propTypes=i;t.default=l},4454:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o={children:r(n(5556)).default.node},i=function(){return a.default.createElement(a.default.Fragment,null)};i.propTypes=o;t.default=i},42580:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(91847)),i=r(n(85715)),l=r(n(96540)),u=r(n(5556)),s=r(n(67967)),c=r(n(89115)),d=r(n(36260)),f=r(n(31056)),p=r(n(23695)),m=k(n(41323)),h=n(70817),b=k(n(89099)),v=r(n(45722)),g=r(n(58012)),y=r(n(97842)),_=["icon"];function w(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(w=function(e){return e?n:t})(e)}function k(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=w(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var O=s.default.bind(y.default),E={actions:u.default.element,label:u.default.string,onSelectBack:u.default.func},x=function(e){var t=e.actions,n=e.label,r=e.onSelectBack,a=l.default.useContext(h.ApplicationIntlContext),u=l.default.useContext(v.default),s=l.default.useContext(p.default),y=l.default.useRef(),w=l.default.useRef(),k=l.default.useState(!1),E=(0,i.default)(k,2),x=E[0],P=E[1],S=(0,b.default)(y,b.breakpointFilter).activeBreakpoint,C=[];if(t&&(C=l.default.Children.toArray(t.props.children).filter((function(e){return e}))),C.length>3)throw new Error("[terra-application] ".concat(n," cannot render more than three actions."));var j="tiny"===S&&C.length>1,D=r?l.default.createElement(g.default,{icon:l.default.createElement(c.default,null),ariaLabel:a.formatMessage({id:"terraDevSite.pageHeader.back"}),onSelect:r}):void 0,M=j?l.default.createElement(g.default,{refCallback:function(e){w.current=e,C.forEach((function(t){t.props.refCallback&&t.props.refCallback(e)}))},className:O("header-button"),icon:l.default.createElement(d.default,null),ariaLabel:a.formatMessage({id:"terraDevSite.pageHeader.moreActions"}),onSelect:function(){P(!0)}}):C.map((function(e){return l.default.createElement(g.default,{key:e.key,refCallback:e.props.refCallback,icon:e.props.icon,ariaLabel:e.props.label,onSelect:e.props.onSelect})})),T=l.default.createElement(l.default.Fragment,null,M,null!=u&&u.containerActions.length?l.default.createElement(l.default.Fragment,null,C.length?l.default.createElement("div",{className:O("actions-divider")}):void 0,u.containerActions.map((function(e){return l.default.createElement(g.default,{key:e.key,ariaLabel:e.label,icon:e.icon,onSelect:e.onSelect,isDisabled:!e.onSelect})}))):void 0),A=l.default.createElement(l.default.Fragment,null,null!=u&&u.startActions.length?l.default.createElement(l.default.Fragment,null,u.startActions.map((function(e){var t=e.icon,n=(0,o.default)(e,_);return l.default.createElement(g.default,{key:n.key,ariaLabel:n.label,icon:l.default.createElement(t,null),onSelect:n.onSelect,isDisabled:!n.onSelect})})),l.default.createElement("div",{className:O("actions-divider")})):void 0),N=x?l.default.createElement(f.default,{isOpen:!0,targetRef:function(){return w.current},onRequestClose:function(){P(!1)},contentHeight:"auto",contentWidth:"auto",contentAttachment:"top right",isContentFocusDisabled:!0,isHeaderDisabled:!0,popupContentRole:"none"},l.default.createElement(m.default,{label:a.formatMessage({id:"terraDevSite.pageHeader.actionsMenu"},{label:n}),onRequestClose:function(){P(!1)}},C.map((function(e){return l.default.createElement(m.ActionMenuItem,{key:e.key,actionKey:e.key,label:e.props.label,isDisabled:!e.props.onSelect,icon:e.props.icon,onAction:function(){P(!1),e.props.onSelect()}})})))):void 0,I=O("page-header-container",s.className);return l.default.createElement("div",{ref:y,className:I},l.default.createElement("div",{className:O("page-header")},l.default.createElement("div",{className:O("start-actions-container")},A,D),l.default.createElement("div",{className:O("label-container"),role:"heading","aria-level":1},n),l.default.createElement("div",{className:O("end-actions-container")},T)),N)};x.propTypes=E;t.default=x},58012:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(5556)),i=r(n(67967)),l=r(n(23695)),u=r(n(69906)),s=i.default.bind(u.default),c={ariaLabel:o.default.string.isRequired,icon:o.default.element.isRequired,onSelect:o.default.func,refCallback:o.default.func},d=function(e){var t=e.ariaLabel,n=e.icon,r=e.onSelect,o=e.refCallback,i=a.default.useContext(l.default),u=s("page-header-button",i.className);return a.default.createElement("button",{type:"button",className:u,onClick:r?function(e){e.preventDefault(),r()}:void 0,onBlur:function(e){e.currentTarget.setAttribute("data-focus-styles-enabled","true")},onMouseDown:function(e){e.currentTarget.setAttribute("data-focus-styles-enabled","false")},"aria-label":t,disabled:!r,"data-focus-styles-enabled":!0,ref:o},a.default.createElement("div",{"aria-hidden":!0,className:s("button-inner")},a.default.createElement("div",{className:s("button-image"),title:t},n)))};d.propTypes=c;t.default=d},30248:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Card",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"CardLayout",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"PageActivityOverlay",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"StatusLayout",{enumerable:!0,get:function(){return i.default}}),t.default=void 0;var a=r(n(67770)),o=r(n(56640)),i=r(n(71306)),l=r(n(91842)),u=r(n(80121));t.default=u.default},56640:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(5556)),i=r(n(67967)),l=r(n(23695)),u=r(n(82038)),s=i.default.bind(u.default),c={children:o.default.node},d=function(e){var t=e.children,n=a.default.useContext(l.default);return a.default.createElement("div",{className:s("card",n.className)},a.default.createElement("div",{className:s("card-body")},t))};d.propTypes=c;t.default=d},67770:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(67967)),i=r(n(5556)),l=r(n(54928)),u=o.default.bind(l.default),s={children:i.default.node},c=function(e){var t,n=e.children;return t=1===a.default.Children.count(n)?n:a.default.Children.map(n,(function(e){return a.default.createElement("div",{className:u("card-container")},e)})),a.default.createElement("div",{className:u("card-layout"),"data-application-overflow-container":!0,tabIndex:"0"},t)};c.propTypes=s;t.default=c},71306:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.StatusViewVariants=void 0;var a=r(n(96540)),o=r(n(5556)),i=r(n(23986)),l=r(n(67967)),u=r(n(60822)),s=r(n(67770)),c=r(n(56640)),d=r(n(56364)),f=l.default.bind(d.default),p=(t.StatusViewVariants={NODATA:"no-data",NOMATCHINGRESULTS:"no-matching-results",NOTAUTHORIZED:"not-authorized",ERROR:"error"},{buttonAttrs:o.default.arrayOf(o.default.shape(i.default.propTypes)),customGlyph:o.default.node,isAlignedTop:o.default.bool,isGlyphHidden:o.default.bool,message:o.default.string,title:o.default.string,variant:o.default.oneOf(["no-data","no-matching-results","not-authorized","error"])}),m={buttonAttrs:[],customGlyph:void 0,isAlignedTop:!1,isGlyphHidden:!1,message:void 0,title:void 0,variant:void 0},h=function(e){return a.default.createElement(s.default,null,a.default.createElement(c.default,null,a.default.createElement("div",{classnames:f("outer-view")},a.default.createElement("div",{classnames:f("inner-view")},a.default.createElement(u.default,e)))))};h.propTypes=p,h.defaultProps=m;t.default=h},91842:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(5556)),i=r(n(67967)),l=n(8604),u=r(n(31309)),s=r(n(23695)),c=r(n(24944)),d=i.default.bind(c.default),f={variant:o.default.oneOf(["default","loading"])},p=function(e){var t=e.variant,n=a.default.useContext(s.default);return a.default.createElement("div",{className:d("activity-overlay",n.className),"aria-live":"polite"},a.default.createElement("div",{className:d("content")},a.default.createElement(u.default,{className:d("icon"),isSpin:!0,height:"36",width:"36"}),"loading"===t?a.default.createElement(l.FormattedMessage,{id:"terraDevSite.pageActivityOverlayContainer.loading"},(function(e){return a.default.createElement("div",{className:d("message")},e)})):void 0))};p.propTypes=f,p.defaultProps={variant:"default"};t.default=p},59203:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(17383)),o=r(n(34579)),i=r(n(28452)),l=r(n(63072)),u=r(n(29511)),s=r(n(96540)),c=r(n(5556)),d=r(n(33341));function f(e,t,n){return t=(0,l.default)(t),(0,i.default)(e,p()?Reflect.construct(t,n||[],(0,l.default)(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}var m={onCatchError:c.default.func,children:c.default.node},h=function(e){function t(e){var n;return(0,a.default)(this,t),(n=f(this,t,[e])).state={error:void 0},n}return(0,u.default)(t,e),(0,o.default)(t,[{key:"componentDidCatch",value:function(e){if(d.default.error(e),!this.props.onCatchError)throw e;this.props.onCatchError(e)}},{key:"render",value:function(){return this.state.error?null:this.props.children}}],[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}]),t}(s.default.Component);h.propTypes=m;t.default=h},73171:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(85715)),o=r(n(96540)),i=r(n(5556)),l=r(n(59203)),u=function(e){var t=e.children,n=e.onMount;return o.default.useLayoutEffect((function(){return n(!0),function(){return n(!1)}}),[n]),t||o.default.createElement("div",null)};u.propTypes={onMount:i.default.func,children:i.default.node};var s=function(e){var t=e.onLoadStart,n=e.onLoadEnd,r=e.onError,i=e.fallback,s=e.children,c=o.default.useState(!1),d=(0,a.default)(c,2),f=d[0],p=d[1],m=o.default.useRef(!1);return o.default.useEffect((function(){t&&f&&!m.current&&(m.current=!0,t())}),[t,f]),o.default.useEffect((function(){n&&!f&&m.current&&n()}),[n,f]),o.default.createElement(l.default,{onCatchError:function(e){r&&r(e)}},o.default.createElement(o.default.Suspense,{fallback:o.default.createElement(u,{onMount:p},i)},s))};s.propTypes={onLoadStart:i.default.func,onLoadEnd:i.default.func,onError:i.default.func,fallback:i.default.node,children:i.default.node};t.default=s},89099:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.breakpointFilter=void 0;var a=r(n(85715)),o=r(n(96540)),i=r(n(7829)),l=n(53757),u=function(e){var t=e.width,n=e.height;return{activeBreakpoint:(0,l.activeBreakpointForSize)(t),width:t,height:n}};t.breakpointFilter=function(e,t){return e.activeBreakpoint!==t.activeBreakpoint},t.default=function(e,t){var n=o.default.useRef(t),r=o.default.useRef(),l=o.default.useRef(),s=o.default.useState({}),c=(0,a.default)(s,2),d=c[0],f=c[1];return o.default.useLayoutEffect((function(){var t=e.current,a=new i.default((function(e){r.current=window.requestAnimationFrame((function(){if(r.current=null,document.contains(e[0].target)){var t=u(e[0].target.getBoundingClientRect());n.current&&!n.current(t,l.current)||(l.current=t,f(t))}}))}));a.observe(e.current);var o=u(e.current.getBoundingClientRect());return l.current=o,f(o),function(){window.cancelAnimationFrame(r.current),a.disconnect(t)}}),[e,n]),d}},58175:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.getPortalElement=t.default=void 0;var a=r(n(85715)),o=r(n(96540)),i=n(20812);t.getPortalElement=function(){var e=document.createElement("div");return e.style.position="relative",e.style.height="100%",e.style.width="100%",e},t.default=function(e,t,n){var r=o.default.useRef(),l=o.default.useRef({}),u=o.default.useRef(),s=o.default.useState(),c=(0,a.default)(s,2),d=c[0],f=c[1];return o.default.useLayoutEffect((function(){if(r.current){var a=l.current[e];if(!r.current.contains(null==a?void 0:a.element)){if(u.current){var o=l.current[u.current].element;l.current[u.current].scrollData=(0,i.getPersistentScrollMap)(o),r.current.removeChild(o),n&&n(u.current,o)}null!=a&&a.element?(r.current.appendChild(a.element),a.scrollData&&(0,i.applyScrollData)(a.scrollData,a.element),u.current=e,f(e),t&&t(e,a.element)):u.current=void 0}}}),[e,t,n]),[r,l,d]}},89746:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=n(28651),i=r(n(5556)),l=r(n(35066)),u=r(n(52976)),s=r(n(94745)),c=r(n(87038)),d=r(n(61488)),f=r(n(58739)),p=r(n(31407)),m={siteConfig:c.default.isRequired,Providers:i.default.func,ApplicationBase:i.default.func,ApplicationNavigation:i.default.func},h=function(e){var t=e.siteConfig,n=e.Providers,r=e.ApplicationBase,i=e.ApplicationNavigation;return a.default.createElement(s.default,{settingsConfig:t.settingsConfig},a.default.createElement(o.BrowserRouter,{basename:t.basename},a.default.createElement(f.default,{sites:t.sites,routesMap:t.routesMap},a.default.createElement(p.default,{ApplicationBase:r},a.default.createElement(d.default,null,a.default.createElement(l.default,null,n?a.default.createElement(n,null,a.default.createElement(u.default,{siteConfig:t,ApplicationNavigation:i})):a.default.createElement(u.default,{siteConfig:t,ApplicationNavigation:i})))))))};h.propTypes=m;t.default=h},62673:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)).default.createContext({});t.default=a},94745:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(85715)),i=r(n(43693)),l=r(n(73738)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),s=r(n(5556)),c=r(n(62673)),d=n(87038);function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;tr?1:0})),w=function(e){var t=e.settingsConfig,n=e.children,r=t.defaultLocale,a=void 0===r?"en":r,i=t.defaultTheme,l=void 0===i?g:i,s=t.defaultDensity,d=void 0===s?v.density:s,f=t.defaultDirection,p=void 0===f?"ltr":f,m=(0,u.useState)(a),h=(0,o.default)(m,2),w=h[0],k=h[1],O=(0,u.useState)(p),E=(0,o.default)(O,2),x=E[0],P=E[1],S=(0,u.useState)(l),C=(0,o.default)(S,2),j=C[0],D=C[1],M=(0,u.useState)(d),T=(0,o.default)(M,2),A=T[0],N=T[1];(0,u.useEffect)((function(){var e=document.getElementsByTagName("html")[0];e.getAttribute("lang")!==w&&e.setAttribute("lang",w),e.getAttribute("dir")!==x&&e.setAttribute("dir",x)}),[w,x]);var I=(0,u.useMemo)((function(){return{locales:b,currentLocale:w,currentTheme:j,currentDensity:A,currentDirection:x,directions:["ltr","rtl"],themes:_,currentThemeClassName:y[j],onUpdate:function(e){var t=e.locale,n=e.theme,r=e.density,a=e.direction;t&&k(t),n&&D(n),r&&N(r),a&&P(a)}}}),[w,j,A,x]);return u.default.createElement(c.default.Provider,{value:I},n)};w.propTypes=h;t.default=w},31407:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=n(28651),i=r(n(5556)),l=r(n(90308)),u=r(n(62673)),s={children:i.default.node,ApplicationBase:i.default.func},c=function(e){var t=e.children,n=e.ApplicationBase,r=(0,o.useRouteMatch)("/raw"),i=a.default.useContext(u.default),s=i.currentLocale,c=i.currentThemeClassName,d=i.currentDensity,f=n||l.default;return a.default.createElement(f,{locale:s,themeName:c,themeDensity:d,themeIsGlobal:!0,unloadPromptIsDisabled:!!r},t)};c.propTypes=s;t.default=c},58739:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=n(28651),i=r(n(5556)),l=n(87038),u=r(n(19883)),s={sites:l.sitesShape.isRequired,routesMap:l.routesMapShape.isRequired,children:i.default.node.isRequired},c=function(e){var t=e.sites,n=e.routesMap,r=e.children,i=(0,o.useRouteMatch)("/"),l=(0,o.useLocation)();if(i&&l.hash.startsWith("#/"))return a.default.createElement(o.Redirect,{to:"/".concat(l.hash.slice(2))});var s=l.pathname.toLocaleLowerCase(),c=t.find((function(e){return s.startsWith("/".concat(e.path))}));if(c)return void 0!==(0,u.default)()&&(window.sessionStorage.redirect=window.location.href),window.location.pathname=c.url,null;var d=n[1!==s.length&&s.endsWith("/")?s.slice(0,-1):s];return d?a.default.createElement(o.Redirect,{to:d}):r};c.propTypes=s;t.default=c},40553:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"Ay",{enumerable:!0,get:function(){return a.default}});var a=r(n(89746)),o=r(n(87038))},87038:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.titleConfigShape=t.sitesShape=t.settingsConfigShape=t.routesMapShape=t.pageContentConfigShape=t.pageConfigShape=t.navigationConfigShape=t.default=t.contentImportsShape=void 0;var a=r(n(5556)),o=t.settingsConfigShape=a.default.shape({defaultTheme:a.default.string,defaultLocale:a.default.string,defaultDirection:a.default.string}),i=t.sitesShape=a.default.arrayOf(a.default.shape({path:a.default.string,title:a.default.string,url:a.default.string})),l=a.default.arrayOf(a.default.shape({key:a.default.string,text:a.default.string,icon:a.default.elementType,modal:a.default.elementType})),u=t.pageContentConfigShape=a.default.shape({path:a.default.string,label:a.default.string.isRequired,type:a.default.string.isRequired}),s=t.navigationConfigShape=a.default.arrayOf(a.default.shape({label:a.default.string.isRequired,pageConfig:u,children:a.default.array})),c=t.contentImportsShape=a.default.object,d=t.pageConfigShape=a.default.object,f=t.routesMapShape=a.default.object,p=t.titleConfigShape=a.default.shape({title:a.default.string.isRequired,subline:a.default.string,headline:a.default.string}),m=a.default.shape({basename:a.default.string.isRequired,contentImports:c.isRequired,extensionItems:l.isRequired,navigationConfig:s,pageConfig:d.isRequired,routesMap:f.isRequired,settingsConfig:o.isRequired,sites:i.isRequired,titleConfig:p.isRequired,additionalConfig:a.default.object});t.default=m},97448:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){return setTimeout(e,0)}},20812:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.applyScrollData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;Object.entries(e).forEach((function(e){var n=(0,a.default)(e,2),r=n[0],o=n[1],i=t.querySelector('[data-persistent-overflow-id="'.concat(r,'"]'));i&&(i.scrollTop=o.scrollTop,i.scrollLeft=o.scrollLeft)}))},t.getOverflowDataForElement=s,t.getPersistentScrollMap=function(e){var t=e.querySelectorAll("[data-application-overflow-container]");return Array.prototype.slice.call(t).reduce((function(e,t){return u(u({},e),s(t))}),{})};var a=r(n(85715)),o=r(n(43693)),i=n(68414);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t=0;--o){var i=this.tryEntries[o],l=i.completion;if("root"===i.tryLoc)return a("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),j(n),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:M(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),b}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},49948:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=new WeakMap;t.default=function(e){var t=n.get(e);return t||(t=Object.create(null),n.set(e,t)),t}},15912:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),a=n(67916),o=r.__importDefault(n(49948)),i=function(){function e(t,n){if(!(this&&this instanceof e?this.constructor:void 0))throw new TypeError("Intl.RelativeTimeFormat must be called with 'new'");return a.InitializeRelativeTimeFormat(this,t,n,{getInternalSlots:o.default,availableLocales:e.availableLocales,relevantExtensionKeys:e.relevantExtensionKeys,localeData:e.localeData,getDefaultLocale:e.getDefaultLocale})}return e.prototype.format=function(e,t){if("object"!=typeof this)throw new TypeError("format was called on a non-object");if(!o.default(this).initializedRelativeTimeFormat)throw new TypeError("format was called on a invalid context");return a.PartitionRelativeTimePattern(this,Number(e),a.ToString(t),{getInternalSlots:o.default}).map((function(e){return e.value})).join("")},e.prototype.formatToParts=function(e,t){if("object"!=typeof this)throw new TypeError("formatToParts was called on a non-object");if(!o.default(this).initializedRelativeTimeFormat)throw new TypeError("formatToParts was called on a invalid context");return a.PartitionRelativeTimePattern(this,Number(e),a.ToString(t),{getInternalSlots:o.default})},e.prototype.resolvedOptions=function(){if("object"!=typeof this)throw new TypeError("resolvedOptions was called on a non-object");var e=o.default(this);if(!e.initializedRelativeTimeFormat)throw new TypeError("resolvedOptions was called on a invalid context");return{locale:e.locale,style:e.style,numeric:e.numeric,numberingSystem:e.numberingSystem}},e.supportedLocalesOf=function(t,n){return a.SupportedLocales(e.availableLocales,a.CanonicalizeLocaleList(t),n)},e.__addLocaleData=function(){for(var t=[],n=0;n8640000000000001?NaN:function(e){var t=n(e);if(isNaN(t)||r(t,-0))return 0;if(isFinite(t))return t;var a=Math.floor(Math.abs(t));return t<0&&(a=-a),r(a,-0)?0:a}(e):NaN},t.ToObject=function(e){if(null==e)throw new TypeError("undefined/null cannot be converted to object");return Object(e)},t.SameValue=r,t.ArrayCreate=function(e){return new Array(e)},t.HasOwnProperty=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.Type=function(e){return null===e?"Null":"undefined"==typeof e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":"symbol"==typeof e?"Symbol":"bigint"==typeof e?"BigInt":void 0};var a=864e5;function o(e,t){return e-Math.floor(e/t)*t}function i(e){return Math.floor(e/a)}function l(e){return Date.UTC(e,0)/a}function u(e){return new Date(e).getUTCFullYear()}function s(e){return e%4!=0?365:e%100!=0?366:e%400!=0?365:366}function c(e){return i(e)-l(u(e))}function d(e){return 365===s(u(e))?0:1}function f(e){var t=c(e),n=d(e);if(t>=0&&t<31)return 0;if(t<59+n)return 1;if(t<90+n)return 2;if(t<120+n)return 3;if(t<151+n)return 4;if(t<181+n)return 5;if(t<212+n)return 6;if(t<243+n)return 7;if(t<273+n)return 8;if(t<304+n)return 9;if(t<334+n)return 10;if(t<365+n)return 11;throw new Error("Invalid time")}t.Day=i,t.WeekDay=function(e){return o(i(e)+4,7)},t.DayFromYear=l,t.TimeFromYear=function(e){return Date.UTC(e,0)},t.YearFromTime=u,t.DaysInYear=s,t.DayWithinYear=c,t.InLeapYear=d,t.MonthFromTime=f,t.DateFromTime=function(e){var t=c(e),n=f(e),r=d(e);if(0===n)return t+1;if(1===n)return t-30;if(2===n)return t-58-r;if(3===n)return t-89-r;if(4===n)return t-119-r;if(5===n)return t-150-r;if(6===n)return t-180-r;if(7===n)return t-211-r;if(8===n)return t-242-r;if(9===n)return t-272-r;if(10===n)return t-303-r;if(11===n)return t-333-r;throw new Error("Invalid time")};var p=1e3;t.HourFromTime=function(e){return o(Math.floor(e/36e5),24)},t.MinFromTime=function(e){return o(Math.floor(e/6e4),60)},t.SecFromTime=function(e){return o(Math.floor(e/p),60)},t.OrdinaryHasInstance=function(e,t,n){if("function"!=typeof e)return!1;if(null==n?void 0:n.boundTargetFunction)return t instanceof(null==n?void 0:n.boundTargetFunction);if("object"!=typeof t)return!1;var r=e.prototype;if("object"!=typeof r)throw new TypeError("OrdinaryHasInstance called on an object with an invalid prototype property.");return Object.prototype.isPrototypeOf.call(r,t)},t.msFromTime=function(e){return o(e,p)}},49059:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestAvailableLocale=void 0,t.BestAvailableLocale=function(e,t){for(var n=t;;){if(e.has(n))return n;var r=n.lastIndexOf("-");if(!~r)return;r>=2&&"-"===n[r-2]&&(r-=2),n=n.slice(0,r)}}},4111:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestFitMatcher=void 0;var r=n(49059),a=n(29861);t.BestFitMatcher=function(e,t,n){var o,i={},l=new Set;e.forEach((function(e){var t=new Intl.Locale(e).minimize().toString();i[t]=e,l.add(t)}));for(var u=0,s=t;un&&(n=c,i=s)}return r.__assign({},i)}},49743:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BestFitFormatMatcher=t.bestFitFormatMatcherScore=void 0;var r=n(31635),a=n(29861),o=n(97110),i=n(3340);function l(e){return"numeric"===e||"2-digit"===e}function u(e,t){var n=0;e.hour12&&!t.hour12?n-=o.removalPenalty:!e.hour12&&t.hour12&&(n-=o.additionPenalty);for(var r=0,a=o.DATE_TIME_PROPS;rn&&(n=f,o=d)}var p=r.__assign({},o),m={rawPattern:o.rawPattern};for(var h in i.processDateTimePattern(o.rawPattern,m),p){var b=p[h],v=m[h],g=e[h];"minute"!==h&&"second"!==h&&(g&&(l(v)&&!l(g)||b!==g&&(m[h]=g)))}return m.pattern=p.pattern,m.pattern12=p.pattern12,m.skeleton=p.skeleton,m.rangePatterns=p.rangePatterns,m.rangePatterns12=p.rangePatterns12,m}},95102:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateTimeStyleFormat=void 0;var r=n(29861);t.DateTimeStyleFormat=function(e,t,n){var a,o;if(void 0!==t&&(r.invariant("full"===t||"long"===t||"medium"===t||"short"===t,"invalid timeStyle"),o=n.timeFormat[t]),void 0!==e&&(r.invariant("full"===e||"long"===e||"medium"===e||"short"===e,"invalid dateStyle"),a=n.dateFormat[e]),void 0!==e&&void 0!==t){var i={};for(var l in a)"pattern"!==l&&(i[l]=a[l]);for(var l in o)"pattern"!==l&&"pattern12"!==l&&(i[l]=o[l]);var u=n.dateTimeFormat[e],s=u.replace("{0}",o.pattern).replace("{1}",a.pattern);if(i.pattern=s,"pattern12"in o){var c=u.replace("{0}",o.pattern12).replace("{1}",a.pattern);i.pattern12=c}return i}return void 0!==t?o:(r.invariant(void 0!==e,"dateStyle should not be undefined"),a)}},8969:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatDateTime=void 0;var r=n(82056);t.FormatDateTime=function(e,t,n){for(var a="",o=0,i=r.PartitionDateTimePattern(e,t,n);o-1){var j="",D=f[S];C=k[S];"year"===S&&C<=0&&(C=1-C),"month"===S&&C++;var M=f.hourCycle;if("hour"!==S||"h11"!==M&&"h12"!==M||0===(C%=12)&&"h12"===M&&(C=12),"hour"===S&&"h24"===M&&0===C&&(C=24),"numeric"===D)j=b.format(C);else if("2-digit"===D)(j=y.format(C)).length>2&&(j=j.slice(j.length-2,j.length));else if("narrow"===D||"short"===D||"long"===D)if("era"===S)j=p[S][D][C];else if("timeZoneName"===S){var T=p.timeZoneName,A=p.gmtFormat,N=p.hourFormat,I=T[f.timeZone||c()];j=I&&I[D]?I[D][+k.inDST]:l(A,N,k.timeZoneOffset,D)}else j="month"===S?p.month[D][C-1]:p[S][D][C];O.push({type:S,value:j})}else if("ampm"===S){j=void 0;j=(C=k.hour)>11?p.pm:p.am,O.push({type:"dayPeriod",value:j})}else if("relatedYear"===S){C=k.relatedYear,j=b.format(C);O.push({type:"relatedYear",value:j})}else if("yearName"===S){C=k.yearName,j=b.format(C);O.push({type:"yearName",value:j})}}return O}},93360:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatDateTimeRange=void 0;var r=n(80477);t.FormatDateTimeRange=function(e,t,n,a){for(var o="",i=0,l=r.PartitionDateTimeRangePattern(e,t,n,a);i11&&x<11||E<11&&x>11)&&(g=!1),c=O}}else if("fractionalSecondDigits"===k){var P=p.fractionalSecondDigits;void 0===P&&(P=3),(E=Math.floor(m.millisecond*Math.pow(10,P-3)))!==(x=Math.floor(h.millisecond*Math.pow(10,P-3)))&&(g=!1)}else{O=v[k];if(void 0!==c&&void 0===O)y=!0;else{E=m[k],x=h[k];a.SameValue(E,x)||(g=!1),c=O}}}if(g){for(var S=i.FormatDateTimePattern(e,l.PartitionPattern(b),t,s),C=0,j=S;Ce){i=(r=a[o-1])[2],l=r[3];break}return[1e3*i,l]}(e,n,i),u=l[0],s=l[1],c=e+u,d=a.YearFromTime(c);return{weekday:a.WeekDay(c),era:d<0?"BC":"AD",year:d,relatedYear:void 0,yearName:void 0,month:a.MonthFromTime(c),day:a.DateFromTime(c),hour:a.HourFromTime(c),minute:a.MinFromTime(c),second:a.SecFromTime(c),millisecond:a.msFromTime(c),inDST:s,timeZoneOffset:u}}},3340:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.splitRangePattern=t.splitFallbackRangePattern=t.parseDateTimeSkeleton=t.processDateTimePattern=void 0;var r=n(31635),a=n(41204),o=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,i=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function l(e,t){var n=e.length;switch(e[0]){case"G":return t.era=4===n?"long":5===n?"narrow":"short","{era}";case"y":case"Y":case"u":case"U":case"r":return t.year=2===n?"2-digit":"numeric","{year}";case"q":case"Q":throw new RangeError("`w/Q` (quarter) patterns are not supported");case"M":case"L":return t.month=["numeric","2-digit","short","long","narrow"][n-1],"{month}";case"w":case"W":throw new RangeError("`w/W` (week of year) patterns are not supported");case"d":return t.day=["numeric","2-digit"][n-1],"{day}";case"D":case"F":case"g":return t.day="numeric","{day}";case"E":return t.weekday=4===n?"long":5===n?"narrow":"short","{weekday}";case"e":case"c":return t.weekday=[void 0,void 0,"short","long","narrow","short"][n-1],"{weekday}";case"a":case"b":case"B":return t.hour12=!0,"{ampm}";case"h":case"K":return t.hour=["numeric","2-digit"][n-1],t.hour12=!0,"{hour}";case"H":case"k":return t.hour=["numeric","2-digit"][n-1],"{hour}";case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":return t.minute=["numeric","2-digit"][n-1],"{minute}";case"s":return t.second=["numeric","2-digit"][n-1],"{second}";case"S":case"A":return t.second="numeric","{second}";case"z":case"Z":case"O":case"v":case"V":case"X":case"x":return t.timeZoneName=n<4?"short":"long","{timeZoneName}"}return""}function u(e){switch(e){case"G":return"era";case"y":case"Y":case"u":case"U":case"r":return"year";case"M":case"L":return"month";case"d":case"D":case"F":case"g":return"day";case"a":case"b":case"B":return"ampm";case"h":case"H":case"K":case"k":return"hour";case"m":return"minute";case"s":case"S":case"A":return"second";default:throw new RangeError("Invalid range pattern token")}}function s(e,t){var n=[],r=e.replace(/'{2}/g,"{apostrophe}").replace(/'(.*?)'/g,(function(e,t){return n.push(t),"$$"+(n.length-1)+"$$"})).replace(o,(function(e){return l(e,t||{})}));return n.length&&(r=r.replace(/\$\$(\d+)\$\$/g,(function(e,t){return n[+t]})).replace(/\{apostrophe\}/g,"'")),[r.replace(/([\s\uFEFF\xA0])\{ampm\}([\s\uFEFF\xA0])/,"$1").replace("{ampm}","").replace(i,""),r]}function c(e){return e.split(/(\{[0|1]\})/g).filter(Boolean).map((function(e){switch(e){case"{0}":return{source:a.RangePatternType.startRange,pattern:e};case"{1}":return{source:a.RangePatternType.endRange,pattern:e};default:return{source:a.RangePatternType.shared,pattern:e}}}))}function d(e){for(var t,n=/\{(.*?)\}/g,r={},o=0;t=n.exec(e);){if(t[0]in r){o=t.index;break}r[t[0]]=t.index}return o?[{source:a.RangePatternType.startRange,pattern:e.slice(0,o)},{source:a.RangePatternType.endRange,pattern:e.slice(o)}]:[{source:a.RangePatternType.startRange,pattern:e}]}t.processDateTimePattern=s,t.parseDateTimeSkeleton=function(e,t,n,a){void 0===t&&(t=e);var i={pattern:"",pattern12:"",skeleton:e,rawPattern:t,rangePatterns:{},rangePatterns12:{}};if(n)for(var f in n){var p=u(f),m={patternParts:[]},h=s(n[f],m),b=h[0],v=h[1];i.rangePatterns[p]=r.__assign(r.__assign({},m),{patternParts:d(b)}),i.rangePatterns12[p]=r.__assign(r.__assign({},m),{patternParts:d(v)})}else if(a){var g=c(a);i.rangePatterns.default={patternParts:g},i.rangePatterns12.default={patternParts:g}}e.replace(o,(function(e){return l(e,i)}));var y=s(t),_=y[0],w=y[1];return i.pattern=_,i.pattern12=w,i},t.splitFallbackRangePattern=c,t.splitRangePattern=d},97110:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.shortMorePenalty=t.shortLessPenalty=t.longMorePenalty=t.longLessPenalty=t.differentNumericTypePenalty=t.additionPenalty=t.removalPenalty=t.DATE_TIME_PROPS=void 0,t.DATE_TIME_PROPS=["weekday","era","year","month","day","hour","minute","second","timeZoneName"],t.removalPenalty=120,t.additionPenalty=20,t.differentNumericTypePenalty=15,t.longLessPenalty=8,t.longMorePenalty=6,t.shortLessPenalty=6,t.shortMorePenalty=3},76509:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultNumberOption=void 0,t.DefaultNumberOption=function(e,t,n,r){if(void 0!==e){if(e=Number(e),isNaN(e)||en)throw new RangeError(e+" is outside of range ["+t+", "+n+"]");return Math.floor(e)}return r}},7451:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanonicalCodeForDisplayNames=void 0;var r=n(14304),a=n(29861),o=n(47347),i=/^([a-z]{2}|[0-9]{3})$/i,l=/^[a-z]{4}$/i;t.CanonicalCodeForDisplayNames=function(e,t){if("language"===e)return r.CanonicalizeLocaleList([t])[0];if("region"===e){if(n=t,!i.test(n))throw RangeError("invalid region");return t.toUpperCase()}var n,u;if("script"===e){if(u=t,!l.test(u))throw RangeError("invalid script");return""+t[0].toUpperCase()+t.slice(1).toLowerCase()}if(a.invariant("currency"===e,"invalid type"),!o.IsWellFormedCurrencyCode(t))throw RangeError("invalid currency");return t.toUpperCase()}},60572:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetNumberOption=void 0;var r=n(76509);t.GetNumberOption=function(e,t,n,a,o){var i=e[t];return r.DefaultNumberOption(i,n,a,o)}},19249:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetOption=void 0;var r=n(14486);t.GetOption=function(e,t,n,a,o){if("object"!=typeof e)throw new TypeError("Options must be an object");var i=e[t];if(void 0!==i){if("boolean"!==n&&"string"!==n)throw new TypeError("invalid type");if("boolean"===n&&(i=Boolean(i)),"string"===n&&(i=r.ToString(i)),void 0!==a&&!a.filter((function(e){return e==i})).length)throw new RangeError(i+" is not within "+a.join(", "));return i}return o}},19923:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetOptionsObject=void 0,t.GetOptionsObject=function(e){if("undefined"==typeof e)return Object.create(null);if("object"==typeof e)return e;throw new TypeError("Options must be an object")}},68309:function(e,t){"use strict";function n(e){return e.slice(e.indexOf("-")+1)}Object.defineProperty(t,"__esModule",{value:!0}),t.IsSanctionedSimpleUnitIdentifier=t.SIMPLE_UNITS=t.removeUnitNamespace=t.SANCTIONED_UNITS=void 0,t.SANCTIONED_UNITS=["angle-degree","area-acre","area-hectare","concentr-percent","digital-bit","digital-byte","digital-gigabit","digital-gigabyte","digital-kilobit","digital-kilobyte","digital-megabit","digital-megabyte","digital-petabyte","digital-terabit","digital-terabyte","duration-day","duration-hour","duration-millisecond","duration-minute","duration-month","duration-second","duration-week","duration-year","length-centimeter","length-foot","length-inch","length-kilometer","length-meter","length-mile-scandinavian","length-mile","length-millimeter","length-yard","mass-gram","mass-kilogram","mass-ounce","mass-pound","mass-stone","temperature-celsius","temperature-fahrenheit","volume-fluid-ounce","volume-gallon","volume-liter","volume-milliliter"],t.removeUnitNamespace=n,t.SIMPLE_UNITS=t.SANCTIONED_UNITS.map(n),t.IsSanctionedSimpleUnitIdentifier=function(e){return t.SIMPLE_UNITS.indexOf(e)>-1}},87002:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IsValidTimeZoneName=void 0,t.IsValidTimeZoneName=function(e,t){var n=t.tzData,r=t.uppercaseLinks,a=e.toUpperCase(),o=new Set;return Object.keys(n).map((function(e){return e.toUpperCase()})).forEach((function(e){return o.add(e)})),o.has(a)||a in r}},47347:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IsWellFormedCurrencyCode=void 0;var n=/[^A-Z]/;t.IsWellFormedCurrencyCode=function(e){return 3===(e=e.replace(/([a-z])/g,(function(e,t){return t.toUpperCase()}))).length&&!n.test(e)}},61600:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IsWellFormedUnitIdentifier=void 0;var r=n(68309);t.IsWellFormedUnitIdentifier=function(e){if(e=e.replace(/([A-Z])/g,(function(e,t){return t.toLowerCase()})),r.IsSanctionedSimpleUnitIdentifier(e))return!0;var t=e.split("-per-");if(2!==t.length)return!1;var n=t[0],a=t[1];return!(!r.IsSanctionedSimpleUnitIdentifier(n)||!r.IsSanctionedSimpleUnitIdentifier(a))}},8348:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LookupMatcher=void 0;var r=n(29861),a=n(49059);t.LookupMatcher=function(e,t,n){for(var o={locale:""},i=0,l=t;ip[p.length-1])return p[p.length-1].length-1;var m=p.indexOf(f);if(-1===m)return 0;var h=p[m];return"0"===c[h].other?0:h.length-c[h].other.match(/0+/)[0].length}}},41614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CurrencyDigits=void 0;var r=n(14486);t.CurrencyDigits=function(e,t){var n=t.currencyDigitsData;return r.HasOwnProperty(n,e)?n[e]:2}},4708:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatNumericToParts=void 0;var r=n(74792),a=n(14486);t.FormatNumericToParts=function(e,t,n){for(var o=r.PartitionNumberPattern(e,t,n),i=a.ArrayCreate(0),l=0,u=o;l1&&(n=i.ToRawFixed(t,0,0))}t=n.roundedNumber;var u=n.formattedString,s=n.integerDigitsCount,c=e.minimumIntegerDigits;return s0||isNaN(t)?0:-1;break;case"always":s=o.SameValue(t,0)||t>0||isNaN(t)?1:-1;break;default:s=0===t||isNaN(t)?0:t>0?1:-1}return l.default({roundedNumber:t,formattedString:u,exponent:v,magnitude:b,sign:s},d.dataLocaleData,f,d)}},70324:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetNumberFormatDigitOptions=void 0;var r=n(60572),a=n(76509);t.SetNumberFormatDigitOptions=function(e,t,n,o,i){var l=r.GetNumberOption(t,"minimumIntegerDigits",1,21,1),u=t.minimumFractionDigits,s=t.maximumFractionDigits,c=t.minimumSignificantDigits,d=t.maximumSignificantDigits;if(e.minimumIntegerDigits=l,void 0!==c||void 0!==d)e.roundingType="significantDigits",c=a.DefaultNumberOption(c,1,21,1),d=a.DefaultNumberOption(d,c,21,21),e.minimumSignificantDigits=c,e.maximumSignificantDigits=d;else if(void 0!==u||void 0!==s){e.roundingType="fractionDigits",u=a.DefaultNumberOption(u,0,20,n);var f=Math.max(u,o);s=a.DefaultNumberOption(s,u,20,f),e.minimumFractionDigits=u,e.maximumFractionDigits=s}else"compact"===i?e.roundingType="compactRounding":(e.roundingType="fractionDigits",e.minimumFractionDigits=n,e.maximumFractionDigits=o)}},36193:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetNumberFormatUnitOptions=void 0;var r=n(19249),a=n(47347),o=n(61600);t.SetNumberFormatUnitOptions=function(e,t,n){void 0===t&&(t=Object.create(null));var i=(0,n.getInternalSlots)(e),l=r.GetOption(t,"style","string",["decimal","percent","currency","unit"],"decimal");i.style=l;var u=r.GetOption(t,"currency","string",void 0,void 0);if(void 0!==u&&!a.IsWellFormedCurrencyCode(u))throw RangeError("Malformed currency code");if("currency"===l&&void 0===u)throw TypeError("currency cannot be undefined");var s=r.GetOption(t,"currencyDisplay","string",["code","symbol","narrowSymbol","name"],"symbol"),c=r.GetOption(t,"currencySign","string",["standard","accounting"],"standard"),d=r.GetOption(t,"unit","string",void 0,void 0);if(void 0!==d&&!o.IsWellFormedUnitIdentifier(d))throw RangeError("Invalid unit argument for Intl.NumberFormat()");if("unit"===l&&void 0===d)throw TypeError("unit cannot be undefined");var f=r.GetOption(t,"unitDisplay","string",["short","narrow","long"],"short");"currency"===l&&(i.currency=u.toUpperCase(),i.currencyDisplay=s,i.currencySign=c),"unit"===l&&(i.unit=d,i.unitDisplay=f)}},84106:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToRawFixed=void 0;var r=n(29861);t.ToRawFixed=function(e,t,n){var a,o,i=n,l=Math.round(e*Math.pow(10,i)),u=l/Math.pow(10,i);if(l<1e21)a=l.toString();else{var s=(a=l.toString()).split("e"),c=s[0],d=s[1];a=c.replace(".",""),a+=r.repeat("0",Math.max(+d-a.length+1,0))}if(0!==i){var f=a.length;if(f<=i)a=r.repeat("0",i+1-f)+a,f=i+1;var p=a.slice(0,f-i),m=a.slice(f-i);a=p+"."+m,o=p.length}else o=a.length;for(var h=n-t;h>0&&"0"===a[a.length-1];)a=a.slice(0,-1),h--;return"."===a[a.length-1]&&(a=a.slice(0,-1)),{formattedString:a,roundedNumber:u,integerDigitsCount:o}}},73580:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToRawPrecision=void 0;var r=n(29861);t.ToRawPrecision=function(e,t,n){var a,o,i,l,u=n;if(0===e)a=r.repeat("0",u),o=0,i=0;else{var s=e.toString(),c=s.indexOf("e"),d=s.split("e"),f=d[0],p=d[1],m=f.replace(".","");if(c>=0&&m.length<=u)o=+p,a=m+r.repeat("0",u-m.length),i=e;else{var h=(o=r.getMagnitude(e))-u+1,b=Math.round(g(e,h));g(b,u-1)>=10&&(o+=1,b=Math.floor(b/10)),a=b.toString(),i=g(b,u-1-o)}}if(o>=u-1?(a+=r.repeat("0",o-u+1),l=o+1):o>=0?(a=a.slice(0,o+1)+"."+a.slice(o+1),l=o+1):(a="0."+r.repeat("0",-o-1)+a,l=1),a.indexOf(".")>=0&&n>t){for(var v=n-t;v>0&&"0"===a[a.length-1];)a=a.slice(0,-1),v--;"."===a[a.length-1]&&(a=a.slice(0,-1))}return{formattedString:a,roundedNumber:i,integerDigitsCount:l};function g(e,t){return t<0?e*Math.pow(10,-t):e/Math.pow(10,t)}}},6595:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(31635),a=n(84106),o=r.__importStar(n(65650)),i=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20BF\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B98-\u2BFF\u2CE5-\u2CEA\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uFB29\uFBB2-\uFBC1\uFDFC\uFDFD\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9B\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDE8\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD10-\uDD6C\uDD70-\uDDAC\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED5\uDEE0-\uDEEC\uDEF0-\uDEFA\uDF00-\uDF73\uDF80-\uDFD8\uDFE0-\uDFEB]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDD00-\uDD0B\uDD0D-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDE53\uDE60-\uDE6D\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95]/,l=new RegExp("^"+i.source),u=new RegExp(i.source+"$"),s=/[#0](?:[\.,][#0]+)*/g;function c(e,t,n,r,i,l,u){var s=[],c=t.formattedString,d=t.roundedNumber;if(isNaN(d))return[{type:"nan",value:c}];if(!isFinite(d))return[{type:"infinity",value:c}];var f=o[i];f&&(c=c.replace(/\d/g,(function(e){return f[+e]||e})));var p,m,h=c.indexOf(".");if(h>0?(p=c.slice(0,h),m=c.slice(h+1)):p=c,l&&("compact"!==n||d>=1e4)){var b=e.group,v=[],g=u.split(".")[0].split(","),y=3,_=3;g.length>1&&(y=g[g.length-1].length),g.length>2&&(_=g[g.length-2].length);var w=p.length-y;if(w>0){for(v.push(p.slice(w,w+y)),w-=_;w>0;w-=_)v.push(p.slice(w,w+_));v.push(p.slice(0,w+_))}else v.push(p);for(;v.length>0;){var k=v.pop();s.push({type:"integer",value:k}),v.length>0&&s.push({type:"group",value:b})}}else s.push({type:"integer",value:p});if(void 0!==m&&s.push({type:"decimal",value:e.decimal},{type:"fraction",value:m}),("scientific"===n||"engineering"===n)&&isFinite(d)){s.push({type:"exponentSeparator",value:e.exponential}),r<0&&(s.push({type:"exponentMinusSign",value:e.minusSign}),r=-r);var O=a.ToRawFixed(r,0,0);s.push({type:"exponentInteger",value:O.formattedString})}return s}function d(e,t){e.indexOf(";")<0&&(e=e+";-"+e);var n=e.split(";"),r=n[0],a=n[1];switch(t){case 0:return r;case-1:return a;default:return a.indexOf("-")>=0?a.replace(/-/g,"+"):"+"+r}}function f(e,t,n){return n[e.select(t)]||n.other}t.default=function(e,t,n,r){var a,o,i=e.sign,p=e.exponent,m=e.magnitude,h=r.notation,b=r.style,v=r.numberingSystem,g=t.numbers.nu[0],y=null;if("compact"===h&&m&&(y=function(e,t,n,r,a,o,i){var l,u,s=e.roundedNumber,c=e.sign,p=e.magnitude,m=String(Math.pow(10,p)),h=n.numbers.nu[0];if("currency"===r&&"name"!==o){var b=null===(l=((v=n.numbers.currency)[i]||v[h]).short)||void 0===l?void 0:l[m];if(!b)return null;u=f(t,s,b)}else{var v,g=((v=n.numbers.decimal)[i]||v[h])[a][m];if(!g)return null;u=f(t,s,g)}if("0"===u)return null;return u=d(u,c).replace(/([^\s;\-\+\d¤]+)/g,"{c:$1}").replace(/0+/,"0"),u}(e,n,t,b,r.compactDisplay,r.currencyDisplay,v)),"currency"===b&&"name"!==r.currencyDisplay){var _=t.currencies[r.currency];if(_)switch(r.currencyDisplay){case"code":a=r.currency;break;case"symbol":a=_.symbol;break;default:a=_.narrow}else a=r.currency}if(y)o=y;else if("decimal"===b||"unit"===b||"currency"===b&&"name"===r.currencyDisplay)o=d((t.numbers.decimal[v]||t.numbers.decimal[g]).standard,i);else if("currency"===b){o=d((k=t.numbers.currency[v]||t.numbers.currency[g])[r.currencySign],i)}else{o=d(t.numbers.percent[v]||t.numbers.percent[g],i)}var w=s.exec(o)[0];if(o=o.replace(s,"{0}").replace(/'(.)'/g,"$1"),"currency"===b&&"name"!==r.currencyDisplay){var k,O=(k=t.numbers.currency[v]||t.numbers.currency[g]).currencySpacing.afterInsertBetween;O&&!u.test(a)&&(o=o.replace("¤{0}","¤"+O+"{0}"));var E=k.currencySpacing.beforeInsertBetween;E&&!l.test(a)&&(o=o.replace("{0}¤","{0}"+E+"¤"))}for(var x=o.split(/({c:[^}]+}|\{0\}|[¤%\-\+])/g),P=[],S=t.numbers.symbols[v]||t.numbers.symbols[g],C=0,j=x;C-1;)a=e.indexOf("}",n),r.invariant(a>n,"Invalid pattern "+e),n>o&&t.push({type:"literal",value:e.substring(o,n)}),t.push({type:e.substring(n+1,a),value:void 0}),o=a+1,n=e.indexOf("{",o);return o2){var O=d.indexOf("-x-");if(-1===O)d+=p;else{var E=d.slice(0,O),x=d.slice(O,d.length);d=E+p+x}d=Intl.getCanonicalLocales(d)[0]}return f.locale=d,f}},75827:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SupportedLocales=void 0;var r=n(14486),a=n(19249),o=n(88933);t.SupportedLocales=function(e,t,n){return void 0!==n&&(n=r.ToObject(n),a.GetOption(n,"localeMatcher","string",["lookup","best fit"],"best fit")),o.LookupSupportedLocales(e,t)}},27585:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeExtensionValue=void 0;var r=n(29861);t.UnicodeExtensionValue=function(e,t){r.invariant(2===t.length,"key must have 2 elements");var n=e.length,a="-"+t+"-",o=e.indexOf(a);if(-1!==o){for(var i=o+4,l=i,u=i,s=!1;!s;){var c=e.indexOf("-",u);2===(-1===c?n-u:c-u)?s=!0:-1===c?(l=n,s=!0):(l=c,u=c+1)}return e.slice(i,l)}if(a="-"+t,-1!==(o=e.indexOf(a))&&o+3===n)return""}},65810:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMissingLocaleDataError=void 0;var r=n(31635);!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="MISSING_LOCALE_DATA",t}r.__extends(t,e)}(Error);t.isMissingLocaleDataError=function(e){return"MISSING_LOCALE_DATA"===e.type}},67916:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.invariant=t.isMissingLocaleDataError=t.defineProperty=t.getMagnitude=t.setMultiInternalSlots=t.setInternalSlot=t.isLiteralPart=t.getMultiInternalSlots=t.getInternalSlot=t.parseDateTimeSkeleton=t.DATE_TIME_PROPS=t._formatToParts=t.BestFitFormatMatcher=void 0;var r=n(31635),a=n(49743);Object.defineProperty(t,"BestFitFormatMatcher",{enumerable:!0,get:function(){return a.BestFitFormatMatcher}}),r.__exportStar(n(14304),t),r.__exportStar(n(37990),t),r.__exportStar(n(7307),t),r.__exportStar(n(13082),t),r.__exportStar(n(95102),t),r.__exportStar(n(8969),t),r.__exportStar(n(93360),t),r.__exportStar(n(58395),t),r.__exportStar(n(85652),t),r.__exportStar(n(7099),t),r.__exportStar(n(82056),t),r.__exportStar(n(81645),t),r.__exportStar(n(7451),t),r.__exportStar(n(60572),t),r.__exportStar(n(19249),t),r.__exportStar(n(19923),t),r.__exportStar(n(68309),t),r.__exportStar(n(87002),t),r.__exportStar(n(47347),t),r.__exportStar(n(61600),t),r.__exportStar(n(87045),t),r.__exportStar(n(66),t),r.__exportStar(n(41614),t),r.__exportStar(n(4708),t),r.__exportStar(n(50345),t),r.__exportStar(n(30139),t),r.__exportStar(n(74792),t),r.__exportStar(n(70324),t),r.__exportStar(n(36193),t),r.__exportStar(n(84106),t),r.__exportStar(n(73580),t),r.__exportStar(n(95746),t),r.__exportStar(n(13888),t),r.__exportStar(n(4873),t),r.__exportStar(n(14680),t),r.__exportStar(n(34257),t),r.__exportStar(n(38012),t),r.__exportStar(n(20507),t),r.__exportStar(n(64715),t),r.__exportStar(n(53504),t),r.__exportStar(n(62713),t),r.__exportStar(n(43362),t),r.__exportStar(n(75827),t);var o=n(6595);Object.defineProperty(t,"_formatToParts",{enumerable:!0,get:function(){return r.__importDefault(o).default}});var i=n(97110);Object.defineProperty(t,"DATE_TIME_PROPS",{enumerable:!0,get:function(){return i.DATE_TIME_PROPS}});var l=n(3340);Object.defineProperty(t,"parseDateTimeSkeleton",{enumerable:!0,get:function(){return l.parseDateTimeSkeleton}});var u=n(29861);Object.defineProperty(t,"getInternalSlot",{enumerable:!0,get:function(){return u.getInternalSlot}}),Object.defineProperty(t,"getMultiInternalSlots",{enumerable:!0,get:function(){return u.getMultiInternalSlots}}),Object.defineProperty(t,"isLiteralPart",{enumerable:!0,get:function(){return u.isLiteralPart}}),Object.defineProperty(t,"setInternalSlot",{enumerable:!0,get:function(){return u.setInternalSlot}}),Object.defineProperty(t,"setMultiInternalSlots",{enumerable:!0,get:function(){return u.setMultiInternalSlots}}),Object.defineProperty(t,"getMagnitude",{enumerable:!0,get:function(){return u.getMagnitude}}),Object.defineProperty(t,"defineProperty",{enumerable:!0,get:function(){return u.defineProperty}});var s=n(65810);Object.defineProperty(t,"isMissingLocaleDataError",{enumerable:!0,get:function(){return s.isMissingLocaleDataError}}),r.__exportStar(n(55768),t),r.__exportStar(n(41204),t),r.__exportStar(n(23040),t),r.__exportStar(n(86944),t),r.__exportStar(n(59781),t),r.__exportStar(n(26642),t);var c=n(29861);Object.defineProperty(t,"invariant",{enumerable:!0,get:function(){return c.invariant}}),r.__exportStar(n(14486),t)},41204:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RangePatternType=void 0,function(e){e.startRange="startRange",e.shared="shared",e.endRange="endRange"}(t.RangePatternType||(t.RangePatternType={}))},26642:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},23040:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},59781:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},86944:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},55768:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},29861:function(e,t){"use strict";function n(e,t,n,r){e.get(t)||e.set(t,Object.create(null)),e.get(t)[n]=r}function r(e,t){for(var n=[],r=2;r=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var c=a.default.createContext({}),d=function(e){var t=a.default.useContext(c),n=t;return e&&(n="function"==typeof e?e(t):u(u({},t),e)),n},f={inlineCode:"code",wrapper:function(e){var t=e.children;return a.default.createElement(a.default.Fragment,{},t)}},p=a.default.forwardRef((function(e,t){var n=e.components,r=e.mdxType,o=e.originalType,i=e.parentName,l=s(e,["components","mdxType","originalType","parentName"]),c=d(n),p=r,m=c["".concat(i,".").concat(p)]||c[p]||f[p]||o;return n?a.default.createElement(m,u(u({ref:t},l),{},{components:n})):a.default.createElement(m,u({ref:t},l))}));p.displayName="MDXCreateElement",t.MDXContext=c,t.MDXProvider=function(e){var t=d(e.components);return a.default.createElement(c.Provider,{value:t},e.children)},t.mdx=function(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=n.length,i=new Array(o);i[0]=p;var l={};for(var u in t)hasOwnProperty.call(t,u)&&(l[u]=t[u]);l.originalType=e,l.mdxType="string"==typeof e?e:r,i[1]=l;for(var s=2;s=0&&(M=P);var T=l.default.useContext(f.default),A=(0,c.default)(_("abstract-modal",{"is-fullscreen":E},"layer-".concat(M),T.className),d),N=(0,c.default)(_("abstract-modal-container"));delete D.closePortal,delete D.fallbackFocus;var I=l.default.createElement("div",(0,o.default)({},D,{"aria-label":n,"aria-labelledby":r,"aria-describedby":a,className:A,role:O,ref:t}),l.default.createElement("div",{className:N,ref:S,"data-terra-abstract-modal-begin":!0,tabIndex:"-1"},!C&&l.default.createElement(s.FormattedMessage,{id:"Terra.AbstractModal.BeginModalDialog"},(function(e){var t=e;return Array.isArray(e)&&(t=e.join("")),l.default.createElement(p.default,{text:t})})),u,!C&&l.default.createElement(s.FormattedMessage,{id:"Terra.AbstractModal.EndModalDialog"},(function(e){var t=e;return Array.isArray(e)&&(t=e.join("")),l.default.createElement(p.default,{text:t})}))));return l.default.createElement(l.default.Fragment,null,l.default.createElement(h.default,{onClick:y?k:null,className:v,zIndex:M}),j?l.default.createElement(m.FocusOn,{onClickOutside:y?k:null},I):l.default.createElement(l.default.Fragment,null,I))}));O.propTypes=k,O.defaultProps={classNameModal:null,classNameOverlay:null,closeOnOutsideClick:!0,isFullscreen:!1,isScrollable:!1,role:"dialog",rootSelector:"#root",zIndex:"6000",isCalledFromNotificationDialog:!1};t.default=O},28448:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(94634)),i=r(n(91847)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),u=r(n(46942)),s=r(n(67967)),c=r(n(23695)),d=r(n(5556)),f=r(n(74768)),p=["zIndex"];function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}var h=s.default.bind(f.default),b={zIndex:d.default.oneOf(["6000","7000","8000","9000"])},v=function(e){(0,l.useEffect)((function(){var e=document.documentElement.style.overflow;return document.documentElement.style.overflow="hidden",function(){document.documentElement.style.overflow=e}}),[]);var t=e.zIndex,n=(0,i.default)(e,p),r=l.default.useContext(c.default),a=(0,u.default)(h("overlay","layer-".concat(t),r.className),n.className);return l.default.createElement("div",(0,o.default)({},n,{className:a}))};v.propTypes=b;t.default=v},87176:function(){"use strict";Node.prototype.contains||(Node.prototype.contains=function(e){if(!(0 in arguments))throw new TypeError("1 argument is required");do{if(this===e)return!0}while(e=e&&e.parentNode);return!1})},42063:function(){"use strict";Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector)},56449:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hideModalDomUpdates=function(e,t){var n=document.querySelector(t);if(n){var r=+n.getAttribute("data-abstract-modal-overlay-count");1===r?(n.removeAttribute("data-abstract-modal-overlay-count"),n.removeAttribute("inert")):r>1&&n.setAttribute("data-abstract-modal-overlay-count","".concat(r-1))}setTimeout((function(){e&&e.focus?e.focus():document.querySelector("body").focus()}),0)},t.showModalDomUpdates=function(e,t){var n=document.querySelector(t);if(n){var r=+n.getAttribute("data-abstract-modal-overlay-count");r<1&&n.setAttribute("inert","true"),n.setAttribute("data-abstract-modal-overlay-count","".concat(r+1)),e.querySelector("[data-terra-abstract-modal-begin]")?e.querySelector("[data-terra-abstract-modal-begin]").focus():e.focus()}}},12643:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DisclosureManagerContext",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"DisclosureManagerDelegate",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"DisclosureManagerHeaderAdapter",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"DisclosureManagerHeaderAdapterContext",{enumerable:!0,get:function(){return h.default}}),t.disclosureManagerShape=t.default=t.availableDisclosureWidths=t.availableDisclosureSizes=t.availableDisclosureHeights=void 0,Object.defineProperty(t,"withDisclosureManager",{enumerable:!0,get:function(){return v.default}});var a=r(n(94634)),o=r(n(17383)),i=r(n(34579)),l=r(n(28452)),u=r(n(63072)),s=r(n(29511)),c=r(n(43693)),d=r(n(96540)),f=r(n(5556)),p=r(n(31512)),m=r(n(97532)),h=r(n(22424)),b=r(n(63583)),v=r(n(33275));function g(e,t,n){return t=(0,u.default)(t),(0,l.default)(e,y()?Reflect.construct(t,n||[],(0,u.default)(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t0?c:void 0,f.requestFocus=i?function(){return Promise.resolve().then(n.releaseDisclosureFocus)}:void 0,f.releaseFocus=i?void 0:function(){return Promise.resolve().then(n.requestDisclosureFocus)},f.maximize=s||o?void 0:function(){return Promise.resolve().then(n.maximizeDisclosure)},f.minimize=!s&&o?function(){return Promise.resolve().then(n.minimizeDisclosure)}:void 0,f.registerDismissCheck=function(e){return n.dismissChecks[u.key]=e,Promise.resolve()},p.default.create(f)}},{key:"disclosureTypeIsSupported",value:function(e){var t=this.props,n=t.disclosureManager;return t.supportedDisclosureTypes.indexOf(e)>=0||!n}},{key:"openDisclosure",value:function(e){var t=e.dimensions;t&&!function(e){return E[e.height]&&x[e.width]}(t)&&(t=P);var n=e.size;(!n||n&&!function(e){return!!k[e.toUpperCase().replace(/-/g,"_")]}(n))&&(t||(t=P),n=S);var r={disclosureIsOpen:!0,disclosureIsFocused:!0,disclosureSize:n,disclosureDimensions:t,disclosureComponentKeys:[e.content.key],disclosureTypeConfig:e.typeConfig,disclosureComponentData:(0,c.default)({},e.content.key,w(w({key:e.content.key,name:e.content.name,props:e.content.props,component:e.content.component},void 0!==e.content.title&&{headerAdapterData:{title:e.content.title}}),{},{headerAdapterContextValue:this.generateHeaderContextValue(e.content.key,e.content.title)}))};r.disclosureComponentDelegates=[this.generateDisclosureComponentDelegate(e.content.key,r)],this.setState(r)}},{key:"pushDisclosure",value:function(e){var n=t.cloneDisclosureState(this.state);n.disclosureComponentKeys.push(e.content.key),n.disclosureComponentData[e.content.key]=w(w({key:e.content.key,name:e.content.name,props:e.content.props,component:e.content.component},void 0!==e.content.title&&{headerAdapterData:{title:e.content.title}}),{},{headerAdapterContextValue:this.generateHeaderContextValue(e.content.key,e.content.title)}),n.disclosureComponentDelegates=n.disclosureComponentDelegates.concat(this.generateDisclosureComponentDelegate(e.content.key,n)),this.setState(n)}},{key:"popDisclosure",value:function(e){if(1===this.state.disclosureComponentKeys.length)this.closeDisclosure(e);else{var n=t.cloneDisclosureState(this.state);n.disclosureComponentData[n.disclosureComponentKeys.pop()]=void 0,n.disclosureComponentDelegates.pop(),this.setState(n,e)}}},{key:"closeDisclosure",value:function(e){this.setState({disclosureIsOpen:!1,disclosureIsFocused:!1,disclosureIsMaximized:!1,disclosureSize:void 0,disclosureDimensions:void 0,disclosureComponentKeys:[],disclosureComponentData:{},disclosureComponentDelegates:[],disclosureTypeConfig:{}},e)}},{key:"requestDisclosureFocus",value:function(){var e=this,n=t.cloneDisclosureState(this.state);n.disclosureIsFocused=!0,n.disclosureComponentDelegates=n.disclosureComponentKeys.map((function(t){return e.generateDisclosureComponentDelegate(t,n)})),this.setState(n)}},{key:"releaseDisclosureFocus",value:function(){var e=this,n=t.cloneDisclosureState(this.state);n.disclosureIsFocused=!1,n.disclosureComponentDelegates=n.disclosureComponentKeys.map((function(t){return e.generateDisclosureComponentDelegate(t,n)})),this.setState(n)}},{key:"maximizeDisclosure",value:function(){var e=this,n=t.cloneDisclosureState(this.state);n.disclosureIsMaximized=!0,n.disclosureComponentDelegates=n.disclosureComponentKeys.map((function(t){return e.generateDisclosureComponentDelegate(t,n)})),this.setState(n)}},{key:"minimizeDisclosure",value:function(){var e=this,n=t.cloneDisclosureState(this.state);n.disclosureIsMaximized=!1,n.disclosureComponentDelegates=n.disclosureComponentKeys.map((function(t){return e.generateDisclosureComponentDelegate(t,n)})),this.setState(n)}},{key:"resolveDismissPromise",value:function(e){var t=this.onDismissResolvers[e];t&&t(),this.onDismissResolvers[e]=void 0}},{key:"resolveDismissChecksInSequence",value:function(e){var t=this;return new Promise((function(n,r){if(e.length){var a=e.pop();t.generatePopFunction(a)().then((function(){t.resolveDismissChecksInSequence(e).then(n).catch(r)})).catch((function(){r()}))}else n()}))}},{key:"safelyCloseDisclosure",value:function(){var e=this,t=(0,a.default)([],this.state.disclosureComponentKeys);return this.resolveDismissChecksInSequence(t).then((function(){e.dismissChecks={},e.closeDisclosure()}))}},{key:"generatePopFunction",value:function(e){var t=this;return function(){var n=t.state.disclosureComponentKeys;if(n[n.length-1]!==e)return Promise.reject();var r=Promise.resolve(),a=t.dismissChecks[e];a&&(r=a());var o=function(){t.dismissChecks[e]=void 0,t.resolveDismissPromise(e)};return r.then((function(){t.popDisclosure(o)}))}}},{key:"generateDisclosureComponentMappingForRender",value:function(e){var t=this.state,n=t.disclosureComponentKeys,r=t.disclosureComponentData,a=t.disclosureComponentDelegates;return n.reduce((function(t,n,o){var i=r[n],l=e?e(i.component):i.component;return t[n]={component:d.default.createElement(h.default.Provider,{value:i.headerAdapterContextValue,key:n},d.default.createElement(m.default.Provider,{value:a[o]},l)),headerAdapterData:i.headerAdapterData},t}),{})}},{key:"render",value:function(){var e=this,t=this.props,n=t.withDisclosureContainer,r=t.render,a=t.children,o=this.state,i=o.childComponentDelegate,l=o.disclosureIsOpen,u=o.disclosureIsFocused,s=o.disclosureIsMaximized,c=o.disclosureSize,f=o.disclosureDimensions,p=o.disclosureComponentKeys,h=o.disclosureTypeConfig;if(!r)return null;var b=this.generateDisclosureComponentMappingForRender(n);return r({dismissPresentedComponent:this.generatePopFunction(p?p[p.length-1]:void 0),closeDisclosure:this.safelyCloseDisclosure,maximizeDisclosure:c===k.FULLSCREEN||s?void 0:function(){return Promise.resolve().then(e.maximizeDisclosure)},minimizeDisclosure:c!==k.FULLSCREEN&&s?function(){return Promise.resolve().then(e.minimizeDisclosure)}:void 0,children:{components:d.default.createElement(m.default.Provider,{value:i},a)},disclosure:{isOpen:l,isFocused:u,isMaximized:s,size:c,dimensions:f,components:p.map((function(e){return b[e].component})),typeConfig:h},disclosureComponentKeys:p,disclosureComponentData:b})}}],[{key:"cloneDisclosureState",value:function(e){var t=w({},e);return t.disclosureComponentKeys=(0,a.default)([],t.disclosureComponentKeys),t.disclosureComponentData=w({},t.disclosureComponentData),t.disclosureComponentDelegates=(0,a.default)([],t.disclosureComponentDelegates),t}}])}(d.default.Component);j.propTypes=C,j.defaultProps={supportedDisclosureTypes:[]};t.disclosureManagerShape=p.default.propType,t.default=(0,v.default)(j)},97532:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)).default.createContext();t.default=a},31512:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(34579)),o=r(n(17383)),i=r(n(5556)),l=["disclose","dismiss","closeDisclosure","goBack","maximize","minimize","requestFocus","releaseFocus","registerDismissCheck"],u=(0,a.default)((function e(t){var n=this;(0,o.default)(this,e),l.forEach((function(e){t[e]&&(n[e]=t[e])}))})),s=function(e){return Object.freeze(new u(e))},c={propType:i.default.objectOf((function(e,t,n,r,a){return!(l.indexOf(t)<0)||new Error("Invalid key '".concat(t,"' supplied to ").concat(n,"'s '").concat(a,"' prop. Validation failed."))})),create:s,clone:function(e,t){var n=e||{},r={};return l.forEach((function(e){r[e]=t[e]||n[e]})),s(r)},isEqual:function(e,t){return!(!e||!t)&&(e===t||!l.some((function(n){return e[n]!==t[n]})))}};t.default=c},63583:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(96540),o=r(n(5556)),i=r(n(22424)),l={title:o.default.string,collapsibleMenuView:o.default.element},u=function(e){var t=e.title,n=e.collapsibleMenuView,r=(0,a.useContext)(i.default);return(0,a.useLayoutEffect)((function(){r.register({title:t,collapsibleMenuView:n})}),[t,n,r]),null};u.propTypes=l;t.default=u},22424:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)).default.createContext({register:function(){0}});t.default=a},33275:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(94634)),o=r(n(96540)),i=r(n(97532));t.default=function(e){var t,n=function(t){return o.default.createElement(i.default.Consumer,null,(function(n){return o.default.createElement(e,(0,a.default)({},t,{disclosureManager:n}))}))};return n.displayName="withDisclosureManager(".concat((t=e).displayName||t.name||"Component",")"),n.WrappedComponent=e,n}},70444:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(17383)),o=r(n(34579)),i=r(n(28452)),l=r(n(63072)),u=r(n(29511)),s=r(n(96540)),c=r(n(5556)),d=n(569),f=r(n(1407)),p=r(n(5316));function m(e,t,n){return t=(0,l.default)(t),(0,i.default)(e,h()?Reflect.construct(t,n||[],(0,l.default)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var b=["top","middle","bottom"],v=["start","center","end"],g=["auto","flip","push","none"],y={attachmentBehavior:c.default.oneOf(g),attachmentMargin:c.default.number,boundingRef:c.default.func,children:c.default.element.isRequired,contentAttachment:c.default.shape({horizontal:c.default.oneOf(v),vertical:c.default.oneOf(b)}).isRequired,contentOffset:c.default.shape({horizontal:c.default.number,vertical:c.default.number}),isEnabled:c.default.bool,isOpen:c.default.bool,onPosition:c.default.func,targetCoordinates:c.default.shape({x:c.default.number.isRequired,y:c.default.number.isRequired}),targetRef:c.default.func,targetAttachment:c.default.shape({horizontal:c.default.oneOf(v),vertical:c.default.oneOf(b)}),targetOffset:c.default.shape({horizontal:c.default.number,vertical:c.default.number})},_=function(e){function t(e){var n;return(0,a.default)(this,t),(n=m(this,t,[e])).setContentNode=n.setContentNode.bind(n),n.getNodeRects=n.getNodeRects.bind(n),n.update=n.update.bind(n),n.tick=n.tick.bind(n),n.getBoundingRef=n.getBoundingRef.bind(n),n.getTargetRef=n.getTargetRef.bind(n),n.getValidBoundingRect=n.getValidBoundingRect.bind(n),n.getValidTargetRect=n.getValidTargetRect.bind(n),n.listenersAdded=!1,n.lastCall=null,n.lastDuration=null,n.pendingTimeout=null,n}return(0,u.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){this.props.isEnabled&&this.props.isOpen&&(this.listenersAdded||this.enableListeners(),this.update())}},{key:"componentDidUpdate",value:function(){this.props.isEnabled&&this.props.isOpen?(this.listenersAdded||this.enableListeners(),this.update()):this.disableListeners()}},{key:"componentWillUnmount",value:function(){this.disableListeners()}},{key:"setContentNode",value:function(e){this.contentNode=e}},{key:"getBoundingRef",value:function(){return this.props.boundingRef?this.props.boundingRef():void 0}},{key:"getTargetRef",value:function(){return this.props.targetRef?this.props.targetRef():void 0}},{key:"getValidBoundingRect",value:function(){if("none"!==this.props.attachmentBehavior)return p.default.getBoundingRect(this.getBoundingRef()||"window")}},{key:"getValidTargetRect",value:function(){return this.props.targetCoordinates?p.default.getRectFromCoords(this.props.targetCoordinates):p.default.getBounds(this.getTargetRef())}},{key:"getNodeRects",value:function(e){return{contentRect:e?p.default.getBounds(this.contentNode):this.cachedRects.contentRect,targetRect:this.getValidTargetRect(),boundingRect:this.getValidBoundingRect()}}},{key:"tick",value:function(e){if(this.lastDuration&&this.lastDuration>16)return this.lastDuration=Math.min(this.lastDuration-16,100),void(this.pendingTimeout=setTimeout(this.tick,100));this.lastCall&&performance.now()-this.lastCall<10||(null!=this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=null),this.lastCall=performance.now(),this.update(e),this.lastDuration=performance.now()-this.lastCall)}},{key:"enableListeners",value:function(){var e=this,t=this.getTargetRef()||this.getBoundingRef();t&&(["resize","scroll","touchmove"].forEach((function(t){return window.addEventListener(t,e.tick)})),this.parentListeners=[],p.default.getScrollParents(t).forEach((function(n){n!==t.ownerDocument&&(n.addEventListener("scroll",e.tick),e.parentListeners.push(n))})),this.listenersAdded=!0)}},{key:"disableListeners",value:function(){var e=this;["resize","scroll","touchmove"].forEach((function(t){return window.removeEventListener(t,e.tick)})),this.parentListeners&&(this.parentListeners.forEach((function(t){t.removeEventListener("scroll",e.tick)})),this.parentListeners=null),this.listenersAdded=!1}},{key:"position",value:function(e,t){this.cachedRects=this.getNodeRects(t),this.content.rect=this.cachedRects.contentRect,this.target.rect=this.cachedRects.targetRect;var n=p.default.positionStyleFromBounds(this.cachedRects.boundingRect,this.content,this.target,this.props.attachmentMargin,this.props.attachmentBehavior),r=!1,a="translate3d(".concat(n.style.left,", ").concat(n.style.top,", 0px)");this.contentNode.style.transform!==a&&(this.contentNode.style.transform=a,r=!0),"1"!==this.contentNode.style.opacity&&(this.contentNode.style.opacity="1",r=!0),r&&(this.cachedRects.contentRect=p.default.getBounds(this.contentNode),n.positions.content.rect=this.cachedRects.contentRect),this.props.onPosition&&this.props.onPosition(e,n.positions)}},{key:"update",value:function(e){(this.getTargetRef()||this.props.targetCoordinates)&&this.contentNode&&this.updateHookshot(e)}},{key:"updateHookshot",value:function(e){var t=!e||"scroll"!==e.type&&"touchmove"!==e.type;this.position(e,t)}},{key:"cloneContent",value:function(e){return s.default.cloneElement(e,{refCallback:this.wrappedRefCallback(e),disableOnClickOutside:!e.props.onOutsideClick})}},{key:"wrappedRefCallback",value:function(e){var t=this,n=e.props.refCallback;return function(e){t.setContentNode(e),n&&n(e)}}},{key:"render",value:function(){var e=this.props,t=(e.attachmentBehavior,e.attachmentMargin,e.boundingRef,e.children),n=e.contentAttachment,r=e.contentOffset,a=(e.isEnabled,e.isOpen),o=e.targetCoordinates,i=(e.targetRef,e.targetAttachment),l=e.targetOffset;e.onPosition;if(!a)return null;var u="rtl"===document.getElementsByTagName("html")[0].getAttribute("dir");return this.content={offset:p.default.getDirectionalOffset(r,u),attachment:p.default.getDirectionalAttachment(n,u)},this.target={offset:p.default.getDirectionalOffset(l,u)},this.target.attachment=o?p.default.coordinateAttachment:i?p.default.getDirectionalAttachment(i,u):p.default.mirrorAttachment(this.content.attachment),s.default.createElement(d.Portal,{isOpened:a},this.cloneContent(t))}}])}(s.default.Component);_.propTypes=y,_.defaultProps={attachmentMargin:0,attachmentBehavior:"auto",contentOffset:{horizontal:0,vertical:0},isEnabled:!1,isOpen:!1,targetOffset:{horizontal:0,vertical:0}},_.horizontalAttachments=v,_.verticalAttachments=b,_.attachmentBehaviors=g,_.Utils=p.default,_.Content=f.default;t.default=_},1407:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(94634)),i=r(n(91847)),l=r(n(17383)),u=r(n(34579)),s=r(n(28452)),c=r(n(63072)),d=r(n(29511)),f=r(n(96540)),p=r(n(5556)),m=r(n(67967)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=_(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(25966)),b=r(n(52032)),v=r(n(7829)),g=r(n(60484));n(46952);var y=["children","onContentResize","onEsc","onOutsideClick","onResize","refCallback"];function _(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_=function(e){return e?n:t})(e)}function w(e,t,n){return t=(0,c.default)(t),(0,s.default)(e,k()?Reflect.construct(t,n||[],(0,c.default)(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}var O=m.default.bind(g.default),E={children:p.default.node.isRequired,onContentResize:p.default.func,onEsc:p.default.func,onOutsideClick:p.default.func,onResize:p.default.func,refCallback:p.default.func},x=function(e){function t(e){var n;return(0,l.default)(this,t),(n=w(this,t,[e])).handleClickOutside=n.handleClickOutside.bind(n),n.handleKeydown=n.handleKeydown.bind(n),n.handleResize=n.debounce(n.handleResize.bind(n),100),n.enableEscListener=n.enableEscListener.bind(n),n.disableEscListener=n.disableEscListener.bind(n),n.enableResizeListener=n.enableResizeListener.bind(n),n.disableResizeListener=n.disableResizeListener.bind(n),n.enableContentResizeListener=n.enableContentResizeListener.bind(n),n.disableContentResizeListener=n.disableContentResizeListener.bind(n),n.updateListeners=n.updateListeners.bind(n),n.animationFrameID=null,n}return(0,d.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){this.updateListeners()}},{key:"componentDidUpdate",value:function(){this.updateListeners()}},{key:"componentWillUnmount",value:function(){this.disableEscListener(),this.disableResizeListener(),this.disableContentResizeListener()}},{key:"handleResize",value:function(e){this.props.onResize&&this.props.onResize(e)}},{key:"handleClickOutside",value:function(e){this.props.onOutsideClick&&this.props.onOutsideClick(e)}},{key:"handleKeydown",value:function(e){e.keyCode===h.KEY_ESCAPE&&(e.preventDefault(),this.props.onEsc(e))}},{key:"updateListeners",value:function(){this.props.onEsc?this.enableEscListener():this.disableEscListener(),this.props.onResize?this.enableResizeListener():this.disableResizeListener(),this.props.onContentResize?this.enableContentResizeListener():this.disableContentResizeListener()}},{key:"enableEscListener",value:function(){this.escListenerAdded||(document.addEventListener("keydown",this.handleKeydown),this.escListenerAdded=!0)}},{key:"disableEscListener",value:function(){this.escListenerAdded&&(document.removeEventListener("keydown",this.handleKeydown),this.escListenerAdded=!1)}},{key:"enableResizeListener",value:function(){this.resizeListenerAdded||(window.addEventListener("resize",this.handleResize),this.resizeListenerAdded=!0)}},{key:"disableResizeListener",value:function(){this.resizeListenerAdded&&(window.removeEventListener("resize",this.handleResize),this.resizeListenerAdded=!1)}},{key:"enableContentResizeListener",value:function(){var e=this;this.contentResizeListenerAdded||(this.resizeObserver=new v.default((function(t){e.animationFrameID=window.requestAnimationFrame((function(){e.props.onContentResize(t[0].contentRect)}))})),this.resizeObserver.observe(this.contentNode),this.contentResizeListenerAdded=!0)}},{key:"disableContentResizeListener",value:function(){this.contentResizeListenerAdded&&(window.cancelAnimationFrame(this.animationFrameID),this.resizeObserver.disconnect(this.contentNode),this.contentNode=null,this.contentResizeListenerAdded=!1)}},{key:"debounce",value:function(e,t){var n=this,r=null;return function(){for(var a=arguments.length,o=new Array(a),i=0;i=t.left:"left"!==r.horizontal||n.x+a.width<=t.right:"top"===r.vertical?n.y+a.height<=t.bottom:n.y>=t.top},c=function(e){var t={},n=e.rect.top,r=e.rect.height,a=e.rect.left,o=e.rect.width;return"middle"===e.attachment.vertical?t.y=n+r/2:"bottom"===e.attachment.vertical?t.y=n+r:t.y=n,"center"===e.attachment.horizontal?t.x=a+o/2:"right"===e.attachment.horizontal?t.x=a+o:t.x=a,{x:t.x+e.offset.horizontal,y:t.y+e.offset.vertical,attachment:e.attachment,offset:e.offset,rect:e.rect}},d=function(e,t,n){var r={},a=e.rect.height,o=e.rect.width;return"middle"===e.attachment.vertical?("center"===e.attachment.horizontal?r.x=t.x-o/2:"right"===e.attachment.horizontal?r.x=t.x-o-n:r.x=t.x+n,r.y=t.y-a/2):("center"===e.attachment.horizontal?r.x=t.x-o/2:"right"===e.attachment.horizontal?r.x=t.x-o:r.x=t.x,"bottom"===e.attachment.vertical?r.y=t.y-a-n:r.y=t.y+n),{content:{x:r.x+e.offset.horizontal,y:r.y+e.offset.vertical,attachment:e.attachment,offset:e.offset,rect:e.rect},target:t}},f=function(e,t){var n,r,a,o={offset:u(e.content.offset,e.content.attachment),attachment:l(e.content.attachment),rect:e.content.rect};return d(o,(n=e.target,r=e.content.attachment,a={rect:n.rect,attachment:n.attachment,offset:u(n.offset,n.attachment)},(r.vertical===n.attachment.vertical||"middle"!==r.vertical&&"middle"!==n.attachment.vertical)&&(a.attachment=l(n.attachment)),c(a)),t)},p=function(e,t,n){var r,a,o,i={offset:{vertical:0,horizontal:0},attachment:(r=e.content.attachment,a=n,o={},"middle"===r.vertical?("90"===a?o.vertical="left"===r.horizontal?"bottom":"top":"-90"===a&&(o.vertical="left"===r.horizontal?"top":"bottom"),o.horizontal="center"):("90"===a?o.horizontal="top"===r.vertical?"left":"right":"-90"===a&&(o.horizontal="top"===r.vertical?"right":"left"),o.vertical="middle"),o),rect:e.content.rect},u={offset:{vertical:0,horizontal:0},attachment:l(i.attachment),rect:e.target.rect};return d(i,c(u),t)},m=t.getBoundedPositions=function(e,t){var n={},r=e.content.rect,a=e.content.x,o=e.content.y;return t.left>=a?n.x=t.left:t.right<=a+r.width?n.x=t.right-r.width:n.x=a,t.top>=o?n.y=t.top:t.bottom<=o+r.height?n.y=t.bottom-r.height:n.y=o,{content:{x:n.x,y:n.y,attachment:e.content.attachment,offset:e.content.offset,rect:r},target:e.target}};t.default={getScrollParents:function(e){var t=(getComputedStyle(e)||{}).position,n=[];if("fixed"===t)return[e];for(var r=e.parentNode;r&&1===r.nodeType;){var a=void 0;try{a=getComputedStyle(r)}catch(e){a=null}if("undefined"==typeof a||null===a)return n.push(r),n;var o=a,i=o.overflow,l=o.overflowX,u=o.overflowY;/(auto|scroll|overlay)/.test(i+u+l)&&("absolute"!==t||["relative","absolute","fixed","static"].indexOf(a.position)>=0)&&n.push(r),r=r.parentNode}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n},getRectFromCoords:function(e){return{top:e.y-1,right:e.x+1,bottom:e.y+1,left:e.x-1,width:2,height:2}},getBounds:i,getBoundingRect:function(e){if("window"===e)return{top:0,bottom:innerHeight,left:0,right:innerWidth};var t=i(e),r=getComputedStyle(e),a={top:t.top,bottom:t.top+t.height,left:t.left,right:t.left+t.width};if(e.ownerDocument!==document){var o=e.ownerDocument.defaultView;a.left+=o.pageXOffset,a.top+=o.pageYOffset,a.right+=o.pageXOffset,a.bottom+=o.pageYOffset}return n.forEach((function(e){var t=e[0].toUpperCase()+e.substr(1);"Top"===t||"Left"===t?a[e]+=parseFloat(r["border".concat(t,"Width")]):a[e]-=parseFloat(r["border".concat(t,"Width")])})),a.top=Math.round(a.top),a.right=Math.round(a.right),a.bottom=Math.round(a.bottom),a.left=Math.round(a.left),a},mirrorAttachment:l,coordinateAttachment:{vertical:"middle",horizontal:"center"},getDirectionalAttachment:function(e,t){return"start"===e.horizontal?{vertical:e.vertical,horizontal:t?"right":"left"}:"end"===e.horizontal?{vertical:e.vertical,horizontal:t?"left":"right"}:e},getDirectionalOffset:function(e,t){return t?{vertical:e.vertical,horizontal:-e.horizontal}:e},positionStyleFromBounds:function(e,t,n,r,a){var o=c(n),i=d(t,o,r);return e&&(s(i,e)||(i=function(e,t,n,r){if("auto"===r||"flip"===r){var a=f(e,n);if(s(a,t))return a;if("auto"===r){if(a=p(e,n,"90"),s(a,t))return a;if(a=p(e,n,"-90"),s(a,t))return a}}return e}(i,e,r,a)),i=m(i,e)),{style:{left:"".concat(Math.round(i.content.x+pageXOffset),"px"),top:"".concat(Math.round(i.content.y+pageYOffset),"px")},positions:i}}}},42723:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.disclosureType=t.default=void 0;var o=r(n(94634)),i=r(n(91847)),l=r(n(17383)),u=r(n(34579)),s=r(n(28452)),c=r(n(63072)),d=r(n(29511)),f=r(n(96540)),p=r(n(5556)),m=r(n(46942)),h=r(n(67967)),b=r(n(23695)),v=r(n(20605)),g=r(n(82941)),y=r(n(11191)),_=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=E(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(12643)),w=r(n(54495)),k=r(n(8544)),O=["children","disclosureAccessory","withDisclosureContainer","shouldTrapFocus","closeOnOutsideClick","zIndex"];function E(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(E=function(e){return e?n:t})(e)}function x(e,t,n){return t=(0,c.default)(t),(0,s.default)(e,P()?Reflect.construct(t,n||[],(0,c.default)(e).constructor):t.apply(e,n))}function P(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(P=function(){return!!e})()}var S=t.disclosureType="modal",C=h.default.bind(k.default),j={children:p.default.node,disclosureAccessory:p.default.element,withDisclosureContainer:p.default.func,shouldTrapFocus:p.default.bool,closeOnOutsideClick:p.default.bool,zIndex:p.default.oneOf(["6000","7000","8000","9000"])},D={tiny:240,small:420,medium:600,large:870,huge:960,"fusion-small":280,"fusion-medium":380,"fusion-large":460},M={tiny:320,small:640,medium:960,large:1280,huge:1600,"fusion-small":400,"fusion-medium":600,"fusion-large":700},T=function(e){function t(e){var n;return(0,l.default)(this,t),(n=x(this,t,[e])).renderModal=n.renderModal.bind(n),n.setModalFocusElementRef=n.setModalFocusElementRef.bind(n),n}return(0,d.default)(t,e),(0,u.default)(t,[{key:"setModalFocusElementRef",value:function(e){this.modalElementRef=e}},{key:"renderModal",value:function(e){var t=this.props,n=(t.children,t.disclosureAccessory),r=(t.withDisclosureContainer,t.shouldTrapFocus),a=t.closeOnOutsideClick,l=t.zIndex,u=(0,i.default)(t,O),s=this.context,c=(0,m.default)(C("container",s.className),u.className),d=["modal-manager",s.className],p=e.disclosure.isMaximized||e.disclosure.size===_.availableDisclosureSizes.FULLSCREEN;p||(e.disclosure.dimensions?d.push("height-".concat(e.disclosure.dimensions.height),"width-".concat(e.disclosure.dimensions.width)):e.disclosure.size&&d.push("height-".concat(D[e.disclosure.size]),"width-".concat(M[e.disclosure.size])));var h=e.disclosureComponentKeys[e.disclosureComponentKeys.length-1],b=(e.disclosureComponentData[h]||{}).headerAdapterData;return f.default.createElement("div",(0,o.default)({},u,{className:c}),e.children.components,f.default.createElement(v.default,{isOpen:e.disclosure.isOpen,isFullscreen:p,classNameModal:C(d),onRequestClose:function(){e.closeDisclosure()},closeOnEsc:!0,closeOnOutsideClick:a,ariaLabel:b?b.title:u["aria-label"]||"Modal",setModalFocusElementRef:this.setModalFocusElementRef,shouldTrapFocus:r,zIndex:l},f.default.createElement(w.default,{fill:!0,header:f.default.createElement(f.default.Fragment,null,b?f.default.createElement(g.default,{title:b.title,onClose:e.closeDisclosure,onBack:e.disclosureComponentKeys.length>1?e.dismissPresentedComponent:void 0},b.collapsibleMenuView):void 0,n)},f.default.createElement(y.default,{items:e.disclosure.components,isAnimated:!p,focusRef:this.modalElementRef}))))}},{key:"render",value:function(){var e=this.props,t=e.withDisclosureContainer,n=e.children;return f.default.createElement(_.default,{withDisclosureContainer:t,supportedDisclosureTypes:[S],render:this.renderModal,trapNestedDisclosureRequests:!0},n)}}])}(f.default.Component);T.propTypes=j,T.defaultProps={shouldTrapFocus:!1,closeOnOutsideClick:!1,zIndex:"6000"},T.contextType=b.default;t.default=T},49219:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(17383)),o=r(n(34579)),i=r(n(28452)),l=r(n(63072)),u=r(n(29511)),s=r(n(96540)),c=r(n(5556)),d=n(68414),f=r(n(49073)),p=n(49509);function m(e,t,n){return t=(0,l.default)(t),(0,i.default)(e,h()?Reflect.construct(t,n||[],(0,l.default)(e).constructor):t.apply(e,n))}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}var b={description:c.default.string,metaData:c.default.object,promptRegistration:p.promptRegistrationContextValueShape.isRequired},v=function(e){function t(e){var n;return(0,a.default)(this,t),(n=m(this,t,[e])).uuid=(0,d.v4)(),n}return(0,u.default)(t,e),(0,o.default)(t,[{key:"componentDidMount",value:function(){var e=this.props,t=e.description,n=e.metaData,r=e.promptRegistration;r.isDefaultContextValue,r.registerPrompt(this.uuid,t,n)}},{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.description,r=t.metaData;return n!==e.description||r!==e.metaData}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.description,n=e.metaData;e.promptRegistration.registerPrompt(this.uuid,t,n)}},{key:"componentWillUnmount",value:function(){this.props.promptRegistration.unregisterPrompt(this.uuid)}},{key:"render",value:function(){return null}}])}(s.default.Component);v.propTypes=b;t.default=(0,f.default)(v)},19997:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(17383)),i=r(n(34579)),l=r(n(28452)),u=r(n(63072)),s=r(n(29511)),c=r(n(96540)),d=r(n(5556)),f=r(n(92471)),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=h(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(49509)),m=r(n(49073));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(h=function(e){return e?n:t})(e)}function b(e,t,n){return t=(0,u.default)(t),(0,l.default)(e,v()?Reflect.construct(t,n||[],(0,u.default)(e).constructor):t.apply(e,n))}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}var g={children:d.default.node,onPromptChange:d.default.func,promptRegistration:p.promptRegistrationContextValueShape.isRequired},y=function(e){function t(e){var n;return(0,o.default)(this,t),(n=b(this,t,[e])).registerPrompt=n.registerPrompt.bind(n),n.unregisterPrompt=n.unregisterPrompt.bind(n),n.resolvePrompts=n.resolvePrompts.bind(n),n.renderNotificationDialog=n.renderNotificationDialog.bind(n),n.registeredPrompts={},n.promptProviderValue={registerPrompt:n.registerPrompt,unregisterPrompt:n.unregisterPrompt},n.state={notificationDialogProps:void 0},n}return(0,s.default)(t,e),(0,i.default)(t,[{key:"componentWillUnmount",value:function(){var e=this.props.onPromptChange;e&&e([])}},{key:"registerPrompt",value:function(e,n,r){var a=this.props,o=a.onPromptChange,i=a.promptRegistration;this.registeredPrompts[e]={description:n,metaData:r},o&&o(t.getPromptArray(this.registeredPrompts)),i.registerPrompt(e,n,r)}},{key:"unregisterPrompt",value:function(e){var n=this.props,r=n.onPromptChange,a=n.promptRegistration;this.registeredPrompts[e]&&(delete this.registeredPrompts[e],r&&r(t.getPromptArray(this.registeredPrompts)),a.unregisterPrompt(e))}},{key:"resolvePrompts",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Object.keys(this.registeredPrompts).length)return Promise.resolve();var r=n;return"function"==typeof r&&(r=r(t.getPromptArray(this.registeredPrompts))),new Promise((function(t,n){e.setState({notificationDialogProps:{dialogTitle:r.dialogTitle,title:r.title,message:r.message,startMessage:r.startMessage,content:r.content,endMessage:r.endMessage,acceptButtonText:r.acceptButtonText,rejectButtonText:r.rejectButtonText,emphasizedAction:r.emphasizedAction,buttonOrder:r.buttonOrder,onAccept:t,onReject:n}})}))}},{key:"renderNotificationDialog",value:function(){var e=this,t=this.state.notificationDialogProps,n=t.dialogTitle,r=t.title,a=t.message,o=t.startMessage,i=t.endMessage,l=t.content,u=t.acceptButtonText,s=t.rejectButtonText,d=t.emphasizedAction,p=t.buttonOrder,m=t.onAccept,h=t.onReject,b={text:u,onClick:function(){e.setState({notificationDialogProps:void 0},m)}},v={text:s,onClick:function(){e.setState({notificationDialogProps:void 0},h)}};return c.default.createElement(f.default,{dialogTitle:n||r,startMessage:o||a,endMessage:i,content:l,acceptAction:b,rejectAction:v,buttonOrder:p,emphasizedAction:d,variant:"hazard-medium"})}},{key:"render",value:function(){var e=this.props.children,t=this.state.notificationDialogProps;return c.default.createElement(p.default.Provider,{value:this.promptProviderValue},e,t?this.renderNotificationDialog():void 0)}}],[{key:"getPromptArray",value:function(e){return Object.keys(e).map((function(t){return e[t]}))}}])}(c.default.Component);y.propTypes=g;t.default=(0,m.default)(y)},49509:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.promptRegistrationContextValueShape=t.default=void 0;var a=r(n(96540)),o=r(n(5556));t.default=a.default.createContext({isDefaultContextValue:!0,registerPrompt:function(){},unregisterPrompt:function(){}}),t.promptRegistrationContextValueShape=o.default.shape({isDefaultContextValue:o.default.bool,registerPrompt:o.default.func.isRequired,unregisterPrompt:o.default.func.isRequired})},49073:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(94634)),o=r(n(96540)),i=r(n(49509));t.default=function(e){var t,n=o.default.forwardRef((function(t,n){return o.default.createElement(i.default.Consumer,null,(function(r){return o.default.createElement(e,(0,a.default)({},t,{ref:n,promptRegistration:r}))}))}));return n.displayName="withPromptRegistration(".concat((t=e).displayName||t.name||"Component",")"),n.WrappedComponent=e,n}},95447:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NavigationPromptCheckpoint",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"PromptRegistrationContext",{enumerable:!0,get:function(){return i.default}}),t.default=void 0;var a=r(n(49219)),o=r(n(19997)),i=r(n(49509));t.default=a.default},92471:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ContentLayoutAsList",{enumerable:!0,get:function(){return v.default}}),t.default=void 0;var o=r(n(73738)),i=r(n(91847)),l=r(n(94634)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=_(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),s=r(n(5556)),c=r(n(20605)),d=r(n(23986)),f=r(n(46942)),p=r(n(67967)),m=n(8604),h=r(n(23695)),b=r(n(74129)),v=r(n(19600)),g=r(n(31572)),y=["dialogTitle","startMessage","endMessage","content","acceptAction","rejectAction","variant","buttonOrder","emphasizedAction","custom","intl"];function _(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(_=function(e){return e?n:t})(e)}var w=p.default.bind(g.default),k={variant:s.default.oneOf(["hazard-high","hazard-medium","hazard-low","error","custom"]).isRequired,dialogTitle:s.default.string,startMessage:s.default.string,endMessage:s.default.string,content:s.default.node,acceptAction:s.default.shape({text:s.default.string,onClick:s.default.func}),rejectAction:s.default.shape({text:s.default.string,onClick:s.default.func}),buttonOrder:s.default.oneOf(["acceptFirst","rejectFirst"]),emphasizedAction:s.default.oneOf(["none","accept","reject"]),custom:s.default.shape({signalWord:s.default.string,iconClassName:s.default.string}),intl:s.default.shape({formatMessage:s.default.func})},O=function(e){var t=u.default.useContext(h.default),n=(0,u.useRef)();(0,u.useEffect)((function(){n.current.focus()}),[]);var r=e.dialogTitle,a=e.startMessage,s=e.endMessage,p=e.content,m=e.acceptAction,v=e.rejectAction,g=e.variant,_=e.buttonOrder,k=e.emphasizedAction,O=e.custom,E=e.intl,x=(0,i.default)(e,y);if("object"!==(0,o.default)(m)&&"object"!==(0,o.default)(v)||void 0===m&&void 0===v)throw new Error("Either the `acceptAction` or `rejectAction` props must be provided for Notification dialog");if(void 0===g)throw new Error("The variant must be provided to the Notification dialog");var P="custom"===g?O.signalWord:E.formatMessage({id:"Terra.notification.dialog.".concat(g)});return u.default.createElement(c.default,{ariaLabelledBy:"header-container",ariaDescribedBy:"dialogBody",role:"custom"===g?"dialog":"alertdialog",classNameModal:(0,f.default)(w("notification-dialog",t.className),x.className),isOpen:!0,closeOnOutsideClick:!1,zIndex:"9000",isCalledFromNotificationDialog:!0},u.default.createElement("div",{className:w("notification-dialog-inner-wrapper")},u.default.createElement("div",{className:w("notification-dialog-container"),tabIndex:"-1","data-terra-notification-dialog":!0},u.default.createElement("div",{className:w(["floating-header-background",g])}),u.default.createElement("div",{className:w(["header"])},u.default.createElement("div",{className:w(["header-content"])},u.default.createElement(b.default,{variant:g,iconClassName:O.iconClassName}),u.default.createElement("div",{id:"header-container",className:w("header-container")},u.default.createElement("h2",{id:"notification-dialog-signal-word",className:w("signal-word")},P),u.default.createElement("div",{id:"notification-dialog-title",className:w("title")},r)))),u.default.createElement("div",{id:"dialogBody",className:w("body")},a&&u.default.createElement("div",{className:w("message")},a),p&&u.default.createElement("div",{className:w("message")},p),s&&u.default.createElement("div",{className:w("message")},s)),u.default.createElement("div",{className:w("footer")},function(e,t,n,r,a){if(!e&&!t)return null;var o=[];if(e){var i="accept"===r?{variant:"emphasis"}:{};"acceptFirst"!==n&&t?o.push(u.default.createElement(d.default,(0,l.default)({},i,{"data-terra-notification-dialog-button":"accept",key:"accept",text:e.text,onClick:e.onClick}))):o.push(u.default.createElement(d.default,(0,l.default)({},i,{refCallback:a,tabIndex:"0","data-terra-notification-dialog-button":"accept",key:"accept",text:e.text,onClick:e.onClick})))}if(t){var s="reject"===r?{variant:"emphasis"}:{};e&&"acceptFirst"===n?o.push(u.default.createElement(d.default,(0,l.default)({},s,{"data-terra-notification-dialog-button":"reject",key:"reject",text:t.text,onClick:t.onClick}))):o.push(u.default.createElement(d.default,(0,l.default)({refCallback:a,tabIndex:"0"},s,{"data-terra-notification-dialog-button":"reject",key:"reject",text:t.text,onClick:t.onClick})))}return u.default.createElement("div",{className:w("actions")},"acceptFirst"===n?o:o.reverse())}(m,v,_,k,(function(e){n.current=e}))))))};O.propTypes=k,O.defaultProps={buttonOrder:"acceptFirst",emphasizedAction:"none",custom:{}};t.default=(0,m.injectIntl)(O)},19600:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(96540)),o=r(n(5556)),i=r(n(67967)),l=r(n(23695)),u=r(n(85178)),s=i.default.bind(u.default),c={items:o.default.arrayOf(o.default.string).isRequired},d=function(e){var t=e.items,n=a.default.useContext(l.default);return a.default.createElement("ul",{className:s("list",n.className)},t.map((function(e,t){return a.default.createElement("li",{className:s("list-item"),key:"".concat(e,"-").concat(t)},e)})))};d.propTypes=c;t.default=d},74129:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(43693)),o=r(n(96540)),i=r(n(5556)),l=r(n(46942)),u=r(n(67967)),s=r(n(23695)),c=r(n(84055)),d=u.default.bind(c.default),f={variant:i.default.oneOf(["hazard-high","hazard-medium","hazard-low","error","custom"]).isRequired,iconClassName:i.default.string},p=function(e){var t=e.variant,n=e.iconClassName,r=o.default.useContext(s.default);return o.default.createElement("div",{className:d("icon-container",r.className)},o.default.createElement("span",{className:(0,l.default)(d(["icon","".concat(t,"-icon")],(0,a.default)({},"".concat(n),"custom"===t)))}))};p.propTypes=f;t.default=p},31056:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(91847)),i=r(n(94634)),l=r(n(17383)),u=r(n(34579)),s=r(n(28452)),c=r(n(63072)),d=r(n(29511)),f=r(n(96540)),p=r(n(5556)),m=r(n(70444)),h=n(569),b=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=O(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(41796)),v=r(n(36448)),g=r(n(86713)),y=r(n(38576)),_=r(n(1814)),w=r(n(10437)),k=["attachmentBehavior","boundingRef","children","classNameArrow","classNameContent","classNameOverlay","contentAttachment","contentHeight","contentWidth","isArrowDisplayed","isContentFocusDisabled","isHeaderDisabled","isOpen","onRequestClose","targetRef","targetAttachment"];function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(O=function(e){return e?n:t})(e)}function E(e,t,n){return t=(0,c.default)(t),(0,s.default)(e,x()?Reflect.construct(t,n||[],(0,c.default)(e).constructor):t.apply(e,n))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}var P=["top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],S={attachmentBehavior:p.default.oneOf(["auto","flip","push"]),children:p.default.node.isRequired,onRequestClose:p.default.func.isRequired,targetRef:p.default.func,boundingRef:p.default.func,classNameArrow:p.default.string,classNameContent:p.default.string,classNameOverlay:p.default.string,contentAttachment:p.default.oneOf(P),contentHeight:p.default.oneOf(["40","80","120","160","240","320","400","480","560","640","720","800","880","auto"]),contentWidth:p.default.oneOf(["160","240","320","400","640","960","1280","1760","auto"]),isArrowDisplayed:p.default.bool,isContentFocusDisabled:p.default.bool,isHeaderDisabled:p.default.bool,isOpen:p.default.bool,targetAttachment:p.default.oneOf(P),popupContentRole:p.default.string,ariaLabel:p.default.string,onClick:p.default.func},C=function(e){function t(e){var n;return(0,l.default)(this,t),(n=E(this,t,[e])).handleOnPosition=n.handleOnPosition.bind(n),n.setArrowNode=n.setArrowNode.bind(n),n.validateContentNode=n.validateContentNode.bind(n),n.handleOnResize=n.handleOnResize.bind(n),n.handleOnContentResize=n.handleOnContentResize.bind(n),n.isContentSized="auto"!==e.contentHeight&&"auto"!==e.contentWidth,n.contentHeight=_.default[e.contentHeight],n.contentWidth=w.default[e.contentWidth],n.handleRequestClose=n.handleRequestClose.bind(n),n}return(0,d.default)(t,e),(0,u.default)(t,[{key:"componentDidMount",value:function(){var e=this.props.targetRef;e()&&e().setAttribute("aria-haspopup","true")}},{key:"shouldComponentUpdate",value:function(e){return this.isContentSized="auto"!==e.contentHeight&&"auto"!==e.contentWidth,this.contentHeight=_.default[e.contentHeight],this.contentWidth=w.default[e.contentWidth],!0}},{key:"handleRequestClose",value:function(){(0,this.props.targetRef)().focus(),this.props.onRequestClose()}},{key:"handleOnPosition",value:function(e,t){this.arrowNode&&this.setArrowPosition(t.content,t.target)}},{key:"handleOnContentResize",value:function(){this.isContentSized="auto"!==this.props.contentHeight&&"auto"!==this.props.contentWidth,this.contentHeight=_.default[this.props.contentHeight],this.contentWidth=w.default[this.props.contentWidth],this.forceUpdate()}},{key:"handleOnResize",value:function(e,t){window.innerWidth!==t?(this.windowWidth=window.innerWidth,this.props.onRequestClose()):(this.isContentSized="auto"!==this.props.contentHeight&&"auto"!==this.props.contentWidth,this.contentHeight=_.default[this.props.contentHeight],this.contentWidth=w.default[this.props.contentWidth],this.forceUpdate())}},{key:"setArrowPosition",value:function(e,t){var n=y.default.getArrowPosition(e,t,v.default.Opts.arrowSize,b.cornerSize);n?(this.arrowNode.setAttribute(v.default.Opts.positionAttr,n),"top"===n||"bottom"===n?(this.arrowNode.style.left=y.default.leftOffset(e,t,v.default.Opts.arrowSize,b.cornerSize),this.arrowNode.style.top=""):(this.arrowNode.style.left="",this.arrowNode.style.top=y.default.topOffset(e,t,v.default.Opts.arrowSize,b.cornerSize))):this.arrowNode.removeAttribute(v.default.Opts.positionAttr)}},{key:"setArrowNode",value:function(e){this.arrowNode=e}},{key:"validateContentNode",value:function(e){if(e){var t=m.default.Utils.getBounds(e);this.contentHeight===t.height&&this.contentWidth===t.width||(this.contentHeight=t.height,this.contentWidth=t.width,this.forceUpdate()),this.isContentSized=!0}}},{key:"createPopupContent",value:function(e,t,n){var r,a={contentHeight:_.default[this.props.contentHeight]||_.default[80],contentWidth:w.default[this.props.contentWidth]||w.default[240]};return a.contentHeight<=0&&this.contentHeight&&(a.contentHeight=this.contentHeight),a.contentWidth<=0&&this.contentWidth&&(a.contentWidth=this.contentWidth),e?(a.contentHeightMax=e.clientHeight,a.contentWidthMax=e.clientWidth):(a.contentHeightMax=window.innerHeight,a.contentWidthMax=window.innerWidth),t&&(r=f.default.createElement(v.default,{className:this.props.classNameArrow,refCallback:this.setArrowNode})),f.default.createElement(b.default,(0,i.default)({},a,{arrow:r,"aria-label":this.props.ariaLabel,classNameInner:this.props.classNameContent,isHeaderDisabled:this.props.isHeaderDisabled,onRequestClose:this.handleRequestClose,onContentResize:this.handleOnContentResize,onResize:this.handleOnResize,popupContentRole:this.props.popupContentRole,refCallback:this.validateContentNode,isHeightAutomatic:"auto"===this.props.contentHeight,isWidthAutomatic:"auto"===this.props.contentWidth,isFocusedDisabled:this.props.isContentFocusDisabled,onClick:this.props.onClick,hookshotPostionFixed:n}),this.props.children)}},{key:"render",value:function(){var e,t=this.props,n=t.attachmentBehavior,r=t.boundingRef,a=(t.children,t.classNameArrow,t.classNameContent,t.classNameOverlay,t.contentAttachment),i=(t.contentHeight,t.contentWidth,t.isArrowDisplayed),l=(t.isContentFocusDisabled,t.isHeaderDisabled,t.isOpen),u=(t.onRequestClose,t.targetRef),s=t.targetAttachment,c=(0,o.default)(t,k);if(!l)return null;var d,p=y.default.parseAttachment(a);e=s?y.default.parseAttachment(s):y.default.mirrorAttachment(p);var _=i&&"middle center"!==a;_&&(d=y.default.getContentOffset(p,e,this.props.targetRef(),v.default.Opts.arrowSize,b.cornerSize));var w=this.createPopupContent(r?r():void 0,_,c.hookshotPostionFixed);return f.default.createElement(f.default.Fragment,null,f.default.createElement(h.Portal,{isOpened:l},f.default.createElement(g.default,{className:this.props.classNameOverlay,onRequestClose:this.props.onRequestClose})),f.default.createElement(m.default,{attachmentBehavior:n,attachmentMargin:_?v.default.Opts.arrowSize:0,boundingRef:r,contentAttachment:p,contentOffset:d,isEnabled:this.isContentSized,isOpen:l,onPosition:this.handleOnPosition,targetRef:u,targetAttachment:e},w))}}])}(f.default.Component);C.propTypes=S,C.defaultProps={attachmentBehavior:"auto",boundingRef:null,classNameArrow:null,classNameContent:null,classNameOverlay:null,contentAttachment:"top center",contentHeight:"80",contentWidth:"240",isArrowDisplayed:!1,isContentFocusDisabled:!1,isHeaderDisabled:!0,isOpen:!1,popupContentRole:"dialog"},C.Opts={attachmentPositions:P,heights:_.default,widths:w.default};t.default=C},1814:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auto:-1,40:40,80:80,120:120,160:160,240:240,320:320,400:400,480:480,560:560,640:640,720:720,800:800,880:880}},10437:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={auto:-1,160:160,240:240,320:320,400:400,640:640,960:960,1280:1280,1760:1760}},36448:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(94634)),o=r(n(91847)),i=r(n(96540)),l=r(n(5556)),u=r(n(46942)),s=r(n(67967)),c=r(n(23695)),d=r(n(89500)),f=["refCallback"],p=s.default.bind(d.default),m={refCallback:l.default.func},h=function(e){var t=e.refCallback,n=(0,o.default)(e,f),r=i.default.useContext(c.default),l=(0,u.default)(p("popup-arrow",r.className),n.className);return i.default.createElement("div",(0,a.default)({},n,{className:l,ref:t}))};h.propTypes=m,h.Opts={arrowSize:11,positionAttr:"data-align-arrow"};t.default=h},41796:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.cornerSize=void 0;var a=r(n(94634)),o=r(n(91847)),i=r(n(17383)),l=r(n(34579)),u=r(n(28452)),s=r(n(63072)),c=r(n(29511)),d=r(n(43693)),f=r(n(96540)),p=n(8604),m=r(n(5556)),h=r(n(46942)),b=r(n(67967)),v=r(n(23695)),g=r(n(23986)),y=r(n(54495)),_=r(n(94708)),w=r(n(70444)),k=r(n(81312)),O=["arrow","children","classNameInner","contentHeight","contentHeightMax","contentWidth","contentWidthMax","isFocusedDisabled","isHeaderDisabled","isHeightAutomatic","isWidthAutomatic","onRequestClose","onResize","onContentResize","popupContentRole","refCallback"];function E(e,t,n){return t=(0,s.default)(t),(0,u.default)(e,x()?Reflect.construct(t,n||[],(0,s.default)(e).constructor):t.apply(e,n))}function x(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(x=function(){return!!e})()}var P=b.default.bind(k.default),S=(t.cornerSize=3,{children:m.default.node.isRequired,contentHeight:m.default.number.isRequired,contentWidth:m.default.number.isRequired,onRequestClose:m.default.func.isRequired,onResize:m.default.func.isRequired,arrow:m.default.element,classNameInner:m.default.string,contentHeightMax:m.default.number,contentWidthMax:m.default.number,isFocusedDisabled:m.default.bool,isHeaderDisabled:m.default.bool,isHeightAutomatic:m.default.bool,isWidthAutomatic:m.default.bool,onContentResize:m.default.func,popupContentRole:m.default.string,refCallback:m.default.func}),C=function(e){function t(e){var n;return(0,i.default)(this,t),n=E(this,t,[e]),(0,d.default)(n,"handlePropagation",(function(e){e.stopPropagation()})),n.handleOnResize=n.handleOnResize.bind(n),n.handlePropagation=n.handlePropagation.bind(n),n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.windowWidth=window.innerWidth}},{key:"handleOnResize",value:function(e){this.props.onResize&&this.props.onResize(e,this.windowWidth)}},{key:"render",value:function(){var e=this.props,n=e.arrow,r=e.children,i=e.classNameInner,l=e.contentHeight,u=e.contentHeightMax,s=e.contentWidth,c=e.contentWidthMax,d=(e.isFocusedDisabled,e.isHeaderDisabled),p=e.isHeightAutomatic,m=e.isWidthAutomatic,b=e.onRequestClose,v=(e.onResize,e.onContentResize),g=e.popupContentRole,y=e.refCallback,k=(0,o.default)(e,O),E=t.getContentStyle(l,u,s,c,p,m),x=t.isBounded(l,u),S=t.isBounded(s,c),C=x&&S,j=t.cloneChildren(r,p,m,x,S,d);!C&&d||(j=t.addPopupHeader(j,b));var D=this.context,M=(0,h.default)(P("content",D.className),k.className),T=n&&!C,A=T?n:void 0,N=P(["inner",{"is-full-screen":C},{"rounded-corners":T},i]),I=p?{"data-terra-popup-automatic-height":!0}:{},R=m?{"data-terra-popup-automatic-width":!0}:{};return f.default.createElement(_.default,{focusTrapOptions:{returnFocusOnDeactivate:!0,clickOutsideDeactivates:!0}},f.default.createElement("div",null,f.default.createElement(w.default.Content,(0,a.default)({},k,{className:M,"data-terra-popup-content":!0,onContentResize:p||m?v:void 0,onEsc:b,onResize:this.handleOnResize,refCallback:y,role:g||null,onKeyDown:this.handlePropagation,onFocus:this.handlePropagation}),A,f.default.createElement("div",(0,a.default)({},I,R,{className:N,style:E}),j))))}}],[{key:"addPopupHeader",value:function(e,t){var n=f.default.createElement("span",{className:P("close-icon")}),r=f.default.createElement("div",{className:P("header")},f.default.createElement(p.FormattedMessage,{id:"Terra.popup.header.close"},(function(e){var r=e;return Array.isArray(e)&&(r=e.join("")),f.default.createElement(g.default,{variant:"utility",isIconOnly:!0,icon:n,onClick:t,text:r})})));return f.default.createElement(y.default,{header:r,fill:!0},e)}},{key:"isBounded",value:function(e,t){return e>0&&t>0&&e>=t}},{key:"cloneChildren",value:function(e,t,n,r,a,o){var i={};return t&&(i.isHeightBounded=r),n&&(i.isWidthBounded=a),r&&a&&o&&(i.closeButtonRequired="true"),f.default.Children.map(e,(function(e){return f.default.cloneElement(e,i)}))}},{key:"getContentStyle",value:function(e,n,r,a,o,i){var l=t.getDimensionStyle(e,n,o),u=t.getDimensionStyle(r,a,i),s={};return l&&(s.height=l),u&&(s.width=u),s}},{key:"getDimensionStyle",value:function(e,t,n){if(e>0){if(t>0&&e>=t)return"".concat(t.toString(),"px");if(!n)return"".concat(e.toString(),"px")}return null}}])}(f.default.Component);C.propTypes=S,C.defaultProps={classNameInner:null,contentHeightMax:-1,contentWidthMax:-1,isFocusedDisabled:!1,isHeaderDisabled:!0,isHeightAutomatic:!1,isWidthAutomatic:!1,popupContentRole:"dialog"},C.contextType=v.default;t.default=C},86713:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(94634)),o=r(n(91847)),i=r(n(17383)),l=r(n(34579)),u=r(n(28452)),s=r(n(63072)),c=r(n(29511)),d=r(n(96540)),f=r(n(5556)),p=r(n(46942)),m=r(n(67967)),h=r(n(23695)),b=r(n(41527)),v=["children"];function g(e,t,n){return t=(0,s.default)(t),(0,u.default)(e,y()?Reflect.construct(t,n||[],(0,s.default)(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}var _=m.default.bind(b.default),w={onRequestClose:f.default.func,children:f.default.node},k=function(e){function t(){var e;return(0,i.default)(this,t),(e=g(this,t)).handleOnClick=e.handleOnClick.bind(e),e}return(0,c.default)(t,e),(0,l.default)(t,[{key:"componentDidMount",value:function(){this.overlayStyle=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden"}},{key:"componentWillUnmount",value:function(){document.documentElement.style.overflow=this.overlayStyle}},{key:"handleOnClick",value:function(e){e.stopPropagation(),this.props.onRequestClose&&this.props.onRequestClose(e)}},{key:"render",value:function(){var e=this.props,t=e.children,n=(0,o.default)(e,v);delete n.closePortal,delete n.onRequestClose;var r=this.context;return d.default.createElement(d.default.Fragment,null,d.default.createElement("div",(0,a.default)({onClick:this.handleOnClick},n,{className:(0,p.default)(_("popup-overlay",r.className),n.className)}),d.default.createElement("div",{className:_("inner")}),t))}}])}(d.default.Component);k.propTypes=w,k.defaultProps={children:[]},k.contextType=h.default;t.default=k},38576:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(85715)),o={center:"center",left:"start",right:"end"},i={center:"center",start:"end",end:"start"},l={middle:"middle",top:"bottom",bottom:"top"},u=function(e){return"middle"!==e.vertical},s=function(e){return e.top+e.height},c=function(e){return e.left+e.width},d=function(e,t,n,r){var a=c(e)-n-r>=t.left,o=e.left+n+r<=c(t);return a&&o},f=function(e,t,n,r){var a=s(e)-n-r>=t.top,o=e.top+n+r<=s(t);return a&&o},p={isVerticalAttachment:u,getContentOffset:function(e,t,n,r,a){var o={vertical:0,horizontal:0};if(n){var i=r+a;u(e)&&(e.horizontal!==t.horizontal||n.clientWidth=s(o)){if(d(a,o,n,r))return"top"}else if(a.left>=c(o)&&f(a,o,n,r))return"left";return function(e,t,n,r){var a=e.rect,o=t.rect,i=e.attachment,l={};l.right=c(a)>=o.left&&c(a)<=c(o)-n,l.bottom=s(a)>=o.top&&s(a)<=s(o)-n,l.left=a.left>=o.left+n&&a.left<=c(o),l.top=a.top>=o.top+n&&a.top<=s(o);var u=[];if((l.right||l.left)&&f(a,o,n,r)&&(l.left&&u.push("left"),l.right&&u.push("right")),(l.bottom||l.top)&&d(a,o,n,r)&&(l.top&&u.push("top"),l.bottom&&u.push("bottom")),u.length>1){if("middle"===i.vertical&&u.indexOf(i.horizontal)>=0)return i.horizontal;if(u.indexOf(i.vertical)>=0)return i.vertical}return u[0]}(e,t,n,r)},leftOffset:function(e,t,n,r){var a=e.rect,o=t.rect,i=t.attachment,l=o.left-a.left+n+t.offset.horizontal;return"center"===i.horizontal?l+=o.width/2:"right"===i.horizontal&&(l+=o.width),l<2*n+r?l=2*n+r:l>a.width-r&&(l=a.width-r),"".concat(l,"px")},mirrorAttachment:function(e){return"middle"!==e.vertical?{vertical:l[e.vertical],horizontal:e.horizontal}:{vertical:e.vertical,horizontal:i[e.horizontal]}},parseAttachment:function(e){if(!e)return{vertical:"",horizontal:""};var t=e.split(" "),n=(0,a.default)(t,2),r=n[0],i=n[1];return{vertical:r,horizontal:o[i]}},topOffset:function(e,t,n,r){var a=e.rect,o=t.rect,i=t.attachment,l=o.top-a.top+n+t.offset.vertical;return"middle"===i.vertical?l+=o.height/2:"bottom"===i.vertical&&(l+=o.height),l<2*n+r?l=2*n+r:l>a.height-r&&(l=a.height-r),"".concat(l,"px")}};t.default=p},45610:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(85715)),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),l=r(n(5556)),u=r(n(67967)),s=r(n(23695)),c=r(n(16524)),d=r(n(50271));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}var p=u.default.bind(d.default),m={isHidden:l.default.bool,children:l.default.node,focusRef:l.default.instanceOf(Element),slideAriaLabel:l.default.string,isNested:l.default.bool},h=function(e){var t=e.children,n=e.focusRef,r=e.isHidden,a=e.slideAriaLabel,l=e.isNested,u=(0,i.useState)(null),d=(0,o.default)(u,2),f=d[0],m=d[1],h=(0,i.useState)(!1),b=(0,o.default)(h,2),v=b[0],g=b[1];(0,i.useEffect)((function(){!r&&f?(g(!0),f.focus()):!r&&n&&n.focus&&n.focus()}),[r]);var y=function(e){g(!1),m(e.target)},_=i.default.useContext(s.default);return i.default.createElement("div",{className:p("slide",_.className),"aria-hidden":r||null,"aria-label":v?a:void 0,onClick:y,onKeyUp:y,role:v?"region":void 0},i.default.createElement(c.default,{"aria-hidden":!l,"aria-live":"polite",text:a}),i.default.createElement("div",{className:p("slide-shadow")}),t)};h.propTypes=m,h.defaultProps={isHidden:!1};t.default=h},11191:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=r(n(94634)),o=r(n(91847)),i=r(n(17383)),l=r(n(34579)),u=r(n(28452)),s=r(n(63072)),c=r(n(29511)),d=r(n(96540)),f=r(n(5556)),p=r(n(46942)),m=r(n(67967)),h=r(n(23695)),b=r(n(78913)),v=r(n(70011)),g=r(n(45610)),y=r(n(50271)),_=["items","isAnimated","focusRef","slideAriaLabel"];function w(e,t,n){return t=(0,s.default)(t),(0,u.default)(e,k()?Reflect.construct(t,n||[],(0,s.default)(e).constructor):t.apply(e,n))}function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(k=function(){return!!e})()}var O=m.default.bind(y.default),E={items:f.default.array,isAnimated:f.default.bool,focusRef:f.default.instanceOf(Element),slideAriaLabel:f.default.string},x=function(e){function t(e){var n;return(0,i.default)(this,t),(n=w(this,t,[e])).setContainer=n.setContainer.bind(n),n}return(0,c.default)(t,e),(0,l.default)(t,[{key:"setContainer",value:function(e){e&&(this.slideGroup=e)}},{key:"render",value:function(){var e=this.props,n=e.items,r=e.isAnimated,i=e.focusRef,l=e.slideAriaLabel,u=(0,o.default)(e,_);if(!n||!n.length)return null;var s=n[0].key,c=n.length-1,f={enter:y.default.enter,enterActive:y.default["enter-active"],exit:y.default.exit,exitActive:y.default["exit-active"]},m=this.context,h=(0,p.default)(O("slide-group",m.className),u.className);return d.default.createElement(b.default,(0,a.default)({},u,{ref:this.setContainer,className:h,key:s}),n.map((function(e,n){return d.default.createElement(v.default,{classNames:f,enter:r,onEntered:t.hidePreviousSlide,exit:r,onExit:t.showPreviousSlide,timeout:300,key:e.key,id:"shmmoop"},d.default.createElement(g.default,{isHidden:n!==c,focusRef:i,slideAriaLabel:l,isNested:n>0},e))})))}}],[{key:"hidePreviousSlide",value:function(e){e.previousSibling&&e.previousSibling.setAttribute("aria-hidden",!0)}},{key:"showPreviousSlide",value:function(e){e.previousSibling&&e.previousSibling.removeAttribute("aria-hidden")}}])}(d.default.Component);x.propTypes=E,x.defaultProps={isAnimated:!1},x.contextType=h.default;t.default=x},23695:function(e,t,n){"use strict";var r=n(24994);Object.defineProperty(t,"__esModule",{value:!0}),t.themeContextShape=t.default=void 0;var a=r(n(96540)),o=r(n(5556)),i=a.default.createContext({});t.themeContextShape=o.default.shape({className:o.default.string,density:o.default.string}),t.default=i},50126:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var l=o?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(r,i,l):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),i=r(n(5556)),l=r(n(23695));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var s={children:i.default.element.isRequired,theme:i.default.shape({name:i.default.string,className:i.default.string,density:i.default.string})},c=function(e){var t=e.theme,n=e.children,r=(0,o.useMemo)((function(){return{name:t.name,className:t.className,density:t.density}}),[t.name,t.className,t.density]);return o.default.createElement(l.default.Provider,{value:r},n)};c.propTypes=s,c.defaultProps={theme:{}};t.default=c},95069:function(e,t,n){"use strict";n(34462)},61641:function(e,t,n){"use strict";var r=n(24994),a=n(73738);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=a(e)&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&{}.hasOwnProperty.call(e,i)){var u=o?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(r,i,u):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(n(96540)),i=r(n(5556));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}n(95069);var u={children:i.default.node,themeName:i.default.string,density:i.default.string},s=function(e){var t=e.children,n=e.themeName,r=e.density;return(0,o.useEffect)((function(){var e,t=[];(n&&t.push(n),r&&t.push(r),t.length>0)&&(e=document.documentElement.classList).add.apply(e,t);return function(){var e;t.length>0&&(e=document.documentElement.classList).remove.apply(e,t)}}),[r,n]),o.default.createElement(o.default.Fragment,null,t)};s.propTypes=u;t.default=s},63193:function(e,t,n){e.exports={default:n(58489),__esModule:!0}},89829:function(e,t,n){e.exports={default:n(2981),__esModule:!0}},10679:function(e,t,n){e.exports={default:n(88983),__esModule:!0}},5045:function(e,t,n){e.exports={default:n(52117),__esModule:!0}},9506:function(e,t){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},97588:function(e,t,n){"use strict";t.__esModule=!0;var r,a=n(89829),o=(r=a)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;nc;)if((l=u[c++])!=l)return!0}else for(;s>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}}},13383:function(e,t,n){var r=n(64194),a=n(15413)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),a))?n:o?r(t):"Object"==(i=r(t))&&"function"==typeof t.callee?"Arguments":i}},64194:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},6791:function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)},33971:function(e,t,n){var r=n(73934);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},54947:function(e){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},75872:function(e,t,n){e.exports=!n(82451)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},50559:function(e,t,n){var r=n(90326),a=n(56903).document,o=r(a)&&r(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},22499:function(e){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},19786:function(e,t,n){var r=n(56903),a=n(6791),o=n(33971),i=n(14632),l=n(43066),u="prototype",s=function(e,t,n){var c,d,f,p=e&s.F,m=e&s.G,h=e&s.S,b=e&s.P,v=e&s.B,g=e&s.W,y=m?a:a[t]||(a[t]={}),_=y[u],w=m?r:h?r[t]:(r[t]||{})[u];for(c in m&&(n=t),n)(d=!p&&w&&void 0!==w[c])&&l(y,c)||(f=d?w[c]:n[c],y[c]=m&&"function"!=typeof w[c]?n[c]:v&&d?o(f,r):g&&w[c]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[u]=e[u],t}(f):b&&"function"==typeof f?o(Function.call,f):f,b&&((y.virtual||(y.virtual={}))[c]=f,e&s.R&&_&&!_[c]&&i(_,c,f)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},82451:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},659:function(e,t,n){var r=n(33971),a=n(275),o=n(6471),i=n(90531),l=n(9250),u=n(18573),s={},c={},d=e.exports=function(e,t,n,d,f){var p,m,h,b,v=f?function(){return e}:u(e),g=r(n,d,t?2:1),y=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(p=l(e.length);p>y;y++)if((b=t?g(i(m=e[y])[0],m[1]):g(e[y]))===s||b===c)return b}else for(h=v.call(e);!(m=h.next()).done;)if((b=a(h,g,m.value,t))===s||b===c)return b};d.BREAK=s,d.RETURN=c},56903:function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},43066:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},14632:function(e,t,n){var r=n(21672),a=n(15495);e.exports=n(75872)?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},7745:function(e,t,n){var r=n(56903).document;e.exports=r&&r.documentElement},14913:function(e,t,n){e.exports=!n(75872)&&!n(82451)((function(){return 7!=Object.defineProperty(n(50559)("div"),"a",{get:function(){return 7}}).a}))},94728:function(e){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},63278:function(e,t,n){var r=n(64194);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6471:function(e,t,n){var r=n(52833),a=n(15413)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[a]===e)}},90326:function(e){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},275:function(e,t,n){var r=n(90531);e.exports=function(e,t,n,a){try{return a?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},81199:function(e,t,n){"use strict";var r=n(67780),a=n(15495),o=n(1123),i={};n(14632)(i,n(15413)("iterator"),(function(){return this})),e.exports=function(e,t,n){e.prototype=r(i,{next:a(1,n)}),o(e,t+" Iterator")}},52500:function(e,t,n){"use strict";var r=n(98849),a=n(19786),o=n(83070),i=n(14632),l=n(52833),u=n(81199),s=n(1123),c=n(66870),d=n(15413)("iterator"),f=!([].keys&&"next"in[].keys()),p="keys",m="values",h=function(){return this};e.exports=function(e,t,n,b,v,g,y){u(n,t,b);var _,w,k,O=function(e){if(!f&&e in S)return S[e];switch(e){case p:case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",x=v==m,P=!1,S=e.prototype,C=S[d]||S["@@iterator"]||v&&S[v],j=C||O(v),D=v?x?O("entries"):j:void 0,M="Array"==t&&S.entries||C;if(M&&(k=c(M.call(new e)))!==Object.prototype&&k.next&&(s(k,E,!0),r||"function"==typeof k[d]||i(k,d,h)),x&&C&&C.name!==m&&(P=!0,j=function(){return C.call(this)}),r&&!y||!f&&!P&&S[d]||i(S,d,j),l[t]=j,l[E]=h,v)if(_={values:x?j:O(m),keys:g?j:O(p),entries:D},y)for(w in _)w in S||o(S,w,_[w]);else a(a.P+a.F*(f||P),t,_);return _}},26928:function(e,t,n){var r=n(15413)("iterator"),a=!1;try{var o=[7][r]();o.return=function(){a=!0},Array.from(o,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!a)return!1;var n=!1;try{var o=[7],i=o[r]();i.next=function(){return{done:n=!0}},o[r]=function(){return i},e(o)}catch(e){}return n}},35945:function(e){e.exports=function(e,t){return{value:t,done:!!e}}},52833:function(e){e.exports={}},98849:function(e){e.exports=!0},83281:function(e,t,n){var r=n(93108)("meta"),a=n(90326),o=n(43066),i=n(21672).f,l=0,u=Object.isExtensible||function(){return!0},s=!n(82451)((function(){return u(Object.preventExtensions({}))})),c=function(e){i(e,r,{value:{i:"O"+ ++l,w:{}}})},d=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!a(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";c(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;c(e)}return e[r].w},onFreeze:function(e){return s&&d.NEED&&u(e)&&!o(e,r)&&c(e),e}}},72783:function(e,t,n){var r=n(56903),a=n(87453).set,o=r.MutationObserver||r.WebKitMutationObserver,i=r.process,l=r.Promise,u="process"==n(64194)(i);e.exports=function(){var e,t,n,s=function(){var r,a;for(u&&(r=i.domain)&&r.exit();e;){a=e.fn,e=e.next;try{a()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(u)n=function(){i.nextTick(s)};else if(!o||r.navigator&&r.navigator.standalone)if(l&&l.resolve){var c=l.resolve(void 0);n=function(){c.then(s)}}else n=function(){a.call(r,s)};else{var d=!0,f=document.createTextNode("");new o(s).observe(f,{characterData:!0}),n=function(){f.data=d=!d}}return function(r){var a={fn:r,next:void 0};t&&(t.next=a),e||(e=a,n()),t=a}}},91495:function(e,t,n){"use strict";var r=n(73934);function a(e){var t,n;this.promise=new e((function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r})),this.resolve=r(t),this.reject=r(n)}e.exports.f=function(e){return new a(e)}},99369:function(e,t,n){"use strict";var r=n(75872),a=n(64796),o=n(14259),i=n(98936),l=n(64873),u=n(63278),s=Object.assign;e.exports=!s||n(82451)((function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach((function(e){t[e]=e})),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=r}))?function(e,t){for(var n=l(e),s=arguments.length,c=1,d=o.f,f=i.f;s>c;)for(var p,m=u(arguments[c++]),h=d?a(m).concat(d(m)):a(m),b=h.length,v=0;b>v;)p=h[v++],r&&!f.call(m,p)||(n[p]=m[p]);return n}:s},67780:function(e,t,n){var r=n(90531),a=n(6935),o=n(22499),i=n(36211)("IE_PROTO"),l=function(){},u="prototype",s=function(){var e,t=n(50559)("iframe"),r=o.length;for(t.style.display="none",n(7745).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("Terra Framework
\ No newline at end of file + ;NREUM.info={beacon:"bam.nr-data.net",errorBeacon:"bam.nr-data.net",licenseKey:"c494ac44c8",applicationID:"144458769",sa:1}Terra Framework
\ No newline at end of file