@genesislcap/design-system-configurator 14.224.0 → 14.224.2

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 (88) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/main.31d6cfe0d16ae931b73c.js +0 -0
  3. package/package.json +12 -12
  4. package/dist/104.104.eb07ccfb64543ac7b778.js +0 -2
  5. package/dist/104.89f5d15ad9e34bb896b2e091a01bd2f4.js.map +0 -1
  6. package/dist/223.223.959f9a4fc144fa8d2c69.js +0 -2
  7. package/dist/223.8365b8afb0e3b646a934beb01062b219.js.map +0 -1
  8. package/dist/254.254.2432d5e58e8db8736235.js +0 -2
  9. package/dist/254.5d86e9f0afb0b6b635f7c48ff847d20c.js.map +0 -1
  10. package/dist/279.279.821765b8905c711696af.js +0 -4
  11. package/dist/279.61388040d5212cf9d2f9ec0b74af86b1.js.map +0 -1
  12. package/dist/359.359.e036e01a879624cdc3b5.js +0 -2
  13. package/dist/359.5a6df2fa69f71d02b96edad812335685.js.map +0 -1
  14. package/dist/401.1eecdf26f5fb03237b4d6056a6840542.js.map +0 -1
  15. package/dist/401.401.720caaf793da40e61253.js +0 -2
  16. package/dist/445.445.2ba7d4f10beca887a425.js +0 -3
  17. package/dist/445.445.2ba7d4f10beca887a425.js.LICENSE.txt +0 -4
  18. package/dist/445.c50ffd4726ee25b236e7bf65a987fa89.js.map +0 -1
  19. package/dist/531.1a80c82eaf0024eebec3fa0a0029e525.js.map +0 -1
  20. package/dist/531.531.38f0bd4f8ed0ef51875c.js +0 -3920
  21. package/dist/548.42944742c389cc52f1bf052531b9eb00.js.map +0 -1
  22. package/dist/548.548.6d3df436fbfec3077e74.js +0 -13
  23. package/dist/648.648.7db0677b6cbdd90b47e3.js +0 -2
  24. package/dist/648.64f343b0b4456706b2898bb18d0ebe3e.js.map +0 -1
  25. package/dist/653.653.0ea8e84f4140d66af4e0.js +0 -2
  26. package/dist/653.cda2755851515fbf4ce54a3f75f7351b.js.map +0 -1
  27. package/dist/674.674.0fa1aed4ceb35b7c4875.js +0 -14842
  28. package/dist/674.c3f9736072e7ac15a76c2d4cb667450a.js.map +0 -1
  29. package/dist/677.677.b7020bbdb6b2aad19226.js +0 -2
  30. package/dist/677.d43c2a841bdd138d54d9e7d2c5618d61.js.map +0 -1
  31. package/dist/698.698.91f8b2f7088a49081ec3.js +0 -2
  32. package/dist/698.702b9c49300fbe149722102917b60b19.js.map +0 -1
  33. package/dist/738.738.d55a266c63dc3615cb99.js +0 -2
  34. package/dist/738.cb15708a600650e664febd4d804346dc.js.map +0 -1
  35. package/dist/783.5d7993fa39d87abdebbc29afe67d8907.js.map +0 -1
  36. package/dist/783.783.345dd3fcb511153af073.js +0 -3
  37. package/dist/783.783.345dd3fcb511153af073.js.LICENSE.txt +0 -1
  38. package/dist/793.793.d4d7cda69fe7a59b76ee.js +0 -2
  39. package/dist/793.d69f7fca29a093dee89913984654bd27.js.map +0 -1
  40. package/dist/803.803.d83a509d3c9ad2332a7d.js +0 -2
  41. package/dist/803.813d4781a2e6c2a93f740a13b135c834.js.map +0 -1
  42. package/dist/826.4b4f684e828a56a17a42ead55be0567b.js.map +0 -1
  43. package/dist/826.826.1e632865488cd8a9db67.js +0 -3
  44. package/dist/826.826.1e632865488cd8a9db67.js.LICENSE.txt +0 -4
  45. package/dist/938.938.86ae25d2eacca36ae701.js +0 -2
  46. package/dist/938.9addb36745ec7e34fbd148c097deffd3.js.map +0 -1
  47. package/dist/999.999.1fc5aafe569c493bca27.js +0 -2
  48. package/dist/999.f6ec9482e2175fd15901ab54fb68eff8.js.map +0 -1
  49. package/dist/designSystemConfigurator.62975cb49cfed8ac4dfc527e05c059c2.js.map +0 -1
  50. package/dist/info.html +0 -1
  51. package/dist/main.64d79d5c5e5b38e65ce9c2a0af75e3b1.js.map +0 -1
  52. package/dist/main.c400d1af7995e9463beb.js +0 -2
  53. package/dist/npm.ag-grid-community.909.fda3af82c75743cc9fec.js +0 -3
  54. package/dist/npm.ag-grid-community.909.fda3af82c75743cc9fec.js.LICENSE.txt +0 -6
  55. package/dist/npm.ag-grid-community.c79b2ae2bd4ec712dbfab22a68395400.js.map +0 -1
  56. package/dist/npm.ajv.353.d623555e6beec3a3b917.js +0 -8
  57. package/dist/npm.ajv.5a0fcf0075f568eb3929a5eb47fe4962.js.map +0 -1
  58. package/dist/npm.analytics.140.78869ced13074401388c.js +0 -2
  59. package/dist/npm.analytics.9569a83884eb0a76b3bb098520c66881.js.map +0 -1
  60. package/dist/npm.bowser.14.c8575fd16e2f24e4a0a8.js +0 -2
  61. package/dist/npm.bowser.16a511357e0d68e19547d1dbeaba9d01.js.map +0 -1
  62. package/dist/npm.dialog-polyfill.1cc147f3b8f2187ffa4b07cbd7c32798.js.map +0 -1
  63. package/dist/npm.dialog-polyfill.724.1dd27dae9b5d32e51925.js +0 -2
  64. package/dist/npm.fortawesome.0599c0019ce005f108ac2b46b4a140bf.js.map +0 -1
  65. package/dist/npm.fortawesome.308.757f6d1eafa49a539361.js +0 -2
  66. package/dist/npm.http-status-codes.3ed130bd2a60e085346b88c1d5b2bd0e.js.map +0 -1
  67. package/dist/npm.http-status-codes.582.d861775aedfa6cb9994b.js +0 -2
  68. package/dist/npm.json-schema-tools.6eea636248ad604d9c73563fcbd938c2.js.map +0 -1
  69. package/dist/npm.json-schema-tools.708.b818843c8ef3875c3cda.js +0 -2
  70. package/dist/npm.jsonforms.148622b96aebf469b153fd66b5d66e36.js.map +0 -1
  71. package/dist/npm.jsonforms.283.21d5d779a2700eeffdde.js +0 -2
  72. package/dist/npm.lodash.23.1d7f9ce2acd1e0fa6690.js +0 -2
  73. package/dist/npm.lodash.ba3e45e67057652ae73919baee634464.js.map +0 -1
  74. package/dist/npm.lossless-json.333.787d51aac38f55c560a0.js +0 -2
  75. package/dist/npm.lossless-json.bc69d27ef21a1dd7020fc82d631cfa61.js.map +0 -1
  76. package/dist/npm.microsoft.0672c016cd36c90579da822a2bcf4065.js.map +0 -1
  77. package/dist/npm.microsoft.544.8af00df358843c4e2040.js +0 -6402
  78. package/dist/npm.popperjs.5fa0b67b695c11e87e47128e58df98b2.js.map +0 -1
  79. package/dist/npm.popperjs.843.e3a0f5748b70fd20e7ae.js +0 -2
  80. package/dist/npm.rxjs.543.1ba8214d176b752bc1b8.js +0 -2
  81. package/dist/npm.rxjs.f8623ade7f5b52651f3ebcae0b7b8098.js.map +0 -1
  82. package/dist/npm.tslib.33dc2d6b97ea85e1110deaf4ea8d4ea8.js.map +0 -1
  83. package/dist/npm.tslib.520.a8b9712326a227afa1b2.js +0 -3
  84. package/dist/npm.tslib.520.a8b9712326a227afa1b2.js.LICENSE.txt +0 -14
  85. package/dist/npm.uri-js.498.fb2b5a38c722074714af.js +0 -3
  86. package/dist/npm.uri-js.498.fb2b5a38c722074714af.js.LICENSE.txt +0 -1
  87. package/dist/npm.uri-js.4c0e5073c738ecc37f4419d371115b6f.js.map +0 -1
  88. package/dist/remoteEntry.js +0 -2
@@ -1,3920 +0,0 @@
1
- (self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[531],{91386:(e,t,o)=>{"use strict";o.d(t,{GJ:()=>r,O:()=>s,tF:()=>n,uR:()=>d});o(21566);var i=o(51830);function a(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(e){return null}}function n(){if(i.Bd){var e=navigator,t=e.languages;return e.userLanguage||(t&&t.length?t[0]:e.language)}}function s(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(e){}}function r(e){return function(e){for(var t,o=Object.create(null),i=/([^&=]+)=?([^&]*)/g;t=i.exec(e);){var n=a(t[1]),s=a(t[2]);"[]"===n.substring(n.length-2)?(o[n=n.substring(0,n.length-2)]||(o[n]=[])).push(s):o[n]=""===s||s}for(var r in o){var d=r.split("[");d.length>1&&(l(o,d.map((function(e){return e.replace(/[?[\]\\ ]/g,"")})),o[r]),delete o[r])}return o}(function(e){if(e){var t=e.match(/\?(.*)/);return t&&t[1]?t[1].split("#")[0]:""}return i.Bd&&window.location.search.substring(1)}(e))}function l(e,t,o){for(var i=t.length-1,a=0;a<i;++a){var n=t[a];if("__proto__"===n||"constructor"===n)break;n in e||(e[n]={}),e=e[n]}e[t[i]]=o}function d(){for(var e="",t=0,o=4294967295*Math.random()|0;t++<36;){var i="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[t-1],a=15&o;e+="-"==i||"4"==i?i:("x"==i?a:3&a|8).toString(16),o=t%8==0?4294967295*Math.random()|0:o>>4}return e}},58915:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,o=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,n={},s=function(e){return(e=+e)+(e>68?1900:2e3)},r=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),o=60*t[1]+(+t[2]||0);return 0===o?0:"+"===t[0]?-o:o}(e)}],d=function(e){var t=n[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var o,i=n.meridiem;if(i){for(var a=1;a<=24;a+=1)if(e.indexOf(i(a,0,t))>-1){o=a>12;break}}else o=e===(t?"pm":"PM");return o},u={A:[a,function(e){this.afternoon=c(e,!1)}],a:[a,function(e){this.afternoon=c(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,r("seconds")],ss:[i,r("seconds")],m:[i,r("minutes")],mm:[i,r("minutes")],H:[i,r("hours")],h:[i,r("hours")],HH:[i,r("hours")],hh:[i,r("hours")],D:[i,r("day")],DD:[o,r("day")],Do:[a,function(e){var t=n.ordinal,o=e.match(/\d+/);if(this.day=o[0],t)for(var i=1;i<=31;i+=1)t(i).replace(/\[|\]/g,"")===e&&(this.day=i)}],M:[i,r("month")],MM:[o,r("month")],MMM:[a,function(e){var t=d("months"),o=(d("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(o<1)throw new Error;this.month=o%12||o}],MMMM:[a,function(e){var t=d("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,r("year")],YY:[o,function(e){this.year=s(e)}],YYYY:[/\d{4}/,r("year")],Z:l,ZZ:l};function h(o){var i,a;i=o,a=n&&n.formats;for(var s=(o=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,o,i){var n=i&&i.toUpperCase();return o||a[i]||e[i]||a[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))).match(t),r=s.length,l=0;l<r;l+=1){var d=s[l],c=u[d],h=c&&c[0],p=c&&c[1];s[l]=p?{regex:h,parser:p}:d.replace(/^\[|\]$/g,"")}return function(e){for(var t={},o=0,i=0;o<r;o+=1){var a=s[o];if("string"==typeof a)i+=a.length;else{var n=a.regex,l=a.parser,d=e.slice(i),c=n.exec(d)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var o=e.hours;t?o<12&&(e.hours+=12):12===o&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,o){o.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var i=t.prototype,a=i.parse;i.parse=function(e){var t=e.date,i=e.utc,s=e.args;this.$u=i;var r=s[1];if("string"==typeof r){var l=!0===s[2],d=!0===s[3],c=l||d,u=s[2];d&&(u=s[2]),n=this.$locale(),!l&&u&&(n=o.Ls[u]),this.$d=function(e,t,o){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=h(t)(e),a=i.year,n=i.month,s=i.day,r=i.hours,l=i.minutes,d=i.seconds,c=i.milliseconds,u=i.zone,p=new Date,m=s||(a||n?1:p.getDate()),v=a||p.getFullYear(),g=0;a&&!n||(g=n>0?n-1:p.getMonth());var b=r||0,f=l||0,y=d||0,x=c||0;return u?new Date(Date.UTC(v,g,m,b,f,y,x+60*u.offset*1e3)):o?new Date(Date.UTC(v,g,m,b,f,y,x)):new Date(v,g,m,b,f,y,x)}catch(e){return new Date("")}}(t,r,i),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),c&&t!=this.format(r)&&(this.$d=new Date("")),n={}}else if(r instanceof Array)for(var p=r.length,m=1;m<=p;m+=1){s[1]=r[m-1];var v=o.apply(this,s);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}m===p&&(this.$d=new Date(""))}else a.call(this,e)}}}()},33839:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}()},7554:function(e){e.exports=function(){"use strict";return function(e,t,o){var i=t.prototype,a=function(e){return e&&(e.indexOf?e:e.s)},n=function(e,t,o,i,n){var s=e.name?e:e.$locale(),r=a(s[t]),l=a(s[o]),d=r||l.map((function(e){return e.slice(0,i)}));if(!n)return d;var c=s.weekStart;return d.map((function(e,t){return d[(t+(c||0))%7]}))},s=function(){return o.Ls[o.locale()]},r=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):n(e,"months")},monthsShort:function(t){return t?t.format("MMM"):n(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):n(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):n(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):n(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return r(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return l.bind(this)()},o.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return o.weekdays()},weekdaysShort:function(){return o.weekdaysShort()},weekdaysMin:function(){return o.weekdaysMin()},months:function(){return o.months()},monthsShort:function(){return o.monthsShort()},longDateFormat:function(t){return r(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},o.months=function(){return n(s(),"months")},o.monthsShort=function(){return n(s(),"monthsShort","months",3)},o.weekdays=function(e){return n(s(),"weekdays",null,null,e)},o.weekdaysShort=function(e){return n(s(),"weekdaysShort","weekdays",3,e)},o.weekdaysMin=function(e){return n(s(),"weekdaysMin","weekdays",2,e)}}}()},49916:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,o,i){var a=o.prototype,n=a.format;i.en.formats=e,a.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var o=this.$locale().formats,i=function(t,o){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,i,a){var n=a&&a.toUpperCase();return i||o[a]||e[a]||o[n].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,o){return t||o.slice(1)}))}))}(t,void 0===o?{}:o);return n.call(this,i)}}}()},21566:function(e){e.exports=function(e,t,o,i,a){for(t=t.split?t.split("."):t,i=0;i<t.length;i++)e=e?e[t[i]]:a;return e===a?o:e}},31972:(e,t,o)=>{"use strict";o.r(t),o.d(t,{Accordion:()=>c,AccordionItem:()=>g,ActionsMenu:()=>T,Anchor:()=>N,AnchoredRegion:()=>B,Avatar:()=>W,Badge:()=>J,Banner:()=>de,BaseDatasource:()=>gt,Breadcrumb:()=>pe,BreadcrumbItem:()=>ye,Button:()=>ke,COMBO_INPUT_MIN_LENGTH:()=>gl,CSSVarsTokenMapper:()=>mu,Calendar:()=>Le,Card:()=>Me,CategorizedMultiselect:()=>Ke,Checkbox:()=>Je,Combobox:()=>It,ConnectionIndicator:()=>jt,DEFUALT_FILTER_BAR_COLUMNS:()=>on,DataGrid:()=>Yt,DataGridCell:()=>Zt,DataGridDatasource:()=>vu,DataGridRow:()=>oo,DatePicker:()=>ko,Dialog:()=>Si,DialogElement:()=>$i,Disclosure:()=>_i,Divider:()=>Ai,DropdownMenu:()=>ji,ErrorBanner:()=>Wi,ErrorBoundary:()=>ra,ErrorBoundaryEvent:()=>Ki,ErrorDialog:()=>pa,FaPrefixFromStyle:()=>ns,FileUpload:()=>Ia,Filter:()=>qa,FilterBar:()=>an,FilterEvents:()=>Wa,FlexLayout:()=>hn,FlexMediaQueriesEnum:()=>sn,Flipper:()=>gn,Flyout:()=>Cn,FoundationDesignSystemProvider:()=>mi,FoundationRouteCollection:()=>Nu,FoundationRouter:()=>Au,FoundationRouterConfiguration:()=>Iu,GridLayout:()=>In,GridLayoutItem:()=>Bn,GridMediaQueriesEnum:()=>On,HorizontalScroll:()=>Gn,INPUT_MIN_LENGTH:()=>vl,Icon:()=>ls,Listbox:()=>hs,ListboxOption:()=>fs,Menu:()=>Cs,MenuItem:()=>Ts,Modal:()=>Hs,Multiselect:()=>Ws,MultiselectDatasource:()=>js,NotificationListener:()=>yu,NumberField:()=>Qs,OptionsDatasource:()=>Tt,Popper:()=>zr,Position:()=>ze,Progress:()=>kr,ProgressRing:()=>Wr,Radio:()=>Jr,RadioGroup:()=>nl,SCROLL_TIMEOUT:()=>ml,SNACKBAR_CLOSE_TIMEOUT:()=>md,SNACKBAR_EVENTS_NAMES:()=>vd,SNACKBAR_TYPES:()=>pd,SNACKBAR_TYPE_DEFAULT:()=>hd,SearchBar:()=>fl,SearchBarCombobox:()=>Cl,SegmentedControl:()=>Tl,SegmentedItem:()=>Rl,Select:()=>jl,Skeleton:()=>ql,Slider:()=>od,SliderLabel:()=>ld,Snackbar:()=>xd,StackingIcons:()=>Cd,Stepper:()=>Dd,StepperTab:()=>Md,StepperTabPanel:()=>jd,Switch:()=>qd,SystemHealthOverlay:()=>Ar,Tab:()=>ec,TabPanel:()=>sc,Tabs:()=>hc,TextArea:()=>fc,TextField:()=>Fc,Toast:()=>Nc,Toolbar:()=>Hc,Tooltip:()=>Gc,TreeItem:()=>Xc,TreeView:()=>ou,UrlInput:()=>uu,accentFillActive:()=>s.accentFillActive,accentFillActiveDelta:()=>s.accentFillActiveDelta,accentFillFocus:()=>s.accentFillFocus,accentFillFocusDelta:()=>s.accentFillFocusDelta,accentFillHover:()=>s.accentFillHover,accentFillHoverDelta:()=>s.accentFillHoverDelta,accentFillRest:()=>s.accentFillRest,accentFillRestDelta:()=>s.accentFillRestDelta,accentForegroundActive:()=>s.accentForegroundActive,accentForegroundActiveDelta:()=>s.accentForegroundActiveDelta,accentForegroundFocus:()=>s.accentForegroundFocus,accentForegroundFocusDelta:()=>s.accentForegroundFocusDelta,accentForegroundHover:()=>s.accentForegroundHover,accentForegroundHoverDelta:()=>s.accentForegroundHoverDelta,accentForegroundRest:()=>s.accentForegroundRest,accentForegroundRestDelta:()=>s.accentForegroundRestDelta,accentPalette:()=>s.accentPalette,accentPaletteValue:()=>ii,actionsMenuBaseStyles:()=>$,baseComponents:()=>pu,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,baseLayerLuminanceValue:()=>ni,black:()=>Do,bodyFont:()=>s.bodyFont,categorizedMultiselectStyles:()=>Ve,categorizedMultiselectTemplate:()=>Ye,closeIcon:()=>Ba,configureDesignSystem:()=>oi,controlCornerRadius:()=>s.controlCornerRadius,controlCornerRadiusValue:()=>ri,createDesignSystemProxy:()=>Dr,createFormData:()=>Oa,crossIcon:()=>cl,defaultAccordionConfig:()=>h,defaultAccordionItemConfig:()=>f,defaultAnchorConfig:()=>R,defaultAnchoredRegionConfig:()=>j,defaultAvatarConfig:()=>K,defaultBadgeConfig:()=>te,defaultBreadcrumbConfig:()=>ve,defaultBreadcrumbItemConfig:()=>we,defaultButtonConfig:()=>_e,defaultCalendarConfig:()=>Ae,defaultCardConfig:()=>Pe,defaultCategorizedMultiselectConfig:()=>qe,defaultCheckboxConfig:()=>tt,defaultComboboxConfig:()=>Mt,defaultDataGridCellConfig:()=>Jt,defaultDataGridConfig:()=>qt,defaultDataGridRowConfig:()=>ao,defaultDatePickerConfig:()=>Co,defaultDialogConfig:()=>wi,defaultDisclosureConfig:()=>Di,defaultDividerConfig:()=>Ii,defaultFileUploadConfig:()=>Ma,defaultFillColor:()=>Lo,defaultFlexLayoutConfig:()=>un,defaultFlipperConfig:()=>fn,defaultFlyoutConfig:()=>Fn,defaultGridLayoutConfig:()=>An,defaultGridLayoutItemConfig:()=>Pn,defaultHorizontalScrollConfig:()=>Yn,defaultIconConfig:()=>as,defaultListboxConfig:()=>ms,defaultListboxOptionConfig:()=>xs,defaultMenuConfig:()=>Fs,defaultMenuItemConfig:()=>Es,defaultModalConfig:()=>Ms,defaultMultiselectConfig:()=>Ys,defaultNavItemPredicate:()=>Su,defaultNeutralForegroundContrast:()=>Go,defaultNumberFieldConfig:()=>er,defaultPlacementIndexPadding:()=>Cu,defaultProgressConfig:()=>_r,defaultProgressRingConfig:()=>Kr,defaultRadioConfig:()=>tl,defaultRadioGroupConfig:()=>rl,defaultSearchBarComboboxConfig:()=>Fl,defaultSearchBarConfig:()=>xl,defaultSegmentedControlConfig:()=>El,defaultSegmentedItemConfig:()=>Hl,defaultSelectConfig:()=>Gl,defaultSkeletonConfig:()=>Xl,defaultSliderConfig:()=>ad,defaultSliderLabelConfig:()=>cd,defaultStepperConfig:()=>Ld,defaultStepperTabConfig:()=>Pd,defaultStepperTabPanelConfig:()=>Gd,defaultSwitchConfig:()=>Xd,defaultSystemHealthOverlayConfig:()=>Mr,defaultTabConfig:()=>oc,defaultTabPanelConfig:()=>lc,defaultTabsConfig:()=>mc,defaultTextAreaConfig:()=>xc,defaultTextFieldConfig:()=>Oc,defaultToastConfig:()=>Ac,defaultToolbarConfig:()=>Bc,defaultTooltipConfig:()=>Yc,defaultTreeItemConfig:()=>Qc,defaultTreeViewConfig:()=>au,defaultUrlInputConfig:()=>cu,defineFactory:()=>wu,density:()=>s.density,designToken:()=>Ko,designUnit:()=>s.designUnit,designUnitValue:()=>li,direction:()=>s.direction,directionValue:()=>si,disabledOpacity:()=>s.disabledOpacity,downloadFile:()=>Ta,dropdownMenuBaseStyles:()=>Mi,errorDialogTemplate:()=>ua,extractMenuItems:()=>Pi,faSizeValueDefault:()=>ss,faSizeValues:()=>rs,fillColor:()=>s.fillColor,filterBarTemplate:()=>en,flyoutAnimationTime:()=>xn,focusStrokeInner:()=>s.focusStrokeInner,focusStrokeOuter:()=>s.focusStrokeOuter,focusStrokeWidth:()=>s.focusStrokeWidth,foregroundOnAccentActive:()=>s.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>s.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>s.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>s.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>s.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>s.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>s.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>s.foregroundOnAccentRestLarge,foundationAccordion:()=>p,foundationAccordionItem:()=>y,foundationAccordionItemShadowOptions:()=>b,foundationAccordionItemStyles:()=>m,foundationAccordionItemTemplate:()=>v,foundationAccordionShadowOptions:()=>u,foundationAccordionStyles:()=>l,foundationAccordionTemplate:()=>d,foundationActionsMenu:()=>L,foundationActionsMenuStyles:()=>S,foundationActionsMenuTemplate:()=>D,foundationAnchor:()=>M,foundationAnchorShadowOptions:()=>I,foundationAnchorStyles:()=>E,foundationAnchorTemplate:()=>A,foundationAnchoredRegion:()=>V,foundationAnchoredRegionShadowOptions:()=>z,foundationAnchoredRegionStyles:()=>P,foundationAnchoredRegionTemplate:()=>H,foundationAvatar:()=>X,foundationAvatarShadowOptions:()=>q,foundationAvatarStyles:()=>G,foundationAvatarTemplate:()=>U,foundationBadge:()=>oe,foundationBadgeShadowOptions:()=>ee,foundationBadgeStyles:()=>Z,foundationBadgeTemplate:()=>Q,foundationBanner:()=>ce,foundationBannerShadowOptions:()=>le,foundationBannerStyles:()=>ne,foundationBannerTemplate:()=>re,foundationBreadcrumb:()=>ge,foundationBreadcrumbItem:()=>$e,foundationBreadcrumbItemShadowOptions:()=>xe,foundationBreadcrumbItemStyles:()=>be,foundationBreadcrumbItemTemplate:()=>fe,foundationBreadcrumbShadowOptions:()=>me,foundationBreadcrumbStyles:()=>ue,foundationBreadcrumbTemplate:()=>he,foundationButton:()=>Oe,foundationButtonShadowOptions:()=>Fe,foundationButtonStyles:()=>Se,foundationButtonTemplate:()=>Ce,foundationCalendar:()=>Ne,foundationCalendarShadowOptions:()=>Ee,foundationCalendarStyles:()=>De,foundationCalendarTemplate:()=>Te,foundationCard:()=>Be,foundationCardShadowOptions:()=>He,foundationCardStyles:()=>Ie,foundationCardTemplate:()=>Re,foundationCategorizedMultiselect:()=>Xe,foundationCategorizedMultiselectShadowOptions:()=>We,foundationCheckbox:()=>ot,foundationCheckboxShadowOptions:()=>et,foundationCheckboxStyles:()=>Ze,foundationCheckboxTemplate:()=>Qe,foundationCombobox:()=>Ht,foundationComboboxShadowOptions:()=>Rt,foundationComboboxStyles:()=>Lt,foundationComboboxTemplate:()=>Et,foundationConnectionIndicator:()=>Vt,foundationConnectionIndicatorStyles:()=>Bt,foundationConnectionIndicatorTemplate:()=>zt,foundationDataGrid:()=>Kt,foundationDataGridCell:()=>eo,foundationDataGridCellShadowOptions:()=>Qt,foundationDataGridCellStyles:()=>Xt,foundationDataGridCellTemplate:()=>n.dataGridCellTemplate,foundationDataGridRow:()=>no,foundationDataGridRowShadowOptions:()=>io,foundationDataGridRowStyles:()=>to,foundationDataGridRowTemplate:()=>n.dataGridRowTemplate,foundationDataGridShadowOptions:()=>Wt,foundationDataGridStyles:()=>Gt,foundationDataGridTemplate:()=>Ut,foundationDatePicker:()=>Fo,foundationDatePickerShadowOptions:()=>So,foundationDatePickerStyles:()=>xo,foundationDatePickerTemplate:()=>$o,foundationDesignSystemProvider:()=>vi,foundationDialog:()=>Ci,foundationDialogShadowOptions:()=>xi,foundationDialogStyles:()=>bi,foundationDialogTemplate:()=>yi,foundationDisclosure:()=>Ti,foundationDisclosureShadowOptions:()=>Oi,foundationDisclosureStyles:()=>ki,foundationDisclosureTemplate:()=>Fi,foundationDivider:()=>Ri,foundationDividerShadowOptions:()=>Ni,foundationDividerStyles:()=>Li,foundationDividerTemplate:()=>Ei,foundationDropdownMenu:()=>Vi,foundationDropdownMenuStyles:()=>Hi,foundationDropdownMenuTemplate:()=>zi,foundationErrorBanner:()=>qi,foundationErrorBannerShadowOptions:()=>Yi,foundationErrorBannerTemplate:()=>Ui,foundationErrorBoundary:()=>la,foundationErrorBoundaryShadowOptions:()=>sa,foundationErrorBoundaryTemplate:()=>na,foundationErrorDialog:()=>ma,foundationErrorDialogShadowOptions:()=>ha,foundationErrorDialogStyles:()=>da,foundationFileUpload:()=>Ha,foundationFileUploadShadowOptions:()=>Ra,foundationFileUploadStyles:()=>ga,foundationFileUploadTemplate:()=>fa,foundationFilter:()=>Ka,foundationFilterBar:()=>nn,foundationFilterBarStyles:()=>Za,foundationFilterBarTemplate:()=>tn,foundationFilterStyles:()=>Pa,foundationFilterTemplate:()=>Ya,foundationFlexLayout:()=>pn,foundationFlexLayoutShadowOptions:()=>cn,foundationFlexLayoutStyles:()=>ln,foundationFlexLayoutTemplate:()=>dn,foundationFlipper:()=>yn,foundationFlipperShadowOptions:()=>bn,foundationFlipperStyles:()=>mn,foundationFlipperTemplate:()=>vn,foundationFlyout:()=>_n,foundationFlyoutShadowOptions:()=>kn,foundationFlyoutStyles:()=>wn,foundationFlyoutTemplate:()=>Sn,foundationGridLayout:()=>Rn,foundationGridLayoutItem:()=>zn,foundationGridLayoutItemShadowOptions:()=>Hn,foundationGridLayoutItemTemplate:()=>Mn,foundationGridLayoutShadowOptions:()=>En,foundationGridLayoutStyles:()=>Tn,foundationGridLayoutTemplate:()=>Ln,foundationHorizontalScroll:()=>Wn,foundationHorizontalScrollShadowOptions:()=>Un,foundationHorizontalScrollStyles:()=>jn,foundationHorizontalScrollTemplate:()=>Vn,foundationIcon:()=>ds,foundationIconShadowOptions:()=>is,foundationIconStyles:()=>es,foundationIconTemplate:()=>os,foundationListbox:()=>vs,foundationListboxOption:()=>ws,foundationListboxOptionShadowOptions:()=>ys,foundationListboxOptionStyles:()=>gs,foundationListboxOptionTemplate:()=>bs,foundationListboxShadowOptions:()=>ps,foundationListboxStyles:()=>cs,foundationListboxTemplate:()=>us,foundationMenu:()=>_s,foundationMenuItem:()=>As,foundationMenuItemShadowOptions:()=>Ls,foundationMenuItemStyles:()=>Os,foundationMenuItemTemplate:()=>Ds,foundationMenuShadowOptions:()=>ks,foundationMenuStyles:()=>$s,foundationMenuTemplate:()=>Ss,foundationModal:()=>Ps,foundationModalShadowOptions:()=>Rs,foundationModalStyles:()=>Ns,foundationModalTemplate:()=>Is,foundationMultiselect:()=>qs,foundationMultiselectShadowOptions:()=>Us,foundationNotificationListener:()=>xu,foundationNotificationListenerShadowOptions:()=>fu,foundationNotificationListenerTemplate:()=>gu,foundationNumberField:()=>tr,foundationNumberFieldShadowOptions:()=>Js,foundationNumberFieldStyles:()=>Xs,foundationNumberFieldTemplate:()=>Zs,foundationPopper:()=>Gr,foundationProgress:()=>Or,foundationProgressRing:()=>Xr,foundationProgressRingShadowOptions:()=>qr,foundationProgressRingStyles:()=>Ur,foundationProgressRingTemplate:()=>Yr,foundationProgressShadowOptions:()=>Fr,foundationProgressStyles:()=>Sr,foundationProgressTemplate:()=>Cr,foundationRadio:()=>ol,foundationRadioGroup:()=>ll,foundationRadioGroupShadowOptions:()=>sl,foundationRadioGroupStyles:()=>il,foundationRadioGroupTemplate:()=>al,foundationRadioShadowOptions:()=>el,foundationRadioStyles:()=>Zr,foundationRadioTemplate:()=>Qr,foundationSearchBar:()=>wl,foundationSearchBarCombobox:()=>_l,foundationSearchBarComboboxShadowOptions:()=>kl,foundationSearchBarComboboxStyles:()=>$l,foundationSearchBarComboboxTemplate:()=>Sl,foundationSearchBarShadowOptions:()=>yl,foundationSearchBarStyles:()=>dl,foundationSearchBarTemplate:()=>pl,foundationSegmentedControl:()=>Al,foundationSegmentedControlShadowOptions:()=>Ll,foundationSegmentedControlStyles:()=>Ol,foundationSegmentedControlTemplate:()=>Dl,foundationSegmentedItem:()=>Pl,foundationSegmentedItemShadowOptions:()=>Ml,foundationSegmentedItemStyles:()=>Nl,foundationSegmentedItemTemplate:()=>Il,foundationSelect:()=>Ul,foundationSelectShadowOptions:()=>Vl,foundationSelectStyles:()=>Bl,foundationSelectTemplate:()=>zl,foundationSkeleton:()=>Zl,foundationSkeletonShadowOptions:()=>Kl,foundationSkeletonStyles:()=>Yl,foundationSkeletonTemplate:()=>Wl,foundationSlider:()=>nd,foundationSliderLabel:()=>ud,foundationSliderLabelShadowOptions:()=>dd,foundationSliderLabelStyles:()=>sd,foundationSliderLabelTemplate:()=>rd,foundationSliderShadowOptions:()=>id,foundationSliderStyles:()=>Ql,foundationSliderTemplate:()=>td,foundationSnackbar:()=>wd,foundationSnackbarShadowOptions:()=>yd,foundationSnackbarStyles:()=>gd,foundationSnackbarTemplate:()=>fd,foundationStackingIcons:()=>kd,foundationStackingIconsStyles:()=>$d,foundationStackingIconsTemplate:()=>Sd,foundationStepper:()=>Ed,foundationStepperShadowOptions:()=>Td,foundationStepperStyles:()=>Fd,foundationStepperTab:()=>Bd,foundationStepperTabPanel:()=>Ud,foundationStepperTabPanelShadowOptions:()=>Vd,foundationStepperTabPanelTemplate:()=>zd,foundationStepperTabShadowOptions:()=>Hd,foundationStepperTabStyles:()=>Ad,foundationStepperTabTemplate:()=>Rd,foundationStepperTemplate:()=>Od,foundationSwitch:()=>Zd,foundationSwitchShadowOptions:()=>Kd,foundationSwitchStyles:()=>Yd,foundationSwitchTemplate:()=>Wd,foundationSystemHealthOverlay:()=>Hr,foundationSystemHealthOverlayShadowOptions:()=>Rr,foundationSystemHealthOverlayStyles:()=>Ir,foundationSystemHealthOverlayTemplate:()=>Nr,foundationTab:()=>ic,foundationTabPanel:()=>dc,foundationTabPanelShadowOptions:()=>rc,foundationTabPanelStyles:()=>ac,foundationTabPanelTemplate:()=>nc,foundationTabShadowOptions:()=>tc,foundationTabStyles:()=>Qd,foundationTabTemplate:()=>Jd,foundationTabs:()=>vc,foundationTabsShadowOptions:()=>pc,foundationTabsStyles:()=>cc,foundationTabsTemplate:()=>uc,foundationTextArea:()=>wc,foundationTextAreaShadowOptions:()=>yc,foundationTextAreaStyles:()=>gc,foundationTextAreaTemplate:()=>bc,foundationTextField:()=>Dc,foundationTextFieldShadowOptions:()=>_c,foundationTextFieldStyles:()=>Cc,foundationTextFieldTemplate:()=>kc,foundationToast:()=>Ic,foundationToastShadowOptions:()=>Ec,foundationToastStyles:()=>Tc,foundationToastTemplate:()=>Lc,foundationToolbar:()=>zc,foundationToolbarShadowOptions:()=>Pc,foundationToolbarStyles:()=>Rc,foundationToolbarTemplate:()=>Mc,foundationTooltip:()=>Wc,foundationTooltipShadowOptions:()=>Uc,foundationTooltipStyles:()=>jc,foundationTooltipTemplate:()=>Vc,foundationTreeItem:()=>Jc,foundationTreeItemShadowOptions:()=>Zc,foundationTreeItemStyles:()=>qc,foundationTreeItemTemplate:()=>Kc,foundationTreeView:()=>nu,foundationTreeViewShadowOptions:()=>iu,foundationTreeViewStyles:()=>eu,foundationTreeViewTemplate:()=>tu,foundationUrlInput:()=>hu,foundationUrlInputShadowOptions:()=>du,foundationUrlInputStyles:()=>su,foundationUrlInputTemplate:()=>lu,fuiAccentPalette:()=>Bo,fuiAccentSwatch:()=>Po,fuiCardFillColor:()=>Vo,fuiCardForegroundColor:()=>Yo,fuiDefaultCardFillColor:()=>Ao,fuiDefaultCardPalette:()=>No,fuiFillColor:()=>jo,fuiNeutralPalette:()=>Mo,fuiNeutralSwatch:()=>Ro,getBannerTemplate:()=>se,getCriteriaBuilder:()=>bl,getDefaultConfig:()=>Jo,getDesignSystemPrefix:()=>F,getDialogTemplate:()=>fi,getDropdownMenuTemplate:()=>Bi,getErrorDialogTemplate:()=>ca,getExports:()=>ei,getFontawesomeIconsCss:()=>Jn,getNavItems:()=>ku,getPrefixedCategorizedMultiselect:()=>Ue,getPrefixedDatePicker:()=>wo,getPrefixedErrorBanner:()=>Gi,getPrefixedFileUpload:()=>ba,getPrefixedFilterTemplate:()=>Ua,getPrefixedFlyout:()=>$n,getPrefixedIcon:()=>ts,getPrefixedMultiselect:()=>Vs,getPrefixedSearchBar:()=>hl,getPrefixedSnackbar:()=>bd,getPrefixedStepper:()=>_d,getPrefixedStepperTab:()=>Id,getPrefixedUrlInput:()=>ru,getTypeRampValue:()=>ti,jsonConverter:()=>Br,mapType:()=>Qa,maxheight:()=>Bs,media:()=>Y,menuTemplate:()=>_,mixinFoundationFontFamily:()=>ci,multiselectStyles:()=>zs,multiselectTemplate:()=>Gs,neutralFillActive:()=>s.neutralFillActive,neutralFillActiveDelta:()=>s.neutralFillActiveDelta,neutralFillFocus:()=>s.neutralFillFocus,neutralFillFocusDelta:()=>s.neutralFillFocusDelta,neutralFillHover:()=>s.neutralFillHover,neutralFillHoverDelta:()=>s.neutralFillHoverDelta,neutralFillInputActive:()=>s.neutralFillInputActive,neutralFillInputActiveDelta:()=>s.neutralFillInputActiveDelta,neutralFillInputFocus:()=>s.neutralFillInputFocus,neutralFillInputFocusDelta:()=>s.neutralFillInputFocusDelta,neutralFillInputHover:()=>s.neutralFillInputHover,neutralFillInputHoverDelta:()=>s.neutralFillInputHoverDelta,neutralFillInputRest:()=>s.neutralFillInputRest,neutralFillInputRestDelta:()=>s.neutralFillInputRestDelta,neutralFillLayerRest:()=>s.neutralFillLayerRest,neutralFillLayerRestDelta:()=>s.neutralFillLayerRestDelta,neutralFillRest:()=>s.neutralFillRest,neutralFillRestDelta:()=>s.neutralFillRestDelta,neutralFillStealthActive:()=>s.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>s.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>s.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>s.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>s.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>s.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>s.neutralFillStealthRest,neutralFillStealthRestDelta:()=>s.neutralFillStealthRestDelta,neutralFillStrongActive:()=>s.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>s.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>s.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>s.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>s.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>s.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>s.neutralFillStrongRest,neutralFillStrongRestDelta:()=>s.neutralFillStrongRestDelta,neutralForeground:()=>Uo,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralPaletteValue:()=>ai,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,optionsMaxheight:()=>je,paletteFromHex:()=>Zo,plusIcon:()=>ul,provideDesignSystem:()=>Tr,provideTokens:()=>qo,registerFoundationDesignSystem:()=>Ru,singleOptionTemplate:()=>O,strokeWidth:()=>s.strokeWidth,swatchConverter:()=>Xo,tagFor:()=>$u,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight,uploadFiles:()=>Da,white:()=>Oo});var i={};o.r(i),o.d(i,{accentFillActive:()=>s.accentFillActive,accentFillActiveDelta:()=>s.accentFillActiveDelta,accentFillFocus:()=>s.accentFillFocus,accentFillFocusDelta:()=>s.accentFillFocusDelta,accentFillHover:()=>s.accentFillHover,accentFillHoverDelta:()=>s.accentFillHoverDelta,accentFillRest:()=>s.accentFillRest,accentFillRestDelta:()=>s.accentFillRestDelta,accentForegroundActive:()=>s.accentForegroundActive,accentForegroundActiveDelta:()=>s.accentForegroundActiveDelta,accentForegroundFocus:()=>s.accentForegroundFocus,accentForegroundFocusDelta:()=>s.accentForegroundFocusDelta,accentForegroundHover:()=>s.accentForegroundHover,accentForegroundHoverDelta:()=>s.accentForegroundHoverDelta,accentForegroundRest:()=>s.accentForegroundRest,accentForegroundRestDelta:()=>s.accentForegroundRestDelta,accentPalette:()=>s.accentPalette,baseHeightMultiplier:()=>s.baseHeightMultiplier,baseLayerLuminance:()=>s.baseLayerLuminance,bodyFont:()=>s.bodyFont,controlCornerRadius:()=>s.controlCornerRadius,defaultNeutralForegroundContrast:()=>Go,density:()=>s.density,designUnit:()=>s.designUnit,direction:()=>s.direction,disabledOpacity:()=>s.disabledOpacity,fillColor:()=>s.fillColor,focusStrokeInner:()=>s.focusStrokeInner,focusStrokeOuter:()=>s.focusStrokeOuter,focusStrokeWidth:()=>s.focusStrokeWidth,foregroundOnAccentActive:()=>s.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>s.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>s.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>s.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>s.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>s.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>s.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>s.foregroundOnAccentRestLarge,fuiCardFillColor:()=>Vo,fuiCardForegroundColor:()=>Yo,fuiFillColor:()=>jo,neutralFillActive:()=>s.neutralFillActive,neutralFillActiveDelta:()=>s.neutralFillActiveDelta,neutralFillFocus:()=>s.neutralFillFocus,neutralFillFocusDelta:()=>s.neutralFillFocusDelta,neutralFillHover:()=>s.neutralFillHover,neutralFillHoverDelta:()=>s.neutralFillHoverDelta,neutralFillInputActive:()=>s.neutralFillInputActive,neutralFillInputActiveDelta:()=>s.neutralFillInputActiveDelta,neutralFillInputFocus:()=>s.neutralFillInputFocus,neutralFillInputFocusDelta:()=>s.neutralFillInputFocusDelta,neutralFillInputHover:()=>s.neutralFillInputHover,neutralFillInputHoverDelta:()=>s.neutralFillInputHoverDelta,neutralFillInputRest:()=>s.neutralFillInputRest,neutralFillInputRestDelta:()=>s.neutralFillInputRestDelta,neutralFillLayerRest:()=>s.neutralFillLayerRest,neutralFillLayerRestDelta:()=>s.neutralFillLayerRestDelta,neutralFillRest:()=>s.neutralFillRest,neutralFillRestDelta:()=>s.neutralFillRestDelta,neutralFillStealthActive:()=>s.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>s.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>s.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>s.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>s.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>s.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>s.neutralFillStealthRest,neutralFillStealthRestDelta:()=>s.neutralFillStealthRestDelta,neutralFillStrongActive:()=>s.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>s.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>s.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>s.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>s.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>s.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>s.neutralFillStrongRest,neutralFillStrongRestDelta:()=>s.neutralFillStrongRestDelta,neutralForeground:()=>Uo,neutralForegroundHint:()=>s.neutralForegroundHint,neutralForegroundRest:()=>s.neutralForegroundRest,neutralLayer1:()=>s.neutralLayer1,neutralLayer2:()=>s.neutralLayer2,neutralLayer3:()=>s.neutralLayer3,neutralLayer4:()=>s.neutralLayer4,neutralLayerCardContainer:()=>s.neutralLayerCardContainer,neutralLayerFloating:()=>s.neutralLayerFloating,neutralPalette:()=>s.neutralPalette,neutralStrokeActive:()=>s.neutralStrokeActive,neutralStrokeActiveDelta:()=>s.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>s.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>s.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>s.neutralStrokeFocus,neutralStrokeFocusDelta:()=>s.neutralStrokeFocusDelta,neutralStrokeHover:()=>s.neutralStrokeHover,neutralStrokeHoverDelta:()=>s.neutralStrokeHoverDelta,neutralStrokeRest:()=>s.neutralStrokeRest,neutralStrokeRestDelta:()=>s.neutralStrokeRestDelta,strokeWidth:()=>s.strokeWidth,typeRampBaseFontSize:()=>s.typeRampBaseFontSize,typeRampBaseLineHeight:()=>s.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>s.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>s.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>s.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>s.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>s.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>s.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>s.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>s.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>s.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>s.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>s.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>s.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>s.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>s.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>s.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>s.typeRampPlus6LineHeight});var a={};o.r(a),o.d(a,{accentPaletteValue:()=>ii,baseLayerLuminanceValue:()=>ni,controlCornerRadiusValue:()=>ri,designUnitValue:()=>li,directionValue:()=>si,neutralPaletteValue:()=>ai});var n=o(84674),s=o(44405),r=o(57418);const l=(e,t)=>r.css`
2
- ${(0,s.accordionStyles)(e,t)}
3
- `,d=(e,t)=>(0,n.accordionTemplate)(e,t);class c extends n.Accordion{}const u={delegatesFocus:!0,mode:"open"},h={},p=c.compose(Object.assign({baseName:"accordion",template:d,styles:l,shadowOptions:u},h)),m=(e,t)=>r.css`
4
- ${(0,s.accordionItemStyles)(e,t)}
5
-
6
- slot[name='collapsed-icon'] {
7
- display: flex;
8
- stroke: var(--accent-foreground-rest);
9
- fill: none;
10
- }
11
-
12
- slot[name='expanded-icon'] {
13
- display: none;
14
- stroke: var(--accent-foreground-rest);
15
- fill: none;
16
- }
17
- `,v=(e,t)=>(0,n.accordionItemTemplate)(e,t);class g extends s.AccordionItem{}const b={delegatesFocus:!0,mode:"open"},f={collapsedIcon:'<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" slot="collapsed-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="plus-sign" d="M9 5.44446V12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="plus-sign" d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>',expandedIcon:'<svg width="16" height="16" viewBox="0 0 18 18" xmlns="http://www.w3.org/2000/svg" slot="expanded-icon">\n <path d="M15.2222 1H2.77778C1.79594 1 1 1.79594 1 2.77778V15.2222C1 16.2041 1.79594 17 2.77778 17H15.2222C16.2041 17 17 16.2041 17 15.2222V2.77778C17 1.79594 16.2041 1 15.2222 1Z" stroke-linecap="round" stroke-linejoin="round"></path>\n <path class="minus-sign" d="M5.44446 9H12.5556" stroke-linecap="round" stroke-linejoin="round"></path>\n </svg>'},y=g.compose(Object.assign({baseName:"accordion-item",template:v,styles:m,shadowOptions:b},f));var x=o(23317),w=o(31679);const $=(e,t)=>r.css`
18
- :host {
19
- --actions-opener-height-multiplier: 0.7px;
20
- --actions-opener-bg-color: 249 254 255;
21
- --menu-item-height-multiplier: 0.7px;
22
- }
23
-
24
- .actions-container {
25
- align-items: center;
26
- display: flex;
27
- height: 100%;
28
- justify-content: right;
29
- }
30
-
31
- .actions-menu {
32
- display: none;
33
- position: absolute;
34
- max-width: 350px;
35
- overflow-y: auto;
36
- }
37
-
38
- .actions-vertical .actions-menu {
39
- padding: calc(var(--design-unit) * 1px);
40
- max-height: 175px;
41
- z-index: 100;
42
- }
43
-
44
- .actions-menu:not(.hidden):hover {
45
- display: inline-flex;
46
- }
47
-
48
- .hidden {
49
- display: none;
50
- }
51
-
52
- .visible {
53
- display: inline-flex;
54
- }
55
-
56
- .actions-opener {
57
- align-self: center;
58
- display: flex;
59
- height: calc(
60
- (var(--base-height-multiplier) + var(--density)) * var(--design-unit) *
61
- var(--actions-opener-height-multiplier)
62
- );
63
- }
64
-
65
- svg {
66
- width: 100%;
67
- height: 100%;
68
- fill: #879ba6;
69
- }
70
-
71
- .actions-opener:hover svg {
72
- fill: #fff;
73
- }
74
-
75
- foundation-menu-item {
76
- display: flex;
77
- user-select: none;
78
- }
79
-
80
- foundation-menu-item::part(content) {
81
- margin-inline: 10px;
82
- }
83
-
84
- foundation-menu-item[disabled] {
85
- pointer-events: none;
86
- }
87
-
88
- .menu-item {
89
- flex: 1;
90
- max-height: calc(
91
- (var(--base-height-multiplier) + var(--density)) * var(--design-unit) *
92
- var(--menu-item-height-multiplier)
93
- );
94
- min-height: 0;
95
- }
96
-
97
- .actions-vertical .menu-item {
98
- flex: 1 1 auto;
99
- justify-content: center;
100
- margin: calc(var(--design-unit) * 1px);
101
- }
102
-
103
- .actions-vertical .visible,
104
- .actions-vertical .actions-menu:not(.hidden):hover {
105
- display: flex;
106
- flex-direction: column;
107
- }
108
- `,S=(e,t)=>r.css`
109
- ${$(e,t)}
110
- `,C=(e,t)=>!e.composedPath().includes(t),k=(e,t)=>e.composedPath().includes(t),F=e=>e.tagName.toLowerCase().split("-")[0],_=e=>r.html`
111
- <${e}-button
112
- id="actiosnMenuTrigger"
113
- class="actions-opener${e=>e.open?" opened":""}"
114
- appearance="${e=>e.buttonAppearance}"
115
- part="actions-opener"
116
- @click=${e=>e.toggleActionsMenuVisibility()}
117
- >
118
- ${e=>e.open?"✖":r.html`
119
- ${e.name}
120
- `}
121
- </${e}-button>
122
- <${e}-menu ${(0,r.ref)("actionsMenu")} class="actions-menu ${e=>e.classNames}" part="actions-menu">
123
- ${(0,r.repeat)((e=>e.allActions),r.html`
124
- ${(0,r.when)(((e,t)=>e.isDisabled&&e.isDisabled(t.parent.rowData)),r.html`
125
- <${e}-menu-item
126
- class="menu-item"
127
- tabindex="${(e,t)=>t.index}"
128
- disabled
129
- style=${(e,t)=>t.parent.hideDisabled?"display:none":""}
130
- >
131
- ${(e,t)=>t.parent.getLabel(e.name)}
132
- </${e}-menu-item>
133
- `)}
134
- ${(0,r.when)(((e,t)=>!e.isDisabled||!e.isDisabled(t.parent.rowData)),r.html`
135
- <${e}-menu-item
136
- class="menu-item"
137
- tabindex="${(e,t)=>t.index}"
138
- @click=${(e,t)=>t.parent.onActionMenuItemClick(e.callback)}
139
- style="${e=>e.color?`color: ${e.color};`:""}"
140
- >
141
- ${(e,t)=>t.parent.getLabel(e.name)}
142
- </${e}-menu-item>
143
- `)}
144
- `,{positioning:!0})}
145
- </${e}-menu>
146
- `,O=e=>r.html`
147
- <${e}-button
148
- appearance="${e=>e.buttonAppearance}"
149
- part="actions-opener"
150
- class="actions-opener"
151
- @click=${e=>null==e?void 0:e.singleOption.callback(e.rowData)}
152
- ?disabled=${e=>(null==e?void 0:e.singleOption.isDisabled)&&(null==e?void 0:e.singleOption.isDisabled(e.rowData))}
153
- >
154
- ${e=>e.getLabel(null==e?void 0:e.singleOption.name)}
155
- </${e}-button>
156
- `,D=r.html`
157
- <div
158
- class="actions-container${e=>e.isVertical?" actions-vertical":""}"
159
- part="actions-container"
160
- >
161
- ${e=>e.getTemplate(F(e))}
162
- </div>
163
- `;class T extends n.FoundationElement{constructor(){super(...arguments),this.isVertical=!1,this.addDefaultActions=!0,this.autoCloseOnAction=!0,this.name="Actions",this.open=!1,this.hideDisabled=!1,this.hideMenuSingleOption=!1}definitionChanged(e,t){var o;this.actions=null!==(o=null==t?void 0:t.actions)&&void 0!==o?o:[],delete this.definition.actions,t.buttonText&&(this.name=t.buttonText,delete this.definition.customButtonText),t.isVertical&&(this.isVertical=t.isVertical,delete this.definition.isVertical),t.buttonAppearance&&(this.buttonAppearance=t.buttonAppearance,delete this.definition.buttonAppearance),t.hideMenuSingleOption&&(this.hideMenuSingleOption=t.hideMenuSingleOption,delete this.definition.hideMenuSingleOption)}openChanged(){this.classNames=(0,w.x)(["visible",this.open],["hidden",!this.open])}toggleActionsMenuVisibility(){this.open=!this.open}onActionMenuItemClick(e){this.autoCloseOnAction&&(this.open=!1),e(this.rowData)}get allActions(){var e;const t=[{name:"✖",callback:()=>this.open=!1}];return this.addDefaultActions?[...null!==(e=this.actions)&&void 0!==e?e:[],...t]:this.actions}get rowData(){if(!this.definition)return;const{node:e,data:t}=this.definition;return(null==e?void 0:e.data)||t}getLabel(e){return"function"==typeof e?e(this.rowData):e}getTemplate(e){if(!this.hideMenuSingleOption)return _(e);const t=this.actions.filter((e=>!e.isDisabled||!e.isDisabled(this.rowData)));return this.singleOption=null,0!==t.length?1===t.length?(this.singleOption=t[0],O(e)):_(e):void 0}}(0,x.__decorate)([r.observable],T.prototype,"actions",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"is-vertical",mode:"boolean"})],T.prototype,"isVertical",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"add-default-actions",mode:"boolean"})],T.prototype,"addDefaultActions",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close-on-action",mode:"boolean"})],T.prototype,"autoCloseOnAction",void 0),(0,x.__decorate)([r.observable],T.prototype,"classNames",void 0),(0,x.__decorate)([r.observable],T.prototype,"definition",void 0),(0,x.__decorate)([r.attr],T.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"open",mode:"boolean"})],T.prototype,"open",void 0),(0,x.__decorate)([r.attr],T.prototype,"buttonAppearance",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"hide-disabled",mode:"boolean"})],T.prototype,"hideDisabled",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],T.prototype,"hideMenuSingleOption",void 0),(0,x.__decorate)([r.observable],T.prototype,"singleOption",void 0);const L=T.compose({baseName:"actions-menu",styles:S,template:D}),E=(e,t)=>r.css`
164
- ${(0,s.anchorStyles)(e,t)}
165
- `,A=(e,t)=>(0,n.anchorTemplate)(e,t);class N extends s.Anchor{}const I={delegatesFocus:!0,mode:"open"},R={},M=N.compose(Object.assign({baseName:"anchor",template:A,styles:E,shadowOptions:I},R)),H=(e,t)=>(0,n.anchoredRegionTemplate)(e,t),P=(e,t)=>r.css`
166
- ${(0,s.anchoredRegionStyles)(e,t)}
167
- `;class B extends s.AnchoredRegion{}const z={delegatesFocus:!0,mode:"open"},j={},V=B.compose(Object.assign({baseName:"anchored-region",template:H,styles:P,shadowOptions:z},j)),G=(e,t)=>r.css`
168
- ${(0,s.avatarStyles)(e,t)}
169
- `,U=(e,t)=>(0,n.avatarTemplate)(e,t),Y=r.html`
170
- ${(0,r.when)((e=>e.imgSrc),r.html`
171
- <img src="${e=>e.imgSrc}" alt="${e=>e.alt}" slot="media" class="media" part="media" />
172
- `)}
173
- `;class W extends s.Avatar{}const q={delegatesFocus:!0,mode:"open"},K={media:Y},X=W.compose(Object.assign({baseName:"avatar",template:U,styles:G,shadowOptions:q},K)),Z=(e,t)=>r.css`
174
- ${(0,s.badgeStyles)(e,t)}
175
- `,Q=(e,t)=>(0,n.badgeTemplate)(e,t);class J extends s.Badge{}const ee=void 0,te={},oe=J.compose(Object.assign({baseName:"badge",template:Q,styles:Z,shadowOptions:ee},te));var ie=o(33202);const ae=(0,ie.createLogger)("foundation-ui"),ne=r.css`
176
- @keyframes delete-animate {
177
- from {
178
- height: 100px;
179
- opacity: 100%;
180
- }
181
-
182
- to {
183
- height: 0;
184
- opacity: 0%;
185
- }
186
- }
187
-
188
- @keyframes append-animate {
189
- from {
190
- height: 0;
191
- opacity: 0%;
192
- }
193
-
194
- to {
195
- height: var(--banner-height);
196
- opacity: 100%;
197
- }
198
- }
199
-
200
- :host {
201
- --banner-width: 100%;
202
- --banner-height: 65px;
203
- --flow: row;
204
- }
205
-
206
- @media screen and (max-width: 640px) {
207
- :host {
208
- --flow: column;
209
- --banner-height: 100px;
210
- }
211
- }
212
-
213
- .banner {
214
- animation: append-animate 0.3s linear;
215
- width: var(--banner-width);
216
- height: var(--banner-height);
217
- background-color: var(--fill-color);
218
- display: flex;
219
- flex-direction: var(--flow);
220
- padding: 5px 8px;
221
- box-sizing: border-box;
222
- overflow: hidden;
223
- }
224
-
225
- .banner-delete {
226
- animation: delete-animate 0.3s linear;
227
- opacity: 0%;
228
- }
229
-
230
- .content {
231
- display: flex;
232
- align-items: center;
233
- flex: 2;
234
- font-size: 12px;
235
- overflow: hidden;
236
- }
237
-
238
- .action {
239
- display: flex;
240
- flex-direction: row-reverse;
241
- align-items: center;
242
- gap: 10px;
243
- flex: 1;
244
- overflow: hidden;
245
- }
246
- `,se=e=>r.html`
247
- <div role="alert" aria-live="polite" class="banner ${e=>e.dismissAnimation}" ${(0,r.ref)("banner")}>
248
- <div part="content" class="content">
249
- <slot name="content">
250
- ${(0,r.when)((e=>e.notification),r.html`
251
- <div>
252
- <div>${e=>{var t;return(null===(t=e.notification)||void 0===t?void 0:t.body)||"Place holder for notification message"}}</div>
253
- </div>
254
- `)}
255
- </slot>
256
- </div>
257
- <div part="action" class="action">
258
- <slot name="action" class="action">
259
- ${(0,r.when)((e=>e.notification),r.html`
260
- <${e}-button slot="action" appearance="lightweight" @click=${e=>e.dismiss()}>
261
- ${e=>{var t,o,i,a;return(null===(a=null===(i=null===(o=null===(t=e.notification)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||"Ignore"}}
262
- </${e}-button>`)}
263
- ${(0,r.repeat)((e=>{var t,o;return null===(o=null===(t=e.notification)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner.confirmingActions}),r.html`
264
- <${e}-button
265
- slot="action"
266
- appearance="lightweight"
267
- @click=${(e,t)=>{var o;null==e||e.action(),null===(o=t.parent)||void 0===o||o.dismissNotification()}}
268
- >
269
- ${e=>e.label}
270
- </${e}-button>
271
- `)}
272
- </slot>
273
- </div>
274
- </div>
275
- `,re=r.html`
276
- ${e=>se(F(e))}
277
- `,le={mode:"open",delegatesFocus:!0};class de extends n.FoundationElement{constructor(){super(...arguments),this.dismissAnimation=""}connectedCallback(){super.connectedCallback()}dismiss(){return this.dismissAnimation="banner-delete",new Promise((e=>{this.banner.onanimationend=()=>{this.remove(),e()}}))}dismissNotification(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){try{yield this.dismiss(),this.remove()}catch(e){ae.error(e)}}))}}(0,x.__decorate)([r.observable],de.prototype,"dismissAnimation",void 0),(0,x.__decorate)([r.observable],de.prototype,"notification",void 0);const ce=de.compose({baseName:"banner",styles:ne,template:re,shadowOptions:le}),ue=(e,t)=>r.css`
278
- ${(0,s.breadcrumbStyles)(e,t)}
279
- `,he=(e,t)=>(0,n.breadcrumbTemplate)(e,t);class pe extends s.Breadcrumb{}const me=void 0,ve={},ge=pe.compose(Object.assign({baseName:"breadcrumb",template:he,styles:ue,shadowOptions:me},ve)),be=(e,t)=>r.css`
280
- ${(0,s.breadcrumbItemStyles)(e,t)}
281
- `,fe=(e,t)=>(0,n.breadcrumbItemTemplate)(e,t);class ye extends s.BreadcrumbItem{}const xe=void 0,we={separator:"/"},$e=ye.compose(Object.assign({baseName:"breadcrumb-item",template:fe,styles:be,shadowOptions:xe},we)),Se=(e,t)=>r.css`
282
- ${(0,s.buttonStyles)(e,t)}
283
- `,Ce=(e,t)=>(0,n.buttonTemplate)(e,t);class ke extends s.Button{}const Fe={delegatesFocus:!0,mode:"open"},_e={},Oe=ke.compose(Object.assign({baseName:"button",template:Ce,styles:Se,shadowOptions:Fe},_e)),De=()=>r.css`
284
- ${s.CalendarStyles}
285
- `,Te=(e,t)=>(0,n.calendarTemplate)(e,t);class Le extends s.Calendar{}const Ee={delegatesFocus:!0,mode:"open"},Ae={},Ne=Le.compose(Object.assign({baseName:"calendar",template:Te,styles:De,shadowOptions:Ee},Ae)),Ie=(e,t)=>r.css`
286
- ${(0,s.cardStyles)(e,t)}
287
- :host {
288
- background-color: var(--fui-card-fill-color);
289
- color: var(--fui-card-foreground-color);
290
- }
291
- `,Re=(e,t)=>(0,n.cardTemplate)(e,t);class Me extends s.Card{}const He=void 0,Pe={},Be=Me.compose(Object.assign({baseName:"card",template:Re,styles:Ie,shadowOptions:He},Pe));var ze;!function(e){e.BELOW="below",e.ABOVE="above"}(ze||(ze={}));const je=450,Ve=r.css`
292
- .root {
293
- position: relative;
294
- width: 100%;
295
- min-width: 250px;
296
- }
297
-
298
- .control-button {
299
- display: flex;
300
- justify-content: center;
301
- min-width: 31px;
302
- width: 31px;
303
- height: 31px;
304
- margin-left: calc(var(--design-unit) * 2px);
305
- color: var(--neutral-foreground-hint);
306
- }
307
-
308
- .control {
309
- cursor: pointer;
310
- position: relative;
311
- display: flex;
312
- justify-content: end;
313
- align-items: center;
314
- width: 100%;
315
- border-radius: calc(var(--control-corner-radius) * 1px);
316
- }
317
-
318
- .label {
319
- display: block;
320
- cursor: pointer;
321
- font-size: var(--type-ramp-base-font-size);
322
- line-height: var(--type-ramp-base-line-height);
323
- font-style: normal;
324
- font-weight: 700;
325
- margin: calc(var(--design-unit) * 2px) 0;
326
- }
327
-
328
- .label-hidden {
329
- display: none;
330
- }
331
-
332
- .control:hover .control-button,
333
- .control:hover .label {
334
- color: var(--neutral-foreground-rest);
335
- }
336
-
337
- button {
338
- pointer-events: none;
339
- }
340
-
341
- .options {
342
- display: flex;
343
- flex-direction: column;
344
- position: absolute;
345
- height: max-content;
346
- overflow-y: hidden;
347
- margin-top: 5px;
348
- padding: calc((var(--design-unit) + 3) * 2px) calc((var(--design-unit) + 3) * 1px);
349
- border: 1px solid rgba(46 51 57 / 100%);
350
- border-radius: 4px;
351
- background: var(--neutral-fill-input-rest);
352
- width: 100%;
353
- max-height: 0;
354
- visibility: hidden;
355
- transition:
356
- max-height 0.4s ease 0s,
357
- visibility 0.4s ease 0s;
358
- z-index: 999;
359
- }
360
-
361
- .position-above {
362
- bottom: 100%;
363
- }
364
-
365
- .checkbox-container {
366
- display: flex;
367
- flex-direction: column;
368
- overflow-y: scroll;
369
- scrollbar-width: thin;
370
- scrollbar-color: rgb(46 48 53) rgb(31 33 38);
371
- }
372
-
373
- span {
374
- border-bottom: calc(var(--stroke-width) * 1px) solid;
375
- border-color: color-mix(in srgb, var(--neutral-fill-rest), transparent 50%);
376
- padding: calc((var(--design-unit) + 2) * 2px) calc((var(--design-unit) + 3) * 1px);
377
- font-size: calc((var(--type-ramp-base-font-size) - 1px));
378
- color: var(--neutral-foreground-hint);
379
- }
380
-
381
- .multiselect-checkbox {
382
- min-width: fit-content;
383
- flex-direction: row-reverse;
384
- justify-content: space-between;
385
- align-items: flex-start;
386
- border-bottom: 1px solid;
387
- border-color: color-mix(in srgb, var(--neutral-fill-rest), transparent 50%);
388
- padding: calc((var(--design-unit) + 3) * 1px) calc((var(--design-unit) + 3) * 1px)
389
- calc((var(--design-unit) + 3) * 1px) 0;
390
- margin: 0;
391
- }
392
-
393
- .multiselect-checkbox:hover {
394
- background-color: rgb(45 47 51);
395
- cursor: pointer;
396
- }
397
-
398
- .multiselect-checkbox::part(label) {
399
- overflow-x: hidden;
400
- text-overflow: ellipsis;
401
- }
402
-
403
- .multiselect-checkbox::part(control) {
404
- min-width: calc(
405
- (
406
- (var(--base-height-multiplier) + var(--density)) * var(--design-unit) / 2 +
407
- var(--design-unit)
408
- ) * 1px
409
- );
410
- }
411
-
412
- .checkbox-container .multiselect-checkbox[disabled] {
413
- cursor: not-allowed;
414
- }
415
-
416
- .description {
417
- text-wrap: wrap;
418
- font-size: calc((var(--type-ramp-base-font-size) - 1px));
419
- margin: calc((var(--design-unit) + 3) * 1px) 0;
420
- }
421
-
422
- #filter-search {
423
- padding: 5px;
424
- }
425
-
426
- ::-webkit-scrollbar {
427
- width: 12px;
428
- }
429
-
430
- ::-webkit-scrollbar-track {
431
- background: rgb(31 33 38);
432
- }
433
-
434
- ::-webkit-scrollbar-thumb {
435
- width: 8px;
436
- border-radius: 10px;
437
- box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);
438
- background-color: rgb(46 48 53);
439
- border: 3px solid rgb(31 33 38);
440
- }
441
-
442
- .visible {
443
- visibility: visible;
444
- max-height: ${je.toString()}px;
445
- }
446
- `;var Ge=o(40729);const Ue=(e="foundation")=>r.html`
447
- <div class="root" part="root">
448
- <div class="control" part="control" @click=${e=>!e.disabled&&e.toggle()}>
449
- <label
450
- part="label"
451
- for="control"
452
- class=${e=>{var t;return(0,w.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
453
- >
454
- <slot
455
- ${(0,r.slotted)({property:"defaultSlottedNodes",filter:n.whitespaceFilter})}
456
- ></slot>
457
- </label>
458
- <${e}-button class="control-button" part="control-button">
459
- <slot name="button-content">
460
- <${e}-icon name="plus" variant="solid" size="lg"></${e}-icon>
461
- </slot>
462
- </${e}-button>
463
- </div>
464
- <div ${(0,r.ref)("optionsElement")} class="options" part="options">
465
- ${(0,r.when)((e=>e.search),r.html`
466
- <${e}-text-field
467
- id="filter-search"
468
- part="filter-search"
469
- value=${(0,Ge.O)((e=>e.filterSearchValue),"string","input")}
470
- placeholder="${e=>e.getPlaceholder}"
471
- @input=${(e,t)=>e.setFilter()}
472
- @change=${(e,t)=>e.changeHandler(t.event)}
473
- ></${e}-text-field>
474
- `)}
475
- <div class="checkbox-container" part="checkbox-container">
476
- ${(0,r.repeat)((e=>e.filteredAvailableOptions),r.html`
477
- <span>${e=>e.type}</span>
478
- ${(0,r.repeat)((e=>e.options),r.html`
479
- <${e}-checkbox
480
- class="multiselect-checkbox"
481
- part="multiselect-checkbox"
482
- @click=${(e,t)=>t.parentContext.parent.selectCheckboxOne(e)}
483
- @change=${(e,t)=>t.parentContext.parent.changeHandler(t.event)}
484
- ?current-checked="${(e,t)=>t.parentContext.parent.isOptionSelected(e)}"
485
- ?disabled="${(e,t)=>t.parentContext.parent.isOptionDisabled(e)}"
486
- >
487
- ${(e,t)=>t.parentContext.parent.getItemLabel(e)}
488
-
489
- ${(0,r.when)((e=>e.description),r.html`
490
- <p class="description">${e=>e.description}</p>
491
- `)}
492
- </${e}-checkbox>
493
- `)}
494
- `)}
495
- </div>
496
- </div>
497
- </div>
498
- `,Ye=r.html`
499
- ${Ue()}
500
- `,We=void 0,qe={};class Ke extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.search=!0,this.disabled=!1,this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.position=ze.BELOW}openChanged(e,t){var o,i;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.optionsElement)||void 0===o||o.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(i=this.optionsElement)||void 0===i||i.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===ze.ABOVE&&(null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}sortFilteredOptions(e){const t=(null!=e?e:this.options).reduce(((e,t)=>{const o=t.type||"Other";return e[o]?e[o].options.push(t):e[o]={type:o,options:[t]},e}),{});return Object.values(t)}optionsChanged(){this.filteredAvailableOptions=this.sortFilteredOptions()}setDropdownPosition(){let e=this.position;if(this.autoPosition){let t=this.assignedSlot?this.assignedSlot.parentElement:this.parentElement;for(;t&&!t.classList.contains("content-wrapper");)t=t.parentElement;if(t){const o=t.getBoundingClientRect(),i=this.getBoundingClientRect(),a=o.top+o.height/2;e=i.top<a?ze.BELOW:ze.ABOVE}else{const t=this.getBoundingClientRect(),o=window.innerHeight,i=t.top,a=o-t.bottom;e=a<t.height&&i>a?ze.ABOVE:ze.BELOW}}e===ze.ABOVE?(this.optionsElement.classList.add("position-above"),this.optionsElement.classList.remove("position-below")):e===ze.BELOW&&(this.optionsElement.classList.add("position-below"),this.optionsElement.classList.remove("position-above"))}optionGetter(e){return e.value}getItemLabel(e){let t;return e?(t=e.label||e.value||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}isOptionSelected(e){return this.selectedOptions.includes(this.optionGetter(e))}selectCheckboxOne(e){const t=this.optionGetter(e);this.selectedOptions.includes(t)?(this.selectedOptions=[...this.selectedOptions],this.selectedOptions.splice(this.selectedOptions.indexOf(t),1)):this.selectedOptions=[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}setFilter(){const e=this.options.filter((e=>{var t;const o=e.description,i=null!==(t=e.label)&&void 0!==t?t:e.value;return(null==o?void 0:o.toLowerCase().includes(this.filterSearchValue.toLowerCase()))||i.toLowerCase().includes(this.filterSearchValue.toLowerCase())?e:void 0}));this.filteredAvailableOptions=this.sortFilteredOptions(e)}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){C(e,this)&&(this.open=!1)}}(0,x.__decorate)([r.attr],Ke.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"auto-position"})],Ke.prototype,"autoPosition",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ke.prototype,"search",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ke.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"valueFormatter",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"filterSearchValue",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"open",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"options",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"filteredAvailableOptions",void 0),(0,x.__decorate)([r.observable],Ke.prototype,"position",void 0),(0,x.__decorate)([r.volatile],Ke.prototype,"getPlaceholder",null);const Xe=Ke.compose(Object.assign({baseName:"categorized-multiselect",template:Ye,styles:Ve,shadowOptions:We},qe)),Ze=(e,t)=>r.css`
501
- ${(0,s.checkboxStyles)(e,t)}
502
- `,Qe=(e,t)=>(0,n.checkboxTemplate)(e,t);class Je extends s.Checkbox{}const et=void 0,tt={checkedIndicator:'\n <svg\n aria-hidden="true"\n part="checked-indicator"\n class="checked-indicator"\n viewBox="0 0 20 20"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n fill-rule="evenodd"\n clip-rule="evenodd"\n d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n />\n </svg>\n ',indeterminateIndicator:'\n <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n '},ot=Je.compose(Object.assign({baseName:"checkbox",template:Qe,styles:Ze,shadowOptions:et},tt));var it=o(39087),at=o(62051),nt=o.n(at),st=o(40370),rt=o(6884),lt=o(96730),dt=o(21281),ct=o(34193),ut=o(41119),ht=o(43543),pt=o(9033),mt=o(12066),vt=o(97156);class gt extends((0,st.C)(n.FoundationElement)){constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=rt.OD.MAX_ROWS_250,this.maxView=rt.OD.MAX_VIEW_1000,this.reverse=!1,this.rowId="ROW_REF",this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new vt.t(new Map)}criteriaChanged(e,t){const o=e!==(0,lt.Q)(t,";");this.datasource.initialized&&o&&(this.dataSub&&(this.dataSub.unsubscribe(),this.dataSub=void 0),this.fetchGenesisData(null))}dataChanged(e){e&&(this.clearData(),this.reset())}set datasourceConfig(e){e&&Object.keys(e).forEach((t=>{void 0!==e[t]&&(this[t]=e[t])}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),this.clearData(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),null===(t=this.update)||void 0===t||t.unsubscribe(),delete this.dataSub,delete this.update,this.datasource.destroy(),delete this.datasource}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(e=!0){return(0,x.__awaiter)(this,void 0,void 0,(function*(){if(this.data)return void this.syncComponentData(this.data);const t=e||!this.datasource.initialized;t||(this.connect.dataLogoff(this.sourceRef),this.clearData());if(yield this.datasource.init(this.datasourceOptions(),t))if(this.isSnapshot){const e=yield this.datasource.snapshotFiltered();this.syncComponentData(e)}else ae.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe((e=>{e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF;const t=e.MESSAGE_TYPE;if(t&&t===dt.Go.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,ct.d)(e);this.handleStreamUpdate(t)}else this.handleStreamUpdate(e)}));else this.handleError({message:`Genesis Datasource init failed for ${this.resourceName}`,loggerType:"error"})}))}initDatasource(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0)}))}datasourceOptions(){return{criteria:this.buildCriteria(),fields:this.fields,isSnapshot:this.isSnapshot,orderBy:this.orderBy,resourceName:this.resourceName,request:this.request,reverse:this.reverse,maxRows:this.maxRows,maxView:this.maxView}}handleStreamUpdate(e){if(!e)return;e.hasOwnProperty("REPLY")?this.applyRequestServerData(e):this.applyDataserverData(e)}applyRequestServerData(e){var t,o;if(!Array.isArray(e.REPLY)||!(null===(t=e.MESSAGE_TYPE)||void 0===t?void 0:t.startsWith("REP_")))return void this.handleError({message:"received invalid RequestServerResult",loggerType:"error",loggerArgs:[e]});if(this.requiresFullDataRefresh){"ROW_REF"!==this.rowId&&(null===(o=e.REPLY)||void 0===o||o.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)})));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const i=Array.from(this.rowsSyncedWithStream.values()).filter((t=>!e.REPLY.includes(t)));this.handleStreamDeletes(i)}applyDataserverData(e){var t,o,i,a;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach((e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const o=Array.from(this.rowsSyncedWithStream.values());this.syncComponentData(o)}else(null===(o=e.inserts)||void 0===o?void 0:o.length)>0&&this.handleStreamInserts(e.inserts),(null===(i=e.deletes)||void 0===i?void 0:i.length)>0&&this.handleStreamDeletes(e.deletes),(null===(a=e.updates)||void 0===a?void 0:a.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,lt.Q)(t.join(" && "),";")}setFilter(e,t){this.criteriaFromFilters.set(e,t),this.update.next(this.criteriaFromFilters)}removeFilter(e){this.criteriaFromFilters.delete(e),this.update.next(this.criteriaFromFilters)}handleError(e={}){const{message:t,loggerType:o,loggerArgs:i=[]}=e;t&&ae[o](t,...i)}getFieldMetadata(e){var t;return null===(t=this.datasource.fieldMetadata)||void 0===t?void 0:t.find((t=>t.name===e))}getDefaultLabelFormat(e,t){return t===ut.w.DATE||t===ut.w.DATETIME?(0,mt.Ey)(e,t===ut.w.DATETIME):e}}(0,x.__decorate)([ht.dm],gt.prototype,"connect",void 0),(0,x.__decorate)([pt.yW],gt.prototype,"datasource",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],gt.prototype,"withGridInit",void 0),(0,x.__decorate)([r.attr],gt.prototype,"criteria",void 0),(0,x.__decorate)([r.observable],gt.prototype,"data",void 0),(0,x.__decorate)([r.attr],gt.prototype,"fields",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],gt.prototype,"isSnapshot",void 0),(0,x.__decorate)([r.attr],gt.prototype,"maxRows",void 0),(0,x.__decorate)([r.attr],gt.prototype,"maxView",void 0),(0,x.__decorate)([r.attr],gt.prototype,"orderBy",void 0),(0,x.__decorate)([r.attr],gt.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],gt.prototype,"reverse",void 0),(0,x.__decorate)([r.attr],gt.prototype,"rowId",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],gt.prototype,"withTimestampFormatting",void 0);const bt=(0,ie.createLogger)("foundation-criteria");var ft;!function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(ft||(ft={}));class yt{constructor(e){this.$$operator=e}static And(){return new yt(ft.AND)}static Or(){return new yt(ft.OR)}static Not(){return new yt(ft.NOT)}static GreaterThan(){return new yt(ft.GT)}static GreaterThanOrEqual(){return new yt(ft.GE)}static LessThan(){return new yt(ft.LT)}static LessThanOrEqual(){return new yt(ft.LE)}static NotEqual(){return new yt(ft.NE)}static Equal(){return new yt(ft.EQ)}get operator(){return this.$$operator}}const xt="default";class wt{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,yt.And()),this.Or=(e,t={})=>this.withExpression(e,t,yt.Or()),this.Not=(e,t={})=>this.withExpression(e,t,yt.Not())}withExpression(e,t={},o=yt.And()){const{condition:i,join:a,groupName:n}=t,s=(e,t=xt)=>{var n;const s=null!==(n=this.expressions[t])&&void 0!==n?n:[];this.expressions[t]=[...s,{join:o||a,condition:i,expression:e}]};if(Array.isArray(e))if(a){const t=e.filter((e=>{const t=e instanceof yt;return t&&bt.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t}));if(n)t.forEach((e=>{s(e,n)}));else{const e=(r=a,t.flat().flatMap(((e,t,o)=>o.length-1!==t?[e,r]:e)));s(e,xt)}}else s(e,xt);else s(e,"string"==typeof e?xt:e.group);var r;return this}build(e){const t=Object.entries(this.expressions).reduce(((e,[t,o])=>Object.assign(Object.assign({},e),{[t]:`(${o.filter((({condition:e})=>!e||e())).map((({expression:e,join:t},o,i)=>this.parseExpression(e,i[o-1],t))).join("")})`})),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,o){const i=[];return o&&t&&i.push(` ${o.operator} `),"string"==typeof e?i.push(e):Array.isArray(e)?(e.forEach(((e,t,o)=>{if(e instanceof yt){if(o[t-1]instanceof yt)throw new Error("Adjacent Join operations detected")}})),i.push(`(${e.map((e=>this.parseExpression(e,void 0))).join("")})`)):e instanceof yt?i.push(` ${e.operator} `):e&&i.push(e.serialiser(e)),i.join("")}}const $t=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},St=e=>t=>`${t.field} ${e} ${$t(t)}`,Ct=e=>St(ft.EQ)(e),kt=e=>`Expr.containsIgnoreCase(${e.field}, ${$t(e)})`;class Ft{constructor(e){this.serialiser=Ct,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}function _t(e,t){var o;const i=new wt;i.withExpression((new Ft).withField(null!==(o=e.labelField)&&void 0!==o?o:e.valueField).withValue(t).withSerialiser(kt).build()),e.criteria=i.build()}function Ot(e,t){var o;const i=null!==(o=e.labelField)&&void 0!==o?o:e.valueField;e.request={[i]:`${t}*`},e.fetchGenesisData(!1)}var Dt;let Tt=Dt=class extends gt{constructor(){super(...arguments),this.emptyDataLabel="No matching records",this.initalSelectedValueInitialized=!1,this.isSnapshot=!0,this.resizeObserverCallback=e=>{e.forEach((e=>{this.checkOverflow(e.target)}))},this.selectChangeHandler=e=>{var t;const o=null===(t=this.options)||void 0===t?void 0:t.find((t=>String(t.label)===e.target.value));this.select.$emit("value-change",o)}}initialSelectedValueChanged(e,t){e&&t&&(this.initalSelectedValueInitialized=!1,this.clearData(),this.fetchData())}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t,o;return(0,x.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.optionElement=null!==(o=this.optionElement)&&void 0!==o?o:`${F(this.select)}-option`,this.select.addEventListener("change",this.selectChangeHandler),this.resizeObserver=new ResizeObserver(this.resizeObserverCallback),this.fetchData(),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')}))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect(),this.select.removeEventListener("change",this.selectChangeHandler)}fetchData(){this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof s.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData())}asyncModeIntialization(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.datasource.init(this.datasourceOptions(),!0);const e=this.datasource.resourceType;e===it.v.DATASERVER&&_t(this,this.initialSelectedValue),e===it.v.REQUEST_SERVER&&Ot(this,this.initialSelectedValue)}))}clearData(){Array.from(this.select.children).forEach((e=>{e instanceof Dt||this.select.removeChild(e)})),this.select.value="",this.select.initialValue=""}checkOverflow(e){const t=e.shadowRoot.querySelector(".content");t&&(t.scrollWidth>t.clientWidth?e.setAttribute("title",e.textContent):e.removeAttribute("title"))}syncComponentData(e){var t;const o=null!=e?e:Array.from(this.rowsSyncedWithStream.values());if(o.length>0){this.options=o.map((e=>{var t;return{value:e[this.valueField],label:this.labelFormatter?this.labelFormatter(e[this.labelField]):this.getDefaultLabelFormat(e[this.labelField],null===(t=this.getFieldMetadata(this.labelField))||void 0===t?void 0:t.type)}}));if(this.options.map((({value:e,label:t})=>{const o=document.createElement(this.optionElement);return o.textContent=t||e,o.value=e,o})).forEach((e=>{this.select.appendChild(e),this.resizeObserver.observe(e)})),!this.initalSelectedValueInitialized||this.select instanceof s.Combobox&&!this.select.async){this.resetCombobox();const e=this.initialSelectedValue||0===this.initialSelectedValue?null===(t=this.options.find((e=>e.value===this.initialSelectedValue)))||void 0===t?void 0:t.label:"";r.DOM.queueUpdate((()=>{this.select.value=String(e)})),this.initalSelectedValueInitialized=!0}}else{const e=document.createElement(this.optionElement);e.textContent=this.emptyDataLabel,e.value="",e.disabled=!0,this.select.appendChild(e)}}resetCombobox(){this.select&&this.select instanceof s.Combobox&&this.select.resetCombobox()}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,x.__decorate)([(0,r.attr)({attribute:"label-field"})],Tt.prototype,"labelField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"option-element"})],Tt.prototype,"optionElement",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"value-field"})],Tt.prototype,"valueField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"empty-data-label"})],Tt.prototype,"emptyDataLabel",void 0),(0,x.__decorate)([r.observable],Tt.prototype,"labelFormatter",void 0),(0,x.__decorate)([r.observable],Tt.prototype,"initialSelectedValue",void 0),Tt=Dt=(0,x.__decorate)([(0,r.customElement)({name:"options-datasource"})],Tt);const Lt=(e,t)=>r.css`
503
- .combo-box-indicator {
504
- transition-property: transform;
505
- transition-duration: 0.2s;
506
- transition-timing-function: ease-out;
507
- }
508
-
509
- :host([open]) .combo-box-indicator {
510
- transform: rotate(180deg);
511
- }
512
-
513
- ${(0,s.comboboxStyles)(e,t)}
514
- `,Et=(e,t)=>r.html`
515
- <template
516
- aria-activedescendant="${e=>e.activeDescendant}"
517
- class="${e=>e.open?"open":""} ${e=>e.disabled?"disabled":""} ${e=>e.position}"
518
- ?open="${e=>e.open}"
519
- @click="${(e,t)=>e.clickHandler(t.event)}"
520
- @focusout="${(e,t)=>e.focusoutHandler(t.event)}"
521
- @keydown="${(e,t)=>e.keydownHandler(t.event)}"
522
- >
523
- <div class="control" part="control">
524
- ${(0,n.startSlotTemplate)(e,t)}
525
- <slot name="control">
526
- <input
527
- aria-activedescendant="${e=>e.activeDescendant}"
528
- aria-autocomplete="${e=>e.ariaAutoComplete||e.autocomplete}"
529
- aria-controls="${e=>e.ariaControls||e.listboxId}"
530
- aria-disabled="${e=>e.disabled?"true":"false"}"
531
- aria-expanded="${e=>e.open?"true":"false"}"
532
- aria-haspopup="listbox"
533
- aria-labelledby="${e=>e.ariaLabelledby}"
534
- aria-label="${e=>e.ariaLabel}"
535
- autocomplete="${e=>e.autocomplete}"
536
- class="selected-value"
537
- part="selected-value"
538
- placeholder="${e=>e.placeholder}"
539
- role="combobox"
540
- type="text"
541
- ?disabled="${e=>e.disabled}"
542
- :value="${e=>e.value}"
543
- @input="${(e,t)=>e.inputHandler(t.event)}"
544
- @keyup="${(e,t)=>e.keyupHandler(t.event)}"
545
- ${(0,r.ref)("control")}
546
- />
547
- <div class="indicator" part="indicator" aria-hidden="true">
548
- <slot name="indicator">${t.indicator||""}</slot>
549
- </div>
550
- </slot>
551
- ${(0,n.endSlotTemplate)(e,t)}
552
- </div>
553
- <div
554
- class="listbox"
555
- id="${e=>e.listboxId}"
556
- part="listbox"
557
- role="listbox"
558
- ?disabled="${e=>e.disabled}"
559
- ?hidden="${e=>!e.open}"
560
- ${(0,r.ref)("listbox")}
561
- >
562
- <slot
563
- ${(0,r.ref)("slottedDatasource")}
564
- ${(0,r.slotted)({filter:n.Listbox.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
565
- ></slot>
566
- </div>
567
- </template>
568
- `;var At,Nt;class It extends s.Combobox{constructor(){super(...arguments),At.set(this,void 0),Nt.set(this,!1),this.needManualChangeEventDispatch=!1,this.autocomplete=n.ComboboxAutocomplete.list,this.async=!1,this.debounce=500,this.caseSensitive=!1,this.ignoreInputClick=!1,this.scrollToSelectedWhenOpening=!1,this.scrollToSelectedWhenOpeningOptions={behavior:"auto",block:"nearest"},this.scrollWhenSelectionChanges=!1,this.scrollWhenSelectionChangesOptions={behavior:"auto",block:"center"},this.resetCombobox=()=>{this.selectedOptions=[],this.selectedIndex=-1,this.value="",this.control.value="",this.filter="",this.filterOptions()}}get activeDescendant(){var e,t;if(this.selectedOptions&&0!==this.selectedOptions.length)return this.ariaActiveDescendant=null===(e=this.selectedOptions[0])||void 0===e?void 0:e.id,null===(t=this.selectedOptions[0])||void 0===t?void 0:t.id}debounceChanged(e,t){this.debouncedInputHandler=nt()(this.asyncSetFilter,t)}openChanged(){super.openChanged(),this.open?this.scrollToSelectedWhenOpening&&setTimeout((()=>{const e=this.options[this.selectedIndex];null==e||e.scrollIntoView(this.scrollToSelectedWhenOpeningOptions)}),500):(this.manuallyDispatchChangeEvent(),this.filter="",this.filterOptions())}get value(){return r.Observable.track(this,"value"),this._ourValue}set value(e){var t,o,i;if(void 0===e)return;const a=`${this._ourValue}`;if(this.$fastController.isConnected&&this.options){const a=this.caseSensitive?t=>t.text===e:t=>t.text.toLowerCase()===e.toLowerCase(),n=this.options?this.options.findIndex(a):-1,s=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,r=null===(o=this.options[n])||void 0===o?void 0:o.text;this.selectedIndex=r&&r!==s?n:this.selectedIndex,e=(null===(i=this.firstSelectedOption)||void 0===i?void 0:i.text)||e}a!==e&&(this._ourValue=e,super.valueChanged(a,e),r.Observable.notify(this,"value"))}slottedOptionsChanged(e,t){const o=!!this.async;super.slottedOptionsChanged(e,t),this.updateValue(o)}filterOptions(){this.autocomplete&&this.autocomplete!==n.ComboboxAutocomplete.none||(this.filter="");const e=this.filter,[t,o]=this.caseSensitive?[e,e=>e.text.startsWith(t)]:[e.toLowerCase(),e=>e.text.toLowerCase().startsWith(t)];this.filteredOptions=this._options.filter(o),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach((e=>e.hidden=!this.filteredOptions.includes(e))))}clickHandler(e){if(!this.disabled)if(C(e,this))this.open=!1;else{if(k(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!k(e,this.control))return super.clickHandler(e)}}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Enter":if((0,x.__classPrivateFieldSet)(this,Nt,this.open,"f"),!this.open)return this.open=!0,!0;break;case"ArrowDown":case"ArrowUp":if(!this.open)return this.open=!0,!0;if(this.scrollWhenSelectionChanges){const e=this.options[this.selectedIndex];null==e||e.scrollIntoView(this.scrollWhenSelectionChangesOptions)}break;case"Escape":if(this.control.value!==this.currentValue)return this.filter="",this.filterOptions(),this.control.value=this.currentValue,this.selectItemByValue(this.currentValue),void(this.open=!1);if(!this.open)return!0}const o=super.keydownHandler(e);return"Enter"!==t?o:void 0}keyupHandler(e){var t;const o=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(o){case"Enter":return!(0,x.__classPrivateFieldGet)(this,Nt,"f");case"ArrowDown":case"ArrowUp":this.open&&this.firstSelectedOption&&this.autocomplete===n.ComboboxAutocomplete.both&&(this.needManualChangeEventDispatch=!0,this.currentValue=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.value);break;case"Home":case"End":return;case"Backspace":case"Delete":const o=super.keyupHandler(e);return this.selectItemByValue(this.control.value),o}return super.keyupHandler(e)}get indicator(){return(0,x.__classPrivateFieldGet)(this,At,"f")||(0,x.__classPrivateFieldSet)(this,At,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,x.__classPrivateFieldGet)(this,At,"f")}selectItemByValue(e){var t,o,i;this.selectedIndex=null!==(o=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>t.text===e)))&&void 0!==o?o:-1,null===(i=this.options)||void 0===i||i.forEach(((e,t)=>e.selected=t===this.selectedIndex))}inputHandler(e){this.async?this.debouncedInputHandler():super.inputHandler(e)}asyncSetFilter(){const e=this.slottedDatasource.assignedNodes().filter((e=>e instanceof Tt));if(e.length>0){const t=e[0].datasource.resourceType;t===it.v.DATASERVER&&_t(e[0],this.control.value),t===it.v.REQUEST_SERVER&&Ot(e[0],this.control.value)}else ae.warn("Options-datasource is not connected. Please add a datasource to use this functionality.")}manuallyDispatchChangeEvent(){this.needManualChangeEventDispatch&&this.firstSelectedOption&&this.autocomplete===n.ComboboxAutocomplete.both&&(this.dispatchEvent(new Event("change",{bubbles:!0})),this.needManualChangeEventDispatch=!1)}}At=new WeakMap,Nt=new WeakMap,(0,x.__decorate)([r.observable],It.prototype,"activeDescendant",null),(0,x.__decorate)([r.attr],It.prototype,"autocomplete",void 0),(0,x.__decorate)([r.observable],It.prototype,"slottedDatasource",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],It.prototype,"async",void 0),(0,x.__decorate)([r.attr],It.prototype,"debounce",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"case-sensitive"})],It.prototype,"caseSensitive",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"ignore-input-click"})],It.prototype,"ignoreInputClick",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"scroll-to-selected-when-opening"})],It.prototype,"scrollToSelectedWhenOpening",void 0),(0,x.__decorate)([r.observable],It.prototype,"scrollToSelectedWhenOpeningOptions",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"scroll-when-selection-changes"})],It.prototype,"scrollWhenSelectionChanges",void 0),(0,x.__decorate)([r.observable],It.prototype,"scrollWhenSelectionChangesOptions",void 0);const Rt={delegatesFocus:!0,mode:"open"},Mt={indicator:'\n <svg\n class="combo-box-indicator"\n part="combo-box-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '},Ht=It.compose(Object.assign({baseName:"combobox",template:Et,styles:Lt,shadowOptions:Rt},Mt));var Pt=o(98316);const Bt=(e,t)=>r.css`
569
- :host {
570
- --light-size: 12px;
571
- --height: calc(var(--design-unit) * 2px + var(--light-size));
572
-
573
- display: flex;
574
- justify-content: center;
575
- align-items: center;
576
- width: 100%;
577
- height: var(--height);
578
- margin: calc(var(--design-unit) * 2px) 0;
579
-
580
- /* https://www.colorxs.com/color/traffic-light-green-2032-20 */
581
- --green: 50 164 49;
582
- --trafic-light-green: rgb(var(--green));
583
- --trafic-light-green-glow:
584
- rgb(var(--green) / 40%) 0 0 4px 4px,
585
- rgb(var(--green) / 20%) 0 0 8px 8px;
586
-
587
- /* https://www.colorxs.com/color/ral-3020-traffic-red */
588
- --red: 187 30 16;
589
- --trafic-light-red: rgb(var(--red));
590
- --trafic-light-red-glow:
591
- rgb(var(--red) / 40%) 0 0 4px 4px,
592
- rgb(var(--red) / 20%) 0 0 8px 8px;
593
- }
594
-
595
- .light {
596
- height: var(--light-size);
597
- width: var(--light-size);
598
- margin: 1rem;
599
- border-radius: 100%;
600
- }
601
-
602
- .green {
603
- background: var(--trafic-light-green);
604
- box-shadow: var(--trafic-light-green-glow);
605
- }
606
-
607
- .red {
608
- background: var(--trafic-light-red);
609
- box-shadow: var(--trafic-light-red-glow);
610
- }
611
-
612
- .label {
613
- font-size: small;
614
- color: grey;
615
- overflow: hidden;
616
- text-overflow: ellipsis;
617
- white-space: nowrap;
618
- }
619
- `,zt=r.html`
620
- <div class=${e=>(0,w.x)(["light",!0],[e.colour,!0])}></div>
621
- ${(0,r.when)((e=>e.showLabel),r.html`
622
- <div class="label">${e=>e.label}</div>
623
- `)}
624
- `;class jt extends n.FoundationElement{constructor(){super(...arguments),this.showLabel=!1,this.label="disconnected",this.colour="red"}connectedCallback(){super.connectedCallback(),this.subscription=this.connect.isConnectedSubject.subscribe((e=>{this.label=this.getLabel(e),this.colour=e?"green":"red"}))}disconnectedCallback(){var e;null===(e=this.subscription)||void 0===e||e.unsubscribe()}getLabel(e){if(!e)return"disconnected";return`${this.session.getSessionStorageItem("hostUrl")} ✔`}}(0,x.__decorate)([ht.dm],jt.prototype,"connect",void 0),(0,x.__decorate)([Pt.N],jt.prototype,"session",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"show-label"})],jt.prototype,"showLabel",void 0),(0,x.__decorate)([r.observable],jt.prototype,"label",void 0),(0,x.__decorate)([r.observable],jt.prototype,"colour",void 0);const Vt=jt.compose({baseName:"connection-indicator",template:zt,styles:Bt}),Gt=(e,t)=>r.css`
625
- ${(0,s.dataGridStyles)(e,t)}
626
- `,Ut=(e,t)=>(0,n.dataGridTemplate)(e,t);class Yt extends s.DataGrid{}const Wt=void 0,qt={},Kt=Yt.compose(Object.assign({baseName:"data-grid",template:Ut,styles:Gt,shadowOptions:Wt},qt)),Xt=(e,t)=>r.css`
627
- ${(0,s.dataGridCellStyles)(e,t)}
628
- `;class Zt extends s.DataGridCell{}const Qt=void 0,Jt={},eo=Zt.compose(Object.assign({baseName:"data-grid-cell",template:n.dataGridCellTemplate,styles:Xt,shadowOptions:Qt},Jt)),to=(e,t)=>r.css`
629
- ${(0,s.dataGridRowStyles)(e,t)}
630
- `;class oo extends s.DataGridRow{}const io=void 0,ao={},no=oo.compose(Object.assign({baseName:"data-grid-row",template:n.dataGridRowTemplate,styles:to,shadowOptions:io},ao));var so=o(94343),ro=o.n(so),lo=o(58915),co=o.n(lo),uo=o(7554),ho=o.n(uo),po=o(49916),mo=o.n(po),vo=o(33839),go=o.n(vo);class bo{constructor(e=null,t="default"){e=null!=e?e:new Date,this.Date=e,this.date=e.getDate(),this.day=e.toLocaleString(t,{weekday:"long"}),this.dayNumber=e.getDay()+1,this.dayShort=e.toLocaleString(t,{weekday:"short"}),this.year=e.getFullYear(),this.yearShort=Number(e.toLocaleString(t,{year:"2-digit"})),this.month=e.toLocaleString(t,{month:"long"}),this.monthShort=e.toLocaleString(t,{month:"short"}),this.monthNumber=e.getMonth()+1,this.timestamp=e.getTime()}}ro().extend(go());class fo{constructor(e=null,t="default"){const o=new bo(e,t);this.lang=t,this.name=o.month,this.number=o.monthNumber,this.year=o.year,this.numberOfDays=[31,28,31,30,31,30,31,31,30,31,30,31][this.number-1],2===this.number&&(this.numberOfDays+=ro()(o.date).isLeapYear()?1:0)}getDay(e){return new bo(new Date(this.year,this.number-1,e),this.lang)}}ro().extend(go());class yo{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new bo(null,o),this.year=null!=e?e:this.today.year,this.month=new fo(new Date(this.year,(t||this.today.monthNumber)-1),o),this.lang=o,this.weekDays.forEach(((e,t)=>{const o=this.month.getDay(t);this.weekDays[o.dayNumber-1]=o.day}))}getMonth(e){return new fo(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new fo(new Date(this.year-1,11),this.lang):new fo(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new fo(new Date(this.year+1,0),this.lang):new fo(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new fo(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new fo(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new fo(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new fo(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new fo(new Date(this.year,this.month.number-1-1),this.lang)}}const xo=r.css`
631
- :host {
632
- position: relative;
633
- }
634
-
635
- .date-toggle::part(control) {
636
- cursor: pointer;
637
- }
638
-
639
- .date-toggle::part(label) {
640
- cursor: pointer;
641
- }
642
-
643
- .calendar-dropdown {
644
- display: none;
645
- width: 300px;
646
- z-index: 999;
647
- position: absolute;
648
- top: 100%;
649
- left: 50%;
650
- transform: translate(-50%, 8px);
651
- margin: 10px 0 0;
652
- padding: 20px;
653
- background: var(--neutral-foreground-rest);
654
- border-radius: calc(var(--control-corner-radius) * 1px);
655
- box-shadow: 0 0 8px rgb(0 0 0 / 20%);
656
- }
657
-
658
- .calendar-dropdown.top {
659
- top: auto;
660
- bottom: 100%;
661
- margin: 0 0 5px;
662
- transform: translate(-50%, -8px);
663
- }
664
-
665
- .calendar-dropdown.left {
666
- top: 50%;
667
- left: 0;
668
- margin: 0 0 0 5px;
669
- transform: translate(calc(-8px + -100%), -50%);
670
- }
671
-
672
- .calendar-dropdown.right {
673
- top: 50%;
674
- left: 100%;
675
- transform: translate(8px, -50%);
676
- }
677
-
678
- .calendar-dropdown.visible {
679
- display: block;
680
- }
681
-
682
- .header {
683
- display: flex;
684
- justify-content: space-between;
685
- align-items: center;
686
- margin: 0 0 10px;
687
- }
688
-
689
- .header h3 {
690
- margin: 0;
691
- text-transform: capitalize;
692
- font-weight: bold;
693
- color: var(--foreground-on-accent-rest);
694
- }
695
-
696
- .header .months-arrows {
697
- display: flex;
698
- flex-direction: row;
699
- }
700
-
701
- .header .icon-container {
702
- display: flex;
703
- width: 25px;
704
- height: 25px;
705
- justify-content: center;
706
- align-items: center;
707
- cursor: pointer;
708
- }
709
-
710
- .header .icon-container:first-child {
711
- margin-right: calc(var(--design-unit) * 2px);
712
- }
713
-
714
- .header .prev-month,
715
- .header .next-month {
716
- color: var(--foreground-on-accent-rest);
717
- font-size: 18px;
718
- }
719
-
720
- .week-days {
721
- display: grid;
722
- grid-template-columns: repeat(7, 1fr);
723
- grid-gap: 5px;
724
- margin-bottom: 10px;
725
- color: var(--foreground-on-accent-rest);
726
- }
727
-
728
- .week-days span {
729
- display: flex;
730
- justify-content: center;
731
- align-items: center;
732
- font-size: 14px;
733
- font-weight: bold;
734
- text-transform: capitalize;
735
- }
736
-
737
- .month-days {
738
- display: grid;
739
- grid-template-columns: repeat(7, 1fr);
740
- grid-gap: 5px;
741
- }
742
-
743
- .month-day {
744
- padding: 8px 5px;
745
- color: #808080;
746
- background: none;
747
- display: flex;
748
- justify-content: center;
749
- align-items: center;
750
- border-radius: calc(var(--control-corner-radius) * 4px);
751
- cursor: pointer;
752
- border: none;
753
- }
754
-
755
- .month-day.current {
756
- opacity: 100%;
757
- color: var(--foreground-on-accent-rest);
758
- }
759
-
760
- .month-day.selected {
761
- background: var(--accent-foreground-rest);
762
- color: var(--neutral-foreground-rest);
763
- }
764
-
765
- .month-day:hover {
766
- background: var(--neutral-stroke-hover);
767
- color: (--neutral-foreground-rest);
768
- }
769
-
770
- .date-toggle[readonly] .label {
771
- cursor: pointer;
772
- }
773
- `,wo=e=>r.html`
774
- <${e}-text-field data-test-id="date-picker" readonly :value="${e=>e.formatDate}" part="date-toggle" class="date-toggle" ${(0,r.ref)("toggleButton")}>
775
- ${e=>e.label}
776
- <div class="input-icon-container" part="input-icon-container" slot="end"><${e}-icon variant="regular" name="calendar-alt" size="sm"></${e}-icon></div>
777
- </${e}-text-field>
778
- <div class="calendar-dropdown ${e=>e.calendarDropdownClasses} ${e=>e.position}">
779
- <div class="header">
780
- <h3>${e=>e.currentMonth} ${e=>e.currentYear}</h3>
781
- <div class="months-arrows">
782
- <div class="icon-container" ${(0,r.ref)("prevBtn")}>
783
- <${e}-icon name="angle-left" class="prev-month" aria-label="previous month"></${e}-icon>
784
- </div>
785
- <div class="icon-container" ${(0,r.ref)("nextBtn")}>
786
- <${e}-icon name="angle-right" class="next-month" aria-label="next month"></${e}-icon>
787
- </div>
788
- </div>
789
- </div>
790
- <div class="week-days">
791
- ${(0,r.repeat)((e=>e.calendar.weekDays),r.html`
792
- <span>${(e,t)=>e.substring(0,t.parent.substringNumber)}</span>
793
- `)}
794
- </div>
795
- <div class="month-days" ${(0,r.ref)("calendarDaysContainer")}>
796
- ${(0,r.repeat)((e=>e.monthList),r.html`
797
- <button
798
- class="month-day
799
- ${(e,t)=>t.parent.isSelectedDate(e)?"selected":""}
800
- ${(e,t)=>e.monthNumber===t.parent.calendar.month.number?"current":""}"
801
- @click=${(e,t)=>t.parent.selectDay(e)}
802
- >
803
- ${(e,t)=>e.date}
804
- </button>
805
- `)}
806
- </div>
807
- </div>
808
- `,$o=r.html`
809
- ${e=>wo(F(e))}
810
- `,So=void 0,Co={};class ko extends n.FoundationElement{formatChanged(e,t){t&&this.calendar&&(this.formatDate=ro()(this.currentDate.Date).format(t))}valueChanged(e,t){if(t&&this.calendar){const e=ro()().localeData().longDateFormat("L");this.currentDate=new bo(ro()(t,e).toDate(),this.lang),this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=ro()(this.currentDate.Date).format(this.format),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}}constructor(){super(),this.format="MM-DD-YYYY",this.lang="en-US",this.visible=!1,this.position="bottom",ro().extend(co()),ro().extend(mo()),ro().extend(ho()),this.substringNumber=3;const e=this.getAttribute("value"),t=e?ro()(e,"MM-DD-YYYY"):ro()();this.currentDate=new bo(t.toDate(),this.lang),this.calendar=new yo(this.currentDate.year,this.currentDate.monthNumber,this.lang),this.value=ro()(this.currentDate.Date).format("MM-DD-YYYY")}connectedCallback(){super.connectedCallback(),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.formatDate=ro()(this.currentDate.Date).format(this.format),this.toggleButton.addEventListener("click",(()=>this.toggleCalendar())),this.prevBtn.addEventListener("click",(()=>this.prevMonth())),this.nextBtn.addEventListener("click",(()=>this.nextMonth())),this.monthList=this.getMonthDaysGrid()}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=(0,w.x)(["visible",this.visible],this.position)}isSelectedDate(e){return ro()(e.Date).isSame(this.currentDate.Date,"day")}isCurrentCalendarMonth(){return this.currentMonth===this.currentDate.monthNumber&&this.currentYear===this.currentDate.year}prevMonth(){this.calendar.goToPreviousMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}nextMonth(){this.calendar.goToNextMonth(),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}selectDay(e){ro()(e.Date).isSame(this.currentDate.Date)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=ro()(this.currentDate.Date).format(this.format),this.value=ro()(e.Date).format("MM-DD-YYYY"),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),o=e.dayNumber-1,i=this.calendar.month.numberOfDays+o,a=Array.from({length:i});for(let e=o;e<i;e+=1)a[e]=this.calendar.month.getDay(e+1-o);for(let e=0;e<o;e+=1){const i=o-(e+1);a[e]=t.getDay(t.numberOfDays-i)}return a}}(0,x.__decorate)([r.attr],ko.prototype,"format",void 0),(0,x.__decorate)([r.attr],ko.prototype,"lang",void 0),(0,x.__decorate)([r.attr],ko.prototype,"visible",void 0),(0,x.__decorate)([r.attr],ko.prototype,"position",void 0),(0,x.__decorate)([r.attr],ko.prototype,"label",void 0),(0,x.__decorate)([r.attr],ko.prototype,"value",void 0),(0,x.__decorate)([r.observable],ko.prototype,"currentDate",void 0),(0,x.__decorate)([r.observable],ko.prototype,"currentMonth",void 0),(0,x.__decorate)([r.observable],ko.prototype,"currentYear",void 0),(0,x.__decorate)([r.observable],ko.prototype,"calendarDropdownClasses",void 0),(0,x.__decorate)([r.observable],ko.prototype,"formatDate",void 0),(0,x.__decorate)([r.observable],ko.prototype,"monthList",void 0);const Fo=ko.compose(Object.assign({baseName:"date-picker",styles:xo,template:$o,shadowOptions:So},Co));var _o=o(4273);const Oo=s.SwatchRGB.create(1,1,1),Do=s.SwatchRGB.create(0,0,0),To=(0,_o.parseColorHexRGB)("#585858"),Lo=s.SwatchRGB.create(To.r,To.g,To.b),Eo=(0,_o.parseColorHexRGB)("#ffffff"),Ao=s.SwatchRGB.create(Eo.r,Eo.g,Eo.b),No=s.PaletteRGB.from(Ao),Io=(0,_o.parseColorHexRGB)("#eeeeee"),Ro=s.SwatchRGB.create(Io.r,Io.g,Io.b),Mo=s.PaletteRGB.from(Ro),Ho=(0,_o.parseColorHexRGB)("#08c3a5"),Po=s.SwatchRGB.create(Ho.r,Ho.g,Ho.b),Bo=s.PaletteRGB.from(Po),{create:zo}=n.DesignToken,jo=zo("fui-fill-color").withDefault(Lo),Vo=zo({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(Ao),Go=14;function Uo(e,t){return e.colorContrast(t,Go)}const Yo=zo({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault((e=>Uo(zo("fui-card-palette").withDefault(No).getValueFor(e),Vo.getValueFor(e))));var Wo=o(80273);const qo=(e,t,o)=>{const i=o?(e,t)=>e.setValueFor(o,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach((o=>{const a=`${o}Value`;t[a]&&i(e[o],t[a])}))};function Ko(e){return(t,o)=>{t[o+"Changed"]=function(t,o){null!=o?e.setValueFor(this,o):e.deleteValueFor(this)}}}const Xo={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,_o.parseColorHexRGB)(e);return t?s.SwatchRGB.create(t.r,t.g,t.b):null}},Zo=e=>s.PaletteRGB.from(s.SwatchRGB.from((0,_o.parseColorHexRGB)(e))),Qo=["baseClass","baseName","shadowOptions","styles","template"],Jo=(e,t=Qo)=>Object.keys(e).filter((e=>!t.includes(e))).reduce(((t,o)=>(t[o]=e[o],t)),{}),ei=e=>{const{definition:t}=e(),{shadowOptions:o,styles:i,template:a}=t;return{shadowOptions:o,styles:i,template:a,defaultConfig:Jo(t)}},ti=(e,t)=>{const o=e.match(/^(\d+)([a-z]+)/i),i=o[1],a=o[2];return Number(i)+t+a},oi=(e,t)=>{const o=t.design_tokens;s.accentPalette.setValueFor(e,Zo(o.color.accent.$value)),s.neutralPalette.setValueFor(e,Zo(o.color.neutral.$value)),s.bodyFont.setValueFor(e,o.fontFamily.bodyFont.$value),s.baseLayerLuminance.setValueFor(e,o.mode.luminance.$value),s.density.setValueFor(e,o.style.density.$value),s.controlCornerRadius.setValueFor(e,o.style.borderRadius.$value),s.strokeWidth.setValueFor(e,o.style.strokeWidth.$value),s.designUnit.setValueFor(e,o.space.designUnit.$value),s.typeRampBaseFontSize.setValueFor(e,o.typography.baseFontSize.$value),s.typeRampBaseLineHeight.setValueFor(e,o.typography.baseLineHeight.$value);const i=s.typeRampBaseFontSize.getValueFor(e),a=s.typeRampBaseLineHeight.getValueFor(e);s.typeRampMinus1FontSize.setValueFor(e,ti(i,Wo.Du.minusOne)),s.typeRampMinus1LineHeight.setValueFor(e,ti(a,Wo.Du.minusOne)),s.typeRampMinus2FontSize.setValueFor(e,ti(i,Wo.Du.minusTwo)),s.typeRampMinus2LineHeight.setValueFor(e,ti(a,Wo.Du.minusTwo)),s.typeRampPlus1FontSize.setValueFor(e,ti(i,Wo.Du.plusOne)),s.typeRampPlus1LineHeight.setValueFor(e,ti(a,Wo.Du.plusOne)),s.typeRampPlus2FontSize.setValueFor(e,ti(i,Wo.Du.plusTwo)),s.typeRampPlus2LineHeight.setValueFor(e,ti(a,Wo.Du.plusTwo)),s.typeRampPlus3FontSize.setValueFor(e,ti(i,Wo.Du.plusThree)),s.typeRampPlus3LineHeight.setValueFor(e,ti(a,Wo.Du.plusThree)),s.typeRampPlus4FontSize.setValueFor(e,ti(i,Wo.Du.plusFour)),s.typeRampPlus4LineHeight.setValueFor(e,ti(a,Wo.Du.plusFour)),s.typeRampPlus5FontSize.setValueFor(e,ti(i,Wo.Du.plusFive)),s.typeRampPlus5LineHeight.setValueFor(e,ti(a,Wo.Du.plusFive)),s.typeRampPlus6FontSize.setValueFor(e,ti(i,Wo.Du.plusSix)),s.typeRampPlus6LineHeight.setValueFor(e,ti(a,Wo.Du.plusSix))},ii=Zo("#08c3a5"),ai=Zo("#eeeeee"),ni=s.StandardLuminance.DarkMode;const si=o(85109).O.ltr,ri=4,li=4;var di=o(85090);const ci=(e="normal",t="normal")=>`\n font-family: ${s.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,ui=r.css`
811
- ${(0,n.display)("flex")}
812
- :host {
813
- flex: 1;
814
- }
815
- `,hi=r.css`
816
- :host {
817
- background-color: ${jo};
818
- }
819
- `.withBehaviors((0,n.forcedColorsStylesheetBehavior)(r.css`
820
- :host {
821
- background-color: ${di.A.ButtonFace};
822
- box-shadow: 0 0 0 1px ${di.A.CanvasText};
823
- color: ${di.A.ButtonText};
824
- }
825
- `)),pi=(e,t)=>r.css`
826
- ${e.name} ${"h"+t} {
827
- margin: 0;
828
- }
829
- `;class mi extends s.DesignSystemProvider{constructor(){super(),qo(i,a,this)}}(0,x.__decorate)([(0,r.attr)({attribute:"card-fill-color",converter:Xo}),Ko(Vo)],mi.prototype,"cardFillColor",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"card-foreground-color",converter:Xo}),Ko(Yo)],mi.prototype,"cardForegroundColor",void 0);const vi=mi.compose({baseName:"design-system-provider",template:r.html`
830
- <slot></slot>
831
- `,styles:e=>{const t=(e=>r.css`
832
- ${pi(e,"1")}
833
- ${pi(e,"2")}
834
- ${pi(e,"3")}
835
- ${pi(e,"4")}
836
- ${pi(e,"5")}
837
- ${pi(e,"6")}
838
- `)(e);return t.addStylesTo(document),r.css`
839
- ${ui}
840
- ${hi}
841
- ${t}
842
- :host * {
843
- ${ci()}
844
- }
845
- `}});var gi=o(40543);const bi=r.css`
846
- :host {
847
- --dialog-close-icon-display: flex;
848
- --dialog-min-width: 358px;
849
- --notification-details-min-height: 40px;
850
- }
851
-
852
- dialog[type='error'],
853
- dialog[type='success'] {
854
- padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px)
855
- calc(var(--design-unit) * 2px) calc(var(--design-unit) * 6px);
856
- }
857
-
858
- dialog[type='error']::before,
859
- dialog[type='success']::before {
860
- content: '';
861
- position: absolute;
862
- top: 50%;
863
- transform: translateY(-50%);
864
- left: calc(var(--design-unit) * 3px - 2px);
865
- height: calc(100% - (var(--design-unit) * 4px));
866
- width: 4px;
867
- border-radius: 2px;
868
- }
869
-
870
- dialog[type='error']::before {
871
- background-color: var(--error-color);
872
- }
873
-
874
- dialog[type='success']::before {
875
- background-color: var(--success-color);
876
- }
877
-
878
- .close-icon {
879
- display: var(--dialog-close-icon-display);
880
- }
881
-
882
- dialog {
883
- background-color: var(--dialog-background, var(--fill-color));
884
- padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px)
885
- calc(var(--design-unit) * 4px);
886
- outline: none;
887
- overflow: inherit;
888
- }
889
-
890
- :host([position='right']) dialog .content-wrapper,
891
- :host([position='left']) dialog .content-wrapper,
892
- :host([position='left']) dialog,
893
- :host([position='right']) dialog {
894
- height: 100%;
895
- }
896
-
897
- :host([position='left']) dialog {
898
- margin-left: 0;
899
- }
900
-
901
- :host([position='right']) dialog {
902
- margin-right: 0;
903
- }
904
-
905
- ::slotted(zero-divider) {
906
- width: 100%;
907
- }
908
-
909
- .title {
910
- margin-top: calc(var(--design-unit) * 2px);
911
- font-size: 14px;
912
- }
913
-
914
- .details {
915
- font-size: 12px;
916
- overflow: hidden;
917
- min-height: var(--notification-details-min-height);
918
- }
919
- `,fi=e=>r.html`
920
- <dialog ${(0,r.ref)("mainElement")} part="dialog" type=${e=>e.type}>
921
- <div class="content-wrapper" part="content">
922
- <div part="top" class="top">
923
- <slot name="top">
924
- <h2 slot="top" class="title">${e=>{var t;return null===(t=e.notification)||void 0===t?void 0:t.title}}</h2>
925
- </slot>
926
- ${(0,r.when)((e=>e.showCloseIcon),r.html`
927
- <${e}-button class="close-icon" part="close-icon" aria-label="close" appearance="stealth" @click=${e=>e.close()}>
928
- <${e}-icon name="times"></${e}-icon>
929
- </${e}-button>
930
- `)}
931
- </div>
932
- <slot>
933
- ${(0,r.when)((e=>e.notification),r.html`
934
- <div class="details">
935
- ${e=>{var t;return(null===(t=e.notification)||void 0===t?void 0:t.body)||"Place holder for notification message"}}
936
- </div>
937
- `)}
938
- </slot>
939
- <div part="bottom" class="bottom">
940
- <slot name="bottom">
941
- ${(0,r.when)((e=>e.notification),r.html`
942
- <${e}-button appearance="lightweight" @click=${e=>{e.dismiss()}}>
943
- ${e=>{var t,o,i,a;return(null===(a=null===(i=null===(o=null===(t=e.notification)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||"Ignore"}}
944
- </${e}-button>
945
- `)}
946
- ${(0,r.repeat)((e=>{var t,o;return null===(o=null===(t=e.notification)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog.confirmingActions}),r.html`
947
- <${e}-button
948
- appearance="lightweight"
949
- @click=${(e,t)=>{null==e||e.action(),t.parent.closeDialog()}}
950
- >
951
- ${e=>e.label}
952
- </${e}-button>
953
- `)}
954
- </slot>
955
- </div>
956
- </div>
957
- </dialog>
958
- `,yi=r.html`
959
- ${e=>fi(F(e))}
960
- `,xi={mode:"open",delegatesFocus:!0},wi={};class $i extends n.FoundationElement{constructor(){super(...arguments),this.type="default",this.position="center",this.showCloseIcon=!0}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||gi.A.registerDialog(this.mainElement),this.mainElement.addEventListener("close",(()=>{this.onCloseCallback&&this.onCloseCallback()})),this.hasAttribute("open")&&this.shadowRoot.querySelector("dialog").setAttribute("open","")}get open(){return this.mainElement.hasAttribute("open")}close(){this.mainElement.close()}dismiss(){var e,t,o,i;(null===(i=null===(o=null===(t=null===(e=this.notification)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===i?void 0:i.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){ae.error(e)}}}(0,x.__decorate)([r.observable],$i.prototype,"notification",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"type"})],$i.prototype,"type",void 0),(0,x.__decorate)([r.attr],$i.prototype,"position",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"show-close-icon"})],$i.prototype,"showCloseIcon",void 0),(0,x.__decorate)([r.observable],$i.prototype,"onShowCallback",void 0),(0,x.__decorate)([r.observable],$i.prototype,"onCloseCallback",void 0),(0,x.__decorate)([r.volatile],$i.prototype,"open",null);class Si extends $i{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const Ci=Si.compose(Object.assign({baseName:"dialog",styles:bi,template:yi,shadowOptions:xi},wi)),ki=(e,t)=>r.css`
961
- ${(0,s.disclosureStyles)(e,t)}
962
- `,Fi=(e,t)=>(0,n.disclosureTemplate)(e,t);class _i extends n.Disclosure{}const Oi=void 0,Di={},Ti=_i.compose(Object.assign({baseName:"disclosure",template:Fi,styles:ki,shadowOptions:Oi},Di)),Li=(e,t)=>r.css`
963
- ${(0,s.dividerStyles)(e,t)}
964
- `,Ei=(e,t)=>(0,n.dividerTemplate)(e,t);class Ai extends n.Divider{}const Ni=void 0,Ii={},Ri=Ai.compose(Object.assign({baseName:"divider",template:Ei,styles:Li,shadowOptions:Ni},Ii)),Mi=(e,t,o)=>r.css`
965
- :host {
966
- --dropdown-opener-height-multiplier: 0.7px;
967
- --menu-item-height-multiplier: 0.7px;
968
- }
969
-
970
- .actions-menu {
971
- display: inline-flex;
972
- flex-direction: column;
973
- max-height: calc(
974
- var(--max-height) -
975
- ((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px)
976
- );
977
- position: absolute;
978
- z-index: 1;
979
- gap: calc(var(--design-unit) * 1px);
980
- }
981
-
982
- .hidden {
983
- display: none;
984
- }
985
-
986
- .actions-opener {
987
- display: flex;
988
- justify-content: center;
989
- height: calc(
990
- (var(--base-height-multiplier) + var(--density)) * var(--design-unit) *
991
- var(--dropdown-opener-height-multiplier)
992
- );
993
- max-width: 120px;
994
- }
995
-
996
- ${e}-menu-item {
997
- display: flex;
998
- user-select: none;
999
- }
1000
-
1001
- ${e}-menu-item::part(content) {
1002
- margin-inline: 5px;
1003
- }
1004
-
1005
- ${e}-menu-item::part(expand-collapse-glyph-container) {
1006
- margin-inline-end: 5px;
1007
- }
1008
-
1009
- ${e}-menu-item::part(expand-collapse) {
1010
- margin-inline-start: 5px;
1011
- }
1012
-
1013
- ${e}-menu-item[disabled] {
1014
- pointer-events: none;
1015
- }
1016
-
1017
- ${e}-icon {
1018
- padding-left: 5px;
1019
- }
1020
-
1021
- .menu-item {
1022
- max-height: calc(
1023
- (var(--base-height-multiplier) + var(--density)) * var(--design-unit) *
1024
- var(--menu-item-height-multiplier)
1025
- );
1026
- }
1027
- `,Hi=(e,t)=>r.css`
1028
- ${Mi("foundation",e,t)}
1029
- `,Pi=(e,t)=>r.html`
1030
- ${(0,r.repeat)((()=>e),r.html`
1031
- ${(0,r.when)((e=>e.isDisabled&&e.isDisabled()),r.html`
1032
- <${t}-menu-item class="menu-item" disabled>${e=>e.name}</${t}-menu-item>
1033
- `)}
1034
- ${(0,r.when)((e=>!e.isDisabled||!e.isDisabled()),r.html`
1035
- <${t}-menu-item
1036
- class="menu-item"
1037
- @click=${e=>e.submenu?"":e.callback()}
1038
- style="${e=>e.color?`color: ${e.color};`:""}"
1039
- >
1040
- ${(0,r.when)((e=>e.icon),r.html`
1041
- <${t}-icon
1042
- name=${e=>e.icon.name}
1043
- size=${e=>e.icon.size}
1044
- variant=${e=>e.icon.variant}
1045
- slot="start"
1046
- ></${t}-icon>
1047
- `)}
1048
- ${e=>e.name}
1049
- ${(0,r.when)((e=>e.submenu),r.html`
1050
- <${t}-menu>${e=>Pi(e.submenu,t)}</${t}-menu>
1051
- `)}
1052
- </${t}-menu-item>
1053
- `)}
1054
- `)}
1055
- `,Bi=e=>r.html`
1056
- <div class="actions-container" part="actions-container">
1057
- <${e}-button
1058
- id="actiosnMenuTrigger"
1059
- class="actions-opener"
1060
- appearance="${e=>e.buttonAppearance}"
1061
- part="actions-opener"
1062
- @click=${e=>e.toggleDropdownMenuVisibility()}
1063
- :disabled=${e=>e.disabled}
1064
- >
1065
- <slot>${e=>e.name}</slot>
1066
- </${e}-button>
1067
- <${e}-menu
1068
- ${(0,r.ref)("dropdownMenu")}
1069
- class="actions-menu ${e=>e.classNames}"
1070
- part="actions-menu"
1071
- >
1072
- ${t=>Pi(t.allItems,e)}
1073
- </${e}-menu>
1074
- </div>
1075
- `,zi=r.html`
1076
- ${e=>Bi(F(e))}
1077
- `;class ji extends n.FoundationElement{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name="Dropdown Menu",this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener("onMenuClick",this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){C(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,w.x)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,x.__decorate)([r.observable],ji.prototype,"items",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close",mode:"boolean"})],ji.prototype,"autoClose",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"disable-button",mode:"boolean"})],ji.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],ji.prototype,"classNames",void 0),(0,x.__decorate)([r.attr],ji.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"open",mode:"boolean"})],ji.prototype,"open",void 0),(0,x.__decorate)([r.attr],ji.prototype,"buttonAppearance",void 0);const Vi=ji.compose({baseName:"dropdown-menu",styles:Hi,template:zi}),Gi=e=>r.html`
1078
- <${e}-banner ${(0,r.ref)("banner")}>
1079
- <div slot="content">
1080
- <div>
1081
- ${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}
1082
- </div>
1083
- </div>
1084
-
1085
- <${e}-button slot="action" appearance="lightweight" @click=${e=>e.dismiss()}>
1086
- ${e=>{var t,o,i,a,n,s,r,l;return(null===(a=null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||(null===(l=null===(r=null===(s=null===(n=e.notification)||void 0===n?void 0:n.config)||void 0===s?void 0:s.banner)||void 0===r?void 0:r.dismissingAction)||void 0===l?void 0:l.label)||"Ignore"}}
1087
- </${e}-button>
1088
- ${(0,r.repeat)((e=>{var t,o,i,a;return(null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.banner.confirmingActions)||(null===(a=null===(i=e.notification)||void 0===i?void 0:i.config)||void 0===a?void 0:a.banner.confirmingActions)}),r.html`
1089
- <${e}-button
1090
- slot="action"
1091
- appearance="lightweight"
1092
- @click=${(e,t)=>{var o;null==e||e.action(),null===(o=t.parent)||void 0===o||o.dismiss()}}
1093
- >
1094
- ${e=>e.label}
1095
- </${e}-button>
1096
- `)}
1097
- </${e}-banner>
1098
- `,Ui=r.html`
1099
- ${e=>Gi(F(e))}
1100
- `,Yi={mode:"open",delegatesFocus:!0};class Wi extends n.FoundationElement{connectedCallback(){super.connectedCallback(),ae.deprecated("ErrorBanner","Use `${prefix}-banner` instead.")}dismiss(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){ae.error(e)}}))}}(0,x.__decorate)([r.observable],Wi.prototype,"error",void 0),(0,x.__decorate)([r.observable],Wi.prototype,"notification",void 0);const qi=Wi.compose({baseName:"error-banner",template:Ui,shadowOptions:Yi});var Ki;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(Ki||(Ki={}));const Xi=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.errorDetails)&&void 0!==o?o:"Something went wrong"}`},Zi=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||ie.LogLevel.Error},Qi=(e,t)=>{const o=t.split("-")[0];let i=document.querySelector(`#${e}`);if(!i){i=document.createElement("div"),i.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(i),document.body.appendChild(t)}return i},Ji=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},ea=(0,ie.createLogger)("foundation-error"),ta={alert:e=>{alert(Xi(e))},notification:(e,t)=>{var o,i,a,n,s,r,l,d,c,u,h,p,m;const v=t.split("-")[0],g=Qi("notify-container",t);if(g)switch(g.style.position="fixed",null===(i=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.notification)||void 0===i?void 0:i.position){case"top-left":g.style.top="0",g.style.left="0";break;case"bottom-left":g.style.bottom="0",g.style.left="0";break;case"bottom-right":g.style.bottom="0",g.style.right="0";break;default:g.style.top="0",g.style.right="0"}const b=document.createElement(`${v}-toast`),f=document.createElement("div");f.setAttribute("slot","top"),f.textContent=null!==(a=e.title)&&void 0!==a?a:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const x=document.createElement("div");x.setAttribute("slot","date"),x.textContent=(new Date).toLocaleTimeString(),b.setAttribute("notify",(null===(s=null===(n=null==e?void 0:e.config)||void 0===n?void 0:n.notification)||void 0===s?void 0:s.type)||""),(null===(l=null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.notification)||void 0===l?void 0:l.autoClose)&&b.setAttribute("auto-close",`${null===(c=null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.notification)||void 0===c?void 0:c.autoClose}`),(null===(h=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.notification)||void 0===h?void 0:h.closeTimeout)&&b.setAttribute("close-timeout",`${null===(m=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.notification)||void 0===m?void 0:m.closeTimeout}`),b.appendChild(f),b.appendChild(y),b.appendChild(x),g.appendChild(b)},dialog:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-error-dialog`);Qi("dialog-container",t).appendChild(i),i.error=e,i.show()},snackbar:(e,t)=>{const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`);Qi("snack-container",t).appendChild(i),i.error=e},banner:(e,t,o)=>{var i;const a=t.split("-")[0],n=document.createElement(`${a}-error-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("error-banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return Ji()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.error=e}},oa=(e,t,o)=>{ea.log({message:Xi(e),level:Zi(e)});Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{ta[i]&&ta[i](e,t,o)}))};class ia{withTitle(e){return this.title=e,this}withErrorDetails(e){return this.errorDetails=e,this}withLogLevel(e){return this.logLevel=e,this}withAlert(e){return this.alert=e,this}withNotification(e){return this.notification=e,this}withBanner(e){return this.banner=e,this}withSnackbar(e){return this.snackbar=e,this}withDialog(e){return this.dialog=e,this}build(){if(!this.title)throw new Error("Title is required");if(!this.errorDetails)throw new Error("Missing required param 'errorDetails'");let e={title:this.title,errorDetails:this.errorDetails},t={};return this.logLevel in ie.LogLevel&&(e=Object.assign({logLevel:this.logLevel},e)),this.alert&&(t=Object.assign({alert:this.alert},t),e=Object.assign({config:t},e)),this.notification&&(t=Object.assign({notification:this.notification},t),e=Object.assign({config:t},e)),this.banner&&(t=Object.assign({banner:this.banner},t),e=Object.assign({config:t},e)),this.snackbar&&(t=Object.assign({snackbar:this.snackbar},t),e=Object.assign({config:t},e)),this.dialog&&(t=Object.assign({dialog:this.dialog},t),e=Object.assign({config:t},e)),e}}class aa{withPosition(e){return this.position=e,this}withAutoClose(e){return this.autoClose=e,this}withCloseTimeout(e){return this.closeTimeout=e,this}withType(e){return this.type=e,this}build(){let e={};return this.position&&(e=Object.assign({position:this.position},e)),this.autoClose&&(e=Object.assign({autoClose:this.autoClose},e)),this.closeTimeout&&(e=Object.assign({closeTimeout:this.closeTimeout},e)),this.type&&(e=Object.assign({type:this.type},e)),e}}const na=r.html`
1101
- <template ${(0,r.ref)("errorBoundary")}>
1102
- <slot></slot>
1103
- </template>
1104
- `,sa={mode:"open",delegatesFocus:!0};class ra extends n.FoundationElement{constructor(){super(...arguments),this.logger=(0,ie.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,x.__awaiter)(this,void 0,void 0,(function*(){if(e.connectedCallback.call(this),this.addEventListener(Ki.ERROR_BOUNDARY_EVENT,(e=>{e.stopImmediatePropagation(),oa(e.detail,this.tagName,this.errorBoundary)})),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void ae.debug(`Genesis Datasource init failed for ${this.resourceName}`);this.dataSub=null===(t=this.datasource.stream)||void 0===t?void 0:t.subscribe((e=>{if(!e.ROW)return;const t=null==e?void 0:e.ROW[0];if(e.SEQUENCE_ID>1){const e=t.HEADER,o=null==t?void 0:t.BODY,i=t.NOTIFY_SEVERITY;oa((new ia).withTitle(e).withErrorDetails(o).withNotification((new aa).withType(i).withAutoClose(!!this.closeTimeout).withCloseTimeout(this.closeTimeout).build()).build(),this.tagName,this.errorBoundary)}}))}}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.datasource)||void 0===t||t.destroy(),delete this.datasource}}(0,x.__decorate)([r.observable],ra.prototype,"errorBoundary",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"resource-name"})],ra.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],ra.prototype,"closeTimeout",void 0),(0,x.__decorate)([pt.yW],ra.prototype,"datasource",void 0);const la=ra.compose({baseName:"error-boundary",template:na,shadowOptions:sa}),da=r.css`
1105
- :host {
1106
- --design-unit: 3;
1107
- --dialog-max-width: 358px;
1108
- --dialog-min-width: 358px;
1109
- --dialog-max-height: 128px;
1110
- --error-details-min-height: 40px;
1111
- }
1112
-
1113
- .title {
1114
- margin-top: calc(var(--design-unit) * 2px);
1115
- font-size: 14px;
1116
- }
1117
-
1118
- .details {
1119
- font-size: 12px;
1120
- overflow: hidden;
1121
- min-height: var(--error-details-min-height);
1122
- }
1123
- `,ca=e=>r.html`
1124
- <${e}-dialog show-close-icon="false" ${(0,r.ref)("dialog")}>
1125
- <h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
1126
- <div class="details">${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}</div>
1127
- <${e}-button slot="bottom" appearance="lightweight" @click=${e=>{e.dismiss()}}>
1128
- ${e=>{var t,o,i,a,n,s,r,l;return(null===(a=null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===a?void 0:a.label)||(null===(l=null===(r=null===(s=null===(n=e.notification)||void 0===n?void 0:n.config)||void 0===s?void 0:s.dialog)||void 0===r?void 0:r.dismissingAction)||void 0===l?void 0:l.label)||"Ignore"}}
1129
- </${e}-button>
1130
- ${(0,r.repeat)((e=>{var t,o,i,a;return(null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.dialog.confirmingActions)||(null===(a=null===(i=e.notification)||void 0===i?void 0:i.config)||void 0===a?void 0:a.dialog.confirmingActions)}),r.html`
1131
- <${e}-button
1132
- slot="bottom"
1133
- appearance="lightweight"
1134
- @click=${(e,t)=>{null==e||e.action(),t.parent.closeDialog()}}
1135
- >
1136
- ${e=>e.label}
1137
- </${e}-button>
1138
- `)}
1139
- </${e}-dialog>
1140
- `,ua=r.html`
1141
- ${e=>ca(F(e))}
1142
- `,ha={mode:"open",delegatesFocus:!0};class pa extends n.FoundationElement{connectedCallback(){super.connectedCallback(),ae.deprecated("ErrorDialog","Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){var e,t,o,i,a,n,s,r;(null===(i=null===(o=null===(t=null===(e=this.error)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===i?void 0:i.action)&&this.error.config.dialog.dismissingAction.action(),(null===(r=null===(s=null===(n=null===(a=this.notification)||void 0===a?void 0:a.config)||void 0===n?void 0:n.dialog)||void 0===s?void 0:s.dismissingAction)||void 0===r?void 0:r.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.dialog.close(),this.remove()}catch(e){ae.error(e)}}}(0,x.__decorate)([r.observable],pa.prototype,"error",void 0),(0,x.__decorate)([r.observable],pa.prototype,"notification",void 0);const ma=pa.compose({baseName:"error-dialog",template:ua,styles:da,shadowOptions:ha});var va=o(17465);const ga=r.css`
1143
- /* Host */
1144
- :host {
1145
- display: flex;
1146
- flex-direction: column;
1147
- width: 100%;
1148
- height: 100%;
1149
- }
1150
-
1151
- .file-selection {
1152
- display: flex;
1153
- align-items: end;
1154
- justify-content: start;
1155
- padding-bottom: 10px;
1156
- }
1157
-
1158
- .file-selection :nth-last-child(-n + 2) {
1159
- margin: 0;
1160
- margin-left: 10px;
1161
- }
1162
-
1163
- input[type='file'] {
1164
- display: none;
1165
- }
1166
-
1167
- .clear-icon {
1168
- cursor: pointer;
1169
- }
1170
-
1171
- .uploader-grid {
1172
- overflow-y: auto;
1173
- }
1174
-
1175
- .file-name-input {
1176
- flex: 1;
1177
- }
1178
-
1179
- .download-button-container {
1180
- display: flex;
1181
- }
1182
-
1183
- .download-button {
1184
- height: 22px;
1185
- }
1186
-
1187
- fast-data-grid-row {
1188
- align-items: center;
1189
- }
1190
- `,ba=e=>r.html`
1191
- <template>
1192
- <div class="file-selection">
1193
- <input type="file" multiple ${(0,r.ref)("fileInput")}
1194
- @change=${(e,t)=>e.onInputChange(t.event)} :accept="${e=>e.accept}"/>
1195
- <${e}-text-field readOnly type="text" id="fileName" part="file-name-input" class="file-name-input"
1196
- :label="${e=>e.label}"
1197
- :value="${e=>e.fileName}">
1198
- ${e=>e.label}
1199
- ${(0,r.when)((e=>e.fileName),r.html`
1200
- <${e}-icon slot="end" class="clear-icon" name="xmark"
1201
- @click=${e=>e.clearSelection()}></${e}-icon>
1202
- `)}
1203
- </${e}-text-field>
1204
-
1205
- <${e}-button @click=${e=>e.handleClick()} part="select-file-button">Browse</${e}-button>
1206
- <${e}-button @click=${e=>e.handleFileUpload()} part="upload-file-button"
1207
- :disabled="${e=>!e.fileName}" >Upload</${e}-button>
1208
- </div>
1209
- <div class="uploader-grid">
1210
- <${e}-data-grid generate-header="sticky" part="uploaded-files-grid"
1211
- :rowsData="${e=>e.uploadedFilesList}"
1212
- :columnDefinitions="${e=>e.filesGridColumnDefinitions}">
1213
- </${e}-data-grid>
1214
- </div>
1215
- </template>
1216
- `,fa=r.html`
1217
- ${e=>ba(F(e))}
1218
- `,ya=(0,ie.createLogger)("foundation-notifications"),xa=e=>{var t,o;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(o=null==e?void 0:e.body)&&void 0!==o?o:"Something went wrong"}`},wa=e=>{var t;return(null==e?void 0:e.logLevel)||(null===(t=null==e?void 0:e.config)||void 0===t?void 0:t.logLevel)||ie.LogLevel.Debug},$a=e=>{ya.log({message:xa(e),level:wa(e)})},Sa=(e,t)=>{const o=t.split("-")[0];let i=document.querySelector(`#${e}`);if(!i){i=document.createElement("div"),i.setAttribute("id",e);const t=document.createElement(`${o}-design-system-provider`);t.appendChild(i),document.body.appendChild(t)}return i},Ca=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},ka=(e,t,o)=>{var i,a,n,s,r,l,d,c,u,h,p,m,v,g,b,f,y,x;$a(e);const w=t.split("-")[0],$=null!=o?o:Sa("notify-container",t);if($)switch($.style.position="fixed",null===(a=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.toast)||void 0===a?void 0:a.position){case"top-left":$.style.top="0",$.style.left="0";break;case"bottom-left":$.style.bottom="0",$.style.left="0";break;case"bottom-right":$.style.bottom="0",$.style.right="0";break;default:$.style.top="0",$.style.right="0"}const S=document.createElement(`${w}-toast`),C=document.createElement("div");C.setAttribute("slot","top"),C.textContent=e.title;const k=document.createElement("div");k.setAttribute("slot","content"),k.textContent=(null==e?void 0:e.body)||"";const F=document.createElement("div");let _;F.setAttribute("slot","date"),F.textContent=(null===(n=null==e?void 0:e.createdAt)||void 0===n?void 0:n.toLocaleTimeString())||"",(null===(r=null===(s=null==e?void 0:e.config)||void 0===s?void 0:s.toast)||void 0===r?void 0:r.buttons)&&(null===(c=null===(d=null===(l=null==e?void 0:e.config)||void 0===l?void 0:l.toast)||void 0===d?void 0:d.buttons)||void 0===c?void 0:c.length)&&(_=document.createElement("div"),_.setAttribute("slot","bottom"),e.config.toast.buttons.forEach((t=>{const o=document.createElement(`${w}-button`);o.textContent=t.placeholder||"example placeholder",o.addEventListener("click",(()=>{const{details:i}=e.config.toast;if(t.action)return t.action({details:i,buttonElement:o,toastElement:S})})),t.appearance&&o.setAttribute("appearance",t.appearance),_.appendChild(o)}))),S.setAttribute("notify",(null===(h=null===(u=null==e?void 0:e.config)||void 0===u?void 0:u.toast)||void 0===h?void 0:h.type)||""),(null===(m=null===(p=null==e?void 0:e.config)||void 0===p?void 0:p.toast)||void 0===m?void 0:m.autoClose)&&S.setAttribute("auto-close",`${null===(g=null===(v=null==e?void 0:e.config)||void 0===v?void 0:v.toast)||void 0===g?void 0:g.autoClose}`),(null===(f=null===(b=null==e?void 0:e.config)||void 0===b?void 0:b.toast)||void 0===f?void 0:f.closeTimeout)&&S.setAttribute("close-timeout",`${null===(x=null===(y=null==e?void 0:e.config)||void 0===y?void 0:y.toast)||void 0===x?void 0:x.closeTimeout}`),S.appendChild(C),S.appendChild(k),S.appendChild(F),_&&S.appendChild(_),$.appendChild(S)},Fa={alert:e=>{$a(e),alert(xa(e))},toast:ka,dialog:(e,t)=>{$a(e);const o=t.split("-")[0],i=document.createElement(`${o}-dialog`);Sa("dialog-container",t).appendChild(i),i.notification=e,i.show()},snackbar:(e,t)=>{$a(e);const o=t.split("-")[0],i=document.createElement(`${o}-snackbar`),a=Sa("snack-container",t);a&&(a.style.position="fixed",a.style.bottom="0",a.style.left="0"),a.appendChild(i),i.notification=e},banner:(e,t,o)=>{var i;$a(e);const a=t.split("-")[0],n=document.createElement(`${a}-banner`),s=(e=>{for(var t,o;e&&!(e instanceof ShadowRoot);){const i=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(i)return i.style.position="relative",i;e=null===(o=null==e?void 0:e.getRootNode())||void 0===o?void 0:o.host}return Ca()})(o);(null===(i=null==s?void 0:s.children)||void 0===i?void 0:i.length)>0&&(n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%"),s.appendChild(n),n.notification=e}},_a=(e,t,o)=>{Object.keys((null==e?void 0:e.config)||{}).forEach((i=>{Fa[i]&&Fa[i](e,t,o)}))},Oa=e=>{const t=new FormData;return e.forEach((e=>{t.append(e.name,e)})),t},Da=(e,t,o)=>{const i=new Headers;return i.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:"POST",body:t,headers:i}).then((e=>e.json().then((e=>e))))},Ta=(e,t,o,i="GET",a,n)=>{const s=new Headers;s.append("SESSION_AUTH_TOKEN",o),fetch(e,{method:i,body:n,headers:s}).then((e=>(0,x.__awaiter)(void 0,void 0,void 0,(function*(){var t;if(e.ok)return e.blob();{const o=yield e.json();a&&_a({title:null==o?void 0:o.MESSAGE_TYPE,body:null===(t=null==o?void 0:o.DETAILS)||void 0===t?void 0:t.ERROR,config:{toast:{autoClose:!0,closeTimeout:5e3,type:"warning"}}},"zero"),ae.error(o||"An error occurred while downloading the file.")}})))).then((e=>{if(e){const o=window.URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=t,document.body.appendChild(i),i.click(),i.remove(),a&&_a({title:"Success",body:"File downloaded successfully",config:{toast:{autoClose:!0,closeTimeout:5e3,type:"success"}}},"zero"),ae.info("File downloaded successfully")}})).catch((e=>{ae.error(e)}))},La=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],Ea=["text/plain","text/csv"],Aa=["application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/pdf"],Na=r.html`
1219
- ${(0,r.when)((e=>e.rowData),r.html`
1220
- ${e=>"DATETIME"===e.columnDefinition.type?(0,mt.zT)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
1221
- `)}
1222
- `;class Ia extends n.FoundationElement{constructor(){super(...arguments),this.acceptedFormats=[],this.accept="",this.fileSizeLimitBytes=104857600,this.uploadedFilesResourceName="ALL_FILE_ATTACHMENTS",this.uploadEventName="gwf/attachment-handler/upload",this.gridFields="",this.fileName="",this.uploadedFilesList=[],this.filesGridColumnDefinitions=[]}acceptChanged(){let e=[];this.accept.length>0&&this.accept.split(",").forEach((t=>{"image/*"===t?e=[...e,...La]:"office/*"===t?e=[...e,...Aa]:"text/*"===t?e=[...e,...Ea]:e.push(t)})),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,x.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),(null===(t=this.filesGridColumnDefinitions)||void 0===t?void 0:t.length)||this.setColumnDefs()}))}setupGrid(){void 0!==this.entityId&&void 0!==this.fieldName&&(this.gridCriteria=(new wt).withExpression((new Ft).withField(this.fieldName).withValue(this.entityId).build()).build(),this.setRowData())}handleStreamRowOperation(e){let t;for(const o of e.ROW)if(o.DETAILS)switch(o.DETAILS.OPERATION){case"INSERT":this.uploadedFilesList.unshift(o);break;case"MODIFY":t=this.uploadedFilesList.findIndex((e=>e.FILE_ATTACHMENT_ID===o.FILE_ATTACHMENT_ID)),this.uploadedFilesList.splice(t,1,o);break;case"DELETE":t=this.uploadedFilesList.findIndex((e=>e.FILE_ATTACHMENT_ID===o.FILE_ATTACHMENT_ID)),this.uploadedFilesList.splice(t,1);break;default:va.v.error(`Unsupported operation type: ${o.DETAILS.OPERATION}`)}}setRowData(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){yield this.connect.stream(this.uploadedFilesResourceName,(e=>{var t;1===e.SEQUENCE_ID?this.uploadedFilesList=null!==(t=e.ROW)&&void 0!==t?t:[]:this.handleStreamRowOperation(e)}),(e=>{va.v.error(e)}),{CRITERIA_MATCH:this.gridCriteria})}))}setColumnDefs(){var e;return(0,x.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),o=[];this.gridFields.length>0?this.gridFields.split(" ").forEach((e=>{var i;const a=null===(i=t.FIELD)||void 0===i?void 0:i.find((t=>t.NAME===e));a?o.push(this.getColumnObject(a)):"DOWNLOAD"===e&&this.downloadEventName&&o.push(this.getDownloadColumn())})):(null===(e=t.FIELD)||void 0===e||e.forEach((e=>{o.push(this.getColumnObject(e))})),this.downloadEventName&&o.push(this.getDownloadColumn())),this.filesGridColumnDefinitions=o}))}getDownloadColumn(){const e=this.tagName.toLowerCase().split("-")[0];return{columnDataKey:"FILE_NAME",title:"File",cellTemplate:r.html`
1223
- <template>
1224
- <div class="download-button-container">
1225
- <${e}-button
1226
- class="download-button"
1227
- @click="${e=>this.handleFileDownload(e.rowData)}"
1228
- >
1229
- DOWNLOAD
1230
- </${e}-button>
1231
- </div>
1232
- </template>
1233
- `}}getColumnObject(e){return{columnDataKey:e.NAME,title:e.NAME.toLowerCase().split("_").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" "),type:e.TYPE,cellTemplate:Na}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t,o;const i=Array.from(null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.files)&&void 0!==o?o:[]);this.onFilesSelected(i)}onFilesSelected(e){if(e.length>0&&this.acceptedFormats.length>0){for(const t of e){if(!(this.accept.split(",").includes(".msg")&&t.name&&t.name.endsWith("msg")||this.acceptedFormats.includes(t.type)))return void alert(`Not a valid file type. Accepted Formats are ${this.accept}`);if(t.size>this.fileSizeLimitBytes)return void alert(`File size exceeds the file size limit of ${this.fileSizeLimitBytes} bytes`)}this.selectedFiles=e,this.fileName=this.selectedFiles.map((e=>e.name.trim())).join()}}handleFileUpload(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){try{const e=Oa(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield Da(this.uploadEventName,e,this.session.getItem("authToken","session"));if(t.ERROR)return va.v.error(t.ERROR),void this.$emit("errorOut",t.ERROR);va.v.info(t),this.clearSelection()}catch(e){va.v.error(e)}}))}handleFileDownload(e){Ta(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"))}clearSelection(){this.fileName="",this.selectedFiles=[]}}(0,x.__decorate)([r.observable],Ia.prototype,"gridCriteria",void 0),(0,x.__decorate)([ht.dm],Ia.prototype,"connect",void 0),(0,x.__decorate)([Pt.N],Ia.prototype,"session",void 0),(0,x.__decorate)([r.attr],Ia.prototype,"label",void 0),(0,x.__decorate)([r.attr],Ia.prototype,"accept",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"file-size-limit-bytes"})],Ia.prototype,"fileSizeLimitBytes",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"uploaded-files-resource-name"})],Ia.prototype,"uploadedFilesResourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"upload-event-name"})],Ia.prototype,"uploadEventName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"field-name"})],Ia.prototype,"fieldName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"entity-id"})],Ia.prototype,"entityId",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"upload-key"})],Ia.prototype,"uploadKey",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"grid-fields"})],Ia.prototype,"gridFields",void 0),(0,x.__decorate)([r.observable],Ia.prototype,"fileName",void 0),(0,x.__decorate)([r.observable],Ia.prototype,"uploadedFilesList",void 0),(0,x.__decorate)([r.observable],Ia.prototype,"filesGridColumnDefinitions",void 0);const Ra=void 0,Ma={},Ha=Ia.compose(Object.assign({baseName:"file-upload",styles:ga,template:fa,shadowOptions:Ra},Ma)),Pa=r.css`
1234
- .filter-wrapper {
1235
- border: 1px solid gray;
1236
- border-radius: calc(var(--design-unit) * 2px);
1237
- padding: calc(var(--design-unit) * 1px);
1238
- }
1239
-
1240
- .close-icon {
1241
- display: flex;
1242
- place-content: center;
1243
- align-items: center;
1244
- flex-direction: column;
1245
- align-content: center;
1246
- justify-content: center;
1247
- margin: calc(var(--design-unit) * 1px);
1248
- padding: calc(var(--design-unit) * 1px);
1249
- border: 1px solid transparent;
1250
- border-radius: calc(var(--design-unit) * 2px);
1251
- cursor: pointer;
1252
- }
1253
-
1254
- .close-icon,
1255
- .cloase-icon svg path {
1256
- transition-property: all;
1257
- transition-timing-function: linear;
1258
- transition-duration: 300ms;
1259
- }
1260
-
1261
- .close-icon:hover {
1262
- border-color: red;
1263
- background: rgb(255 0 0 / 25%);
1264
- }
1265
-
1266
- .close-icon:hover svg path {
1267
- fill: red;
1268
- }
1269
-
1270
- .flex-row {
1271
- display: flex;
1272
- flex-direction: row;
1273
- align-content: center;
1274
- justify-content: space-between;
1275
- align-items: center;
1276
- }
1277
-
1278
- .flex-row zero-text-field,
1279
- .flex-row zero-select,
1280
- .flex-row foundation-text-field,
1281
- .flex-row foundation-select {
1282
- flex: 1;
1283
- }
1284
- `,Ba=(e="start",t="#879ba6")=>`\n <svg class="svg-icon" slot="${e}" width="16px" height="16px">\n <g transform="matrix(1 0 0 1 -1865 -3576 )">\n <path d="M 15.8825 14.185499999999998 L 9.697000000000001 8 L 14.825000000000001 2.872 L 15.8825 1.814499999999999 C 16.0385 1.6584999999999992 16.0385 1.4049999999999994 15.8825 1.2489999999999988 L 14.751 0.11749999999999972 C 14.594999999999999 -0.03850000000000087 14.3415 -0.03850000000000087 14.1855 0.11749999999999972 L 8 6.303000000000001 L 1.8145 0.11699999999999999 C 1.6585 -0.03900000000000059 1.4050000000000002 -0.03900000000000059 1.2489999999999999 0.11699999999999999 L 0.11699999999999999 1.2485 C -0.039000000000000014 1.4044999999999996 -0.039000000000000014 1.6579999999999995 0.11699999999999999 1.814 L 6.303000000000001 8 L 0.11699999999999999 14.185499999999998 C -0.039000000000000014 14.3415 -0.039000000000000014 14.594999999999999 0.11699999999999999 14.751000000000001 L 1.2485 15.8825 C 1.4045 16.0385 1.658 16.0385 1.814 15.8825 L 8 9.697 L 13.128 14.825 L 14.1855 15.8825 C 14.3415 16.0385 14.594999999999999 16.0385 14.751 15.8825 L 15.8825 14.751000000000001 C 16.0385 14.594999999999999 16.0385 14.3415 15.8825 14.185499999999998 Z " fill-rule="nonzero" fill="${t}" stroke="none" transform="matrix(1 0 0 1 1865 3576 )" />\n </g>\n </svg>\n`,za=r.html`
1285
- <div class="close-icon" @click=${e=>e.clear()}>${Ba()}</div>
1286
- `;function ja(e){var t,o,i;return null!==(i=null===(o=null===(t=null==e?void 0:e.event)||void 0===t?void 0:t.target)||void 0===o?void 0:o.value)&&void 0!==i?i:"all"}const Va=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],Ga=(e,t)=>{switch(e.type){case"number":return(e=>r.html`
1287
- <div class="flex-row">
1288
- <div>${e=>e.label}</div>
1289
- ${za}
1290
- </div>
1291
- <div class="flex-row">
1292
- <${e}-text-field
1293
- ${(0,r.ref)("numFilterFieldMin")}
1294
- type="number"
1295
- :value=${(0,Ge.O)((e=>e.numFilterMin))}
1296
- placeholder="min"
1297
- ></${e}-text-field>
1298
- <${e}-text-field
1299
- ${(0,r.ref)("numFilterFieldMax")}
1300
- type="number"
1301
- :value=${(0,Ge.O)((e=>e.numFilterMax))}
1302
- placeholder="max"
1303
- ></${e}-text-field>
1304
- </div>
1305
- `)(t);case"date":return(e=>r.html`
1306
- <div class="flex-row">
1307
- <div>${e=>e.label}</div>
1308
- ${za}
1309
- </div>
1310
- <div class="flex-row">
1311
- <${e}-text-field
1312
- ${(0,r.ref)("dateFilterFieldMin")}
1313
- type="date"
1314
- :value=${(0,Ge.O)((e=>e.dateFilterMin))}
1315
- ></${e}-text-field>
1316
- <${e}-text-field
1317
- ${(0,r.ref)("dateFilterFieldMax")}
1318
- type="date"
1319
- :value=${(0,Ge.O)((e=>e.dateFilterMax))}
1320
- ></${e}-text-field>
1321
- </div>
1322
- `)(t);case"boolean":return(e=>r.html`
1323
- <div class="flex-row">
1324
- <div>${e=>e.label}</div>
1325
- ${za}
1326
- </div>
1327
- <div class="flex-row">
1328
- <${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(ja(t))}}">
1329
- ${(0,r.repeat)((()=>Va),r.html`
1330
- <${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
1331
- ${e=>e.name}
1332
- </${e}-option>
1333
- `)}
1334
- </${e}-select>
1335
- </div>
1336
- `)(t);case"enum":return(e=>r.html`
1337
- <div class="flex-row">
1338
- <div>${e=>e.label}</div>
1339
- ${za}
1340
- </div>
1341
- <div class="flex-row">
1342
- <${e}-select @change="${(e,t)=>e.onEnumFilterSelection(ja(t))}}">
1343
- ${(0,r.repeat)((e=>e.enumFilterOptions),r.html`
1344
- <${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
1345
- ${e=>e.name}
1346
- </${e}-option>
1347
- `)}
1348
- </${e}-select>
1349
- </div>
1350
- `)(t);default:return(e=>r.html`
1351
- <div class="flex-row">
1352
- <div>${e=>e.label}</div>
1353
- ${za}
1354
- </div>
1355
- <div class="flex-row">
1356
- <${e}-text-field
1357
- ${(0,r.ref)("textFilterField")}
1358
- type="text"
1359
- :value=${(0,Ge.O)((e=>e.textFilter))}
1360
- />
1361
- </div>
1362
- `)(t)}},Ua=e=>r.html`
1363
- <div class="filter-wrapper">${t=>Ga(t,e)}</div>
1364
- `,Ya=r.html`
1365
- ${e=>Ua(F(e))}</div>
1366
- `;var Wa;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(Wa||(Wa={}));class qa extends n.FoundationElement{constructor(){super(...arguments),this.type="text",this.textFilter="",this.enumFilterOptions=[{name:"All",value:"all",selected:!0}]}textFilterChanged(e,t){if(!(null==t?void 0:t.length))return void this.$emit(Wa.clear,{fieldName:this.fieldName,target:this.target});const o=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(Wa.change,{fieldName:this.fieldName,filter:o,target:this.target})}numFilterMinChanged(e,t){this.numFilterMin=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}numFilterMaxChanged(e,t){this.numFilterMax=Number.isFinite(Number(t))?Number(t):void 0,this.handleNumericFilter(this.numFilterMin,this.numFilterMax)}handleNumericFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t))return void this.$emit(Wa.clear,{fieldName:this.fieldName,target:this.target});const o=`${this.fieldName} >= ${e}`,i=`${this.fieldName} <= ${t}`,a=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${i})`:o:i;this.$emit(Wa.change,{fieldName:this.fieldName,filter:a,target:this.target})}formatDate(e){if(Number.isFinite(e))return new Date(e).toISOString().slice(0,19).replace(/-/g,"").replace("T","-")}dateFilterMinChanged(e,t){this.dateMinMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}dateFilterMaxChanged(e,t){this.dateMaxMS=Date.parse(t),this.handleDateFilter(this.dateMinMS,this.dateMaxMS)}handleDateFilter(e,t){if(!Number.isFinite(e)&&!Number.isFinite(t))return void this.$emit(Wa.clear,{fieldName:this.fieldName});const o=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,i=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,a=Number.isFinite(e)?Number.isFinite(t)?`(${o} && ${i})`:o:i;this.$emit(Wa.change,{fieldName:this.fieldName,filter:a,target:this.target})}connectedCallback(){var e;if(super.connectedCallback(),null===(e=this.enumOptions)||void 0===e?void 0:e.length){const e=this.enumOptions.includes("|")?"|":",",t=this.enumOptions.split(e).map((e=>({name:e,value:e})));this.enumFilterOptions=[{name:"All",value:"all",selected:!0},...t]}}clear(){switch(this.type){case"number":this.numFilterFieldMin.value=void 0,this.numFilterFieldMax.value=void 0,this.numFilterMin=void 0,this.numFilterMax=void 0;break;case"date":this.dateFilterFieldMin.value="",this.dateFilterFieldMax.value="",this.dateMinMS=NaN,this.dateMaxMS=NaN;break;case"text":this.textFilterField.value=""}this.$emit(Wa.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(Wa.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(Wa.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(Wa.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(Wa.clear,{fieldName:this.fieldName,target:this.target})}}(0,x.__decorate)([r.attr],qa.prototype,"fieldName",void 0),(0,x.__decorate)([r.attr],qa.prototype,"type",void 0),(0,x.__decorate)([r.attr],qa.prototype,"label",void 0),(0,x.__decorate)([r.attr],qa.prototype,"target",void 0),(0,x.__decorate)([r.observable],qa.prototype,"textFilter",void 0),(0,x.__decorate)([r.observable],qa.prototype,"numFilterMin",void 0),(0,x.__decorate)([r.observable],qa.prototype,"numFilterMax",void 0),(0,x.__decorate)([r.observable],qa.prototype,"dateFilterMin",void 0),(0,x.__decorate)([r.observable],qa.prototype,"dateFilterMax",void 0),(0,x.__decorate)([r.attr],qa.prototype,"enumOptions",void 0),(0,x.__decorate)([r.observable],qa.prototype,"enumFilterOptions",void 0);const Ka=qa.compose({baseName:"filter",template:Ya,styles:Pa});var Xa=o(64324);const Za=(e,t)=>r.css`
1367
- .filter-bar {
1368
- background-color: #2c2f33;
1369
- padding: calc(var(--design-unit) * 2px);
1370
- transition: all 0.5s ease-out;
1371
- }
1372
-
1373
- .filter-grid {
1374
- display: grid;
1375
- grid-template-columns: repeat(3, 1fr);
1376
- grid-auto-rows: minmax(64px, auto);
1377
- gap: calc(var(--design-unit) * 1px);
1378
- align-items: end;
1379
- justify-items: stretch;
1380
- }
1381
-
1382
- .toggle {
1383
- display: flex;
1384
- justify-content: center;
1385
- min-height: 20px;
1386
- cursor: pointer;
1387
- border-radius: calc(var(--control-corner-radius) * 1px) calc(var(--control-corner-radius) * 1px)
1388
- 0 0;
1389
- border-top: 2px solid;
1390
- color: #f44378;
1391
- }
1392
-
1393
- .collapsed {
1394
- max-height: 0;
1395
- padding: 0;
1396
- overflow: hidden;
1397
- }
1398
-
1399
- .toggle-collapsed {
1400
- color: #48ed9c;
1401
- }
1402
- `,Qa=e=>{switch(e){case"INT":case"DOUBLE":case"LONG":return"number";case"DATETIME":return"date";case"BOOLEAN":return"boolean";case"ENUM":return"enum";default:return"text"}},Ja=r.html`
1403
- <p>Fetching metadata for ${e=>e.resource}...</p>
1404
- `,en=e=>r.html`
1405
- <div
1406
- class=${e=>(0,w.x)(["toggle",!0],["toggle-collapsed",e.collapsed])}
1407
- @click="${e=>e.toggle()}"
1408
- >
1409
- ${(e=>r.html`
1410
- ${(0,r.when)((e=>e.collapsed),r.html`
1411
- <${e}-icon name="chevron-up"></${e}-icon>
1412
- `)}
1413
- ${(0,r.when)((e=>!e.collapsed),r.html`
1414
- <${e}-icon name="chevron-down"></${e}-icon>
1415
- `)}
1416
- `)(e)}
1417
- </div>
1418
- <div class=${e=>(0,w.x)(["filter-bar",!0],["collapsed",e.collapsed])}>
1419
- <div class="filter-grid" ${(0,r.ref)("filterGrid")}>
1420
- ${(0,r.repeat)((e=>e.fields),r.html`
1421
- <${e}-filter
1422
- label="${e=>e.UI_LABEL}"
1423
- target="${(e,t)=>{var o;return null===(o=t.parent)||void 0===o?void 0:o.target}}"
1424
- type="${e=>Qa(e.TYPE)}"
1425
- fieldName="${e=>e.NAME}"
1426
- enumOptions="${e=>e.VALID_VALUES}"
1427
- ></${e}-filter>
1428
- `)}
1429
- </div>
1430
- </div>
1431
- `,tn=r.html`
1432
- ${e=>e.ready?en(F(e)):Ja}
1433
- `,on=5;class an extends n.FoundationElement{constructor(){super(...arguments),this.columns=on,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){var e,t,o,i,a;let n=!1,s=[];(null===(e=null==this?void 0:this.labels)||void 0===e?void 0:e.length)&&(s=null===(t=this.labels.split(","))||void 0===t?void 0:t.map((e=>e.trim())),n=(null===(o=this.fields)||void 0===o?void 0:o.length)===(null==s?void 0:s.length));for(let e=0;null!==(a=e<(null===(i=this.fields)||void 0===i?void 0:i.length))&&void 0!==a&&a;e+=1){const t=n?s[e]:this.camelCasePreserveWhitespace(this.fields[e].NAME.replace(/_/g," "));this.fields[e].UI_LABEL=t}}camelCasePreserveWhitespace(e){return e.split(" ").map((e=>(0,Xa.fL)(e))).join(" ")}resourceChanged(e,t){e!==t&&(null==e?void 0:e.length)&&this.init()}init(){this.ready=!1,this.connect.getMetadata(this.resource).then((e=>{var t,o;if(this.fields=e.FIELD,null===(t=this.only)||void 0===t?void 0:t.length){const e=this.only.split(",").map((e=>e.trim())),t=(t,o)=>e.indexOf(t.NAME)>e.indexOf(o.NAME)?1:-1;this.fields=null===(o=this.fields)||void 0===o?void 0:o.filter((t=>e.includes(t.NAME))).sort(t)}this.ready=!0})).then((()=>this.initLabels())).then((()=>window.requestAnimationFrame((()=>{this.adjustColumnStyles()})))).catch((e=>ae.error(e)))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,x.__decorate)([r.attr],an.prototype,"resource",void 0),(0,x.__decorate)([r.attr],an.prototype,"only",void 0),(0,x.__decorate)([r.attr],an.prototype,"labels",void 0),(0,x.__decorate)([r.attr],an.prototype,"target",void 0),(0,x.__decorate)([r.attr],an.prototype,"columns",void 0),(0,x.__decorate)([r.observable],an.prototype,"ready",void 0),(0,x.__decorate)([r.observable],an.prototype,"fields",void 0),(0,x.__decorate)([ht.dm],an.prototype,"connect",void 0),(0,x.__decorate)([r.observable],an.prototype,"collapsed",void 0);const nn=an.compose({baseName:"filter-bar",template:tn,styles:Za});var sn;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(sn||(sn={}));const rn=e=>{const t=e?`-${e}`:"";return r.css`
1434
- ${t&&`@media only screen and ${sn[e]} {`}
1435
- :host(.spacing${t}-1x) slot {
1436
- gap: calc(var(--design-unit) * 2px);
1437
- }
1438
-
1439
- :host(.spacing${t}-2x) slot {
1440
- gap: calc(var(--design-unit) * 4px);
1441
- }
1442
-
1443
- :host(.spacing${t}-3x) slot {
1444
- gap: calc(var(--design-unit) * 6px);
1445
- }
1446
-
1447
- :host(.spacing${t}-4x) slot {
1448
- gap: calc(var(--design-unit) * 8px);
1449
- }
1450
-
1451
- :host(.spacing${t}-5x) slot {
1452
- gap: calc(var(--design-unit) * 10px);
1453
- }
1454
-
1455
- :host(.spacing${t}-6x) slot {
1456
- gap: calc(var(--design-unit) * 12px);
1457
- }
1458
-
1459
- :host(.flex${t}-column) slot {
1460
- flex-direction: column;
1461
- }
1462
-
1463
- :host(.flex${t}-column-reverse) slot {
1464
- flex-direction: column-reverse;
1465
- }
1466
-
1467
- :host(.flex${t}-row) slot {
1468
- flex-direction: row;
1469
- }
1470
-
1471
- :host(.flex${t}-row-reverse) slot {
1472
- flex-direction: row-reverse;
1473
- }
1474
-
1475
- :host(.flex${t}-wrap) slot {
1476
- flex-wrap: wrap;
1477
- }
1478
-
1479
- :host(.flex${t}-wrap-reverse) slot {
1480
- flex-wrap: wrap-reverse;
1481
- }
1482
-
1483
- :host(.justify${t}-start) slot {
1484
- justify-content: flex-start;
1485
- }
1486
-
1487
- :host(.justify${t}-end) slot {
1488
- justify-content: flex-end;
1489
- }
1490
-
1491
- :host(.justify${t}-center) slot {
1492
- justify-content: center;
1493
- }
1494
-
1495
- :host(.justify${t}-between) slot {
1496
- justify-content: space-between;
1497
- }
1498
-
1499
- :host(.justify${t}-around) slot {
1500
- justify-content: space-around;
1501
- }
1502
-
1503
- :host(.justify${t}-evenly) slot {
1504
- justify-content: space-evenly;
1505
- }
1506
-
1507
- :host(.items${t}-start) slot {
1508
- align-items: flex-start;
1509
- }
1510
-
1511
- :host(.items${t}-end) slot {
1512
- align-items: flex-end;
1513
- }
1514
-
1515
- :host(.items${t}-center) slot {
1516
- align-items: center;
1517
- }
1518
-
1519
- :host(.items${t}-stretch) slot {
1520
- align-items: stretch;
1521
- }
1522
-
1523
- :host(.items${t}-baseline) slot {
1524
- align-items: baseline;
1525
- }
1526
-
1527
- :host(.content${t}-start) slot {
1528
- align-content: flex-start;
1529
- }
1530
-
1531
- :host(.content${t}-end) slot {
1532
- align-content: flex-end;
1533
- }
1534
-
1535
- :host(.content${t}-center) slot {
1536
- align-content: center;
1537
- }
1538
-
1539
- :host(.content${t}-between) slot {
1540
- align-content: space-between;
1541
- }
1542
-
1543
- :host(.content${t}-around) slot {
1544
- align-content: space-around;
1545
- }
1546
-
1547
- :host(.content${t}-evenly) slot {
1548
- align-content: space-evenly;
1549
- }
1550
- ${t&&"}"}
1551
- `},ln=r.css`
1552
- :host {
1553
- width: 100%;
1554
- height: 100%;
1555
- }
1556
-
1557
- slot {
1558
- width: 100%;
1559
- height: 100%;
1560
- display: flex;
1561
- }
1562
-
1563
- ${rn()}
1564
- ${rn("lg")}
1565
- ${rn("md")}
1566
- ${rn("sm")}
1567
- `,dn=r.html`
1568
- <template>
1569
- <slot></slot>
1570
- </template>
1571
- `,cn=void 0,un={};class hn extends n.FoundationElement{}const pn=hn.compose(Object.assign({baseName:"flex-layout",styles:ln,template:dn,shadowOptions:cn},un)),mn=(e,t)=>r.css`
1572
- ${(0,s.flipperStyles)(e,t)}
1573
- `,vn=(e,t)=>(0,n.flipperTemplate)(e,t);class gn extends s.Flipper{}const bn=void 0,fn={next:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n ',previous:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n <path\n d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"\n />\n </svg>\n '},yn=gn.compose(Object.assign({baseName:"flipper",template:vn,styles:mn,shadowOptions:bn},fn)),xn=225,wn=r.css`
1574
- /* Host */
1575
- :host {
1576
- display: inline-block;
1577
- height: 100vh;
1578
- position: absolute;
1579
- width: 100vw;
1580
- }
1581
-
1582
- :host([closed]) {
1583
- display: none;
1584
- }
1585
-
1586
- div.container {
1587
- height: 100%;
1588
- width: 100%;
1589
- }
1590
-
1591
- /* flyout */
1592
- div.flyout {
1593
- background-color: white;
1594
- color: black;
1595
- height: 100%;
1596
- position: absolute;
1597
- /* stylelint-disable-next-line function-name-case */
1598
- transition: transform ${xn.toString()}ms ease-in;
1599
- width: 20%;
1600
- z-index: 2001;
1601
- }
1602
-
1603
- :host([position='left']) div.flyout {
1604
- left: 0;
1605
- transform: translateX(0%);
1606
- }
1607
-
1608
- :host([position='right']) div.flyout {
1609
- right: 0;
1610
- transform: translateX(0%);
1611
- }
1612
-
1613
- :host([visuallyhidden][position='left']) div.flyout {
1614
- left: 0;
1615
- transform: translateX(-100%);
1616
- }
1617
-
1618
- :host([visuallyhidden][position='right']) div.flyout {
1619
- right: 0;
1620
- transform: translateX(100%);
1621
- }
1622
-
1623
- div.header {
1624
- align-items: center;
1625
- display: flex;
1626
- padding: calc(var(--design-unit) * 3px) calc(var(--design-unit) * 2px);
1627
- }
1628
-
1629
- div.title {
1630
- flex-grow: 1;
1631
- }
1632
-
1633
- div.footer {
1634
- bottom: 0;
1635
- position: absolute;
1636
- width: 100%;
1637
- }
1638
-
1639
- /* Background */
1640
- div.background {
1641
- background-color: black;
1642
- height: 100%;
1643
- opacity: 50%;
1644
- position: absolute;
1645
- /* stylelint-disable-next-line function-name-case */
1646
- transition: opacity ${xn.toString()}ms linear;
1647
- width: 100%;
1648
- z-index: 2000;
1649
- }
1650
-
1651
- :host([visuallyhidden]) div.background {
1652
- opacity: 0%;
1653
- }
1654
- `,$n=e=>r.html`
1655
- <div ?closed=${e=>e.closed} ?visuallyhidden=${e=>e.visuallyhidden}>
1656
- <div class="container">
1657
- <div class="background" part="background" @click=${e=>e.closeFlyout()}></div>
1658
- <div class="flyout" part="flyout" @transitionend=${e=>e.closingFinished()}>
1659
- ${(0,r.when)((e=>e.displayHeader),r.html`
1660
- <div class="header" part="header">
1661
- <div class="title" part="title">
1662
- <slot name="title"></slot>
1663
- </div>
1664
- <${e}-button class="exit" part="exit" aria-label="exit" ${(0,r.ref)("exit")} appearance="stealth" @click=${e=>e.closeFlyout()}>
1665
- <${e}-icon name="times"></${e}-icon>
1666
- </${e}-button>
1667
- </div>
1668
- `)}
1669
- <div class="content" part="content">
1670
- <slot></slot>
1671
- </div>
1672
- <div class="footer" part="footer">
1673
- <slot name="footer"></slot>
1674
- </div>
1675
- </div>
1676
- </div>
1677
- </div>
1678
- `,Sn=r.html`
1679
- ${e=>$n(F(e))}
1680
- `;class Cn extends n.FoundationElement{constructor(){super(...arguments),this.position="right",this.displayHeader=!0,this.closed=!0,this.visuallyhidden=!0}closedChanged(){this.closed||(setTimeout((()=>this.visuallyhidden=!1),1),this.focusExit())}closeFlyout(){this.visuallyhidden=!0}closingFinished(){this.visuallyhidden&&(this.closed=!0,this.$emit("closed"))}focusExit(){this.exit.focus()}}(0,x.__decorate)([r.attr],Cn.prototype,"position",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Cn.prototype,"displayHeader",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Cn.prototype,"closed",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Cn.prototype,"visuallyhidden",void 0);const kn=void 0,Fn={},_n=Cn.compose(Object.assign({baseName:"flyout",styles:wn,template:Sn,shadowOptions:kn},Fn));var On;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(On||(On={}));const Dn=e=>{const t=e?`-${e}`:"";return r.css`
1681
- ${t&&`@media only screen and ${On[e]} {`}
1682
- :host(.spacing${t}-1x) slot {
1683
- gap: calc(var(--design-unit) * 2px);
1684
- }
1685
-
1686
- :host(.spacing${t}-2x) slot {
1687
- gap: calc(var(--design-unit) * 4px);
1688
- }
1689
-
1690
- :host(.spacing${t}-3x) slot {
1691
- gap: calc(var(--design-unit) * 6px);
1692
- }
1693
-
1694
- :host(.spacing${t}-4x) slot {
1695
- gap: calc(var(--design-unit) * 8px);
1696
- }
1697
-
1698
- :host(.spacing${t}-5x) slot {
1699
- gap: calc(var(--design-unit) * 10px);
1700
- }
1701
-
1702
- :host(.spacing${t}-6x) slot {
1703
- gap: calc(var(--design-unit) * 12px);
1704
- }
1705
-
1706
- :host(.flow${t}-row) slot {
1707
- grid-auto-flow: row;
1708
- }
1709
-
1710
- :host(.flow${t}-column) slot {
1711
- grid-auto-flow: column;
1712
- }
1713
-
1714
- :host(.flow${t}-row-dense) slot {
1715
- grid-auto-flow: row dense;
1716
- }
1717
-
1718
- :host(.flow${t}-column-dense) slot {
1719
- grid-auto-flow: column dense;
1720
- }
1721
-
1722
- :host(.content${t}-center) slot {
1723
- place-content: center;
1724
- }
1725
-
1726
- :host(.content${t}-start) slot {
1727
- place-content: start;
1728
- }
1729
-
1730
- :host(.content${t}-end) slot {
1731
- place-content: end;
1732
- }
1733
-
1734
- :host(.content${t}-between) slot {
1735
- place-content: space-between;
1736
- }
1737
-
1738
- :host(.content${t}-around) slot {
1739
- place-content: space-around;
1740
- }
1741
-
1742
- :host(.content${t}-evenly) slot {
1743
- place-content: space-evenly;
1744
- }
1745
-
1746
- :host(.content${t}-stretch) slot {
1747
- place-content: stretch;
1748
- }
1749
-
1750
- :host(.place${t}-items-start) slot {
1751
- place-items: start;
1752
- }
1753
-
1754
- :host(.place${t}-items-end) slot {
1755
- place-items: end;
1756
- }
1757
-
1758
- :host(.place${t}-items-center) slot {
1759
- place-items: center;
1760
- }
1761
-
1762
- :host(.place${t}-items-stretch) slot {
1763
- place-items: stretch;
1764
- }
1765
- ${t&&"}"}
1766
- `},Tn=r.css`
1767
- slot {
1768
- width: 100%;
1769
- height: 100%;
1770
- display: grid;
1771
- }
1772
-
1773
- ${Dn()}
1774
- ${Dn("lg")}
1775
- ${Dn("md")}
1776
- ${Dn("sm")}
1777
- `,Ln=r.html`
1778
- <template>
1779
- <slot></slot>
1780
- </template>
1781
- `,En=void 0,An={};class Nn{constructor(e,t,o,i="1fr",a="1fr"){this.listenerCache=new WeakMap,this.query=window.matchMedia(e);const n=t&&r.cssPartial`grid-template-columns: repeat(${t}, ${i});`,s=o&&r.cssPartial`grid-template-rows: repeat(${o}, ${a});`;this.styles=r.css`
1782
- slot {
1783
- ${s||""}
1784
- ${n||""}
1785
- }
1786
- `}bind(e){let t=!1;const o=o=>{const{matches:i}=o;i&&!t?(e.$fastController.addStyles(this.styles),t=!0):!i&&t&&(this.styles&&e.$fastController.removeStyles(this.styles),t=!1)};o({matches:this.query.matches}),this.query.addEventListener("change",o),this.listenerCache.set(e,o)}unbind(e){const t=this.listenerCache.get(e);t&&(this.query.removeEventListener("change",t),this.listenerCache.delete(e)),this.styles&&e.$fastController.removeStyles(this.styles)}}class In extends n.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(On).map((e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new Nn(On[e],this[`col-${e}-count`],this[`row-${e}-count`],this[`col-${e}-width`],this[`row-${e}-height`])})).filter((e=>!!e));const e=this["row-count"]&&r.cssPartial`grid-template-rows: repeat(${this["row-count"]}, ${this["row-height"]||"1fr"});`,t=this["col-count"]&&r.cssPartial`grid-template-columns: repeat(${this["col-count"]}, ${this["col-width"]||"1fr"});`;this.baseStyles=r.css`
1787
- slot {
1788
- ${e||""}
1789
- ${t||""}
1790
- }
1791
- `,this.$fastController.addStyles(this.baseStyles),this.$fastController.addBehaviors(this.behaviors)}disconnectedCallback(){super.disconnectedCallback(),this.$fastController.removeBehaviors(this.behaviors),this.baseStyles&&this.$fastController.removeStyles(this.baseStyles)}}(0,x.__decorate)([r.attr],In.prototype,"col-count",void 0),(0,x.__decorate)([r.attr],In.prototype,"col-width",void 0),(0,x.__decorate)([r.attr],In.prototype,"col-lg-count",void 0),(0,x.__decorate)([r.attr],In.prototype,"col-lg-width",void 0),(0,x.__decorate)([r.attr],In.prototype,"col-md-count",void 0),(0,x.__decorate)([r.attr],In.prototype,"col-md-width",void 0),(0,x.__decorate)([r.attr],In.prototype,"col-sm-count",void 0),(0,x.__decorate)([r.attr],In.prototype,"col-sm-width",void 0),(0,x.__decorate)([r.attr],In.prototype,"row-count",void 0),(0,x.__decorate)([r.attr],In.prototype,"row-height",void 0),(0,x.__decorate)([r.attr],In.prototype,"row-lg-count",void 0),(0,x.__decorate)([r.attr],In.prototype,"row-lg-height",void 0),(0,x.__decorate)([r.attr],In.prototype,"row-md-count",void 0),(0,x.__decorate)([r.attr],In.prototype,"row-md-height",void 0),(0,x.__decorate)([r.attr],In.prototype,"row-sm-count",void 0),(0,x.__decorate)([r.attr],In.prototype,"row-sm-height",void 0);const Rn=In.compose(Object.assign({baseName:"grid-layout",styles:Tn,template:Ln,shadowOptions:En},An)),Mn=r.html`
1792
- <template>
1793
- <style>
1794
- :host {
1795
- width: 100%;
1796
- height: 100%;
1797
- ${e=>e.setGridItemProperties(e.colNumber,e.rowNumber,e.width,e.height)}
1798
- }
1799
-
1800
- @media only screen and (min-width: 1025px) {
1801
- :host {
1802
- ${e=>e.setGridItemProperties(e.colLgNumber,e.rowLgNumber,e.widthLg,e.heightLg)}
1803
- }
1804
- }
1805
-
1806
- @media only screen and (min-width: 641px) and (max-width: 1024px) {
1807
- :host {
1808
- ${e=>e.setGridItemProperties(e.colMdNumber,e.rowMdNumber,e.widthSm,e.heightMd)}
1809
- }
1810
- }
1811
-
1812
- @media only screen and (max-width: 640px) {
1813
- :host {
1814
- ${e=>e.setGridItemProperties(e.colSmNumber,e.rowSmNumber,e.widthSm,e.heightSm)}
1815
- }
1816
- }
1817
- </style>
1818
- <slot></slot>
1819
- </template>
1820
- `,Hn=void 0,Pn={};class Bn extends n.FoundationElement{setGridItemProperties(e,t,o,i){if(t&&e&&o&&i){return`grid-row: ${0===t||0===i?"auto":`${t} / ${Number(t)+Number(i)}`}; grid-column: ${0===e||0===o?"auto":`${e} / ${Number(e)+Number(o)}`}`}}}(0,x.__decorate)([(0,r.attr)({attribute:"col-number"})],Bn.prototype,"colNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"col-sm-number"})],Bn.prototype,"colSmNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"col-md-number"})],Bn.prototype,"colMdNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"col-lg-number"})],Bn.prototype,"colLgNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-number"})],Bn.prototype,"rowNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-sm-number"})],Bn.prototype,"rowSmNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-md-number"})],Bn.prototype,"rowMdNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"row-lg-number"})],Bn.prototype,"rowLgNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width"})],Bn.prototype,"width",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width-sm"})],Bn.prototype,"widthSm",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width-md"})],Bn.prototype,"widthMd",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"width-lg"})],Bn.prototype,"widthLg",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height"})],Bn.prototype,"height",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height-sm"})],Bn.prototype,"heightSm",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height-md"})],Bn.prototype,"heightMd",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"height-lg"})],Bn.prototype,"heightLg",void 0);const zn=Bn.compose(Object.assign({baseName:"grid-layout-item",template:Mn,shadowOptions:Hn},Pn)),jn=(e,t)=>r.css`
1821
- ${(0,s.horizontalScrollStyles)(e,t)}
1822
- `,Vn=(e,t)=>(0,n.horizontalScrollTemplate)(e,t);class Gn extends s.HorizontalScroll{}const Un={delegatesFocus:!0,mode:"open"},Yn={nextFlipper:r.html`
1823
- <foundation-flipper
1824
- @click="${e=>e.scrollToNext()}"
1825
- aria-hidden="${e=>e.flippersHiddenFromAT}"
1826
- ></foundation-flipper>
1827
- `,previousFlipper:r.html`
1828
- <foundation-flipper
1829
- @click="${e=>e.scrollToPrevious()}"
1830
- direction="previous"
1831
- aria-hidden="${e=>e.flippersHiddenFromAT}"
1832
- ></foundation-flipper>
1833
- `},Wn=Gn.compose(Object.assign({baseName:"horizontal-scroll",template:Vn,styles:jn,shadowOptions:Un},Yn));var qn=o(70623),Kn=o(32808),Xn=o(10463),Zn=o(19037),Qn=o(22984);const Jn=()=>(qn.Yv.add(Qn.X7I,Zn.C91,Xn.Cvc),qn.tT.css()),es=(e,t)=>r.css`
1834
- ${Jn()}
1835
-
1836
- .fa-stack-1x {
1837
- font-size: 1em;
1838
- }
1839
-
1840
- .fa-stack-2x {
1841
- font-size: 2em;
1842
- }
1843
-
1844
- .tooltip-icon {
1845
- color: var(--accent-foreground-rest);
1846
- }
1847
-
1848
- .error-tooltip {
1849
- color: var(--error-color);
1850
- }
1851
-
1852
- .tooltip-element {
1853
- position: absolute;
1854
- z-index: 999;
1855
- width: 300px;
1856
- contain: unset;
1857
- }
1858
-
1859
- .tooltip-element::part(tooltip) {
1860
- padding: calc(var(--design-unit) * 4px);
1861
- background-color: color-mix(in srgb, var(--neutral-layer-4), #000 10%);
1862
- border: 1px solid var(--neutral-layer-3);
1863
- text-align: left;
1864
- color: var(--neutral-foreground-hint);
1865
- box-shadow: 0 4px 10px rgb(0 0 0 / 35%);
1866
- font-size: var(--type-ramp-minus-1-font-size);
1867
- }
1868
-
1869
- .tooltip-title {
1870
- color: var(--neutral-fill-strong-hover);
1871
- margin: 0;
1872
- }
1873
-
1874
- .tooltip-description {
1875
- margin-top: calc(var(--design-unit) * 2px);
1876
- margin-bottom: 0;
1877
- font-size: var(--type-ramp-base-font-size);
1878
- }
1879
-
1880
- .tooltip-second-title-margin {
1881
- margin-top: calc(var(--design-unit) * 2px);
1882
- }
1883
-
1884
- .tooltip-list-padding {
1885
- margin: 0;
1886
- padding: 0 0 0 calc(var(--design-unit) * 4px);
1887
- }
1888
-
1889
- a,
1890
- a:active,
1891
- a:visited {
1892
- color: var(--accent-foreground-rest);
1893
- text-decoration: none;
1894
- }
1895
-
1896
- .warning {
1897
- background: var(--warning-color);
1898
- color: #000;
1899
- }
1900
-
1901
- .info {
1902
- margin-top: calc(var(--design-unit) * 2px);
1903
- padding: 20px;
1904
- margin-bottom: 20px;
1905
- height: auto;
1906
- box-sizing: border-box;
1907
- }
1908
- `,ts=e=>r.html`
1909
- <template>
1910
- <i
1911
- ${(0,r.ref)("iElement")}
1912
- id="${e=>e.tooltipId}"
1913
- class=${e=>`fa-${e.name} fa-${e.size} fa-${e.variant} ${(0,w.x)(["error-tooltip",!(!e.isError||!e.tooltip)],["tooltip-icon",!(e.isError||!e.tooltip)])}`}
1914
- part=${e=>`icon-${e.name}-${e.size}-${e.variant}`}
1915
- >
1916
- <slot></slot>
1917
- </i>
1918
- ${(0,r.when)((e=>e.tooltip),r.html`
1919
- <${e}-tooltip part="tooltip" class="tooltip-element" show anchor="${e=>e.tooltipId}">
1920
- ${e=>r.html`
1921
- ${e.tooltip}
1922
- `}
1923
- </${e}-tooltip>
1924
- `)}
1925
- </template>
1926
- `,os=r.html`
1927
- ${e=>ts(F(e))}
1928
- `,is={mode:"open",delegatesFocus:!0},as={};var ns;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(ns||(ns={}));const ss="1x",rs=["2xs","xs","sm","lg","xl","2xl",ss,"2x","3x","4x","5x","6x","7x","8x","9x","10x","stack-1x","stack-2x"];class ls extends n.FoundationElement{constructor(){super(...arguments),this.isError=!1,this.size="sm",this.variant="solid"}nameChanged(e,t){t&&this.loadIcon()}sizeChanged(e,t){t&&this.loadIcon()}variantChanged(e,t){t&&this.loadIcon()}connectedCallback(){super.connectedCallback(),this.loadIcon()}disconnectedCallback(){super.disconnectedCallback(),this.iElement.replaceChildren()}getDefaultTooltipConfig(){this.name||(this.name="question-circle",this.size="1x",this.variant="regular")}loadIcon(){if(!this.iElement)return;this.tooltip&&(this.tooltipId||(this.tooltipId=this.uuid.createId()),this.getDefaultTooltipConfig());const e=(0,qn.wu)({prefix:ns[this.variant],iconName:this.name}),t=(0,qn.Kk)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map((e=>this.iElement.appendChild(e))))}}(0,x.__decorate)([r.observable],ls.prototype,"iElement",void 0),(0,x.__decorate)([Kn.k],ls.prototype,"uuid",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"tooltip-id"})],ls.prototype,"tooltipId",void 0),(0,x.__decorate)([r.attr],ls.prototype,"tooltip",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"error",mode:"boolean"})],ls.prototype,"isError",void 0),(0,x.__decorate)([r.attr],ls.prototype,"name",void 0),(0,x.__decorate)([r.attr],ls.prototype,"size",void 0),(0,x.__decorate)([r.attr],ls.prototype,"variant",void 0);const ds=ls.compose(Object.assign({baseName:"icon",template:os,styles:es,shadowOptions:is},as)),cs=(e,t)=>r.css`
1929
- ${(0,s.listboxStyles)(e,t)}
1930
-
1931
- :host {
1932
- display: flex;
1933
- flex-direction: column;
1934
- max-width: fit-content;
1935
- padding: calc(var(--design-unit) * 1px) 0;
1936
- border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
1937
- border-radius: calc(var(--control-corner-radius) * 1px);
1938
- }
1939
- `,us=(e,t)=>(0,n.listboxTemplate)(e,t);class hs extends s.Listbox{}const ps=void 0,ms={},vs=hs.compose(Object.assign({baseName:"listbox",template:us,styles:cs,shadowOptions:ps},ms)),gs=(e,t)=>r.css`
1940
- ${(0,s.optionStyles)(e,t)}
1941
- `,bs=(e,t)=>(0,n.listboxOptionTemplate)(e,t);class fs extends s.ListboxOption{}const ys=void 0,xs={},ws=fs.compose(Object.assign({baseName:"option",template:bs,styles:gs,shadowOptions:ys},xs)),$s=(e,t)=>r.css`
1942
- ${(0,s.menuStyles)(e,t)}
1943
- `,Ss=(e,t)=>(0,n.menuTemplate)(e,t);class Cs extends s.Menu{}const ks=void 0,Fs={},_s=Cs.compose(Object.assign({baseName:"menu",template:Ss,styles:$s,shadowOptions:ks},Fs)),Os=(e,t)=>r.css`
1944
- ${(0,s.menuItemStyles)(e,t)}
1945
-
1946
- :host, :host(.indent-0[aria-haspopup='menu']) {
1947
- align-content: center;
1948
- min-height: calc(var(--design-unit) * 8px);
1949
- }
1950
-
1951
- .expand-collapse-glyph {
1952
- max-height: calc(var(--design-unit) * 4px);
1953
- max-width: calc(var(--design-unit) * 4px);
1954
- height: auto;
1955
- width: auto;
1956
- }
1957
- `,Ds=(e,t)=>(0,n.menuItemTemplate)(e,t);class Ts extends s.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",(()=>this.$emit("onMenuClick")))}}const Ls=void 0,Es={expandCollapseGlyph:'\n <svg\n class="expand-collapse-glyph"\n part="expand-collapse-glyph"\n viewBox="0 0 16 16"\n xmlns="http://www.w3.org/2000/svg">\n <path\n d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n />\n </svg>\n '},As=Ts.compose(Object.assign({baseName:"menu-item",template:Ds,styles:Os,shadowOptions:Ls},Es)),Ns=r.css`
1958
- ${bi}
1959
- `,Is=r.html`
1960
- ${yi}
1961
- `,Rs={mode:"open",delegatesFocus:!0},Ms={};class Hs extends $i{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.showModal()}}const Ps=Hs.compose(Object.assign({baseName:"modal",styles:Ns,template:Is,shadowOptions:Rs},Ms)),Bs=230,zs=r.css`
1962
- .root {
1963
- position: relative;
1964
- width: inherit;
1965
- min-width: 250px;
1966
- }
1967
-
1968
- .control {
1969
- cursor: pointer;
1970
- position: relative;
1971
- display: flex;
1972
- align-items: center;
1973
- width: 100%;
1974
- border-radius: calc(var(--control-corner-radius) * 1px);
1975
- }
1976
-
1977
- #display-field {
1978
- width: 100%;
1979
- cursor: pointer;
1980
- color: rgb(241 241 241);
1981
- min-height: 40px;
1982
- padding: 0 calc(var(--design-unit) * 2.25px);
1983
- border-width: 0;
1984
- background-color: var(--neutral-fill-input-rest);
1985
- border-radius: calc(var(--control-corner-radius) * 1px);
1986
- }
1987
-
1988
- #display-field[disabled] {
1989
- cursor: not-allowed;
1990
- opacity: 30%;
1991
- }
1992
-
1993
- #display-field:focus {
1994
- outline: 1px solid var(--accent-fill-rest);
1995
- background: var(--neutral-fill-input-rest);
1996
- border-style: none;
1997
- box-shadow: none;
1998
- }
1999
-
2000
- #display-field:hover:not(:focus):not([disabled]) {
2001
- outline: 1px solid rgb(231 232 232);
2002
- }
2003
-
2004
- button {
2005
- pointer-events: none;
2006
- }
2007
-
2008
- .indicator {
2009
- position: absolute;
2010
- left: calc(100% - 26px);
2011
- padding: 0;
2012
- cursor: pointer;
2013
- }
2014
-
2015
- #arrow-icon {
2016
- width: 16px;
2017
- fill: white;
2018
- transform: rotate(0deg);
2019
- transition: transform 0.2s linear 0s;
2020
- }
2021
-
2022
- #arrow-icon.flipped {
2023
- transform: rotate(180deg);
2024
- }
2025
-
2026
- .disabled-svg {
2027
- pointer-events: none;
2028
- opacity: 30%;
2029
- }
2030
-
2031
- .options {
2032
- display: flex;
2033
- flex-direction: column;
2034
- position: absolute;
2035
- height: max-content;
2036
- overflow-y: hidden;
2037
- margin-top: calc(var(--design-unit) * 1px);
2038
- border: calc(var(--stroke-width) * 1px) solid var(--neutral-layer-2);
2039
- border-radius: 4px;
2040
- background: var(--neutral-fill-input-rest);
2041
- width: 100%;
2042
- max-height: 0;
2043
- visibility: hidden;
2044
- transition:
2045
- max-height 0.4s ease 0s,
2046
- visibility 0.4s ease 0s;
2047
- z-index: 999;
2048
- }
2049
-
2050
- .position-above {
2051
- bottom: 100%;
2052
- }
2053
-
2054
- .checkbox-container {
2055
- display: flex;
2056
- flex-direction: column;
2057
- overflow-y: scroll;
2058
- scrollbar-width: thin;
2059
- scrollbar-color: var(--neutral-layer-2) var(--neutral-layer-4);
2060
- list-style: none;
2061
- }
2062
-
2063
- .checkbox-container zero-checkbox {
2064
- min-width: fit-content;
2065
- }
2066
-
2067
- .checkbox-container zero-checkbox[disabled],
2068
- .checkbox-container foundation-checkbox[disabled] {
2069
- cursor: not-allowed;
2070
- }
2071
-
2072
- ::-webkit-scrollbar {
2073
- width: 12px;
2074
- }
2075
-
2076
- ::-webkit-scrollbar-track {
2077
- background: var(--neutral-layer-4);
2078
- }
2079
-
2080
- ::-webkit-scrollbar-thumb {
2081
- width: 8px;
2082
- border-radius: 10px;
2083
- box-shadow: inset 0 0 6px rgba(0 0 0 / 30%);
2084
- background-color: var(--neutral-layer-2);
2085
- border: 3px solid var(--neutral-layer-4);
2086
- }
2087
-
2088
- .visible {
2089
- visibility: visible;
2090
- max-height: ${Bs.toString()}px;
2091
- }
2092
-
2093
- ::slotted(foundation-checkbox),
2094
- foundation-checkbox {
2095
- border-bottom: 1px solid var(--neutral-layer-4);
2096
- padding: 5px 0 5px 5px;
2097
- margin: 0;
2098
- }
2099
-
2100
- ::slotted(foundation-checkbox:hover),
2101
- foundation-checkbox:hover {
2102
- background-color: var(--neutral-layer-3);
2103
- cursor: pointer;
2104
- }
2105
-
2106
- ::slotted(foundation-checkbox)::part(label),
2107
- foundation-checkbox::part(label) {
2108
- overflow-x: hidden;
2109
- text-overflow: ellipsis;
2110
- white-space: nowrap;
2111
- }
2112
-
2113
- .label {
2114
- display: block;
2115
- cursor: pointer;
2116
- font-size: var(--type-ramp-base-font-size);
2117
- line-height: var(--type-ramp-base-line-height);
2118
- font-style: normal;
2119
- margin: calc(var(--design-unit) * 2px) 0;
2120
- }
2121
-
2122
- .label-hidden {
2123
- display: none;
2124
- }
2125
-
2126
- ol,
2127
- li {
2128
- margin: 0;
2129
- padding: 0;
2130
- }
2131
-
2132
- .checkbox {
2133
- width: 100%;
2134
- }
2135
-
2136
- .select-all {
2137
- width: 100%;
2138
- }
2139
-
2140
- .display-value {
2141
- position: absolute;
2142
- right: 40px;
2143
- color: var(--neutral-foreground-rest);
2144
- font-size: var(--type-ramp-base-font-size);
2145
- line-height: var(--type-ramp-base-line-height);
2146
- font-family: var(--body-font);
2147
- }
2148
- `;let js=class extends gt{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,x.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.fields=this.labelField?null===(t=this.valueField)||void 0===t?void 0:t.concat(" ",this.labelField):this.valueField,this.select=this.parentElement,this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&this.fetchGenesisData(),this.valueField||ae.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label which is supported only in select and combobox (e.g label-field="NAME")')}))}clearData(){this.select.options=[]}syncComponentData(e){var t;const o=(null!=e?e:Array.from(this.rowsSyncedWithStream.values())).map((e=>{var t;return{value:e[this.valueField],label:this.getDefaultLabelFormat(e[this.labelField],null===(t=this.getFieldMetadata(this.labelField))||void 0===t?void 0:t.type)}}));(null===(t=this.select)||void 0===t?void 0:t.async)&&(this.select.loading=!1),this.select.options=o}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};(0,x.__decorate)([(0,r.attr)({attribute:"value-field"})],js.prototype,"valueField",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"label-field"})],js.prototype,"labelField",void 0),js=(0,x.__decorate)([(0,r.customElement)({name:"multiselect-datasource"})],js);const Vs=(e="foundation")=>r.html`
2149
- <label
2150
- part="label"
2151
- for="display-field"
2152
- class=${e=>{var t;return(0,w.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
2153
- >
2154
- <slot
2155
- name="label"
2156
- ${(0,r.slotted)({property:"defaultSlottedNodes",filter:n.whitespaceFilter})}
2157
- ></slot>
2158
- </label>
2159
- <div class="root" part="root" @keydown="${(e,t)=>e.keydownHandler(t.event)}">
2160
- <div class="control" part="control">
2161
- <input
2162
- id="display-field"
2163
- part="filter-search"
2164
- role="combobox"
2165
- aria-haspopup="listbox"
2166
- aria-controls="checkbox-container"
2167
- aria-expanded=${e=>e.open?"true":"false"}
2168
- ?readonly=${e=>!e.search}
2169
- @click=${e=>e.toggle()}
2170
- ?disabled="${e=>e.disabled}"
2171
- value=${(0,Ge.O)((e=>e.filterSearchValue),"string","input")}
2172
- placeholder="${e=>e.getDisplayValue}"
2173
- @input=${(e,t)=>e.inputHandler()}
2174
- @change=${(e,t)=>e.changeHandler(t.event)}
2175
- />
2176
- <div part="indicator" class="indicator" @click=${e=>!e.disabled&&e.toggle()}>
2177
- <svg
2178
- viewBox="0 0 12 7"
2179
- ${(0,r.ref)("arrowIcon")}
2180
- id="arrow-icon"
2181
- class="${e=>(0,w.x)(["disabled-svg",e.disabled])}"
2182
- xmlns="http://www.w3.org/2000/svg"
2183
- >
2184
- <path d="${"M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"}" />
2185
- </svg>
2186
- </div>
2187
- ${(0,r.when)((e=>e.filterSearchValue&&e.selectedOptions.length),r.html`
2188
- <div class="display-value">${e=>e.getDisplayValue}</div>
2189
- `)}
2190
- </div>
2191
- ${(0,r.when)((e=>e.loading),r.html`
2192
- <${e}-progress slot="indicator"></${e}-progress>
2193
- `)}
2194
- <ol
2195
- ${(0,r.ref)("optionsElement")}
2196
- id="checkbox-container"
2197
- class="checkbox-container options"
2198
- aria-multiselectable="true"
2199
- >
2200
- ${(0,r.when)((e=>e.all),r.html`
2201
- <${e}-button
2202
- class="select-all"
2203
- @click=${e=>e.selectCheckboxAll()}
2204
- ?disabled="${(e,t)=>e.isAllOptionsDisabled}"
2205
- >
2206
- Select All ${e=>e.name}
2207
- </${e}-button>
2208
- `)}
2209
- ${(0,r.repeat)((e=>e.filteredAvailableOptions),r.html`
2210
- <li role="option" value=${(e,t)=>t.parent.getItemLabel(e)}>
2211
- <${e}-checkbox
2212
- part="checkbox"
2213
- class="checkbox"
2214
- @keydown=${(e,t)=>t.parent.checkboxKeyDown(e,t.event)}
2215
- @click=${(e,t)=>t.parent.selectCheckboxOne(e)}
2216
- @change=${(e,t)=>t.parent.changeHandler(t.event)}
2217
- ?current-checked="${(e,t)=>t.parent.isOptionSelected(e)}"
2218
- ?disabled="${(e,t)=>t.parent.isOptionDisabled(e)}"
2219
- >
2220
- ${(e,t)=>t.parent.getItemLabel(e)}
2221
- </${e}-checkbox>
2222
- </li>
2223
- `)}
2224
- ${(0,r.when)((e=>e.showCreatable),r.html`
2225
- <${e}-button @click=${e=>e.addOption()}>Create&nbsp;"${e=>e.filterSearchValue}"</${e}-button>
2226
- `)}
2227
- </ol>
2228
- </div>
2229
- <slot
2230
- ${(0,r.slotted)({property:"slottedDatasource",filter:e=>e instanceof js})}
2231
- ></slot>
2232
- `,Gs=r.html`
2233
- ${Vs()}
2234
- `,Us=void 0,Ys={};class Ws extends n.FoundationElement{constructor(){super(...arguments),this.name="",this.autoPosition=!0,this.all=!0,this.allSelected=!1,this.search=!0,this.disabled=!1,this.creatable=!1,this.async=!1,this.debounce=500,this.filterByContains=!1,this.filterSearchValue="",this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=ze.BELOW,this.initialisedOptions=!1}debounceChanged(e,t){this.debouncedInputHandler=nt()(this.asyncSetFilter,t)}openChanged(e,t){var o,i,a,n;t?(document.addEventListener("mousedown",this.clickOutside),null===(o=this.arrowIcon)||void 0===o||o.classList.add("flipped"),null===(i=this.optionsElement)||void 0===i||i.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(a=this.arrowIcon)||void 0===a||a.classList.remove("flipped"),null===(n=this.optionsElement)||void 0===n||n.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===ze.ABOVE&&(null===(e=this.optionsElement)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}optionsChanged(){this.allSelected&&!this.initialisedOptions&&(this.selectedOptions=this.options.map((e=>this.optionGetter(e)))),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}setDropdownPosition(){let e=this.position;if(this.autoPosition){const t=this.getBoundingClientRect(),o=window.innerHeight,i=t.top,a=o-t.bottom;e=a<Bs&&i>a?ze.ABOVE:ze.BELOW}this.optionsElement.classList.toggle("position-above",e===ze.ABOVE),this.optionsElement.classList.toggle("position-below",e===ze.BELOW)}optionGetter(e){return"string"!=typeof e?e.value:e}getItemLabel(e){let t;return e?(t="string"==typeof e?e:e.label||e.value||"",this.valueFormatter?this.valueFormatter(t):t):""}isOptionDisabled(e){return e&&"string"!=typeof e&&e.disabled||!1}get getDisplayValue(){let e="";switch(this.selectedOptions.length){case 0:e=this.getPlaceholder;break;case 1:{const t=this.options.find((e=>this.optionGetter(e)===this.selectedOptions[0]));e=this.getItemLabel(t);break}case this.options.length:e=`All ${this.name}`.trim();break;default:e=`${this.selectedOptions.length} Selected`}return e}get getPlaceholder(){return`Search ${this.name}`.trim().concat("...")}get isAllOptionsDisabled(){return this.options.length===this.options.filter(this.isOptionDisabled).length}get showCreatable(){return this.creatable&&this.filterSearchValue.length>0&&0===this.findExactMatchOptions().length}isOptionSelected(e){return this.selectedOptions.includes(this.optionGetter(e))}selectCheckboxOne(e){const t=this.optionGetter(e);this.selectedOptions.includes(t)?(this.selectedOptions=[...this.selectedOptions],this.selectedOptions.splice(this.selectedOptions.indexOf(t),1)):this.selectedOptions=[...this.selectedOptions,t],this.$emit("selectionChange",this.selectedOptions)}checkboxKeyDown(e,t){return" "===t.key&&(t.preventDefault(),this.selectCheckboxOne(e)),!0}getEnabledOptionsCount(){return this.options.length-this.options.filter(this.isOptionDisabled).length}selectCheckboxAll(){const e=this.selectedOptions.length===this.getEnabledOptionsCount();this.selectedOptions=e?[]:this.options.filter((e=>!this.isOptionDisabled(e))).map((e=>this.optionGetter(e))),this.onAllSelectedCallback&&this.onAllSelectedCallback(!e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){this.open||(this.open=!0),this.async?(this.loading=!0,this.filteredAvailableOptions=[],this.debouncedInputHandler()):this.setFilter()}findExactMatchOptions(){const e=this.filterSearchValue.toLowerCase();return this.filteredAvailableOptions.filter((t=>{var o,i;const a="string"==typeof t?t:null!==(o=t.label)&&void 0!==o?o:t.value;return(null!==(i=null==a?void 0:a.toLowerCase())&&void 0!==i?i:"")===e}))}setFilter(){this.filteredAvailableOptions=[...this.options.filter((e=>{var t;const o=("string"==typeof e?e:null!==(t=e.label)&&void 0!==t?t:e.value).toLowerCase(),i=this.filterSearchValue.toLowerCase();return this.filterByContains?o.indexOf(i)>=0:o.startsWith(i)}))]}addOption(){this.options=[{value:this.filterSearchValue,label:this.filterSearchValue},...this.options],this.setFilter(),this.selectedOptions=[...this.selectedOptions,this.filterSearchValue]}asyncSetFilter(){if(this.slottedDatasource.length>0){const e=this.slottedDatasource[0].datasource.resourceType;e===it.v.DATASERVER&&_t(this.slottedDatasource[0],this.filterSearchValue),e===it.v.REQUEST_SERVER&&Ot(this.slottedDatasource[0],this.filterSearchValue)}else this.loading=!1,ae.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality.")}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){C(e,this)&&(this.open=!1)}keydownHandler(e){const t=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(t){case"Escape":if(this.open){this.open=!1;break}break;case"ArrowUp":case"ArrowDown":if(!this.open){this.open=!0;break}break;default:return!0}}}(0,x.__decorate)([r.attr],Ws.prototype,"name",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"auto-position"})],Ws.prototype,"autoPosition",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ws.prototype,"all",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ws.prototype,"allSelected",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ws.prototype,"search",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ws.prototype,"disabled",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ws.prototype,"creatable",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Ws.prototype,"async",void 0),(0,x.__decorate)([r.attr],Ws.prototype,"debounce",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean",attribute:"filter-by-contains"})],Ws.prototype,"filterByContains",void 0),(0,x.__decorate)([r.observable],Ws.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],Ws.prototype,"slottedDatasource",void 0),(0,x.__decorate)([r.observable],Ws.prototype,"valueFormatter",void 0),(0,x.__decorate)([r.observable],Ws.prototype,"loading",void 0),(0,x.__decorate)([r.observable],Ws.prototype,"filterSearchValue",void 0),(0,x.__decorate)([r.observable],Ws.prototype,"open",void 0),(0,x.__decorate)([r.observable],Ws.prototype,"options",void 0),(0,x.__decorate)([r.observable],Ws.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],Ws.prototype,"filteredAvailableOptions",void 0),(0,x.__decorate)([r.observable],Ws.prototype,"scrollContainer",void 0),(0,x.__decorate)([r.attr],Ws.prototype,"position",void 0),(0,x.__decorate)([r.observable],Ws.prototype,"onAllSelectedCallback",void 0),(0,x.__decorate)([r.volatile],Ws.prototype,"getDisplayValue",null),(0,x.__decorate)([r.volatile],Ws.prototype,"getPlaceholder",null),(0,x.__decorate)([r.volatile],Ws.prototype,"isAllOptionsDisabled",null),(0,x.__decorate)([r.volatile],Ws.prototype,"showCreatable",null);const qs=Ws.compose(Object.assign({baseName:"multiselect",template:Gs,styles:zs,shadowOptions:Us},Ys));class Ks{constructor(e){const t=new Intl.NumberFormat(e).formatToParts(12345.6),o=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(o.map(((e,t)=>[e,t])));this._group=new RegExp(`[${t.find((e=>"group"===e.type)).value}]`,"g"),this._decimal=new RegExp(`[${t.find((e=>"decimal"===e.type)).value}]`),this._separator=new RegExp(`[$${t.find((e=>"decimal"===e.type)).value}](?:0*$|[^0]0+$)`),this._numeral=new RegExp(`[${o.join("")}]`,"g"),this._index=e=>i.get(e)}parse(e){return(e=e.trim().replace(this._group,"").replace(this._decimal,".").replace(this._numeral,this._index))?+e:NaN}hasSeparator(e){return this._separator.test(e)}}const Xs=(e,t)=>r.css`
2235
- ${(0,s.numberFieldStyles)(e,t)}
2236
- ::part(label) {
2237
- color: var(--neutral-foreground-rest);
2238
- }
2239
-
2240
- fast-text-field {
2241
- display: unset;
2242
- }
2243
-
2244
- .controls {
2245
- margin-bottom: auto;
2246
- margin-inline-end: 5px;
2247
- margin-top: auto;
2248
- }
2249
-
2250
- .step-down,
2251
- .step-up {
2252
- display: block;
2253
- fill: var(--neutral-foreground-rest);
2254
- }
2255
-
2256
- .step-down-glyph,
2257
- .step-up-glyph {
2258
- padding: unset;
2259
- }
2260
-
2261
- ::part(end) {
2262
- margin-inline-end: unset;
2263
- }
2264
-
2265
- .label-hidden {
2266
- margin: 0;
2267
- }
2268
- `,Zs=(e,t)=>r.html`
2269
- <template class="${e=>e.readOnly?"readonly":""}">
2270
- <label
2271
- part="label"
2272
- for="${e=>e.id?e.id:"control"}"
2273
- class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label-hidden"}"
2274
- >
2275
- <slot ${(0,r.slotted)("defaultSlottedNodes")}></slot>
2276
- </label>
2277
- <div class="root" part="root">
2278
- ${(0,n.startSlotTemplate)(e,t)}
2279
- <input
2280
- class="control"
2281
- part="control"
2282
- name="${e=>e.name}"
2283
- autocomplete="${e=>e.autocomplete}"
2284
- id="${e=>e.id?e.id:"control"}"
2285
- @input="${e=>e.handleTextInput()}"
2286
- @change="${e=>e.handleChange()}"
2287
- @keydown="${(e,t)=>e.handleKeyDown(t.event)}"
2288
- @blur="${(e,t)=>e.handleBlur()}"
2289
- ?autofocus="${e=>e.autofocus}"
2290
- ?disabled="${e=>e.disabled}"
2291
- list="${e=>e.list}"
2292
- maxlength="${e=>e.maxlength}"
2293
- minlength="${e=>e.minlength}"
2294
- placeholder="${e=>e.placeholder}"
2295
- ?readonly="${e=>e.readOnly}"
2296
- ?required="${e=>e.required}"
2297
- size="${e=>e.size}"
2298
- type="text"
2299
- inputmode="numeric"
2300
- min="${e=>e.min}"
2301
- max="${e=>e.max}"
2302
- step="${e=>e.step}"
2303
- aria-atomic="${e=>e.ariaAtomic}"
2304
- aria-busy="${e=>e.ariaBusy}"
2305
- aria-controls="${e=>e.ariaControls}"
2306
- aria-current="${e=>e.ariaCurrent}"
2307
- aria-describedby="${e=>e.ariaDescribedby}"
2308
- aria-details="${e=>e.ariaDetails}"
2309
- aria-disabled="${e=>e.ariaDisabled}"
2310
- aria-errormessage="${e=>e.ariaErrormessage}"
2311
- aria-flowto="${e=>e.ariaFlowto}"
2312
- aria-haspopup="${e=>e.ariaHaspopup}"
2313
- aria-hidden="${e=>e.ariaHidden}"
2314
- aria-invalid="${e=>e.ariaInvalid}"
2315
- aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
2316
- aria-label="${e=>e.ariaLabel}"
2317
- aria-labelledby="${e=>e.ariaLabelledby}"
2318
- aria-live="${e=>e.ariaLive}"
2319
- aria-owns="${e=>e.ariaOwns}"
2320
- aria-relevant="${e=>e.ariaRelevant}"
2321
- aria-roledescription="${e=>e.ariaRoledescription}"
2322
- ${(0,r.ref)("control")}
2323
- />
2324
- ${(0,r.when)((e=>!e.hideStep&&!e.readOnly&&!e.disabled),r.html`
2325
- <div class="controls" part="controls">
2326
- <div class="step-up" part="step-up" @click="${e=>e.stepUp()}">
2327
- <slot name="step-up-glyph">${t.stepUpGlyph||""}</slot>
2328
- </div>
2329
- <div class="step-down" part="step-down" @click="${e=>e.stepDown()}">
2330
- <slot name="step-down-glyph">${t.stepDownGlyph||""}</slot>
2331
- </div>
2332
- </div>
2333
- `)}
2334
- ${(0,n.endSlotTemplate)(e,t)}
2335
- </div>
2336
- </template>
2337
- `;class Qs extends s.NumberField{constructor(){super(...arguments),this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}sanitiseInputVal(e){return String(new Ks(this.locale).parse(String(e)))}toIntlNumberFormat(e){return Intl.NumberFormat(this.locale,this.options).format(Number(e))}validateValue(e,t=!0){let o=parseFloat(parseFloat(t?this.sanitiseInputVal(e):e).toPrecision(12));return isNaN(o)&&(o=""),String(o)}validateMinMax(e,t=!0){var o,i;let a=parseFloat(this.validateValue(e,t));return isNaN(a)?a="":(a=Math.min(a,null!==(o=this.max)&&void 0!==o?o:a),a=Math.max(a,null!==(i=this.min)&&void 0!==i?i:a)),String(a)}stepUp(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:this.step:e+this.step;this.value=t.toString(),this.control.value=this.validateMinMax(t.toString(),this.withFormatting),this.handleTextInput()}stepDown(){const e=parseFloat(this.value),t=isNaN(e)?this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step:e-this.step;this.value=t.toString(),this.control.value=this.validateMinMax(t.toString(),this.withFormatting),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}handleTextInput(){"-"!==this.control.value&&(this.isUserInput=!0,this.withFormatting&&!new Ks(this.locale).hasSeparator(this.control.value)?r.DOM.queueUpdate((()=>{const e=this.validateValue(this.control.value);this.control.value=this.toIntlNumberFormat(e),this.value=e,this.$emit("input")})):this.withFormatting||this.hasSeparatorWithoutDecimals().test(this.control.value)||r.DOM.queueUpdate((()=>{this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,""),this.value=this.control.value,this.$emit("input")})))}valueChanged(e,t){if(null==t&&this.control)this.control.value="";else if(null!=t&&t!==e){if(!this.isUserInput)return this.value=this.withFormatting?this.validateMinMax(this.value):this.validateMinMax(this.value,!1),void r.DOM.queueUpdate((()=>{this.control.value=this.withFormatting&&this.value?this.toIntlNumberFormat(this.value):this.value}));const e=t;r.DOM.queueUpdate((()=>{var o;""!==(null===(o=this.control)||void 0===o?void 0:o.value)?""!==this.value?(this.control.value=this.withFormatting?this.toIntlNumberFormat(e):e,this.value=this.withFormatting?this.sanitiseInputVal(this.control.value):this.control.value):this.control.value=t:this.control.value=this.withFormatting?this.toIntlNumberFormat(e):e}))}}handleBlur(){this.isUserInput=!1,this.value=this.validateMinMax(this.control.value,this.withFormatting),this.control.value=this.withFormatting&&this.value?this.toIntlNumberFormat(this.value):this.value,this.$emit("input")}}(0,x.__decorate)([r.attr],Qs.prototype,"autocomplete",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Qs.prototype,"hideStep",void 0),(0,x.__decorate)([r.attr],Qs.prototype,"value",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Qs.prototype,"withFormatting",void 0),(0,x.__decorate)([r.attr],Qs.prototype,"locale",void 0);const Js={delegatesFocus:!0,mode:"open"},er={stepDownGlyph:'\n <svg class="step-down-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 8C5.02785 8 4.45387 9.2649 5.16108 10.0731L10.6829 16.3838C11.3801 17.1806 12.6197 17.1806 13.3169 16.3838L18.8388 10.0731C19.5459 9.2649 18.972 8 17.898 8H6.1018Z"/>\n </svg>\n ',stepUpGlyph:'\n <svg class="step-up-glyph" viewBox="0 0 24 24" width="1rem" height="1rem" xmlns="http://www.w3.org/2000/svg">\n <path d="M6.1018 16.9814C5.02785 16.9814 4.45387 15.7165 5.16108 14.9083L10.6829 8.59762C11.3801 7.80079 12.6197 7.80079 13.3169 8.59762L18.8388 14.9083C19.5459 15.7165 18.972 16.9814 17.898 16.9814H6.1018Z"/>\n </svg>\n '},tr=Qs.compose(Object.assign({baseName:"number-field",template:Zs,styles:Xs,shadowOptions:Js},er));var or=o(8202),ir=o(92277);var ar=o(72154),nr=o.n(ar),sr=o(57565),rr=o.n(sr),lr=o(13160),dr=o(24669),cr=o(5709),ur=o(45230);const hr={windowEvents:["online","offline","pageshow"],documentEvents:["visibilitychange"],genesisConnectEvents:["stream","commit"],ignoredGenesisResources:[],startDelay:5e3,checkInterval:1e4,checkTimeout:3e3,resourceChecks:e=>(0,or.__awaiter)(void 0,void 0,void 0,(function*(){var t;const o=(0,ht.tn)(),i=yield o.getMoreColumns(e),a=Date.now(),n=i;return{isConnected:null!==(t=(null==i?void 0:i.MESSAGE_TYPE)===dt.Go.MORE_COLUMNS_ACK)&&void 0!==t&&t,lastUpdated:a,lastMessage:n}})),resourceDataLogon:({message:e,functions:t})=>{const{onMessage:o,onError:i}=t;(0,ur.Ol)().sendForStream(e,o,i)}},pr=n.DI.createInterface((e=>e.instance(hr))),mr="system-health-changed";var vr;const gr=(0,ie.createLogger)("network-monitor",{level:ie.LogLevel.Info}),br=Date.now(),fr=(null===(vr=window.navigator)||void 0===vr?void 0:vr.userAgent)?nr().parse(window.navigator.userAgent):void 0,yr=(e,t={depthLimit:10,edgesLimit:10})=>e instanceof Event?`'${e.type}' Event`:"string"==typeof e?e:rr()(e,void 0,2,t);class xr{constructor(){this.unsubscribableObservers=[],this.runAllChecks=(e,t)=>(0,or.__awaiter)(this,void 0,void 0,(function*(){if(!this.isReady||this.isRunningChecks&&!t)return;gr.info("Run health checks, triggered by",yr(e),"| Active resources",this.resources.size),this.isRunningChecks=!0,this.synchroniseCheckInterval();let o=this.getFormattedTimestamp(this.getNowTimestamp());const i=yield this.isOnlineCheck();i?gr.debug(`Network connected at ${o}`):gr.warn(`Network disconnected at ${o}`);const a=this.normaliseSerializedSocketStatus(this.socketStatus.serialize(),i),n=this.preFlightSocketChecks(a);if(n||gr.debug("Socket pre-flight checks failed"),!i||!n){gr.debug("Aborting remaining health checks");const e=[...this.resources].reduce(((e,[t,o])=>{const a=e[o.resourceName];return a?(a.sourceRef=[...a.sourceRef,o.message.SOURCE_REF],e):Object.assign(Object.assign({},e),{[o.resourceName]:this.normaliseResourceHealth({name:o.resourceName,sourceRef:[o.message.SOURCE_REF],isConnected:o.isConnected,lastUpdated:o.lastUpdated},i)})}),{});return this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:i,resources:e,resourcesAllConnected:!1,socket:a}),void(this.isRunningChecks=!1)}let s=!0;const r=[];this.resources.forEach(((e,t)=>{const{resourceName:i,message:a,functions:n}=e,{resourceChecks:l=this.config.resourceChecks,resourceDataLogon:d=this.config.resourceDataLogon}=n,{SOURCE_REF:c}=a;let u,h,p,m,v,g=!1;r.push((()=>(0,or.__awaiter)(this,void 0,void 0,(function*(){var a,n,r;try{gr.debug(`Running health check against ${i}`);const e=yield Promise.race([l(c,t),(n=this.config.checkTimeout,r=()=>({isConnected:!1,lastUpdated:this.getNowTimestamp(),timeout:!0}),new Promise((e=>{setTimeout((()=>{e(r())}),n)})))]);g=e.isConnected,u=e.lastUpdated,h=e.lastMessage,m=e.timeout}catch(e){g=!1,u=this.getNowTimestamp(),p=e,h=null!==(a=null==e?void 0:e.receivedMessage)&&void 0!==a?a:e}return v=(null==h?void 0:h.MESSAGE_TYPE)===dt.Go.MSG_NACK||(0,dt.z2)(h,lr.v.NOT_FOUND),o=this.getFormattedTimestamp(null!=u?u:this.getNowTimestamp()),g?gr.debug(`${i} is healthy at ${o}`):gr.warn(`${i} is not healthy at ${o}`),h&&gr.debug(`${i} messaged at ${o}`,yr(h)),p&&gr.error(`${i} errored at ${o}`,yr(p)),m&&gr.warn(`${i} timed out at ${o}`),v&&(gr.error(`${i} issue, re-attempting data logon at ${o}`),d(e)),s&&(s=g),{name:i,sourceRef:[c],isConnected:g,lastUpdated:u,lastError:p}})))())}));const l=(yield Promise.allSettled(r)).reduce(((e,t)=>{if("fulfilled"===t.status){const o=e[t.value.name];return o?(o.sourceRef=[...o.sourceRef,...t.value.sourceRef],e):Object.assign(Object.assign({},e),{[t.value.name]:this.normaliseResourceHealth(t.value)})}return gr.warn("Unexpected promise rejection occurred. Please check any custom resourceChecks return MonitoredResourceChecksResult."),e}),{});gr.debug("Health checks complete"),this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:i,resources:l,resourcesAllConnected:s,socket:a}),this.isRunningChecks=!1})),void 0!==this.config.logLevel&&(gr.level=this.config.logLevel)}create(){this.resources?gr.warn("NetworkMonitor already created. If this is intentional, please call NetworkMonitor.destroy first."):(this.addListeners(),this.resources=new Map,setTimeout((()=>{this.isReady=!0,this.synchroniseCheckInterval(),this.runAllChecks("NetworkMonitor.create()")}),this.config.startDelay))}destroy(){this.removeListeners(),clearInterval(this.internalId),this.resources.clear(),this.resources=void 0,this.status=void 0,this.isReady=void 0}isOnlineCheck(){return Promise.resolve(navigator.onLine)}addResource(e,t){this.resources||this.create(),this.resources.set(e,t)}removeResource(e){this.resources.delete(e)}addListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach((e=>window.addEventListener(e,this.runAllChecks))),null===(t=this.config.documentEvents)||void 0===t||t.forEach((e=>document.addEventListener(e,this.runAllChecks))),this.config.genesisConnectEvents.includes("stream")&&this.unsubscribableObservers.push(this.connectEvents.addStreamListener((({detail:e})=>{const{functions:t,message:o,resourceName:i,stream:a}=e;this.config.ignoredGenesisResources.includes(i)||this.addResource(a,{functions:t,message:o,resourceName:i})}),(({detail:e})=>{const{resourceName:t,stream:o}=e;this.config.ignoredGenesisResources.includes(t)||this.removeResource(o)}),(({detail:e})=>{var t;const{resourceName:o,stream:i,error:a}=e,n=null!==(t=a.receivedMessage)&&void 0!==t?t:a;let s="";(0,dt.z2)(n,lr.v.NOT_FOUND)?s="Please check the resource is running.":(0,dt.z2)(n,lr.v.FORBIDDEN)&&(s="You are not authorised to access this resource, removing it from monitoring.",this.removeResource(i)),gr.error(`${o} errored at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,s,a)}))),this.config.genesisConnectEvents.includes("commit")&&this.unsubscribableObservers.push(this.connectEvents.addCommitListener((e=>{this.config.ignoredGenesisResources.includes(e.detail.eventName)||this.runAllChecks(e)}))),this.unsubscribableObservers.push(this.connectEvents.addMetadataListener((({detail:e})=>{const{resourceName:t,error:o}=e;o&&gr.error(`${t} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,"Please check the resource is running.",o)})))}removeListeners(){var e,t;null===(e=this.config.windowEvents)||void 0===e||e.forEach((e=>window.removeEventListener(e,this.runAllChecks))),null===(t=this.config.documentEvents)||void 0===t||t.forEach((e=>document.removeEventListener(e,this.runAllChecks))),this.unsubscribableObservers.forEach((e=>e())),this.unsubscribableObservers.length=0}reportSystemHealth(e){var t;const o=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseEventDetail(e);(this.status.isHealthy?gr.debug:gr.warn)("Emitting 'system-health-changed' event",yr(this.status)),null==o||o.dispatchEvent(new CustomEvent(mr,{detail:this.status,bubbles:o!==document,composed:!0})),this.status.socket.reconnectionLimitReached&&(gr.debug("Network monitoring no longer required. Please check your network and reload your application."),this.destroy())}reportStabilityToGenesis(e){return(0,or.__awaiter)(this,void 0,void 0,(function*(){return gr.debug("User requested report stability to Genesis."),gr.info("Please attach this data to your Genesis Support request: \n",JSON.stringify(e,null,2)),!0}))}normaliseResourceHealth(e,t=!0){var o;const i=!!t&&e.isConnected,a=null!==(o=e.lastUpdated)&&void 0!==o?o:this.getNowTimestamp();return Object.assign(Object.assign({},e),{isConnected:i,lastUpdated:a})}normaliseSerializedSocketStatus(e,t=!0){const o=!!t&&e.isConnected,i=!o;return Object.assign(Object.assign({},e),{isConnected:o,isDisconnected:i})}normaliseEventDetail(e){var t,o,i,a;const n=!!((null===(t=e.socket)||void 0===t?void 0:t.isConfigured)?e.isOnline&&(null===(o=e.socket)||void 0===o?void 0:o.isConnected)&&e.resourcesAllConnected:e.isOnline),s=null!==(i=e.lastUpdated)&&void 0!==i?i:this.getNowTimestamp(),r=null!==(a=e.nextUpdate)&&void 0!==a?a:this.getNextTimestamp(),l=e.isAuthenticated&&this.user?this.user.username:void 0,d=Object.assign(Object.assign({},e),{browserInformation:fr,username:l,isHealthy:n,lastUpdated:s,nextUpdate:r,firstUpdated:br,runAllChecks:()=>{gr.debug("User activated run checks command starting."),this.runAllChecks("user requested")},reportStabilityToGenesis:()=>this.reportStabilityToGenesis(d)});return d}preFlightSocketChecks(e){if(!e.isConfigured)return gr.debug("Socket not configured"),!1;if(e.isReconnecting)return gr.debug("Socket reconnecting"),!1;if(e.isConnecting)return gr.debug("Socket connecting"),!1;if(e.isDisconnected){const t=e.isDisconnectedByServer?`by the server, code: ${e.closedCode}, reason: ${e.closedReason}`:"";return gr.debug(`Socket disconnected ${t}`),e.reconnectionLimitReached&&gr.debug("Socket reconnection limit reached"),!1}const t=this.user.isAuthenticated?"with":"without";return gr.debug(`Socket connected ${t} valid session`),!0}getFormattedTimestamp(e){return(0,mt.zT)(e)}getNowTimestamp(){return Date.now()}getNextTimestamp(){return new Date(Date.now()+this.config.checkInterval).getTime()}synchroniseCheckInterval(){clearInterval(this.internalId),this.internalId=setInterval((()=>this.runAllChecks("check interval")),this.config.checkInterval)}}(0,or.__decorate)([pr],xr.prototype,"config",void 0),(0,or.__decorate)([cr.S5],xr.prototype,"socketStatus",void 0),(0,or.__decorate)([dr.a4],xr.prototype,"connectEvents",void 0),(0,or.__decorate)([ir.KJ],xr.prototype,"user",void 0),(0,or.__decorate)([r.observable],xr.prototype,"status",void 0);const wr=n.DI.createInterface((e=>e.singleton(xr)));var $r=o(6526);const Sr=(e,t)=>r.css`
2338
- ${(0,s.progressStyles)(e,t)}
2339
- :host {
2340
- height: calc(var(--design-unit) * 2px);
2341
- }
2342
- `,Cr=(e,t)=>(0,n.progressTemplate)(e,t);class kr extends s.Progress{}const Fr=void 0,_r={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},Or=kr.compose(Object.assign({baseName:"progress",template:Cr,styles:Sr,shadowOptions:Fr},_r));function Dr(e){return new Proxy(e,{get:(e,t,...o)=>{if(["withPrefix","withShadowRootMode","withElementDisambiguation"].includes(t))throw new Error("Modification of the Design System is not allowed.");return Reflect.get(e,t,...o)}})}const Tr=(e,t="foundation")=>{e&&qo(i,a,e);return Dr(n.DesignSystem.getOrCreate(e).withPrefix(t))},Lr="app",Er="component";Tr().register(Or({prefix:"next-update"}));class Ar extends n.FoundationElement{constructor(){super(...arguments),this.timeTillNextUpdate={totalMs:1e4,remainMs:1e4,remainPercent:100},this.mode=Lr,this.status={isOnline:!0,isHealthy:!0,browserInformation:{},socket:{},resources:{}},this.onSystemHealthChanged=e=>{this.status=e.detail,this.resourceList=Object.values(this.status.resources).sort(((e,t)=>Number(t.isConnected)-Number(e.isConnected)))},this.onOpen=(e=!1)=>{this.isOpen=!0,this.wasOpenedByUser=e,this.isDismissed=!1},this.onClose=()=>{this.isOpen=!1,this.wasOpenedByUser=!1,this.isDismissed=!1},this.onDismiss=()=>{this.isDismissed||this.status.isHealthy?this.onClose():this.isDismissed=!0},this.onUpdateStatus=()=>{this.status.runAllChecks()},this.onReportStatus=()=>{this.status.reportStabilityToGenesis()},this.onReloadWindow=()=>{location.reload()},this.onDocumentKeydown=e=>{if(!e.defaultPrevented)switch(e.key){case $r.Is.ArrowUp:e.ctrlKey&&e.altKey&&!this.isOpen&&(this.onOpen(!0),e.preventDefault());break;case $r.Is.ArrowDown:e.ctrlKey&&e.altKey&&this.isOpen&&(this.onClose(),e.preventDefault());break;case $r.F9:this.isOpen&&(this.onDismiss(),e.preventDefault())}}}isOpenChanged(){this.updateTemplateClassNames()}isDismissedChanged(){this.updateTemplateClassNames()}modeChanged(){this.$fastController.isConnected&&this.mode===Er&&ae.warn("SystemHealthOverlay has support for app overlays only right now.")}logLevelChanged(){gr.level=this.logLevel}statusChanged(e,t){this.updateClassNames(),this.$fastController.isConnected&&(!1!==(null==t?void 0:t.isHealthy)||this.isOpen||this.onOpen(),!0===(null==t?void 0:t.isHealthy)&&this.isOpen&&!this.wasOpenedByUser&&this.onClose(),this.startTimeTillNextUpdateCountdown())}updateClassNames(){this.isOnlineClassNames=(0,w.x)(["healthy",this.status.isOnline],["unhealthy",!this.status.isOnline]),this.isHealthyClassNames=(0,w.x)(["healthy",this.status.isHealthy],["unhealthy",!this.status.isHealthy]),this.isSocketHealthyClassNames=(0,w.x)(["healthy",this.isSocketHealthy],["unhealthy",!this.isSocketHealthy]),this.resourcesAllConnectedClassNames=(0,w.x)(["healthy",this.status.resourcesAllConnected],["unhealthy",!this.status.resourcesAllConnected],["hidden",!this.validResourceList]),this.updateTemplateClassNames()}updateTemplateClassNames(){this.templateClassNames=(0,w.x)(["open",this.isOpen],["dismissed",this.isDismissed]),this.containerClassNames=(0,w.x)(this.isHealthyClassNames,["open",this.isOpen],["dismissed",this.isDismissed])}startTimeTillNextUpdateCountdown(){const e=this.status.nextUpdate-Date.now();let t=e,o=100;clearInterval(this.timeTillNextUpdateInterval),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:o},this.timeTillNextUpdateInterval=setInterval((()=>{t-=1e3,o=Math.floor(t/e*100),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:o},t<0&&clearInterval(this.timeTillNextUpdateInterval)}),1e3)}connectedCallback(){super.connectedCallback(),this.networkMonitor.create(),this.addEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.networkMonitor.destroy(),this.removeEventListeners()}get isSocketHealthy(){return this.status.isOnline&&(!this.status.socket.isConfigured||this.status.socket.isConfigured&&this.status.socket.isConnected)}get validResourceList(){var e;return(null===(e=this.resourceList)||void 0===e?void 0:e.length)>0}eventBridge(){var e;return null!==(e=this.config.eventEmitter)&&void 0!==e?e:document}addEventListeners(){this.eventBridge().addEventListener(mr,this.onSystemHealthChanged,!0),document.addEventListener("keydown",this.onDocumentKeydown)}removeEventListeners(){this.eventBridge().removeEventListener(mr,this.onSystemHealthChanged,!0),document.removeEventListener("keydown",this.onDocumentKeydown)}static getCheckmarkTemplate(e){return e?r.html`
2343
- <span class="checkmark">&#x2714;</span>
2344
- `:r.html`
2345
- <span class="checkmark">&#10008;</span>
2346
- `}}(0,x.__decorate)([pr],Ar.prototype,"config",void 0),(0,x.__decorate)([wr],Ar.prototype,"networkMonitor",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"resourceList",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"isOpen",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"wasOpenedByUser",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"isDismissed",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"templateClassNames",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"containerClassNames",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"isOnlineClassNames",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"isHealthyClassNames",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"isSocketHealthyClassNames",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"resourcesAllConnectedClassNames",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"timeTillNextUpdate",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"saveDataCallback",void 0),(0,x.__decorate)([r.attr],Ar.prototype,"mode",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"log-level",converter:r.nullableNumberConverter})],Ar.prototype,"logLevel",void 0),(0,x.__decorate)([r.observable],Ar.prototype,"status",void 0);const Nr=(e,t)=>r.html`
2347
- <template class="${e=>e.templateClassNames}">
2348
- <header class="${e=>e.isHealthyClassNames}" part="header">
2349
- <h1>System ${e=>(0,Xa.fL)(e.isHealthyClassNames)}</h1>
2350
- ${(0,r.when)((e=>!e.status.isHealthy),r.html`
2351
- <span class="data-warning">Data Validity Unknown</span>
2352
- `)}
2353
- <div class="controls">
2354
- ${(0,r.when)((e=>e.isDismissed),r.html`
2355
- <a href="#" class="open-button" @click="${e=>e.onOpen(!0)}">View Status</a>
2356
- `)}
2357
- ${(0,r.when)((e=>!e.isDismissed),r.html`
2358
- <a href="#" class="update-status-button" @click="${e=>e.onUpdateStatus()}">
2359
- Update Status
2360
- </a>
2361
- <a href="#" class="report-status-button" @click="${e=>e.onReportStatus()}">
2362
- Report Status
2363
- </a>
2364
- `)}
2365
- ${(0,r.when)((e=>!e.status.isHealthy&&e.saveDataCallback),r.html`
2366
- <a href="#" class="save-data-button" @click="${e=>e.saveDataCallback()}">
2367
- Save Data
2368
- </a>
2369
- `)}
2370
- <a href="#" class="reload-window-button" @click="${e=>e.onReloadWindow()}">
2371
- Reload Window
2372
- </a>
2373
- <a href="#" class="dismiss-button" @click="${e=>e.onDismiss()}">Dismiss (Esc)</a>
2374
- </div>
2375
- </header>
2376
- <div class="container ${e=>e.containerClassNames}" part="container">
2377
- <section class="network-section ${e=>e.isOnlineClassNames}" part="network-section">
2378
- <h2>Network ${e=>(0,Xa.fL)(e.status.isOnline?"online":"offline")}</h2>
2379
- <dl class="resource-list">
2380
- <div class="resource ${e=>e.isOnlineClassNames}">
2381
- <div class="attributes">
2382
- <div class="online">
2383
- <dt>Online</dt>
2384
- <dd>${e=>e.status.isOnline}</dd>
2385
- </div>
2386
- <div class="authenticated">
2387
- <dt>Authenticated</dt>
2388
- <dd>${e=>e.status.isAuthenticated}</dd>
2389
- </div>
2390
- ${(0,r.when)((e=>e.status.username),r.html`
2391
- <div class="username">
2392
- <dt>Username</dt>
2393
- <dd>${e=>e.status.username}</dd>
2394
- </div>
2395
- `)}
2396
- <div class="platform-type">
2397
- <dt>Platform Type</dt>
2398
- <dd>${e=>{var t;return(0,Xa.fL)(null===(t=e.status.browserInformation.platform)||void 0===t?void 0:t.type)}}</dd>
2399
- </div>
2400
- <div class="os-name">
2401
- <dt>OS Name</dt>
2402
- <dd>${e=>{var t;return(0,Xa.fL)(null===(t=e.status.browserInformation.os)||void 0===t?void 0:t.name)}}</dd>
2403
- </div>
2404
- <div class="os-version">
2405
- <dt>OS Version</dt>
2406
- <dd>${e=>{var t;return null===(t=e.status.browserInformation.os)||void 0===t?void 0:t.version}}</dd>
2407
- </div>
2408
- </div>
2409
- <div class="attributes">
2410
- <div class="browser-name">
2411
- <dt>Browser Name</dt>
2412
- <dd>${e=>{var t;return(0,Xa.fL)(null===(t=e.status.browserInformation.browser)||void 0===t?void 0:t.name)}}</dd>
2413
- </div>
2414
- <div class="browser-version">
2415
- <dt>Browser Version</dt>
2416
- <dd>${e=>{var t;return null===(t=e.status.browserInformation.browser)||void 0===t?void 0:t.version}}</dd>
2417
- </div>
2418
- <div class="first-updated">
2419
- <dt>First updated</dt>
2420
- <dd>${e=>(0,mt.zT)(e.status.firstUpdated)}</dd>
2421
- </div>
2422
- <div class="last-updated">
2423
- <dt>Last updated</dt>
2424
- <dd>${e=>(0,mt.zT)(e.status.lastUpdated)}</dd>
2425
- </div>
2426
- ${(0,r.when)((e=>!e.status.socket.reconnectionLimitReached),r.html`
2427
- <div class="next-update">
2428
- <dt>Next update</dt>
2429
- <dd>${e=>(0,mt.zT)(e.status.nextUpdate)}</dd>
2430
- </div>
2431
- <div class="next-update-progress">
2432
- <dt></dt>
2433
- <dd>
2434
- <next-update-progress
2435
- value="${e=>e.timeTillNextUpdate.remainPercent}"
2436
- ></next-update-progress>
2437
- </dd>
2438
- </div>
2439
- `)}
2440
- </div>
2441
- <div class="controls">
2442
- ${e=>Ar.getCheckmarkTemplate(e.status.isOnline)}
2443
- </div>
2444
- </div>
2445
- </dl>
2446
- </section>
2447
- <section class="socket-section ${e=>e.isSocketHealthyClassNames}" part="socket-section">
2448
- <h2>WebSocket ${e=>(0,Xa.fL)(e.isSocketHealthyClassNames)}</h2>
2449
- <dl class="resource-list">
2450
- <div class="resource ${e=>e.isSocketHealthyClassNames}">
2451
- <div class="attributes">
2452
- <div class="configured">
2453
- <dt>Configured</dt>
2454
- <dd>${e=>e.status.socket.isConfigured}</dd>
2455
- </div>
2456
- <div class="connected">
2457
- <dt>Connected</dt>
2458
- <dd>${e=>e.status.socket.isConnected}</dd>
2459
- </div>
2460
- <div class="reconnecting">
2461
- <dt>Reconnecting</dt>
2462
- <dd>${e=>e.status.socket.isReconnecting}</dd>
2463
- </div>
2464
- <div class="reconnection-exhausted">
2465
- <dt>Reconnection exhausted</dt>
2466
- <dd>${e=>e.status.socket.reconnectionLimitReached}</dd>
2467
- </div>
2468
- </div>
2469
- <div class="attributes">
2470
- <div class="disconnected-by-server">
2471
- <dt>Disconnected by server</dt>
2472
- <dd>${e=>e.status.socket.isDisconnectedByServer}</dd>
2473
- </div>
2474
- <div class="closed-clean">
2475
- <dt>Closed clean</dt>
2476
- <dd>${e=>e.status.socket.closedClean}</dd>
2477
- </div>
2478
- <div class="closed-code">
2479
- <dt>Closed code</dt>
2480
- <dd>${e=>e.status.socket.closedCode}</dd>
2481
- </div>
2482
- <div class="closed-reason">
2483
- <dt>Closed reason</dt>
2484
- <dd>${e=>e.status.socket.closedReason}</dd>
2485
- </div>
2486
- </div>
2487
- <div class="controls">
2488
- ${e=>Ar.getCheckmarkTemplate(e.isSocketHealthy)}
2489
- </div>
2490
- </div>
2491
- </dl>
2492
- </section>
2493
- <section
2494
- class="resource-section ${e=>e.resourcesAllConnectedClassNames}"
2495
- part="resource-section"
2496
- >
2497
- <h2>Resources ${e=>(0,Xa.fL)(e.resourcesAllConnectedClassNames)}</h2>
2498
- <dl class="resource-list">
2499
- ${(0,r.repeat)((e=>e.resourceList),r.html`
2500
- <div class="resource ${e=>e.isConnected?"healthy":"unhealthy"}">
2501
- <div class="attributes">
2502
- <div class="name">
2503
- <dt>Name</dt>
2504
- <dd>${e=>e.name}</dd>
2505
- </div>
2506
- <div class="status">
2507
- <dt>Status</dt>
2508
- <dd>${e=>e.isConnected?"Healthy":"Unhealthy"}</dd>
2509
- </div>
2510
- <div class="last-checked">
2511
- <dt>Checked</dt>
2512
- <dd>${e=>(0,mt.zT)(e.lastUpdated)}</dd>
2513
- </div>
2514
- <div class="subscriptions">
2515
- <dt>Subscriptions</dt>
2516
- <dd>${e=>{var t;return null===(t=e.sourceRef)||void 0===t?void 0:t.length}}</dd>
2517
- </div>
2518
- <div class="source-refs">
2519
- <dt>Source Refs</dt>
2520
- <dd>${e=>e.sourceRef}</dd>
2521
- </div>
2522
- </div>
2523
- <div class="controls">
2524
- ${e=>Ar.getCheckmarkTemplate(e.isConnected)}
2525
- </div>
2526
- </div>
2527
- `)}
2528
- </dl>
2529
- </section>
2530
- </div>
2531
- </template>
2532
- `,Ir=(e,t)=>r.css`
2533
- :host {
2534
- --font-family: Menlo, Consolas, monospace;
2535
-
2536
- --color-background: black;
2537
- --color-healthy: green;
2538
- --color-unhealthy: red;
2539
-
2540
- --opacity-low-percent: 10%;
2541
- --opacity-med-percent: 50%;
2542
- --opacity-high-percent: 90%;
2543
-
2544
- --color-background-opacity-high: rgba(0, 0, 0, 0.9);
2545
-
2546
- --color-healthy-opacity-low: rgba(0, 128, 0, 0.1);
2547
- --color-healthy-opacity-20: rgba(0, 128, 0, 0.2);
2548
- --color-healthy-opacity-med: rgba(0, 128, 0, 0.5);
2549
-
2550
- --color-unhealthy-opacity-low: rgba(255, 0, 0, 0.1);
2551
- --color-unhealthy-opacity-20: rgba(255, 0, 0, 0.2);
2552
- --color-unhealthy-opacity-med: rgba(255, 0, 0, 0.5);
2553
-
2554
- display: none;
2555
- position: fixed;
2556
- inset: 0;
2557
- width: 100vw;
2558
- height: 100vh;
2559
- border: none;
2560
- z-index: 2147483647;
2561
- box-sizing: border-box;
2562
- padding: 2rem 2rem 4rem;
2563
- overflow: auto;
2564
- background-color: var(--color-background-opacity-high);
2565
- line-height: 1.5;
2566
- font-size: 1rem;
2567
- font-family: var(--font-family, Menlo, Consolas, monospace) !important;
2568
- }
2569
-
2570
- @supports (color: color-mix(in srgb, black, black)) {
2571
- :host {
2572
- --color-background-opacity-high: color-mix(
2573
- in srgb,
2574
- var(--color-background) var(--opacity-high-percent),
2575
- transparent
2576
- );
2577
-
2578
- --color-healthy-opacity-low: color-mix(
2579
- in srgb,
2580
- var(--color-healthy) var(--opacity-low-percent),
2581
- transparent
2582
- );
2583
-
2584
- --color-healthy-opacity-20: color-mix(in srgb, var(--color-healthy) 20%, transparent);
2585
-
2586
- --color-healthy-opacity-med: color-mix(
2587
- in srgb,
2588
- var(--color-healthy) var(--opacity-med-percent),
2589
- transparent
2590
- );
2591
-
2592
- --color-unhealthy-opacity-low: color-mix(
2593
- in srgb,
2594
- var(--color-unhealthy) var(--opacity-low-percent),
2595
- transparent
2596
- );
2597
-
2598
- --color-unhealthy-opacity-20: color-mix(in srgb, var(--color-unhealthy) 20%, transparent);
2599
-
2600
- --color-unhealthy-opacity-med: color-mix(
2601
- in srgb,
2602
- var(--color-unhealthy) var(--opacity-med-percent),
2603
- transparent
2604
- );
2605
- }
2606
- }
2607
-
2608
- :host(.open.dismissed) {
2609
- display: block;
2610
- overflow: hidden;
2611
- padding: 0;
2612
- height: fit-content;
2613
- min-height: 45px;
2614
- background-color: var(--color-unhealthy-opacity-low);
2615
- inset: unset;
2616
- position: fixed;
2617
- bottom: 0;
2618
- }
2619
-
2620
- :host(.open.dismissed) header {
2621
- padding: 0 1em;
2622
- }
2623
-
2624
- :host(.open) {
2625
- display: block;
2626
- height: 100vh;
2627
- }
2628
-
2629
- .container {
2630
- padding: 0 1rem 1.5rem;
2631
- }
2632
-
2633
- .container.healthy {
2634
- background-color: var(--color-healthy-opacity-low);
2635
- }
2636
-
2637
- .container.unhealthy {
2638
- background-color: var(--color-unhealthy-opacity-low);
2639
- }
2640
-
2641
- .container.open.dismissed {
2642
- display: none;
2643
- }
2644
-
2645
- header {
2646
- display: flex;
2647
- justify-content: space-between;
2648
- align-items: baseline;
2649
- margin-bottom: 1px;
2650
- padding: 0.5em 1em;
2651
- flex-wrap: wrap;
2652
- flex-direction: row;
2653
- }
2654
-
2655
- header h1 {
2656
- font-size: 1em;
2657
- font-weight: normal;
2658
- }
2659
-
2660
- header .controls a {
2661
- font-size: small;
2662
- padding: 0 1em 0 0;
2663
- }
2664
-
2665
- header.healthy {
2666
- color: var(--color-healthy);
2667
- background-color: var(--color-healthy-opacity-low);
2668
- }
2669
-
2670
- header.unhealthy {
2671
- color: var(--color-unhealthy);
2672
- background-color: var(--color-unhealthy-opacity-low);
2673
- }
2674
-
2675
- section {
2676
- padding-top: 1.5em;
2677
- font-size: x-small;
2678
- }
2679
-
2680
- section h2 {
2681
- font-size: 1.3em;
2682
- margin: 0 0 1em 0;
2683
- text-align: center;
2684
- color: var(--color-unhealthy);
2685
- }
2686
-
2687
- section.unhealthy h2 {
2688
- color: var(--color-unhealthy);
2689
- }
2690
-
2691
- section.healthy h2 {
2692
- color: var(--color-healthy);
2693
- }
2694
-
2695
- .hidden {
2696
- display: none;
2697
- }
2698
-
2699
- .resource-list {
2700
- display: grid;
2701
- grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
2702
- gap: 1rem;
2703
- }
2704
-
2705
- .resource {
2706
- padding: 0.5em 1em;
2707
- display: grid;
2708
- grid-template-columns: 3fr 1fr;
2709
- border-radius: calc(var(--control-corner-radius) * 1px);
2710
- }
2711
-
2712
- .resource.healthy {
2713
- border: var(--color-healthy-opacity-med) 1px solid;
2714
- color: var(--color-healthy);
2715
- }
2716
-
2717
- .resource.unhealthy {
2718
- border: var(--color-unhealthy-opacity-med) 1px solid;
2719
- color: var(--color-unhealthy);
2720
- }
2721
-
2722
- .resource .attributes > div {
2723
- display: grid;
2724
- grid-template-columns: 1fr 2fr;
2725
- }
2726
-
2727
- .resource dt {
2728
- color: inherit;
2729
- opacity: 0.7;
2730
- }
2731
-
2732
- .resource dt:not(:empty)::after {
2733
- content: ': ';
2734
- }
2735
-
2736
- .resource dd {
2737
- margin: 0 0 0 0.1em;
2738
- }
2739
-
2740
- .resource .controls {
2741
- display: grid;
2742
- justify-content: center;
2743
- align-items: center;
2744
- border-left: 1px var(--color-background-opacity-high) solid;
2745
- }
2746
-
2747
- .controls a {
2748
- display: inline-block;
2749
- color: inherit;
2750
- text-underline-offset: 0.2em;
2751
- }
2752
-
2753
- .controls .checkmark {
2754
- font-size: large;
2755
- }
2756
-
2757
- .resource.healthy .controls {
2758
- border-left: 1px var(--color-healthy-opacity-20) solid;
2759
- }
2760
-
2761
- .resource.unhealthy .controls {
2762
- border-left: 1px var(--color-unhealthy-opacity-20) solid;
2763
- }
2764
-
2765
- .network-section .resource-list,
2766
- .socket-section .resource-list {
2767
- display: grid;
2768
- grid-template-columns: 1fr;
2769
- }
2770
-
2771
- .network-section .resource,
2772
- .socket-section .resource {
2773
- grid-template-columns: 2fr 2fr 1fr;
2774
- }
2775
-
2776
- next-update-progress {
2777
- height: 1px;
2778
- margin: 0 1em 0 0;
2779
- }
2780
-
2781
- .resource.healthy next-update-progress::part(determinate) {
2782
- background-color: var(--color-healthy);
2783
- }
2784
-
2785
- .resource.healthy next-update-progress::part(progress) {
2786
- background-color: var(--color-healthy-opacity-20);
2787
- }
2788
-
2789
- .resource.unhealthy next-update-progress::part(determinate) {
2790
- background-color: var(--color-unhealthy);
2791
- }
2792
-
2793
- .resource.unhealthy next-update-progress::part(progress) {
2794
- background-color: var(--color-unhealthy-opacity-20);
2795
- }
2796
-
2797
- .data-warning {
2798
- font-size: small;
2799
- margin: 0 0.5em;
2800
- padding: 0.2em 0.5em;
2801
- background-color: var(--color-unhealthy-opacity-20);
2802
- }
2803
- `,Rr=void 0,Mr={},Hr=Ar.compose(Object.assign({baseName:"system-health-overlay",template:Nr,styles:Ir,shadowOptions:Rr},Mr));var Pr=o(4934);const Br={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class zr extends n.FoundationElement{constructor(){super(...arguments),this.show=!1,this.event="click",this.placement="bottom",this.flip=!1}selectorChanged(e,t){t!==e&&(this.popper&&this.popper.destroy(),this.target&&this.target.removeEventListener(this.event,this.toggle.bind(this)),this.target=this.getRootNode().querySelector(this.selector),this.target.addEventListener(this.event,this.toggle.bind(this)),this.popper=(0,Pr.n4)(this.target,this,this.buildOptions()))}placementChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}offsetChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}flipChanged(){this.popper&&this.popper.setOptions(this.buildOptions())}buildOptions(){return{placement:this.placement,modifiers:[{name:"offset",options:{offset:this.offset||[0,0]}},{name:"flip",enabled:this.flip}]}}toggle(){this.show=!this.show}disconnectedCallback(){super.disconnectedCallback(),this.popper&&(this.popper.destroy(),this.popper=null)}}(0,x.__decorate)([r.attr],zr.prototype,"selector",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],zr.prototype,"show",void 0),(0,x.__decorate)([r.attr],zr.prototype,"event",void 0),(0,x.__decorate)([r.attr],zr.prototype,"placement",void 0),(0,x.__decorate)([(0,r.attr)({converter:Br})],zr.prototype,"offset",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],zr.prototype,"flip",void 0);const jr=r.css`
2804
- :host {
2805
- display: none;
2806
- inset: unset !important;
2807
- transform: unset !important;
2808
- }
2809
-
2810
- :host([show]) {
2811
- display: block;
2812
- }
2813
- `,Vr=r.html`
2814
- <template>
2815
- <slot></slot>
2816
- </template>
2817
- `,Gr=zr.compose({baseName:"popper",styles:jr,template:Vr}),Ur=(e,t)=>r.css`
2818
- ${(0,s.progressRingStyles)(e,t)}
2819
- `,Yr=(e,t)=>(0,n.progressRingTemplate)(e,t);class Wr extends s.Progress{}const qr=void 0,Kr={indeterminateIndicator:'\n <svg class="progress" part="progress" viewBox="0 0 16 16">\n <circle class="background" part="background" cx="8px" cy="8px" r="7px"></circle>\n <circle class="indeterminate-indicator-1" part="indeterminate-indicator-1" cx="8px" cy="8px" r="7px"></circle>\n </svg>\n '},Xr=Wr.compose(Object.assign({baseName:"progress-ring",template:Yr,styles:Ur,shadowOptions:qr},Kr)),Zr=(e,t)=>r.css`
2820
- ${(0,s.radioStyles)(e,t)}
2821
- `,Qr=(e,t)=>(0,n.radioTemplate)(e,t);class Jr extends s.Radio{}const el=void 0,tl={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},ol=Jr.compose(Object.assign({baseName:"radio",template:Qr,styles:Zr,shadowOptions:el},tl)),il=(e,t)=>r.css`
2822
- ${(0,s.radioGroupStyles)(e,t)}
2823
- `,al=(e,t)=>(0,n.radioGroupTemplate)(e,t);class nl extends s.RadioGroup{}const sl=void 0,rl={},ll=nl.compose(Object.assign({baseName:"radio-group",template:al,styles:il,shadowOptions:sl},rl)),dl=r.css`
2824
- .search-bar-combobox {
2825
- width: 100%;
2826
- min-width: auto;
2827
- }
2828
-
2829
- .padding {
2830
- padding-left: calc(${s.designUnit} * 1px);
2831
- }
2832
-
2833
- .selected-options {
2834
- display: flex;
2835
- align-items: center;
2836
- overflow: hidden;
2837
- gap: calc(${s.designUnit} * 1px);
2838
- padding-right: calc(${s.designUnit} * 1px);
2839
- }
2840
-
2841
- .selected-options:hover {
2842
- overflow-x: overlay;
2843
- }
2844
-
2845
- .selected-options::-webkit-scrollbar {
2846
- height: 7px;
2847
- }
2848
-
2849
- .selected-options::-webkit-scrollbar-thumb {
2850
- border-radius: 10px;
2851
- box-shadow: inset 0 0 6px rgb(0 0 0 / 30%);
2852
- background-color: #484848;
2853
- border: 1px solid #7e7e7e;
2854
- }
2855
-
2856
- .selected-options-divider {
2857
- border-right: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-rest);
2858
- }
2859
-
2860
- .options-button {
2861
- height: fit-content;
2862
- min-width: fit-content;
2863
- }
2864
-
2865
- .label {
2866
- display: block;
2867
- font-size: var(--type-ramp-base-font-size);
2868
- margin: calc(${s.designUnit} * 2px) 2px;
2869
- }
2870
-
2871
- .label-hidden {
2872
- display: none;
2873
- }
2874
-
2875
- .search-clear-button {
2876
- min-width: 28px;
2877
- min-height: 28px;
2878
- height: 28px;
2879
- margin: 0;
2880
- }
2881
-
2882
- .search-clear-button svg {
2883
- rotate: 45deg;
2884
- }
2885
-
2886
- .search-clear-button::part(control) {
2887
- padding: 0;
2888
- }
2889
-
2890
- .search-clear-button .svg-container {
2891
- display: flex;
2892
- align-items: center;
2893
- justify-content: center;
2894
- }
2895
-
2896
- .tooltip {
2897
- position: absolute;
2898
- z-index: 999;
2899
- }
2900
-
2901
- .tooltip::part(tooltip) {
2902
- background-color: rgb(18 18 18 / 100%);
2903
- border: 1px solid #2e3339;
2904
- display: flex;
2905
- justify-content: center;
2906
- align-items: center;
2907
- box-shadow: 0 4px 10px rgb(0 0 0 / 25%);
2908
- font-size: 10px;
2909
- color: #f1f1f1;
2910
- height: 26px;
2911
- }
2912
-
2913
- .close-icon {
2914
- color: var(--accent-fill-rest);
2915
- }
2916
- `,cl=(e="start")=>'\n<svg xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg" version="1.1" width="10px" height="10px">\n <g transform="matrix(1 0 0 1 -256 -14 )">\n <path class="cross-icon" fill="white" d="M 9.9265625 8.865937499999998 L 6.060625000000001 5 L 9.265625 1.795 L 9.9265625 1.1340624999999993 C 10.0240625 1.0365624999999996 10.0240625 0.8781249999999996 9.9265625 0.7806249999999992 L 9.219375 0.07343749999999982 C 9.121875 -0.024062500000000542 8.9634375 -0.024062500000000542 8.8659375 0.07343749999999982 L 5 3.9393750000000005 L 1.1340625 0.073125 C 1.0365625 -0.02437500000000037 0.8781250000000002 -0.02437500000000037 0.7806249999999999 0.073125 L 0.073125 0.7803125 C -0.024375000000000008 0.8778124999999998 -0.024375000000000008 1.0362499999999997 0.073125 1.13375 L 3.9393750000000005 5 L 0.073125 8.865937499999998 C -0.024375000000000008 8.9634375 -0.024375000000000008 9.121875 0.073125 9.219375000000001 L 0.7803125 9.9265625 C 0.8778125000000001 10.0240625 1.03625 10.0240625 1.13375 9.9265625 L 5 6.060625 L 8.205 9.265625 L 8.8659375 9.9265625 C 8.9634375 10.0240625 9.121875 10.0240625 9.219375 9.9265625 L 9.9265625 9.219375000000001 C 10.0240625 9.121875 10.0240625 8.9634375 9.9265625 8.865937499999998 Z " fill-rule="nonzero" fill="#c9c9c9" stroke="none" fill-opacity="0.8" transform="matrix(1 0 0 1 256 14 )"/>\n </g>\n</svg>\n',ul=()=>'\n<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" width="30px" height="30px" class="bi bi-plus" viewBox="0 0 16 16">\n <path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/>\n</svg>',hl=e=>r.html`
2917
-
2918
- <label part="label" for="control" data-test-id="label" class=${e=>{var t;return(0,w.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
2919
- >
2920
- <slot
2921
- ${(0,r.slotted)({property:"defaultSlottedNodes",filter:n.whitespaceFilter})}
2922
- ></slot>
2923
- </label>
2924
-
2925
- <${e}-search-bar-combobox
2926
- ${(0,r.ref)("combobox")}
2927
- position="${e=>e.position}"
2928
- placeholder=${e=>e.placeholder}
2929
- disabled=${e=>e.disabled}
2930
- autocomplete="none"
2931
- minlength=${e=>e.minlength}
2932
- @inputdeleted=${e=>e.inputdeleted()}
2933
- @change=${e=>e.changeHandler()}
2934
- @input=${e=>e.inputHandler()}
2935
- @paste=${(e,t)=>e.pasteHandler(t.event)}
2936
- class="search-bar-combobox ${e=>e.selectedOptions.length>0?"padding":null}"
2937
- data-test-id="search-bar"
2938
- >
2939
- <div
2940
- ${(0,r.ref)("selectedOptionsDiv")}
2941
- slot="selectedOptions"
2942
- class="selected-options ${e=>e.selectedOptions.length>0?"selected-options-divider":null}"
2943
- >
2944
- ${(0,r.repeat)((e=>e.selectedOptions),r.html`
2945
- <${e}-button
2946
- class="options-button"
2947
- appearance=${(e,t)=>t.parent.appearance}
2948
- disabled=${(e,t)=>t.parent.disabled}
2949
- @click=${(e,t)=>t.parent.unselectOption(e)}
2950
- >
2951
- ${e=>e.label}
2952
- <${e}-icon
2953
- class="close-icon"
2954
- slot="end"
2955
- name="circle-xmark"
2956
- variant="regular"
2957
- ></${e}-icon>
2958
- </${e}-button>
2959
- `)}
2960
- </div>
2961
- ${(0,r.repeat)((e=>e.filteredOptions),r.html`
2962
- <${e}-option
2963
- value="${e=>e.field}"
2964
- :disabled=${(e,t)=>!e.isEnabled(t.parent.searchTerm,t.parent.selectedOptions)}
2965
- >
2966
- ${(e,t)=>e.label(t.parent.searchTerm)}
2967
- </${e}-option>
2968
- `)}
2969
- <${e}-button
2970
- class="search-clear-button"
2971
- @click=${e=>e.clearSearch()}
2972
- id="search-clear-button"
2973
- slot="end"
2974
- data-test-id="clear-search"
2975
- >
2976
- <div class="svg-container">
2977
- <svg
2978
- xmlns="http://www.w3.org/2000/svg"
2979
- fill="currentColor"
2980
- width="26px"
2981
- height="26px"
2982
- class="bi bi-plus"
2983
- viewBox="0 0 16 16"
2984
- >
2985
- <path
2986
- d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"
2987
- />
2988
- </svg>
2989
- </div>
2990
- </${e}-button>
2991
- </${e}-search-bar-combobox>
2992
- <${e}-tooltip class="tooltip" anchor="search-clear-button">
2993
- Clear Search Terms
2994
- </${e}-tooltip>
2995
- `,pl=r.html`
2996
- ${e=>hl(F(e))}
2997
- `,ml=10,vl=3,gl=1,bl=(e,t)=>(new wt).withExpression((new Ft).withField(e).withValue(t).withSerialiser(kt).build()).build();class fl extends n.FoundationElement{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=vl,this.position=ze.BELOW,this.placeholder="Start typing to search",this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g," "),this.addOrReplaceSelectedText=(e,t,o)=>(null==t?void 0:t.length)>0?e.replace(t,o):e.concat(o)}clear(){this.selectedOptions=[],this.combobox.currentValue="",this.$emit("selectionChange",[])}clearSearch(){this.clear()}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){const e=[];this.combobox.selectedOptions.forEach((t=>{var o,i,a;const n=t.value,s=this.searchTerm.trim();e.push({field:n,term:s,label:(null===(o=this.options.find((e=>e.field===n)))||void 0===o?void 0:o.label(s))||t.text,createCriteria:null===(i=this.options.find((e=>e.field===n)))||void 0===i?void 0:i.createCriteria,resourceType:null===(a=this.options.find((e=>e.field===n)))||void 0===a?void 0:a.resourceType})})),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter(((e,t,o)=>t===o.findIndex((t=>e.field===t.field&&e.term===t.term)))),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),r.DOM.queueUpdate((()=>{setTimeout((()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)}),ml)}))}pasteHandler(e){var t;this.loading=!0;const o=e.clipboardData.getData("text/plain"),i=this.normalizeDelimiter(o),a=null===(t=window.getSelection())||void 0===t?void 0:t.toString(),n=this.addOrReplaceSelectedText(this.combobox.value,a,i);(null==n?void 0:n.length)>=this.minlength&&(this.combobox.value=n,this.searchTerm=n,this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some((o=>o.term===e&&o.field===t))}unselectOption(e){this.selectedOptions=this.selectedOptions.filter((t=>t!==e)),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){return(0,x.__awaiter)(this,void 0,void 0,(function*(){this.loading=!0,this.searchTerm=this.combobox.value,this.combobox.value.length>=this.minlength&&this.filterSelectedOptions(this.combobox.value),this.loading=!1}))}filterSelectedOptions(e){this.filteredOptions=this.options.filter((t=>!this.selectedOptions.find((o=>o.field===t.field&&o.term.trim()===e.trim()))))}}(0,x.__decorate)([r.observable],fl.prototype,"defaultSlottedNodes",void 0),(0,x.__decorate)([r.observable],fl.prototype,"options",void 0),(0,x.__decorate)([r.observable],fl.prototype,"searchTerm",void 0),(0,x.__decorate)([r.attr],fl.prototype,"appearance",void 0),(0,x.__decorate)([r.attr],fl.prototype,"minlength",void 0),(0,x.__decorate)([r.attr],fl.prototype,"position",void 0),(0,x.__decorate)([r.attr],fl.prototype,"placeholder",void 0),(0,x.__decorate)([r.attr],fl.prototype,"disabled",void 0),(0,x.__decorate)([r.observable],fl.prototype,"loading",void 0),(0,x.__decorate)([r.observable],fl.prototype,"selectedOptions",void 0),(0,x.__decorate)([r.observable],fl.prototype,"filteredOptions",void 0);const yl=void 0,xl={},wl=fl.compose(Object.assign({baseName:"search-bar",template:pl,styles:dl,shadowOptions:yl},xl)),$l=(e,t)=>r.css`
2998
- ${Lt(e,t)}
2999
- .control {
3000
- width: auto;
3001
- padding-left: calc(${s.designUnit} * 1px);
3002
- padding-right: 0;
3003
- }
3004
-
3005
- .end {
3006
- height: 100%;
3007
- min-width: 36px;
3008
- max-width: 36px;
3009
- padding-right: 2px;
3010
- display: flex;
3011
- justify-content: flex-end;
3012
- align-items: center;
3013
- }
3014
-
3015
- .selected-value {
3016
- min-width: 150px;
3017
- max-width: 169px;
3018
- }
3019
- `,Sl=(e,t)=>r.html`
3020
- <template
3021
- aria-disabled="${e=>e.ariaDisabled}"
3022
- autocomplete="${e=>e.autocomplete}"
3023
- class="${e=>e.open?"open":""} ${e=>e.disabled?"disabled":""} ${e=>e.position} body"
3024
- ?open="${e=>e.open}"
3025
- tabindex="${e=>e.disabled?null:"0"}"
3026
- @click="${(e,t)=>e.clickHandler(t.event)}"
3027
- @focusout="${(e,t)=>e.focusoutHandler(t.event)}"
3028
- @keydown="${(e,t)=>e.keydownHandler(t.event)}"
3029
- data-test-id="combobox"
3030
- >
3031
- <slot name="selectedOptions" data-test-id="options"></slot>
3032
- <div class="control" part="control">
3033
- <slot name="control">
3034
- <input
3035
- aria-activedescendant="${e=>e.open?e.ariaActiveDescendant:null}"
3036
- aria-autocomplete="${e=>e.ariaAutoComplete}"
3037
- aria-controls="${e=>e.ariaControls}"
3038
- aria-disabled="${e=>e.ariaDisabled}"
3039
- aria-expanded="${e=>e.ariaExpanded}"
3040
- aria-haspopup="listbox"
3041
- class="selected-value"
3042
- part="selected-value"
3043
- placeholder="${e=>e.placeholder}"
3044
- role="combobox"
3045
- type="text"
3046
- ?disabled="${e=>e.disabled}"
3047
- :value="${e=>e.value}"
3048
- @input="${(e,t)=>e.inputHandler(t.event)}"
3049
- @keyup="${(e,t)=>e.keyupHandler(t.event)}"
3050
- ${(0,r.ref)("control")}
3051
- data-test-id="selected-value"
3052
- />
3053
- </slot>
3054
- </div>
3055
- ${(0,n.endSlotTemplate)(e,t)}
3056
- <div
3057
- class="listbox"
3058
- id="${e=>e.listboxId}"
3059
- part="listbox"
3060
- role="listbox"
3061
- ?disabled="${e=>e.disabled}"
3062
- ?hidden="${e=>!e.open}"
3063
- ${(0,r.ref)("listbox")}
3064
- data-test-id="listbox"
3065
- >
3066
- <slot
3067
- ${(0,r.slotted)({filter:n.Listbox.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
3068
- ></slot>
3069
- </div>
3070
- </template>
3071
- `;class Cl extends s.Combobox{constructor(){super(...arguments),this.minlength=gl,this.previousLength=-1,this.changeListener=e=>{this.previousLength=0}}connectedCallback(){super.connectedCallback(),this.addEventListener("change",this.changeListener)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("change",this.changeListener)}clickHandler(e){if(!this.disabled){if(this.open){const t=e.target.closest("option,[role=option]");if(!t||t.disabled)return;this.selectedOptions=[t],this.control.value=t.text,this.value=this.control.value,this.$emit("change")}this.control.focus()}}keyupHandler(e){switch(e.key){case"Backspace":case"Delete":this.previousLength<0?this.$emit("inputdeleted"):this.previousLength=this.previousLength-1;break;case"Enter":if(this.open&&-1!==this.selectedIndex){const e=this.slottedOptions[0];this.selectedOptions=[e],this.control.value=e.text,this.value=this.control.value,this.$emit("change")}}super.keyupHandler(e)}keydownHandler(e){switch(e.key){case"ArrowUp":case"ArrowDown":return this.control.value.length<this.minlength?void 0:super.keydownHandler(e);case"Enter":return-1!==this.selectedIndex&&super.keydownHandler(e);case"Tab":if(!this.open)return!0;e.shiftKey?this.selectPreviousOption():this.selectNextOption();break;default:return super.keydownHandler(e)}}inputHandler(e){this.control.value.length>=this.minlength?this.open=!0:(e.stopImmediatePropagation(),this.open=!1),this.value=this.control.value,this.previousLength=this.control.value.length}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),void this.focusAndScrollOptionIntoView();this.ariaControls="",this.ariaExpanded="false"}}(0,x.__decorate)([r.attr],Cl.prototype,"minlength",void 0);const kl={delegatesFocus:!0,mode:"open"},Fl={},_l=Cl.compose(Object.assign({baseName:"search-bar-combobox",template:Sl,styles:$l,shadowOptions:kl},Fl)),Ol=(e,t)=>r.css`
3072
- ${(0,s.radioGroupStyles)(e,t)}
3073
- ::slotted(foundation-segmented-item:first-of-type) {
3074
- border-radius: calc(var(--control-corner-radius) * 1px) 0 0
3075
- calc(var(--control-corner-radius) * 1px);
3076
- border-right-width: 0;
3077
- }
3078
-
3079
- ::slotted(foundation-segmented-item:last-of-type) {
3080
- border-radius: 0 calc(var(--control-corner-radius) * 1px)
3081
- calc(var(--control-corner-radius) * 1px) 0;
3082
- border-left-width: 0;
3083
- }
3084
- `,Dl=(e,t)=>(0,n.radioGroupTemplate)(e,t);class Tl extends n.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach((e=>{e.checked=!1})),super.valueChanged()}}const Ll=void 0,El={},Al=Tl.compose(Object.assign({baseName:"segmented-control",template:Dl,styles:Ol,shadowOptions:Ll},El)),Nl=(e,t)=>r.css`
3085
- ${(0,s.radioStyles)(e,t)}
3086
- :host {
3087
- padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
3088
- border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
3089
- cursor: pointer;
3090
- }
3091
-
3092
- :host([aria-checked='true']) {
3093
- background: var(--accent-foreground-rest);
3094
- }
3095
- `,Il=(e,t)=>r.html`
3096
- <template
3097
- role="radio"
3098
- aria-checked="${e=>e.checked}"
3099
- aria-required="${e=>e.required}"
3100
- aria-disabled="${e=>e.disabled}"
3101
- aria-readonly="${e=>e.readOnly}"
3102
- @keypress="${(e,t)=>e.keypressHandler(t.event)}"
3103
- @click="${(e,t)=>e.clickHandler(t.event)}"
3104
- >
3105
- <span>
3106
- <slot></slot>
3107
- </span>
3108
- </template>
3109
- `;class Rl extends s.Radio{}const Ml=void 0,Hl={},Pl=Rl.compose(Object.assign({baseName:"segmented-item",template:Il,styles:Nl,shadowOptions:Ml},Hl)),Bl=(e,t)=>r.css`
3110
- ${(0,s.selectStyles)(e,t)}
3111
-
3112
- :host(:not([size]):not([multiple]):not([open]):focus-visible), :host([multiple]:focus-visible), :host([size]:focus-visible),
3113
- .control:focus-visible {
3114
- box-shadow: none;
3115
- outline: none;
3116
- }
3117
- `,zl=(e,t)=>(0,n.selectTemplate)(e,t);class jl extends s.Select{openChanged(e,t){if(super.openChanged(e,t),!this.open){const e=this.options[this.selectedIndex];null==e||e.scrollIntoView({block:"center",behavior:"auto"})}}keydownHandler(e){switch(e.key){case"ArrowDown":case"ArrowUp":if(this.open){const e=this.options[this.selectedIndex];null==e||e.scrollIntoView({block:"center",behavior:"auto"})}else this.open=!0}return super.keydownHandler(e)}}const Vl=void 0,Gl={indicator:'\n <svg\n class="select-indicator"\n part="select-indicator"\n viewBox="0 0 12 7"\n xmlns="http://www.w3.org/2000/svg"\n >\n <path\n d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n />\n </svg>\n '},Ul=jl.compose(Object.assign({baseName:"select",template:zl,styles:Bl,shadowOptions:Vl},Gl)),Yl=(e,t)=>r.css`
3118
- ${(0,s.skeletonStyles)(e,t)}
3119
- `,Wl=(e,t)=>(0,n.skeletonTemplate)(e,t);class ql extends s.Skeleton{}const Kl=void 0,Xl={},Zl=ql.compose(Object.assign({baseName:"skeleton",template:Wl,styles:Yl,shadowOptions:Kl},Xl)),Ql=(e,t)=>r.css`
3120
- ${(0,s.sliderStyles)(e,t)}
3121
- .track-progress {
3122
- background-color: var(--accent-fill-rest);
3123
- border-radius: calc(var(--control-corner-radius) * 1px);
3124
- }
3125
- `;var Jl=o(17733),ed=o(54120);const td=(e,t)=>r.html`
3126
- <template
3127
- role="slider"
3128
- class="${e=>e.readOnly?"readonly":""}
3129
- ${e=>e.orientation||Jl.t.horizontal}"
3130
- tabindex="${e=>e.disabled?null:0}"
3131
- aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
3132
- aria-valuenow="${e=>e.value}"
3133
- aria-valuemin="${e=>e.min}"
3134
- aria-valuemax="${e=>e.max}"
3135
- aria-disabled="${e=>!!e.disabled||void 0}"
3136
- aria-readonly="${e=>!!e.readOnly||void 0}"
3137
- aria-orientation="${e=>e.orientation}"
3138
- class="${e=>e.orientation}"
3139
- >
3140
- <div part="positioning-region" class="positioning-region">
3141
- <div ${(0,r.ref)("track")} part="track-container" class="track">
3142
- <div
3143
- class="track-progress"
3144
- style="${e=>{const t=1-(0,ed.AB)(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),o=Math.round(100*(1-t));return"horizontal"===e.orientation?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${o}%;`:`height: calc(var(--track-width) * 1px); width: ${o}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${o}%;`:`width: calc(var(--track-width) * 1px); height: ${o}%; transition: all 0.2s ease;`}}"
3145
- ></div>
3146
- </div>
3147
- <slot></slot>
3148
- <div
3149
- ${(0,r.ref)("thumb")}
3150
- part="thumb-container"
3151
- class="thumb-container"
3152
- style="${e=>e.position}"
3153
- >
3154
- <slot name="thumb">${t.thumb||""}</slot>
3155
- </div>
3156
- </div>
3157
- </template>
3158
- `;class od extends s.Slider{}const id=void 0,ad={thumb:'\n <div class="thumb-cursor"></div>\n '},nd=od.compose(Object.assign({baseName:"slider",template:td,styles:Ql,shadowOptions:id},ad)),sd=(e,t)=>r.css`
3159
- ${(0,s.sliderLabelStyles)(e,t)}
3160
- `,rd=(e,t)=>(0,n.sliderLabelTemplate)(e,t);class ld extends s.SliderLabel{}const dd=void 0,cd={},ud=ld.compose(Object.assign({baseName:"slider-label",template:rd,styles:sd,shadowOptions:dd},cd)),hd="default",pd={DEFAULT:hd,ERROR:"error",SUCCESS:"success"},md=1e4,vd={DISMISS:"dismiss",AUTO_DISMISS:"autoDismiss"},gd=r.css`
3161
- @keyframes append-from-left-animate {
3162
- from {
3163
- transform: translateX(100%);
3164
- opacity: 0%;
3165
- }
3166
-
3167
- to {
3168
- transform: translateX(0%);
3169
- opacity: 100%;
3170
- }
3171
- }
3172
-
3173
- @keyframes delete-from-left-animate {
3174
- from {
3175
- transform: translateX(0%);
3176
- opacity: 100%;
3177
- }
3178
-
3179
- to {
3180
- transform: translateX(100%);
3181
- opacity: 0%;
3182
- }
3183
- }
3184
-
3185
- @keyframes append-from-top-animate {
3186
- from {
3187
- transform: translateY(-100%);
3188
- opacity: 0%;
3189
- }
3190
-
3191
- to {
3192
- transform: translateY(0%);
3193
- opacity: 100%;
3194
- }
3195
- }
3196
-
3197
- @keyframes delete-from-top-animate {
3198
- from {
3199
- transform: translateY(0%);
3200
- opacity: 100%;
3201
- }
3202
-
3203
- to {
3204
- transform: translateY(-100%);
3205
- opacity: 0%;
3206
- }
3207
- }
3208
-
3209
- @keyframes delete-fade-animate {
3210
- from {
3211
- opacity: 100%;
3212
- }
3213
-
3214
- to {
3215
- opacity: 0%;
3216
- }
3217
- }
3218
-
3219
- :host {
3220
- --snackbar-min-width: 356px;
3221
- --snackbar-min-height: 55px;
3222
- --snackbar-max-width: 496px;
3223
- --snackbar-max-height: auto;
3224
- --snackbar-animation-name: append-from-left-animate;
3225
- --snackbar-animation-delete-name: delete-from-left-animate;
3226
- }
3227
-
3228
- .snackbar {
3229
- animation: var(--snackbar-animation-name) 0.3s linear;
3230
- max-width: var(--snackbar-max-width);
3231
- min-width: var(--snackbar-min-width);
3232
- min-height: var(--snackbar-min-height);
3233
- max-height: var(--snackbar-max-height);
3234
- background-color: var(--fill-color);
3235
- border-radius: calc(var(--control-corner-radius) * 1px);
3236
- border-width: thin;
3237
- border-color: var(--neutral-fill-rest);
3238
- box-shadow: 0 2px 5px 0 rgb(0 0 0 / 35%);
3239
- box-sizing: border-box;
3240
- display: flex;
3241
- position: relative;
3242
- bottom: 5px;
3243
- flex-direction: row;
3244
- padding: 2px 16px;
3245
- }
3246
-
3247
- .snackbar-delete {
3248
- animation: var(--snackbar-animation-delete-name) 0.3s linear;
3249
- opacity: 0%;
3250
- }
3251
-
3252
- .snackbar::after {
3253
- content: '';
3254
- position: absolute;
3255
- top: 50%;
3256
- transform: translateY(-50%);
3257
- left: 0;
3258
- height: calc(100% - 2px);
3259
- width: 2px;
3260
- border-radius: 2px;
3261
- }
3262
-
3263
- .content {
3264
- display: flex;
3265
- align-items: center;
3266
- flex: 2;
3267
- font-size: 12px;
3268
- overflow: hidden;
3269
- overflow-wrap: anywhere;
3270
- }
3271
-
3272
- .action {
3273
- display: flex;
3274
- flex-direction: row-reverse;
3275
- align-items: center;
3276
- gap: 10px;
3277
- flex: 1;
3278
- overflow: hidden;
3279
- }
3280
- `,bd=e=>r.html`
3281
- <div
3282
- role="alert"
3283
- aria-live="polite"
3284
- part="snackbar"
3285
- class="snackbar ${e=>e.deleteAnimation}"
3286
- ${(0,r.ref)("snackbar")}
3287
- >
3288
- <div part="content" class="content">
3289
- <slot name="content">
3290
- ${e=>{var t,o;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(o=e.notification)||void 0===o?void 0:o.body)||"Place holder for error message"}}
3291
- </slot>
3292
- </div>
3293
- ${(0,r.when)((e=>{var t,o,i,a,n,s,r,l;return(null===(a=null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.confirmingActions)||void 0===a?void 0:a.length)||(null===(l=null===(r=null===(s=null===(n=e.notification)||void 0===n?void 0:n.config)||void 0===s?void 0:s.snackbar)||void 0===r?void 0:r.confirmingActions)||void 0===l?void 0:l.length)}),r.html`
3294
- <div part="action" class="action">
3295
- <slot name="action">
3296
- ${(0,r.repeat)((e=>{var t,o,i,a,n,s;return(null===(i=null===(o=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.confirmingActions)||(null===(s=null===(n=null===(a=e.notification)||void 0===a?void 0:a.config)||void 0===n?void 0:n.snackbar)||void 0===s?void 0:s.confirmingActions)}),r.html`
3297
- <${e}-button
3298
- slot="action"
3299
- appearance="lightweight"
3300
- @click=${(e,t)=>{var o;null==e||e.action(),null===(o=t.parent)||void 0===o||o.dismiss()}}
3301
- >
3302
- ${e=>e.label}
3303
- </${e}-button>
3304
- `)}
3305
- </slot>
3306
- </div>
3307
- `)}
3308
- </div>
3309
- `,fd=r.html`
3310
- ${e=>bd(F(e))}
3311
- `,yd={mode:"open",delegatesFocus:!0};class xd extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=md,this.autoClose=!0,this.type=hd,this.dismissEventListener=this.handleDissmis.bind(this)}autoCloseChanged(){this.autoClose&&(this.timeoutRef=setTimeout((()=>{this.handleDissmis(!0)}),this.closeTimeout)),!this.autoClose&&this.timeoutRef&&clearTimeout(this.timeoutRef)}connectedCallback(){super.connectedCallback(),this.addEventListener(vd.DISMISS,this.dismissEventListener)}errorChanged(e,t){var o,i,a;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:hd}notificationChanged(e,t){var o,i,a,n,s,r,l,d,c;this.type=null!==(a=null===(i=null===(o=null==t?void 0:t.config)||void 0===o?void 0:o.snackbar)||void 0===i?void 0:i.type)&&void 0!==a?a:hd,this.autoClose=null===(r=null===(s=null===(n=null==t?void 0:t.config)||void 0===n?void 0:n.snackbar)||void 0===s?void 0:s.autoClose)||void 0===r||r,this.closeTimeout=null!==(c=null===(d=null===(l=null==t?void 0:t.config)||void 0===l?void 0:l.snackbar)||void 0===d?void 0:d.closeTimeout)&&void 0!==c?c:md}handleDissmis(e=!1){this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(vd.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(vd.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}}(0,x.__decorate)([r.observable],xd.prototype,"error",void 0),(0,x.__decorate)([r.observable],xd.prototype,"notification",void 0),(0,x.__decorate)([r.observable],xd.prototype,"deleteAnimation",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"identifier"})],xd.prototype,"identifier",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout"})],xd.prototype,"closeTimeout",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close",mode:"boolean"})],xd.prototype,"autoClose",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"type"})],xd.prototype,"type",void 0);const wd=xd.compose({baseName:"snackbar",styles:gd,template:fd,shadowOptions:yd}),$d=(e,t)=>r.css`
3312
- ${Jn()}
3313
-
3314
- .fa-stack {
3315
- display: inline-block;
3316
- text-align: center;
3317
- line-height: 2em;
3318
- height: 2em;
3319
- position: relative;
3320
- width: 2em;
3321
- }
3322
-
3323
- .fa-stack-1x,
3324
- .fa-stack-2x {
3325
- left: 50%;
3326
- position: absolute;
3327
- transform: translateX(-50%);
3328
- }
3329
-
3330
- .fa-stack-2x {
3331
- font-size: 2em;
3332
- }
3333
-
3334
- .fa-stack-1x {
3335
- z-index: 1;
3336
- }
3337
- `,Sd=r.html`
3338
- <span
3339
- class=${e=>`fa-stack fa-${e.size}`}
3340
- style=${e=>`vertical-align: ${e["vertical-align"]};`}
3341
- >
3342
- <slot></slot>
3343
- </span>
3344
- `;class Cd extends n.FoundationElement{constructor(){super(...arguments),this.size=ss,this["vertical-align"]="baseline"}}(0,x.__decorate)([r.attr],Cd.prototype,"size",void 0),(0,x.__decorate)([r.attr],Cd.prototype,"vertical-align",void 0);const kd=Cd.compose({baseName:"stacking-icons",template:Sd,styles:$d}),Fd=r.css`
3345
- :host {
3346
- display: flex;
3347
- height: 100%;
3348
- width: 100%;
3349
- }
3350
-
3351
- :host([orientation='horizontal']) {
3352
- flex-direction: column;
3353
- }
3354
-
3355
- .stepper-tab {
3356
- display: flex;
3357
- flex-direction: column;
3358
- width: 100%;
3359
- height: 100%;
3360
- max-width: 280px;
3361
- border-radius: 0;
3362
- }
3363
-
3364
- .action-buttons-container {
3365
- width: 100%;
3366
- display: flex;
3367
- justify-content: flex-end;
3368
- }
3369
-
3370
- .stepper-panel-container {
3371
- height: 100%;
3372
- overflow: hidden;
3373
- padding: 15px;
3374
- }
3375
-
3376
- .stepper-tab-menu {
3377
- display: flex;
3378
- flex-direction: column;
3379
- width: 100%;
3380
- margin-bottom: 30px;
3381
- }
3382
-
3383
- .stepper-tab-progress {
3384
- display: flex;
3385
- flex-direction: column;
3386
- align-items: center;
3387
- justify-content: start;
3388
- flex: 1;
3389
- }
3390
-
3391
- .stepper-tab-progress .progress-ring {
3392
- --design-unit: 10;
3393
-
3394
- margin: 0;
3395
- }
3396
-
3397
- .stepper-tab-panel {
3398
- display: flex;
3399
- flex-direction: column;
3400
- justify-content: space-between;
3401
- width: 100%;
3402
- min-width: 370px;
3403
- border-radius: 0;
3404
- }
3405
-
3406
- label {
3407
- padding: 0 10px;
3408
- color: rgb(135 155 166);
3409
- display: block;
3410
- cursor: pointer;
3411
- text-align: center;
3412
- font-size: var(--type-ramp-base-font-size);
3413
- line-height: var(--type-ramp-base-line-height);
3414
- font-style: normal;
3415
- margin: calc(var(--design-unit) * 2px) 0;
3416
- }
3417
-
3418
- :host([orientation='horizontal']) .stepper-tab-menu {
3419
- height: 100%;
3420
- width: 100%;
3421
- display: flex;
3422
- flex-direction: row;
3423
- margin-bottom: 0;
3424
- align-items: center;
3425
- justify-content: center;
3426
- gap: calc(var(--design-unit) * 4px);
3427
- padding: 0 calc(var(--design-unit) * 4px);
3428
- }
3429
-
3430
- :host([orientation='horizontal']) .stepper-tab {
3431
- max-width: 100%;
3432
- max-height: 70px;
3433
- height: 70px;
3434
- }
3435
- `,_d=e=>r.html`
3436
-
3437
- <${e}-card class="stepper-tab" part="stepper-tab" @tab-clicked="${(e,t)=>e.handleStepClick(t.event.detail)}" role="stepper-tab" data-test-id="stepper-tab">
3438
- <div class="stepper-tab-menu" part="stepper-tab-menu">
3439
- <slot name="tab" ${(0,r.slotted)("tabs")} ></slot>
3440
- </div>
3441
- ${(0,r.when)((e=>e.orientation===n.TabsOrientation.vertical),r.html`
3442
- <div class="stepper-tab-progress" part="stepper-tab-progress">
3443
- <${e}-progress-ring class="progress-ring" part="progress-ring" value=${e=>e.progressValue}></${e}-progress-ring>
3444
- <label>You have completed ${e=>e.progressValue}% of the fields required to create a project</label>
3445
- </div>`)}
3446
- </${e}-card>
3447
- <${e}-card class="stepper-tab-panel" part="stepper-tab-panel" data-test-id="stepper-tab-panel">
3448
- <div class="stepper-panel-container" part="stepper-panel-container">
3449
- <slot name="tab-panel" ${(0,r.slotted)("tabpanels")}></slot>
3450
- </div>
3451
- <div class="action-buttons-container" part="action-buttons-container">
3452
- <slot name="action-buttons">
3453
- <${e}-button @click=${e=>e.previousStep()} ?disabled=${e=>e.disabledPreviousStep}>Back</${e}-button>
3454
- ${(0,r.when)((e=>e.isLastStep&&!e.hideSubmitButton),r.html`
3455
- <${e}-button @click=${e=>e._submit()} ?disabled=${e=>e.islastStepValid} data-test-id="submit-button">
3456
- Submit
3457
- </${e}-button>
3458
- `)}
3459
- ${(0,r.when)((e=>!e.isLastStep),r.html`
3460
- <${e}-button @click=${e=>e.nextStep()} data-test-id="next-button">Next</${e}-button>`)}
3461
- </slot>
3462
- </div>
3463
- </${e}-card>
3464
- `,Od=r.html`
3465
- ${e=>_d(F(e))}
3466
- `;class Dd extends n.FoundationElement{constructor(){super(...arguments),this.allowBackwardJumps=!1,this.orientation=n.TabsOrientation.vertical,this.progressValue=0,this.activeTabIndex=0,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach(((e,t)=>{if("tab"===e.slot){const o=this.activeTabIndex===t,i=t+1===this.tabIds.length,a=this.tabIds[t],n=this.tabpanelIds[t];e.setAttribute("id",a),e.setAttribute("aria-selected",o?"true":"false"),e.setAttribute("aria-disabled",o?"false":"true"),e.setAttribute("selected",o?"true":"false"),e.setAttribute("orientation",this.orientation),e.setAttribute("aria-controls",n),e.setAttribute("aria-controls",n),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(i)),e.setAttribute("hideStepNumber",String(!0===this.hideStepNumber)),e.setAttribute("tabindex",o?"0":"-1"),e.setAttribute("showCursorPointer",String(t<=this.activeTabIndex&&this.allowBackwardJumps)),o&&(this.activetab=e,this.activeid=a)}})),0===this.activeTabIndex&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach((t=>{t.isCompleted()&&(e+=1)})),this.progressValue=Math.round(e/this.tabpanels.length*100)},this.setTabPanels=()=>{this.tabpanels.forEach(((e,t)=>{const o=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id",i),e.setAttribute("aria-labelledby",o),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}handleStepClick(e){if(e<this.activeTabIndex&&this.allowBackwardJumps){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid})}}get disabledPreviousStep(){return 0===this.activeTabIndex}get isLastStep(){return this.activeTabIndex+1===this.tabs.length}get islastStepValid(){var e;const t=this.tabs.length-1;return this.activeTabIndex===t&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs(),!1):(this.tabs[t].completed=!1,this.getCompletedTabs(),!0)}_submit(){this.$emit("submit")}nextStep(){var e;if(this.$emit("next-step"),this.validation&&this.validation[this.activeTabIndex]){if(!this.validation[this.activeTabIndex].isValid())return this.tabs[this.activeTabIndex].completed=!1,this.tabs[this.activeTabIndex].error=!0,void this.getCompletedTabs();this.tabs[this.activeTabIndex].error=!1}this.activeTabIndex+2<=this.tabIds.length&&(this.tabs[this.activeTabIndex].completed=!0,this.activeTabIndex=this.activeTabIndex+1,this.activeid=this.tabIds[this.activeTabIndex],this.$emit("validation-success"));const t=this.tabs.length-1,o=this.activeTabIndex===t;this.hideSubmitButton&&o&&(this.validation&&(null===(e=this.validation[t])||void 0===e?void 0:e.isValid())||!this.validation||!this.validation[t])?(this.tabs[t].completed=!0,this.getCompletedTabs()):(this.tabs[t].completed=!1,this.getCompletedTabs())}previousStep(){0!==this.activeTabIndex&&(this.tabs[this.activeTabIndex].completed=!1,this.activeTabIndex=this.activeTabIndex-1,this.activeid=this.tabIds[this.activeTabIndex])}getTabIds(){return this.tabs.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`tab-${(0,Xa.NF)()}`}))}getTabPanelIds(){return this.tabpanels.map((e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,Xa.NF)()}`}))}resetCompletedState(){this.tabs.forEach((e=>e.completed=!1))}}(0,x.__decorate)([(0,r.attr)({attribute:"hide-submit-button",mode:"boolean"})],Dd.prototype,"hideSubmitButton",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"hide-step-number",mode:"boolean"})],Dd.prototype,"hideStepNumber",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"allow-backward-jumps",mode:"boolean"})],Dd.prototype,"allowBackwardJumps",void 0),(0,x.__decorate)([r.attr],Dd.prototype,"orientation",void 0),(0,x.__decorate)([r.attr],Dd.prototype,"activeid",void 0),(0,x.__decorate)([r.observable],Dd.prototype,"tabs",void 0),(0,x.__decorate)([r.observable],Dd.prototype,"tabpanels",void 0),(0,x.__decorate)([r.observable],Dd.prototype,"validation",void 0),(0,x.__decorate)([r.observable],Dd.prototype,"progressValue",void 0),(0,x.__decorate)([r.observable],Dd.prototype,"activeTabIndex",void 0),(0,x.__decorate)([r.volatile],Dd.prototype,"disabledPreviousStep",null),(0,x.__decorate)([r.volatile],Dd.prototype,"isLastStep",null),(0,x.__decorate)([r.volatile],Dd.prototype,"islastStepValid",null);const Td=void 0,Ld={},Ed=Dd.compose(Object.assign({baseName:"stepper",template:Od,styles:Fd,shadowOptions:Td},Ld)),Ad=(e,t)=>r.css`
3467
- .tree-item {
3468
- cursor: default;
3469
- }
3470
-
3471
- .tree-item::part(content-region) {
3472
- margin-inline-start: 0;
3473
- }
3474
-
3475
- .tree-item[selected]::part(positioning-region):hover {
3476
- background: var(--neutral-fill-rest);
3477
- }
3478
-
3479
- .tree-item::part(positioning-region):hover {
3480
- background: var(--neutral-fill-stealth-rest);
3481
- }
3482
-
3483
- .stepper-icon {
3484
- margin-right: 5px;
3485
- }
3486
-
3487
- .completed-icon {
3488
- color: #69cd70;
3489
- }
3490
-
3491
- .error-icon {
3492
- color: #f14376;
3493
- }
3494
-
3495
- .step-number {
3496
- display: flex;
3497
- justify-content: center;
3498
- align-items: center;
3499
- margin: 0 5px 0 0;
3500
- width: 24px;
3501
- height: 24px;
3502
- font-size: var(--type-ramp-minus-1-font-size);
3503
- font-weight: 500;
3504
- color: var(--focus-stroke-outer);
3505
- background-color: var(--neutral-fill-input-rest);
3506
- border-radius: 50%;
3507
- border: calc(var(--stroke-width) * 1px) solid var(--neutral-fill-input-rest);
3508
- }
3509
-
3510
- .step-number-container {
3511
- display: flex;
3512
- flex-direction: row;
3513
- align-items: center;
3514
- justify-content: center;
3515
- width: 75%;
3516
- }
3517
-
3518
- .angle-icon {
3519
- color: var(--neutral-fill-input-rest);
3520
- margin: 0 calc(var(--design-unit) * 4px);
3521
- }
3522
-
3523
- .step-title {
3524
- font-size: var(--type-ramp-base-font-size);
3525
- color: var(--focus-stroke-outer);
3526
- font-weight: 600;
3527
- }
3528
-
3529
- :host([completed]) .step-number {
3530
- border-color: #69cd70;
3531
- color: white;
3532
- background-color: #69cd70;
3533
- }
3534
-
3535
- :host([completed]) .step-title {
3536
- color: #69cd70;
3537
- }
3538
-
3539
- :host([error]) .step-number {
3540
- border-color: #f14376;
3541
- color: white;
3542
- background-color: #f14376;
3543
- }
3544
-
3545
- :host([error]) .step-title {
3546
- color: #f14376;
3547
- }
3548
-
3549
- :host([orientation='horizontal']) {
3550
- flex: 1 1 0;
3551
- height: 100%;
3552
- }
3553
-
3554
- .cursor-pointer {
3555
- cursor: pointer;
3556
- }
3557
-
3558
- .step-container {
3559
- position: relative;
3560
- display: flex;
3561
- align-items: center;
3562
- justify-content: space-between;
3563
- height: 100%;
3564
- }
3565
-
3566
- .step-container.selected::after {
3567
- content: '';
3568
- position: absolute;
3569
- bottom: 0;
3570
- left: calc(var(--design-unit) * -3px); /* This matches the left padding */
3571
- right: 28px; /* This matches the icon width + right margin */
3572
- height: 2px;
3573
- width: calc(100% - 28px);
3574
- background-color: var(--accent-fill-rest); /* Choose a color */
3575
- }
3576
- `;var Nd=o(70997);const Id=e=>r.html`
3577
- ${(0,Nd.q)((e=>e.orientation===n.TabsOrientation.vertical),r.html`
3578
- <${e}-tree-item ${(0,r.ref)("treeItem")}
3579
- class=${e=>(0,w.x)("tree-item",["cursor-pointer",e.showCursorPointer])}
3580
- @click="${(e,t)=>e.$emit("tab-clicked",e.tabPosition-1)}">
3581
- ${(0,r.when)((e=>e.completed),r.html`
3582
- <${e}-icon
3583
- name="check-circle"
3584
- variant="regular"
3585
- size="lg"
3586
- class="stepper-icon completed-icon"
3587
- ></${e}-icon>
3588
- `)}
3589
- ${(0,r.when)((e=>e.error),r.html`
3590
- <${e}-icon
3591
- name="times-circle"
3592
- variant="regular"
3593
- size="lg"
3594
- class="stepper-icon error-icon"
3595
- ></${e}-icon>
3596
- `)}
3597
- <slot></slot>
3598
- </${e}-tree-item>
3599
- `,r.html`
3600
- <div class=${e=>(0,w.x)("step-container",["selected",e.selected])}>
3601
- <div
3602
- class=${e=>(0,w.x)("step-number-container",["cursor-pointer",e.showCursorPointer])}
3603
- @click="${e=>e.$emit("tab-clicked",e.tabPosition-1)}"
3604
- >
3605
- ${(0,r.when)((e=>!e.hideStepNumber),r.html`
3606
- <span class="step-number">${e=>e.tabPosition}</span>
3607
- `)}
3608
- <slot class="step-title"></slot>
3609
- </div>
3610
- ${(0,r.when)((e=>!e.isLast),r.html`
3611
- <${e}-icon
3612
- class="stepper-icon angle-icon"
3613
- name="angle-right"
3614
- variant="solid"
3615
- size="lg"
3616
- ></${e}-icon>
3617
- `)}
3618
- </div>
3619
- `)}
3620
- `,Rd=r.html`
3621
- ${e=>Id(F(e))}
3622
- `;class Md extends n.FoundationElement{constructor(){super(...arguments),this.slot="tab",this.orientation=n.TabsOrientation.vertical}isCompleted(){return this.completed}selectedChanged(){this.treeItem&&(this.treeItem.selected=this.selected)}disconnectedCallback(){super.disconnectedCallback(),this.completed=void 0,this.error=void 0,this.selected=void 0}}(0,x.__decorate)([r.attr],Md.prototype,"slot",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Md.prototype,"selected",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Md.prototype,"completed",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Md.prototype,"error",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Md.prototype,"isLast",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Md.prototype,"hideStepNumber",void 0),(0,x.__decorate)([(0,r.attr)({mode:"boolean"})],Md.prototype,"showCursorPointer",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"tab-position"})],Md.prototype,"tabPosition",void 0),(0,x.__decorate)([r.attr],Md.prototype,"orientation",void 0);const Hd=void 0,Pd={},Bd=Md.compose(Object.assign({baseName:"stepper-tab",template:Rd,styles:Ad,shadowOptions:Hd},Pd)),zd=()=>r.html`
3623
- <template slot="tab-panel" role="stepper-tab-panel">
3624
- <slot></slot>
3625
- </template>
3626
- `;class jd extends n.FoundationElement{}const Vd=void 0,Gd={},Ud=jd.compose(Object.assign({baseName:"stepper-tab-panel",template:zd,shadowOptions:Vd},Gd)),Yd=(e,t)=>r.css`
3627
- ${(0,s.switchStyles)(e,t)}
3628
- .checked-indicator {
3629
- transform: scale(1.3);
3630
- }
3631
-
3632
- .switch {
3633
- border-radius: calc(var(--control-corner-radius) * 3px);
3634
- }
3635
-
3636
- .checked-indicator {
3637
- border-radius: calc(var(--control-corner-radius) * 2px);
3638
- }
3639
- `,Wd=(e,t)=>(0,n.switchTemplate)(e,t);class qd extends s.Switch{}const Kd=void 0,Xd={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},Zd=qd.compose(Object.assign({baseName:"switch",template:Wd,styles:Yd,shadowOptions:Kd},Xd)),Qd=(e,t)=>r.css`
3640
- ${(0,s.tabStyles)(e,t)}
3641
-
3642
- :host {
3643
- user-select: none;
3644
- }
3645
- `,Jd=(e,t)=>(0,n.tabTemplate)(e,t);class ec extends s.Tab{}const tc=void 0,oc={},ic=ec.compose(Object.assign({baseName:"tab",template:Jd,styles:Qd,shadowOptions:tc},oc)),ac=(e,t)=>r.css`
3646
- ${(0,s.tabPanelStyles)(e,t)}
3647
-
3648
- :host {
3649
- height: 100%;
3650
- padding: 0;
3651
- }
3652
- `,nc=(e,t)=>(0,n.tabPanelTemplate)(e,t);class sc extends s.TabPanel{}const rc=void 0,lc={},dc=sc.compose(Object.assign({baseName:"tab-panel",template:nc,styles:ac,shadowOptions:rc},lc)),cc=(e,t)=>r.css`
3653
- ${(0,s.tabsStyles)(e,t)}
3654
-
3655
- :host {
3656
- height: 100%;
3657
- width: 100%;
3658
- }
3659
- `,uc=(e,t)=>(0,n.tabsTemplate)(e,t);class hc extends s.Tabs{}const pc=void 0,mc={},vc=hc.compose(Object.assign({baseName:"tabs",template:uc,styles:cc,shadowOptions:pc},mc)),gc=(e,t)=>r.css`
3660
- ${(0,s.textAreaStyles)(e,t)}
3661
- :host .control {
3662
- padding: calc(var(--design-unit) * 3px);
3663
- }
3664
- `,bc=(e,t)=>(0,n.textAreaTemplate)(e,t);class fc extends s.TextArea{}const yc=void 0,xc={},wc=fc.compose(Object.assign({baseName:"text-area",template:bc,styles:gc,shadowOptions:yc},xc)),{create:$c}=n.DesignToken,Sc=$c("active-color-scheme").withDefault((e=>s.baseLayerLuminance.getValueFor(e)===s.StandardLuminance.LightMode?"light":"dark")),Cc=(e,t)=>r.css`
3665
- ${(0,s.textFieldStyles)(e,t)}
3666
-
3667
- input {
3668
- color-scheme: ${Sc};
3669
- }
3670
-
3671
- .label-hidden {
3672
- margin: 0;
3673
- }
3674
- `,kc=(e,t)=>r.html`
3675
- <template
3676
- class="
3677
- ${e=>e.readOnly?"readonly":""}
3678
- "
3679
- >
3680
- <label
3681
- part="label"
3682
- for="${e=>e.id?e.id:"control"}"
3683
- class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label-hidden"}"
3684
- >
3685
- <slot ${(0,r.slotted)({property:"defaultSlottedNodes",filter:n.whitespaceFilter})}></slot>
3686
- </label>
3687
- <div class="root" part="root">
3688
- ${(0,n.startSlotTemplate)(e,t)}
3689
- <input
3690
- name="${e=>e.name}"
3691
- autocomplete="${e=>e.autocomplete}"
3692
- autocapitalize="${e=>e.autocapitalize}"
3693
- id="${e=>e.id?e.id:"control"}"
3694
- class="control"
3695
- part="control"
3696
- @input="${e=>e.handleTextInput()}"
3697
- @change="${e=>e.handleChange()}"
3698
- step="${e=>e.step}"
3699
- ?autofocus="${e=>e.autofocus}"
3700
- ?disabled="${e=>e.disabled}"
3701
- list="${e=>e.list}"
3702
- maxlength="${e=>e.maxlength}"
3703
- minlength="${e=>e.minlength}"
3704
- pattern="${e=>e.pattern}"
3705
- placeholder="${e=>e.placeholder}"
3706
- ?readonly="${e=>e.readOnly}"
3707
- ?required="${e=>e.required}"
3708
- size="${e=>e.size}"
3709
- ?spellcheck="${e=>e.spellcheck}"
3710
- :value="${e=>e.value}"
3711
- type="${e=>e.type}"
3712
- aria-atomic="${e=>e.ariaAtomic}"
3713
- aria-busy="${e=>e.ariaBusy}"
3714
- aria-controls="${e=>e.ariaControls}"
3715
- aria-current="${e=>e.ariaCurrent}"
3716
- aria-describedby="${e=>e.ariaDescribedby}"
3717
- aria-details="${e=>e.ariaDetails}"
3718
- aria-disabled="${e=>e.ariaDisabled}"
3719
- aria-errormessage="${e=>e.ariaErrormessage}"
3720
- aria-flowto="${e=>e.ariaFlowto}"
3721
- aria-haspopup="${e=>e.ariaHaspopup}"
3722
- aria-hidden="${e=>e.ariaHidden}"
3723
- aria-invalid="${e=>e.ariaInvalid}"
3724
- aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
3725
- aria-label="${e=>e.ariaLabel}"
3726
- aria-labelledby="${e=>e.ariaLabelledby}"
3727
- aria-live="${e=>e.ariaLive}"
3728
- aria-owns="${e=>e.ariaOwns}"
3729
- aria-relevant="${e=>e.ariaRelevant}"
3730
- aria-roledescription="${e=>e.ariaRoledescription}"
3731
- ${(0,r.ref)("control")}
3732
- />
3733
- ${(0,n.endSlotTemplate)(e,t)}
3734
- </div>
3735
- </template>
3736
- `;class Fc extends s.TextField{constructor(){super(...arguments),this.autocapitalize="off"}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}}(0,x.__decorate)([r.attr],Fc.prototype,"autocomplete",void 0),(0,x.__decorate)([r.attr],Fc.prototype,"autocapitalize",void 0),(0,x.__decorate)([r.attr],Fc.prototype,"step",void 0);const _c={mode:"open",delegatesFocus:!0},Oc={},Dc=Fc.compose(Object.assign({baseName:"text-field",template:kc,styles:Cc,shadowOptions:_c},Oc)),Tc=r.css`
3737
- @keyframes append-animate {
3738
- from {
3739
- transform: translateX(100%);
3740
- opacity: 0%;
3741
- }
3742
-
3743
- to {
3744
- transform: translateX(0%);
3745
- opacity: 100%;
3746
- }
3747
- }
3748
-
3749
- @keyframes delete-animate {
3750
- from {
3751
- transform: translateX(0%);
3752
- opacity: 100%;
3753
- }
3754
-
3755
- to {
3756
- transform: translateX(100%);
3757
- opacity: 0%;
3758
- }
3759
- }
3760
-
3761
- :host {
3762
- --toast-min-width: 356px;
3763
- --toast-min-height: 128px;
3764
- --toast-max-width: 356px;
3765
- --toast-max-height: 272px;
3766
- }
3767
-
3768
- .toast {
3769
- animation: append-animate 0.3s linear;
3770
- max-width: var(--toast-max-width);
3771
- min-width: var(--toast-min-width);
3772
- background-color: var(--fill-color);
3773
- border-radius: calc(var(--control-corner-radius) * 1px);
3774
- border-width: thin;
3775
- border-color: var(--neutral-fill-rest);
3776
- box-shadow: 0 2px 15px 0 rgb(0 0 0 / 35%);
3777
- display: flex;
3778
- position: relative;
3779
- flex-direction: row;
3780
- padding: 8px 8px 8px 15px;
3781
- margin: 5px;
3782
- }
3783
-
3784
- .toast-delete {
3785
- animation: delete-animate 0.3s linear;
3786
- opacity: 0%;
3787
- }
3788
-
3789
- .toast::after {
3790
- content: '';
3791
- position: absolute;
3792
- top: 50%;
3793
- transform: translateY(-50%);
3794
- left: 5px;
3795
- height: calc(100% - 10px);
3796
- width: 4px;
3797
- border-radius: 2px;
3798
- background-color: red;
3799
- }
3800
-
3801
- .content-wrapper {
3802
- height: fit-content;
3803
- width: 100%;
3804
- display: flex;
3805
- flex-direction: column;
3806
- justify-content: space-between;
3807
- align-items: stretch;
3808
- }
3809
-
3810
- .bottom {
3811
- width: 70%;
3812
- }
3813
-
3814
- .top {
3815
- width: 100%;
3816
- display: flex;
3817
- flex-direction: row;
3818
- justify-content: space-between;
3819
- align-items: center;
3820
- }
3821
-
3822
- .content {
3823
- width: 85%;
3824
- font-size: 12px;
3825
- overflow-wrap: break-word;
3826
- }
3827
-
3828
- .date {
3829
- color: var(--neutral-foreground-hint);
3830
- font-size: 12px;
3831
- margin: 0 0 5px;
3832
- }
3833
-
3834
- .close-icon svg {
3835
- cursor: pointer;
3836
- }
3837
- `,Lc=r.html`
3838
- <div role="alert" aria-live="polite" class="toast ${e=>e.deleteAnimation}" ${(0,r.ref)("toast")}>
3839
- <div class="content-wrapper">
3840
- <div part="top" class="top">
3841
- <slot name="top"></slot>
3842
- <div class="close-icon" @click=${e=>e.close()}>${Ba()}</div>
3843
- </div>
3844
- <div part="content" class="content">
3845
- <slot name="content"></slot>
3846
- </div>
3847
- <div part="date" class="date">
3848
- <slot name="date"></slot>
3849
- </div>
3850
- <div part="bottom" class="bottom">
3851
- <slot name="bottom"></slot>
3852
- </div>
3853
- </div>
3854
- </div>
3855
- `,Ec={mode:"open",delegatesFocus:!0},Ac={};class Nc extends n.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!1}connectedCallback(){super.connectedCallback(),this.autoClose&&setTimeout((()=>{this.deleteAnimation="toast-delete",this.toast.onanimationend=()=>{this.remove()}}),this.closeTimeout)}close(){this.remove()}}(0,x.__decorate)([r.observable],Nc.prototype,"deleteAnimation",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout"})],Nc.prototype,"closeTimeout",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"auto-close"})],Nc.prototype,"autoClose",void 0);const Ic=Nc.compose(Object.assign({baseName:"toast",styles:Tc,template:Lc,shadowOptions:Ec},Ac)),Rc=(e,t)=>r.css`
3856
- ${(0,s.toolbarStyles)(e,t)}
3857
- `,Mc=(e,t)=>(0,n.toolbarTemplate)(e,t);class Hc extends s.Toolbar{}const Pc=void 0,Bc={},zc=Hc.compose(Object.assign({baseName:"toolbar",template:Mc,styles:Rc,shadowOptions:Pc},Bc)),jc=(e,t)=>r.css`
3858
- ${(0,s.tooltipStyles)(e,t)}
3859
- `,Vc=(e,t)=>(0,n.tooltipTemplate)(e,t);class Gc extends s.Tooltip{}const Uc=void 0,Yc={},Wc=Gc.compose(Object.assign({baseName:"tooltip",template:Vc,styles:jc,shadowOptions:Uc},Yc)),qc=(e,t)=>r.css`
3860
- ${(0,s.treeItemStyles)(e,t)}
3861
- :host {
3862
- --focus-stroke-width: 0;
3863
- --tree-item-nested-width: 1em;
3864
- }
3865
-
3866
- :host([selected])::after {
3867
- height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
3868
- width: 5px;
3869
- top: 0;
3870
- border-radius: 0;
3871
- }
3872
-
3873
- .positioning-region {
3874
- height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
3875
- }
3876
- `,Kc=(e,t)=>(0,n.treeItemTemplate)(e,t);class Xc extends s.TreeItem{}const Zc=void 0,Qc={expandCollapseGlyph:'\n <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" class="expand-collapse-glyph">\n <path d="M5.00001 12.3263C5.00124 12.5147 5.05566 12.699 5.15699 12.8578C5.25831 13.0167 5.40243 13.1437 5.57273 13.2242C5.74304 13.3047 5.9326 13.3354 6.11959 13.3128C6.30659 13.2902 6.4834 13.2152 6.62967 13.0965L10.8988 8.83532C11.0739 8.69473 11.2153 8.51658 11.3124 8.31402C11.4096 8.11146 11.46 7.88966 11.46 7.66499C11.46 7.44033 11.4096 7.21853 11.3124 7.01597C11.2153 6.81341 11.0739 6.63526 10.8988 6.49467L6.62967 2.22347C6.48274 2.10422 6.30501 2.02912 6.11712 2.00691C5.92923 1.9847 5.73889 2.01628 5.56823 2.09799C5.39757 2.17969 5.25358 2.30817 5.153 2.46849C5.05241 2.62882 4.99936 2.8144 5.00001 3.00369V12.3263Z"></path>\n </svg>'},Jc=Xc.compose(Object.assign({baseName:"tree-item",template:Kc,styles:qc,shadowOptions:Zc},Qc)),eu=(e,t)=>r.css`
3877
- ${(0,s.treeViewStyles)(e,t)}
3878
- `,tu=(e,t)=>(0,n.treeViewTemplate)(e,t);class ou extends n.TreeView{}const iu=void 0,au={},nu=ou.compose(Object.assign({baseName:"tree-view",template:tu,styles:eu,shadowOptions:iu},au)),su=(e,t)=>r.css`
3879
- .container {
3880
- position: relative;
3881
- width: 100%;
3882
- }
3883
-
3884
- .url-input {
3885
- position: relative;
3886
- width: 100%;
3887
- }
3888
-
3889
- .url-input-link {
3890
- position: absolute;
3891
- left: 10px;
3892
- top: 24px;
3893
- max-width: 100%;
3894
- white-space: nowrap;
3895
- overflow: hidden;
3896
- text-overflow: ellipsis;
3897
- }
3898
- `,ru=e=>r.html`
3899
- <div class="container" value=${e=>e.value}>
3900
- <${e}-text-field
3901
- class="url-input"
3902
- required
3903
- type="url"
3904
- :value=${e=>e.focused&&!e.readOnly?e.value:""}
3905
- @blur=${(e,t)=>{var o;return e.readOnly?"":e.saveUrl(null===(o=t.event)||void 0===o?void 0:o.target.value)}}
3906
- @focus=${e=>e.focus()}
3907
- :readOnly=${e=>e.readOnly}
3908
- ></${e}-text-field>
3909
- ${(0,r.when)((e=>e.readOnly||!e.focused),r.html`
3910
- <a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
3911
- `)}
3912
- </div>
3913
- `,lu=r.html`
3914
- ${e=>ru(F(e))}
3915
- `,du=void 0,cu={};class uu extends s.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,x.__decorate)([r.observable],uu.prototype,"value",void 0),(0,x.__decorate)([r.observable],uu.prototype,"focused",void 0);const hu=uu.compose(Object.assign({baseName:"url-input",template:lu,styles:su,shadowOptions:du},cu)),pu={foundationAccordion:p,foundationAccordionItem:y,foundationActionsMenu:L,foundationAnchor:M,foundationAnchoredRegion:V,foundationAvatar:X,foundationBadge:oe,foundationBanner:ce,foundationBreadcrumb:ge,foundationBreadcrumbItem:$e,foundationButton:Oe,foundationCalendar:Ne,foundationCard:Be,foundationCategorizedMultiselect:Xe,foundationCheckbox:ot,foundationCombobox:Ht,foundationConnectionIndicator:Vt,foundationDataGrid:Kt,foundationDataGridCell:eo,foundationDataGridRow:no,foundationDatePicker:Fo,foundationDesignSystemProvider:vi,foundationDialog:Ci,foundationDisclosure:Ti,foundationDivider:Ri,foundationDropdownMenu:Vi,foundationErrorBanner:qi,foundationErrorBoundary:la,foundationErrorDialog:ma,foundationFileUpload:Ha,foundationFilter:Ka,foundationFilterBar:nn,foundationFlexLayout:pn,foundationFlipper:yn,foundationFlyout:_n,foundationGridLayout:Rn,foundationGridLayoutItem:zn,foundationHorizontalScroll:Wn,foundationIcon:ds,foundationListbox:vs,foundationListboxOption:ws,foundationMenu:_s,foundationMenuItem:As,foundationModal:Ps,foundationMultiselect:qs,foundationNumberField:tr,foundationPopper:Gr,foundationProgress:Or,foundationProgressRing:Xr,foundationRadio:ol,foundationRadioGroup:ll,foundationSearchBar:wl,foundationSearchBarCombobox:_l,foundationSegmentedControl:Al,foundationSegmentedItem:Pl,foundationSelect:Ul,foundationSkeleton:Zl,foundationSlider:nd,foundationSliderLabel:ud,foundationSnackbar:wd,foundationStackingIcons:kd,foundationStepper:Ed,foundationStepperTab:Bd,foundationStepperTabPanel:Ud,foundationSwitch:Zd,foundationSystemHealthOverlay:Hr,foundationTab:ic,foundationTabPanel:dc,foundationTabs:vc,foundationTextArea:wc,foundationTextField:Dc,foundationToast:Ic,foundationToolbar:zc,foundationTooltip:Wc,foundationTreeItem:Jc,foundationTreeView:nu,foundationUrlInput:hu,register(e,...t){if(e)for(const o in this)"register"!==o&&this[o]().register(e,...t)}};class mu extends r.CSSDirective{constructor(e){super(),this.tokenMap=e}createTokenPartial(e,t){return r.cssPartial`${e}: ${t}`}createTokensCSS(){const e=[];for(const[t,o]of Object.entries(this.tokenMap))e.push(this.createTokenPartial(t,o).createCSS());return e}createCSS(){return this.createTokensCSS().join(";")}}let vu=class extends gt{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,x.__awaiter)(this,void 0,void 0,(function*(){e.connectedCallback.call(this),this.dataGrid=this.parentElement,this.dataGrid&&this.resourceName&&this.connect.isConnected&&this.fetchGenesisData()}))}getColumnDefs(e){return null==e?void 0:e.flatMap((e=>this.fields&&!this.fields.includes(e.name)?[]:{columnDataKey:e.name}))}clearData(){ae.debug("clearData - Method not implemented.")}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values()),o=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=o,this.dataGrid.rowsData=t}handleStreamInserts(e){ae.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ae.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ae.debug("handleStreamUpdates - Method not implemented.")}};vu=(0,x.__decorate)([(0,r.customElement)({name:"data-grid-datasource"})],vu);const gu=r.html`
3916
- <template ${(0,r.ref)("notificationListener")}>
3917
- <slot></slot>
3918
- </template>
3919
- `;var bu;!function(e){e.NOTIFICATION_EVENT="notification-event"}(bu||(bu={}));const fu={mode:"open",delegatesFocus:!0};class yu extends n.FoundationElement{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});var t;return(0,x.__awaiter)(this,void 0,void 0,(function*(){if(e.connectedCallback.call(this),this.addEventListener(bu.NOTIFICATION_EVENT,(e=>{e.stopImmediatePropagation(),_a(e.detail,this.tagName,this.notificationListener)})),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void ae.debug(`Genesis Datasource init failed for ${this.resourceName}`);this.dataSub=null===(t=this.datasource.stream)||void 0===t?void 0:t.subscribe((e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,ct.d)(e))}))}}))}disconnectedCallback(){var e,t;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.datasource)||void 0===t||t.destroy(),delete this.datasource}handleStreamUpdate(e){const t=e.inserts;t.length>0&&t.forEach((e=>{this.showNotificationToast(e)}))}showNotificationToast(e){const{HEADER:t,MESSAGE:o,NOTIFY_SEVERITY:i}=e,a=e.CREATED_AT?new Date(e.CREATED_AT):void 0,n=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0;let s=[];this.toastButtons&&this.toastButtons.length>0&&(s=this.toastButtons.filter((({condition:t})=>!t||t({details:e}))));((e,t,o)=>{if(!e.title)throw new Error("Title is required");if(!e.body)throw new Error("Missing required param 'body'");let i={title:e.title,body:e.body},a={};e.createdAt&&(i=Object.assign({createdAt:e.createdAt},i)),e.logLevel in ie.LogLevel&&(i=Object.assign({logLevel:e.logLevel},i)),e.toast&&(a=Object.assign({toast:e.toast},a),i=Object.assign({config:a},i)),ka(i,t,o)})({title:t,body:o,createdAt:a,toast:{details:e,type:null==i?void 0:i.toLowerCase(),buttons:s,autoClose:void 0!==n?!!n:!!this.closeTimeout,closeTimeout:null!=n?n:this.closeTimeout}},this.tagName)}}(0,x.__decorate)([r.observable],yu.prototype,"notificationListener",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"resource-name"})],yu.prototype,"resourceName",void 0),(0,x.__decorate)([(0,r.attr)({attribute:"close-timeout",converter:r.nullableNumberConverter})],yu.prototype,"closeTimeout",void 0),(0,x.__decorate)([r.observable],yu.prototype,"toastButtons",void 0),(0,x.__decorate)([pt.yW],yu.prototype,"datasource",void 0);const xu=yu.compose({baseName:"notification-listener",template:gu,shadowOptions:fu}),wu=(e,t)=>o=>{const i="function"==typeof t?t:(a=t,e=>Object.assign(Object.assign({},a),e));var a;return r.FASTElement.define(class extends e{},i(o))};function $u(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=r.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}const Su=e=>!e.navId||"header"===e.navId||"side-nav"===e.navId,Cu=10;function ku(e,t=Su,o=Cu){const i=[];return e.filter((e=>e.navItems&&e.navItems.some(t))).forEach(((e,a)=>{e.navItems.filter(t).map(((t,i)=>{var n,s,r,l;const d=null!==(n=t.placementIndex)&&void 0!==n?n:a*o+i;return Object.assign(Object.assign({},t),{navId:null!==(s=t.navId)&&void 0!==s?s:"header",placementIndex:d,routePath:null!==(r=t.routePath)&&void 0!==r?r:e.path,routeName:null!==(l=t.routeName)&&void 0!==l?l:e.name})})).forEach((e=>i.push(e)))})),i.sort(((e,t)=>e.placementIndex-t.placementIndex))}var Fu,_u=o(63734);!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(Fu||(Fu={}));class Ou{constructor(e){this.analytics=(0,_u.Ay)(e)}trackEvent(e,t){va.v.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`),this.analytics.track(e,t)}}const Du=n.DI.createInterface((e=>e.singleton(Ou)));var Tu=o(3479),Lu=o(80751),Eu=o(98647);let Au=class extends(Tu.Ix.from(r.FASTElement)){connectedCallback(){super.connectedCallback(),r.DOM.queueUpdate((()=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.$router.config=this.config}))))}};Au=(0,x.__decorate)([(0,r.customElement)({name:"foundation-router"})],Au);class Nu extends Lu.s{constructor(){super(...arguments),this.definitions=[]}map(...e){this.definitions=[...e,...this.definitions],super.map(...e)}}(0,x.__decorate)([r.observable],Nu.prototype,"definitions",void 0);class Iu extends Eu.Y{constructor(){super(...arguments),this.routes=new Nu(this)}getNavItems(e=Su){return ku(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,x.__awaiter)(this,void 0,void 0,(function*(){this.analytics.trackEvent(Fu.routeChanged,{path:e.route.endpoint.path})}))})}construct(e){return this.container.get(e)}}(0,x.__decorate)([n.Container],Iu.prototype,"container",void 0),(0,x.__decorate)([Du],Iu.prototype,"analytics",void 0),(0,x.__decorate)([ir.KJ],Iu.prototype,"user",void 0);const Ru=()=>Tr().register(pu)}}]);
3920
- //# sourceMappingURL=531.1a80c82eaf0024eebec3fa0a0029e525.js.map