@brightspot/ui 6.0.1 → 6.0.2-pr.212

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/storybook/assets/{ActionBar.stories-CtNg8OWD.js → ActionBar.stories-CPLbAlED.js} +1 -1
  2. package/dist/storybook/assets/{ActionItem.stories-DHxjFRqy.js → ActionItem.stories-D46WoF0T.js} +1 -1
  3. package/dist/storybook/assets/{AiSparkle.stories-CMe_3Y0A.js → AiSparkle.stories-DMle-wrI.js} +1 -1
  4. package/dist/storybook/assets/{Avatar.stories-BTYF9Udo.js → Avatar.stories-Bc3YgFfF.js} +1 -1
  5. package/dist/storybook/assets/{AvatarGroup.stories-CxD-EgtC.js → AvatarGroup.stories-DNBcrBVe.js} +1 -1
  6. package/dist/storybook/assets/{Badge.stories-xU-A2gIi.js → Badge.stories-DxlNMQIa.js} +1 -1
  7. package/dist/storybook/assets/{Banner.stories-Bc81CKsh.js → Banner.stories-C0Zzy1qh.js} +1 -1
  8. package/dist/storybook/assets/{Button-DbgKu4cc.js → Button-ac15Vc7M.js} +1 -1
  9. package/dist/storybook/assets/{Button.stories-DF2lfYpK.js → Button.stories-BRnSWReC.js} +1 -1
  10. package/dist/storybook/assets/{ButtonGroup.stories-C-M77ns-.js → ButtonGroup.stories-BobudGDC.js} +1 -1
  11. package/dist/storybook/assets/{Card.stories-HGXh7qIC.js → Card.stories-DpLymsyf.js} +1 -1
  12. package/dist/storybook/assets/{Celebrate.stories-CH-XsVlQ.js → Celebrate.stories-qRHNTVLc.js} +1 -1
  13. package/dist/storybook/assets/{Checkbox.stories-CsNt2BM9.js → Checkbox.stories-CVXdjq08.js} +1 -1
  14. package/dist/storybook/assets/{CircularProgress.stories-DK9d1P49.js → CircularProgress.stories-BecvPwbh.js} +1 -1
  15. package/dist/storybook/assets/{ClipboardMixin.stories-Bku7X5_w.js → ClipboardMixin.stories-BJVIHNyO.js} +1 -1
  16. package/dist/storybook/assets/{Color-6BZIO3FS-EoGfq1T7.js → Color-6BZIO3FS-XEmhJ9od.js} +1 -1
  17. package/dist/storybook/assets/{Colors.stories-qceHlbcE.js → Colors.stories-DSeSesY3.js} +1 -1
  18. package/dist/storybook/assets/{CombinedEffects.stories-CEshjIR7.js → CombinedEffects.stories-DVKJYJ2h.js} +1 -1
  19. package/dist/storybook/assets/{ComponentStatesMixin-D9Pixe5d.js → ComponentStatesMixin-BIiocvNU.js} +1 -1
  20. package/dist/storybook/assets/{ComponentStatesMixin.stories-B9-Zzqrs.js → ComponentStatesMixin.stories-B4iQL8DI.js} +1 -1
  21. package/dist/storybook/assets/{CopyToClipboard.stories-B-HhDvPf.js → CopyToClipboard.stories-Cjn66PKV.js} +1 -1
  22. package/dist/storybook/assets/{Debounce.stories-DuQMn4C2.js → Debounce.stories-BMZeyYXN.js} +1 -1
  23. package/dist/storybook/assets/{DocsRenderer-LL677BLK-DNH4xGdf.js → DocsRenderer-LL677BLK-QL4hwLye.js} +3 -3
  24. package/dist/storybook/assets/{Dropdown.stories-DZA_FgyB.js → Dropdown.stories-D_pdDe7v.js} +1 -1
  25. package/dist/storybook/assets/{EmptyState.stories-BPXr0JGC.js → EmptyState.stories-G_tB_blc.js} +1 -1
  26. package/dist/storybook/assets/{EscaAvatar.stories-DEANJleg.js → EscaAvatar.stories-CodBmF48.js} +1 -1
  27. package/dist/storybook/assets/{Events.stories-DIa_7CR8.js → Events.stories-CT5MetYA.js} +1 -1
  28. package/dist/storybook/assets/{Heading.stories-CdfSlUKV.js → Heading.stories-Y_-l8wif.js} +1 -1
  29. package/dist/storybook/assets/{HueRipple.stories-D4Tnu6C3.js → HueRipple.stories-BxDLoPeE.js} +1 -1
  30. package/dist/storybook/assets/{Icon.stories-DRzpmWPD.js → Icon.stories-BU-_-0eX.js} +1 -1
  31. package/dist/storybook/assets/{IconButton.stories-B4MwUqS9.js → IconButton.stories-B7_2jVys.js} +1 -1
  32. package/dist/storybook/assets/{LinearProgress.stories-0jMi3ixH.js → LinearProgress.stories-DRRrdqZS.js} +1 -1
  33. package/dist/storybook/assets/{Message.stories-FsrGgPyB.js → Message.stories-CLohVwuD.js} +1 -1
  34. package/dist/storybook/assets/{OnFindMixin.stories-B7wQ3wAd.js → OnFindMixin.stories-5Ow2bxBP.js} +1 -1
  35. package/dist/storybook/assets/{Pagination.stories-CORs2cY3.js → Pagination.stories-BbV4tfBT.js} +1 -1
  36. package/dist/storybook/assets/{Popover.stories-DYBxEyMB.js → Popover.stories-BZoQ7FRz.js} +1 -1
  37. package/dist/storybook/assets/{ReadyMixin-B1macwQ1.js → ReadyMixin-CiVpndnv.js} +1 -1
  38. package/dist/storybook/assets/{RovingTabindexMixin.stories-Bzg9Htwx.js → RovingTabindexMixin.stories-CIxtH5IT.js} +1 -1
  39. package/dist/storybook/assets/{Rtc.stories-nM5_HZXY.js → Rtc.stories-CT_wTI6W.js} +1 -1
  40. package/dist/storybook/assets/{ScrollShadow.stories-DxFf0TeI.js → ScrollShadow.stories-DoqLfjly.js} +1 -1
  41. package/dist/storybook/assets/{Switch.stories-Bl9aVDwn.js → Switch.stories-B6WjXIKV.js} +1 -1
  42. package/dist/storybook/assets/{Tab.stories-DjMCNkRq.js → Tab.stories-Bl40RdD2.js} +1 -1
  43. package/dist/storybook/assets/{Tabs.stories-BB1q-9R2.js → Tabs.stories-Cq_6db0V.js} +1 -1
  44. package/dist/storybook/assets/{Throttle.stories-Ctc18aNC.js → Throttle.stories-CIaBQZqk.js} +1 -1
  45. package/dist/storybook/assets/{Tooltip.stories-CKajF5sl.js → Tooltip.stories-B8qRcBKU.js} +1 -1
  46. package/dist/storybook/assets/{Upload.stories-B7Iw53Qq.js → Upload.stories-B3t-TtNJ.js} +1 -1
  47. package/dist/storybook/assets/{UploadItem.stories-Cb4ePAYx.js → UploadItem.stories-CbPSYISJ.js} +1 -1
  48. package/dist/storybook/assets/{Welcome.stories-AzE22T6_.js → Welcome.stories-DeAn6V-a.js} +1 -1
  49. package/dist/storybook/assets/{Widget.stories-CXN5G1We.js → Widget.stories-BwrnfGxJ.js} +1 -1
  50. package/dist/storybook/assets/{WithTooltip-65CFNBJE-61jzENSu.js → WithTooltip-65CFNBJE-DlzK1hFu.js} +1 -1
  51. package/dist/storybook/assets/{blocks-J_f2D33t.js → blocks-Bjkcyran.js} +5 -5
  52. package/dist/storybook/assets/{formatter-EIJCOSYU-C15zBrnA.js → formatter-EIJCOSYU-DLtNl6ti.js} +1 -1
  53. package/dist/storybook/assets/if-defined-D6il-wFD.js +1 -0
  54. package/dist/storybook/assets/{iframe-BX01Fo1V.js → iframe-Bg1iA5XM.js} +3 -3
  55. package/dist/storybook/assets/{index-CzcFKTkD.js → index-55-rCsXK.js} +1 -1
  56. package/dist/storybook/assets/onFind-CcSqFP5g.js +1 -0
  57. package/dist/storybook/assets/{onFind.stories-DMci1Pj-.js → onFind.stories-DXf4BjE9.js} +16 -16
  58. package/dist/storybook/assets/{onRemove.stories-C6c-zZfV.js → onRemove.stories-CDSlUXOq.js} +1 -1
  59. package/dist/storybook/assets/{onVisible.stories-7t2U3KRP.js → onVisible.stories-J1GJhpS8.js} +1 -1
  60. package/dist/storybook/assets/{style-map-Dbe8ACrE.js → style-map-ApF_rrB_.js} +1 -1
  61. package/dist/storybook/assets/{syntaxhighlighter-ED5Y7EFY-BbcaScWF.js → syntaxhighlighter-ED5Y7EFY-C5rK8S29.js} +1 -1
  62. package/dist/storybook/iframe.html +1 -1
  63. package/dist/storybook/project.json +1 -1
  64. package/dist/util/onFind.d.ts.map +1 -1
  65. package/dist/util/onFind.js +18 -5
  66. package/dist/util/onFind.js.map +1 -1
  67. package/package.json +1 -1
  68. package/src/legacy/tool-ui/src/ContentInputGroup.css +6 -0
  69. package/src/legacy/tool-ui/src/dom/onFind.ts +22 -5
  70. package/src/legacy/tool-ui/src/main/webapp/dist/4795.beae23779e30c55c6f6a.js +1 -0
  71. package/src/legacy/tool-ui/src/main/webapp/dist/Appetizeio.73eedd6a3761e060bc96.js +1 -0
  72. package/src/legacy/tool-ui/src/main/webapp/dist/CISpectrum.934683148936d8e35f1d.js +1 -0
  73. package/src/legacy/tool-ui/src/main/webapp/dist/RTEProseMirror.fa6e6c1a246ca1467613.js +500 -0
  74. package/src/legacy/tool-ui/src/main/webapp/dist/TimedContent.e7c0eb6a9e39982cd58f.js +1 -0
  75. package/src/legacy/tool-ui/src/main/webapp/dist/v4.477ad1936f8c04d7b232.css +3 -0
  76. package/src/legacy/tool-ui/src/main/webapp/dist/{v4.5b20a4481ee5560b3db1.js → v4.c42ee882fb5f0aec6168.js} +3 -3
  77. package/src/legacy/tool-ui/src/main/webapp/dist/{v5.db629f4adc1c7019a727.js → v5.048fac823770341e290e.js} +3 -3
  78. package/src/legacy/tool-ui/src/main/webapp/dist/{v5.6a83df0120b7131d9681.css → v5.c4079f389e0c1da72239.css} +1 -1
  79. package/src/legacy/tool-ui/src/main/webapp/v4/ContentInputGroup.less +6 -0
  80. package/dist/storybook/assets/if-defined-BbMdp3t8.js +0 -1
  81. package/dist/storybook/assets/onFind-BUzFtt2i.js +0 -1
  82. package/src/legacy/tool-ui/src/main/webapp/dist/4795.034ebc93a67b7a3d6536.js +0 -1
  83. package/src/legacy/tool-ui/src/main/webapp/dist/Appetizeio.185641211f7c0e42a455.js +0 -1
  84. package/src/legacy/tool-ui/src/main/webapp/dist/CISpectrum.74db7dc80b3a6797a167.js +0 -1
  85. package/src/legacy/tool-ui/src/main/webapp/dist/RTEProseMirror.57de478c4ef0bb7dff32.js +0 -500
  86. package/src/legacy/tool-ui/src/main/webapp/dist/TimedContent.4bb4dc83ffbe4019dd7b.js +0 -1
  87. package/src/legacy/tool-ui/src/main/webapp/dist/v4.fda8a624070bce61ac0d.css +0 -3
  88. /package/src/legacy/tool-ui/src/main/webapp/dist/{RTEProseMirror.57de478c4ef0bb7dff32.js.LICENSE.txt → RTEProseMirror.fa6e6c1a246ca1467613.js.LICENSE.txt} +0 -0
  89. /package/src/legacy/tool-ui/src/main/webapp/dist/{v4.5b20a4481ee5560b3db1.js.LICENSE.txt → v4.c42ee882fb5f0aec6168.js.LICENSE.txt} +0 -0
  90. /package/src/legacy/tool-ui/src/main/webapp/dist/{v5.db629f4adc1c7019a727.js.LICENSE.txt → v5.048fac823770341e290e.js.LICENSE.txt} +0 -0
@@ -90,6 +90,7 @@ let triggerPaused = false
90
90
  let triggerOnResume = false
91
91
  let triggerAll = false
92
92
  let triggerElements: Element[] = []
93
+ let triggerContainers = new Set<Element>()
93
94
  let triggerFrame: number
94
95
  const callbacks: Callback<Element>[] = []
95
96
 
@@ -172,9 +173,8 @@ function triggerCallbacks(mutations?: MutationRecord[]) {
172
173
  triggerElements.push(element)
173
174
  break
174
175
  case 'childList':
175
- for (const callback of callbacks) {
176
- callback.addTriggerElements(triggerElements, element)
177
- }
176
+ // Deduping containers and deferring their selector scans to the animation frame keeps mutation bursts from running every callback's query synchronously per mutation.
177
+ triggerContainers.add(element)
178
178
  break
179
179
  }
180
180
  }
@@ -183,11 +183,28 @@ function triggerCallbacks(mutations?: MutationRecord[]) {
183
183
  }
184
184
  }
185
185
 
186
- if ((triggerAll || triggerElements.length > 0) && !triggerFrame) {
186
+ if (
187
+ (triggerAll || triggerElements.length > 0 || triggerContainers.size > 0) &&
188
+ !triggerFrame
189
+ ) {
187
190
  triggerFrame = window.requestAnimationFrame(() => {
188
- const elements = triggerAll ? undefined : triggerElements
191
+ let elements: Element[] | undefined
192
+
193
+ if (!triggerAll) {
194
+ for (const container of triggerContainers) {
195
+ if (container instanceof Element) {
196
+ for (const callback of callbacks) {
197
+ callback.addTriggerElements(triggerElements, container)
198
+ }
199
+ }
200
+ }
201
+
202
+ elements = triggerElements
203
+ }
204
+
189
205
  triggerAll = false
190
206
  triggerElements = []
207
+ triggerContainers = new Set()
191
208
  triggerFrame = 0
192
209
 
193
210
  callbacks.forEach((callback) => callback.trigger(elements))
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkbrightspot_cms=self.webpackChunkbrightspot_cms||[]).push([[4795],{99022(e,t,n){n.d(t,{A:()=>g});var r=n(83394),i=(n(44764),n(26594));function o(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function s(e,t){return e.get(c(e,t))}function a(e,t,n){return e.set(c(e,t),n),n}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap;function h(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function p(e,t,n){return e.set(w(e,t),n),n}function m(e,t){return e.get(w(e,t))}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var v=new WeakMap,y=new WeakMap;class g{static get toggles(){return w(g,this,A)._}static toggle(e,t,n){let i,o="boolean"==typeof n&&n;function s(e){return"function"==typeof e}if(s(n)&&(i=n,o=i()),o){const o=new g(e,t);let a;s(n)&&window.addEventListener("click",a=(0,r.A)(n=>{if(!(n instanceof Event))return;const r=n.target;if(r instanceof HTMLElement&&!e.contains(r)&&!t.contains(r)){const t=r.closest("[data-tether-rx]");t&&!t.contains(e)||(i(),void 0!==a&&window.removeEventListener("click",a,!0),o.destroy(),A._.delete(e))}}),!0),A._.set(e,{tether:o,closeListener:a})}else{const t=A._.get(e);t&&(void 0!==t.closeListener&&window.removeEventListener("click",t.closeListener,!0),t.tether.destroy(),A._.delete(e))}return o}static getReference(e){for(const t of b._.tethers)if(m(y,t)===e)return m(v,t);return null}get element(){return m(y,this)}get reference(){return m(v,this)}constructor(e,t){h(this,v,void 0),h(this,y,void 0),p(v,this,e),p(y,this,t),e.classList.contains("ComboInput")&&!t.parentElement?.hasAttribute("data-tether-anchor")&&(null!==e.closest("dialog")?e.closest("dialog")?.append(t):null===e.closest(".Popup")?document.querySelector(".Page")?.append(t):e.closest(".Popup")?.append(t)),b._.add(this)}destroy(){b._.remove(this)}}var b={_:new class{constructor(){o(this,l,void 0),o(this,u,void 0),o(this,d,void 0),o(this,f,void 0),a(l,this,new WeakMap),a(u,this,[]),a(f,this,null),a(d,this,(0,i.A)(this.updateImmediately.bind(this)))}get tethers(){return s(u,this)}add(e){s(u,this).push(e),this.start()}remove(e){const t=s(u,this),n=t.indexOf(e);n>-1&&t.splice(n,1),t.length<0&&this.stop()}start(){this.updateImmediately(),null===s(f,this)&&(window.addEventListener("resize",s(d,this),!0),window.addEventListener("scroll",s(d,this),!0),a(f,this,setInterval(s(d,this),50)))}stop(){null!==s(f,this)&&(window.removeEventListener("resize",s(d,this)),window.removeEventListener("scroll",s(d,this)),clearInterval(s(f,this)),a(f,this,null))}updateImmediately(){const e=s(u,this);if(0===e.length)return;const t=[],n=document.documentElement;let r=n.clientWidth/2,i=n.clientHeight/2;const o="rtl"===n.dir;for(const s of e){const e=s.element,a=s.reference.getBoundingClientRect(),c=a.width,l=a.height;if(0===c&&0===l)continue;let u,d=a.top,f=a.left,h=n.clientWidth;if(e.parentElement?.hasAttribute("popover")){d=s.reference.offsetTop,f=s.reference.offsetLeft;const t=e.parentElement;h=t.clientWidth,r=h/2,i=t.clientHeight/2}let p=f;if(o){const e=h-f-c;p=e,u=e<r?"l":"r"}else u=f<r?"l":"r";t.push({element:e,x:u,y:d+l/2<i?"t":"b",l:`${p}px`,w:`${c}px`,t:`${d}px`,h:`${l}px`})}for(const e of t){const t=e.element,n=s(l,this).get(t)||{},r=t.style;e.x!==n.x&&t.setAttribute("data-tether-rx",e.x),e.y!==n.y&&t.setAttribute("data-tether-ry",e.y),e.l!==n.l&&r.setProperty("--Tether-rl",e.l),e.w!==n.w&&r.setProperty("--Tether-rw",e.w),e.t!==n.t&&r.setProperty("--Tether-rt",e.t),e.h!==n.h&&r.setProperty("--Tether-rh",e.h),s(l,this).set(t,e)}}}},A={_:new WeakMap}},55408(e,t,n){n.d(t,{A:()=>g});var r=n(96203),i=(n(57573),n(39403));function o(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function s(e,t){return e.get(c(e,t))}function a(e,t,n){return e.set(c(e,t),n),n}function c(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var l=new WeakMap,u=new WeakMap,d=new WeakMap,f=new WeakMap;function h(e,t,n){(function(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")})(e,t),t.set(e,n)}function p(e,t,n){return e.set(w(e,t),n),n}function m(e,t){return e.get(w(e,t))}function w(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}var v=new WeakMap,y=new WeakMap;class g{static get toggles(){return w(g,this,A)._}static toggle(e,t,n){let i,o="boolean"==typeof n&&n;function s(e){return"function"==typeof e}if(s(n)&&(i=n,o=i()),o){const o=new g(e,t);let a;s(n)&&window.addEventListener("click",a=(0,r.A)(n=>{if(!(n instanceof Event))return;const r=n.target;if(r instanceof HTMLElement&&!e.contains(r)&&!t.contains(r)){const t=r.closest("[data-tether-rx]");t&&!t.contains(e)||(i(),void 0!==a&&window.removeEventListener("click",a,!0),o.destroy(),A._.delete(e))}}),!0),A._.set(e,{tether:o,closeListener:a})}else{const t=A._.get(e);t&&(void 0!==t.closeListener&&window.removeEventListener("click",t.closeListener,!0),t.tether.destroy(),A._.delete(e))}return o}static getReference(e){for(const t of b._.tethers)if(m(y,t)===e)return m(v,t);return null}get element(){return m(y,this)}get reference(){return m(v,this)}constructor(e,t){h(this,v,void 0),h(this,y,void 0),p(v,this,e),p(y,this,t),e.classList.contains("ComboInput")&&!t.parentElement?.hasAttribute("data-tether-anchor")&&(null!==e.closest("dialog")?e.closest("dialog")?.append(t):null===e.closest(".Popup")?document.querySelector(".Page")?.append(t):e.closest(".Popup")?.append(t)),b._.add(this)}destroy(){b._.remove(this)}}var b={_:new class{constructor(){o(this,l,void 0),o(this,u,void 0),o(this,d,void 0),o(this,f,void 0),a(l,this,new WeakMap),a(u,this,[]),a(f,this,null),a(d,this,(0,i.A)(this.updateImmediately.bind(this)))}get tethers(){return s(u,this)}add(e){s(u,this).push(e),this.start()}remove(e){const t=s(u,this),n=t.indexOf(e);n>-1&&t.splice(n,1),t.length<0&&this.stop()}start(){this.updateImmediately(),null===s(f,this)&&(window.addEventListener("resize",s(d,this),!0),window.addEventListener("scroll",s(d,this),!0),a(f,this,setInterval(s(d,this),50)))}stop(){null!==s(f,this)&&(window.removeEventListener("resize",s(d,this)),window.removeEventListener("scroll",s(d,this)),clearInterval(s(f,this)),a(f,this,null))}updateImmediately(){const e=s(u,this);if(0===e.length)return;const t=[],n=document.documentElement;let r=n.clientWidth/2,i=n.clientHeight/2;const o="rtl"===n.dir;for(const s of e){const e=s.element,a=s.reference.getBoundingClientRect(),c=a.width,l=a.height;if(0===c&&0===l)continue;let u,d=a.top,f=a.left,h=n.clientWidth;if(e.parentElement?.hasAttribute("popover")){d=s.reference.offsetTop,f=s.reference.offsetLeft;const t=e.parentElement;h=t.clientWidth,r=h/2,i=t.clientHeight/2}let p=f;if(o){const e=h-f-c;p=e,u=e<r?"l":"r"}else u=f<r?"l":"r";t.push({element:e,x:u,y:d+l/2<i?"t":"b",l:`${p}px`,w:`${c}px`,t:`${d}px`,h:`${l}px`})}for(const e of t){const t=e.element,n=s(l,this).get(t)||{},r=t.style;e.x!==n.x&&t.setAttribute("data-tether-rx",e.x),e.y!==n.y&&t.setAttribute("data-tether-ry",e.y),e.l!==n.l&&r.setProperty("--Tether-rl",e.l),e.w!==n.w&&r.setProperty("--Tether-rw",e.w),e.t!==n.t&&r.setProperty("--Tether-rt",e.t),e.h!==n.h&&r.setProperty("--Tether-rh",e.h),s(l,this).set(t,e)}}}},A={_:new WeakMap}},38745(e,t,n){function r(e,...t){const n=document.createElement(e),r=t[0];if(!("object"!=typeof r||Array.isArray(r)||r instanceof Node)){t.shift();for(const[e,t]of Object.entries(r))"dataset"===e?Object.keys(t).forEach(e=>n.dataset[e]=t[e]):void 0===t?n.removeAttribute(e):e in n?Object.assign(n,{[e]:t}):n.setAttribute(e,t)}return i(n,t),n}function i(e,t){if(t)if(Array.isArray(t)||t instanceof NodeList)for(const n of t)i(e,n);else t instanceof Node?e.appendChild(t):e.appendChild(document.createTextNode(t.toString()))}n.d(t,{A:()=>r}),Object.defineProperty(r,"name",{value:"default",configurable:!0}),n(84978),n(25809)},25936(e,t,n){function r(e,...t){const n=document.createElement(e),r=t[0];if(!("object"!=typeof r||Array.isArray(r)||r instanceof Node)){t.shift();for(const[e,t]of Object.entries(r))"dataset"===e?Object.keys(t).forEach(e=>n.dataset[e]=t[e]):void 0===t?n.removeAttribute(e):e in n?Object.assign(n,{[e]:t}):n.setAttribute(e,t)}return i(n,t),n}function i(e,t){if(t)if(Array.isArray(t)||t instanceof NodeList)for(const n of t)i(e,n);else t instanceof Node?e.appendChild(t):e.appendChild(document.createTextNode(t.toString()))}n.d(t,{A:()=>r}),Object.defineProperty(r,"name",{value:"default",configurable:!0}),n(49371),n(96648)},95628(e,t,n){function r(e,t){return e?(Array.isArray(t)&&(t=t.join(",")),e.querySelector(t)):null}n.d(t,{A:()=>r}),Object.defineProperty(r,"name",{value:"default",configurable:!0})},60021(e,t,n){function r(e,t){return e?(Array.isArray(t)&&(t=t.join(",")),e.querySelector(t)):null}n.d(t,{A:()=>r}),Object.defineProperty(r,"name",{value:"default",configurable:!0})},83394(e,t,n){let r;function i(e){return function(...t){if(t[0]instanceof Event||t[0]instanceof window.jQuery.Event){const n=t[0].target;n===r&&e.apply(n,t)}}}n.d(t,{A:()=>i}),window.addEventListener("mousedown",({target:e})=>{r=e})},96203(e,t,n){let r;function i(e){return function(...t){if(t[0]instanceof Event||t[0]instanceof window.jQuery.Event){const n=t[0].target;n===r&&e.apply(n,t)}}}n.d(t,{A:()=>i}),window.addEventListener("mousedown",({target:e})=>{r=e})},56155(e,t,n){n.d(t,{A:()=>C}),n(44764),n(84978),n(13722),n(91672),n(92280);var r=n(59314),i=n.n(r);function o(e,t,n){s(e,t),t.set(e,n)}function s(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(l(e,t))}function c(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}let u=0;var d=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;class v{constructor(e,t,n){var r;s(this,r=w),r.add(this),o(this,d,void 0),o(this,f,void 0),o(this,h,void 0),o(this,p,void 0),o(this,m,void 0),c(d,this,e),c(f,this,"data-ofc"+u++),Array.isArray(t)||(t=[t]),c(h,this,t.map(t.some(e=>e.indexOf(",")>-1)?e=>e:e=>`${e}:not([${a(f,this)}])`).join(",")),c(p,this,n);const i=t.map(e=>e.trim()).filter(e=>e.indexOf(" ")<0&&e.indexOf(",")<0);i.length===t.length&&c(m,this,i)}addTriggerElements(e,t){if(a(d,this).contains(t)){t.matches(a(h,this))&&e.push(t);for(const n of t.querySelectorAll(a(h,this)))e.push(n)}}trigger(e){if("loading"!==document.readyState)if(a(m,this)&&Array.isArray(e))for(const t of e)a(m,this).some(e=>t.matches(e))&&l(w,this,y).call(this,t);else for(const e of a(d,this).querySelectorAll(a(h,this)))l(w,this,y).call(this,e)}}function y(e){if(!M(e)&&!e.hasAttribute(a(f,this))){e.setAttribute(a(f,this),"");try{a(p,this).call(this,e)}catch(t){i().error("Failed callback!",e,t)}}}let g,b=!1,A=!1,E=!1,k=[],L=new Set;const x=[];function M(e){return e instanceof Element&&(null!==e.closest(".CIG-wordCount")||null!==e.closest(".ContentEdit-previewDisplay")||null!==e.closest(".ContentLabel")||null!==e.closest(".PreviewFrame-typeDisplay")||null!==e.closest(".ProseMirrorToolbar")||null!==e.closest(".ProseMirror")||null!==e.closest(".ProseMirrorContainer")||null!==e.closest(".ProseMirror-fullscreen-container")||null!==e.closest(".ProseMirror-comments")||null!==e.closest(".RichTextEditor")||null!==e.closest(".WorkInProgressSaveStatus")||null!==e.closest("#aria-live-container")||null!==e.closest(".widget-urlsAutomatic"))}const T=Array.prototype.every,P=e=>e.nodeType===Node.TEXT_NODE;function S(e){if(b)return void(A=!0);const t=Array.isArray(e),n=[];if(t){for(const t of e){const e=t.target;if(!M(e))switch(t.type){case"attributes":t.oldValue!==e.getAttribute(t.attributeName)&&n.push(t);break;case"childList":T.call(t.addedNodes,P)&&T.call(t.removedNodes,P)||n.push(t)}}if(0===n.length)return}if(n.length>500&&(E=!0),!E)if(t)for(const e of n){const t=e.target;switch(e.type){case"attributes":k.push(t);break;case"childList":L.add(t)}}else E=!0;(E||k.length>0||L.size>0)&&!g&&(g=window.requestAnimationFrame(()=>{let e;if(!E){for(const e of L)if(e instanceof Element)for(const t of x)t.addTriggerElements(k,e);e=k}E=!1,k=[],L=new Set,g=0,x.forEach(t=>t.trigger(e))}))}function W(){document.documentElement.hidden=!1,S(),new MutationObserver(S).observe(document,{attributes:!0,attributeFilter:["class","data-bsp-autosubmit","data-chart-type","data-code-type","data-internal-name","data-tab","name","rel","target"],attributeOldValue:!0,childList:!0,subtree:!0})}function j(e,t,n){let r,i;void 0!==n?(r=e,i=t):(r=document,i=e,n=t);const o=new v(r,i,n);o.trigger(),x.push(o)}document.documentElement.hidden=!0,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",W):W(),j.triggerCallbacks=S,j.pause=()=>{b=!0},j.resume=()=>{b=!1,A&&(A=!1,setTimeout(S,100))};const C=7717==n.j?j:null},91762(e,t,n){n.d(t,{A:()=>C}),n(57573),n(49371),n(42723),n(56065),n(56673);var r=n(23707),i=n.n(r);function o(e,t,n){s(e,t),t.set(e,n)}function s(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(l(e,t))}function c(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}let u=0;var d=new WeakMap,f=new WeakMap,h=new WeakMap,p=new WeakMap,m=new WeakMap,w=new WeakSet;class v{constructor(e,t,n){var r;s(this,r=w),r.add(this),o(this,d,void 0),o(this,f,void 0),o(this,h,void 0),o(this,p,void 0),o(this,m,void 0),c(d,this,e),c(f,this,"data-ofc"+u++),Array.isArray(t)||(t=[t]),c(h,this,t.map(t.some(e=>e.indexOf(",")>-1)?e=>e:e=>`${e}:not([${a(f,this)}])`).join(",")),c(p,this,n);const i=t.map(e=>e.trim()).filter(e=>e.indexOf(" ")<0&&e.indexOf(",")<0);i.length===t.length&&c(m,this,i)}addTriggerElements(e,t){if(a(d,this).contains(t)){t.matches(a(h,this))&&e.push(t);for(const n of t.querySelectorAll(a(h,this)))e.push(n)}}trigger(e){if("loading"!==document.readyState)if(a(m,this)&&Array.isArray(e))for(const t of e)a(m,this).some(e=>t.matches(e))&&l(w,this,y).call(this,t);else for(const e of a(d,this).querySelectorAll(a(h,this)))l(w,this,y).call(this,e)}}function y(e){if(!M(e)&&!e.hasAttribute(a(f,this))){e.setAttribute(a(f,this),"");try{a(p,this).call(this,e)}catch(t){i().error("Failed callback!",e,t)}}}let g,b=!1,A=!1,E=!1,k=[],L=new Set;const x=[];function M(e){return e instanceof Element&&(null!==e.closest(".CIG-wordCount")||null!==e.closest(".ContentEdit-previewDisplay")||null!==e.closest(".ContentLabel")||null!==e.closest(".PreviewFrame-typeDisplay")||null!==e.closest(".ProseMirrorToolbar")||null!==e.closest(".ProseMirror")||null!==e.closest(".ProseMirrorContainer")||null!==e.closest(".ProseMirror-fullscreen-container")||null!==e.closest(".ProseMirror-comments")||null!==e.closest(".RichTextEditor")||null!==e.closest(".WorkInProgressSaveStatus")||null!==e.closest("#aria-live-container")||null!==e.closest(".widget-urlsAutomatic"))}const T=Array.prototype.every,P=e=>e.nodeType===Node.TEXT_NODE;function S(e){if(b)return void(A=!0);const t=Array.isArray(e),n=[];if(t){for(const t of e){const e=t.target;if(!M(e))switch(t.type){case"attributes":t.oldValue!==e.getAttribute(t.attributeName)&&n.push(t);break;case"childList":T.call(t.addedNodes,P)&&T.call(t.removedNodes,P)||n.push(t)}}if(0===n.length)return}if(n.length>500&&(E=!0),!E)if(t)for(const e of n){const t=e.target;switch(e.type){case"attributes":k.push(t);break;case"childList":L.add(t)}}else E=!0;(E||k.length>0||L.size>0)&&!g&&(g=window.requestAnimationFrame(()=>{let e;if(!E){for(const e of L)if(e instanceof Element)for(const t of x)t.addTriggerElements(k,e);e=k}E=!1,k=[],L=new Set,g=0,x.forEach(t=>t.trigger(e))}))}function W(){document.documentElement.hidden=!1,S(),new MutationObserver(S).observe(document,{attributes:!0,attributeFilter:["class","data-bsp-autosubmit","data-chart-type","data-code-type","data-internal-name","data-tab","name","rel","target"],attributeOldValue:!0,childList:!0,subtree:!0})}function j(e,t,n){let r,i;void 0!==n?(r=e,i=t):(r=document,i=e,n=t);const o=new v(r,i,n);o.trigger(),x.push(o)}document.documentElement.hidden=!0,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",W):W(),j.triggerCallbacks=S,j.pause=()=>{b=!0},j.resume=()=>{b=!1,A&&(A=!1,setTimeout(S,100))};const C=3324==n.j?j:null},66556(e,t,n){n.d(t,{AM:()=>s,D1:()=>o,H0:()=>a}),n(84978),n(13722),n(25809);var r=n(9968);if(7717==n.j)var i=n(36500);function o(e,t){!function(e){l(e,"button, a");e.querySelector('[role="menuitem"]')||e.querySelectorAll("button, a").forEach(e=>{e.hasAttribute("role")||(e.setAttribute("role","menuitem"),e.classList.add("Dropdown-item"))})}(e),function(e,t){t.hasAttribute("aria-controls")||(e.id||(e.id=(0,i.A)()),t.setAttribute("aria-controls",e.id))}(e,t),function(e,t){(function(e,t){t.addEventListener("keydown",n=>{const r=e.closest('[role="toolbar"]'),i=r?.getAttribute("aria-orientation");switch(n.key){case"ArrowDown":case"ArrowRight":if(r&&("vertical"===i&&"ArrowDown"===n.key||"vertical"!==i&&"ArrowRight"===n.key))break;t.click(),n.stopPropagation(),n.preventDefault();break;case"ArrowUp":case"ArrowLeft":if(r&&("vertical"===i&&"ArrowUp"===n.key||"vertical"!==i&&"ArrowLeft"===n.key))break;t.click(),"true"===t.getAttribute("aria-expanded")&&e.addEventListener("transitionend",()=>{c(d(u(e)),-1)},{once:!0})}})})(e,t),function(e,t){e.addEventListener("keydown",e=>{switch(e.key){case"Escape":t.click(),t.focus(),e.preventDefault(),e.stopPropagation();break;case"ArrowLeft":case"ArrowUp":c(e.target,-1),e.preventDefault();break;case"ArrowRight":case"ArrowDown":c(e.target,1),e.preventDefault()}})}(e,t),a(e,t)}(e,t)}function s(e,t,n=e){const i=e.querySelector(".ComboInput"),o=n=>{t.classList.contains("is-active")&&"Tab"===n.key&&!e.contains(document.activeElement)&&document.activeElement!==i&&document.activeElement!==t&&t.click()};l(e,'[role="menuitem"]'),r.A.toggle(t,e,()=>{const r=t.classList.toggle("is-active");return r?(t.setAttribute("aria-expanded",!0),window.addEventListener("keyup",o),e.addEventListener("transitionend",()=>{const t=u(e);if(!t?.length)return;const n=d(t);n?.setAttribute("tabindex","0"),n?.focus()},{once:!0})):(t.setAttribute("aria-expanded",!1),window.removeEventListener("keyup",o)),n.classList.toggle("is-open",r)})}function a(e,t){e.querySelectorAll('button, a, [role="menuitem"]').forEach(e=>{e.addEventListener("click",()=>{"true"===t.getAttribute("aria-expanded")&&(t.click(),t.focus())})})}function c(e,t){const n=function(e){if(e)return e.closest(".is-open")||e.closest("ul")}(e),r=u(n);if(!n||!r)return;const i=r.indexOf(e);if(-1===i)return;e.setAttribute("tabindex","-1");const o=n.querySelector("li.focus");if(o&&o.classList.remove("focus"),-1===t){let e=i-1>-1?r[i-1]:r[r.length-1];e.setAttribute("tabindex","0"),e.focus(),o&&e.closest("li")?.classList.add("focus")}if(1===t){let e=i+1<r.length?r[i+1]:r[0];e.setAttribute("tabindex","0"),e.focus(),o&&e.closest("li")?.classList.add("focus")}}function l(e,t){e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabindex","-1")})}function u(e){if(e)return Array.from(e.querySelectorAll('[role="menuitem"]')).filter(e=>!(e.hasAttribute("aria-hidden")||e.closest('[aria-hidden="true"]')||"none"===window.getComputedStyle(e).display||e.classList.contains("screen-reader-only")))}function d(e){for(const t of e)if(t.matches(".is-selected, .selected")||t.parentElement.matches(".is-selected, .selected"))return t;return e[0]}},79365(e,t,n){n.d(t,{AM:()=>s,D1:()=>o,H0:()=>a}),n(49371),n(42723),n(96648);var r=n(22777);if(3324==n.j)var i=n(49309);function o(e,t){!function(e){l(e,"button, a");e.querySelector('[role="menuitem"]')||e.querySelectorAll("button, a").forEach(e=>{e.hasAttribute("role")||(e.setAttribute("role","menuitem"),e.classList.add("Dropdown-item"))})}(e),function(e,t){t.hasAttribute("aria-controls")||(e.id||(e.id=(0,i.A)()),t.setAttribute("aria-controls",e.id))}(e,t),function(e,t){(function(e,t){t.addEventListener("keydown",n=>{const r=e.closest('[role="toolbar"]'),i=r?.getAttribute("aria-orientation");switch(n.key){case"ArrowDown":case"ArrowRight":if(r&&("vertical"===i&&"ArrowDown"===n.key||"vertical"!==i&&"ArrowRight"===n.key))break;t.click(),n.stopPropagation(),n.preventDefault();break;case"ArrowUp":case"ArrowLeft":if(r&&("vertical"===i&&"ArrowUp"===n.key||"vertical"!==i&&"ArrowLeft"===n.key))break;t.click(),"true"===t.getAttribute("aria-expanded")&&e.addEventListener("transitionend",()=>{c(d(u(e)),-1)},{once:!0})}})})(e,t),function(e,t){e.addEventListener("keydown",e=>{switch(e.key){case"Escape":t.click(),t.focus(),e.preventDefault(),e.stopPropagation();break;case"ArrowLeft":case"ArrowUp":c(e.target,-1),e.preventDefault();break;case"ArrowRight":case"ArrowDown":c(e.target,1),e.preventDefault()}})}(e,t),a(e,t)}(e,t)}function s(e,t,n=e){const i=e.querySelector(".ComboInput"),o=n=>{t.classList.contains("is-active")&&"Tab"===n.key&&!e.contains(document.activeElement)&&document.activeElement!==i&&document.activeElement!==t&&t.click()};l(e,'[role="menuitem"]'),r.A.toggle(t,e,()=>{const r=t.classList.toggle("is-active");return r?(t.setAttribute("aria-expanded",!0),window.addEventListener("keyup",o),e.addEventListener("transitionend",()=>{const t=u(e);if(!t?.length)return;const n=d(t);n?.setAttribute("tabindex","0"),n?.focus()},{once:!0})):(t.setAttribute("aria-expanded",!1),window.removeEventListener("keyup",o)),n.classList.toggle("is-open",r)})}function a(e,t){e.querySelectorAll('button, a, [role="menuitem"]').forEach(e=>{e.addEventListener("click",()=>{"true"===t.getAttribute("aria-expanded")&&(t.click(),t.focus())})})}function c(e,t){const n=function(e){if(e)return e.closest(".is-open")||e.closest("ul")}(e),r=u(n);if(!n||!r)return;const i=r.indexOf(e);if(-1===i)return;e.setAttribute("tabindex","-1");const o=n.querySelector("li.focus");if(o&&o.classList.remove("focus"),-1===t){let e=i-1>-1?r[i-1]:r[r.length-1];e.setAttribute("tabindex","0"),e.focus(),o&&e.closest("li")?.classList.add("focus")}if(1===t){let e=i+1<r.length?r[i+1]:r[0];e.setAttribute("tabindex","0"),e.focus(),o&&e.closest("li")?.classList.add("focus")}}function l(e,t){e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabindex","-1")})}function u(e){if(e)return Array.from(e.querySelectorAll('[role="menuitem"]')).filter(e=>!(e.hasAttribute("aria-hidden")||e.closest('[aria-hidden="true"]')||"none"===window.getComputedStyle(e).display||e.classList.contains("screen-reader-only")))}function d(e){for(const t of e)if(t.matches(".is-selected, .selected")||t.parentElement.matches(".is-selected, .selected"))return t;return e[0]}},9968(e,t,n){n.d(t,{A:()=>r.A});var r=n(99022)},22777(e,t,n){n.d(t,{A:()=>r.A});var r=n(55408)},5292(e,t,n){n.d(t,{A:()=>r.A});var r=n(38745)},18101(e,t,n){n.d(t,{A:()=>r.A});var r=n(25936)},32246(e,t,n){n.d(t,{A:()=>r.A});var r=n(56155)},45055(e,t,n){n.d(t,{A:()=>r.A});var r=n(91762)},26594(e,t,n){function r(e){let t;return function(){t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{t=void 0,e.apply(this,[...arguments])})}}n.d(t,{A:()=>r})},39403(e,t,n){function r(e){let t;return function(){t&&window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{t=void 0,e.apply(this,[...arguments])})}}n.d(t,{A:()=>r})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkbrightspot_cms=self.webpackChunkbrightspot_cms||[]).push([[2963],{56155(e,t,n){n.d(t,{A:()=>N}),n(44764),n(84978),n(13722),n(91672),n(92280);var s=n(59314),i=n.n(s);function o(e,t,n){r(e,t),t.set(e,n)}function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(l(e,t))}function c(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}let d=0;var u=new WeakMap,p=new WeakMap,h=new WeakMap,m=new WeakMap,f=new WeakMap,v=new WeakSet;class g{constructor(e,t,n){var s;r(this,s=v),s.add(this),o(this,u,void 0),o(this,p,void 0),o(this,h,void 0),o(this,m,void 0),o(this,f,void 0),c(u,this,e),c(p,this,"data-ofc"+d++),Array.isArray(t)||(t=[t]),c(h,this,t.map(t.some(e=>e.indexOf(",")>-1)?e=>e:e=>`${e}:not([${a(p,this)}])`).join(",")),c(m,this,n);const i=t.map(e=>e.trim()).filter(e=>e.indexOf(" ")<0&&e.indexOf(",")<0);i.length===t.length&&c(f,this,i)}addTriggerElements(e,t){if(a(u,this).contains(t)){t.matches(a(h,this))&&e.push(t);for(const n of t.querySelectorAll(a(h,this)))e.push(n)}}trigger(e){if("loading"!==document.readyState)if(a(f,this)&&Array.isArray(e))for(const t of e)a(f,this).some(e=>t.matches(e))&&l(v,this,w).call(this,t);else for(const e of a(u,this).querySelectorAll(a(h,this)))l(v,this,w).call(this,e)}}function w(e){if(!T(e)&&!e.hasAttribute(a(p,this))){e.setAttribute(a(p,this),"");try{a(m,this).call(this,e)}catch(t){i().error("Failed callback!",e,t)}}}let y,b=!1,A=!1,E=!1,L=[],M=new Set;const C=[];function T(e){return e instanceof Element&&(null!==e.closest(".CIG-wordCount")||null!==e.closest(".ContentEdit-previewDisplay")||null!==e.closest(".ContentLabel")||null!==e.closest(".PreviewFrame-typeDisplay")||null!==e.closest(".ProseMirrorToolbar")||null!==e.closest(".ProseMirror")||null!==e.closest(".ProseMirrorContainer")||null!==e.closest(".ProseMirror-fullscreen-container")||null!==e.closest(".ProseMirror-comments")||null!==e.closest(".RichTextEditor")||null!==e.closest(".WorkInProgressSaveStatus")||null!==e.closest("#aria-live-container")||null!==e.closest(".widget-urlsAutomatic"))}const k=Array.prototype.every,S=e=>e.nodeType===Node.TEXT_NODE;function P(e){if(b)return void(A=!0);const t=Array.isArray(e),n=[];if(t){for(const t of e){const e=t.target;if(!T(e))switch(t.type){case"attributes":t.oldValue!==e.getAttribute(t.attributeName)&&n.push(t);break;case"childList":k.call(t.addedNodes,S)&&k.call(t.removedNodes,S)||n.push(t)}}if(0===n.length)return}if(n.length>500&&(E=!0),!E)if(t)for(const e of n){const t=e.target;switch(e.type){case"attributes":L.push(t);break;case"childList":M.add(t)}}else E=!0;(E||L.length>0||M.size>0)&&!y&&(y=window.requestAnimationFrame(()=>{let e;if(!E){for(const e of M)if(e instanceof Element)for(const t of C)t.addTriggerElements(L,e);e=L}E=!1,L=[],M=new Set,y=0,C.forEach(t=>t.trigger(e))}))}function W(){document.documentElement.hidden=!1,P(),new MutationObserver(P).observe(document,{attributes:!0,attributeFilter:["class","data-bsp-autosubmit","data-chart-type","data-code-type","data-internal-name","data-tab","name","rel","target"],attributeOldValue:!0,childList:!0,subtree:!0})}function I(e,t,n){let s,i;void 0!==n?(s=e,i=t):(s=document,i=e,n=t);const o=new g(s,i,n);o.trigger(),C.push(o)}document.documentElement.hidden=!0,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",W):W(),I.triggerCallbacks=P,I.pause=()=>{b=!0},I.resume=()=>{b=!1,A&&(A=!1,setTimeout(P,100))};const N=7717==n.j?I:null},91762(e,t,n){n.d(t,{A:()=>N}),n(57573),n(49371),n(42723),n(56065),n(56673);var s=n(23707),i=n.n(s);function o(e,t,n){r(e,t),t.set(e,n)}function r(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(l(e,t))}function c(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}let d=0;var u=new WeakMap,p=new WeakMap,h=new WeakMap,m=new WeakMap,f=new WeakMap,v=new WeakSet;class g{constructor(e,t,n){var s;r(this,s=v),s.add(this),o(this,u,void 0),o(this,p,void 0),o(this,h,void 0),o(this,m,void 0),o(this,f,void 0),c(u,this,e),c(p,this,"data-ofc"+d++),Array.isArray(t)||(t=[t]),c(h,this,t.map(t.some(e=>e.indexOf(",")>-1)?e=>e:e=>`${e}:not([${a(p,this)}])`).join(",")),c(m,this,n);const i=t.map(e=>e.trim()).filter(e=>e.indexOf(" ")<0&&e.indexOf(",")<0);i.length===t.length&&c(f,this,i)}addTriggerElements(e,t){if(a(u,this).contains(t)){t.matches(a(h,this))&&e.push(t);for(const n of t.querySelectorAll(a(h,this)))e.push(n)}}trigger(e){if("loading"!==document.readyState)if(a(f,this)&&Array.isArray(e))for(const t of e)a(f,this).some(e=>t.matches(e))&&l(v,this,w).call(this,t);else for(const e of a(u,this).querySelectorAll(a(h,this)))l(v,this,w).call(this,e)}}function w(e){if(!T(e)&&!e.hasAttribute(a(p,this))){e.setAttribute(a(p,this),"");try{a(m,this).call(this,e)}catch(t){i().error("Failed callback!",e,t)}}}let y,b=!1,A=!1,E=!1,L=[],M=new Set;const C=[];function T(e){return e instanceof Element&&(null!==e.closest(".CIG-wordCount")||null!==e.closest(".ContentEdit-previewDisplay")||null!==e.closest(".ContentLabel")||null!==e.closest(".PreviewFrame-typeDisplay")||null!==e.closest(".ProseMirrorToolbar")||null!==e.closest(".ProseMirror")||null!==e.closest(".ProseMirrorContainer")||null!==e.closest(".ProseMirror-fullscreen-container")||null!==e.closest(".ProseMirror-comments")||null!==e.closest(".RichTextEditor")||null!==e.closest(".WorkInProgressSaveStatus")||null!==e.closest("#aria-live-container")||null!==e.closest(".widget-urlsAutomatic"))}const k=Array.prototype.every,S=e=>e.nodeType===Node.TEXT_NODE;function P(e){if(b)return void(A=!0);const t=Array.isArray(e),n=[];if(t){for(const t of e){const e=t.target;if(!T(e))switch(t.type){case"attributes":t.oldValue!==e.getAttribute(t.attributeName)&&n.push(t);break;case"childList":k.call(t.addedNodes,S)&&k.call(t.removedNodes,S)||n.push(t)}}if(0===n.length)return}if(n.length>500&&(E=!0),!E)if(t)for(const e of n){const t=e.target;switch(e.type){case"attributes":L.push(t);break;case"childList":M.add(t)}}else E=!0;(E||L.length>0||M.size>0)&&!y&&(y=window.requestAnimationFrame(()=>{let e;if(!E){for(const e of M)if(e instanceof Element)for(const t of C)t.addTriggerElements(L,e);e=L}E=!1,L=[],M=new Set,y=0,C.forEach(t=>t.trigger(e))}))}function W(){document.documentElement.hidden=!1,P(),new MutationObserver(P).observe(document,{attributes:!0,attributeFilter:["class","data-bsp-autosubmit","data-chart-type","data-code-type","data-internal-name","data-tab","name","rel","target"],attributeOldValue:!0,childList:!0,subtree:!0})}function I(e,t,n){let s,i;void 0!==n?(s=e,i=t):(s=document,i=e,n=t);const o=new g(s,i,n);o.trigger(),C.push(o)}document.documentElement.hidden=!0,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",W):W(),I.triggerCallbacks=P,I.pause=()=>{b=!0},I.resume=()=>{b=!1,A&&(A=!1,setTimeout(P,100))};const N=3324==n.j?I:null},48874(e,t,n){n.r(t);var s=n(32246),i=n(27170);(0,s.A)('iframe[name="AppetizeIoEmbedded"]',e=>{const t=e.getAttribute("data-preview-url");if(!t)return;const n=e.id,s=e.getAttribute("src"),o=window.parent.document.querySelector('.AppetizeIo-displayControls[id="'+n+'"]'),r=o.closest(".PreviewFrame");if(!r)return;const a=document.createElement("DIV");a.classList.add("AppetizeIo-scale");const c=document.createElement("SPAN");c.innerText="Scale";const l=document.createElement("INPUT");l.type="range",l.min=25,l.max=100,l.value=50,a.appendChild(c),a.appendChild(l),l.oninput=function(){e.contentWindow.postMessage({type:"setScale",value:l.value},s)};const d=document.createElement("SPAN");d.classList.add("AppetizeIo-rotate"),d.classList.add("is-portrait"),d.onclick=function(){d.classList.contains("is-portrait")?(d.classList.remove("is-portrait"),e.contentWindow.postMessage("rotateLeft",s)):(d.classList.add("is-portrait"),e.contentWindow.postMessage("rotateRight",s))};const u=document.createElement("SPAN");u.classList.add("AppetizeIo-restorePage"),u.onclick=function(){u.dataset.url&&e.contentWindow.postMessage({type:"url",value:u.dataset.url},s)};const p=(0,i.A)(2e3,async()=>{try{u.dataset.url||(u.dataset.url=t),e&&e.contentWindow&&e.contentWindow.postMessage({type:"url",value:t},s)}catch(e){console.error(e)}}),h=function(e){"firstFrameReceived"===e.data?(o.innerHTML="",o.contains(a)||o.appendChild(a),o.contains(d)||o.appendChild(d),o.contains(u)||o.appendChild(u),p(),r.addEventListener("brightspot-preview-update",p)):"sessionEnded"===e.data&&(o.contains(u)&&o.removeChild(u),r.removeEventListener("brightspot-preview-update",p))};window.addEventListener("message",h),window.onbeforeunload=function(){o.innerHTML="",r.removeEventListener("brightspot-preview-update",p),window.removeEventListener("message",h)}})},77875(e,t,n){n.r(t);var s=n(45055),i=n(39979);(0,s.A)('iframe[name="AppetizeIoEmbedded"]',e=>{const t=e.getAttribute("data-preview-url");if(!t)return;const n=e.id,s=e.getAttribute("src"),o=window.parent.document.querySelector('.AppetizeIo-displayControls[id="'+n+'"]'),r=o.closest(".PreviewFrame");if(!r)return;const a=document.createElement("DIV");a.classList.add("AppetizeIo-scale");const c=document.createElement("SPAN");c.innerText="Scale";const l=document.createElement("INPUT");l.type="range",l.min=25,l.max=100,l.value=50,a.appendChild(c),a.appendChild(l),l.oninput=function(){e.contentWindow.postMessage({type:"setScale",value:l.value},s)};const d=document.createElement("SPAN");d.classList.add("AppetizeIo-rotate"),d.classList.add("is-portrait"),d.onclick=function(){d.classList.contains("is-portrait")?(d.classList.remove("is-portrait"),e.contentWindow.postMessage("rotateLeft",s)):(d.classList.add("is-portrait"),e.contentWindow.postMessage("rotateRight",s))};const u=document.createElement("SPAN");u.classList.add("AppetizeIo-restorePage"),u.onclick=function(){u.dataset.url&&e.contentWindow.postMessage({type:"url",value:u.dataset.url},s)};const p=(0,i.A)(2e3,async()=>{try{u.dataset.url||(u.dataset.url=t),e&&e.contentWindow&&e.contentWindow.postMessage({type:"url",value:t},s)}catch(e){console.error(e)}}),h=function(e){"firstFrameReceived"===e.data?(o.innerHTML="",o.contains(a)||o.appendChild(a),o.contains(d)||o.appendChild(d),o.contains(u)||o.appendChild(u),p(),r.addEventListener("brightspot-preview-update",p)):"sessionEnded"===e.data&&(o.contains(u)&&o.removeChild(u),r.removeEventListener("brightspot-preview-update",p))};window.addEventListener("message",h),window.onbeforeunload=function(){o.innerHTML="",r.removeEventListener("brightspot-preview-update",p),window.removeEventListener("message",h)}})},32246(e,t,n){n.d(t,{A:()=>s.A});var s=n(56155)},45055(e,t,n){n.d(t,{A:()=>s.A});var s=n(91762)},27170(e,t,n){function s(e,t){if(e<=0)return t;let n;return function(){clearTimeout(n),n=setTimeout(()=>{n=void 0,t.apply(this,[...arguments])},e)}}n.d(t,{A:()=>s})},39979(e,t,n){function s(e,t){if(e<=0)return t;let n;return function(){clearTimeout(n),n=setTimeout(()=>{n=void 0,t.apply(this,[...arguments])},e)}}n.d(t,{A:()=>s})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunkbrightspot_cms=self.webpackChunkbrightspot_cms||[]).push([[2882],{56155(e,t,n){n.d(t,{A:()=>I}),n(44764),n(84978),n(13722),n(91672),n(92280);var r=n(59314),s=n.n(r);function o(e,t,n){i(e,t),t.set(e,n)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(l(e,t))}function c(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}let d=0;var u=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,m=new WeakMap,w=new WeakSet;class v{constructor(e,t,n){var r;i(this,r=w),r.add(this),o(this,u,void 0),o(this,p,void 0),o(this,h,void 0),o(this,f,void 0),o(this,m,void 0),c(u,this,e),c(p,this,"data-ofc"+d++),Array.isArray(t)||(t=[t]),c(h,this,t.map(t.some(e=>e.indexOf(",")>-1)?e=>e:e=>`${e}:not([${a(p,this)}])`).join(",")),c(f,this,n);const s=t.map(e=>e.trim()).filter(e=>e.indexOf(" ")<0&&e.indexOf(",")<0);s.length===t.length&&c(m,this,s)}addTriggerElements(e,t){if(a(u,this).contains(t)){t.matches(a(h,this))&&e.push(t);for(const n of t.querySelectorAll(a(h,this)))e.push(n)}}trigger(e){if("loading"!==document.readyState)if(a(m,this)&&Array.isArray(e))for(const t of e)a(m,this).some(e=>t.matches(e))&&l(w,this,b).call(this,t);else for(const e of a(u,this).querySelectorAll(a(h,this)))l(w,this,b).call(this,e)}}function b(e){if(!C(e)&&!e.hasAttribute(a(p,this))){e.setAttribute(a(p,this),"");try{a(f,this).call(this,e)}catch(t){s().error("Failed callback!",e,t)}}}let g,y=!1,E=!1,A=!1,T=[],k=new Set;const x=[];function C(e){return e instanceof Element&&(null!==e.closest(".CIG-wordCount")||null!==e.closest(".ContentEdit-previewDisplay")||null!==e.closest(".ContentLabel")||null!==e.closest(".PreviewFrame-typeDisplay")||null!==e.closest(".ProseMirrorToolbar")||null!==e.closest(".ProseMirror")||null!==e.closest(".ProseMirrorContainer")||null!==e.closest(".ProseMirror-fullscreen-container")||null!==e.closest(".ProseMirror-comments")||null!==e.closest(".RichTextEditor")||null!==e.closest(".WorkInProgressSaveStatus")||null!==e.closest("#aria-live-container")||null!==e.closest(".widget-urlsAutomatic"))}const L=Array.prototype.every,M=e=>e.nodeType===Node.TEXT_NODE;function S(e){if(y)return void(E=!0);const t=Array.isArray(e),n=[];if(t){for(const t of e){const e=t.target;if(!C(e))switch(t.type){case"attributes":t.oldValue!==e.getAttribute(t.attributeName)&&n.push(t);break;case"childList":L.call(t.addedNodes,M)&&L.call(t.removedNodes,M)||n.push(t)}}if(0===n.length)return}if(n.length>500&&(A=!0),!A)if(t)for(const e of n){const t=e.target;switch(e.type){case"attributes":T.push(t);break;case"childList":k.add(t)}}else A=!0;(A||T.length>0||k.size>0)&&!g&&(g=window.requestAnimationFrame(()=>{let e;if(!A){for(const e of k)if(e instanceof Element)for(const t of x)t.addTriggerElements(T,e);e=T}A=!1,T=[],k=new Set,g=0,x.forEach(t=>t.trigger(e))}))}function O(){document.documentElement.hidden=!1,S(),new MutationObserver(S).observe(document,{attributes:!0,attributeFilter:["class","data-bsp-autosubmit","data-chart-type","data-code-type","data-internal-name","data-tab","name","rel","target"],attributeOldValue:!0,childList:!0,subtree:!0})}function P(e,t,n){let r,s;void 0!==n?(r=e,s=t):(r=document,s=e,n=t);const o=new v(r,s,n);o.trigger(),x.push(o)}document.documentElement.hidden=!0,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",O):O(),P.triggerCallbacks=S,P.pause=()=>{y=!0},P.resume=()=>{y=!1,E&&(E=!1,setTimeout(S,100))};const I=7717==n.j?P:null},91762(e,t,n){n.d(t,{A:()=>I}),n(57573),n(49371),n(42723),n(56065),n(56673);var r=n(23707),s=n.n(r);function o(e,t,n){i(e,t),t.set(e,n)}function i(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function a(e,t){return e.get(l(e,t))}function c(e,t,n){return e.set(l(e,t),n),n}function l(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}let d=0;var u=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,m=new WeakMap,w=new WeakSet;class v{constructor(e,t,n){var r;i(this,r=w),r.add(this),o(this,u,void 0),o(this,p,void 0),o(this,h,void 0),o(this,f,void 0),o(this,m,void 0),c(u,this,e),c(p,this,"data-ofc"+d++),Array.isArray(t)||(t=[t]),c(h,this,t.map(t.some(e=>e.indexOf(",")>-1)?e=>e:e=>`${e}:not([${a(p,this)}])`).join(",")),c(f,this,n);const s=t.map(e=>e.trim()).filter(e=>e.indexOf(" ")<0&&e.indexOf(",")<0);s.length===t.length&&c(m,this,s)}addTriggerElements(e,t){if(a(u,this).contains(t)){t.matches(a(h,this))&&e.push(t);for(const n of t.querySelectorAll(a(h,this)))e.push(n)}}trigger(e){if("loading"!==document.readyState)if(a(m,this)&&Array.isArray(e))for(const t of e)a(m,this).some(e=>t.matches(e))&&l(w,this,b).call(this,t);else for(const e of a(u,this).querySelectorAll(a(h,this)))l(w,this,b).call(this,e)}}function b(e){if(!C(e)&&!e.hasAttribute(a(p,this))){e.setAttribute(a(p,this),"");try{a(f,this).call(this,e)}catch(t){s().error("Failed callback!",e,t)}}}let g,y=!1,E=!1,A=!1,T=[],k=new Set;const x=[];function C(e){return e instanceof Element&&(null!==e.closest(".CIG-wordCount")||null!==e.closest(".ContentEdit-previewDisplay")||null!==e.closest(".ContentLabel")||null!==e.closest(".PreviewFrame-typeDisplay")||null!==e.closest(".ProseMirrorToolbar")||null!==e.closest(".ProseMirror")||null!==e.closest(".ProseMirrorContainer")||null!==e.closest(".ProseMirror-fullscreen-container")||null!==e.closest(".ProseMirror-comments")||null!==e.closest(".RichTextEditor")||null!==e.closest(".WorkInProgressSaveStatus")||null!==e.closest("#aria-live-container")||null!==e.closest(".widget-urlsAutomatic"))}const L=Array.prototype.every,M=e=>e.nodeType===Node.TEXT_NODE;function S(e){if(y)return void(E=!0);const t=Array.isArray(e),n=[];if(t){for(const t of e){const e=t.target;if(!C(e))switch(t.type){case"attributes":t.oldValue!==e.getAttribute(t.attributeName)&&n.push(t);break;case"childList":L.call(t.addedNodes,M)&&L.call(t.removedNodes,M)||n.push(t)}}if(0===n.length)return}if(n.length>500&&(A=!0),!A)if(t)for(const e of n){const t=e.target;switch(e.type){case"attributes":T.push(t);break;case"childList":k.add(t)}}else A=!0;(A||T.length>0||k.size>0)&&!g&&(g=window.requestAnimationFrame(()=>{let e;if(!A){for(const e of k)if(e instanceof Element)for(const t of x)t.addTriggerElements(T,e);e=T}A=!1,T=[],k=new Set,g=0,x.forEach(t=>t.trigger(e))}))}function O(){document.documentElement.hidden=!1,S(),new MutationObserver(S).observe(document,{attributes:!0,attributeFilter:["class","data-bsp-autosubmit","data-chart-type","data-code-type","data-internal-name","data-tab","name","rel","target"],attributeOldValue:!0,childList:!0,subtree:!0})}function P(e,t,n){let r,s;void 0!==n?(r=e,s=t):(r=document,s=e,n=t);const o=new v(r,s,n);o.trigger(),x.push(o)}document.documentElement.hidden=!0,"loading"===document.readyState?document.addEventListener("DOMContentLoaded",O):O(),P.triggerCallbacks=S,P.pause=()=>{y=!0},P.resume=()=>{y=!1,E&&(E=!1,setTimeout(S,100))};const I=3324==n.j?P:null},33582(e,t,n){n.d(t,{A:()=>o});var r=n(56155);let s=0;function o(e,t){const n="_ovc"+s++,o=new IntersectionObserver(e=>{for(const r of e)if(r.isIntersecting){const e=r.target,s=e.classList;s.contains(n)||(s.add(n),o.unobserve(e),t(e))}});(0,r.A)(e,e=>{o.observe(e)})}},46391(e,t,n){n.d(t,{A:()=>o});var r=n(91762);let s=0;function o(e,t){const n="_ovc"+s++,o=new IntersectionObserver(e=>{for(const r of e)if(r.isIntersecting){const e=r.target,s=e.classList;s.contains(n)||(s.add(n),o.unobserve(e),t(e))}});(0,r.A)(e,e=>{o.observe(e)})}},67177(e,t,n){n.a(e,async(e,r)=>{try{n.r(t),n(84978),n(39589),n(91672);var s=n(10013),o=(n(29320),n(1439));window.BRIGHTSPOT?.ui.cms.enableV5UI||await n.e(4374).then(n.bind(n,34374));const e=(e,t)=>{const n=e.next(".sp-replacer").find(".sp-preview");if(t)n.attr("data-color",t);else{n.removeAttr("data-color");const r=e.prop("placeholder");t=r?.startsWith("#")&&r||"transparent"}n.find(".sp-preview-inner").css("background-color",t)};let i=0;(0,s.A)('btu-input > input[type="text"].color',t=>{const n=o(t),r=()=>n.spectrum("reflow");n.spectrum({allowEmpty:!0,cancelText:"Cancel",chooseText:"OK",clickoutFiresChange:!1,palette:(window.THEME_BUNDLE_COLOR_SWATCHES||[]).map(e=>e.color),preferredFormat:"hex6",showInitial:!1,showInput:!0,showPalette:!0,show:function(){const t=Number.parseInt(this.closest(".Popup")?this.closest(".Popup").style.zIndex:"100007")+1;n.spectrum("container").css("z-index",t),window.addEventListener("resize",r,!0),window.addEventListener("scroll",r,!0),e(n,n.val())},hide:function(){window.removeEventListener("resize",r),window.removeEventListener("scroll",r),e(n,n.val())},change:function(t){e(n,t),n[0].dispatchEvent(new Event("change",{bubbles:!0}))},move:function(t){e(n,t)}}),n.next(".sp-replacer").find(".sp-preview").attr("data-placeholder",n.prop("placeholder")),e(n,n.val()),n.on("placeholderUpdate",()=>{const t=n.next(".sp-replacer").find(".sp-preview");t.attr("data-placeholder",n.attr("placeholder")),e(n,t.attr("data-color"))});const s=t.parentNode?.querySelector(":scope > .sp-replacer");if(!s)return;const a="sp-container-"+i++,c=n.spectrum("container")[0];if(!c)return;c.id=a,s.setAttribute("aria-controls",a);const l=t.closest("dialog");l&&l.appendChild(c)}),o(window).on("resize",()=>{o(document).find('input[type="text"].color').each(function(){var e=o(this);e.spectrum&&(e.prop("disabled")?e.spectrum("disable"):e.spectrum("enable"))})}),r()}catch(e){r(e)}},1)},2784(e,t,n){n.a(e,async(e,r)=>{try{n.r(t),n(49371),n(26780),n(56065);var s=n(97204),o=(n(42129),n(88630));window.BRIGHTSPOT?.ui.cms.enableV5UI||await n.e(9561).then(n.bind(n,49561));const e=(e,t)=>{const n=e.next(".sp-replacer").find(".sp-preview");if(t)n.attr("data-color",t);else{n.removeAttr("data-color");const r=e.prop("placeholder");t=r?.startsWith("#")&&r||"transparent"}n.find(".sp-preview-inner").css("background-color",t)};let i=0;(0,s.A)('btu-input > input[type="text"].color',t=>{const n=o(t),r=()=>n.spectrum("reflow");n.spectrum({allowEmpty:!0,cancelText:"Cancel",chooseText:"OK",clickoutFiresChange:!1,palette:(window.THEME_BUNDLE_COLOR_SWATCHES||[]).map(e=>e.color),preferredFormat:"hex6",showInitial:!1,showInput:!0,showPalette:!0,show:function(){const t=Number.parseInt(this.closest(".Popup")?this.closest(".Popup").style.zIndex:"100007")+1;n.spectrum("container").css("z-index",t),window.addEventListener("resize",r,!0),window.addEventListener("scroll",r,!0),e(n,n.val())},hide:function(){window.removeEventListener("resize",r),window.removeEventListener("scroll",r),e(n,n.val())},change:function(t){e(n,t),n[0].dispatchEvent(new Event("change",{bubbles:!0}))},move:function(t){e(n,t)}}),n.next(".sp-replacer").find(".sp-preview").attr("data-placeholder",n.prop("placeholder")),e(n,n.val()),n.on("placeholderUpdate",()=>{const t=n.next(".sp-replacer").find(".sp-preview");t.attr("data-placeholder",n.attr("placeholder")),e(n,t.attr("data-color"))});const s=t.parentNode?.querySelector(":scope > .sp-replacer");if(!s)return;const a="sp-container-"+i++,c=n.spectrum("container")[0];if(!c)return;c.id=a,s.setAttribute("aria-controls",a);const l=t.closest("dialog");l&&l.appendChild(c)}),o(window).on("resize",()=>{o(document).find('input[type="text"].color').each(function(){var e=o(this);e.spectrum&&(e.prop("disabled")?e.spectrum("disable"):e.spectrum("enable"))})}),r()}catch(e){r(e)}},1)},10013(e,t,n){n.d(t,{A:()=>r.A});var r=n(33582)},97204(e,t,n){n.d(t,{A:()=>r.A});var r=n(46391)}}]);