@genesislcap/design-system-configurator 14.500.0 → 14.501.0

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.
@@ -1,6 +1,6 @@
1
- (self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[197],{8420(e,t,i){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),o={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}};return i.default.locale(o,null,!0),o}(i(94343))},58915(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|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,n=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,a={},r=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},d=[/[+-]\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),i=60*t[1]+(+t[2]||0);return 0===i?0:"+"===t[0]?-i:i}(e)}],c=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var i,o=a.meridiem;if(o){for(var n=1;n<=24;n+=1)if(e.indexOf(o(n,0,t))>-1){i=n>12;break}}else i=e===(t?"pm":"PM");return i},h={A:[s,function(e){this.afternoon=u(e,!1)}],a:[s,function(e){this.afternoon=u(e,!0)}],Q:[i,function(e){this.month=3*(e-1)+1}],S:[i,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,l("seconds")],ss:[n,l("seconds")],m:[n,l("minutes")],mm:[n,l("minutes")],H:[n,l("hours")],h:[n,l("hours")],HH:[n,l("hours")],hh:[n,l("hours")],D:[n,l("day")],DD:[o,l("day")],Do:[s,function(e){var t=a.ordinal,i=e.match(/\d+/);if(this.day=i[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],w:[n,l("week")],ww:[o,l("week")],M:[n,l("month")],MM:[o,l("month")],MMM:[s,function(e){var t=c("months"),i=(c("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(i<1)throw new Error;this.month=i%12||i}],MMMM:[s,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[o,function(e){this.year=r(e)}],YYYY:[/\d{4}/,l("year")],Z:d,ZZ:d};function p(i){var o,n;o=i,n=a&&a.formats;for(var s=(i=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,i,o){var s=o&&o.toUpperCase();return i||n[o]||e[o]||n[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,i){return t||i.slice(1)})})).match(t),r=s.length,l=0;l<r;l+=1){var d=s[l],c=h[d],u=c&&c[0],p=c&&c[1];s[l]=p?{regex:u,parser:p}:d.replace(/^\[|\]$/g,"")}return function(e){for(var t={},i=0,o=0;i<r;i+=1){var n=s[i];if("string"==typeof n)o+=n.length;else{var a=n.regex,l=n.parser,d=e.slice(o),c=a.exec(d)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var i=e.hours;t?i<12&&(e.hours+=12):12===i&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,i){i.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(r=e.parseTwoDigitYear);var o=t.prototype,n=o.parse;o.parse=function(e){var t=e.date,o=e.utc,s=e.args;this.$u=o;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]),a=this.$locale(),!l&&u&&(a=i.Ls[u]),this.$d=function(e,t,i,o){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var n=p(t)(e),s=n.year,a=n.month,r=n.day,l=n.hours,d=n.minutes,c=n.seconds,u=n.milliseconds,h=n.zone,m=n.week,g=new Date,v=r||(s||a?1:g.getDate()),f=s||g.getFullYear(),b=0;s&&!a||(b=a>0?a-1:g.getMonth());var y,w=l||0,C=d||0,x=c||0,$=u||0;return h?new Date(Date.UTC(f,b,v,w,C,x,$+60*h.offset*1e3)):i?new Date(Date.UTC(f,b,v,w,C,x,$)):(y=new Date(f,b,v,w,C,x,$),m&&(y=o(y).week(m).toDate()),y)}catch(e){return new Date("")}}(t,r,o,i),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),c&&t!=this.format(r)&&(this.$d=new Date("")),a={}}else if(r instanceof Array)for(var h=r.length,m=1;m<=h;m+=1){s[1]=r[m-1];var g=i.apply(this,s);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===h&&(this.$d=new Date(""))}else n.call(this,e)}}}()},33839(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(e){e.exports=function(){"use strict";return function(e,t,i){var o=t.prototype,n=function(e){return e&&(e.indexOf?e:e.s)},s=function(e,t,i,o,s){var a=e.name?e:e.$locale(),r=n(a[t]),l=n(a[i]),d=r||l.map(function(e){return e.slice(0,o)});if(!s)return d;var c=a.weekStart;return d.map(function(e,t){return d[(t+(c||0))%7]})},a=function(){return i.Ls[i.locale()]},r=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,i){return t||i.slice(1)})}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):s(e,"months")},monthsShort:function(t){return t?t.format("MMM"):s(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):s(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):s(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):s(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return r(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return l.bind(this)()},i.localeData=function(){var e=a();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(t){return r(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},i.months=function(){return s(a(),"months")},i.monthsShort=function(){return s(a(),"monthsShort","months",3)},i.weekdays=function(e){return s(a(),"weekdays",null,null,e)},i.weekdaysShort=function(e){return s(a(),"weekdaysShort","weekdays",3,e)},i.weekdaysMin=function(e){return s(a(),"weekdaysMin","weekdays",2,e)}}}()},49916(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,i,o){var n=i.prototype,s=n.format;o.en.formats=e,n.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var i=this.$locale().formats,o=function(t,i){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,o,n){var s=n&&n.toUpperCase();return o||i[n]||e[n]||i[s].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,i){return t||i.slice(1)})})}(t,void 0===i?{}:i);return s.call(this,o)}}}()},57565(e){e.exports=a,a.default=a,a.stable=c,a.stableStringify=c;var t="[...]",i="[Circular]",o=[],n=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function a(e,t,i,a){var r;void 0===a&&(a=s()),l(e,"",0,[],void 0,0,a);try{r=0===n.length?JSON.stringify(e,t,i):JSON.stringify(e,h(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var d=o.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return r}function r(e,t,i,s){var a=Object.getOwnPropertyDescriptor(s,i);void 0!==a.get?a.configurable?(Object.defineProperty(s,i,{value:e}),o.push([s,i,t,a])):n.push([t,i,e]):(s[i]=e,o.push([s,i,t]))}function l(e,o,n,s,a,d,c){var u;if(d+=1,"object"==typeof e&&null!==e){for(u=0;u<s.length;u++)if(s[u]===e)return void r(i,e,o,a);if(void 0!==c.depthLimit&&d>c.depthLimit)return void r(t,e,o,a);if(void 0!==c.edgesLimit&&n+1>c.edgesLimit)return void r(t,e,o,a);if(s.push(e),Array.isArray(e))for(u=0;u<e.length;u++)l(e[u],u,u,s,e,d,c);else{var h=Object.keys(e);for(u=0;u<h.length;u++){var p=h[u];l(e[p],p,u,s,e,d,c)}}s.pop()}}function d(e,t){return e<t?-1:e>t?1:0}function c(e,t,i,a){void 0===a&&(a=s());var r,l=u(e,"",0,[],void 0,0,a)||e;try{r=0===n.length?JSON.stringify(l,t,i):JSON.stringify(l,h(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var d=o.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return r}function u(e,n,s,a,l,c,h){var p;if(c+=1,"object"==typeof e&&null!==e){for(p=0;p<a.length;p++)if(a[p]===e)return void r(i,e,n,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==h.depthLimit&&c>h.depthLimit)return void r(t,e,n,l);if(void 0!==h.edgesLimit&&s+1>h.edgesLimit)return void r(t,e,n,l);if(a.push(e),Array.isArray(e))for(p=0;p<e.length;p++)u(e[p],p,p,a,e,c,h);else{var m={},g=Object.keys(e).sort(d);for(p=0;p<g.length;p++){var v=g[p];u(e[v],v,p,a,e,c,h),m[v]=e[v]}if(void 0===l)return m;o.push([l,n,e]),l[n]=m}a.pop()}}function h(e){return e=void 0!==e?e:function(e,t){return t},function(t,i){if(n.length>0)for(var o=0;o<n.length;o++){var s=n[o];if(s[1]===t&&s[0]===i){i=s[2],n.splice(o,1);break}}return e.call(this,t,i)}}},93678(e){"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){const i=[],o=[],n=new Map;if(n.set(Date,e=>new Date(e)),n.set(Map,(e,t)=>new Map(a(Array.from(e),t))),n.set(Set,(e,t)=>new Set(a(Array.from(e),t))),e.constructorHandlers)for(const t of e.constructorHandlers)n.set(t[0],t[1]);let s=null;return e.proto?l:r;function a(e,a){const r=Object.keys(e),l=new Array(r.length);for(let d=0;d<r.length;d++){const c=r[d],u=e[c];if("object"!=typeof u||null===u)l[c]=u;else if(u.constructor!==Object&&(s=n.get(u.constructor)))l[c]=s(u,a);else if(ArrayBuffer.isView(u))l[c]=t(u);else{const e=i.indexOf(u);l[c]=-1!==e?o[e]:a(u)}}return l}function r(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return a(e,r);if(e.constructor!==Object&&(s=n.get(e.constructor)))return s(e,r);const l={};i.push(e),o.push(l);for(const a in e){if(!1===Object.hasOwnProperty.call(e,a))continue;const d=e[a];if("object"!=typeof d||null===d)l[a]=d;else if(d.constructor!==Object&&(s=n.get(d.constructor)))l[a]=s(d,r);else if(ArrayBuffer.isView(d))l[a]=t(d);else{const e=i.indexOf(d);l[a]=-1!==e?o[e]:r(d)}}return i.pop(),o.pop(),l}function l(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return a(e,l);if(e.constructor!==Object&&(s=n.get(e.constructor)))return s(e,l);const r={};i.push(e),o.push(r);for(const a in e){const d=e[a];if("object"!=typeof d||null===d)r[a]=d;else if(d.constructor!==Object&&(s=n.get(d.constructor)))r[a]=s(d,l);else if(ArrayBuffer.isView(d))r[a]=t(d);else{const e=i.indexOf(d);r[a]=-1!==e?o[e]:l(d)}}return i.pop(),o.pop(),r}}(e);const i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(n(Array.from(e),t))),i.set(Set,(e,t)=>new Set(n(Array.from(e),t))),e.constructorHandlers)for(const t of e.constructorHandlers)i.set(t[0],t[1]);let o=null;return e.proto?function e(s){if("object"!=typeof s||null===s)return s;if(Array.isArray(s))return n(s,e);if(s.constructor!==Object&&(o=i.get(s.constructor)))return o(s,e);const a={};for(const n in s){const r=s[n];"object"!=typeof r||null===r?a[n]=r:r.constructor!==Object&&(o=i.get(r.constructor))?a[n]=o(r,e):ArrayBuffer.isView(r)?a[n]=t(r):a[n]=e(r)}return a}:function e(s){if("object"!=typeof s||null===s)return s;if(Array.isArray(s))return n(s,e);if(s.constructor!==Object&&(o=i.get(s.constructor)))return o(s,e);const a={};for(const n in s){if(!1===Object.hasOwnProperty.call(s,n))continue;const r=s[n];"object"!=typeof r||null===r?a[n]=r:r.constructor!==Object&&(o=i.get(r.constructor))?a[n]=o(r,e):ArrayBuffer.isView(r)?a[n]=t(r):a[n]=e(r)}return a};function n(e,n){const s=Object.keys(e),a=new Array(s.length);for(let r=0;r<s.length;r++){const l=s[r],d=e[l];"object"!=typeof d||null===d?a[l]=d:d.constructor!==Object&&(o=i.get(d.constructor))?a[l]=o(d,n):ArrayBuffer.isView(d)?a[l]=t(d):a[l]=n(d)}return a}}},31274(e,t,i){"use strict";i.d(t,{u:()=>n});var o=i(60416);const n=(e,t,i)=>{(0,o.u_)(e);const n=t.split("-")[0],s=document.createElement(`${n}-dialog`),a=i?(e=>{let t=e.querySelector("#dialog-container");return t||(t=document.createElement("div"),t.setAttribute("id","dialog-container"),t.style.position="relative",e.appendChild(t)),t})(i):(0,o.jE)("dialog-container",t);a.appendChild(s),s.notification=e,s.show()}},60416(e,t,i){"use strict";i.d(t,{cL:()=>h,jE:()=>u,uP:()=>d,u_:()=>c});var o=i(66506),n=i(52945),s=i(68424);const a=(0,o.createLogger)("foundation-notifications");let r=null;const l=new Map,d=e=>{var t,i;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(i=null==e?void 0:e.body)&&void 0!==i?i:"Something went wrong"}`},c=e=>{var t,i;a.log({message:d(e),level:(t=e,(null==t?void 0:t.logLevel)||(null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.logLevel)||o.LogLevels.debug)})},u=(e,t)=>{let i=document.querySelector(`#${e}`);if(!i)if(l.has(e))i=l.get(e);else{const t=(0,n.fI)(document).find(t=>t.id===e);t&&(i=t,l.set(e,t))}if(!i){i=document.createElement("div"),i.setAttribute("id",e),i.style.zIndex="9999";const{element:t,prefix:o}=(0,s.DW)(document.body,"rapid");if(t)t.appendChild(i),r=t;else if(r)r.appendChild(i);else{const e=document.createElement(`${o}-design-system-provider`);e.appendChild(i),document.body.appendChild(e),r=e}}return i},h=e=>{for(var t,i;e&&!(e instanceof ShadowRoot);){const o=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(o)return o.style.position="relative",o;e=null===(i=null==e?void 0:e.getRootNode())||void 0===i?void 0:i.host}return p()},p=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e}},48197(e,t,i){"use strict";i.r(t),i.d(t,{Accordion:()=>u,AccordionItem:()=>f,ActionsMenu:()=>R,AffixMixin:()=>yl,AiCriteriaSearch:()=>$e,AiIndicator:()=>De,Anchor:()=>Le,AnchoredRegion:()=>Pe,Avatar:()=>Ye,BASE_EDITABLE_ELEMENT_SELECTORS:()=>sf,Badge:()=>Qe,Banner:()=>lt,BaseDatasource:()=>gi,BaseFileComponent:()=>Hs,Breadcrumb:()=>ht,BreadcrumbItem:()=>bt,Button:()=>St,COMBO_INPUT_MIN_LENGTH:()=>bu,CRON_LENGTH:()=>mc,CSSVarsTokenMapper:()=>Om,Calendar:()=>It,Card:()=>Mt,CategorizedMultiselect:()=>Wt,Checkbox:()=>Jt,Combobox:()=>$i,ConnectionIndicator:()=>Ii,CronBuilderEvents:()=>wc,DATETIME_OPERATORS:()=>ee,DATE_OPERATORS:()=>Z,DATE_PICKER_VALUE_FORMAT:()=>fo,DEFUALT_FILTER_BAR_COLUMNS:()=>Sa,DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS:()=>rf,DataGrid:()=>Ni,DataGridCell:()=>Pi,DataGridDatasource:()=>Tm,DataGridRow:()=>Gi,DateOrDay:()=>lc,DatePicker:()=>So,DefaultRouter:()=>Rv,DesignTokensObservable:()=>Ko,Dialog:()=>An,DialogElement:()=>Rn,Disclosure:()=>Mn,Divider:()=>Bn,DropdownMenu:()=>Jn,EnvironmentIndicator:()=>us,ErrorBanner:()=>vs,ErrorBoundary:()=>Is,ErrorBoundaryEvent:()=>bs,ErrorDialog:()=>Ms,ExpressionBuilderConfig:()=>s,ExpressionBuilderCore:()=>jg,FaPrefixFromStyle:()=>Or,FileReader:()=>Vs,FileUpload:()=>oa,Filter:()=>va,FilterBar:()=>Ea,FilterEvents:()=>ga,FlexLayout:()=>La,FlexMediaQueriesEnum:()=>Ta,Flipper:()=>_a,Flyout:()=>ja,FoundationDesignSystemProvider:()=>Cn,FoundationExpressionBuilder:()=>Ig,FoundationRouteCollection:()=>jv,FoundationRouteNav:()=>Uv,FoundationRouter:()=>Kv,FoundationRouterConfiguration:()=>Yv,FoundationRuleExpressionBuilder:()=>rv,FoundationValueExpressionBuilder:()=>pv,GenerateNavigationPathEventType:()=>qv,GridLayout:()=>ir,GridLayoutItem:()=>rr,GridMediaQueriesEnum:()=>Ka,HorizontalScroll:()=>ur,INPUT_MIN_LENGTH:()=>fu,Icon:()=>Dr,Listbox:()=>Lr,ListboxOption:()=>Pr,MAX_DAYS:()=>pc,MAX_HOURS:()=>vc,MAX_MINS_SEC:()=>fc,MAX_MINUTE_RECURRENCE:()=>yc,MAX_MONTHS:()=>hc,MAX_WEEK_DAYS:()=>gc,MAX_WEEK_NUMBER:()=>bc,Menu:()=>jr,MenuItem:()=>Jr,Modal:()=>sl,Multiselect:()=>ml,MultiselectDatasource:()=>dl,NUMERIC_OPERATORS:()=>Q,NavigateToEventType:()=>Wv,NotificationListener:()=>vv,NumberField:()=>Hl,OPERATOR_DISPLAY_LABEL:()=>te,Optgroup:()=>Gl,OptionsDatasource:()=>bi,Popper:()=>Id,Position:()=>zt,Progress:()=>md,ProgressRing:()=>Md,Radio:()=>Bd,RadioGroup:()=>qd,RecurrenceType:()=>ac,Router:()=>Iv,RuleExpression:()=>Yg,SCROLL_TIMEOUT:()=>vu,SECTION_NAVIGATOR_EVENTS:()=>Fu,SNACKBAR_CLOSE_TIMEOUT:()=>kh,SNACKBAR_EVENTS_NAMES:()=>Dh,SNACKBAR_TYPES:()=>Th,SNACKBAR_TYPE_DEFAULT:()=>Oh,STRING_OPERATORS:()=>J,Scheduler:()=>tc,SchedulerCronBuilder:()=>eu,SchedulerTimezone:()=>ru,SearchBar:()=>wu,SearchBarCombobox:()=>Tu,SectionNavigator:()=>Hu,SegmentedControl:()=>Gu,SegmentedItem:()=>Xu,Select:()=>ih,Skeleton:()=>lh,Slider:()=>vh,SliderLabel:()=>xh,Snackbar:()=>Nh,StackingIcons:()=>Hh,StatusPill:()=>Vh,Stepper:()=>Zv,StepperTab:()=>qh,StepperTabPanel:()=>Zh,Switch:()=>sp,SystemHealthOverlay:()=>xd,Tab:()=>up,TabPanel:()=>fp,Tabs:()=>$p,TextArea:()=>Dp,TextField:()=>_p,Toast:()=>Yp,Toolbar:()=>Xp,Tooltip:()=>im,TreeItem:()=>lm,TreeView:()=>mm,UrlInput:()=>$m,WeekType:()=>rc,accentFillActive:()=>r.accentFillActive,accentFillActiveDelta:()=>r.accentFillActiveDelta,accentFillFocus:()=>r.accentFillFocus,accentFillFocusDelta:()=>r.accentFillFocusDelta,accentFillHover:()=>r.accentFillHover,accentFillHoverDelta:()=>r.accentFillHoverDelta,accentFillRest:()=>r.accentFillRest,accentFillRestDelta:()=>r.accentFillRestDelta,accentForegroundActive:()=>r.accentForegroundActive,accentForegroundActiveDelta:()=>r.accentForegroundActiveDelta,accentForegroundFocus:()=>r.accentForegroundFocus,accentForegroundFocusDelta:()=>r.accentForegroundFocusDelta,accentForegroundHover:()=>r.accentForegroundHover,accentForegroundHoverDelta:()=>r.accentForegroundHoverDelta,accentForegroundRest:()=>r.accentForegroundRest,accentForegroundRestDelta:()=>r.accentForegroundRestDelta,accentPalette:()=>r.accentPalette,accentPaletteValue:()=>cn,actionsMenuBaseStyles:()=>$,applyCustomTokens:()=>tn,baseComponents:()=>Em,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseLayerLuminance:()=>r.baseLayerLuminance,baseLayerLuminanceValue:()=>hn,black:()=>ko,bodyFont:()=>r.bodyFont,buildEditableElementSelector:()=>lf,categorizedMultiselectStyles:()=>Bt,categorizedMultiselectTemplate:()=>Gt,clientOperators:()=>qg,closeIcon:()=>la,configureDesignSystem:()=>dn,configureEnvironmentIndicator:()=>ds,controlCornerRadius:()=>r.controlCornerRadius,controlCornerRadiusValue:()=>mn,createDesignSystemProxy:()=>bd,createFormData:()=>Xs,crossIcon:()=>hu,daysOfWeek:()=>dc,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>y,defaultAiCriteriaSearchConfig:()=>Ee,defaultAnchorConfig:()=>Fe,defaultAnchoredRegionConfig:()=>Ue,defaultAvatarConfig:()=>qe,defaultBadgeConfig:()=>et,defaultBreadcrumbConfig:()=>mt,defaultBreadcrumbItemConfig:()=>wt,defaultButtonConfig:()=>Ot,defaultCalendarConfig:()=>At,defaultCardConfig:()=>Ht,defaultCategorizedMultiselectConfig:()=>Yt,defaultCheckboxConfig:()=>Zt,defaultComboboxConfig:()=>Ei,defaultConfig:()=>oc,defaultCronBuilderConfig:()=>iu,defaultDataGridCellConfig:()=>Ui,defaultDataGridConfig:()=>Mi,defaultDataGridRowConfig:()=>Yi,defaultDatePickerConfig:()=>$o,defaultDialogConfig:()=>In,defaultDisclosureConfig:()=>Hn,defaultDividerConfig:()=>Gn,defaultFileUploadConfig:()=>sa,defaultFillColor:()=>Io,defaultFlexLayoutConfig:()=>Aa,defaultFlipperConfig:()=>Pa,defaultFlyoutConfig:()=>Wa,defaultGridLayoutConfig:()=>er,defaultGridLayoutItemConfig:()=>ar,defaultHorizontalScrollConfig:()=>pr,defaultIconConfig:()=>Er,defaultListboxConfig:()=>Fr,defaultListboxOptionConfig:()=>Ur,defaultMenuConfig:()=>Wr,defaultMenuItemConfig:()=>Zr,defaultModalConfig:()=>nl,defaultMultiselectConfig:()=>pl,defaultNavItemPredicate:()=>Bv,defaultNeutralForegroundContrast:()=>Vo,defaultNumberFieldConfig:()=>zl,defaultPlacementIndexPadding:()=>Vv,defaultProgressConfig:()=>vd,defaultProgressRingConfig:()=>Hd,defaultRadioConfig:()=>Gd,defaultRadioGroupConfig:()=>Xd,defaultSearchBarComboboxConfig:()=>Du,defaultSearchBarConfig:()=>xu,defaultSectionNavigatorConfig:()=>zu,defaultSegmentedControlConfig:()=>Yu,defaultSegmentedItemConfig:()=>Qu,defaultSelectConfig:()=>nh,defaultSkeletonConfig:()=>ch,defaultSliderConfig:()=>bh,defaultSliderLabelConfig:()=>Sh,defaultStepperConfig:()=>tf,defaultStepperTabConfig:()=>Xh,defaultStepperTabPanelConfig:()=>tp,defaultSwitchConfig:()=>rp,defaultSystemHealthOverlayConfig:()=>Od,defaultTabConfig:()=>pp,defaultTabPanelConfig:()=>yp,defaultTabsConfig:()=>Ep,defaultTextAreaConfig:()=>Rp,defaultTextFieldConfig:()=>Pp,defaultTimezoneConfig:()=>du,defaultToastConfig:()=>jp,defaultToolbarConfig:()=>Qp,defaultTooltipConfig:()=>nm,defaultTreeItemConfig:()=>cm,defaultTreeViewConfig:()=>vm,defaultUrlInputConfig:()=>xm,defineFactory:()=>bv,density:()=>r.density,designToken:()=>Qo,designTokensMap:()=>rn,designUnit:()=>r.designUnit,designUnitValue:()=>gn,direction:()=>r.direction,directionValue:()=>pn,disabledOpacity:()=>r.disabledOpacity,downloadFile:()=>Qs,dropdownMenuBaseStyles:()=>Yn,environmentIndicatorStyles:()=>es,errorDialogTemplate:()=>Ns,extractMenuItems:()=>qn,faSizeValueDefault:()=>Tr,faSizeValues:()=>kr,fileReaderStyles:()=>Ps,fileReaderTemplate:()=>Bs,fillColor:()=>r.fillColor,filterBarTemplate:()=>xa,findParentRouter:()=>Fv,findRouter:()=>Nv,findTopLevelRouter:()=>Mv,flyoutAnimationTime:()=>Ua,focusStrokeInner:()=>r.focusStrokeInner,focusStrokeOuter:()=>r.focusStrokeOuter,focusStrokeWidth:()=>r.focusStrokeWidth,foregroundOnAccentActive:()=>r.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>r.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>r.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>r.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>r.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>r.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>r.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>r.foregroundOnAccentRestLarge,formatTimeForCountDown:()=>Bh,formatToPlaceholder:()=>go,foundationAccordion:()=>m,foundationAccordionItem:()=>w,foundationAccordionItemShadowOptions:()=>b,foundationAccordionItemStyles:()=>g,foundationAccordionItemTemplate:()=>v,foundationAccordionShadowOptions:()=>h,foundationAccordionStyles:()=>d,foundationAccordionTemplate:()=>c,foundationActionsMenu:()=>A,foundationActionsMenuStyles:()=>S,foundationActionsMenuTemplate:()=>I,foundationAiCriteriaSearch:()=>Oe,foundationAiCriteriaSearchShadowOptions:()=>Se,foundationAiCriteriaSearchStyles:()=>_,foundationAiCriteriaSearchTemplate:()=>B,foundationAiIndicator:()=>Ie,foundationAiIndicatorStyles:()=>Te,foundationAiIndicatorTemplate:()=>ke,foundationAnchor:()=>Me,foundationAnchorShadowOptions:()=>Ne,foundationAnchorStyles:()=>Re,foundationAnchorTemplate:()=>Ae,foundationAnchoredRegion:()=>Be,foundationAnchoredRegionShadowOptions:()=>ze,foundationAnchoredRegionStyles:()=>He,foundationAnchoredRegionTemplate:()=>_e,foundationAvatar:()=>Ke,foundationAvatarShadowOptions:()=>We,foundationAvatarStyles:()=>Ve,foundationAvatarTemplate:()=>Ge,foundationBadge:()=>tt,foundationBadgeShadowOptions:()=>Ze,foundationBadgeStyles:()=>Xe,foundationBadgeTemplate:()=>Je,foundationBanner:()=>dt,foundationBannerShadowOptions:()=>rt,foundationBannerStyles:()=>nt,foundationBannerTemplate:()=>at,foundationBreadcrumb:()=>gt,foundationBreadcrumbItem:()=>Ct,foundationBreadcrumbItemShadowOptions:()=>yt,foundationBreadcrumbItemStyles:()=>vt,foundationBreadcrumbItemTemplate:()=>ft,foundationBreadcrumbShadowOptions:()=>pt,foundationBreadcrumbStyles:()=>ct,foundationBreadcrumbTemplate:()=>ut,foundationButton:()=>Tt,foundationButtonShadowOptions:()=>Et,foundationButtonStyles:()=>xt,foundationButtonTemplate:()=>$t,foundationCalendar:()=>Lt,foundationCalendarShadowOptions:()=>Rt,foundationCalendarStyles:()=>kt,foundationCalendarTemplate:()=>Dt,foundationCard:()=>Pt,foundationCardShadowOptions:()=>_t,foundationCardStyles:()=>Nt,foundationCardTemplate:()=>Ft,foundationCategorizedMultiselect:()=>qt,foundationCategorizedMultiselectShadowOptions:()=>jt,foundationCheckbox:()=>ei,foundationCheckboxShadowOptions:()=>Qt,foundationCheckboxStyles:()=>Kt,foundationCheckboxTemplate:()=>Xt,foundationCombobox:()=>Oi,foundationComboboxShadowOptions:()=>Si,foundationComboboxStyles:()=>yi,foundationComboboxTemplate:()=>wi,foundationConnectionIndicator:()=>Ri,foundationConnectionIndicatorStyles:()=>ki,foundationConnectionIndicatorTemplate:()=>Di,foundationDataGrid:()=>_i,foundationDataGridCell:()=>Bi,foundationDataGridCellShadowOptions:()=>zi,foundationDataGridCellStyles:()=>Hi,foundationDataGridCellTemplate:()=>a.dataGridCellTemplate,foundationDataGridRow:()=>Wi,foundationDataGridRowShadowOptions:()=>ji,foundationDataGridRowStyles:()=>Vi,foundationDataGridRowTemplate:()=>a.dataGridRowTemplate,foundationDataGridShadowOptions:()=>Fi,foundationDataGridStyles:()=>Ai,foundationDataGridTemplate:()=>Li,foundationDatePicker:()=>Eo,foundationDatePickerShadowOptions:()=>xo,foundationDatePickerStyles:()=>ro,foundationDatePickerTemplate:()=>uo,foundationDesignSystemProvider:()=>xn,foundationDialog:()=>Ln,foundationDialogShadowOptions:()=>Dn,foundationDialogStyles:()=>Sn,foundationDialogTemplate:()=>kn,foundationDisclosure:()=>Pn,foundationDisclosureShadowOptions:()=>_n,foundationDisclosureStyles:()=>Nn,foundationDisclosureTemplate:()=>Fn,foundationDivider:()=>jn,foundationDividerShadowOptions:()=>Vn,foundationDividerStyles:()=>zn,foundationDividerTemplate:()=>Un,foundationDropdownMenu:()=>Qn,foundationDropdownMenuStyles:()=>Wn,foundationDropdownMenuTemplate:()=>Xn,foundationEnvironmentIndicator:()=>hs,foundationEnvironmentIndicatorTemplate:()=>ts,foundationErrorBanner:()=>fs,foundationErrorBannerShadowOptions:()=>gs,foundationErrorBannerTemplate:()=>ms,foundationErrorBoundary:()=>Rs,foundationErrorBoundaryShadowOptions:()=>Ds,foundationErrorBoundaryTemplate:()=>ks,foundationErrorDialog:()=>_s,foundationErrorDialogShadowOptions:()=>Fs,foundationErrorDialogStyles:()=>As,foundationFileReader:()=>Gs,foundationFileReaderStyles:()=>zs,foundationFileUpload:()=>aa,foundationFileUploadShadowOptions:()=>na,foundationFileUploadStyles:()=>Ws,foundationFileUploadTemplate:()=>Ks,foundationFilter:()=>fa,foundationFilterBar:()=>Oa,foundationFilterBarStyles:()=>ya,foundationFilterBarTemplate:()=>$a,foundationFilterStyles:()=>ra,foundationFilterTemplate:()=>ma,foundationFlexLayout:()=>Na,foundationFlexLayoutShadowOptions:()=>Ra,foundationFlexLayoutStyles:()=>Da,foundationFlexLayoutTemplate:()=>Ia,foundationFlipper:()=>za,foundationFlipperShadowOptions:()=>Ha,foundationFlipperStyles:()=>Fa,foundationFlipperTemplate:()=>Ma,foundationFlyout:()=>qa,foundationFlyoutShadowOptions:()=>Ya,foundationFlyoutStyles:()=>Ba,foundationFlyoutTemplate:()=>Ga,foundationGridLayout:()=>or,foundationGridLayoutItem:()=>lr,foundationGridLayoutItemShadowOptions:()=>sr,foundationGridLayoutItemTemplate:()=>nr,foundationGridLayoutShadowOptions:()=>Za,foundationGridLayoutStyles:()=>Ja,foundationGridLayoutTemplate:()=>Qa,foundationHorizontalScroll:()=>mr,foundationHorizontalScrollShadowOptions:()=>hr,foundationHorizontalScrollStyles:()=>dr,foundationHorizontalScrollTemplate:()=>cr,foundationIcon:()=>Ir,foundationIconShadowOptions:()=>Sr,foundationIconStyles:()=>Cr,foundationIconTemplate:()=>$r,foundationListbox:()=>Mr,foundationListboxOption:()=>Br,foundationListboxOptionShadowOptions:()=>zr,foundationListboxOptionStyles:()=>_r,foundationListboxOptionTemplate:()=>Hr,foundationListboxShadowOptions:()=>Nr,foundationListboxStyles:()=>Rr,foundationListboxTemplate:()=>Ar,foundationMenu:()=>qr,foundationMenuItem:()=>el,foundationMenuItemShadowOptions:()=>Qr,foundationMenuItemStyles:()=>Kr,foundationMenuItemTemplate:()=>Xr,foundationMenuShadowOptions:()=>Yr,foundationMenuStyles:()=>Vr,foundationMenuTemplate:()=>Gr,foundationModal:()=>al,foundationModalShadowOptions:()=>ol,foundationModalStyles:()=>tl,foundationModalTemplate:()=>il,foundationMultiselect:()=>gl,foundationMultiselectShadowOptions:()=>hl,foundationNotificationListener:()=>fv,foundationNotificationListenerShadowOptions:()=>gv,foundationNotificationListenerTemplate:()=>mv,foundationNumberField:()=>Ul,foundationNumberFieldShadowOptions:()=>Pl,foundationNumberFieldStyles:()=>Cl,foundationNumberFieldTemplate:()=>xl,foundationOptgroup:()=>jl,foundationOptgroupStyles:()=>Bl,foundationOptgroupTemplate:()=>Vl,foundationPopper:()=>Ld,foundationProgress:()=>fd,foundationProgressRing:()=>Pd,foundationProgressRingShadowOptions:()=>_d,foundationProgressRingStyles:()=>Nd,foundationProgressRingTemplate:()=>Fd,foundationProgressShadowOptions:()=>gd,foundationProgressStyles:()=>hd,foundationProgressTemplate:()=>pd,foundationRadio:()=>jd,foundationRadioGroup:()=>Jd,foundationRadioGroupShadowOptions:()=>Kd,foundationRadioGroupStyles:()=>Yd,foundationRadioGroupTemplate:()=>Wd,foundationRadioShadowOptions:()=>Vd,foundationRadioStyles:()=>zd,foundationRadioTemplate:()=>Ud,foundationScheduler:()=>nc,foundationSchedulerCronBuilder:()=>ou,foundationSchedulerCronBuilderShadowOptions:()=>tu,foundationSchedulerCronBuilderTemplate:()=>Zc,foundationSchedulerShadowOptions:()=>ic,foundationSchedulerTemplate:()=>ec,foundationSchedulerTimezone:()=>cu,foundationSchedulerTimezoneShadowOptions:()=>lu,foundationSchedulerTimezoneTemplate:()=>au,foundationSearchBar:()=>$u,foundationSearchBarCombobox:()=>Iu,foundationSearchBarComboboxShadowOptions:()=>ku,foundationSearchBarComboboxStyles:()=>Su,foundationSearchBarComboboxTemplate:()=>Eu,foundationSearchBarShadowOptions:()=>Cu,foundationSearchBarStyles:()=>uu,foundationSearchBarTemplate:()=>gu,foundationSectionNavigator:()=>Uu,foundationSectionNavigatorShadowOptions:()=>Pu,foundationSectionNavigatorStyles:()=>Ru,foundationSectionNavigatorTemplate:()=>Au,foundationSegmentedControl:()=>Wu,foundationSegmentedControlShadowOptions:()=>ju,foundationSegmentedControlStyles:()=>Bu,foundationSegmentedControlTemplate:()=>Vu,foundationSegmentedItem:()=>Zu,foundationSegmentedItemShadowOptions:()=>Ju,foundationSegmentedItemStyles:()=>qu,foundationSegmentedItemTemplate:()=>Ku,foundationSelect:()=>sh,foundationSelectShadowOptions:()=>oh,foundationSelectStyles:()=>eh,foundationSelectTemplate:()=>th,foundationSkeleton:()=>uh,foundationSkeletonShadowOptions:()=>dh,foundationSkeletonStyles:()=>ah,foundationSkeletonTemplate:()=>rh,foundationSlider:()=>yh,foundationSliderLabel:()=>Eh,foundationSliderLabelShadowOptions:()=>$h,foundationSliderLabelStyles:()=>wh,foundationSliderLabelTemplate:()=>Ch,foundationSliderShadowOptions:()=>fh,foundationSliderStyles:()=>hh,foundationSliderTemplate:()=>gh,foundationSnackbar:()=>Fh,foundationSnackbarShadowOptions:()=>Lh,foundationSnackbarStyles:()=>Ih,foundationSnackbarTemplate:()=>Ah,foundationStackingIcons:()=>Ph,foundationStackingIconsStyles:()=>Mh,foundationStackingIconsTemplate:()=>_h,foundationStatusPill:()=>Gh,foundationStatusPillTemplate:()=>Uh,foundationStepper:()=>of,foundationStepperShadowOptions:()=>ef,foundationStepperStyles:()=>Qv,foundationStepperTab:()=>Jh,foundationStepperTabPanel:()=>ip,foundationStepperTabPanelShadowOptions:()=>ep,foundationStepperTabPanelTemplate:()=>Qh,foundationStepperTabShadowOptions:()=>Kh,foundationStepperTabStyles:()=>jh,foundationStepperTabTemplate:()=>Wh,foundationStepperTemplate:()=>Jv,foundationSwitch:()=>lp,foundationSwitchShadowOptions:()=>ap,foundationSwitchStyles:()=>op,foundationSwitchTemplate:()=>np,foundationSystemHealthOverlay:()=>Td,foundationSystemHealthOverlayShadowOptions:()=>Ed,foundationSystemHealthOverlayStyles:()=>Sd,foundationSystemHealthOverlayTemplate:()=>$d,foundationTab:()=>mp,foundationTabPanel:()=>wp,foundationTabPanelShadowOptions:()=>bp,foundationTabPanelStyles:()=>gp,foundationTabPanelTemplate:()=>vp,foundationTabShadowOptions:()=>hp,foundationTabStyles:()=>dp,foundationTabTemplate:()=>cp,foundationTabs:()=>Op,foundationTabsShadowOptions:()=>Sp,foundationTabsStyles:()=>Cp,foundationTabsTemplate:()=>xp,foundationTextArea:()=>Ap,foundationTextAreaShadowOptions:()=>Ip,foundationTextAreaStyles:()=>Tp,foundationTextAreaTemplate:()=>kp,foundationTextField:()=>zp,foundationTextFieldShadowOptions:()=>Hp,foundationTextFieldStyles:()=>Fp,foundationTextFieldTemplate:()=>Mp,foundationToast:()=>Wp,foundationToastShadowOptions:()=>Gp,foundationToastStyles:()=>Up,foundationToastTemplate:()=>Vp,foundationToolbar:()=>Zp,foundationToolbarShadowOptions:()=>Jp,foundationToolbarStyles:()=>qp,foundationToolbarTemplate:()=>Kp,foundationTooltip:()=>sm,foundationTooltipShadowOptions:()=>om,foundationTooltipStyles:()=>em,foundationTooltipTemplate:()=>tm,foundationTreeItem:()=>um,foundationTreeItemShadowOptions:()=>dm,foundationTreeItemStyles:()=>am,foundationTreeItemTemplate:()=>rm,foundationTreeView:()=>fm,foundationTreeViewShadowOptions:()=>gm,foundationTreeViewStyles:()=>hm,foundationTreeViewTemplate:()=>pm,foundationUrlInput:()=>Sm,foundationUrlInputShadowOptions:()=>Cm,foundationUrlInputStyles:()=>bm,foundationUrlInputTemplate:()=>wm,fromBinaryExpression:()=>nv,fromMethodExpression:()=>sv,fuiAccentPalette:()=>Po,fuiAccentSwatch:()=>Ho,fuiCardFillColor:()=>Bo,fuiCardForegroundColor:()=>jo,fuiDefaultCardFillColor:()=>Ao,fuiDefaultCardPalette:()=>Lo,fuiFillColor:()=>Uo,fuiNeutralPalette:()=>Mo,fuiNeutralSwatch:()=>Fo,getBannerTemplate:()=>st,getBrowserLocale:()=>po,getCriteriaBuilder:()=>yu,getDefaultConfig:()=>nn,getDesignSystemPrefix:()=>T,getDialogTemplate:()=>Tn,getDisplayFormatForLang:()=>mo,getDropdownMenuTemplate:()=>Kn,getErrorDialogTemplate:()=>Ls,getExports:()=>sn,getFontawesomeIconsCss:()=>wr,getNavItems:()=>Gv,getPrefixedCategorizedMultiselect:()=>Vt,getPrefixedCronBuilder:()=>Qc,getPrefixedDatePicker:()=>co,getPrefixedErrorBanner:()=>ps,getPrefixedFileReader:()=>Us,getPrefixedFileUpload:()=>qs,getPrefixedFilterTemplate:()=>pa,getPrefixedFlyout:()=>Va,getPrefixedIcon:()=>xr,getPrefixedMultiselect:()=>cl,getPrefixedScheduler:()=>Zd,getPrefixedSchedulerTimezone:()=>su,getPrefixedSearchBar:()=>mu,getPrefixedSnackbar:()=>Rh,getPrefixedStepper:()=>Xv,getPrefixedStepperTab:()=>Yh,getPrefixedToast:()=>Bp,getPrefixedUrlInput:()=>ym,getTypeRampValue:()=>an,groupsToCriteria:()=>X,hasDateValue:()=>vo,inputControls:()=>Rc,isAbsoluteUrl:()=>Lv,jsonConverter:()=>Dd,mapType:()=>wa,maxheight:()=>rl,media:()=>je,menuTemplate:()=>k,mixinFoundationFontFamily:()=>fn,months:()=>uc,multiselectStyles:()=>ll,multiselectTemplate:()=>ul,neutralFillActive:()=>r.neutralFillActive,neutralFillActiveDelta:()=>r.neutralFillActiveDelta,neutralFillFocus:()=>r.neutralFillFocus,neutralFillFocusDelta:()=>r.neutralFillFocusDelta,neutralFillHover:()=>r.neutralFillHover,neutralFillHoverDelta:()=>r.neutralFillHoverDelta,neutralFillInputActive:()=>r.neutralFillInputActive,neutralFillInputActiveDelta:()=>r.neutralFillInputActiveDelta,neutralFillInputFocus:()=>r.neutralFillInputFocus,neutralFillInputFocusDelta:()=>r.neutralFillInputFocusDelta,neutralFillInputHover:()=>r.neutralFillInputHover,neutralFillInputHoverDelta:()=>r.neutralFillInputHoverDelta,neutralFillInputRest:()=>r.neutralFillInputRest,neutralFillInputRestDelta:()=>r.neutralFillInputRestDelta,neutralFillLayerRest:()=>r.neutralFillLayerRest,neutralFillLayerRestDelta:()=>r.neutralFillLayerRestDelta,neutralFillRest:()=>r.neutralFillRest,neutralFillRestDelta:()=>r.neutralFillRestDelta,neutralFillStealthActive:()=>r.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>r.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>r.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>r.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>r.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>r.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>r.neutralFillStealthRest,neutralFillStealthRestDelta:()=>r.neutralFillStealthRestDelta,neutralFillStrongActive:()=>r.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>r.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>r.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>r.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>r.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>r.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>r.neutralFillStrongRest,neutralFillStrongRestDelta:()=>r.neutralFillStrongRestDelta,neutralForeground:()=>Go,neutralForegroundHint:()=>r.neutralForegroundHint,neutralForegroundRest:()=>r.neutralForegroundRest,neutralLayer1:()=>r.neutralLayer1,neutralLayer2:()=>r.neutralLayer2,neutralLayer3:()=>r.neutralLayer3,neutralLayer4:()=>r.neutralLayer4,neutralLayerCardContainer:()=>r.neutralLayerCardContainer,neutralLayerFloating:()=>r.neutralLayerFloating,neutralPalette:()=>r.neutralPalette,neutralPaletteValue:()=>un,neutralStrokeActive:()=>r.neutralStrokeActive,neutralStrokeActiveDelta:()=>r.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>r.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>r.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>r.neutralStrokeFocus,neutralStrokeFocusDelta:()=>r.neutralStrokeFocusDelta,neutralStrokeHover:()=>r.neutralStrokeHover,neutralStrokeHoverDelta:()=>r.neutralStrokeHoverDelta,neutralStrokeRest:()=>r.neutralStrokeRest,neutralStrokeRestDelta:()=>r.neutralStrokeRestDelta,optionsMaxheight:()=>Ut,paletteFromHex:()=>en,parseDatePickerValue:()=>bo,pathJoin:()=>_v,plusIcon:()=>pu,provideDesignSystem:()=>yd,provideTokens:()=>Jo,rebuildOperator:()=>ov,registerFoundationDesignSystem:()=>df,removeChildRouteParameter:()=>Pv,removeLastPathSegment:()=>Hv,resolveDayjsLocale:()=>ho,routerLogger:()=>Ev,routerProperty:()=>Dv,ruleExpressionToGroup:()=>av,ruleToRuleExpression:()=>tv,ruleToRuleMethodExpression:()=>ev,schedulerCronBuilderStyles:()=>Ac,schedulerStyles:()=>Qd,schedulerTimezoneStyles:()=>nu,selectCustomToken:()=>ln,sharedFieldStyles:()=>wl,singleOptionTemplate:()=>D,statusPillStyles:()=>zh,strokeWidth:()=>r.strokeWidth,swatchConverter:()=>Zo,tagFor:()=>yv,transformOperatorNameToServerName:()=>Zg,transformServerNameToOperatorName:()=>iv,typeRampBaseFontSize:()=>r.typeRampBaseFontSize,typeRampBaseLineHeight:()=>r.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>r.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>r.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>r.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>r.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>r.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>r.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>r.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>r.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>r.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>r.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>r.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>r.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>r.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>r.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>r.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>r.typeRampPlus6LineHeight,uploadFiles:()=>Js,validateClauses:()=>ce,validateGroups:()=>ue,weekNumber:()=>cc,white:()=>To});var o={};i.r(o),i.d(o,{accentFillActive:()=>r.accentFillActive,accentFillActiveDelta:()=>r.accentFillActiveDelta,accentFillFocus:()=>r.accentFillFocus,accentFillFocusDelta:()=>r.accentFillFocusDelta,accentFillHover:()=>r.accentFillHover,accentFillHoverDelta:()=>r.accentFillHoverDelta,accentFillRest:()=>r.accentFillRest,accentFillRestDelta:()=>r.accentFillRestDelta,accentForegroundActive:()=>r.accentForegroundActive,accentForegroundActiveDelta:()=>r.accentForegroundActiveDelta,accentForegroundFocus:()=>r.accentForegroundFocus,accentForegroundFocusDelta:()=>r.accentForegroundFocusDelta,accentForegroundHover:()=>r.accentForegroundHover,accentForegroundHoverDelta:()=>r.accentForegroundHoverDelta,accentForegroundRest:()=>r.accentForegroundRest,accentForegroundRestDelta:()=>r.accentForegroundRestDelta,accentPalette:()=>r.accentPalette,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseLayerLuminance:()=>r.baseLayerLuminance,bodyFont:()=>r.bodyFont,controlCornerRadius:()=>r.controlCornerRadius,defaultNeutralForegroundContrast:()=>Vo,density:()=>r.density,designUnit:()=>r.designUnit,direction:()=>r.direction,disabledOpacity:()=>r.disabledOpacity,fillColor:()=>r.fillColor,focusStrokeInner:()=>r.focusStrokeInner,focusStrokeOuter:()=>r.focusStrokeOuter,focusStrokeWidth:()=>r.focusStrokeWidth,foregroundOnAccentActive:()=>r.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>r.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>r.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>r.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>r.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>r.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>r.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>r.foregroundOnAccentRestLarge,fuiCardFillColor:()=>Bo,fuiCardForegroundColor:()=>jo,fuiFillColor:()=>Uo,neutralFillActive:()=>r.neutralFillActive,neutralFillActiveDelta:()=>r.neutralFillActiveDelta,neutralFillFocus:()=>r.neutralFillFocus,neutralFillFocusDelta:()=>r.neutralFillFocusDelta,neutralFillHover:()=>r.neutralFillHover,neutralFillHoverDelta:()=>r.neutralFillHoverDelta,neutralFillInputActive:()=>r.neutralFillInputActive,neutralFillInputActiveDelta:()=>r.neutralFillInputActiveDelta,neutralFillInputFocus:()=>r.neutralFillInputFocus,neutralFillInputFocusDelta:()=>r.neutralFillInputFocusDelta,neutralFillInputHover:()=>r.neutralFillInputHover,neutralFillInputHoverDelta:()=>r.neutralFillInputHoverDelta,neutralFillInputRest:()=>r.neutralFillInputRest,neutralFillInputRestDelta:()=>r.neutralFillInputRestDelta,neutralFillLayerRest:()=>r.neutralFillLayerRest,neutralFillLayerRestDelta:()=>r.neutralFillLayerRestDelta,neutralFillRest:()=>r.neutralFillRest,neutralFillRestDelta:()=>r.neutralFillRestDelta,neutralFillStealthActive:()=>r.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>r.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>r.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>r.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>r.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>r.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>r.neutralFillStealthRest,neutralFillStealthRestDelta:()=>r.neutralFillStealthRestDelta,neutralFillStrongActive:()=>r.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>r.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>r.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>r.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>r.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>r.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>r.neutralFillStrongRest,neutralFillStrongRestDelta:()=>r.neutralFillStrongRestDelta,neutralForeground:()=>Go,neutralForegroundHint:()=>r.neutralForegroundHint,neutralForegroundRest:()=>r.neutralForegroundRest,neutralLayer1:()=>r.neutralLayer1,neutralLayer2:()=>r.neutralLayer2,neutralLayer3:()=>r.neutralLayer3,neutralLayer4:()=>r.neutralLayer4,neutralLayerCardContainer:()=>r.neutralLayerCardContainer,neutralLayerFloating:()=>r.neutralLayerFloating,neutralPalette:()=>r.neutralPalette,neutralStrokeActive:()=>r.neutralStrokeActive,neutralStrokeActiveDelta:()=>r.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>r.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>r.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>r.neutralStrokeFocus,neutralStrokeFocusDelta:()=>r.neutralStrokeFocusDelta,neutralStrokeHover:()=>r.neutralStrokeHover,neutralStrokeHoverDelta:()=>r.neutralStrokeHoverDelta,neutralStrokeRest:()=>r.neutralStrokeRest,neutralStrokeRestDelta:()=>r.neutralStrokeRestDelta,strokeWidth:()=>r.strokeWidth,typeRampBaseFontSize:()=>r.typeRampBaseFontSize,typeRampBaseLineHeight:()=>r.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>r.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>r.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>r.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>r.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>r.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>r.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>r.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>r.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>r.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>r.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>r.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>r.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>r.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>r.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>r.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>r.typeRampPlus6LineHeight});var n={};i.r(n),i.d(n,{accentPaletteValue:()=>cn,baseLayerLuminanceValue:()=>hn,controlCornerRadiusValue:()=>mn,designUnitValue:()=>gn,directionValue:()=>pn,neutralPaletteValue:()=>un});var s={};i.r(s),i.d(s,{BASE_LOGICAL_COMBINATORS:()=>km,BASE_OPERATORS:()=>Nm,LOGICAL_COMBINATORS:()=>Dm,NULL_COMBINATOR:()=>Im});var a=i(38370),r=i(54634),l=i(33681);const d=(e,t)=>l.css`
1
+ (self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[311],{8420(e,t,i){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=t(e),o={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var t=["th","st","nd","rd"],i=e%100;return"["+e+(t[(i-20)%10]||t[i]||t[0])+"]"}};return i.default.locale(o,null,!0),o}(i(94343))},58915(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|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,o=/\d\d/,n=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},r=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},d=[/[+-]\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),i=60*t[1]+(+t[2]||0);return 0===i?0:"+"===t[0]?-i:i}(e)}],c=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var i,o=s.meridiem;if(o){for(var n=1;n<=24;n+=1)if(e.indexOf(o(n,0,t))>-1){i=n>12;break}}else i=e===(t?"pm":"PM");return i},h={A:[a,function(e){this.afternoon=u(e,!1)}],a:[a,function(e){this.afternoon=u(e,!0)}],Q:[i,function(e){this.month=3*(e-1)+1}],S:[i,function(e){this.milliseconds=100*+e}],SS:[o,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,l("seconds")],ss:[n,l("seconds")],m:[n,l("minutes")],mm:[n,l("minutes")],H:[n,l("hours")],h:[n,l("hours")],HH:[n,l("hours")],hh:[n,l("hours")],D:[n,l("day")],DD:[o,l("day")],Do:[a,function(e){var t=s.ordinal,i=e.match(/\d+/);if(this.day=i[0],t)for(var o=1;o<=31;o+=1)t(o).replace(/\[|\]/g,"")===e&&(this.day=o)}],w:[n,l("week")],ww:[o,l("week")],M:[n,l("month")],MM:[o,l("month")],MMM:[a,function(e){var t=c("months"),i=(c("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(i<1)throw new Error;this.month=i%12||i}],MMMM:[a,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[o,function(e){this.year=r(e)}],YYYY:[/\d{4}/,l("year")],Z:d,ZZ:d};function p(i){var o,n;o=i,n=s&&s.formats;for(var a=(i=o.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,i,o){var a=o&&o.toUpperCase();return i||n[o]||e[o]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,i){return t||i.slice(1)})})).match(t),r=a.length,l=0;l<r;l+=1){var d=a[l],c=h[d],u=c&&c[0],p=c&&c[1];a[l]=p?{regex:u,parser:p}:d.replace(/^\[|\]$/g,"")}return function(e){for(var t={},i=0,o=0;i<r;i+=1){var n=a[i];if("string"==typeof n)o+=n.length;else{var s=n.regex,l=n.parser,d=e.slice(o),c=s.exec(d)[0];l.call(t,c),e=e.replace(c,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var i=e.hours;t?i<12&&(e.hours+=12):12===i&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,i){i.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(r=e.parseTwoDigitYear);var o=t.prototype,n=o.parse;o.parse=function(e){var t=e.date,o=e.utc,a=e.args;this.$u=o;var r=a[1];if("string"==typeof r){var l=!0===a[2],d=!0===a[3],c=l||d,u=a[2];d&&(u=a[2]),s=this.$locale(),!l&&u&&(s=i.Ls[u]),this.$d=function(e,t,i,o){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var n=p(t)(e),a=n.year,s=n.month,r=n.day,l=n.hours,d=n.minutes,c=n.seconds,u=n.milliseconds,h=n.zone,m=n.week,v=new Date,g=r||(a||s?1:v.getDate()),f=a||v.getFullYear(),b=0;a&&!s||(b=s>0?s-1:v.getMonth());var y,w=l||0,C=d||0,x=c||0,$=u||0;return h?new Date(Date.UTC(f,b,g,w,C,x,$+60*h.offset*1e3)):i?new Date(Date.UTC(f,b,g,w,C,x,$)):(y=new Date(f,b,g,w,C,x,$),m&&(y=o(y).week(m).toDate()),y)}catch(e){return new Date("")}}(t,r,o,i),this.init(),u&&!0!==u&&(this.$L=this.locale(u).$L),c&&t!=this.format(r)&&(this.$d=new Date("")),s={}}else if(r instanceof Array)for(var h=r.length,m=1;m<=h;m+=1){a[1]=r[m-1];var v=i.apply(this,a);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}m===h&&(this.$d=new Date(""))}else n.call(this,e)}}}()},33839(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(e){e.exports=function(){"use strict";return function(e,t,i){var o=t.prototype,n=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,i,o,a){var s=e.name?e:e.$locale(),r=n(s[t]),l=n(s[i]),d=r||l.map(function(e){return e.slice(0,o)});if(!a)return d;var c=s.weekStart;return d.map(function(e,t){return d[(t+(c||0))%7]})},s=function(){return i.Ls[i.locale()]},r=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,i){return t||i.slice(1)})}(e.formats[t.toUpperCase()])},l=function(){var e=this;return{months:function(t){return t?t.format("MMMM"):a(e,"months")},monthsShort:function(t){return t?t.format("MMM"):a(e,"monthsShort","months",3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format("dddd"):a(e,"weekdays")},weekdaysMin:function(t){return t?t.format("dd"):a(e,"weekdaysMin","weekdays",2)},weekdaysShort:function(t){return t?t.format("ddd"):a(e,"weekdaysShort","weekdays",3)},longDateFormat:function(t){return r(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};o.localeData=function(){return l.bind(this)()},i.localeData=function(){var e=s();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return i.weekdays()},weekdaysShort:function(){return i.weekdaysShort()},weekdaysMin:function(){return i.weekdaysMin()},months:function(){return i.months()},monthsShort:function(){return i.monthsShort()},longDateFormat:function(t){return r(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},i.months=function(){return a(s(),"months")},i.monthsShort=function(){return a(s(),"monthsShort","months",3)},i.weekdays=function(e){return a(s(),"weekdays",null,null,e)},i.weekdaysShort=function(e){return a(s(),"weekdaysShort","weekdays",3,e)},i.weekdaysMin=function(e){return a(s(),"weekdaysMin","weekdays",2,e)}}}()},49916(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,i,o){var n=i.prototype,a=n.format;o.en.formats=e,n.format=function(t){void 0===t&&(t="YYYY-MM-DDTHH:mm:ssZ");var i=this.$locale().formats,o=function(t,i){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,o,n){var a=n&&n.toUpperCase();return o||i[n]||e[n]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,i){return t||i.slice(1)})})}(t,void 0===i?{}:i);return a.call(this,o)}}}()},57565(e){e.exports=s,s.default=s,s.stable=c,s.stableStringify=c;var t="[...]",i="[Circular]",o=[],n=[];function a(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,t,i,s){var r;void 0===s&&(s=a()),l(e,"",0,[],void 0,0,s);try{r=0===n.length?JSON.stringify(e,t,i):JSON.stringify(e,h(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var d=o.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return r}function r(e,t,i,a){var s=Object.getOwnPropertyDescriptor(a,i);void 0!==s.get?s.configurable?(Object.defineProperty(a,i,{value:e}),o.push([a,i,t,s])):n.push([t,i,e]):(a[i]=e,o.push([a,i,t]))}function l(e,o,n,a,s,d,c){var u;if(d+=1,"object"==typeof e&&null!==e){for(u=0;u<a.length;u++)if(a[u]===e)return void r(i,e,o,s);if(void 0!==c.depthLimit&&d>c.depthLimit)return void r(t,e,o,s);if(void 0!==c.edgesLimit&&n+1>c.edgesLimit)return void r(t,e,o,s);if(a.push(e),Array.isArray(e))for(u=0;u<e.length;u++)l(e[u],u,u,a,e,d,c);else{var h=Object.keys(e);for(u=0;u<h.length;u++){var p=h[u];l(e[p],p,u,a,e,d,c)}}a.pop()}}function d(e,t){return e<t?-1:e>t?1:0}function c(e,t,i,s){void 0===s&&(s=a());var r,l=u(e,"",0,[],void 0,0,s)||e;try{r=0===n.length?JSON.stringify(l,t,i):JSON.stringify(l,h(t),i)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==o.length;){var d=o.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return r}function u(e,n,a,s,l,c,h){var p;if(c+=1,"object"==typeof e&&null!==e){for(p=0;p<s.length;p++)if(s[p]===e)return void r(i,e,n,l);try{if("function"==typeof e.toJSON)return}catch(e){return}if(void 0!==h.depthLimit&&c>h.depthLimit)return void r(t,e,n,l);if(void 0!==h.edgesLimit&&a+1>h.edgesLimit)return void r(t,e,n,l);if(s.push(e),Array.isArray(e))for(p=0;p<e.length;p++)u(e[p],p,p,s,e,c,h);else{var m={},v=Object.keys(e).sort(d);for(p=0;p<v.length;p++){var g=v[p];u(e[g],g,p,s,e,c,h),m[g]=e[g]}if(void 0===l)return m;o.push([l,n,e]),l[n]=m}s.pop()}}function h(e){return e=void 0!==e?e:function(e,t){return t},function(t,i){if(n.length>0)for(var o=0;o<n.length;o++){var a=n[o];if(a[1]===t&&a[0]===i){i=a[2],n.splice(o,1);break}}return e.call(this,t,i)}}},93678(e){"use strict";function t(e){return e instanceof Buffer?Buffer.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}e.exports=function(e){if((e=e||{}).circles)return function(e){const i=[],o=[],n=new Map;if(n.set(Date,e=>new Date(e)),n.set(Map,(e,t)=>new Map(s(Array.from(e),t))),n.set(Set,(e,t)=>new Set(s(Array.from(e),t))),e.constructorHandlers)for(const t of e.constructorHandlers)n.set(t[0],t[1]);let a=null;return e.proto?l:r;function s(e,s){const r=Object.keys(e),l=new Array(r.length);for(let d=0;d<r.length;d++){const c=r[d],u=e[c];if("object"!=typeof u||null===u)l[c]=u;else if(u.constructor!==Object&&(a=n.get(u.constructor)))l[c]=a(u,s);else if(ArrayBuffer.isView(u))l[c]=t(u);else{const e=i.indexOf(u);l[c]=-1!==e?o[e]:s(u)}}return l}function r(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return s(e,r);if(e.constructor!==Object&&(a=n.get(e.constructor)))return a(e,r);const l={};i.push(e),o.push(l);for(const s in e){if(!1===Object.hasOwnProperty.call(e,s))continue;const d=e[s];if("object"!=typeof d||null===d)l[s]=d;else if(d.constructor!==Object&&(a=n.get(d.constructor)))l[s]=a(d,r);else if(ArrayBuffer.isView(d))l[s]=t(d);else{const e=i.indexOf(d);l[s]=-1!==e?o[e]:r(d)}}return i.pop(),o.pop(),l}function l(e){if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return s(e,l);if(e.constructor!==Object&&(a=n.get(e.constructor)))return a(e,l);const r={};i.push(e),o.push(r);for(const s in e){const d=e[s];if("object"!=typeof d||null===d)r[s]=d;else if(d.constructor!==Object&&(a=n.get(d.constructor)))r[s]=a(d,l);else if(ArrayBuffer.isView(d))r[s]=t(d);else{const e=i.indexOf(d);r[s]=-1!==e?o[e]:l(d)}}return i.pop(),o.pop(),r}}(e);const i=new Map;if(i.set(Date,e=>new Date(e)),i.set(Map,(e,t)=>new Map(n(Array.from(e),t))),i.set(Set,(e,t)=>new Set(n(Array.from(e),t))),e.constructorHandlers)for(const t of e.constructorHandlers)i.set(t[0],t[1]);let o=null;return e.proto?function e(a){if("object"!=typeof a||null===a)return a;if(Array.isArray(a))return n(a,e);if(a.constructor!==Object&&(o=i.get(a.constructor)))return o(a,e);const s={};for(const n in a){const r=a[n];"object"!=typeof r||null===r?s[n]=r:r.constructor!==Object&&(o=i.get(r.constructor))?s[n]=o(r,e):ArrayBuffer.isView(r)?s[n]=t(r):s[n]=e(r)}return s}:function e(a){if("object"!=typeof a||null===a)return a;if(Array.isArray(a))return n(a,e);if(a.constructor!==Object&&(o=i.get(a.constructor)))return o(a,e);const s={};for(const n in a){if(!1===Object.hasOwnProperty.call(a,n))continue;const r=a[n];"object"!=typeof r||null===r?s[n]=r:r.constructor!==Object&&(o=i.get(r.constructor))?s[n]=o(r,e):ArrayBuffer.isView(r)?s[n]=t(r):s[n]=e(r)}return s};function n(e,n){const a=Object.keys(e),s=new Array(a.length);for(let r=0;r<a.length;r++){const l=a[r],d=e[l];"object"!=typeof d||null===d?s[l]=d:d.constructor!==Object&&(o=i.get(d.constructor))?s[l]=o(d,n):ArrayBuffer.isView(d)?s[l]=t(d):s[l]=n(d)}return s}}},31274(e,t,i){"use strict";i.d(t,{u:()=>n});var o=i(60416);const n=(e,t,i)=>{(0,o.u_)(e);const n=t.split("-")[0],a=document.createElement(`${n}-dialog`),s=i?(e=>{let t=e.querySelector("#dialog-container");return t||(t=document.createElement("div"),t.setAttribute("id","dialog-container"),t.style.position="relative",e.appendChild(t)),t})(i):(0,o.jE)("dialog-container",t);s.appendChild(a),a.notification=e,a.show()}},60416(e,t,i){"use strict";i.d(t,{cL:()=>h,jE:()=>u,uP:()=>d,u_:()=>c});var o=i(66506),n=i(52945),a=i(68424);const s=(0,o.createLogger)("foundation-notifications");let r=null;const l=new Map,d=e=>{var t,i;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(i=null==e?void 0:e.body)&&void 0!==i?i:"Something went wrong"}`},c=e=>{var t,i;s.log({message:d(e),level:(t=e,(null==t?void 0:t.logLevel)||(null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.logLevel)||o.LogLevels.debug)})},u=(e,t)=>{let i=document.querySelector(`#${e}`);if(!i)if(l.has(e))i=l.get(e);else{const t=(0,n.fI)(document).find(t=>t.id===e);t&&(i=t,l.set(e,t))}if(!i){i=document.createElement("div"),i.setAttribute("id",e),i.style.zIndex="9999";const{element:t,prefix:o}=(0,a.DW)(document.body,"rapid");if(t)t.appendChild(i),r=t;else if(r)r.appendChild(i);else{const e=document.createElement(`${o}-design-system-provider`);e.appendChild(i),document.body.appendChild(e),r=e}}return i},h=e=>{for(var t,i;e&&!(e instanceof ShadowRoot);){const o=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("banner-anchor");if(o)return o.style.position="relative",o;e=null===(i=null==e?void 0:e.getRootNode())||void 0===i?void 0:i.host}return p()},p=()=>{const e=document.createElement("div");return e.setAttribute("id","banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e}},66311(e,t,i){"use strict";i.r(t),i.d(t,{Accordion:()=>u,AccordionItem:()=>f,ActionsMenu:()=>R,AffixMixin:()=>yl,AiCriteriaSearch:()=>$e,AiIndicator:()=>De,Anchor:()=>Le,AnchoredRegion:()=>Pe,Avatar:()=>Ye,BASE_EDITABLE_ELEMENT_SELECTORS:()=>hf,Badge:()=>Qe,Banner:()=>lt,BaseDatasource:()=>vi,BaseFileComponent:()=>Ha,Breadcrumb:()=>ht,BreadcrumbItem:()=>bt,Button:()=>St,COMBO_INPUT_MIN_LENGTH:()=>Eu,CRON_LENGTH:()=>Cc,CSSVarsTokenMapper:()=>Lm,Calendar:()=>It,Card:()=>Mt,CategorizedMultiselect:()=>Wt,Checkbox:()=>Jt,Combobox:()=>$i,ConnectionIndicator:()=>Ii,CronBuilderEvents:()=>Tc,DATETIME_OPERATORS:()=>ee,DATE_OPERATORS:()=>Z,DATE_PICKER_VALUE_FORMAT:()=>fo,DEFUALT_FILTER_BAR_COLUMNS:()=>Ss,DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS:()=>mf,DataGrid:()=>Ni,DataGridCell:()=>Pi,DataGridDatasource:()=>Nm,DataGridRow:()=>Gi,DateOrDay:()=>vc,DatePicker:()=>So,DefaultRouter:()=>Hg,DesignTokensObservable:()=>Ko,Dialog:()=>An,DialogElement:()=>Rn,Disclosure:()=>Mn,Divider:()=>Bn,DropdownMenu:()=>Jn,EnvironmentIndicator:()=>ua,ErrorBanner:()=>ga,ErrorBoundary:()=>Ia,ErrorBoundaryEvent:()=>ba,ErrorDialog:()=>Ma,ExpressionBuilderConfig:()=>a,ExpressionBuilderCore:()=>Qv,FaPrefixFromStyle:()=>Or,FileReader:()=>Va,FileUpload:()=>os,Filter:()=>gs,FilterBar:()=>Es,FilterEvents:()=>vs,FlexLayout:()=>Ls,FlexMediaQueriesEnum:()=>Ts,Flipper:()=>_s,Flyout:()=>js,FoundationDesignSystemProvider:()=>Cn,FoundationExpressionBuilder:()=>_v,FoundationRouteCollection:()=>Qg,FoundationRouteNav:()=>qg,FoundationRouter:()=>of,FoundationRouterConfiguration:()=>Zg,FoundationRuleExpressionBuilder:()=>mg,FoundationValueExpressionBuilder:()=>wg,GenerateNavigationPathEventType:()=>tf,GridLayout:()=>ir,GridLayoutItem:()=>rr,GridMediaQueriesEnum:()=>Ks,HorizontalScroll:()=>ur,INPUT_MIN_LENGTH:()=>Su,Icon:()=>Dr,Listbox:()=>Lr,ListboxOption:()=>Pr,MAX_DAYS:()=>wc,MAX_HOURS:()=>$c,MAX_MINS_SEC:()=>Sc,MAX_MINUTE_RECURRENCE:()=>Oc,MAX_MONTHS:()=>yc,MAX_WEEK_DAYS:()=>xc,MAX_WEEK_NUMBER:()=>Ec,Menu:()=>jr,MenuItem:()=>Jr,Modal:()=>al,Multiselect:()=>ml,MultiselectDatasource:()=>dl,NUMERIC_OPERATORS:()=>Q,NavigateToEventType:()=>ef,NotificationListener:()=>$g,NumberField:()=>Hl,OPERATOR_DISPLAY_LABEL:()=>te,Optgroup:()=>Gl,OptionsDatasource:()=>bi,Pill:()=>Ld,Popper:()=>_d,Position:()=>zt,Progress:()=>md,ProgressRing:()=>Vd,Radio:()=>Kd,RadioGroup:()=>tc,RecurrenceType:()=>pc,Router:()=>_g,RuleExpression:()=>Zv,SCROLL_TIMEOUT:()=>$u,SECTION_NAVIGATOR_EVENTS:()=>Bu,SNACKBAR_CLOSE_TIMEOUT:()=>Fh,SNACKBAR_EVENTS_NAMES:()=>Mh,SNACKBAR_TYPES:()=>Nh,SNACKBAR_TYPE_DEFAULT:()=>Lh,STRING_OPERATORS:()=>J,Scheduler:()=>lc,SchedulerCronBuilder:()=>ru,SchedulerTimezone:()=>mu,SearchBar:()=>Tu,SearchBarCombobox:()=>Nu,SectionNavigator:()=>ju,SegmentedControl:()=>Ju,SegmentedItem:()=>oh,Select:()=>dh,Skeleton:()=>vh,Slider:()=>$h,SliderLabel:()=>Dh,Snackbar:()=>Uh,StackingIcons:()=>jh,StatusPill:()=>Xh,Stepper:()=>rf,StepperTab:()=>tp,StepperTabPanel:()=>sp,Switch:()=>hp,SystemHealthOverlay:()=>xd,Tab:()=>bp,TabPanel:()=>Sp,Tabs:()=>Ip,TextArea:()=>Mp,TextField:()=>Gp,Toast:()=>Zp,Toolbar:()=>om,Tooltip:()=>dm,TreeItem:()=>vm,TreeView:()=>Cm,UrlInput:()=>Im,WeekType:()=>mc,accentFillActive:()=>r.accentFillActive,accentFillActiveDelta:()=>r.accentFillActiveDelta,accentFillFocus:()=>r.accentFillFocus,accentFillFocusDelta:()=>r.accentFillFocusDelta,accentFillHover:()=>r.accentFillHover,accentFillHoverDelta:()=>r.accentFillHoverDelta,accentFillRest:()=>r.accentFillRest,accentFillRestDelta:()=>r.accentFillRestDelta,accentForegroundActive:()=>r.accentForegroundActive,accentForegroundActiveDelta:()=>r.accentForegroundActiveDelta,accentForegroundFocus:()=>r.accentForegroundFocus,accentForegroundFocusDelta:()=>r.accentForegroundFocusDelta,accentForegroundHover:()=>r.accentForegroundHover,accentForegroundHoverDelta:()=>r.accentForegroundHoverDelta,accentForegroundRest:()=>r.accentForegroundRest,accentForegroundRestDelta:()=>r.accentForegroundRestDelta,accentPalette:()=>r.accentPalette,accentPaletteValue:()=>cn,actionsMenuBaseStyles:()=>$,applyCustomTokens:()=>tn,baseComponents:()=>Am,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseLayerLuminance:()=>r.baseLayerLuminance,baseLayerLuminanceValue:()=>hn,black:()=>ko,bodyFont:()=>r.bodyFont,buildEditableElementSelector:()=>vf,categorizedMultiselectStyles:()=>Bt,categorizedMultiselectTemplate:()=>Gt,clientOperators:()=>tg,closeIcon:()=>ls,configureDesignSystem:()=>dn,configureEnvironmentIndicator:()=>da,controlCornerRadius:()=>r.controlCornerRadius,controlCornerRadiusValue:()=>mn,createDesignSystemProxy:()=>bd,createFormData:()=>Xa,crossIcon:()=>yu,daysOfWeek:()=>gc,defaultAccordionConfig:()=>p,defaultAccordionItemConfig:()=>y,defaultAiCriteriaSearchConfig:()=>Ee,defaultAnchorConfig:()=>Fe,defaultAnchoredRegionConfig:()=>Ue,defaultAvatarConfig:()=>qe,defaultBadgeConfig:()=>et,defaultBreadcrumbConfig:()=>mt,defaultBreadcrumbItemConfig:()=>wt,defaultButtonConfig:()=>Ot,defaultCalendarConfig:()=>At,defaultCardConfig:()=>Ht,defaultCategorizedMultiselectConfig:()=>Yt,defaultCheckboxConfig:()=>Zt,defaultComboboxConfig:()=>Ei,defaultConfig:()=>cc,defaultCronBuilderConfig:()=>du,defaultDataGridCellConfig:()=>Ui,defaultDataGridConfig:()=>Mi,defaultDataGridRowConfig:()=>Yi,defaultDatePickerConfig:()=>$o,defaultDialogConfig:()=>In,defaultDisclosureConfig:()=>Hn,defaultDividerConfig:()=>Gn,defaultFileUploadConfig:()=>as,defaultFillColor:()=>Io,defaultFlexLayoutConfig:()=>As,defaultFlipperConfig:()=>Ps,defaultFlyoutConfig:()=>Ws,defaultGridLayoutConfig:()=>er,defaultGridLayoutItemConfig:()=>sr,defaultHorizontalScrollConfig:()=>pr,defaultIconConfig:()=>Er,defaultListboxConfig:()=>Fr,defaultListboxOptionConfig:()=>Ur,defaultMenuConfig:()=>Wr,defaultMenuItemConfig:()=>Zr,defaultModalConfig:()=>nl,defaultMultiselectConfig:()=>pl,defaultNavItemPredicate:()=>Kg,defaultNeutralForegroundContrast:()=>Vo,defaultNumberFieldConfig:()=>zl,defaultPillConfig:()=>Ad,defaultPlacementIndexPadding:()=>Xg,defaultProgressConfig:()=>gd,defaultProgressRingConfig:()=>jd,defaultRadioConfig:()=>Jd,defaultRadioGroupConfig:()=>oc,defaultSearchBarComboboxConfig:()=>Mu,defaultSearchBarConfig:()=>Du,defaultSectionNavigatorConfig:()=>Wu,defaultSegmentedControlConfig:()=>Zu,defaultSegmentedItemConfig:()=>ah,defaultSelectConfig:()=>uh,defaultSkeletonConfig:()=>fh,defaultSliderConfig:()=>Eh,defaultSliderLabelConfig:()=>Rh,defaultStepperConfig:()=>df,defaultStepperTabConfig:()=>op,defaultStepperTabPanelConfig:()=>lp,defaultSwitchConfig:()=>mp,defaultSystemHealthOverlayConfig:()=>Od,defaultTabConfig:()=>wp,defaultTabPanelConfig:()=>Op,defaultTabsConfig:()=>Ap,defaultTextAreaConfig:()=>Hp,defaultTextFieldConfig:()=>Yp,defaultTimezoneConfig:()=>gu,defaultToastConfig:()=>Qp,defaultToolbarConfig:()=>am,defaultTooltipConfig:()=>um,defaultTreeItemConfig:()=>fm,defaultTreeViewConfig:()=>$m,defaultUrlInputConfig:()=>Dm,defineFactory:()=>Eg,density:()=>r.density,designToken:()=>Qo,designTokensMap:()=>rn,designUnit:()=>r.designUnit,designUnitValue:()=>vn,direction:()=>r.direction,directionValue:()=>pn,disabledOpacity:()=>r.disabledOpacity,downloadFile:()=>Qa,dropdownMenuBaseStyles:()=>Yn,environmentIndicatorStyles:()=>ea,errorDialogTemplate:()=>Na,extractMenuItems:()=>qn,faSizeValueDefault:()=>Tr,faSizeValues:()=>kr,fileReaderStyles:()=>Pa,fileReaderTemplate:()=>Ba,fillColor:()=>r.fillColor,filterBarTemplate:()=>xs,findParentRouter:()=>Bg,findRouter:()=>Ug,findTopLevelRouter:()=>Vg,flyoutAnimationTime:()=>Us,focusStrokeInner:()=>r.focusStrokeInner,focusStrokeOuter:()=>r.focusStrokeOuter,focusStrokeWidth:()=>r.focusStrokeWidth,foregroundOnAccentActive:()=>r.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>r.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>r.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>r.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>r.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>r.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>r.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>r.foregroundOnAccentRestLarge,formatTimeForCountDown:()=>Kh,formatToPlaceholder:()=>vo,foundationAccordion:()=>m,foundationAccordionItem:()=>w,foundationAccordionItemShadowOptions:()=>b,foundationAccordionItemStyles:()=>v,foundationAccordionItemTemplate:()=>g,foundationAccordionShadowOptions:()=>h,foundationAccordionStyles:()=>d,foundationAccordionTemplate:()=>c,foundationActionsMenu:()=>A,foundationActionsMenuStyles:()=>S,foundationActionsMenuTemplate:()=>I,foundationAiCriteriaSearch:()=>Oe,foundationAiCriteriaSearchShadowOptions:()=>Se,foundationAiCriteriaSearchStyles:()=>_,foundationAiCriteriaSearchTemplate:()=>B,foundationAiIndicator:()=>Ie,foundationAiIndicatorStyles:()=>Te,foundationAiIndicatorTemplate:()=>ke,foundationAnchor:()=>Me,foundationAnchorShadowOptions:()=>Ne,foundationAnchorStyles:()=>Re,foundationAnchorTemplate:()=>Ae,foundationAnchoredRegion:()=>Be,foundationAnchoredRegionShadowOptions:()=>ze,foundationAnchoredRegionStyles:()=>He,foundationAnchoredRegionTemplate:()=>_e,foundationAvatar:()=>Ke,foundationAvatarShadowOptions:()=>We,foundationAvatarStyles:()=>Ve,foundationAvatarTemplate:()=>Ge,foundationBadge:()=>tt,foundationBadgeShadowOptions:()=>Ze,foundationBadgeStyles:()=>Xe,foundationBadgeTemplate:()=>Je,foundationBanner:()=>dt,foundationBannerShadowOptions:()=>rt,foundationBannerStyles:()=>nt,foundationBannerTemplate:()=>st,foundationBreadcrumb:()=>vt,foundationBreadcrumbItem:()=>Ct,foundationBreadcrumbItemShadowOptions:()=>yt,foundationBreadcrumbItemStyles:()=>gt,foundationBreadcrumbItemTemplate:()=>ft,foundationBreadcrumbShadowOptions:()=>pt,foundationBreadcrumbStyles:()=>ct,foundationBreadcrumbTemplate:()=>ut,foundationButton:()=>Tt,foundationButtonShadowOptions:()=>Et,foundationButtonStyles:()=>xt,foundationButtonTemplate:()=>$t,foundationCalendar:()=>Lt,foundationCalendarShadowOptions:()=>Rt,foundationCalendarStyles:()=>kt,foundationCalendarTemplate:()=>Dt,foundationCard:()=>Pt,foundationCardShadowOptions:()=>_t,foundationCardStyles:()=>Nt,foundationCardTemplate:()=>Ft,foundationCategorizedMultiselect:()=>qt,foundationCategorizedMultiselectShadowOptions:()=>jt,foundationCheckbox:()=>ei,foundationCheckboxShadowOptions:()=>Qt,foundationCheckboxStyles:()=>Kt,foundationCheckboxTemplate:()=>Xt,foundationCombobox:()=>Oi,foundationComboboxShadowOptions:()=>Si,foundationComboboxStyles:()=>yi,foundationComboboxTemplate:()=>wi,foundationConnectionIndicator:()=>Ri,foundationConnectionIndicatorStyles:()=>ki,foundationConnectionIndicatorTemplate:()=>Di,foundationDataGrid:()=>_i,foundationDataGridCell:()=>Bi,foundationDataGridCellShadowOptions:()=>zi,foundationDataGridCellStyles:()=>Hi,foundationDataGridCellTemplate:()=>s.dataGridCellTemplate,foundationDataGridRow:()=>Wi,foundationDataGridRowShadowOptions:()=>ji,foundationDataGridRowStyles:()=>Vi,foundationDataGridRowTemplate:()=>s.dataGridRowTemplate,foundationDataGridShadowOptions:()=>Fi,foundationDataGridStyles:()=>Ai,foundationDataGridTemplate:()=>Li,foundationDatePicker:()=>Eo,foundationDatePickerShadowOptions:()=>xo,foundationDatePickerStyles:()=>ro,foundationDatePickerTemplate:()=>uo,foundationDesignSystemProvider:()=>xn,foundationDialog:()=>Ln,foundationDialogShadowOptions:()=>Dn,foundationDialogStyles:()=>Sn,foundationDialogTemplate:()=>kn,foundationDisclosure:()=>Pn,foundationDisclosureShadowOptions:()=>_n,foundationDisclosureStyles:()=>Nn,foundationDisclosureTemplate:()=>Fn,foundationDivider:()=>jn,foundationDividerShadowOptions:()=>Vn,foundationDividerStyles:()=>zn,foundationDividerTemplate:()=>Un,foundationDropdownMenu:()=>Qn,foundationDropdownMenuStyles:()=>Wn,foundationDropdownMenuTemplate:()=>Xn,foundationEnvironmentIndicator:()=>ha,foundationEnvironmentIndicatorTemplate:()=>ta,foundationErrorBanner:()=>fa,foundationErrorBannerShadowOptions:()=>va,foundationErrorBannerTemplate:()=>ma,foundationErrorBoundary:()=>Ra,foundationErrorBoundaryShadowOptions:()=>Da,foundationErrorBoundaryTemplate:()=>ka,foundationErrorDialog:()=>_a,foundationErrorDialogShadowOptions:()=>Fa,foundationErrorDialogStyles:()=>Aa,foundationFileReader:()=>Ga,foundationFileReaderStyles:()=>za,foundationFileUpload:()=>ss,foundationFileUploadShadowOptions:()=>ns,foundationFileUploadStyles:()=>Wa,foundationFileUploadTemplate:()=>Ka,foundationFilter:()=>fs,foundationFilterBar:()=>Os,foundationFilterBarStyles:()=>ys,foundationFilterBarTemplate:()=>$s,foundationFilterStyles:()=>rs,foundationFilterTemplate:()=>ms,foundationFlexLayout:()=>Ns,foundationFlexLayoutShadowOptions:()=>Rs,foundationFlexLayoutStyles:()=>Ds,foundationFlexLayoutTemplate:()=>Is,foundationFlipper:()=>zs,foundationFlipperShadowOptions:()=>Hs,foundationFlipperStyles:()=>Fs,foundationFlipperTemplate:()=>Ms,foundationFlyout:()=>qs,foundationFlyoutShadowOptions:()=>Ys,foundationFlyoutStyles:()=>Bs,foundationFlyoutTemplate:()=>Gs,foundationGridLayout:()=>or,foundationGridLayoutItem:()=>lr,foundationGridLayoutItemShadowOptions:()=>ar,foundationGridLayoutItemTemplate:()=>nr,foundationGridLayoutShadowOptions:()=>Zs,foundationGridLayoutStyles:()=>Js,foundationGridLayoutTemplate:()=>Qs,foundationHorizontalScroll:()=>mr,foundationHorizontalScrollShadowOptions:()=>hr,foundationHorizontalScrollStyles:()=>dr,foundationHorizontalScrollTemplate:()=>cr,foundationIcon:()=>Ir,foundationIconShadowOptions:()=>Sr,foundationIconStyles:()=>Cr,foundationIconTemplate:()=>$r,foundationListbox:()=>Mr,foundationListboxOption:()=>Br,foundationListboxOptionShadowOptions:()=>zr,foundationListboxOptionStyles:()=>_r,foundationListboxOptionTemplate:()=>Hr,foundationListboxShadowOptions:()=>Nr,foundationListboxStyles:()=>Rr,foundationListboxTemplate:()=>Ar,foundationMenu:()=>qr,foundationMenuItem:()=>el,foundationMenuItemShadowOptions:()=>Qr,foundationMenuItemStyles:()=>Kr,foundationMenuItemTemplate:()=>Xr,foundationMenuShadowOptions:()=>Yr,foundationMenuStyles:()=>Vr,foundationMenuTemplate:()=>Gr,foundationModal:()=>sl,foundationModalShadowOptions:()=>ol,foundationModalStyles:()=>tl,foundationModalTemplate:()=>il,foundationMultiselect:()=>vl,foundationMultiselectShadowOptions:()=>hl,foundationNotificationListener:()=>Sg,foundationNotificationListenerShadowOptions:()=>xg,foundationNotificationListenerTemplate:()=>Cg,foundationNumberField:()=>Ul,foundationNumberFieldShadowOptions:()=>Pl,foundationNumberFieldStyles:()=>Cl,foundationNumberFieldTemplate:()=>xl,foundationOptgroup:()=>jl,foundationOptgroupStyles:()=>Bl,foundationOptgroupTemplate:()=>Vl,foundationPill:()=>Nd,foundationPillShadowOptions:()=>Rd,foundationPillTemplate:()=>Id,foundationPopper:()=>zd,foundationProgress:()=>fd,foundationProgressRing:()=>Yd,foundationProgressRingShadowOptions:()=>Gd,foundationProgressRingStyles:()=>Ud,foundationProgressRingTemplate:()=>Bd,foundationProgressShadowOptions:()=>vd,foundationProgressStyles:()=>hd,foundationProgressTemplate:()=>pd,foundationRadio:()=>Qd,foundationRadioGroup:()=>nc,foundationRadioGroupShadowOptions:()=>ic,foundationRadioGroupStyles:()=>Zd,foundationRadioGroupTemplate:()=>ec,foundationRadioShadowOptions:()=>Xd,foundationRadioStyles:()=>Wd,foundationRadioTemplate:()=>qd,foundationScheduler:()=>uc,foundationSchedulerCronBuilder:()=>cu,foundationSchedulerCronBuilderShadowOptions:()=>lu,foundationSchedulerCronBuilderTemplate:()=>su,foundationSchedulerShadowOptions:()=>dc,foundationSchedulerTemplate:()=>rc,foundationSchedulerTimezone:()=>fu,foundationSchedulerTimezoneShadowOptions:()=>vu,foundationSchedulerTimezoneTemplate:()=>pu,foundationSearchBar:()=>Iu,foundationSearchBarCombobox:()=>_u,foundationSearchBarComboboxShadowOptions:()=>Fu,foundationSearchBarComboboxStyles:()=>Ru,foundationSearchBarComboboxTemplate:()=>Au,foundationSearchBarShadowOptions:()=>ku,foundationSearchBarStyles:()=>bu,foundationSearchBarTemplate:()=>xu,foundationSectionNavigator:()=>qu,foundationSectionNavigatorShadowOptions:()=>Yu,foundationSectionNavigatorStyles:()=>Hu,foundationSectionNavigatorTemplate:()=>Pu,foundationSegmentedControl:()=>eh,foundationSegmentedControlShadowOptions:()=>Qu,foundationSegmentedControlStyles:()=>Ku,foundationSegmentedControlTemplate:()=>Xu,foundationSegmentedItem:()=>sh,foundationSegmentedItemShadowOptions:()=>nh,foundationSegmentedItemStyles:()=>th,foundationSegmentedItemTemplate:()=>ih,foundationSelect:()=>hh,foundationSelectShadowOptions:()=>ch,foundationSelectStyles:()=>rh,foundationSelectTemplate:()=>lh,foundationSkeleton:()=>bh,foundationSkeletonShadowOptions:()=>gh,foundationSkeletonStyles:()=>ph,foundationSkeletonTemplate:()=>mh,foundationSlider:()=>Oh,foundationSliderLabel:()=>Ah,foundationSliderLabelShadowOptions:()=>Ih,foundationSliderLabelStyles:()=>Th,foundationSliderLabelTemplate:()=>kh,foundationSliderShadowOptions:()=>Sh,foundationSliderStyles:()=>yh,foundationSliderTemplate:()=>xh,foundationSnackbar:()=>Bh,foundationSnackbarShadowOptions:()=>zh,foundationSnackbarStyles:()=>_h,foundationSnackbarTemplate:()=>Ph,foundationStackingIcons:()=>Yh,foundationStackingIconsStyles:()=>Vh,foundationStackingIconsTemplate:()=>Gh,foundationStatusPill:()=>Jh,foundationStatusPillTemplate:()=>qh,foundationStepper:()=>cf,foundationStepperShadowOptions:()=>lf,foundationStepperStyles:()=>sf,foundationStepperTab:()=>np,foundationStepperTabPanel:()=>dp,foundationStepperTabPanelShadowOptions:()=>rp,foundationStepperTabPanelTemplate:()=>ap,foundationStepperTabShadowOptions:()=>ip,foundationStepperTabStyles:()=>Qh,foundationStepperTabTemplate:()=>ep,foundationStepperTemplate:()=>af,foundationSwitch:()=>vp,foundationSwitchShadowOptions:()=>pp,foundationSwitchStyles:()=>cp,foundationSwitchTemplate:()=>up,foundationSystemHealthOverlay:()=>Td,foundationSystemHealthOverlayShadowOptions:()=>Ed,foundationSystemHealthOverlayStyles:()=>Sd,foundationSystemHealthOverlayTemplate:()=>$d,foundationTab:()=>Cp,foundationTabPanel:()=>Tp,foundationTabPanelShadowOptions:()=>Ep,foundationTabPanelStyles:()=>xp,foundationTabPanelTemplate:()=>$p,foundationTabShadowOptions:()=>yp,foundationTabStyles:()=>gp,foundationTabTemplate:()=>fp,foundationTabs:()=>Lp,foundationTabsShadowOptions:()=>Rp,foundationTabsStyles:()=>kp,foundationTabsTemplate:()=>Dp,foundationTextArea:()=>Pp,foundationTextAreaShadowOptions:()=>_p,foundationTextAreaStyles:()=>Np,foundationTextAreaTemplate:()=>Fp,foundationTextField:()=>Wp,foundationTextFieldShadowOptions:()=>jp,foundationTextFieldStyles:()=>Bp,foundationTextFieldTemplate:()=>Vp,foundationToast:()=>em,foundationToastShadowOptions:()=>Jp,foundationToastStyles:()=>qp,foundationToastTemplate:()=>Xp,foundationToolbar:()=>sm,foundationToolbarShadowOptions:()=>nm,foundationToolbarStyles:()=>tm,foundationToolbarTemplate:()=>im,foundationTooltip:()=>hm,foundationTooltipShadowOptions:()=>cm,foundationTooltipStyles:()=>rm,foundationTooltipTemplate:()=>lm,foundationTreeItem:()=>bm,foundationTreeItemShadowOptions:()=>gm,foundationTreeItemStyles:()=>pm,foundationTreeItemTemplate:()=>mm,foundationTreeView:()=>Sm,foundationTreeViewShadowOptions:()=>xm,foundationTreeViewStyles:()=>ym,foundationTreeViewTemplate:()=>wm,foundationUrlInput:()=>Rm,foundationUrlInputShadowOptions:()=>km,foundationUrlInputStyles:()=>Em,foundationUrlInputTemplate:()=>Tm,fromBinaryExpression:()=>ug,fromMethodExpression:()=>hg,fuiAccentPalette:()=>Po,fuiAccentSwatch:()=>Ho,fuiCardFillColor:()=>Bo,fuiCardForegroundColor:()=>jo,fuiDefaultCardFillColor:()=>Ao,fuiDefaultCardPalette:()=>Lo,fuiFillColor:()=>Uo,fuiNeutralPalette:()=>Mo,fuiNeutralSwatch:()=>Fo,getBannerTemplate:()=>at,getBrowserLocale:()=>po,getCriteriaBuilder:()=>Ou,getDefaultConfig:()=>nn,getDesignSystemPrefix:()=>T,getDialogTemplate:()=>Tn,getDisplayFormatForLang:()=>mo,getDropdownMenuTemplate:()=>Kn,getErrorDialogTemplate:()=>La,getExports:()=>an,getFontawesomeIconsCss:()=>wr,getNavItems:()=>Jg,getPrefixedCategorizedMultiselect:()=>Vt,getPrefixedCronBuilder:()=>au,getPrefixedDatePicker:()=>co,getPrefixedErrorBanner:()=>pa,getPrefixedFileReader:()=>Ua,getPrefixedFileUpload:()=>qa,getPrefixedFilterTemplate:()=>ps,getPrefixedFlyout:()=>Vs,getPrefixedIcon:()=>xr,getPrefixedMultiselect:()=>cl,getPrefixedScheduler:()=>sc,getPrefixedSchedulerTimezone:()=>hu,getPrefixedSearchBar:()=>Cu,getPrefixedSnackbar:()=>Hh,getPrefixedStepper:()=>nf,getPrefixedStepperTab:()=>Zh,getPrefixedToast:()=>Kp,getPrefixedUrlInput:()=>Om,getTypeRampValue:()=>sn,groupsToCriteria:()=>X,hasDateValue:()=>go,inputControls:()=>Hc,isAbsoluteUrl:()=>zg,jsonConverter:()=>Md,mapType:()=>ws,maxheight:()=>rl,media:()=>je,menuTemplate:()=>k,mixinFoundationFontFamily:()=>fn,months:()=>bc,multiselectStyles:()=>ll,multiselectTemplate:()=>ul,neutralFillActive:()=>r.neutralFillActive,neutralFillActiveDelta:()=>r.neutralFillActiveDelta,neutralFillFocus:()=>r.neutralFillFocus,neutralFillFocusDelta:()=>r.neutralFillFocusDelta,neutralFillHover:()=>r.neutralFillHover,neutralFillHoverDelta:()=>r.neutralFillHoverDelta,neutralFillInputActive:()=>r.neutralFillInputActive,neutralFillInputActiveDelta:()=>r.neutralFillInputActiveDelta,neutralFillInputFocus:()=>r.neutralFillInputFocus,neutralFillInputFocusDelta:()=>r.neutralFillInputFocusDelta,neutralFillInputHover:()=>r.neutralFillInputHover,neutralFillInputHoverDelta:()=>r.neutralFillInputHoverDelta,neutralFillInputRest:()=>r.neutralFillInputRest,neutralFillInputRestDelta:()=>r.neutralFillInputRestDelta,neutralFillLayerRest:()=>r.neutralFillLayerRest,neutralFillLayerRestDelta:()=>r.neutralFillLayerRestDelta,neutralFillRest:()=>r.neutralFillRest,neutralFillRestDelta:()=>r.neutralFillRestDelta,neutralFillStealthActive:()=>r.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>r.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>r.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>r.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>r.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>r.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>r.neutralFillStealthRest,neutralFillStealthRestDelta:()=>r.neutralFillStealthRestDelta,neutralFillStrongActive:()=>r.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>r.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>r.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>r.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>r.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>r.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>r.neutralFillStrongRest,neutralFillStrongRestDelta:()=>r.neutralFillStrongRestDelta,neutralForeground:()=>Go,neutralForegroundHint:()=>r.neutralForegroundHint,neutralForegroundRest:()=>r.neutralForegroundRest,neutralLayer1:()=>r.neutralLayer1,neutralLayer2:()=>r.neutralLayer2,neutralLayer3:()=>r.neutralLayer3,neutralLayer4:()=>r.neutralLayer4,neutralLayerCardContainer:()=>r.neutralLayerCardContainer,neutralLayerFloating:()=>r.neutralLayerFloating,neutralPalette:()=>r.neutralPalette,neutralPaletteValue:()=>un,neutralStrokeActive:()=>r.neutralStrokeActive,neutralStrokeActiveDelta:()=>r.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>r.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>r.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>r.neutralStrokeFocus,neutralStrokeFocusDelta:()=>r.neutralStrokeFocusDelta,neutralStrokeHover:()=>r.neutralStrokeHover,neutralStrokeHoverDelta:()=>r.neutralStrokeHoverDelta,neutralStrokeRest:()=>r.neutralStrokeRest,neutralStrokeRestDelta:()=>r.neutralStrokeRestDelta,optionsMaxheight:()=>Ut,paletteFromHex:()=>en,parseDatePickerValue:()=>bo,pathJoin:()=>Gg,pillStyles:()=>kd,plusIcon:()=>wu,provideDesignSystem:()=>yd,provideTokens:()=>Jo,rebuildOperator:()=>cg,registerFoundationDesignSystem:()=>gf,removeChildRouteParameter:()=>Yg,removeLastPathSegment:()=>jg,resolveDayjsLocale:()=>ho,routerLogger:()=>Ag,routerProperty:()=>Mg,ruleExpressionToGroup:()=>pg,ruleToRuleExpression:()=>lg,ruleToRuleMethodExpression:()=>rg,schedulerCronBuilderStyles:()=>Pc,schedulerStyles:()=>ac,schedulerTimezoneStyles:()=>uu,selectCustomToken:()=>ln,sharedFieldStyles:()=>wl,singleOptionTemplate:()=>D,statusPillStyles:()=>Wh,strokeWidth:()=>r.strokeWidth,swatchConverter:()=>Zo,tagFor:()=>Og,transformOperatorNameToServerName:()=>sg,transformServerNameToOperatorName:()=>dg,typeRampBaseFontSize:()=>r.typeRampBaseFontSize,typeRampBaseLineHeight:()=>r.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>r.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>r.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>r.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>r.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>r.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>r.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>r.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>r.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>r.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>r.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>r.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>r.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>r.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>r.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>r.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>r.typeRampPlus6LineHeight,uploadFiles:()=>Ja,validateClauses:()=>ce,validateGroups:()=>ue,weekNumber:()=>fc,white:()=>To});var o={};i.r(o),i.d(o,{accentFillActive:()=>r.accentFillActive,accentFillActiveDelta:()=>r.accentFillActiveDelta,accentFillFocus:()=>r.accentFillFocus,accentFillFocusDelta:()=>r.accentFillFocusDelta,accentFillHover:()=>r.accentFillHover,accentFillHoverDelta:()=>r.accentFillHoverDelta,accentFillRest:()=>r.accentFillRest,accentFillRestDelta:()=>r.accentFillRestDelta,accentForegroundActive:()=>r.accentForegroundActive,accentForegroundActiveDelta:()=>r.accentForegroundActiveDelta,accentForegroundFocus:()=>r.accentForegroundFocus,accentForegroundFocusDelta:()=>r.accentForegroundFocusDelta,accentForegroundHover:()=>r.accentForegroundHover,accentForegroundHoverDelta:()=>r.accentForegroundHoverDelta,accentForegroundRest:()=>r.accentForegroundRest,accentForegroundRestDelta:()=>r.accentForegroundRestDelta,accentPalette:()=>r.accentPalette,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseLayerLuminance:()=>r.baseLayerLuminance,bodyFont:()=>r.bodyFont,controlCornerRadius:()=>r.controlCornerRadius,defaultNeutralForegroundContrast:()=>Vo,density:()=>r.density,designUnit:()=>r.designUnit,direction:()=>r.direction,disabledOpacity:()=>r.disabledOpacity,fillColor:()=>r.fillColor,focusStrokeInner:()=>r.focusStrokeInner,focusStrokeOuter:()=>r.focusStrokeOuter,focusStrokeWidth:()=>r.focusStrokeWidth,foregroundOnAccentActive:()=>r.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>r.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>r.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>r.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>r.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>r.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>r.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>r.foregroundOnAccentRestLarge,fuiCardFillColor:()=>Bo,fuiCardForegroundColor:()=>jo,fuiFillColor:()=>Uo,neutralFillActive:()=>r.neutralFillActive,neutralFillActiveDelta:()=>r.neutralFillActiveDelta,neutralFillFocus:()=>r.neutralFillFocus,neutralFillFocusDelta:()=>r.neutralFillFocusDelta,neutralFillHover:()=>r.neutralFillHover,neutralFillHoverDelta:()=>r.neutralFillHoverDelta,neutralFillInputActive:()=>r.neutralFillInputActive,neutralFillInputActiveDelta:()=>r.neutralFillInputActiveDelta,neutralFillInputFocus:()=>r.neutralFillInputFocus,neutralFillInputFocusDelta:()=>r.neutralFillInputFocusDelta,neutralFillInputHover:()=>r.neutralFillInputHover,neutralFillInputHoverDelta:()=>r.neutralFillInputHoverDelta,neutralFillInputRest:()=>r.neutralFillInputRest,neutralFillInputRestDelta:()=>r.neutralFillInputRestDelta,neutralFillLayerRest:()=>r.neutralFillLayerRest,neutralFillLayerRestDelta:()=>r.neutralFillLayerRestDelta,neutralFillRest:()=>r.neutralFillRest,neutralFillRestDelta:()=>r.neutralFillRestDelta,neutralFillStealthActive:()=>r.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>r.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>r.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>r.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>r.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>r.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>r.neutralFillStealthRest,neutralFillStealthRestDelta:()=>r.neutralFillStealthRestDelta,neutralFillStrongActive:()=>r.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>r.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>r.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>r.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>r.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>r.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>r.neutralFillStrongRest,neutralFillStrongRestDelta:()=>r.neutralFillStrongRestDelta,neutralForeground:()=>Go,neutralForegroundHint:()=>r.neutralForegroundHint,neutralForegroundRest:()=>r.neutralForegroundRest,neutralLayer1:()=>r.neutralLayer1,neutralLayer2:()=>r.neutralLayer2,neutralLayer3:()=>r.neutralLayer3,neutralLayer4:()=>r.neutralLayer4,neutralLayerCardContainer:()=>r.neutralLayerCardContainer,neutralLayerFloating:()=>r.neutralLayerFloating,neutralPalette:()=>r.neutralPalette,neutralStrokeActive:()=>r.neutralStrokeActive,neutralStrokeActiveDelta:()=>r.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>r.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>r.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>r.neutralStrokeFocus,neutralStrokeFocusDelta:()=>r.neutralStrokeFocusDelta,neutralStrokeHover:()=>r.neutralStrokeHover,neutralStrokeHoverDelta:()=>r.neutralStrokeHoverDelta,neutralStrokeRest:()=>r.neutralStrokeRest,neutralStrokeRestDelta:()=>r.neutralStrokeRestDelta,strokeWidth:()=>r.strokeWidth,typeRampBaseFontSize:()=>r.typeRampBaseFontSize,typeRampBaseLineHeight:()=>r.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>r.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>r.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>r.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>r.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>r.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>r.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>r.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>r.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>r.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>r.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>r.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>r.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>r.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>r.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>r.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>r.typeRampPlus6LineHeight});var n={};i.r(n),i.d(n,{accentPaletteValue:()=>cn,baseLayerLuminanceValue:()=>hn,controlCornerRadiusValue:()=>mn,designUnitValue:()=>vn,directionValue:()=>pn,neutralPaletteValue:()=>un});var a={};i.r(a),i.d(a,{BASE_LOGICAL_COMBINATORS:()=>Fm,BASE_OPERATORS:()=>Um,LOGICAL_COMBINATORS:()=>Mm,NULL_COMBINATOR:()=>_m});var s=i(38370),r=i(54634),l=i(33681);const d=(e,t)=>l.css`
2
2
  ${(0,r.accordionStyles)(e,t)}
3
- `,c=(e,t)=>(0,a.accordionTemplate)(e,t);class u extends a.Accordion{}const h={delegatesFocus:!0,mode:"open"},p={},m=u.compose(Object.assign({baseName:"accordion",template:c,styles:d,shadowOptions:h},p)),g=(e,t)=>l.css`
3
+ `,c=(e,t)=>(0,s.accordionTemplate)(e,t);class u extends s.Accordion{}const h={delegatesFocus:!0,mode:"open"},p={},m=u.compose(Object.assign({baseName:"accordion",template:c,styles:d,shadowOptions:h},p)),v=(e,t)=>l.css`
4
4
  ${(0,r.accordionItemStyles)(e,t)}
5
5
 
6
6
  slot[name='collapsed-icon'] {
@@ -14,7 +14,7 @@
14
14
  stroke: var(--accent-foreground-rest);
15
15
  fill: none;
16
16
  }
17
- `,v=(e,t)=>(0,a.accordionItemTemplate)(e,t);class f extends r.AccordionItem{}const b={delegatesFocus:!0,mode:"open"},y={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>'},w=f.compose(Object.assign({baseName:"accordion-item",template:v,styles:g,shadowOptions:b},y));var C=i(55823),x=i(31679);const $=(e,t)=>l.css`
17
+ `,g=(e,t)=>(0,s.accordionItemTemplate)(e,t);class f extends r.AccordionItem{}const b={delegatesFocus:!0,mode:"open"},y={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>'},w=f.compose(Object.assign({baseName:"accordion-item",template:g,styles:v,shadowOptions:b},y));var C=i(55823),x=i(31679);const $=(e,t)=>l.css`
18
18
  :host {
19
19
  --actions-opener-height-multiplier: 0.7px;
20
20
  --actions-opener-bg-color: 249 254 255;
@@ -160,7 +160,7 @@
160
160
  >
161
161
  ${e=>e.getTemplate(T(e))}
162
162
  </div>
163
- `;class R extends a.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 i;this.actions=null!==(i=null==t?void 0:t.actions)&&void 0!==i?i:[],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,x.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 k(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],D(e)):k(e):void 0}}(0,C.Cg)([l.observable],R.prototype,"actions",void 0),(0,C.Cg)([(0,l.attr)({attribute:"is-vertical",mode:"boolean"})],R.prototype,"isVertical",void 0),(0,C.Cg)([(0,l.attr)({attribute:"add-default-actions",mode:"boolean"})],R.prototype,"addDefaultActions",void 0),(0,C.Cg)([(0,l.attr)({attribute:"auto-close-on-action",mode:"boolean"})],R.prototype,"autoCloseOnAction",void 0),(0,C.Cg)([l.observable],R.prototype,"classNames",void 0),(0,C.Cg)([l.observable],R.prototype,"definition",void 0),(0,C.Cg)([l.attr],R.prototype,"name",void 0),(0,C.Cg)([(0,l.attr)({attribute:"open",mode:"boolean"})],R.prototype,"open",void 0),(0,C.Cg)([l.attr],R.prototype,"buttonAppearance",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-disabled",mode:"boolean"})],R.prototype,"hideDisabled",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],R.prototype,"hideMenuSingleOption",void 0),(0,C.Cg)([l.observable],R.prototype,"singleOption",void 0);const A=R.compose({baseName:"actions-menu",styles:S,template:I});function L(){return"undefined"!=typeof window&&("SpeechRecognition"in window||"webkitSpeechRecognition"in window)}class N{getStatus(){return(0,C.sH)(this,void 0,void 0,function*(){return{provider:"none",model:""}})}interpretCriteria(e,t){return(0,C.sH)(this,void 0,void 0,function*(){return null})}}class F{constructor(){this.noopProvider=new N}get(e){return e===F.DEFAULT_NAME?this.noopProvider:void 0}default(){return this.noopProvider}defaultName(){return F.DEFAULT_NAME}names(){return[F.DEFAULT_NAME]}getStatus(e){return(0,C.sH)(this,void 0,void 0,function*(){var t,i,o;return void 0!==e&&e!==F.DEFAULT_NAME?null:null!==(o=yield null===(i=(t=this.noopProvider).getStatus)||void 0===i?void 0:i.call(t))&&void 0!==o?o:null})}listStatuses(){return(0,C.sH)(this,void 0,void 0,function*(){var e,t,i;const o=null!==(i=yield null===(t=(e=this.noopProvider).getStatus)||void 0===t?void 0:t.call(e))&&void 0!==i?i:null;return[{name:F.DEFAULT_NAME,isDefault:!0,status:o}]})}}F.DEFAULT_NAME="default";const M=a.DI.createInterface(e=>e.singleton(F));const _=l.css`
163
+ `;class R extends s.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 i;this.actions=null!==(i=null==t?void 0:t.actions)&&void 0!==i?i:[],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,x.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 k(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],D(e)):k(e):void 0}}(0,C.Cg)([l.observable],R.prototype,"actions",void 0),(0,C.Cg)([(0,l.attr)({attribute:"is-vertical",mode:"boolean"})],R.prototype,"isVertical",void 0),(0,C.Cg)([(0,l.attr)({attribute:"add-default-actions",mode:"boolean"})],R.prototype,"addDefaultActions",void 0),(0,C.Cg)([(0,l.attr)({attribute:"auto-close-on-action",mode:"boolean"})],R.prototype,"autoCloseOnAction",void 0),(0,C.Cg)([l.observable],R.prototype,"classNames",void 0),(0,C.Cg)([l.observable],R.prototype,"definition",void 0),(0,C.Cg)([l.attr],R.prototype,"name",void 0),(0,C.Cg)([(0,l.attr)({attribute:"open",mode:"boolean"})],R.prototype,"open",void 0),(0,C.Cg)([l.attr],R.prototype,"buttonAppearance",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-disabled",mode:"boolean"})],R.prototype,"hideDisabled",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-menu-single-option",mode:"boolean"})],R.prototype,"hideMenuSingleOption",void 0),(0,C.Cg)([l.observable],R.prototype,"singleOption",void 0);const A=R.compose({baseName:"actions-menu",styles:S,template:I});function L(){return"undefined"!=typeof window&&("SpeechRecognition"in window||"webkitSpeechRecognition"in window)}class N{getStatus(){return(0,C.sH)(this,void 0,void 0,function*(){return{provider:"none",model:""}})}interpretCriteria(e,t){return(0,C.sH)(this,void 0,void 0,function*(){return null})}}class F{constructor(){this.noopProvider=new N}get(e){return e===F.DEFAULT_NAME?this.noopProvider:void 0}default(){return this.noopProvider}defaultName(){return F.DEFAULT_NAME}names(){return[F.DEFAULT_NAME]}getStatus(e){return(0,C.sH)(this,void 0,void 0,function*(){var t,i,o;return void 0!==e&&e!==F.DEFAULT_NAME?null:null!==(o=yield null===(i=(t=this.noopProvider).getStatus)||void 0===i?void 0:i.call(t))&&void 0!==o?o:null})}listStatuses(){return(0,C.sH)(this,void 0,void 0,function*(){var e,t,i;const o=null!==(i=yield null===(t=(e=this.noopProvider).getStatus)||void 0===t?void 0:t.call(e))&&void 0!==i?i:null;return[{name:F.DEFAULT_NAME,isDefault:!0,status:o}]})}}F.DEFAULT_NAME="default";const M=s.DI.createInterface(e=>e.singleton(F));const _=l.css`
164
164
  :host {
165
165
  display: block;
166
166
  width: 800px;
@@ -332,7 +332,7 @@
332
332
  </div>
333
333
  `)}
334
334
  `;var t}}
335
- `;var V=i(95553),G=i(58749),j=i(14609),Y=i(86636);const W={contains:V.n.containsIgnoreCase,equals:V.n.EQ,startsWith:V.n.startsWith,endsWith:V.n.endsWith,greaterThan:V.n.GT,lessThan:V.n.LT,greaterThanOrEqual:V.n.GE,lessThanOrEqual:V.n.LE,notEqual:V.n.NE,dateIsToday:V.n.dateIsToday,dateIsAfter:V.n.dateIsGreaterEqual,dateIsGreaterEqual:V.n.dateIsGreaterEqual,dateIsBefore:V.n.dateIsLessEqual,dateIsLessEqual:V.n.dateIsLessEqual,dateIsEqual:V.n.dateIsEqual,dateTimeIsAfter:V.n.dateTimeIsGreaterEqual,dateTimeIsGreaterEqual:V.n.dateTimeIsGreaterEqual,dateTimeIsBefore:V.n.dateTimeIsLessEqual,dateTimeIsLessEqual:V.n.dateTimeIsLessEqual};function q(e){var t,i;const o=null!==(t=W[e.operator])&&void 0!==t?t:V.n.containsIgnoreCase;return(new G.K).withField(e.field).withValue(null!==(i=e.value)&&void 0!==i?i:null).withSerialiser(o).withGroup("default").build()}function K(e,t){return 1===e.length?e[0]:e.reduce((e,i,o)=>0===o?[i]:[...e,t,i],[])}function X(e){var t;const i=new j.b;let o=!1;for(const n of e){if(!(null===(t=n.clauses)||void 0===t?void 0:t.length))continue;const e=n.clauses.map(q),s="or"===n.logic?Y.r.Or():Y.r.And(),a=K(e,s),r=e.length>1?{join:s}:{};n.negated?i.And([Y.r.Not(),a]):i.And(1===e.length?e[0]:e,r),o=!0}return o?i.build():""}const J=["contains","equals","startsWith","endsWith","notEqual"],Q=["equals","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual","notEqual"],Z=["dateIsToday","dateIsAfter","dateIsBefore","dateIsEqual","dateIsGreaterEqual","dateIsLessEqual"],ee=["dateTimeIsAfter","dateTimeIsBefore","dateTimeIsGreaterEqual","dateTimeIsLessEqual"],te={contains:"contains",equals:"=",startsWith:"starts with",endsWith:"ends with",notEqual:"≠",greaterThan:">",lessThan:"<",greaterThanOrEqual:"≥",lessThanOrEqual:"≤",dateIsToday:"is today",dateIsAfter:"after",dateIsBefore:"before",dateIsEqual:"=",dateIsGreaterEqual:"≥",dateIsLessEqual:"≤",dateTimeIsAfter:"after",dateTimeIsBefore:"before",dateTimeIsGreaterEqual:"≥",dateTimeIsLessEqual:"≤"},ie=new Set(["DATE","LOCALDATE"]),oe=new Set(["DATETIME","NANO_TIMESTAMP","LOCALDATETIME","TIMESTAMP"]),ne=new Set(["INT","INTEGER","LONG","SHORT","DOUBLE","BIGDECIMAL","DECIMAL"]);function se(e){return(e||"").toUpperCase().trim().split("(")[0].trim()}function ae(e){const t=se(e);return ie.has(t)?Z:oe.has(t)?ee:ne.has(t)?Q:J}function re(e){return ne.has(se(e))}function le(e){return null!=e&&("number"==typeof e?!Number.isNaN(e)&&e>0:"string"==typeof e&&(/^\d{8}$/.test(e)||/^\d{4}-\d{2}-\d{2}$/.test(e)||/^\d{8}-\d{2}:\d{2}(:\d{2})?$/.test(e)))}function de(e){return null!=e&&("number"==typeof e?!Number.isNaN(e):"string"==typeof e&&!Number.isNaN(Number(e)))}function ce(e,t){const i=[],o=[],n=new Map;if(Array.isArray(t)&&t.length>0){"string"==typeof t[0]?t.forEach(e=>n.set(e,void 0)):t.forEach(e=>n.set(e.NAME,e))}for(const t of e){const{field:e,operator:s,value:a}=t;if(!e||"string"!=typeof e){o.push({field:String(e),message:"Field name is required"});continue}const r=n.get(e),l=r&&"TYPE"in r?r.TYPE:"STRING";ae(l).includes(s)?!Z.includes(s)&&!ee.includes(s)||"dateIsToday"===s||le(a)?re(l)&&Q.includes(s)&&!de(a)?o.push({field:e,operator:s,value:a,message:"Invalid numeric value"}):n.size>0&&!n.has(e)?o.push({field:e,operator:s,value:a,message:`Unknown field '${e}'`}):i.push(t):o.push({field:e,operator:s,value:a,message:"Invalid date/datetime value; use yyyyMMdd, yyyy-MM-dd, or epoch"}):o.push({field:e,operator:s,value:a,message:`Operator '${s}' is not allowed for field type ${l}`})}return{valid:i,invalid:o}}function ue(e,t){var i;const o=[],n=[];for(const s of e){if(!(null==s?void 0:s.clauses)||!Array.isArray(s.clauses)){n.push({field:"",message:"Group must have a clauses array"});continue}const{valid:e,invalid:a}=ce(s.clauses,t);n.push(...a),e.length>0&&o.push({logic:null!==(i=s.logic)&&void 0!==i?i:"and",negated:s.negated,clauses:e})}return{valid:o,invalid:n}}var he=i(60416);var pe,me,ge,ve=i(31274);!function(e){e.NOTIFICATION_EVENT="notification-event"}(pe||(pe={})),function(e){e.Top="top",e.Bottom="bottom"}(me||(me={})),function(e){e.Left="left",e.Right="right"}(ge||(ge={}));const fe="12px";var be=i(52945);const ye=(e,t,i)=>{var o,n,s,a,r,l,d,c,u,h,p,m,g,v,f,b,y,w,C;(0,he.u_)(e);const x=t.split("-")[0],$=(null===(n=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.toast)||void 0===n?void 0:n.position)||"top-right",S=null!==(s=null!=i?i:(e=>(0,be.fI)(document.body).find(t=>"notify-container"===t.tagName.toLowerCase()&&t.position===e))($))&&void 0!==s?s:(0,he.jE)("notify-container",t);S&&"notify-container"!==S.tagName.toLowerCase()&&function(e,t){var i,o;switch(t.style.position="fixed",null===(o=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.toast)||void 0===o?void 0:o.position){case"top-left":t.style.top="var(--nav-height, 0)",t.style.left="0";break;case"bottom-left":t.style.bottom="0",t.style.left="0";break;case"bottom-right":t.style.bottom="0",t.style.right="0";break;default:t.style.top="var(--nav-height, 0)",t.style.right="0"}}(e,S);const E=document.createElement(`${x}-toast`),O=document.createElement("div");O.setAttribute("slot","top"),O.textContent=e.title;const T=document.createElement("div");T.setAttribute("slot","content"),T.textContent=(null==e?void 0:e.body)||"";const k=document.createElement("div");let D;k.setAttribute("slot","date"),k.textContent=(null===(a=null==e?void 0:e.createdAt)||void 0===a?void 0:a.toLocaleTimeString())||"",(null===(l=null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.toast)||void 0===l?void 0:l.buttons)&&(null===(u=null===(c=null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.toast)||void 0===c?void 0:c.buttons)||void 0===u?void 0:u.length)&&(D=document.createElement("div"),D.setAttribute("slot","bottom"),e.config.toast.buttons.forEach(t=>{const i=document.createElement(`${x}-button`);i.textContent=t.placeholder||"example placeholder",i.addEventListener("click",()=>{const{details:o}=e.config.toast;if(t.action)return t.action({details:o,buttonElement:i,toastElement:E})}),t.appearance&&i.setAttribute("appearance",t.appearance),D.appendChild(i)})),E.setAttribute("notify",(null===(p=null===(h=null==e?void 0:e.config)||void 0===h?void 0:h.toast)||void 0===p?void 0:p.type)||""),e.iconName&&E.setAttribute("notification-icon",e.iconName),(null===(g=null===(m=null==e?void 0:e.config)||void 0===m?void 0:m.toast)||void 0===g?void 0:g.autoClose)&&E.setAttribute("auto-close",`${null===(f=null===(v=null==e?void 0:e.config)||void 0===v?void 0:v.toast)||void 0===f?void 0:f.autoClose}`),(null===(y=null===(b=null==e?void 0:e.config)||void 0===b?void 0:b.toast)||void 0===y?void 0:y.closeTimeout)&&E.setAttribute("close-timeout",`${null===(C=null===(w=null==e?void 0:e.config)||void 0===w?void 0:w.toast)||void 0===C?void 0:C.closeTimeout}`),E.appendChild(O),E.appendChild(T),E.appendChild(k),D&&E.appendChild(D),S.prepend(E)},we={alert:e=>{(0,he.u_)(e),alert((0,he.uP)(e))},toast:ye,dialog:ve.u,snackbar:(e,t)=>{var i,o,n,s,a,r;(0,he.u_)(e);const l=t.split("-")[0],d=document.createElement(`${l}-snackbar`),c=null!==(n=null===(o=null===(i=e.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.verticalEdge)&&void 0!==n?n:me.Bottom,u=null!==(r=null===(a=null===(s=e.config)||void 0===s?void 0:s.snackbar)||void 0===a?void 0:a.horizontalEdge)&&void 0!==r?r:ge.Left,h=(0,he.jE)(`snack-container-${c}-${u}`,t);h&&((e,t,i)=>{e.style.position="fixed",e.style.top=t===me.Top?fe:"",e.style.bottom=t===me.Bottom?fe:"",e.style.left=i===ge.Left?fe:"",e.style.right=i===ge.Right?fe:""})(h,c,u),h.appendChild(d),d.notification=e},banner:(e,t,i)=>{var o;(0,he.u_)(e);const n=t.split("-")[0],s=document.createElement(`${n}-banner`),a=(0,he.cL)(i);(null===(o=null==a?void 0:a.children)||void 0===o?void 0:o.length)>0&&(s.style.position="absolute",s.style.top="0",s.style.left="0",s.style.width="100%"),a.appendChild(s),s.notification=e}},Ce=(e,t,i)=>{Object.keys((null==e?void 0:e.config)||{}).forEach(o=>{we[o]&&we[o](e,t,i)})};function xe(e,t,i){(null==t?void 0:t.trim())&&Ce({title:e,body:t,config:{toast:{autoClose:!0,closeTimeout:4e3,type:"error"}}},i)}class $e extends a.FoundationElement{constructor(){super(...arguments),this.placeholder="Describe your search criteria in natural language...",this.inputValue="",this.isInterpreting=!1,this.lastValidCriteria=null,this.activeGroups=[],this.showingChips=!1,this.fieldMetadata=[],this.isRecording=!1,this.stopRecording=null,this.speechApplyDebounceTimer=null}get speechAvailable(){return L()}get criteriaChips(){return this.activeGroups.flatMap((e,t)=>e.clauses.map((e,i)=>{var o,n;return{groupIndex:t,clauseIndex:i,fieldLabel:this.getFieldLabel(e.field),operatorLabel:null!==(o=te[e.operator])&&void 0!==o?o:e.operator,valueLabel:"dateIsToday"===e.operator?"":String(null!==(n=e.value)&&void 0!==n?n:"")}}))}getFieldLabel(e){var t,i;if(!Array.isArray(this.fieldMetadata)||0===this.fieldMetadata.length)return e;if("string"==typeof this.fieldMetadata[0])return e;const o=this.fieldMetadata.find(t=>t.NAME===e);return null!==(i=null!==(t=null==o?void 0:o.UI_LABEL)&&void 0!==t?t:null==o?void 0:o.NAME)&&void 0!==i?i:e}toggleCriteriaView(){this.showingChips?(this.inputValue="",this.showingChips=!1):this.showingChips=!0}removeChip(e,t){var i;const o=this.activeGroups.map(e=>Object.assign(Object.assign({},e),{clauses:[...e.clauses]}));null===(i=o[e])||void 0===i||i.clauses.splice(t,1);const n=o.filter(e=>e.clauses.length>0);if(this.activeGroups=n,0===n.length)this.showingChips=!1,this.lastValidCriteria=null,this.$emit("criteria-changed",null);else{const e=X(n);this.lastValidCriteria=e,this.$emit("criteria-changed",e)}}clearChips(){this.activeGroups=[],this.showingChips=!1,this.lastValidCriteria=null,this.$emit("criteria-changed",null)}handleSubmit(){return(0,C.sH)(this,void 0,void 0,function*(){var e,t,i;const o=null===(e=this.inputValue)||void 0===e?void 0:e.trim();if(!o||this.isInterpreting)return;const n=null===(t=this.providerRegistry)||void 0===t?void 0:t.default();if(null==n?void 0:n.interpretCriteria){this.isInterpreting=!0;try{const e=Array.isArray(this.fieldMetadata)?this.fieldMetadata:[],t=yield n.interpretCriteria(o,{fields:e});if(!(null===(i=null==t?void 0:t.groups)||void 0===i?void 0:i.some(e=>{var t;return null===(t=e.clauses)||void 0===t?void 0:t.length})))return xe("AI criteria search","AI could not interpret the criteria",T(this)),void(this.isInterpreting=!1);const{valid:a,invalid:r}=ue(t.groups,this.fieldMetadata);if(r.length>0&&(xe("Criteria validation error",0===(s=r).length?"":1===s.length?s[0].message:s.map(e=>e.message).join("; "),T(this)),this.$emit("validation-errors",r)),a.length>0){const e=[...this.activeGroups,...a],t=X(e);this.lastValidCriteria=t,this.activeGroups=e,this.inputValue="",this.showingChips=!0,this.$emit("criteria-changed",t)}}catch(e){xe("AI criteria search",e instanceof Error?e.message:"Interpretation failed",T(this))}finally{this.isInterpreting=!1}var s}else xe("AI criteria search","AI provider not configured",T(this))})}handleBlur(){var e;if(this.isRecording)return;(null===(e=this.inputValue)||void 0===e?void 0:e.trim())?this.handleSubmit():this.activeGroups.length>0&&(this.showingChips=!0)}clear(){this.inputValue="",this.lastValidCriteria=null,this.activeGroups=[],this.showingChips=!1,this.$emit("criteria-changed",null)}toggleSpeechInput(){if(this.isRecording&&this.stopRecording)return this.clearSpeechApplyDebounce(),this.stopRecording(),this.stopRecording=null,void(this.isRecording=!1);this.inputValue="",this.showingChips=!1,this.stopRecording=function(e,t){if(!L())return null;const i=new(window.SpeechRecognition||window.webkitSpeechRecognition);i.continuous=!0,i.interimResults=!0,i.lang="en-US";let o="";return i.onresult=t=>{let i="",n="";for(let e=t.resultIndex;e<t.results.length;e+=1){const o=t.results[e][0].transcript;t.results[e].isFinal?n+=o:i+=o}n?(o+=n,e(o,!0)):i&&e(o+i,!1)},i.onerror=e=>{"aborted"!==e.error&&(null==t||t(e.error||"Speech recognition error"))},i.start(),()=>{try{i.stop()}catch(e){}}}((e,t)=>{this.inputValue=e,t&&(null==e?void 0:e.trim())&&(this.clearSpeechApplyDebounce(),this.stopRecording&&(this.stopRecording(),this.stopRecording=null,this.isRecording=!1),this.speechApplyDebounceTimer=setTimeout(()=>{this.speechApplyDebounceTimer=null,this.handleSubmit()},700))},()=>{this.clearSpeechApplyDebounce(),this.isRecording=!1,this.stopRecording=null}),this.stopRecording&&(this.isRecording=!0)}clearSpeechApplyDebounce(){this.speechApplyDebounceTimer&&(clearTimeout(this.speechApplyDebounceTimer),this.speechApplyDebounceTimer=null)}}(0,C.Cg)([M],$e.prototype,"providerRegistry",void 0),(0,C.Cg)([l.attr],$e.prototype,"placeholder",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],$e.prototype,"disabled",void 0),(0,C.Cg)([l.observable],$e.prototype,"inputValue",void 0),(0,C.Cg)([l.observable],$e.prototype,"isInterpreting",void 0),(0,C.Cg)([l.observable],$e.prototype,"lastValidCriteria",void 0),(0,C.Cg)([l.observable],$e.prototype,"activeGroups",void 0),(0,C.Cg)([l.observable],$e.prototype,"showingChips",void 0),(0,C.Cg)([l.observable],$e.prototype,"fieldMetadata",void 0),(0,C.Cg)([l.observable],$e.prototype,"isRecording",void 0),(0,C.Cg)([l.volatile],$e.prototype,"speechAvailable",null),(0,C.Cg)([l.volatile],$e.prototype,"criteriaChips",null);const Se=void 0,Ee={},Oe=$e.compose(Object.assign({baseName:"ai-criteria-search",template:B,styles:_,shadowOptions:Se},Ee)),Te=(e,t)=>l.css`
335
+ `;var V=i(95553),G=i(58749),j=i(14609),Y=i(86636);const W={contains:V.n.containsIgnoreCase,equals:V.n.EQ,startsWith:V.n.startsWith,endsWith:V.n.endsWith,greaterThan:V.n.GT,lessThan:V.n.LT,greaterThanOrEqual:V.n.GE,lessThanOrEqual:V.n.LE,notEqual:V.n.NE,dateIsToday:V.n.dateIsToday,dateIsAfter:V.n.dateIsGreaterEqual,dateIsGreaterEqual:V.n.dateIsGreaterEqual,dateIsBefore:V.n.dateIsLessEqual,dateIsLessEqual:V.n.dateIsLessEqual,dateIsEqual:V.n.dateIsEqual,dateTimeIsAfter:V.n.dateTimeIsGreaterEqual,dateTimeIsGreaterEqual:V.n.dateTimeIsGreaterEqual,dateTimeIsBefore:V.n.dateTimeIsLessEqual,dateTimeIsLessEqual:V.n.dateTimeIsLessEqual};function q(e){var t,i;const o=null!==(t=W[e.operator])&&void 0!==t?t:V.n.containsIgnoreCase;return(new G.K).withField(e.field).withValue(null!==(i=e.value)&&void 0!==i?i:null).withSerialiser(o).withGroup("default").build()}function K(e,t){return 1===e.length?e[0]:e.reduce((e,i,o)=>0===o?[i]:[...e,t,i],[])}function X(e){var t;const i=new j.b;let o=!1;for(const n of e){if(!(null===(t=n.clauses)||void 0===t?void 0:t.length))continue;const e=n.clauses.map(q),a="or"===n.logic?Y.r.Or():Y.r.And(),s=K(e,a),r=e.length>1?{join:a}:{};n.negated?i.And([Y.r.Not(),s]):i.And(1===e.length?e[0]:e,r),o=!0}return o?i.build():""}const J=["contains","equals","startsWith","endsWith","notEqual"],Q=["equals","greaterThan","lessThan","greaterThanOrEqual","lessThanOrEqual","notEqual"],Z=["dateIsToday","dateIsAfter","dateIsBefore","dateIsEqual","dateIsGreaterEqual","dateIsLessEqual"],ee=["dateTimeIsAfter","dateTimeIsBefore","dateTimeIsGreaterEqual","dateTimeIsLessEqual"],te={contains:"contains",equals:"=",startsWith:"starts with",endsWith:"ends with",notEqual:"≠",greaterThan:">",lessThan:"<",greaterThanOrEqual:"≥",lessThanOrEqual:"≤",dateIsToday:"is today",dateIsAfter:"after",dateIsBefore:"before",dateIsEqual:"=",dateIsGreaterEqual:"≥",dateIsLessEqual:"≤",dateTimeIsAfter:"after",dateTimeIsBefore:"before",dateTimeIsGreaterEqual:"≥",dateTimeIsLessEqual:"≤"},ie=new Set(["DATE","LOCALDATE"]),oe=new Set(["DATETIME","NANO_TIMESTAMP","LOCALDATETIME","TIMESTAMP"]),ne=new Set(["INT","INTEGER","LONG","SHORT","DOUBLE","BIGDECIMAL","DECIMAL"]);function ae(e){return(e||"").toUpperCase().trim().split("(")[0].trim()}function se(e){const t=ae(e);return ie.has(t)?Z:oe.has(t)?ee:ne.has(t)?Q:J}function re(e){return ne.has(ae(e))}function le(e){return null!=e&&("number"==typeof e?!Number.isNaN(e)&&e>0:"string"==typeof e&&(/^\d{8}$/.test(e)||/^\d{4}-\d{2}-\d{2}$/.test(e)||/^\d{8}-\d{2}:\d{2}(:\d{2})?$/.test(e)))}function de(e){return null!=e&&("number"==typeof e?!Number.isNaN(e):"string"==typeof e&&!Number.isNaN(Number(e)))}function ce(e,t){const i=[],o=[],n=new Map;if(Array.isArray(t)&&t.length>0){"string"==typeof t[0]?t.forEach(e=>n.set(e,void 0)):t.forEach(e=>n.set(e.NAME,e))}for(const t of e){const{field:e,operator:a,value:s}=t;if(!e||"string"!=typeof e){o.push({field:String(e),message:"Field name is required"});continue}const r=n.get(e),l=r&&"TYPE"in r?r.TYPE:"STRING";se(l).includes(a)?!Z.includes(a)&&!ee.includes(a)||"dateIsToday"===a||le(s)?re(l)&&Q.includes(a)&&!de(s)?o.push({field:e,operator:a,value:s,message:"Invalid numeric value"}):n.size>0&&!n.has(e)?o.push({field:e,operator:a,value:s,message:`Unknown field '${e}'`}):i.push(t):o.push({field:e,operator:a,value:s,message:"Invalid date/datetime value; use yyyyMMdd, yyyy-MM-dd, or epoch"}):o.push({field:e,operator:a,value:s,message:`Operator '${a}' is not allowed for field type ${l}`})}return{valid:i,invalid:o}}function ue(e,t){var i;const o=[],n=[];for(const a of e){if(!(null==a?void 0:a.clauses)||!Array.isArray(a.clauses)){n.push({field:"",message:"Group must have a clauses array"});continue}const{valid:e,invalid:s}=ce(a.clauses,t);n.push(...s),e.length>0&&o.push({logic:null!==(i=a.logic)&&void 0!==i?i:"and",negated:a.negated,clauses:e})}return{valid:o,invalid:n}}var he=i(60416);var pe,me,ve,ge=i(31274);!function(e){e.NOTIFICATION_EVENT="notification-event"}(pe||(pe={})),function(e){e.Top="top",e.Bottom="bottom"}(me||(me={})),function(e){e.Left="left",e.Right="right"}(ve||(ve={}));const fe="12px";var be=i(52945);const ye=(e,t,i)=>{var o,n,a,s,r,l,d,c,u,h,p,m,v,g,f,b,y,w,C;(0,he.u_)(e);const x=t.split("-")[0],$=(null===(n=null===(o=null==e?void 0:e.config)||void 0===o?void 0:o.toast)||void 0===n?void 0:n.position)||"top-right",S=null!==(a=null!=i?i:(e=>(0,be.fI)(document.body).find(t=>"notify-container"===t.tagName.toLowerCase()&&t.position===e))($))&&void 0!==a?a:(0,he.jE)("notify-container",t);S&&"notify-container"!==S.tagName.toLowerCase()&&function(e,t){var i,o;switch(t.style.position="fixed",null===(o=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.toast)||void 0===o?void 0:o.position){case"top-left":t.style.top="var(--nav-height, 0)",t.style.left="0";break;case"bottom-left":t.style.bottom="0",t.style.left="0";break;case"bottom-right":t.style.bottom="0",t.style.right="0";break;default:t.style.top="var(--nav-height, 0)",t.style.right="0"}}(e,S);const E=document.createElement(`${x}-toast`),O=document.createElement("div");O.setAttribute("slot","top"),O.textContent=e.title;const T=document.createElement("div");T.setAttribute("slot","content"),T.textContent=(null==e?void 0:e.body)||"";const k=document.createElement("div");let D;k.setAttribute("slot","date"),k.textContent=(null===(s=null==e?void 0:e.createdAt)||void 0===s?void 0:s.toLocaleTimeString())||"",(null===(l=null===(r=null==e?void 0:e.config)||void 0===r?void 0:r.toast)||void 0===l?void 0:l.buttons)&&(null===(u=null===(c=null===(d=null==e?void 0:e.config)||void 0===d?void 0:d.toast)||void 0===c?void 0:c.buttons)||void 0===u?void 0:u.length)&&(D=document.createElement("div"),D.setAttribute("slot","bottom"),e.config.toast.buttons.forEach(t=>{const i=document.createElement(`${x}-button`);i.textContent=t.placeholder||"example placeholder",i.addEventListener("click",()=>{const{details:o}=e.config.toast;if(t.action)return t.action({details:o,buttonElement:i,toastElement:E})}),t.appearance&&i.setAttribute("appearance",t.appearance),D.appendChild(i)})),E.setAttribute("notify",(null===(p=null===(h=null==e?void 0:e.config)||void 0===h?void 0:h.toast)||void 0===p?void 0:p.type)||""),e.iconName&&E.setAttribute("notification-icon",e.iconName),(null===(v=null===(m=null==e?void 0:e.config)||void 0===m?void 0:m.toast)||void 0===v?void 0:v.autoClose)&&E.setAttribute("auto-close",`${null===(f=null===(g=null==e?void 0:e.config)||void 0===g?void 0:g.toast)||void 0===f?void 0:f.autoClose}`),(null===(y=null===(b=null==e?void 0:e.config)||void 0===b?void 0:b.toast)||void 0===y?void 0:y.closeTimeout)&&E.setAttribute("close-timeout",`${null===(C=null===(w=null==e?void 0:e.config)||void 0===w?void 0:w.toast)||void 0===C?void 0:C.closeTimeout}`),E.appendChild(O),E.appendChild(T),E.appendChild(k),D&&E.appendChild(D),S.prepend(E)},we={alert:e=>{(0,he.u_)(e),alert((0,he.uP)(e))},toast:ye,dialog:ge.u,snackbar:(e,t)=>{var i,o,n,a,s,r;(0,he.u_)(e);const l=t.split("-")[0],d=document.createElement(`${l}-snackbar`),c=null!==(n=null===(o=null===(i=e.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.verticalEdge)&&void 0!==n?n:me.Bottom,u=null!==(r=null===(s=null===(a=e.config)||void 0===a?void 0:a.snackbar)||void 0===s?void 0:s.horizontalEdge)&&void 0!==r?r:ve.Left,h=(0,he.jE)(`snack-container-${c}-${u}`,t);h&&((e,t,i)=>{e.style.position="fixed",e.style.top=t===me.Top?fe:"",e.style.bottom=t===me.Bottom?fe:"",e.style.left=i===ve.Left?fe:"",e.style.right=i===ve.Right?fe:""})(h,c,u),h.appendChild(d),d.notification=e},banner:(e,t,i)=>{var o;(0,he.u_)(e);const n=t.split("-")[0],a=document.createElement(`${n}-banner`),s=(0,he.cL)(i);(null===(o=null==s?void 0:s.children)||void 0===o?void 0:o.length)>0&&(a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%"),s.appendChild(a),a.notification=e}},Ce=(e,t,i)=>{Object.keys((null==e?void 0:e.config)||{}).forEach(o=>{we[o]&&we[o](e,t,i)})};function xe(e,t,i){(null==t?void 0:t.trim())&&Ce({title:e,body:t,config:{toast:{autoClose:!0,closeTimeout:4e3,type:"error"}}},i)}class $e extends s.FoundationElement{constructor(){super(...arguments),this.placeholder="Describe your search criteria in natural language...",this.inputValue="",this.isInterpreting=!1,this.lastValidCriteria=null,this.activeGroups=[],this.showingChips=!1,this.fieldMetadata=[],this.isRecording=!1,this.stopRecording=null,this.speechApplyDebounceTimer=null}get speechAvailable(){return L()}get criteriaChips(){return this.activeGroups.flatMap((e,t)=>e.clauses.map((e,i)=>{var o,n;return{groupIndex:t,clauseIndex:i,fieldLabel:this.getFieldLabel(e.field),operatorLabel:null!==(o=te[e.operator])&&void 0!==o?o:e.operator,valueLabel:"dateIsToday"===e.operator?"":String(null!==(n=e.value)&&void 0!==n?n:"")}}))}getFieldLabel(e){var t,i;if(!Array.isArray(this.fieldMetadata)||0===this.fieldMetadata.length)return e;if("string"==typeof this.fieldMetadata[0])return e;const o=this.fieldMetadata.find(t=>t.NAME===e);return null!==(i=null!==(t=null==o?void 0:o.UI_LABEL)&&void 0!==t?t:null==o?void 0:o.NAME)&&void 0!==i?i:e}toggleCriteriaView(){this.showingChips?(this.inputValue="",this.showingChips=!1):this.showingChips=!0}removeChip(e,t){var i;const o=this.activeGroups.map(e=>Object.assign(Object.assign({},e),{clauses:[...e.clauses]}));null===(i=o[e])||void 0===i||i.clauses.splice(t,1);const n=o.filter(e=>e.clauses.length>0);if(this.activeGroups=n,0===n.length)this.showingChips=!1,this.lastValidCriteria=null,this.$emit("criteria-changed",null);else{const e=X(n);this.lastValidCriteria=e,this.$emit("criteria-changed",e)}}clearChips(){this.activeGroups=[],this.showingChips=!1,this.lastValidCriteria=null,this.$emit("criteria-changed",null)}handleSubmit(){return(0,C.sH)(this,void 0,void 0,function*(){var e,t,i;const o=null===(e=this.inputValue)||void 0===e?void 0:e.trim();if(!o||this.isInterpreting)return;const n=null===(t=this.providerRegistry)||void 0===t?void 0:t.default();if(null==n?void 0:n.interpretCriteria){this.isInterpreting=!0;try{const e=Array.isArray(this.fieldMetadata)?this.fieldMetadata:[],t=yield n.interpretCriteria(o,{fields:e});if(!(null===(i=null==t?void 0:t.groups)||void 0===i?void 0:i.some(e=>{var t;return null===(t=e.clauses)||void 0===t?void 0:t.length})))return xe("AI criteria search","AI could not interpret the criteria",T(this)),void(this.isInterpreting=!1);const{valid:s,invalid:r}=ue(t.groups,this.fieldMetadata);if(r.length>0&&(xe("Criteria validation error",0===(a=r).length?"":1===a.length?a[0].message:a.map(e=>e.message).join("; "),T(this)),this.$emit("validation-errors",r)),s.length>0){const e=[...this.activeGroups,...s],t=X(e);this.lastValidCriteria=t,this.activeGroups=e,this.inputValue="",this.showingChips=!0,this.$emit("criteria-changed",t)}}catch(e){xe("AI criteria search",e instanceof Error?e.message:"Interpretation failed",T(this))}finally{this.isInterpreting=!1}var a}else xe("AI criteria search","AI provider not configured",T(this))})}handleBlur(){var e;if(this.isRecording)return;(null===(e=this.inputValue)||void 0===e?void 0:e.trim())?this.handleSubmit():this.activeGroups.length>0&&(this.showingChips=!0)}clear(){this.inputValue="",this.lastValidCriteria=null,this.activeGroups=[],this.showingChips=!1,this.$emit("criteria-changed",null)}toggleSpeechInput(){if(this.isRecording&&this.stopRecording)return this.clearSpeechApplyDebounce(),this.stopRecording(),this.stopRecording=null,void(this.isRecording=!1);this.inputValue="",this.showingChips=!1,this.stopRecording=function(e,t){if(!L())return null;const i=new(window.SpeechRecognition||window.webkitSpeechRecognition);i.continuous=!0,i.interimResults=!0,i.lang="en-US";let o="";return i.onresult=t=>{let i="",n="";for(let e=t.resultIndex;e<t.results.length;e+=1){const o=t.results[e][0].transcript;t.results[e].isFinal?n+=o:i+=o}n?(o+=n,e(o,!0)):i&&e(o+i,!1)},i.onerror=e=>{"aborted"!==e.error&&(null==t||t(e.error||"Speech recognition error"))},i.start(),()=>{try{i.stop()}catch(e){}}}((e,t)=>{this.inputValue=e,t&&(null==e?void 0:e.trim())&&(this.clearSpeechApplyDebounce(),this.stopRecording&&(this.stopRecording(),this.stopRecording=null,this.isRecording=!1),this.speechApplyDebounceTimer=setTimeout(()=>{this.speechApplyDebounceTimer=null,this.handleSubmit()},700))},()=>{this.clearSpeechApplyDebounce(),this.isRecording=!1,this.stopRecording=null}),this.stopRecording&&(this.isRecording=!0)}clearSpeechApplyDebounce(){this.speechApplyDebounceTimer&&(clearTimeout(this.speechApplyDebounceTimer),this.speechApplyDebounceTimer=null)}}(0,C.Cg)([M],$e.prototype,"providerRegistry",void 0),(0,C.Cg)([l.attr],$e.prototype,"placeholder",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],$e.prototype,"disabled",void 0),(0,C.Cg)([l.observable],$e.prototype,"inputValue",void 0),(0,C.Cg)([l.observable],$e.prototype,"isInterpreting",void 0),(0,C.Cg)([l.observable],$e.prototype,"lastValidCriteria",void 0),(0,C.Cg)([l.observable],$e.prototype,"activeGroups",void 0),(0,C.Cg)([l.observable],$e.prototype,"showingChips",void 0),(0,C.Cg)([l.observable],$e.prototype,"fieldMetadata",void 0),(0,C.Cg)([l.observable],$e.prototype,"isRecording",void 0),(0,C.Cg)([l.volatile],$e.prototype,"speechAvailable",null),(0,C.Cg)([l.volatile],$e.prototype,"criteriaChips",null);const Se=void 0,Ee={},Oe=$e.compose(Object.assign({baseName:"ai-criteria-search",template:B,styles:_,shadowOptions:Se},Ee)),Te=(e,t)=>l.css`
336
336
  :host {
337
337
  display: flex;
338
338
  justify-content: center;
@@ -519,19 +519,19 @@
519
519
  </div>
520
520
  `)}
521
521
  `;var t}}
522
- `;class De extends a.FoundationElement{constructor(){super(...arguments),this.status=null,this.open=!1,this.state="none",this.isInstalling=!1,this.pollTimer=null,this.clickOutside=e=>this.handleClickOutside(e)}get aiProvider(){var e;return null===(e=this.providerRegistry)||void 0===e?void 0:e.default()}get chromeStatusLabel(){var e,t;if("chrome"!==(null===(e=this.status)||void 0===e?void 0:e.provider))return null;const i=null===(t=this.status)||void 0===t?void 0:t.chromeAvailability;return"available"===i?"Installed":"downloading"===i||this.isInstalling?"Downloading…":"downloadable"===i?"Downloadable":"unavailable"===i?"Unavailable":null}get canInstall(){var e,t,i;return!!(null===(e=this.aiProvider)||void 0===e?void 0:e.triggerDownload)&&"chrome"===(null===(t=this.status)||void 0===t?void 0:t.provider)&&"downloadable"===(null===(i=this.status)||void 0===i?void 0:i.chromeAvailability)&&!this.isInstalling}get isDownloading(){var e;return"downloading"===(null===(e=this.status)||void 0===e?void 0:e.chromeAvailability)||this.isInstalling}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(this,void 0,void 0,function*(){e.connectedCallback.call(this),yield this.refreshStatus(),this.maybeStartPolling()})}disconnectedCallback(){this.stopPolling(),document.removeEventListener("mousedown",this.clickOutside)}openChanged(){this.open?(document.addEventListener("mousedown",this.clickOutside),this.refreshStatus()):document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){E(e,this)&&(this.open=!1)}toggleDropdown(){this.open=!this.open}refreshStatus(){return(0,C.sH)(this,void 0,void 0,function*(){var e;if(!(null===(e=this.aiProvider)||void 0===e?void 0:e.getStatus))return this.status=null,void(this.state="none");try{const e=yield this.aiProvider.getStatus();this.status=e,this.state=this.deriveState(e),"available"===this.state&&(this.isInstalling=!1)}catch(e){this.status=null,this.state="none",this.isInstalling=!1}})}deriveState(e){if(!e||"none"===e.provider)return"none";if("chrome"===e.provider){const t=e.chromeAvailability;return"available"===t?"available":"downloading"===t?"downloading":"downloadable"===t?"downloadable":"unavailable"}return"server"}maybeStartPolling(){var e;"downloading"===(null===(e=this.status)||void 0===e?void 0:e.chromeAvailability)||this.isInstalling?this.startPolling():this.stopPolling()}startPolling(){this.pollTimer||(this.pollTimer=setInterval(()=>{this.refreshStatus().then(()=>{this.maybeStartPolling()})},2500))}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}onInstall(){return(0,C.sH)(this,void 0,void 0,function*(){var e;if(this.canInstall&&(null===(e=this.aiProvider)||void 0===e?void 0:e.triggerDownload)){this.isInstalling=!0;try{yield this.aiProvider.triggerDownload(),this.startPolling()}catch(e){this.isInstalling=!1}finally{yield this.refreshStatus()}}})}}(0,C.Cg)([M],De.prototype,"providerRegistry",void 0),(0,C.Cg)([l.observable],De.prototype,"status",void 0),(0,C.Cg)([l.observable],De.prototype,"open",void 0),(0,C.Cg)([l.observable],De.prototype,"state",void 0),(0,C.Cg)([l.observable],De.prototype,"isInstalling",void 0),(0,C.Cg)([l.volatile],De.prototype,"chromeStatusLabel",null),(0,C.Cg)([l.volatile],De.prototype,"canInstall",null),(0,C.Cg)([l.volatile],De.prototype,"isDownloading",null);const Ie=De.compose({baseName:"ai-indicator",template:ke,styles:Te}),Re=(e,t)=>l.css`
522
+ `;class De extends s.FoundationElement{constructor(){super(...arguments),this.status=null,this.open=!1,this.state="none",this.isInstalling=!1,this.pollTimer=null,this.clickOutside=e=>this.handleClickOutside(e)}get aiProvider(){var e;return null===(e=this.providerRegistry)||void 0===e?void 0:e.default()}get chromeStatusLabel(){var e,t;if("chrome"!==(null===(e=this.status)||void 0===e?void 0:e.provider))return null;const i=null===(t=this.status)||void 0===t?void 0:t.chromeAvailability;return"available"===i?"Installed":"downloading"===i||this.isInstalling?"Downloading…":"downloadable"===i?"Downloadable":"unavailable"===i?"Unavailable":null}get canInstall(){var e,t,i;return!!(null===(e=this.aiProvider)||void 0===e?void 0:e.triggerDownload)&&"chrome"===(null===(t=this.status)||void 0===t?void 0:t.provider)&&"downloadable"===(null===(i=this.status)||void 0===i?void 0:i.chromeAvailability)&&!this.isInstalling}get isDownloading(){var e;return"downloading"===(null===(e=this.status)||void 0===e?void 0:e.chromeAvailability)||this.isInstalling}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(this,void 0,void 0,function*(){e.connectedCallback.call(this),yield this.refreshStatus(),this.maybeStartPolling()})}disconnectedCallback(){this.stopPolling(),document.removeEventListener("mousedown",this.clickOutside)}openChanged(){this.open?(document.addEventListener("mousedown",this.clickOutside),this.refreshStatus()):document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){E(e,this)&&(this.open=!1)}toggleDropdown(){this.open=!this.open}refreshStatus(){return(0,C.sH)(this,void 0,void 0,function*(){var e;if(!(null===(e=this.aiProvider)||void 0===e?void 0:e.getStatus))return this.status=null,void(this.state="none");try{const e=yield this.aiProvider.getStatus();this.status=e,this.state=this.deriveState(e),"available"===this.state&&(this.isInstalling=!1)}catch(e){this.status=null,this.state="none",this.isInstalling=!1}})}deriveState(e){if(!e||"none"===e.provider)return"none";if("chrome"===e.provider){const t=e.chromeAvailability;return"available"===t?"available":"downloading"===t?"downloading":"downloadable"===t?"downloadable":"unavailable"}return"server"}maybeStartPolling(){var e;"downloading"===(null===(e=this.status)||void 0===e?void 0:e.chromeAvailability)||this.isInstalling?this.startPolling():this.stopPolling()}startPolling(){this.pollTimer||(this.pollTimer=setInterval(()=>{this.refreshStatus().then(()=>{this.maybeStartPolling()})},2500))}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}onInstall(){return(0,C.sH)(this,void 0,void 0,function*(){var e;if(this.canInstall&&(null===(e=this.aiProvider)||void 0===e?void 0:e.triggerDownload)){this.isInstalling=!0;try{yield this.aiProvider.triggerDownload(),this.startPolling()}catch(e){this.isInstalling=!1}finally{yield this.refreshStatus()}}})}}(0,C.Cg)([M],De.prototype,"providerRegistry",void 0),(0,C.Cg)([l.observable],De.prototype,"status",void 0),(0,C.Cg)([l.observable],De.prototype,"open",void 0),(0,C.Cg)([l.observable],De.prototype,"state",void 0),(0,C.Cg)([l.observable],De.prototype,"isInstalling",void 0),(0,C.Cg)([l.volatile],De.prototype,"chromeStatusLabel",null),(0,C.Cg)([l.volatile],De.prototype,"canInstall",null),(0,C.Cg)([l.volatile],De.prototype,"isDownloading",null);const Ie=De.compose({baseName:"ai-indicator",template:ke,styles:Te}),Re=(e,t)=>l.css`
523
523
  ${(0,r.anchorStyles)(e,t)}
524
- `,Ae=(e,t)=>(0,a.anchorTemplate)(e,t);class Le extends r.Anchor{}const Ne={delegatesFocus:!0,mode:"open"},Fe={},Me=Le.compose(Object.assign({baseName:"anchor",template:Ae,styles:Re,shadowOptions:Ne},Fe)),_e=(e,t)=>(0,a.anchoredRegionTemplate)(e,t),He=(e,t)=>l.css`
524
+ `,Ae=(e,t)=>(0,s.anchorTemplate)(e,t);class Le extends r.Anchor{}const Ne={delegatesFocus:!0,mode:"open"},Fe={},Me=Le.compose(Object.assign({baseName:"anchor",template:Ae,styles:Re,shadowOptions:Ne},Fe)),_e=(e,t)=>(0,s.anchoredRegionTemplate)(e,t),He=(e,t)=>l.css`
525
525
  ${(0,r.anchoredRegionStyles)(e,t)}
526
526
  `;class Pe extends r.AnchoredRegion{}const ze={delegatesFocus:!0,mode:"open"},Ue={},Be=Pe.compose(Object.assign({baseName:"anchored-region",template:_e,styles:He,shadowOptions:ze},Ue)),Ve=(e,t)=>l.css`
527
527
  ${(0,r.avatarStyles)(e,t)}
528
- `,Ge=(e,t)=>(0,a.avatarTemplate)(e,t),je=l.html`
528
+ `,Ge=(e,t)=>(0,s.avatarTemplate)(e,t),je=l.html`
529
529
  ${(0,l.when)(e=>e.imgSrc,l.html`
530
530
  <img src="${e=>e.imgSrc}" alt="${e=>e.alt}" slot="media" class="media" part="media" />
531
531
  `)}
532
532
  `;class Ye extends r.Avatar{}const We={delegatesFocus:!0,mode:"open"},qe={media:je},Ke=Ye.compose(Object.assign({baseName:"avatar",template:Ge,styles:Ve,shadowOptions:We},qe)),Xe=(e,t)=>l.css`
533
533
  ${(0,r.badgeStyles)(e,t)}
534
- `,Je=(e,t)=>(0,a.badgeTemplate)(e,t);class Qe extends r.Badge{}const Ze=void 0,et={},tt=Qe.compose(Object.assign({baseName:"badge",template:Je,styles:Xe,shadowOptions:Ze},et));var it=i(66506);const ot=(0,it.createLogger)("foundation-ui"),nt=l.css`
534
+ `,Je=(e,t)=>(0,s.badgeTemplate)(e,t);class Qe extends r.Badge{}const Ze=void 0,et={},tt=Qe.compose(Object.assign({baseName:"badge",template:Je,styles:Xe,shadowOptions:Ze},et));var it=i(66506);const ot=(0,it.createLogger)("foundation-ui"),nt=l.css`
535
535
  @keyframes delete-animate {
536
536
  from {
537
537
  height: 100px;
@@ -603,7 +603,7 @@
603
603
  flex: 1;
604
604
  overflow: hidden;
605
605
  }
606
- `,st=e=>l.html`
606
+ `,at=e=>l.html`
607
607
  <div role="alert" aria-live="polite" class="banner ${e=>e.dismissAnimation}" ${(0,l.ref)("banner")}>
608
608
  <div part="content" class="content">
609
609
  <slot name="content">
@@ -632,23 +632,23 @@
632
632
  </slot>
633
633
  </div>
634
634
  </div>
635
- `,at=l.html`
636
- ${e=>st(T(e))}
637
- `,rt={mode:"open",delegatesFocus:!0};class lt extends a.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,C.sH)(this,void 0,void 0,function*(){try{yield this.dismiss(),this.remove()}catch(e){ot.error(e)}})}}(0,C.Cg)([l.observable],lt.prototype,"dismissAnimation",void 0),(0,C.Cg)([l.observable],lt.prototype,"notification",void 0);const dt=lt.compose({baseName:"banner",styles:nt,template:at,shadowOptions:rt}),ct=(e,t)=>l.css`
635
+ `,st=l.html`
636
+ ${e=>at(T(e))}
637
+ `,rt={mode:"open",delegatesFocus:!0};class lt extends s.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,C.sH)(this,void 0,void 0,function*(){try{yield this.dismiss(),this.remove()}catch(e){ot.error(e)}})}}(0,C.Cg)([l.observable],lt.prototype,"dismissAnimation",void 0),(0,C.Cg)([l.observable],lt.prototype,"notification",void 0);const dt=lt.compose({baseName:"banner",styles:nt,template:st,shadowOptions:rt}),ct=(e,t)=>l.css`
638
638
  ${(0,r.breadcrumbStyles)(e,t)}
639
- `,ut=(e,t)=>(0,a.breadcrumbTemplate)(e,t);class ht extends r.Breadcrumb{}const pt=void 0,mt={},gt=ht.compose(Object.assign({baseName:"breadcrumb",template:ut,styles:ct,shadowOptions:pt},mt)),vt=(e,t)=>l.css`
639
+ `,ut=(e,t)=>(0,s.breadcrumbTemplate)(e,t);class ht extends r.Breadcrumb{}const pt=void 0,mt={},vt=ht.compose(Object.assign({baseName:"breadcrumb",template:ut,styles:ct,shadowOptions:pt},mt)),gt=(e,t)=>l.css`
640
640
  ${(0,r.breadcrumbItemStyles)(e,t)}
641
- `,ft=(e,t)=>(0,a.breadcrumbItemTemplate)(e,t);class bt extends r.BreadcrumbItem{}const yt=void 0,wt={separator:"/"},Ct=bt.compose(Object.assign({baseName:"breadcrumb-item",template:ft,styles:vt,shadowOptions:yt},wt)),xt=(e,t)=>l.css`
641
+ `,ft=(e,t)=>(0,s.breadcrumbItemTemplate)(e,t);class bt extends r.BreadcrumbItem{}const yt=void 0,wt={separator:"/"},Ct=bt.compose(Object.assign({baseName:"breadcrumb-item",template:ft,styles:gt,shadowOptions:yt},wt)),xt=(e,t)=>l.css`
642
642
  ${(0,r.buttonStyles)(e,t)}
643
- `,$t=(e,t)=>(0,a.buttonTemplate)(e,t);class St extends r.Button{}const Et={delegatesFocus:!0,mode:"open"},Ot={},Tt=St.compose(Object.assign({baseName:"button",template:$t,styles:xt,shadowOptions:Et},Ot)),kt=()=>l.css`
643
+ `,$t=(e,t)=>(0,s.buttonTemplate)(e,t);class St extends r.Button{}const Et={delegatesFocus:!0,mode:"open"},Ot={},Tt=St.compose(Object.assign({baseName:"button",template:$t,styles:xt,shadowOptions:Et},Ot)),kt=()=>l.css`
644
644
  ${r.CalendarStyles}
645
- `,Dt=(e,t)=>(0,a.calendarTemplate)(e,t);class It extends r.Calendar{}const Rt={delegatesFocus:!0,mode:"open"},At={},Lt=It.compose(Object.assign({baseName:"calendar",template:Dt,styles:kt,shadowOptions:Rt},At)),Nt=(e,t)=>l.css`
645
+ `,Dt=(e,t)=>(0,s.calendarTemplate)(e,t);class It extends r.Calendar{}const Rt={delegatesFocus:!0,mode:"open"},At={},Lt=It.compose(Object.assign({baseName:"calendar",template:Dt,styles:kt,shadowOptions:Rt},At)),Nt=(e,t)=>l.css`
646
646
  ${(0,r.cardStyles)(e,t)}
647
647
  :host {
648
648
  background-color: var(--fui-card-fill-color);
649
649
  color: var(--fui-card-foreground-color);
650
650
  }
651
- `,Ft=(e,t)=>(0,a.cardTemplate)(e,t);class Mt extends r.Card{}const _t=void 0,Ht={},Pt=Mt.compose(Object.assign({baseName:"card",template:Ft,styles:Nt,shadowOptions:_t},Ht));var zt;!function(e){e.BELOW="below",e.ABOVE="above"}(zt||(zt={}));const Ut=450,Bt=l.css`
651
+ `,Ft=(e,t)=>(0,s.cardTemplate)(e,t);class Mt extends r.Card{}const _t=void 0,Ht={},Pt=Mt.compose(Object.assign({baseName:"card",template:Ft,styles:Nt,shadowOptions:_t},Ht));var zt;!function(e){e.BELOW="below",e.ABOVE="above"}(zt||(zt={}));const Ut=450,Bt=l.css`
652
652
  .root {
653
653
  position: relative;
654
654
  width: 100%;
@@ -847,7 +847,7 @@
847
847
  class=${e=>{var t;return(0,x.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
848
848
  >
849
849
  <slot
850
- ${(0,l.slotted)({property:"defaultSlottedNodes",filter:a.whitespaceFilter})}
850
+ ${(0,l.slotted)({property:"defaultSlottedNodes",filter:s.whitespaceFilter})}
851
851
  ></slot>
852
852
  </label>
853
853
  <${e}-button class="control-button" part="control-button">
@@ -909,9 +909,9 @@
909
909
  </div>
910
910
  `,Gt=l.html`
911
911
  ${Vt()}
912
- `,jt=void 0,Yt={};class Wt extends a.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=zt.BELOW}openChanged(e,t){var i,o;t?(document.addEventListener("mousedown",this.clickOutside),null===(i=this.optionsElement)||void 0===i||i.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(o=this.optionsElement)||void 0===o||o.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===zt.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 i=t.type||"Other";return e[i]?e[i].options.push(t):e[i]={type:i,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 i=t.getBoundingClientRect(),o=this.getBoundingClientRect(),n=i.top+i.height/2;e=o.top<n?zt.BELOW:zt.ABOVE}else{const t=this.getBoundingClientRect(),i=window.innerHeight,o=t.top,n=i-t.bottom;e=n<t.height&&o>n?zt.ABOVE:zt.BELOW}}e===zt.ABOVE?(this.optionsElement.classList.add("position-above"),this.optionsElement.classList.remove("position-below")):e===zt.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 i=e.description,o=null!==(t=e.label)&&void 0!==t?t:e.value;return(null==i?void 0:i.toLowerCase().includes(this.filterSearchValue.toLowerCase()))||o.toLowerCase().includes(this.filterSearchValue.toLowerCase())?e:void 0});this.filteredAvailableOptions=this.sortFilteredOptions(e)}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){E(e,this)&&(this.open=!1)}}(0,C.Cg)([l.attr],Wt.prototype,"name",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"auto-position"})],Wt.prototype,"autoPosition",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Wt.prototype,"search",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Wt.prototype,"disabled",void 0),(0,C.Cg)([l.observable],Wt.prototype,"defaultSlottedNodes",void 0),(0,C.Cg)([l.observable],Wt.prototype,"valueFormatter",void 0),(0,C.Cg)([l.observable],Wt.prototype,"filterSearchValue",void 0),(0,C.Cg)([l.observable],Wt.prototype,"open",void 0),(0,C.Cg)([l.observable],Wt.prototype,"options",void 0),(0,C.Cg)([l.observable],Wt.prototype,"selectedOptions",void 0),(0,C.Cg)([l.observable],Wt.prototype,"filteredAvailableOptions",void 0),(0,C.Cg)([l.observable],Wt.prototype,"position",void 0),(0,C.Cg)([l.volatile],Wt.prototype,"getPlaceholder",null);const qt=Wt.compose(Object.assign({baseName:"categorized-multiselect",template:Gt,styles:Bt,shadowOptions:jt},Yt)),Kt=(e,t)=>l.css`
912
+ `,jt=void 0,Yt={};class Wt extends s.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=zt.BELOW}openChanged(e,t){var i,o;t?(document.addEventListener("mousedown",this.clickOutside),null===(i=this.optionsElement)||void 0===i||i.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(o=this.optionsElement)||void 0===o||o.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===zt.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 i=t.type||"Other";return e[i]?e[i].options.push(t):e[i]={type:i,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 i=t.getBoundingClientRect(),o=this.getBoundingClientRect(),n=i.top+i.height/2;e=o.top<n?zt.BELOW:zt.ABOVE}else{const t=this.getBoundingClientRect(),i=window.innerHeight,o=t.top,n=i-t.bottom;e=n<t.height&&o>n?zt.ABOVE:zt.BELOW}}e===zt.ABOVE?(this.optionsElement.classList.add("position-above"),this.optionsElement.classList.remove("position-below")):e===zt.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 i=e.description,o=null!==(t=e.label)&&void 0!==t?t:e.value;return(null==i?void 0:i.toLowerCase().includes(this.filterSearchValue.toLowerCase()))||o.toLowerCase().includes(this.filterSearchValue.toLowerCase())?e:void 0});this.filteredAvailableOptions=this.sortFilteredOptions(e)}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){E(e,this)&&(this.open=!1)}}(0,C.Cg)([l.attr],Wt.prototype,"name",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"auto-position"})],Wt.prototype,"autoPosition",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Wt.prototype,"search",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Wt.prototype,"disabled",void 0),(0,C.Cg)([l.observable],Wt.prototype,"defaultSlottedNodes",void 0),(0,C.Cg)([l.observable],Wt.prototype,"valueFormatter",void 0),(0,C.Cg)([l.observable],Wt.prototype,"filterSearchValue",void 0),(0,C.Cg)([l.observable],Wt.prototype,"open",void 0),(0,C.Cg)([l.observable],Wt.prototype,"options",void 0),(0,C.Cg)([l.observable],Wt.prototype,"selectedOptions",void 0),(0,C.Cg)([l.observable],Wt.prototype,"filteredAvailableOptions",void 0),(0,C.Cg)([l.observable],Wt.prototype,"position",void 0),(0,C.Cg)([l.volatile],Wt.prototype,"getPlaceholder",null);const qt=Wt.compose(Object.assign({baseName:"categorized-multiselect",template:Gt,styles:Bt,shadowOptions:jt},Yt)),Kt=(e,t)=>l.css`
913
913
  ${(0,r.checkboxStyles)(e,t)}
914
- `,Xt=(e,t)=>(0,a.checkboxTemplate)(e,t);class Jt extends r.Checkbox{}const Qt=void 0,Zt={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 '},ei=Jt.compose(Object.assign({baseName:"checkbox",template:Xt,styles:Kt,shadowOptions:Qt},Zt));var ti=i(62051),ii=i.n(ti),oi=i(39087),ni=i(87917),si=i(40370),ai=i(6884),ri=i(96730),li=i(21281),di=i(34193),ci=i(41119),ui=i(57963),hi=i(49964),pi=i(12066),mi=i(97156);class gi extends((0,si.C)(a.FoundationElement)){constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=ai.OD.MAX_ROWS_250,this.maxView=ai.OD.MAX_VIEW_1000,this.resourceName="",this.reverse=!1,this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.moreRowsAvailable=!1,this.nextRequestOffset=0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new mi.t(new Map),this.fetchGeneration=0}criteriaChanged(e,t){const i=e!==(0,ri.Q)(t,";");this.refetchIfInitializedAndChanged(i)}dataChanged(e){e&&(this.clearData(),this.reset())}requestChanged(e,t){const i=JSON.stringify(e)!==JSON.stringify(t);this.refetchIfInitializedAndChanged(i)}refetchIfInitializedAndChanged(e){this.datasource.initialized&&e&&this.fetchGenesisData(null)}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}get effectiveRowId(){var e;return this.rowId?this.rowId:(null===(e=this.datasource)||void 0===e?void 0:e.resourceType)===oi.v.REQUEST_SERVER?ai.OD.REQUEST_SERVER_ROW_ID:ai.OD.DATASERVER_ROW_ID}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(){return(0,C.sH)(this,arguments,void 0,function*(e=!0){var t,i;null===(t=this.dataSub)||void 0===t||t.unsubscribe(),this.dataSub=void 0,this.moreRowsAvailable=!1,this.nextRequestOffset=0,this.fetchGeneration+=1;const o=this.fetchGeneration,n=()=>o!==this.fetchGeneration;if(this.data)return void this.syncComponentData(this.data);const s=e||!this.datasource.initialized;s||(this.connect.dataLogoff(this.sourceRef),this.clearData()),this.sourceRef=void 0;const a=yield this.datasource.init(this.datasourceOptions(),s);if(!n())if(a){if(this.isSnapshot){const e=yield this.datasource.snapshot();if(n())return;const t=this.filterSnapshotResult(e);return this.updateRequestPagingState(e,null!==(i=null==t?void 0:t.length)&&void 0!==i?i:0,this.initialRequestOffset()),void this.syncComponentData(t)}ot.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe(e=>{if(n())return;e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF,"boolean"==typeof e.MORE_ROWS&&(this.moreRowsAvailable=e.MORE_ROWS);const t=e.MESSAGE_TYPE;if(t&&t===li.Go.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,di.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,C.sH)(this,void 0,void 0,function*(){yield this.datasource.init(this.datasourceOptions(),!0)})}canRequestMoreRows(){if(!this.isConnected||!this.datasource||!this.moreRowsAvailable)return!1;switch(this.datasource.resourceType){case oi.v.REQUEST_SERVER:return!0;case oi.v.DATASERVER:return!!this.sourceRef&&!this.dataSubWasLoggedOff;default:return!1}}requestMoreRows(){return(0,C.sH)(this,void 0,void 0,function*(){var e;if(this.canRequestMoreRows())try{if(this.datasource.resourceType===oi.v.DATASERVER)return void(yield this.connect.getMoreRows(this.sourceRef));const t=this.fetchGeneration,i=this.nextRequestOffset;this.moreRowsAvailable=!1;const o=yield this.datasource.snapshot({DETAILS:Object.assign(Object.assign({},null===(e=this.datasource.requestOnlyParams)||void 0===e?void 0:e.DETAILS),{OFFSET:i})});if(t!==this.fetchGeneration)return;const n=Array.isArray(null==o?void 0:o.REPLY)?o.REPLY:[];this.updateRequestPagingState(o,n.length,i),n.length>0&&this.handleStreamInserts(n)}catch(e){throw this.moreRowsAvailable=!0,this.handleError({message:`Failed to request more rows for ${this.resourceName}`,loggerType:"error",loggerArgs:[e]}),e}})}filterSnapshotResult(e){if(e)return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,di.d)(e).inserts:void 0}updateRequestPagingState(e,t,i){if(Array.isArray(e)||!e)return void(this.moreRowsAvailable=!1);const o=e,n=Number(this.maxRows)||0;this.moreRowsAvailable="boolean"==typeof o.MORE_ROWS?o.MORE_ROWS:t>0&&n>0&&t>=n,this.nextRequestOffset="number"==typeof o.NEXT_OFFSET&&o.NEXT_OFFSET>0?o.NEXT_OFFSET:i+t}initialRequestOffset(){var e,t;return Number(null===(t=null===(e=this.datasource.requestOnlyParams)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.OFFSET)||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,i;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)return null===(i=e.REPLY)||void 0===i||i.forEach(e=>{this.rowsSyncedWithStream.set(e[this.effectiveRowId],e)}),void this.syncComponentData(Array.from(this.rowsSyncedWithStream.values()));this.handleStreamInserts(e.REPLY);const o=Array.from(this.rowsSyncedWithStream.values()).filter(t=>!e.REPLY.includes(t));this.handleStreamDeletes(o)}applyDataserverData(e){var t,i,o,n;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach(e=>{this.rowsSyncedWithStream.set(e[this.effectiveRowId],e)});const i=Array.from(this.rowsSyncedWithStream.values());return void this.syncComponentData(i)}(null===(i=e.inserts)||void 0===i?void 0:i.length)>0&&this.handleStreamInserts(e.inserts),(null===(o=e.deletes)||void 0===o?void 0:o.length)>0&&this.handleStreamDeletes(e.deletes),(null===(n=e.updates)||void 0===n?void 0:n.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,ri.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:i,loggerArgs:o=[]}=e;t&&ot[i](t,...o)}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===ci.w.DATE||t===ci.w.DATETIME?(0,pi.Ey)(e,t===ci.w.DATETIME):e}}function vi(e,t){var i;const o=new j.b;o.withExpression((new G.K).withField(null!==(i=e.labelField)&&void 0!==i?i:e.valueField).withValue(t).withSerialiser(V.n.containsIgnoreCase).build()),e.baseCriteria?e.criteria=`${e.baseCriteria} && ${o.build()}`:e.criteria=o.build()}var fi;(0,C.Cg)([ui.dm],gi.prototype,"connect",void 0),(0,C.Cg)([hi.yW],gi.prototype,"datasource",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],gi.prototype,"withGridInit",void 0),(0,C.Cg)([l.attr],gi.prototype,"criteria",void 0),(0,C.Cg)([l.observable],gi.prototype,"data",void 0),(0,C.Cg)([l.attr],gi.prototype,"fields",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],gi.prototype,"isSnapshot",void 0),(0,C.Cg)([l.attr],gi.prototype,"maxRows",void 0),(0,C.Cg)([l.attr],gi.prototype,"maxView",void 0),(0,C.Cg)([l.attr],gi.prototype,"orderBy",void 0),(0,C.Cg)([l.attr],gi.prototype,"request",void 0),(0,C.Cg)([l.attr],gi.prototype,"resourceName",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],gi.prototype,"reverse",void 0),(0,C.Cg)([l.attr],gi.prototype,"rowId",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],gi.prototype,"withTimestampFormatting",void 0);let bi=fi=class extends gi{constructor(){super(...arguments),this.emptyDataLabel="No matching records",this.allowCustomOptions=!1,this.infiniteScroll=!1,this.pageSize=fi.defaultPageSize,this.initalSelectedValueInitialized=!1,this.isSnapshot=!0,this.baseCriteria="",this.listboxElement=null,this.loadingMoreRows=!1,this.renderedOptionsCount=0,this.lastTopUpScrollHeight=-1,this.emptyDataOption=null,this.selectOpenChangeHandler=e=>{var t;(null===(t=e.detail)||void 0===t?void 0:t.open)&&(this.listboxElement||this.attachListboxScrollListener(),this.topUpVisibleListbox())},this.listboxScrollHandler=()=>{const e=this.listboxElement;if(!e)return;e.scrollTop+e.clientHeight>=e.scrollHeight-fi.scrollLoadThresholdPx&&this.loadNextPage()},this.resizeObserverCallback=e=>{e.forEach(e=>{this.checkOverflow(e.target)})},this.selectChangeHandler=e=>{var t;const i=e.target.value,o=null===(t=this.options)||void 0===t?void 0:t.find(e=>String(e.label)===i);!o&&this.allowCustomOptions&&this.select instanceof r.Combobox?this.select.$emit("value-change",{label:i,value:i}):this.select.$emit("value-change",o)}}initialSelectedValueChanged(e,t){t&&t!==e&&(this.select&&this.getDisplayForValue(t)===String(this.select.value||"")||(this.initalSelectedValueInitialized=!1,this.clearData(),this.fetchData()))}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(this,void 0,void 0,function*(){var t,i;if(e.connectedCallback.call(this),this.baseCriteria=this.criteria,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!==(i=this.optionElement)&&void 0!==i?i:`${T(this.select)}-option`,this.select.addEventListener("change",this.selectChangeHandler),this.resizeObserver=new ResizeObserver(this.resizeObserverCallback),this.infiniteScroll){if(this.maxRows=this.pageSize>0?this.pageSize:fi.defaultPageSize,this.select.addEventListener("open-change",this.selectOpenChangeHandler),yield this.applyInfiniteScrollFetchMode(),!this.isConnected)return;l.DOM.queueUpdate(()=>this.attachListboxScrollListener())}this.fetchData(),this.valueField||ot.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')})}disconnectedCallback(){var e;super.disconnectedCallback(),this.resizeObserver.disconnect(),null===(e=this.listboxElement)||void 0===e||e.removeEventListener("scroll",this.listboxScrollHandler),this.listboxElement=null,this.select.removeEventListener("open-change",this.selectOpenChangeHandler),this.select.removeEventListener("change",this.selectChangeHandler)}applyInfiniteScrollFetchMode(){return(0,C.sH)(this,void 0,void 0,function*(){if(this.resourceName&&this.connect.isConnected)try{const e=yield this.resources.getResourceTypeFor(this.resourceName);this.isSnapshot=e!==oi.v.DATASERVER}catch(e){ot.warn(`Unable to determine the resource type for ${this.resourceName}`,e)}})}attachListboxScrollListener(){var e,t,i,o,n,s,a;this.isConnected&&(null===(e=this.listboxElement)||void 0===e||e.removeEventListener("scroll",this.listboxScrollHandler),this.listboxElement=null!==(n=null!==(i=null===(t=this.select)||void 0===t?void 0:t.scrollableListbox)&&void 0!==i?i:null===(o=this.select)||void 0===o?void 0:o.listbox)&&void 0!==n?n:null===(a=null===(s=this.select)||void 0===s?void 0:s.shadowRoot)||void 0===a?void 0:a.querySelector(".listbox"),this.listboxElement?this.listboxElement.addEventListener("scroll",this.listboxScrollHandler):ot.warn("Unable to locate listbox element, infinite scroll will not be available."))}loadNextPage(){return(0,C.sH)(this,void 0,void 0,function*(){if(this.loadingMoreRows||!this.canRequestMoreRows())return;this.loadingMoreRows=!0;const e=this.datasource.resourceType===oi.v.REQUEST_SERVER;try{yield this.requestMoreRows()}catch(e){return void(this.loadingMoreRows=!1)}e&&(this.loadingMoreRows=!1)})}topUpVisibleListbox(){this.infiniteScroll&&requestAnimationFrame(()=>{if(!this.isConnected)return;const e=this.listboxElement;e&&0!==e.clientHeight&&(e.scrollHeight>e.clientHeight||e.scrollHeight!==this.lastTopUpScrollHeight&&(this.lastTopUpScrollHeight=e.scrollHeight,this.loadNextPage()))})}fetchData(){this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof r.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData())}asyncModeIntialization(){return(0,C.sH)(this,void 0,void 0,function*(){(yield this.datasource.init(this.datasourceOptions(),!0))?vi(this,this.initialSelectedValue):this.handleError({message:`Genesis Datasource async mode initialization failed for ${this.resourceName}`,loggerType:"error"})})}clearData(){this.rowsSyncedWithStream.clear(),this.renderedOptionsCount=0,this.lastTopUpScrollHeight=-1,this.emptyDataOption=null,this.loadingMoreRows=!1,this.select&&(Array.from(this.select.children).forEach(e=>{e instanceof fi||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"))}rowToOption(e){var t;return{value:e[this.valueField],label:this.labelRowFormatter?this.labelRowFormatter(e):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)}}renderListboxOptions(e){e.forEach(({value:e,label:t})=>{const i=document.createElement(this.optionElement);i.textContent=t||e,i.value=e,this.select.appendChild(i),this.resizeObserver.observe(i)})}removeEmptyDataOption(){this.emptyDataOption&&(this.emptyDataOption.remove(),this.emptyDataOption=null)}syncComponentData(e){this.loadingMoreRows=!1;const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values());if(t.length>0){this.removeEmptyDataOption(),this.options=t.map(e=>this.rowToOption(e));const e=0===this.renderedOptionsCount;if(this.renderListboxOptions(this.options.slice(this.renderedOptionsCount)),this.renderedOptionsCount=this.options.length,this.topUpVisibleListbox(),!this.initalSelectedValueInitialized||this.select instanceof r.Combobox&&!this.select.async&&e){this.resetCombobox();const e=this.getInitialLabel();l.DOM.queueUpdate(()=>{this.select.value=String(e),this.select instanceof r.Combobox&&this.select.async&&this.selectChangeHandler({target:{value:e}})}),this.initalSelectedValueInitialized=!0}}else if(this.allowCustomOptions&&this.initialSelectedValue&&(!this.initalSelectedValueInitialized||this.select instanceof r.Combobox&&!this.select.async)&&(this.resetCombobox(),l.DOM.queueUpdate(()=>{this.select.value=String(this.initialSelectedValue)}),this.initalSelectedValueInitialized=!0),this.select&&!this.emptyDataOption){const e=document.createElement(this.optionElement);e.textContent=this.emptyDataLabel,e.value="",e.disabled=!0,this.select.appendChild(e),this.emptyDataOption=e}}getInitialLabel(){return this.getDisplayForValue(this.initialSelectedValue)}getDisplayForValue(e){var t;if(null==e||0!==e&&!e)return"";const i=null===(t=this.options)||void 0===t?void 0:t.find(t=>t.value===e);return this.allowCustomOptions&&this.select instanceof r.Combobox?String(i?i.label:e):i?String(i.label):""}resetCombobox(){this.select&&this.select instanceof r.Combobox&&this.select.resetCombobox()}handleStreamInserts(e){var t;if(this.loadingMoreRows=!1,!(null==e?void 0:e.length))return;this.removeEmptyDataOption();const i=e.map(e=>this.rowToOption(e));this.options=[...null!==(t=this.options)&&void 0!==t?t:[],...i],this.renderListboxOptions(i),this.renderedOptionsCount=this.options.length,this.topUpVisibleListbox()}handleStreamDeletes(e){ot.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ot.debug("handleStreamUpdates - Method not implemented.")}};bi.defaultPageSize=20,bi.scrollLoadThresholdPx=32,(0,C.Cg)([ni.ME],bi.prototype,"resources",void 0),(0,C.Cg)([(0,l.attr)({attribute:"label-field"})],bi.prototype,"labelField",void 0),(0,C.Cg)([(0,l.attr)({attribute:"option-element"})],bi.prototype,"optionElement",void 0),(0,C.Cg)([(0,l.attr)({attribute:"value-field"})],bi.prototype,"valueField",void 0),(0,C.Cg)([(0,l.attr)({attribute:"empty-data-label"})],bi.prototype,"emptyDataLabel",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"allow-custom-options"})],bi.prototype,"allowCustomOptions",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"infinite-scroll"})],bi.prototype,"infiniteScroll",void 0),(0,C.Cg)([(0,l.attr)({attribute:"page-size",converter:l.nullableNumberConverter})],bi.prototype,"pageSize",void 0),(0,C.Cg)([l.observable],bi.prototype,"labelFormatter",void 0),(0,C.Cg)([l.observable],bi.prototype,"labelRowFormatter",void 0),(0,C.Cg)([l.observable],bi.prototype,"initialSelectedValue",void 0),bi=fi=(0,C.Cg)([(0,l.customElement)({name:"options-datasource"})],bi);const yi=(e,t)=>l.css`
914
+ `,Xt=(e,t)=>(0,s.checkboxTemplate)(e,t);class Jt extends r.Checkbox{}const Qt=void 0,Zt={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 '},ei=Jt.compose(Object.assign({baseName:"checkbox",template:Xt,styles:Kt,shadowOptions:Qt},Zt));var ti=i(62051),ii=i.n(ti),oi=i(39087),ni=i(87917),ai=i(40370),si=i(6884),ri=i(96730),li=i(21281),di=i(34193),ci=i(41119),ui=i(57963),hi=i(49964),pi=i(12066),mi=i(97156);class vi extends((0,ai.C)(s.FoundationElement)){constructor(){super(...arguments),this.withGridInit=!0,this.isSnapshot=!1,this.maxRows=si.OD.MAX_ROWS_250,this.maxView=si.OD.MAX_VIEW_1000,this.resourceName="",this.reverse=!1,this.withTimestampFormatting=!0,this.requiresFullDataRefresh=!0,this.moreRowsAvailable=!1,this.nextRequestOffset=0,this.rowsSyncedWithStream=new Map,this.dataSubWasLoggedOff=!1,this.criteriaFromFilters=new Map,this.update=new mi.t(new Map),this.fetchGeneration=0}criteriaChanged(e,t){const i=e!==(0,ri.Q)(t,";");this.refetchIfInitializedAndChanged(i)}dataChanged(e){e&&(this.clearData(),this.reset())}requestChanged(e,t){const i=JSON.stringify(e)!==JSON.stringify(t);this.refetchIfInitializedAndChanged(i)}refetchIfInitializedAndChanged(e){this.datasource.initialized&&e&&this.fetchGenesisData(null)}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}get effectiveRowId(){var e;return this.rowId?this.rowId:(null===(e=this.datasource)||void 0===e?void 0:e.resourceType)===oi.v.REQUEST_SERVER?si.OD.REQUEST_SERVER_ROW_ID:si.OD.DATASERVER_ROW_ID}reset(){this.requiresFullDataRefresh=!0,this.fetchGenesisData()}fetchGenesisData(){return(0,C.sH)(this,arguments,void 0,function*(e=!0){var t,i;null===(t=this.dataSub)||void 0===t||t.unsubscribe(),this.dataSub=void 0,this.moreRowsAvailable=!1,this.nextRequestOffset=0,this.fetchGeneration+=1;const o=this.fetchGeneration,n=()=>o!==this.fetchGeneration;if(this.data)return void this.syncComponentData(this.data);const a=e||!this.datasource.initialized;a||(this.connect.dataLogoff(this.sourceRef),this.clearData()),this.sourceRef=void 0;const s=yield this.datasource.init(this.datasourceOptions(),a);if(!n())if(s){if(this.isSnapshot){const e=yield this.datasource.snapshot();if(n())return;const t=this.filterSnapshotResult(e);return this.updateRequestPagingState(e,null!==(i=null==t?void 0:t.length)&&void 0!==i?i:0,this.initialRequestOffset()),void this.syncComponentData(t)}ot.debug(`requesting stream for ${this.resourceName}`),this.dataSub=this.datasource.stream.subscribe(e=>{if(n())return;e.DISCONNECTED&&this.handleError({message:`Genesis Datasource disconnected for ${this.resourceName}`,loggerType:"error"}),this.sourceRef=e.SOURCE_REF,"boolean"==typeof e.MORE_ROWS&&(this.moreRowsAvailable=e.MORE_ROWS);const t=e.MESSAGE_TYPE;if(t&&t===li.Go.LOGOFF_ACK)this.dataSubWasLoggedOff=!0;else if(this.dataSubWasLoggedOff=!1,e.ROW){const t=(0,di.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,C.sH)(this,void 0,void 0,function*(){yield this.datasource.init(this.datasourceOptions(),!0)})}canRequestMoreRows(){if(!this.isConnected||!this.datasource||!this.moreRowsAvailable)return!1;switch(this.datasource.resourceType){case oi.v.REQUEST_SERVER:return!0;case oi.v.DATASERVER:return!!this.sourceRef&&!this.dataSubWasLoggedOff;default:return!1}}requestMoreRows(){return(0,C.sH)(this,void 0,void 0,function*(){var e;if(this.canRequestMoreRows())try{if(this.datasource.resourceType===oi.v.DATASERVER)return void(yield this.connect.getMoreRows(this.sourceRef));const t=this.fetchGeneration,i=this.nextRequestOffset;this.moreRowsAvailable=!1;const o=yield this.datasource.snapshot({DETAILS:Object.assign(Object.assign({},null===(e=this.datasource.requestOnlyParams)||void 0===e?void 0:e.DETAILS),{OFFSET:i})});if(t!==this.fetchGeneration)return;const n=Array.isArray(null==o?void 0:o.REPLY)?o.REPLY:[];this.updateRequestPagingState(o,n.length,i),n.length>0&&this.handleStreamInserts(n)}catch(e){throw this.moreRowsAvailable=!0,this.handleError({message:`Failed to request more rows for ${this.resourceName}`,loggerType:"error",loggerArgs:[e]}),e}})}filterSnapshotResult(e){if(e)return Array.isArray(e)?e:e.REPLY?e.REPLY:e.ROW?(0,di.d)(e).inserts:void 0}updateRequestPagingState(e,t,i){if(Array.isArray(e)||!e)return void(this.moreRowsAvailable=!1);const o=e,n=Number(this.maxRows)||0;this.moreRowsAvailable="boolean"==typeof o.MORE_ROWS?o.MORE_ROWS:t>0&&n>0&&t>=n,this.nextRequestOffset="number"==typeof o.NEXT_OFFSET&&o.NEXT_OFFSET>0?o.NEXT_OFFSET:i+t}initialRequestOffset(){var e,t;return Number(null===(t=null===(e=this.datasource.requestOnlyParams)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.OFFSET)||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,i;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)return null===(i=e.REPLY)||void 0===i||i.forEach(e=>{this.rowsSyncedWithStream.set(e[this.effectiveRowId],e)}),void this.syncComponentData(Array.from(this.rowsSyncedWithStream.values()));this.handleStreamInserts(e.REPLY);const o=Array.from(this.rowsSyncedWithStream.values()).filter(t=>!e.REPLY.includes(t));this.handleStreamDeletes(o)}applyDataserverData(e){var t,i,o,n;if(this.requiresFullDataRefresh){null===(t=e.inserts)||void 0===t||t.forEach(e=>{this.rowsSyncedWithStream.set(e[this.effectiveRowId],e)});const i=Array.from(this.rowsSyncedWithStream.values());return void this.syncComponentData(i)}(null===(i=e.inserts)||void 0===i?void 0:i.length)>0&&this.handleStreamInserts(e.inserts),(null===(o=e.deletes)||void 0===o?void 0:o.length)>0&&this.handleStreamDeletes(e.deletes),(null===(n=e.updates)||void 0===n?void 0:n.length)>0&&this.handleStreamUpdates(e.updates)}buildCriteria(){var e;const t=(null===(e=this.criteria)||void 0===e?void 0:e.split(";"))||[];return(0,ri.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:i,loggerArgs:o=[]}=e;t&&ot[i](t,...o)}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===ci.w.DATE||t===ci.w.DATETIME?(0,pi.Ey)(e,t===ci.w.DATETIME):e}}function gi(e,t){var i;const o=new j.b;o.withExpression((new G.K).withField(null!==(i=e.labelField)&&void 0!==i?i:e.valueField).withValue(t).withSerialiser(V.n.containsIgnoreCase).build()),e.baseCriteria?e.criteria=`${e.baseCriteria} && ${o.build()}`:e.criteria=o.build()}var fi;(0,C.Cg)([ui.dm],vi.prototype,"connect",void 0),(0,C.Cg)([hi.yW],vi.prototype,"datasource",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],vi.prototype,"withGridInit",void 0),(0,C.Cg)([l.attr],vi.prototype,"criteria",void 0),(0,C.Cg)([l.observable],vi.prototype,"data",void 0),(0,C.Cg)([l.attr],vi.prototype,"fields",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],vi.prototype,"isSnapshot",void 0),(0,C.Cg)([l.attr],vi.prototype,"maxRows",void 0),(0,C.Cg)([l.attr],vi.prototype,"maxView",void 0),(0,C.Cg)([l.attr],vi.prototype,"orderBy",void 0),(0,C.Cg)([l.attr],vi.prototype,"request",void 0),(0,C.Cg)([l.attr],vi.prototype,"resourceName",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],vi.prototype,"reverse",void 0),(0,C.Cg)([l.attr],vi.prototype,"rowId",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"with-timestamp-formatting"})],vi.prototype,"withTimestampFormatting",void 0);let bi=fi=class extends vi{constructor(){super(...arguments),this.emptyDataLabel="No matching records",this.allowCustomOptions=!1,this.infiniteScroll=!1,this.pageSize=fi.defaultPageSize,this.initalSelectedValueInitialized=!1,this.isSnapshot=!0,this.baseCriteria="",this.listboxElement=null,this.loadingMoreRows=!1,this.renderedOptionsCount=0,this.lastTopUpScrollHeight=-1,this.emptyDataOption=null,this.selectOpenChangeHandler=e=>{var t;(null===(t=e.detail)||void 0===t?void 0:t.open)&&(this.listboxElement||this.attachListboxScrollListener(),this.topUpVisibleListbox())},this.listboxScrollHandler=()=>{const e=this.listboxElement;if(!e)return;e.scrollTop+e.clientHeight>=e.scrollHeight-fi.scrollLoadThresholdPx&&this.loadNextPage()},this.resizeObserverCallback=e=>{e.forEach(e=>{this.checkOverflow(e.target)})},this.selectChangeHandler=e=>{var t;const i=e.target.value,o=null===(t=this.options)||void 0===t?void 0:t.find(e=>String(e.label)===i);!o&&this.allowCustomOptions&&this.select instanceof r.Combobox?this.select.$emit("value-change",{label:i,value:i}):this.select.$emit("value-change",o)}}initialSelectedValueChanged(e,t){t&&t!==e&&(this.select&&this.getDisplayForValue(t)===String(this.select.value||"")||(this.initalSelectedValueInitialized=!1,this.clearData(),this.fetchData()))}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(this,void 0,void 0,function*(){var t,i;if(e.connectedCallback.call(this),this.baseCriteria=this.criteria,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!==(i=this.optionElement)&&void 0!==i?i:`${T(this.select)}-option`,this.select.addEventListener("change",this.selectChangeHandler),this.resizeObserver=new ResizeObserver(this.resizeObserverCallback),this.infiniteScroll){if(this.maxRows=this.pageSize>0?this.pageSize:fi.defaultPageSize,this.select.addEventListener("open-change",this.selectOpenChangeHandler),yield this.applyInfiniteScrollFetchMode(),!this.isConnected)return;l.DOM.queueUpdate(()=>this.attachListboxScrollListener())}this.fetchData(),this.valueField||ot.warn('Specify field for values in options (e.g value-field="VALUE") and optionally field for label (e.g label-field="NAME")')})}disconnectedCallback(){var e;super.disconnectedCallback(),this.resizeObserver.disconnect(),null===(e=this.listboxElement)||void 0===e||e.removeEventListener("scroll",this.listboxScrollHandler),this.listboxElement=null,this.select.removeEventListener("open-change",this.selectOpenChangeHandler),this.select.removeEventListener("change",this.selectChangeHandler)}applyInfiniteScrollFetchMode(){return(0,C.sH)(this,void 0,void 0,function*(){if(this.resourceName&&this.connect.isConnected)try{const e=yield this.resources.getResourceTypeFor(this.resourceName);this.isSnapshot=e!==oi.v.DATASERVER}catch(e){ot.warn(`Unable to determine the resource type for ${this.resourceName}`,e)}})}attachListboxScrollListener(){var e,t,i,o,n,a,s;this.isConnected&&(null===(e=this.listboxElement)||void 0===e||e.removeEventListener("scroll",this.listboxScrollHandler),this.listboxElement=null!==(n=null!==(i=null===(t=this.select)||void 0===t?void 0:t.scrollableListbox)&&void 0!==i?i:null===(o=this.select)||void 0===o?void 0:o.listbox)&&void 0!==n?n:null===(s=null===(a=this.select)||void 0===a?void 0:a.shadowRoot)||void 0===s?void 0:s.querySelector(".listbox"),this.listboxElement?this.listboxElement.addEventListener("scroll",this.listboxScrollHandler):ot.warn("Unable to locate listbox element, infinite scroll will not be available."))}loadNextPage(){return(0,C.sH)(this,void 0,void 0,function*(){if(this.loadingMoreRows||!this.canRequestMoreRows())return;this.loadingMoreRows=!0;const e=this.datasource.resourceType===oi.v.REQUEST_SERVER;try{yield this.requestMoreRows()}catch(e){return void(this.loadingMoreRows=!1)}e&&(this.loadingMoreRows=!1)})}topUpVisibleListbox(){this.infiniteScroll&&requestAnimationFrame(()=>{if(!this.isConnected)return;const e=this.listboxElement;e&&0!==e.clientHeight&&(e.scrollHeight>e.clientHeight||e.scrollHeight!==this.lastTopUpScrollHeight&&(this.lastTopUpScrollHeight=e.scrollHeight,this.loadNextPage()))})}fetchData(){this.select&&this.valueField&&(this.resourceName&&this.connect.isConnected||this.data)&&(this.select instanceof r.Combobox&&this.select.async&&this.initialSelectedValue?this.asyncModeIntialization():this.fetchGenesisData())}asyncModeIntialization(){return(0,C.sH)(this,void 0,void 0,function*(){(yield this.datasource.init(this.datasourceOptions(),!0))?gi(this,this.initialSelectedValue):this.handleError({message:`Genesis Datasource async mode initialization failed for ${this.resourceName}`,loggerType:"error"})})}clearData(){this.rowsSyncedWithStream.clear(),this.renderedOptionsCount=0,this.lastTopUpScrollHeight=-1,this.emptyDataOption=null,this.loadingMoreRows=!1,this.select&&(Array.from(this.select.children).forEach(e=>{e instanceof fi||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"))}rowToOption(e){var t;return{value:e[this.valueField],label:this.labelRowFormatter?this.labelRowFormatter(e):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)}}renderListboxOptions(e){e.forEach(({value:e,label:t})=>{const i=document.createElement(this.optionElement);i.textContent=t||e,i.value=e,this.select.appendChild(i),this.resizeObserver.observe(i)})}removeEmptyDataOption(){this.emptyDataOption&&(this.emptyDataOption.remove(),this.emptyDataOption=null)}syncComponentData(e){this.loadingMoreRows=!1;const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values());if(t.length>0){this.removeEmptyDataOption(),this.options=t.map(e=>this.rowToOption(e));const e=0===this.renderedOptionsCount;if(this.renderListboxOptions(this.options.slice(this.renderedOptionsCount)),this.renderedOptionsCount=this.options.length,this.topUpVisibleListbox(),!this.initalSelectedValueInitialized||this.select instanceof r.Combobox&&!this.select.async&&e){this.resetCombobox();const e=this.getInitialLabel();l.DOM.queueUpdate(()=>{this.select.value=String(e),this.select instanceof r.Combobox&&this.select.async&&this.selectChangeHandler({target:{value:e}})}),this.initalSelectedValueInitialized=!0}}else if(this.allowCustomOptions&&this.initialSelectedValue&&(!this.initalSelectedValueInitialized||this.select instanceof r.Combobox&&!this.select.async)&&(this.resetCombobox(),l.DOM.queueUpdate(()=>{this.select.value=String(this.initialSelectedValue)}),this.initalSelectedValueInitialized=!0),this.select&&!this.emptyDataOption){const e=document.createElement(this.optionElement);e.textContent=this.emptyDataLabel,e.value="",e.disabled=!0,this.select.appendChild(e),this.emptyDataOption=e}}getInitialLabel(){return this.getDisplayForValue(this.initialSelectedValue)}getDisplayForValue(e){var t;if(null==e||0!==e&&!e)return"";const i=null===(t=this.options)||void 0===t?void 0:t.find(t=>t.value===e);return this.allowCustomOptions&&this.select instanceof r.Combobox?String(i?i.label:e):i?String(i.label):""}resetCombobox(){this.select&&this.select instanceof r.Combobox&&this.select.resetCombobox()}handleStreamInserts(e){var t;if(this.loadingMoreRows=!1,!(null==e?void 0:e.length))return;this.removeEmptyDataOption();const i=e.map(e=>this.rowToOption(e));this.options=[...null!==(t=this.options)&&void 0!==t?t:[],...i],this.renderListboxOptions(i),this.renderedOptionsCount=this.options.length,this.topUpVisibleListbox()}handleStreamDeletes(e){ot.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ot.debug("handleStreamUpdates - Method not implemented.")}};bi.defaultPageSize=20,bi.scrollLoadThresholdPx=32,(0,C.Cg)([ni.ME],bi.prototype,"resources",void 0),(0,C.Cg)([(0,l.attr)({attribute:"label-field"})],bi.prototype,"labelField",void 0),(0,C.Cg)([(0,l.attr)({attribute:"option-element"})],bi.prototype,"optionElement",void 0),(0,C.Cg)([(0,l.attr)({attribute:"value-field"})],bi.prototype,"valueField",void 0),(0,C.Cg)([(0,l.attr)({attribute:"empty-data-label"})],bi.prototype,"emptyDataLabel",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"allow-custom-options"})],bi.prototype,"allowCustomOptions",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"infinite-scroll"})],bi.prototype,"infiniteScroll",void 0),(0,C.Cg)([(0,l.attr)({attribute:"page-size",converter:l.nullableNumberConverter})],bi.prototype,"pageSize",void 0),(0,C.Cg)([l.observable],bi.prototype,"labelFormatter",void 0),(0,C.Cg)([l.observable],bi.prototype,"labelRowFormatter",void 0),(0,C.Cg)([l.observable],bi.prototype,"initialSelectedValue",void 0),bi=fi=(0,C.Cg)([(0,l.customElement)({name:"options-datasource"})],bi);const yi=(e,t)=>l.css`
915
915
  .combo-box-indicator {
916
916
  transition-property: transform;
917
917
  transition-duration: 0.2s;
@@ -933,7 +933,7 @@
933
933
  @keydown="${(e,t)=>e.keydownHandler(t.event)}"
934
934
  >
935
935
  <div class="control" part="control">
936
- ${(0,a.startSlotTemplate)(e,t)}
936
+ ${(0,s.startSlotTemplate)(e,t)}
937
937
  <slot name="control">
938
938
  <input
939
939
  aria-activedescendant="${e=>e.activeDescendant}"
@@ -960,7 +960,7 @@
960
960
  <slot name="indicator">${t.indicator||""}</slot>
961
961
  </div>
962
962
  </slot>
963
- ${(0,a.endSlotTemplate)(e,t)}
963
+ ${(0,s.endSlotTemplate)(e,t)}
964
964
  </div>
965
965
  <div
966
966
  class="listbox"
@@ -973,11 +973,11 @@
973
973
  >
974
974
  <slot
975
975
  ${(0,l.ref)("slottedDatasource")}
976
- ${(0,l.slotted)({filter:a.Listbox.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
976
+ ${(0,l.slotted)({filter:s.Listbox.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
977
977
  ></slot>
978
978
  </div>
979
979
  </template>
980
- `;var Ci,xi;class $i extends r.Combobox{constructor(){super(...arguments),Ci.set(this,void 0),xi.set(this,!1),this.needManualChangeEventDispatch=!1,this.async=!1,this.debounce=500,this.caseSensitive=!1,this.ignoreInputClick=!1,this.filterMode="startsWith",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=ii()(this.asyncSetFilter,t)}get scrollableListbox(){var e,t;return null!==(e=this.listbox)&&void 0!==e?e:null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".listbox")}openChanged(){super.openChanged(),this.$emit("open-change",{open:this.open}),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 l.Observable.track(this,"value"),this._ourValue}set value(e){var t,i,o;if(void 0===e)return;const n=`${this._ourValue}`;if(this.$fastController.isConnected&&this.options){const n=this.caseSensitive?t=>t.text===e:t=>t.text.toLowerCase()===String(e).toLowerCase(),s=this.options?this.options.findIndex(n):-1,a=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,r=null===(i=this.options[s])||void 0===i?void 0:i.text;this.selectedIndex=r&&r!==a?s:this.selectedIndex,e&&""!==e.trim()&&-1===s&&(e=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||e)}n!==e&&(this._ourValue=e,super.valueChanged(n,e),l.Observable.notify(this,"value"))}slottedOptionsChanged(e,t){this.enableAsyncForInfiniteScrollDatasource();const i=!!this.async;super.slottedOptionsChanged(e,t),this.updateValue(i)}enableAsyncForInfiniteScrollDatasource(){var e;if(this.async)return;const t=null===(e=this.slottedDatasource)||void 0===e?void 0:e.assignedNodes().find(e=>e instanceof bi);(null==t?void 0:t.infiniteScroll)&&(this.async=!0)}filterOptions(){this.autocomplete&&this.autocomplete!==a.ComboboxAutocomplete.none||(this.filter="");const e=this.filter,t=this.caseSensitive?e:e.toLowerCase();this.filteredOptions=this._options.filter(e=>{const i=this.caseSensitive?e.text:e.text.toLowerCase();return"contains"===this.filterMode?i.includes(t):i.startsWith(t)}),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(E(e,this))this.open=!1;else{if(O(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!O(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,C.GG)(this,xi,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 i=super.keydownHandler(e);return"Enter"!==t?i:void 0}keyupHandler(e){var t;const i=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(i){case"Enter":return!(0,C.gn)(this,xi,"f");case"ArrowDown":case"ArrowUp":this.open&&this.firstSelectedOption&&this.autocomplete===a.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 i=super.keyupHandler(e);return this.selectItemByValue(this.control.value),i}return super.keyupHandler(e)}get indicator(){return(0,C.gn)(this,Ci,"f")||(0,C.GG)(this,Ci,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,C.gn)(this,Ci,"f")}selectItemByValue(e){var t,i,o;this.selectedIndex=null!==(i=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>t.text===e))&&void 0!==i?i:-1,null===(o=this.options)||void 0===o||o.forEach((e,t)=>e.selected=t===this.selectedIndex)}inputHandler(e){this.async?this.debouncedInputHandler():super.inputHandler(e)}asyncSetFilter(){const e=this.control.value,t=this.slottedDatasource.assignedNodes().filter(e=>e instanceof bi);t.length>0?(vi(t[0],this.control.value),l.DOM.queueUpdate(()=>{this.control.value=e})):ot.warn("Options-datasource is not connected. Please add a datasource to use this functionality.")}manuallyDispatchChangeEvent(){this.needManualChangeEventDispatch&&this.firstSelectedOption&&this.autocomplete===a.ComboboxAutocomplete.both&&(this.dispatchEvent(new Event("change",{bubbles:!0})),this.needManualChangeEventDispatch=!1)}}Ci=new WeakMap,xi=new WeakMap,(0,C.Cg)([l.observable],$i.prototype,"activeDescendant",null),(0,C.Cg)([l.observable],$i.prototype,"slottedDatasource",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],$i.prototype,"async",void 0),(0,C.Cg)([l.attr],$i.prototype,"debounce",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"case-sensitive"})],$i.prototype,"caseSensitive",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"ignore-input-click"})],$i.prototype,"ignoreInputClick",void 0),(0,C.Cg)([(0,l.attr)({attribute:"filter-mode"})],$i.prototype,"filterMode",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"scroll-to-selected-when-opening"})],$i.prototype,"scrollToSelectedWhenOpening",void 0),(0,C.Cg)([l.observable],$i.prototype,"scrollToSelectedWhenOpeningOptions",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"scroll-when-selection-changes"})],$i.prototype,"scrollWhenSelectionChanges",void 0),(0,C.Cg)([l.observable],$i.prototype,"scrollWhenSelectionChangesOptions",void 0);const Si={delegatesFocus:!0,mode:"open"},Ei={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 '},Oi=$i.compose(Object.assign({baseName:"combobox",template:wi,styles:yi,shadowOptions:Si},Ei));var Ti=i(98316);const ki=(e,t)=>l.css`
980
+ `;var Ci,xi;class $i extends r.Combobox{constructor(){super(...arguments),Ci.set(this,void 0),xi.set(this,!1),this.needManualChangeEventDispatch=!1,this.async=!1,this.debounce=500,this.caseSensitive=!1,this.ignoreInputClick=!1,this.filterMode="startsWith",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=ii()(this.asyncSetFilter,t)}get scrollableListbox(){var e,t;return null!==(e=this.listbox)&&void 0!==e?e:null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".listbox")}openChanged(){super.openChanged(),this.$emit("open-change",{open:this.open}),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 l.Observable.track(this,"value"),this._ourValue}set value(e){var t,i,o;if(void 0===e)return;const n=`${this._ourValue}`;if(this.$fastController.isConnected&&this.options){const n=this.caseSensitive?t=>t.text===e:t=>t.text.toLowerCase()===String(e).toLowerCase(),a=this.options?this.options.findIndex(n):-1,s=null===(t=this.options[this.selectedIndex])||void 0===t?void 0:t.text,r=null===(i=this.options[a])||void 0===i?void 0:i.text;this.selectedIndex=r&&r!==s?a:this.selectedIndex,e&&""!==e.trim()&&-1===a&&(e=(null===(o=this.firstSelectedOption)||void 0===o?void 0:o.text)||e)}n!==e&&(this._ourValue=e,super.valueChanged(n,e),l.Observable.notify(this,"value"))}slottedOptionsChanged(e,t){this.enableAsyncForInfiniteScrollDatasource();const i=!!this.async;super.slottedOptionsChanged(e,t),this.updateValue(i)}enableAsyncForInfiniteScrollDatasource(){var e;if(this.async)return;const t=null===(e=this.slottedDatasource)||void 0===e?void 0:e.assignedNodes().find(e=>e instanceof bi);(null==t?void 0:t.infiniteScroll)&&(this.async=!0)}filterOptions(){this.autocomplete&&this.autocomplete!==s.ComboboxAutocomplete.none||(this.filter="");const e=this.filter,t=this.caseSensitive?e:e.toLowerCase();this.filteredOptions=this._options.filter(e=>{const i=this.caseSensitive?e.text:e.text.toLowerCase();return"contains"===this.filterMode?i.includes(t):i.startsWith(t)}),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(E(e,this))this.open=!1;else{if(O(e,this.indicator))return this.open=!this.open,void(this.open&&this.control.focus());if(!this.ignoreInputClick||!O(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,C.GG)(this,xi,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 i=super.keydownHandler(e);return"Enter"!==t?i:void 0}keyupHandler(e){var t;const i=e.key;if(e.ctrlKey||e.shiftKey)return!0;switch(i){case"Enter":return!(0,C.gn)(this,xi,"f");case"ArrowDown":case"ArrowUp":this.open&&this.firstSelectedOption&&this.autocomplete===s.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 i=super.keyupHandler(e);return this.selectItemByValue(this.control.value),i}return super.keyupHandler(e)}get indicator(){return(0,C.gn)(this,Ci,"f")||(0,C.GG)(this,Ci,this.shadowRoot.querySelector('[part="indicator"]'),"f"),(0,C.gn)(this,Ci,"f")}selectItemByValue(e){var t,i,o;this.selectedIndex=null!==(i=null===(t=this.options)||void 0===t?void 0:t.findIndex(t=>t.text===e))&&void 0!==i?i:-1,null===(o=this.options)||void 0===o||o.forEach((e,t)=>e.selected=t===this.selectedIndex)}inputHandler(e){this.async?this.debouncedInputHandler():super.inputHandler(e)}asyncSetFilter(){const e=this.control.value,t=this.slottedDatasource.assignedNodes().filter(e=>e instanceof bi);t.length>0?(gi(t[0],this.control.value),l.DOM.queueUpdate(()=>{this.control.value=e})):ot.warn("Options-datasource is not connected. Please add a datasource to use this functionality.")}manuallyDispatchChangeEvent(){this.needManualChangeEventDispatch&&this.firstSelectedOption&&this.autocomplete===s.ComboboxAutocomplete.both&&(this.dispatchEvent(new Event("change",{bubbles:!0})),this.needManualChangeEventDispatch=!1)}}Ci=new WeakMap,xi=new WeakMap,(0,C.Cg)([l.observable],$i.prototype,"activeDescendant",null),(0,C.Cg)([l.observable],$i.prototype,"slottedDatasource",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],$i.prototype,"async",void 0),(0,C.Cg)([l.attr],$i.prototype,"debounce",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"case-sensitive"})],$i.prototype,"caseSensitive",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"ignore-input-click"})],$i.prototype,"ignoreInputClick",void 0),(0,C.Cg)([(0,l.attr)({attribute:"filter-mode"})],$i.prototype,"filterMode",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"scroll-to-selected-when-opening"})],$i.prototype,"scrollToSelectedWhenOpening",void 0),(0,C.Cg)([l.observable],$i.prototype,"scrollToSelectedWhenOpeningOptions",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"scroll-when-selection-changes"})],$i.prototype,"scrollWhenSelectionChanges",void 0),(0,C.Cg)([l.observable],$i.prototype,"scrollWhenSelectionChangesOptions",void 0);const Si={delegatesFocus:!0,mode:"open"},Ei={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 '},Oi=$i.compose(Object.assign({baseName:"combobox",template:wi,styles:yi,shadowOptions:Si},Ei));var Ti=i(98316);const ki=(e,t)=>l.css`
981
981
  :host {
982
982
  --light-size: 12px;
983
983
  --height: calc(var(--design-unit) * 2px + var(--light-size));
@@ -1030,13 +1030,13 @@
1030
1030
  ${(0,l.when)(e=>e.showLabel,l.html`
1031
1031
  <div class="label">${e=>e.label}</div>
1032
1032
  `)}
1033
- `;class Ii extends a.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,C.Cg)([ui.dm],Ii.prototype,"connect",void 0),(0,C.Cg)([Ti.N],Ii.prototype,"session",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"show-label"})],Ii.prototype,"showLabel",void 0),(0,C.Cg)([l.observable],Ii.prototype,"label",void 0),(0,C.Cg)([l.observable],Ii.prototype,"colour",void 0);const Ri=Ii.compose({baseName:"connection-indicator",template:Di,styles:ki}),Ai=(e,t)=>l.css`
1033
+ `;class Ii extends s.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,C.Cg)([ui.dm],Ii.prototype,"connect",void 0),(0,C.Cg)([Ti.N],Ii.prototype,"session",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"show-label"})],Ii.prototype,"showLabel",void 0),(0,C.Cg)([l.observable],Ii.prototype,"label",void 0),(0,C.Cg)([l.observable],Ii.prototype,"colour",void 0);const Ri=Ii.compose({baseName:"connection-indicator",template:Di,styles:ki}),Ai=(e,t)=>l.css`
1034
1034
  ${(0,r.dataGridStyles)(e,t)}
1035
- `,Li=(e,t)=>(0,a.dataGridTemplate)(e,t);class Ni extends r.DataGrid{}const Fi=void 0,Mi={},_i=Ni.compose(Object.assign({baseName:"data-grid",template:Li,styles:Ai,shadowOptions:Fi},Mi)),Hi=(e,t)=>l.css`
1035
+ `,Li=(e,t)=>(0,s.dataGridTemplate)(e,t);class Ni extends r.DataGrid{}const Fi=void 0,Mi={},_i=Ni.compose(Object.assign({baseName:"data-grid",template:Li,styles:Ai,shadowOptions:Fi},Mi)),Hi=(e,t)=>l.css`
1036
1036
  ${(0,r.dataGridCellStyles)(e,t)}
1037
- `;class Pi extends r.DataGridCell{}const zi=void 0,Ui={},Bi=Pi.compose(Object.assign({baseName:"data-grid-cell",template:a.dataGridCellTemplate,styles:Hi,shadowOptions:zi},Ui)),Vi=(e,t)=>l.css`
1037
+ `;class Pi extends r.DataGridCell{}const zi=void 0,Ui={},Bi=Pi.compose(Object.assign({baseName:"data-grid-cell",template:s.dataGridCellTemplate,styles:Hi,shadowOptions:zi},Ui)),Vi=(e,t)=>l.css`
1038
1038
  ${(0,r.dataGridRowStyles)(e,t)}
1039
- `;class Gi extends r.DataGridRow{}const ji=void 0,Yi={},Wi=Gi.compose(Object.assign({baseName:"data-grid-row",template:a.dataGridRowTemplate,styles:Vi,shadowOptions:ji},Yi));var qi=i(94343),Ki=i.n(qi),Xi=i(58915),Ji=i.n(Xi),Qi=i(7554),Zi=i.n(Qi),eo=i(49916),to=i.n(eo),io=i(33839),oo=i.n(io);class no{constructor(e,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()}}Ki().extend(oo());class so{constructor(e=null,t="default"){const i=new no(e,t);this.lang=t,this.name=i.month,this.number=i.monthNumber,this.year=i.year,this.numberOfDays=[31,28,31,30,31,30,31,31,30,31,30,31][this.number-1],2===this.number&&(this.numberOfDays+=Ki()(i.date).isLeapYear()?1:0)}getDay(e){return new no(new Date(this.year,this.number-1,e),this.lang)}}Ki().extend(oo());class ao{constructor(e=null,t=null,i="default"){this.weekDays=Array.from({length:7}),this.today=new no(null,i),this.year=null!=e?e:this.today.year,this.month=new so(new Date(this.year,(t||this.today.monthNumber)-1),i),this.lang=i,this.weekDays.forEach((e,t)=>{const i=this.month.getDay(t);this.weekDays[i.dayNumber-1]=i.day})}getMonth(e){return new so(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new so(new Date(this.year-1,11),this.lang):new so(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new so(new Date(this.year+1,0),this.lang):new so(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new so(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new so(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new so(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new so(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new so(new Date(this.year,this.month.number-1-1),this.lang)}}const ro=l.css`
1039
+ `;class Gi extends r.DataGridRow{}const ji=void 0,Yi={},Wi=Gi.compose(Object.assign({baseName:"data-grid-row",template:s.dataGridRowTemplate,styles:Vi,shadowOptions:ji},Yi));var qi=i(94343),Ki=i.n(qi),Xi=i(58915),Ji=i.n(Xi),Qi=i(7554),Zi=i.n(Qi),eo=i(49916),to=i.n(eo),io=i(33839),oo=i.n(io);class no{constructor(e,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()}}Ki().extend(oo());class ao{constructor(e=null,t="default"){const i=new no(e,t);this.lang=t,this.name=i.month,this.number=i.monthNumber,this.year=i.year,this.numberOfDays=[31,28,31,30,31,30,31,31,30,31,30,31][this.number-1],2===this.number&&(this.numberOfDays+=Ki()(i.date).isLeapYear()?1:0)}getDay(e){return new no(new Date(this.year,this.number-1,e),this.lang)}}Ki().extend(oo());class so{constructor(e=null,t=null,i="default"){this.weekDays=Array.from({length:7}),this.today=new no(null,i),this.year=null!=e?e:this.today.year,this.month=new ao(new Date(this.year,(t||this.today.monthNumber)-1),i),this.lang=i,this.weekDays.forEach((e,t)=>{const i=this.month.getDay(t);this.weekDays[i.dayNumber-1]=i.day})}getMonth(e){return new ao(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new ao(new Date(this.year-1,11),this.lang):new ao(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new ao(new Date(this.year+1,0),this.lang):new ao(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new ao(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new ao(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new ao(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new ao(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new ao(new Date(this.year,this.month.number-1-1),this.lang)}}const ro=l.css`
1040
1040
  :host {
1041
1041
  position: relative;
1042
1042
  }
@@ -1247,8 +1247,8 @@
1247
1247
  </div>
1248
1248
  `,uo=l.html`
1249
1249
  ${e=>co(T(e))}
1250
- `;i(8420);function ho(e){const t=((null==e?void 0:e.trim())||"en").toLowerCase().replace(/_/g,"-");return"en-us"===t||"en"===t?"en":"en-gb"===t?"en-gb":t}function po(){return"undefined"!=typeof navigator&&navigator.language?navigator.language:"en"}function mo(e="en"){const t=ho(e),i=Ki()().locale(t),o=i.locale();return(n=t)!==(s=o)&&s!==n.split("-")[0]?Ki()().locale("en").localeData().longDateFormat("L")||"MM/DD/YYYY":i.localeData().longDateFormat("L")||"MM/DD/YYYY";var n,s}function go(e){return e.replace(/YYYY/g,"yyyy").replace(/YY(?!Y)/g,"yy").replace(/DD/g,"dd").replace(/D(?!D)/g,"d").replace(/MM/g,"mm").replace(/M(?!M)/g,"m")}function vo(e){return null!=e&&""!==String(e).trim()}Ki().extend(Ji()),Ki().extend(Zi()),Ki().extend(to());const fo="MM-DD-YYYY";function bo(e,t){const i=String(e).trim(),o=Ki()(i,t,!0);if(o.isValid())return o;const n=Ki()(i,fo,!0);return n.isValid()?n:null}var yo=i(28745);const wo=[1,2,3,4,5,6,7],Co=(e,t,i)=>{if(o=t,-1===e.indexOf(o.dayNumber))return t;var o;const n=wo.filter(t=>-1===e.indexOf(t));let s=n.find(e=>e>t.dayNumber);s||(s=Math.min(...n));const a=t.dayNumber<s?s-t.dayNumber:s-t.dayNumber+7;return n.length?new no(((e,t=1)=>{const i=new Date(e);return i.setDate(e.getDate()+t),i})(t.Date,a),i):(yo.v.warn("Date picker disabled days - all days of week have been disabled"),t)},xo=void 0,$o={};class So extends a.FoundationElement{constructor(){super(...arguments),this.format=fo,this.lang="en-US",this.visible=!1,this.position="bottom",this.disabledDaysOfWeek=[],this.suppressValueChanged=!1,this.cachedFormat=fo,this.clickOutside=e=>this.handleClickOutside(e),this.keydownOutside=e=>this.handleKeydownOutside(e)}formatChanged(e,t){!this.useLocaleFormat&&t&&this.cacheUserFormat(t),t&&this.calendar&&vo(this.value)&&(this.formatDate=Ki()(this.currentDate.Date).format(t))}langChanged(){this.applyEffectiveLangChange()}useLocaleFormatChanged(e,t){this.calendar&&(t&&!e?this.cacheUserFormat(this.format):!t&&e&&this.restoreUserFormat(),this.applyEffectiveLangChange())}inlineCalendarChanged(){this.inlineCalendar?(document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("keydown",this.keydownOutside)):this.visible&&(document.addEventListener("mousedown",this.clickOutside),document.addEventListener("keydown",this.keydownOutside)),this.toggleVisibility()}hideWeekendsCalendarChanged(){this.toggleVisibility()}valueChanged(e,t){this.suppressValueChanged||this.calendar&&(vo(t)?this.applyValue(t):this.allowEmpty?this.clearToEmpty(!1):this.resetToDefaultDate())}disconnectedCallback(){document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("keydown",this.keydownOutside),super.disconnectedCallback()}connectedCallback(){super.connectedCallback(),Ki().extend(Ji()),Ki().extend(to()),Ki().extend(Zi()),this.substringNumber=3,this.useLocaleFormat&&(this.cacheUserFormat(this.format),this.applyLocaleFormat());const e=this.value;!this.allowEmpty||vo(e)?vo(e)?this.applyValue(e):this.initializeWithDefaultDate():this.initializeEmpty()}clear(){this.allowEmpty&&this.clearToEmpty(!0)}get inputValue(){return vo(this.value)?this.formatDate:""}get inputPlaceholder(){var e;return!this.allowEmpty||vo(this.value)?"":(null===(e=this.placeholder)||void 0===e?void 0:e.trim())||go(this.format)}get effectiveLang(){return this.useLocaleFormat&&!this.hasAttribute("lang")?po():this.lang}applyLocaleFormat(){this.format=mo(this.effectiveLang)}cacheUserFormat(e){const t=null==e?void 0:e.trim();t&&(this.cachedFormat=t)}restoreUserFormat(){this.format=this.cachedFormat}applyEffectiveLangChange(){var e,t;if(!this.calendar)return;this.useLocaleFormat&&this.applyLocaleFormat();const i=this.calendar.year,o=this.calendar.month.number,n=null!==(t=null===(e=this.currentDate)||void 0===e?void 0:e.Date)&&void 0!==t?t:Ki()().toDate();this.currentDate=new no(n,this.effectiveLang),this.calendar=new ao(i,o,this.effectiveLang),vo(this.value)&&(this.formatDate=Ki()(this.currentDate.Date).format(this.format)),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}syncValueAttribute(e){this.suppressValueChanged=!0,this.value=e,this.suppressValueChanged=!1}initializeEmpty(){const e=Ki()();this.currentDate=new no(e.toDate(),this.effectiveLang),this.calendar=new ao(this.currentDate.year,this.currentDate.monthNumber,this.effectiveLang),this.formatDate="",this.syncValueAttribute(""),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.monthList=this.getMonthDaysGrid()}initializeWithDefaultDate(){this.resetToDefaultDate(!0)}resetToDefaultDate(e=!1){var t;let i=new no(Ki()().toDate(),this.effectiveLang);(null===(t=this.disabledDaysOfWeek)||void 0===t?void 0:t.length)&&(i=Co(this.disabledDaysOfWeek,i,this.effectiveLang)),this.currentDate=i,e||!this.calendar?this.calendar=new ao(this.currentDate.year,this.currentDate.monthNumber,this.effectiveLang):this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=Ki()(this.currentDate.Date).format(this.format),this.syncValueAttribute(Ki()(this.currentDate.Date).format(fo)),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.monthList=this.getMonthDaysGrid()}applyValue(e){const t=bo(e,this.format);t?(this.currentDate=new no(t.toDate(),this.effectiveLang),this.calendar?this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year):this.calendar=new ao(this.currentDate.year,this.currentDate.monthNumber,this.effectiveLang),this.formatDate=Ki()(this.currentDate.Date).format(this.format),this.syncValueAttribute(Ki()(this.currentDate.Date).format(fo)),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()):this.allowEmpty?this.clearToEmpty(!1):this.resetToDefaultDate()}clearToEmpty(e){const t=Ki()();this.currentDate=new no(t.toDate(),this.effectiveLang),this.calendar&&(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()),this.formatDate="",this.syncValueAttribute(""),e&&this.$emit("value-changed",void 0)}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}visibleChanged(e,t){this.inlineCalendar||(t?(document.addEventListener("mousedown",this.clickOutside),document.addEventListener("keydown",this.keydownOutside)):(document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("keydown",this.keydownOutside)))}handleKeydownOutside(e){!this.inlineCalendar&&this.visible&&"Escape"===e.key&&(e.preventDefault(),this.closeCalendar())}handleClickOutside(e){!this.inlineCalendar&&this.visible&&E(e,this)&&this.closeCalendar()}closeCalendar(){this.visible&&(this.visible=!1,this.toggleVisibility())}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=(0,x.x)(["visible",this.visible],this.position,["inline",this.inlineCalendar],["hide-weekends",this.hideWeekends])}isSelectedDate(e){return!(this.allowEmpty&&!vo(this.value))&&Ki()(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){Ki()(e.Date).isSame(this.currentDate.Date,"day")&&vo(this.value)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=Ki()(this.currentDate.Date).format(this.format),this.syncValueAttribute(Ki()(e.Date).format(fo)),this.$emit("value-changed",this.value),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),i=e.dayNumber-1,o=this.calendar.month.numberOfDays+i,n=Array.from({length:o});for(let e=i;e<o;e+=1)n[e]=this.calendar.month.getDay(e+1-i);for(let e=0;e<i;e+=1){const o=i-(e+1);n[e]=t.getDay(t.numberOfDays-o)}return n}}(0,C.Cg)([l.attr],So.prototype,"format",void 0),(0,C.Cg)([l.attr],So.prototype,"lang",void 0),(0,C.Cg)([(0,l.attr)({attribute:"use-locale-format",mode:"boolean"})],So.prototype,"useLocaleFormat",void 0),(0,C.Cg)([l.attr],So.prototype,"visible",void 0),(0,C.Cg)([(0,l.attr)({attribute:"inline-calendar",mode:"boolean"})],So.prototype,"inlineCalendar",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-weekends",mode:"boolean"})],So.prototype,"hideWeekends",void 0),(0,C.Cg)([l.attr],So.prototype,"position",void 0),(0,C.Cg)([l.attr],So.prototype,"label",void 0),(0,C.Cg)([(0,l.attr)({attribute:"allow-empty",mode:"boolean"})],So.prototype,"allowEmpty",void 0),(0,C.Cg)([l.attr],So.prototype,"placeholder",void 0),(0,C.Cg)([l.attr],So.prototype,"value",void 0),(0,C.Cg)([l.observable],So.prototype,"currentDate",void 0),(0,C.Cg)([l.observable],So.prototype,"currentMonth",void 0),(0,C.Cg)([l.observable],So.prototype,"currentYear",void 0),(0,C.Cg)([l.observable],So.prototype,"calendarDropdownClasses",void 0),(0,C.Cg)([l.observable],So.prototype,"formatDate",void 0),(0,C.Cg)([l.observable],So.prototype,"monthList",void 0),(0,C.Cg)([l.observable],So.prototype,"disabledDaysOfWeek",void 0),(0,C.Cg)([l.observable],So.prototype,"calendar",void 0);const Eo=So.compose(Object.assign({baseName:"date-picker",styles:ro,template:uo,shadowOptions:xo},$o));var Oo=i(83912);const To=r.SwatchRGB.create(1,1,1),ko=r.SwatchRGB.create(0,0,0),Do=(0,Oo.parseColorHexRGB)("#585858"),Io=r.SwatchRGB.create(Do.r,Do.g,Do.b),Ro=(0,Oo.parseColorHexRGB)("#ffffff"),Ao=r.SwatchRGB.create(Ro.r,Ro.g,Ro.b),Lo=r.PaletteRGB.from(Ao),No=(0,Oo.parseColorHexRGB)("#eeeeee"),Fo=r.SwatchRGB.create(No.r,No.g,No.b),Mo=r.PaletteRGB.from(Fo),_o=(0,Oo.parseColorHexRGB)("#08c3a5"),Ho=r.SwatchRGB.create(_o.r,_o.g,_o.b),Po=r.PaletteRGB.from(Ho),{create:zo}=a.DesignToken,Uo=zo("fui-fill-color").withDefault(Io),Bo=zo({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(Ao),Vo=14;function Go(e,t){return e.colorContrast(t,Vo)}const jo=zo({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault(e=>Go(zo("fui-card-palette").withDefault(Lo).getValueFor(e),Bo.getValueFor(e))),Yo=(e,t)=>{const i=structuredClone(e);return!t||"object"!=typeof t||Array.isArray(t)?void 0!==t?t:i:(Object.keys(t).forEach(e=>{const o=t[e],n=i[e];if(null==o)return;const s=e=>e instanceof Date;!o||"object"!=typeof o||Array.isArray(o)||s(o)||!n||"object"!=typeof n||Array.isArray(n)||s(n)?i[e]=o:i[e]=Yo(n,o)}),i)};var Wo=i(80273);const qo={design_tokens:{color:{accent:{$value:"#0EAFE2",$type:"color"},neutral:{$value:"#7C909B",$type:"color"}},fontFamily:{bodyFont:{$value:'Roboto, "Segoe UI", Arial, Helvetica, sans-serif',$type:"fontFamily"}},typography:{baseFontSize:{$value:"14px",$type:"dimension"},baseLineHeight:{$value:"20px",$type:"dimension"}},mode:{luminance:{$value:.23,$type:"number"}},style:{density:{$value:0,$type:"number"},baseHeightMultiplier:{$value:10,$type:"number"},borderRadius:{$value:4,$type:"number"},strokeWidth:{$value:1,$type:"number"}},space:{designUnit:{$value:4,$type:"number"}}}};class Ko{constructor(){this.value=null}}(0,C.Cg)([l.observable],Ko.prototype,"value",void 0);const Xo=new Ko,Jo=(e,t,i)=>{const o=i?(e,t)=>e.setValueFor(i,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach(i=>{const n=`${i}Value`;t[n]&&o(e[i],t[n])})};function Qo(e){return(t,i)=>{t[i+"Changed"]=function(t,i){null!=i?e.setValueFor(this,i):e.deleteValueFor(this)}}}const Zo={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,Oo.parseColorHexRGB)(e);return t?r.SwatchRGB.create(t.r,t.g,t.b):null}},en=e=>r.PaletteRGB.from(r.SwatchRGB.from((0,Oo.parseColorHexRGB)(e))),tn=(e,t,i="")=>{Object.entries(t).forEach(([t,o])=>{const n=i?`${i}-${t}`:t;o&&"object"==typeof o&&("$value"in o?e.style.setProperty(`--${n}`,String(o.$value)):tn(e,o,n))})},on=["baseClass","baseName","shadowOptions","styles","template"],nn=(e,t=on)=>Object.keys(e).filter(e=>!t.includes(e)).reduce((t,i)=>(t[i]=e[i],t),{}),sn=e=>{const{definition:t}=e(),{shadowOptions:i,styles:o,template:n}=t;return{shadowOptions:i,styles:o,template:n,defaultConfig:nn(t)}},an=(e,t)=>{const i=e.match(/^(\d+)([a-z]+)/i),o=i[1],n=i[2];return Number(o)+t+n},rn=()=>Xo,ln=(...e)=>{const t=Xo.value;if(!(null==t?void 0:t.customTokens)||0===e.length)return null;return function e(t,i){const[o,...n]=t;if(0===n.length){const e=i[o];return e&&e.$value?e:null}const s=i[o];return s?e(n,s):null}(e,t.customTokens)},dn=(e,t)=>{const i=Yo(qo,t);const o=i.design_tokens;r.accentPalette.setValueFor(e,en(o.color.accent.$value)),r.neutralPalette.setValueFor(e,en(o.color.neutral.$value)),r.bodyFont.setValueFor(e,o.fontFamily.bodyFont.$value),r.baseLayerLuminance.setValueFor(e,o.mode.luminance.$value),r.density.setValueFor(e,o.style.density.$value),r.baseHeightMultiplier.setValueFor(e,o.style.baseHeightMultiplier.$value),r.controlCornerRadius.setValueFor(e,o.style.borderRadius.$value),r.strokeWidth.setValueFor(e,o.style.strokeWidth.$value),r.designUnit.setValueFor(e,o.space.designUnit.$value),r.typeRampBaseFontSize.setValueFor(e,o.typography.baseFontSize.$value),r.typeRampBaseLineHeight.setValueFor(e,o.typography.baseLineHeight.$value);const n=r.typeRampBaseFontSize.getValueFor(e),s=r.typeRampBaseLineHeight.getValueFor(e);r.typeRampMinus1FontSize.setValueFor(e,an(n,Wo.Du.minusOne)),r.typeRampMinus1LineHeight.setValueFor(e,an(s,Wo.Du.minusOne)),r.typeRampMinus2FontSize.setValueFor(e,an(n,Wo.Du.minusTwo)),r.typeRampMinus2LineHeight.setValueFor(e,an(s,Wo.Du.minusTwo)),r.typeRampPlus1FontSize.setValueFor(e,an(n,Wo.Du.plusOne)),r.typeRampPlus1LineHeight.setValueFor(e,an(s,Wo.Du.plusOne)),r.typeRampPlus2FontSize.setValueFor(e,an(n,Wo.Du.plusTwo)),r.typeRampPlus2LineHeight.setValueFor(e,an(s,Wo.Du.plusTwo)),r.typeRampPlus3FontSize.setValueFor(e,an(n,Wo.Du.plusThree)),r.typeRampPlus3LineHeight.setValueFor(e,an(s,Wo.Du.plusThree)),r.typeRampPlus4FontSize.setValueFor(e,an(n,Wo.Du.plusFour)),r.typeRampPlus4LineHeight.setValueFor(e,an(s,Wo.Du.plusFour)),r.typeRampPlus5FontSize.setValueFor(e,an(n,Wo.Du.plusFive)),r.typeRampPlus5LineHeight.setValueFor(e,an(s,Wo.Du.plusFive)),r.typeRampPlus6FontSize.setValueFor(e,an(n,Wo.Du.plusSix)),r.typeRampPlus6LineHeight.setValueFor(e,an(s,Wo.Du.plusSix)),i.customTokens&&tn(e,i.customTokens),Xo.value=structuredClone(i)},cn=en("#08c3a5"),un=en("#eeeeee"),hn=r.StandardLuminance.DarkMode;const pn=i(85109).O.ltr,mn=4,gn=4;var vn=i(85090);const fn=(e="normal",t="normal")=>`\n font-family: ${r.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,bn=l.css`
1251
- ${(0,a.display)("flex")}
1250
+ `;i(8420);function ho(e){const t=((null==e?void 0:e.trim())||"en").toLowerCase().replace(/_/g,"-");return"en-us"===t||"en"===t?"en":"en-gb"===t?"en-gb":t}function po(){return"undefined"!=typeof navigator&&navigator.language?navigator.language:"en"}function mo(e="en"){const t=ho(e),i=Ki()().locale(t),o=i.locale();return(n=t)!==(a=o)&&a!==n.split("-")[0]?Ki()().locale("en").localeData().longDateFormat("L")||"MM/DD/YYYY":i.localeData().longDateFormat("L")||"MM/DD/YYYY";var n,a}function vo(e){return e.replace(/YYYY/g,"yyyy").replace(/YY(?!Y)/g,"yy").replace(/DD/g,"dd").replace(/D(?!D)/g,"d").replace(/MM/g,"mm").replace(/M(?!M)/g,"m")}function go(e){return null!=e&&""!==String(e).trim()}Ki().extend(Ji()),Ki().extend(Zi()),Ki().extend(to());const fo="MM-DD-YYYY";function bo(e,t){const i=String(e).trim(),o=Ki()(i,t,!0);if(o.isValid())return o;const n=Ki()(i,fo,!0);return n.isValid()?n:null}var yo=i(28745);const wo=[1,2,3,4,5,6,7],Co=(e,t,i)=>{if(o=t,-1===e.indexOf(o.dayNumber))return t;var o;const n=wo.filter(t=>-1===e.indexOf(t));let a=n.find(e=>e>t.dayNumber);a||(a=Math.min(...n));const s=t.dayNumber<a?a-t.dayNumber:a-t.dayNumber+7;return n.length?new no(((e,t=1)=>{const i=new Date(e);return i.setDate(e.getDate()+t),i})(t.Date,s),i):(yo.v.warn("Date picker disabled days - all days of week have been disabled"),t)},xo=void 0,$o={};class So extends s.FoundationElement{constructor(){super(...arguments),this.format=fo,this.lang="en-US",this.visible=!1,this.position="bottom",this.disabledDaysOfWeek=[],this.suppressValueChanged=!1,this.cachedFormat=fo,this.clickOutside=e=>this.handleClickOutside(e),this.keydownOutside=e=>this.handleKeydownOutside(e)}formatChanged(e,t){!this.useLocaleFormat&&t&&this.cacheUserFormat(t),t&&this.calendar&&go(this.value)&&(this.formatDate=Ki()(this.currentDate.Date).format(t))}langChanged(){this.applyEffectiveLangChange()}useLocaleFormatChanged(e,t){this.calendar&&(t&&!e?this.cacheUserFormat(this.format):!t&&e&&this.restoreUserFormat(),this.applyEffectiveLangChange())}inlineCalendarChanged(){this.inlineCalendar?(document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("keydown",this.keydownOutside)):this.visible&&(document.addEventListener("mousedown",this.clickOutside),document.addEventListener("keydown",this.keydownOutside)),this.toggleVisibility()}hideWeekendsCalendarChanged(){this.toggleVisibility()}valueChanged(e,t){this.suppressValueChanged||this.calendar&&(go(t)?this.applyValue(t):this.allowEmpty?this.clearToEmpty(!1):this.resetToDefaultDate())}disconnectedCallback(){document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("keydown",this.keydownOutside),super.disconnectedCallback()}connectedCallback(){super.connectedCallback(),Ki().extend(Ji()),Ki().extend(to()),Ki().extend(Zi()),this.substringNumber=3,this.useLocaleFormat&&(this.cacheUserFormat(this.format),this.applyLocaleFormat());const e=this.value;!this.allowEmpty||go(e)?go(e)?this.applyValue(e):this.initializeWithDefaultDate():this.initializeEmpty()}clear(){this.allowEmpty&&this.clearToEmpty(!0)}get inputValue(){return go(this.value)?this.formatDate:""}get inputPlaceholder(){var e;return!this.allowEmpty||go(this.value)?"":(null===(e=this.placeholder)||void 0===e?void 0:e.trim())||vo(this.format)}get effectiveLang(){return this.useLocaleFormat&&!this.hasAttribute("lang")?po():this.lang}applyLocaleFormat(){this.format=mo(this.effectiveLang)}cacheUserFormat(e){const t=null==e?void 0:e.trim();t&&(this.cachedFormat=t)}restoreUserFormat(){this.format=this.cachedFormat}applyEffectiveLangChange(){var e,t;if(!this.calendar)return;this.useLocaleFormat&&this.applyLocaleFormat();const i=this.calendar.year,o=this.calendar.month.number,n=null!==(t=null===(e=this.currentDate)||void 0===e?void 0:e.Date)&&void 0!==t?t:Ki()().toDate();this.currentDate=new no(n,this.effectiveLang),this.calendar=new so(i,o,this.effectiveLang),go(this.value)&&(this.formatDate=Ki()(this.currentDate.Date).format(this.format)),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()}syncValueAttribute(e){this.suppressValueChanged=!0,this.value=e,this.suppressValueChanged=!1}initializeEmpty(){const e=Ki()();this.currentDate=new no(e.toDate(),this.effectiveLang),this.calendar=new so(this.currentDate.year,this.currentDate.monthNumber,this.effectiveLang),this.formatDate="",this.syncValueAttribute(""),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.monthList=this.getMonthDaysGrid()}initializeWithDefaultDate(){this.resetToDefaultDate(!0)}resetToDefaultDate(e=!1){var t;let i=new no(Ki()().toDate(),this.effectiveLang);(null===(t=this.disabledDaysOfWeek)||void 0===t?void 0:t.length)&&(i=Co(this.disabledDaysOfWeek,i,this.effectiveLang)),this.currentDate=i,e||!this.calendar?this.calendar=new so(this.currentDate.year,this.currentDate.monthNumber,this.effectiveLang):this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.formatDate=Ki()(this.currentDate.Date).format(this.format),this.syncValueAttribute(Ki()(this.currentDate.Date).format(fo)),this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year,this.monthList=this.getMonthDaysGrid()}applyValue(e){const t=bo(e,this.format);t?(this.currentDate=new no(t.toDate(),this.effectiveLang),this.calendar?this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year):this.calendar=new so(this.currentDate.year,this.currentDate.monthNumber,this.effectiveLang),this.formatDate=Ki()(this.currentDate.Date).format(this.format),this.syncValueAttribute(Ki()(this.currentDate.Date).format(fo)),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()):this.allowEmpty?this.clearToEmpty(!1):this.resetToDefaultDate()}clearToEmpty(e){const t=Ki()();this.currentDate=new no(t.toDate(),this.effectiveLang),this.calendar&&(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText(),this.monthList=this.getMonthDaysGrid()),this.formatDate="",this.syncValueAttribute(""),e&&this.$emit("value-changed",void 0)}updateHeaderText(){this.currentMonth=this.calendar.month.name,this.currentYear=this.calendar.year}visibleChanged(e,t){this.inlineCalendar||(t?(document.addEventListener("mousedown",this.clickOutside),document.addEventListener("keydown",this.keydownOutside)):(document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("keydown",this.keydownOutside)))}handleKeydownOutside(e){!this.inlineCalendar&&this.visible&&"Escape"===e.key&&(e.preventDefault(),this.closeCalendar())}handleClickOutside(e){!this.inlineCalendar&&this.visible&&E(e,this)&&this.closeCalendar()}closeCalendar(){this.visible&&(this.visible=!1,this.toggleVisibility())}toggleCalendar(){this.visible=!this.visible,this.toggleVisibility(),this.isCurrentCalendarMonth()||(this.calendar.goToDate(this.currentDate.monthNumber,this.currentDate.year),this.updateHeaderText())}toggleVisibility(){this.calendarDropdownClasses=(0,x.x)(["visible",this.visible],this.position,["inline",this.inlineCalendar],["hide-weekends",this.hideWeekends])}isSelectedDate(e){return!(this.allowEmpty&&!go(this.value))&&Ki()(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){Ki()(e.Date).isSame(this.currentDate.Date,"day")&&go(this.value)||(this.currentDate=e,e.monthNumber!==this.calendar.month.number&&this.prevMonth(),this.formatDate=Ki()(this.currentDate.Date).format(this.format),this.syncValueAttribute(Ki()(e.Date).format(fo)),this.$emit("value-changed",this.value),this.toggleCalendar())}getMonthDaysGrid(){const e=this.calendar.month.getDay(1),t=this.calendar.getPreviousMonth(),i=e.dayNumber-1,o=this.calendar.month.numberOfDays+i,n=Array.from({length:o});for(let e=i;e<o;e+=1)n[e]=this.calendar.month.getDay(e+1-i);for(let e=0;e<i;e+=1){const o=i-(e+1);n[e]=t.getDay(t.numberOfDays-o)}return n}}(0,C.Cg)([l.attr],So.prototype,"format",void 0),(0,C.Cg)([l.attr],So.prototype,"lang",void 0),(0,C.Cg)([(0,l.attr)({attribute:"use-locale-format",mode:"boolean"})],So.prototype,"useLocaleFormat",void 0),(0,C.Cg)([l.attr],So.prototype,"visible",void 0),(0,C.Cg)([(0,l.attr)({attribute:"inline-calendar",mode:"boolean"})],So.prototype,"inlineCalendar",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-weekends",mode:"boolean"})],So.prototype,"hideWeekends",void 0),(0,C.Cg)([l.attr],So.prototype,"position",void 0),(0,C.Cg)([l.attr],So.prototype,"label",void 0),(0,C.Cg)([(0,l.attr)({attribute:"allow-empty",mode:"boolean"})],So.prototype,"allowEmpty",void 0),(0,C.Cg)([l.attr],So.prototype,"placeholder",void 0),(0,C.Cg)([l.attr],So.prototype,"value",void 0),(0,C.Cg)([l.observable],So.prototype,"currentDate",void 0),(0,C.Cg)([l.observable],So.prototype,"currentMonth",void 0),(0,C.Cg)([l.observable],So.prototype,"currentYear",void 0),(0,C.Cg)([l.observable],So.prototype,"calendarDropdownClasses",void 0),(0,C.Cg)([l.observable],So.prototype,"formatDate",void 0),(0,C.Cg)([l.observable],So.prototype,"monthList",void 0),(0,C.Cg)([l.observable],So.prototype,"disabledDaysOfWeek",void 0),(0,C.Cg)([l.observable],So.prototype,"calendar",void 0);const Eo=So.compose(Object.assign({baseName:"date-picker",styles:ro,template:uo,shadowOptions:xo},$o));var Oo=i(83912);const To=r.SwatchRGB.create(1,1,1),ko=r.SwatchRGB.create(0,0,0),Do=(0,Oo.parseColorHexRGB)("#585858"),Io=r.SwatchRGB.create(Do.r,Do.g,Do.b),Ro=(0,Oo.parseColorHexRGB)("#ffffff"),Ao=r.SwatchRGB.create(Ro.r,Ro.g,Ro.b),Lo=r.PaletteRGB.from(Ao),No=(0,Oo.parseColorHexRGB)("#eeeeee"),Fo=r.SwatchRGB.create(No.r,No.g,No.b),Mo=r.PaletteRGB.from(Fo),_o=(0,Oo.parseColorHexRGB)("#08c3a5"),Ho=r.SwatchRGB.create(_o.r,_o.g,_o.b),Po=r.PaletteRGB.from(Ho),{create:zo}=s.DesignToken,Uo=zo("fui-fill-color").withDefault(Io),Bo=zo({name:"card-fill-color",cssCustomPropertyName:"fui-card-fill-color"}).withDefault(Ao),Vo=14;function Go(e,t){return e.colorContrast(t,Vo)}const jo=zo({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault(e=>Go(zo("fui-card-palette").withDefault(Lo).getValueFor(e),Bo.getValueFor(e))),Yo=(e,t)=>{const i=structuredClone(e);return!t||"object"!=typeof t||Array.isArray(t)?void 0!==t?t:i:(Object.keys(t).forEach(e=>{const o=t[e],n=i[e];if(null==o)return;const a=e=>e instanceof Date;!o||"object"!=typeof o||Array.isArray(o)||a(o)||!n||"object"!=typeof n||Array.isArray(n)||a(n)?i[e]=o:i[e]=Yo(n,o)}),i)};var Wo=i(80273);const qo={design_tokens:{color:{accent:{$value:"#0EAFE2",$type:"color"},neutral:{$value:"#7C909B",$type:"color"}},fontFamily:{bodyFont:{$value:'Roboto, "Segoe UI", Arial, Helvetica, sans-serif',$type:"fontFamily"}},typography:{baseFontSize:{$value:"14px",$type:"dimension"},baseLineHeight:{$value:"20px",$type:"dimension"}},mode:{luminance:{$value:.23,$type:"number"}},style:{density:{$value:0,$type:"number"},baseHeightMultiplier:{$value:10,$type:"number"},borderRadius:{$value:4,$type:"number"},strokeWidth:{$value:1,$type:"number"}},space:{designUnit:{$value:4,$type:"number"}}}};class Ko{constructor(){this.value=null}}(0,C.Cg)([l.observable],Ko.prototype,"value",void 0);const Xo=new Ko,Jo=(e,t,i)=>{const o=i?(e,t)=>e.setValueFor(i,t):(e,t)=>e.withDefault(t);Object.keys(e).forEach(i=>{const n=`${i}Value`;t[n]&&o(e[i],t[n])})};function Qo(e){return(t,i)=>{t[i+"Changed"]=function(t,i){null!=i?e.setValueFor(this,i):e.deleteValueFor(this)}}}const Zo={toView:e=>null==e?null:null==e?void 0:e.toColorString(),fromView(e){if(null==e)return null;const t=(0,Oo.parseColorHexRGB)(e);return t?r.SwatchRGB.create(t.r,t.g,t.b):null}},en=e=>r.PaletteRGB.from(r.SwatchRGB.from((0,Oo.parseColorHexRGB)(e))),tn=(e,t,i="")=>{Object.entries(t).forEach(([t,o])=>{const n=i?`${i}-${t}`:t;o&&"object"==typeof o&&("$value"in o?e.style.setProperty(`--${n}`,String(o.$value)):tn(e,o,n))})},on=["baseClass","baseName","shadowOptions","styles","template"],nn=(e,t=on)=>Object.keys(e).filter(e=>!t.includes(e)).reduce((t,i)=>(t[i]=e[i],t),{}),an=e=>{const{definition:t}=e(),{shadowOptions:i,styles:o,template:n}=t;return{shadowOptions:i,styles:o,template:n,defaultConfig:nn(t)}},sn=(e,t)=>{const i=e.match(/^(\d+)([a-z]+)/i),o=i[1],n=i[2];return Number(o)+t+n},rn=()=>Xo,ln=(...e)=>{const t=Xo.value;if(!(null==t?void 0:t.customTokens)||0===e.length)return null;return function e(t,i){const[o,...n]=t;if(0===n.length){const e=i[o];return e&&e.$value?e:null}const a=i[o];return a?e(n,a):null}(e,t.customTokens)},dn=(e,t)=>{const i=Yo(qo,t);const o=i.design_tokens;r.accentPalette.setValueFor(e,en(o.color.accent.$value)),r.neutralPalette.setValueFor(e,en(o.color.neutral.$value)),r.bodyFont.setValueFor(e,o.fontFamily.bodyFont.$value),r.baseLayerLuminance.setValueFor(e,o.mode.luminance.$value),r.density.setValueFor(e,o.style.density.$value),r.baseHeightMultiplier.setValueFor(e,o.style.baseHeightMultiplier.$value),r.controlCornerRadius.setValueFor(e,o.style.borderRadius.$value),r.strokeWidth.setValueFor(e,o.style.strokeWidth.$value),r.designUnit.setValueFor(e,o.space.designUnit.$value),r.typeRampBaseFontSize.setValueFor(e,o.typography.baseFontSize.$value),r.typeRampBaseLineHeight.setValueFor(e,o.typography.baseLineHeight.$value);const n=r.typeRampBaseFontSize.getValueFor(e),a=r.typeRampBaseLineHeight.getValueFor(e);r.typeRampMinus1FontSize.setValueFor(e,sn(n,Wo.Du.minusOne)),r.typeRampMinus1LineHeight.setValueFor(e,sn(a,Wo.Du.minusOne)),r.typeRampMinus2FontSize.setValueFor(e,sn(n,Wo.Du.minusTwo)),r.typeRampMinus2LineHeight.setValueFor(e,sn(a,Wo.Du.minusTwo)),r.typeRampPlus1FontSize.setValueFor(e,sn(n,Wo.Du.plusOne)),r.typeRampPlus1LineHeight.setValueFor(e,sn(a,Wo.Du.plusOne)),r.typeRampPlus2FontSize.setValueFor(e,sn(n,Wo.Du.plusTwo)),r.typeRampPlus2LineHeight.setValueFor(e,sn(a,Wo.Du.plusTwo)),r.typeRampPlus3FontSize.setValueFor(e,sn(n,Wo.Du.plusThree)),r.typeRampPlus3LineHeight.setValueFor(e,sn(a,Wo.Du.plusThree)),r.typeRampPlus4FontSize.setValueFor(e,sn(n,Wo.Du.plusFour)),r.typeRampPlus4LineHeight.setValueFor(e,sn(a,Wo.Du.plusFour)),r.typeRampPlus5FontSize.setValueFor(e,sn(n,Wo.Du.plusFive)),r.typeRampPlus5LineHeight.setValueFor(e,sn(a,Wo.Du.plusFive)),r.typeRampPlus6FontSize.setValueFor(e,sn(n,Wo.Du.plusSix)),r.typeRampPlus6LineHeight.setValueFor(e,sn(a,Wo.Du.plusSix)),i.customTokens&&tn(e,i.customTokens),Xo.value=structuredClone(i)},cn=en("#08c3a5"),un=en("#eeeeee"),hn=r.StandardLuminance.DarkMode;const pn=i(85109).O.ltr,mn=4,vn=4;var gn=i(85090);const fn=(e="normal",t="normal")=>`\n font-family: ${r.bodyFont};\n font-style: ${e};\n font-weight: ${t};\n`,bn=l.css`
1251
+ ${(0,s.display)("flex")}
1252
1252
  :host {
1253
1253
  flex: 1;
1254
1254
  }
@@ -1256,11 +1256,11 @@
1256
1256
  :host {
1257
1257
  background-color: ${Uo};
1258
1258
  }
1259
- `.withBehaviors((0,a.forcedColorsStylesheetBehavior)(l.css`
1259
+ `.withBehaviors((0,s.forcedColorsStylesheetBehavior)(l.css`
1260
1260
  :host {
1261
- background-color: ${vn.A.ButtonFace};
1262
- box-shadow: 0 0 0 1px ${vn.A.CanvasText};
1263
- color: ${vn.A.ButtonText};
1261
+ background-color: ${gn.A.ButtonFace};
1262
+ box-shadow: 0 0 0 1px ${gn.A.CanvasText};
1263
+ color: ${gn.A.ButtonText};
1264
1264
  }
1265
1265
  `)),wn=(e,t)=>l.css`
1266
1266
  ${e.name} ${"h"+t} {
@@ -1617,11 +1617,11 @@
1617
1617
  </dialog>
1618
1618
  `,kn=l.html`
1619
1619
  ${e=>Tn(T(e))}
1620
- `,Dn={mode:"open",delegatesFocus:!0},In={};class Rn extends a.FoundationElement{constructor(){super(...arguments),this.type="default",this.position="center",this.showCloseIcon=!0,this.resizable=!1,this.draggable=!1,this.minWidth=300,this.minHeight=200,this.isResizing=!1,this.currentResizeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.startLeft=0,this.startTop=0,this.resizeOffsetX=0,this.resizeOffsetY=0,this.originalWidth="",this.originalHeight="",this.originalPosition="",this.originalLeft="",this.originalTop="",this.originalMargin="",this.isMaximized=!1,this.hasBeenResized=!1,this.isDragging=!1,this.dragOffsetX=0,this.dragOffsetY=0,this.dragDialogWidth=0,this.dragDialogHeight=0,this.onMouseDownBound=null,this.onMouseMoveBound=null,this.onMouseUpBound=null}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}draggableChanged(e,t){t?this.attachDragMouseDown():(this.detachDragMouseDown(),this.removeDraggableEventListeners())}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||$n.A.registerDialog(this.mainElement),this.mainElement.addEventListener("close",()=>{this.resetDraggableStyle(),this.onCloseCallback&&this.onCloseCallback(),this.$emit("close")}),this.hasAttribute("open")&&this.shadowRoot.querySelector("dialog").setAttribute("open",""),this.setupResizeHandlers(),this.attachDragMouseDown()}disconnectedCallback(){super.disconnectedCallback(),this.removeResizeHandlers(),this.detachDragMouseDown(),this.removeDraggableEventListeners()}setupResizeHandlers(){if(!this.resizable)return;const e=window.innerWidth,t=window.innerHeight;let i=this.minWidth,o=this.minHeight;void 0!==this.initialWidth&&(i=Math.max(this.minWidth,Math.min(this.initialWidth,e))),void 0!==this.initialHeight&&(o=Math.max(this.minHeight,Math.min(this.initialHeight,t))),this.originalWidth=this.mainElement.style.width||`${i}px`,this.originalHeight=this.mainElement.style.height||`${o}px`,this.originalPosition=this.mainElement.style.position||"",this.originalLeft=this.mainElement.style.left||"",this.originalTop=this.mainElement.style.top||"",this.originalMargin=this.mainElement.style.margin||"",this.mainElement.style.height=`${o}px`,this.mainElement.style.minHeight=`${this.minHeight}px`,this.mainElement.style.width=`${i}px`,this.mainElement.style.minWidth=`${this.minWidth}px`,this.originalWidth=this.mainElement.style.width,this.originalHeight=this.mainElement.style.height;this.shadowRoot.querySelectorAll(".resize-handle").forEach(e=>{e.addEventListener("mousedown",this.handleResizeStart.bind(this)),e.addEventListener("dblclick",this.handleEdgeDoubleClick.bind(this))})}removeResizeHandlers(){var e;document.removeEventListener("mousemove",this.handleResizeMove.bind(this)),document.removeEventListener("mouseup",this.handleResizeEnd.bind(this));const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".resize-handle");null==t||t.forEach(e=>{e.removeEventListener("dblclick",this.handleEdgeDoubleClick.bind(this))})}handleEdgeDoubleClick(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation();const t=e.target.dataset.direction;if(!["n","s","e","w"].includes(t))return;const i=this.mainElement.getBoundingClientRect(),o=window.innerWidth,n=window.innerHeight;switch(this.mainElement.style.position="fixed",this.mainElement.style.margin="0",t){case"n":this.mainElement.style.height=`${i.bottom}px`,this.mainElement.style.top="0px";break;case"s":this.mainElement.style.height=n-i.top+"px";break;case"e":this.mainElement.style.width=o-i.left+"px";break;case"w":this.mainElement.style.width=`${i.right}px`,this.mainElement.style.left="0px"}this.hasBeenResized=!0,this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}handleResizeStart(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation(),this.isResizing=!0;const t=e.target;this.currentResizeHandle=t.dataset.direction,this.startX=e.clientX,this.startY=e.clientY;const i=this.mainElement.getBoundingClientRect();switch(this.startWidth=i.width,this.startHeight=i.height,this.startLeft=i.left,this.startTop=i.top,this.resizeOffsetX=0,this.resizeOffsetY=0,this.currentResizeHandle){case"n":this.resizeOffsetY=e.clientY-i.top;break;case"s":this.resizeOffsetY=e.clientY-i.bottom;break;case"e":this.resizeOffsetX=e.clientX-i.right;break;case"w":this.resizeOffsetX=e.clientX-i.left;break;case"ne":this.resizeOffsetX=e.clientX-i.right,this.resizeOffsetY=e.clientY-i.top;break;case"nw":this.resizeOffsetX=e.clientX-i.left,this.resizeOffsetY=e.clientY-i.top;break;case"se":this.resizeOffsetX=e.clientX-i.right,this.resizeOffsetY=e.clientY-i.bottom;break;case"sw":this.resizeOffsetX=e.clientX-i.left,this.resizeOffsetY=e.clientY-i.bottom}this.mainElement.style.position="fixed",this.mainElement.style.left=`${i.left}px`,this.mainElement.style.top=`${i.top}px`,this.mainElement.style.margin="0",document.addEventListener("mousemove",this.handleResizeMove.bind(this)),document.addEventListener("mouseup",this.handleResizeEnd.bind(this)),this.mainElement.classList.add("resizing")}handleResizeMove(e){if(!this.isResizing||!this.currentResizeHandle)return;e.preventDefault();const t=e.clientX-this.startX-this.resizeOffsetX,i=e.clientY-this.startY-this.resizeOffsetY;let o=this.startWidth,n=this.startHeight,s=this.startLeft,a=this.startTop,r=!1;switch(this.currentResizeHandle){case"se":o=this.startWidth+t,n=this.startHeight+i;break;case"sw":o=this.startWidth-t,n=this.startHeight+i,s=this.startLeft+t,r=!0;break;case"ne":o=this.startWidth+t,n=this.startHeight-i,a=this.startTop+i,r=!0;break;case"nw":o=this.startWidth-t,n=this.startHeight-i,s=this.startLeft+t,a=this.startTop+i,r=!0;break;case"e":o=this.startWidth+t;break;case"w":o=this.startWidth-t,s=this.startLeft+t,r=!0;break;case"s":n=this.startHeight+i;break;case"n":n=this.startHeight-i,a=this.startTop+i,r=!0}const l=window.innerWidth,d=window.innerHeight;if(this.resizable){if(o<this.minWidth){const e=this.minWidth-o;o=this.minWidth,this.currentResizeHandle.includes("w")&&(s-=e)}if(n<this.minHeight){const e=this.minHeight-n;n=this.minHeight,this.currentResizeHandle.includes("n")&&(a-=e)}if(this.currentResizeHandle.includes("e")){const e=l-this.startLeft;o>e&&(o=e)}if(this.currentResizeHandle.includes("s")){const e=d-this.startTop;n>e&&(n=e)}if(this.currentResizeHandle.includes("w")){s<0&&(o+=s,s=0);const e=l-s;o>e&&(o=e)}if(this.currentResizeHandle.includes("n")){a<0&&(n+=a,a=0);const e=d-a;n>e&&(n=e)}}this.mainElement.style.width=`${o}px`,this.mainElement.style.height=`${n}px`,r&&(this.mainElement.style.left=`${s}px`,this.mainElement.style.top=`${a}px`)}handleResizeEnd(e){if(!this.isResizing)return;e.preventDefault(),this.isResizing=!1,this.currentResizeHandle=null,this.resizeOffsetX=0,this.resizeOffsetY=0,document.removeEventListener("mousemove",this.handleResizeMove.bind(this)),document.removeEventListener("mouseup",this.handleResizeEnd.bind(this)),this.mainElement.classList.remove("resizing");const t=this.mainElement.style.width,i=this.mainElement.style.height;t===this.originalWidth&&i===this.originalHeight||(this.hasBeenResized=!0),this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}get open(){return this.mainElement.hasAttribute("open")}get resizeIconName(){return this.hasBeenResized||this.isMaximized?"compress":"expand"}close(){this.mainElement.close()}dismiss(){var e,t,i,o;(null===(o=null===(i=null===(t=null===(e=this.notification)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===o?void 0:o.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){ot.error(e)}}maximize(){this.resizable&&this.mainElement&&(this.mainElement.style.position="fixed",this.mainElement.style.left="0px",this.mainElement.style.top="0px",this.mainElement.style.margin="0",this.mainElement.style.width="100vw",this.mainElement.style.height="100vh",this.isMaximized=!0,this.hasBeenResized=!0,this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight}))}resetSize(){this.resizable&&this.mainElement&&(this.hasBeenResized||this.isMaximized?(this.mainElement.style.width=this.originalWidth,this.mainElement.style.height=this.originalHeight,this.mainElement.style.position=this.originalPosition,this.mainElement.style.left=this.originalLeft,this.mainElement.style.top=this.originalTop,this.mainElement.style.margin=this.originalMargin,this.isMaximized=!1,this.hasBeenResized=!1,this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})):this.maximize())}attachDragMouseDown(){this.draggable&&this.mainElement&&(this.onMouseDownBound||(this.onMouseDownBound=this.onMouseDown.bind(this)),this.mainElement.removeEventListener("mousedown",this.onMouseDownBound),this.mainElement.addEventListener("mousedown",this.onMouseDownBound))}detachDragMouseDown(){this.onMouseDownBound&&this.mainElement&&(this.mainElement.removeEventListener("mousedown",this.onMouseDownBound),this.onMouseDownBound=null)}isEventTargetInDraggableTarget(e){var t;return(null===(t=this.topElement)||void 0===t?void 0:t.contains(e.target))||this.isInsideTopSlot(e.target)}isInsideTopSlot(e){if(!this.topElementSlot)return!1;return this.topElementSlot.assignedNodes().some(t=>t===e||t.contains(e))}onMouseDown(e){if(!this.topElement||!this.isEventTargetInDraggableTarget(e)||this.isDragging)return;this.isDragging=!0;const t=this.mainElement.getBoundingClientRect();this.dragOffsetX=e.clientX-t.left,this.dragOffsetY=e.clientY-t.top,this.dragDialogWidth=t.width,this.dragDialogHeight=t.height,this.onMouseMoveBound=this.onMouseMove.bind(this),this.onMouseUpBound=this.onMouseUp.bind(this),document.addEventListener("mousemove",this.onMouseMoveBound),document.addEventListener("mouseup",this.onMouseUpBound)}onMouseMove(e){if(!this.isDragging||!this.mainElement)return;const t=window.innerWidth,i=window.innerHeight;let o=e.clientX-this.dragOffsetX,n=e.clientY-this.dragOffsetY;o=Math.max(0,Math.min(t-this.dragDialogWidth,o)),n=Math.max(0,Math.min(i-this.dragDialogHeight,n)),requestAnimationFrame(()=>{Object.assign(this.mainElement.style,{position:"absolute",left:`${o}px`,top:`${n}px`,margin:"0"})})}onMouseUp(){this.isDragging=!1,this.removeDraggableEventListeners()}removeDraggableEventListeners(){this.onMouseMoveBound&&(document.removeEventListener("mousemove",this.onMouseMoveBound),this.onMouseMoveBound=null),this.onMouseUpBound&&(document.removeEventListener("mouseup",this.onMouseUpBound),this.onMouseUpBound=null)}resetDraggableStyle(){this.draggable&&this.mainElement instanceof HTMLElement&&Object.assign(this.mainElement.style,{position:"",left:"",top:"",margin:""})}}(0,C.Cg)([l.observable],Rn.prototype,"notification",void 0),(0,C.Cg)([(0,l.attr)({attribute:"type"})],Rn.prototype,"type",void 0),(0,C.Cg)([l.attr],Rn.prototype,"position",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"show-close-icon"})],Rn.prototype,"showCloseIcon",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"resizable"})],Rn.prototype,"resizable",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Rn.prototype,"draggable",void 0),(0,C.Cg)([(0,l.attr)({attribute:"min-width"})],Rn.prototype,"minWidth",void 0),(0,C.Cg)([(0,l.attr)({attribute:"min-height"})],Rn.prototype,"minHeight",void 0),(0,C.Cg)([(0,l.attr)({attribute:"initial-width"})],Rn.prototype,"initialWidth",void 0),(0,C.Cg)([(0,l.attr)({attribute:"initial-height"})],Rn.prototype,"initialHeight",void 0),(0,C.Cg)([l.observable],Rn.prototype,"onShowCallback",void 0),(0,C.Cg)([l.observable],Rn.prototype,"onCloseCallback",void 0),(0,C.Cg)([l.observable],Rn.prototype,"isMaximized",void 0),(0,C.Cg)([l.observable],Rn.prototype,"hasBeenResized",void 0),(0,C.Cg)([l.volatile],Rn.prototype,"open",null),(0,C.Cg)([l.volatile],Rn.prototype,"resizeIconName",null);class An extends Rn{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const Ln=An.compose(Object.assign({baseName:"dialog",styles:Sn,template:kn,shadowOptions:Dn},In)),Nn=(e,t)=>l.css`
1620
+ `,Dn={mode:"open",delegatesFocus:!0},In={};class Rn extends s.FoundationElement{constructor(){super(...arguments),this.type="default",this.position="center",this.showCloseIcon=!0,this.resizable=!1,this.draggable=!1,this.minWidth=300,this.minHeight=200,this.isResizing=!1,this.currentResizeHandle=null,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.startLeft=0,this.startTop=0,this.resizeOffsetX=0,this.resizeOffsetY=0,this.originalWidth="",this.originalHeight="",this.originalPosition="",this.originalLeft="",this.originalTop="",this.originalMargin="",this.isMaximized=!1,this.hasBeenResized=!1,this.isDragging=!1,this.dragOffsetX=0,this.dragOffsetY=0,this.dragDialogWidth=0,this.dragDialogHeight=0,this.onMouseDownBound=null,this.onMouseMoveBound=null,this.onMouseUpBound=null}notificationChanged(){this.notification&&(this.showCloseIcon=!1)}draggableChanged(e,t){t?this.attachDragMouseDown():(this.detachDragMouseDown(),this.removeDraggableEventListeners())}connectedCallback(){super.connectedCallback(),window.HTMLDialogElement||$n.A.registerDialog(this.mainElement),this.mainElement.addEventListener("close",()=>{this.resetDraggableStyle(),this.onCloseCallback&&this.onCloseCallback(),this.$emit("close")}),this.hasAttribute("open")&&this.shadowRoot.querySelector("dialog").setAttribute("open",""),this.setupResizeHandlers(),this.attachDragMouseDown()}disconnectedCallback(){super.disconnectedCallback(),this.removeResizeHandlers(),this.detachDragMouseDown(),this.removeDraggableEventListeners()}setupResizeHandlers(){if(!this.resizable)return;const e=window.innerWidth,t=window.innerHeight;let i=this.minWidth,o=this.minHeight;void 0!==this.initialWidth&&(i=Math.max(this.minWidth,Math.min(this.initialWidth,e))),void 0!==this.initialHeight&&(o=Math.max(this.minHeight,Math.min(this.initialHeight,t))),this.originalWidth=this.mainElement.style.width||`${i}px`,this.originalHeight=this.mainElement.style.height||`${o}px`,this.originalPosition=this.mainElement.style.position||"",this.originalLeft=this.mainElement.style.left||"",this.originalTop=this.mainElement.style.top||"",this.originalMargin=this.mainElement.style.margin||"",this.mainElement.style.height=`${o}px`,this.mainElement.style.minHeight=`${this.minHeight}px`,this.mainElement.style.width=`${i}px`,this.mainElement.style.minWidth=`${this.minWidth}px`,this.originalWidth=this.mainElement.style.width,this.originalHeight=this.mainElement.style.height;this.shadowRoot.querySelectorAll(".resize-handle").forEach(e=>{e.addEventListener("mousedown",this.handleResizeStart.bind(this)),e.addEventListener("dblclick",this.handleEdgeDoubleClick.bind(this))})}removeResizeHandlers(){var e;document.removeEventListener("mousemove",this.handleResizeMove.bind(this)),document.removeEventListener("mouseup",this.handleResizeEnd.bind(this));const t=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".resize-handle");null==t||t.forEach(e=>{e.removeEventListener("dblclick",this.handleEdgeDoubleClick.bind(this))})}handleEdgeDoubleClick(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation();const t=e.target.dataset.direction;if(!["n","s","e","w"].includes(t))return;const i=this.mainElement.getBoundingClientRect(),o=window.innerWidth,n=window.innerHeight;switch(this.mainElement.style.position="fixed",this.mainElement.style.margin="0",t){case"n":this.mainElement.style.height=`${i.bottom}px`,this.mainElement.style.top="0px";break;case"s":this.mainElement.style.height=n-i.top+"px";break;case"e":this.mainElement.style.width=o-i.left+"px";break;case"w":this.mainElement.style.width=`${i.right}px`,this.mainElement.style.left="0px"}this.hasBeenResized=!0,this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}handleResizeStart(e){if(!this.resizable)return;e.preventDefault(),e.stopPropagation(),this.isResizing=!0;const t=e.target;this.currentResizeHandle=t.dataset.direction,this.startX=e.clientX,this.startY=e.clientY;const i=this.mainElement.getBoundingClientRect();switch(this.startWidth=i.width,this.startHeight=i.height,this.startLeft=i.left,this.startTop=i.top,this.resizeOffsetX=0,this.resizeOffsetY=0,this.currentResizeHandle){case"n":this.resizeOffsetY=e.clientY-i.top;break;case"s":this.resizeOffsetY=e.clientY-i.bottom;break;case"e":this.resizeOffsetX=e.clientX-i.right;break;case"w":this.resizeOffsetX=e.clientX-i.left;break;case"ne":this.resizeOffsetX=e.clientX-i.right,this.resizeOffsetY=e.clientY-i.top;break;case"nw":this.resizeOffsetX=e.clientX-i.left,this.resizeOffsetY=e.clientY-i.top;break;case"se":this.resizeOffsetX=e.clientX-i.right,this.resizeOffsetY=e.clientY-i.bottom;break;case"sw":this.resizeOffsetX=e.clientX-i.left,this.resizeOffsetY=e.clientY-i.bottom}this.mainElement.style.position="fixed",this.mainElement.style.left=`${i.left}px`,this.mainElement.style.top=`${i.top}px`,this.mainElement.style.margin="0",document.addEventListener("mousemove",this.handleResizeMove.bind(this)),document.addEventListener("mouseup",this.handleResizeEnd.bind(this)),this.mainElement.classList.add("resizing")}handleResizeMove(e){if(!this.isResizing||!this.currentResizeHandle)return;e.preventDefault();const t=e.clientX-this.startX-this.resizeOffsetX,i=e.clientY-this.startY-this.resizeOffsetY;let o=this.startWidth,n=this.startHeight,a=this.startLeft,s=this.startTop,r=!1;switch(this.currentResizeHandle){case"se":o=this.startWidth+t,n=this.startHeight+i;break;case"sw":o=this.startWidth-t,n=this.startHeight+i,a=this.startLeft+t,r=!0;break;case"ne":o=this.startWidth+t,n=this.startHeight-i,s=this.startTop+i,r=!0;break;case"nw":o=this.startWidth-t,n=this.startHeight-i,a=this.startLeft+t,s=this.startTop+i,r=!0;break;case"e":o=this.startWidth+t;break;case"w":o=this.startWidth-t,a=this.startLeft+t,r=!0;break;case"s":n=this.startHeight+i;break;case"n":n=this.startHeight-i,s=this.startTop+i,r=!0}const l=window.innerWidth,d=window.innerHeight;if(this.resizable){if(o<this.minWidth){const e=this.minWidth-o;o=this.minWidth,this.currentResizeHandle.includes("w")&&(a-=e)}if(n<this.minHeight){const e=this.minHeight-n;n=this.minHeight,this.currentResizeHandle.includes("n")&&(s-=e)}if(this.currentResizeHandle.includes("e")){const e=l-this.startLeft;o>e&&(o=e)}if(this.currentResizeHandle.includes("s")){const e=d-this.startTop;n>e&&(n=e)}if(this.currentResizeHandle.includes("w")){a<0&&(o+=a,a=0);const e=l-a;o>e&&(o=e)}if(this.currentResizeHandle.includes("n")){s<0&&(n+=s,s=0);const e=d-s;n>e&&(n=e)}}this.mainElement.style.width=`${o}px`,this.mainElement.style.height=`${n}px`,r&&(this.mainElement.style.left=`${a}px`,this.mainElement.style.top=`${s}px`)}handleResizeEnd(e){if(!this.isResizing)return;e.preventDefault(),this.isResizing=!1,this.currentResizeHandle=null,this.resizeOffsetX=0,this.resizeOffsetY=0,document.removeEventListener("mousemove",this.handleResizeMove.bind(this)),document.removeEventListener("mouseup",this.handleResizeEnd.bind(this)),this.mainElement.classList.remove("resizing");const t=this.mainElement.style.width,i=this.mainElement.style.height;t===this.originalWidth&&i===this.originalHeight||(this.hasBeenResized=!0),this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})}get open(){return this.mainElement.hasAttribute("open")}get resizeIconName(){return this.hasBeenResized||this.isMaximized?"compress":"expand"}close(){this.mainElement.close()}dismiss(){var e,t,i,o;(null===(o=null===(i=null===(t=null===(e=this.notification)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===o?void 0:o.action)&&this.notification.config.dialog.dismissingAction.action(),this.closeDialog()}closeDialog(){try{this.mainElement.close(),this.remove()}catch(e){ot.error(e)}}maximize(){this.resizable&&this.mainElement&&(this.mainElement.style.position="fixed",this.mainElement.style.left="0px",this.mainElement.style.top="0px",this.mainElement.style.margin="0",this.mainElement.style.width="100vw",this.mainElement.style.height="100vh",this.isMaximized=!0,this.hasBeenResized=!0,this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight}))}resetSize(){this.resizable&&this.mainElement&&(this.hasBeenResized||this.isMaximized?(this.mainElement.style.width=this.originalWidth,this.mainElement.style.height=this.originalHeight,this.mainElement.style.position=this.originalPosition,this.mainElement.style.left=this.originalLeft,this.mainElement.style.top=this.originalTop,this.mainElement.style.margin=this.originalMargin,this.isMaximized=!1,this.hasBeenResized=!1,this.$emit("resize",{width:this.mainElement.offsetWidth,height:this.mainElement.offsetHeight})):this.maximize())}attachDragMouseDown(){this.draggable&&this.mainElement&&(this.onMouseDownBound||(this.onMouseDownBound=this.onMouseDown.bind(this)),this.mainElement.removeEventListener("mousedown",this.onMouseDownBound),this.mainElement.addEventListener("mousedown",this.onMouseDownBound))}detachDragMouseDown(){this.onMouseDownBound&&this.mainElement&&(this.mainElement.removeEventListener("mousedown",this.onMouseDownBound),this.onMouseDownBound=null)}isEventTargetInDraggableTarget(e){var t;return(null===(t=this.topElement)||void 0===t?void 0:t.contains(e.target))||this.isInsideTopSlot(e.target)}isInsideTopSlot(e){if(!this.topElementSlot)return!1;return this.topElementSlot.assignedNodes().some(t=>t===e||t.contains(e))}onMouseDown(e){if(!this.topElement||!this.isEventTargetInDraggableTarget(e)||this.isDragging)return;this.isDragging=!0;const t=this.mainElement.getBoundingClientRect();this.dragOffsetX=e.clientX-t.left,this.dragOffsetY=e.clientY-t.top,this.dragDialogWidth=t.width,this.dragDialogHeight=t.height,this.onMouseMoveBound=this.onMouseMove.bind(this),this.onMouseUpBound=this.onMouseUp.bind(this),document.addEventListener("mousemove",this.onMouseMoveBound),document.addEventListener("mouseup",this.onMouseUpBound)}onMouseMove(e){if(!this.isDragging||!this.mainElement)return;const t=window.innerWidth,i=window.innerHeight;let o=e.clientX-this.dragOffsetX,n=e.clientY-this.dragOffsetY;o=Math.max(0,Math.min(t-this.dragDialogWidth,o)),n=Math.max(0,Math.min(i-this.dragDialogHeight,n)),requestAnimationFrame(()=>{Object.assign(this.mainElement.style,{position:"absolute",left:`${o}px`,top:`${n}px`,margin:"0"})})}onMouseUp(){this.isDragging=!1,this.removeDraggableEventListeners()}removeDraggableEventListeners(){this.onMouseMoveBound&&(document.removeEventListener("mousemove",this.onMouseMoveBound),this.onMouseMoveBound=null),this.onMouseUpBound&&(document.removeEventListener("mouseup",this.onMouseUpBound),this.onMouseUpBound=null)}resetDraggableStyle(){this.draggable&&this.mainElement instanceof HTMLElement&&Object.assign(this.mainElement.style,{position:"",left:"",top:"",margin:""})}}(0,C.Cg)([l.observable],Rn.prototype,"notification",void 0),(0,C.Cg)([(0,l.attr)({attribute:"type"})],Rn.prototype,"type",void 0),(0,C.Cg)([l.attr],Rn.prototype,"position",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"show-close-icon"})],Rn.prototype,"showCloseIcon",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"resizable"})],Rn.prototype,"resizable",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Rn.prototype,"draggable",void 0),(0,C.Cg)([(0,l.attr)({attribute:"min-width"})],Rn.prototype,"minWidth",void 0),(0,C.Cg)([(0,l.attr)({attribute:"min-height"})],Rn.prototype,"minHeight",void 0),(0,C.Cg)([(0,l.attr)({attribute:"initial-width"})],Rn.prototype,"initialWidth",void 0),(0,C.Cg)([(0,l.attr)({attribute:"initial-height"})],Rn.prototype,"initialHeight",void 0),(0,C.Cg)([l.observable],Rn.prototype,"onShowCallback",void 0),(0,C.Cg)([l.observable],Rn.prototype,"onCloseCallback",void 0),(0,C.Cg)([l.observable],Rn.prototype,"isMaximized",void 0),(0,C.Cg)([l.observable],Rn.prototype,"hasBeenResized",void 0),(0,C.Cg)([l.volatile],Rn.prototype,"open",null),(0,C.Cg)([l.volatile],Rn.prototype,"resizeIconName",null);class An extends Rn{show(){this.onShowCallback&&this.onShowCallback(),this.mainElement.show()}}const Ln=An.compose(Object.assign({baseName:"dialog",styles:Sn,template:kn,shadowOptions:Dn},In)),Nn=(e,t)=>l.css`
1621
1621
  ${(0,r.disclosureStyles)(e,t)}
1622
- `,Fn=(e,t)=>(0,a.disclosureTemplate)(e,t);class Mn extends a.Disclosure{}const _n=void 0,Hn={},Pn=Mn.compose(Object.assign({baseName:"disclosure",template:Fn,styles:Nn,shadowOptions:_n},Hn)),zn=(e,t)=>l.css`
1622
+ `,Fn=(e,t)=>(0,s.disclosureTemplate)(e,t);class Mn extends s.Disclosure{}const _n=void 0,Hn={},Pn=Mn.compose(Object.assign({baseName:"disclosure",template:Fn,styles:Nn,shadowOptions:_n},Hn)),zn=(e,t)=>l.css`
1623
1623
  ${(0,r.dividerStyles)(e,t)}
1624
- `,Un=(e,t)=>(0,a.dividerTemplate)(e,t);class Bn extends a.Divider{}const Vn=void 0,Gn={},jn=Bn.compose(Object.assign({baseName:"divider",template:Un,styles:zn,shadowOptions:Vn},Gn)),Yn=(e,t,i)=>l.css`
1624
+ `,Un=(e,t)=>(0,s.dividerTemplate)(e,t);class Bn extends s.Divider{}const Vn=void 0,Gn={},jn=Bn.compose(Object.assign({baseName:"divider",template:Un,styles:zn,shadowOptions:Vn},Gn)),Yn=(e,t,i)=>l.css`
1625
1625
  :host {
1626
1626
  --dropdown-opener-height-multiplier: 0.7px;
1627
1627
  --menu-item-height-multiplier: 0.7px;
@@ -1734,7 +1734,7 @@
1734
1734
  </div>
1735
1735
  `,Xn=l.html`
1736
1736
  ${e=>Kn(T(e))}
1737
- `;class Jn extends a.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){E(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,x.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,C.Cg)([l.observable],Jn.prototype,"items",void 0),(0,C.Cg)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],Jn.prototype,"autoClose",void 0),(0,C.Cg)([(0,l.attr)({attribute:"disable-button",mode:"boolean"})],Jn.prototype,"disabled",void 0),(0,C.Cg)([l.observable],Jn.prototype,"classNames",void 0),(0,C.Cg)([l.attr],Jn.prototype,"name",void 0),(0,C.Cg)([(0,l.attr)({attribute:"open",mode:"boolean"})],Jn.prototype,"open",void 0),(0,C.Cg)([l.attr],Jn.prototype,"buttonAppearance",void 0);const Qn=Jn.compose({baseName:"dropdown-menu",styles:Wn,template:Xn});var Zn=i(84686);const es=l.css`
1737
+ `;class Jn extends s.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){E(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,x.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,C.Cg)([l.observable],Jn.prototype,"items",void 0),(0,C.Cg)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],Jn.prototype,"autoClose",void 0),(0,C.Cg)([(0,l.attr)({attribute:"disable-button",mode:"boolean"})],Jn.prototype,"disabled",void 0),(0,C.Cg)([l.observable],Jn.prototype,"classNames",void 0),(0,C.Cg)([l.attr],Jn.prototype,"name",void 0),(0,C.Cg)([(0,l.attr)({attribute:"open",mode:"boolean"})],Jn.prototype,"open",void 0),(0,C.Cg)([l.attr],Jn.prototype,"buttonAppearance",void 0);const Qn=Jn.compose({baseName:"dropdown-menu",styles:Wn,template:Xn});var Zn=i(84686);const ea=l.css`
1738
1738
  .environment-indicator {
1739
1739
  font-size: 12px;
1740
1740
  display: inline-flex;
@@ -1761,7 +1761,7 @@
1761
1761
  .environment-indicator.lg .icon {
1762
1762
  font-size: calc(var(--design-unit) * 3.5px);
1763
1763
  }
1764
- `,ts=l.html`
1764
+ `,ta=l.html`
1765
1765
  ${e=>{return t=T(e),l.html`
1766
1766
  ${(0,l.when)(e=>e.config,l.html`
1767
1767
  <div
@@ -1786,7 +1786,7 @@
1786
1786
  </div>
1787
1787
  `)}
1788
1788
  `;var t}}
1789
- `;var is=i(17190);const os="default",ns={level:os,showIcon:!1,iconSize:"sm",backgroundColor:"#2222ff",textColor:"#ffffff",label:"DEFAULT"},ss=[ns,{level:"dev",showIcon:!1,icon:"code",backgroundColor:"#ff6b35",label:"DEV"},{level:"prod",showIcon:!1,icon:"check-circle",backgroundColor:"#28a745",label:"PROD"}],as=(0,is.r)(),rs=a.DI.createInterface(e=>e.instance(as),e=>e.instance(as)),ls=a.DI.createInterface("EnvironmentIndicatorConfig");function ds(){return(0,C.sH)(this,arguments,void 0,function*(e={configs:[]}){const{configs:t,currentLevel:i}=e,o={currentLevel:i,configs:t&&t.length>0?t:[ns]};a.DI.getOrCreateDOMContainer().register(a.Registration.instance(rs,as),a.Registration.instance(ls,o)),as.publish(o)})}const cs=(0,it.createLogger)("EnvironmentIndicator");class us extends a.FoundationElement{constructor(){super(...arguments),this.size="sm",this.textColor="#ffffff",this.icon="check-circle",this.iconSize="sm",this.useDefaultConfig=!1,this.config=ns,this.envConfigs=ss}envConfigsChanged(){this.config=this.getEnvConfigByLevel()}diConfigChanged(){this.config=this.getEnvConfigByLevel()}subscribeToDiConfig(){const e=a.DI.getOrCreateDOMContainer().get(rs);e&&"function"==typeof e.subscribe?this.unsubscribeConfig=e.subscribe(e=>{this.diConfig=e}):cs.error("Observer not found or invalid in DI container")}connectedCallback(){super.connectedCallback(),this.diConfig=function(){try{const e=a.DI.getOrCreateDOMContainer().get(ls);if(e)return e}catch(e){return}}(),this.subscribeToDiConfig(),this.config=this.getEnvConfigByLevel()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeConfig&&(this.unsubscribeConfig(),this.unsubscribeConfig=void 0)}getAttributesConfig(){const e={};return["label","size","showIcon","icon","iconSize","backgroundColor","textColor"].filter(e=>!!this[e]).forEach(t=>{e[t]=this[t]}),e||{}}getCurrentEnvironmentLevel(){if(this.level)return this.level;if(this.diConfig)try{const{currentLevel:e}=this.diConfig;if(e)return e}catch(e){cs.error(e)}return Zn.H6!==os?Zn.H6:this.useDefaultConfig?os:void 0}getEnvConfigByLevel(){const e=this.getAttributesConfig(),t=this.getCurrentEnvironmentLevel();if(!t)return this.useDefaultConfig?ns:void 0;if(this.label)return Object.assign(Object.assign(Object.assign({},ns),{level:t}),e);if(this.diConfig){const{configs:i}=this.diConfig;if(i&&i.length>0){const o=i.find(({level:e})=>e===t);if(o)return Object.assign(Object.assign({},o),e)}}const i=this.envConfigs.find(({level:e})=>e===t);return i?Object.assign(Object.assign({},i),e):void 0}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i);["level","label","show-icon","icon-size","size","background-color","text-color","icon"].includes(e)&&t!==i&&(this.config=this.getEnvConfigByLevel())}setEnvConfigs(e){this.envConfigs=e}}(0,C.Cg)([l.attr],us.prototype,"level",void 0),(0,C.Cg)([l.attr],us.prototype,"label",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"show-icon"})],us.prototype,"showIcon",void 0),(0,C.Cg)([l.attr],us.prototype,"size",void 0),(0,C.Cg)([(0,l.attr)({attribute:"background-color"})],us.prototype,"backgroundColor",void 0),(0,C.Cg)([(0,l.attr)({attribute:"text-color"})],us.prototype,"textColor",void 0),(0,C.Cg)([l.attr],us.prototype,"icon",void 0),(0,C.Cg)([(0,l.attr)({attribute:"icon-size"})],us.prototype,"iconSize",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"use-default-config"})],us.prototype,"useDefaultConfig",void 0),(0,C.Cg)([l.observable],us.prototype,"config",void 0),(0,C.Cg)([l.observable],us.prototype,"envConfigs",void 0),(0,C.Cg)([l.observable],us.prototype,"diConfig",void 0);const hs=us.compose({baseName:"environment-indicator",template:ts,styles:es}),ps=e=>l.html`
1789
+ `;var ia=i(17190);const oa="default",na={level:oa,showIcon:!1,iconSize:"sm",backgroundColor:"#2222ff",textColor:"#ffffff",label:"DEFAULT"},aa=[na,{level:"dev",showIcon:!1,icon:"code",backgroundColor:"#ff6b35",label:"DEV"},{level:"prod",showIcon:!1,icon:"check-circle",backgroundColor:"#28a745",label:"PROD"}],sa=(0,ia.r)(),ra=s.DI.createInterface(e=>e.instance(sa),e=>e.instance(sa)),la=s.DI.createInterface("EnvironmentIndicatorConfig");function da(){return(0,C.sH)(this,arguments,void 0,function*(e={configs:[]}){const{configs:t,currentLevel:i}=e,o={currentLevel:i,configs:t&&t.length>0?t:[na]};s.DI.getOrCreateDOMContainer().register(s.Registration.instance(ra,sa),s.Registration.instance(la,o)),sa.publish(o)})}const ca=(0,it.createLogger)("EnvironmentIndicator");class ua extends s.FoundationElement{constructor(){super(...arguments),this.size="sm",this.textColor="#ffffff",this.icon="check-circle",this.iconSize="sm",this.useDefaultConfig=!1,this.config=na,this.envConfigs=aa}envConfigsChanged(){this.config=this.getEnvConfigByLevel()}diConfigChanged(){this.config=this.getEnvConfigByLevel()}subscribeToDiConfig(){const e=s.DI.getOrCreateDOMContainer().get(ra);e&&"function"==typeof e.subscribe?this.unsubscribeConfig=e.subscribe(e=>{this.diConfig=e}):ca.error("Observer not found or invalid in DI container")}connectedCallback(){super.connectedCallback(),this.diConfig=function(){try{const e=s.DI.getOrCreateDOMContainer().get(la);if(e)return e}catch(e){return}}(),this.subscribeToDiConfig(),this.config=this.getEnvConfigByLevel()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeConfig&&(this.unsubscribeConfig(),this.unsubscribeConfig=void 0)}getAttributesConfig(){const e={};return["label","size","showIcon","icon","iconSize","backgroundColor","textColor"].filter(e=>!!this[e]).forEach(t=>{e[t]=this[t]}),e||{}}getCurrentEnvironmentLevel(){if(this.level)return this.level;if(this.diConfig)try{const{currentLevel:e}=this.diConfig;if(e)return e}catch(e){ca.error(e)}return Zn.H6!==oa?Zn.H6:this.useDefaultConfig?oa:void 0}getEnvConfigByLevel(){const e=this.getAttributesConfig(),t=this.getCurrentEnvironmentLevel();if(!t)return this.useDefaultConfig?na:void 0;if(this.label)return Object.assign(Object.assign(Object.assign({},na),{level:t}),e);if(this.diConfig){const{configs:i}=this.diConfig;if(i&&i.length>0){const o=i.find(({level:e})=>e===t);if(o)return Object.assign(Object.assign({},o),e)}}const i=this.envConfigs.find(({level:e})=>e===t);return i?Object.assign(Object.assign({},i),e):void 0}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i);["level","label","show-icon","icon-size","size","background-color","text-color","icon"].includes(e)&&t!==i&&(this.config=this.getEnvConfigByLevel())}setEnvConfigs(e){this.envConfigs=e}}(0,C.Cg)([l.attr],ua.prototype,"level",void 0),(0,C.Cg)([l.attr],ua.prototype,"label",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"show-icon"})],ua.prototype,"showIcon",void 0),(0,C.Cg)([l.attr],ua.prototype,"size",void 0),(0,C.Cg)([(0,l.attr)({attribute:"background-color"})],ua.prototype,"backgroundColor",void 0),(0,C.Cg)([(0,l.attr)({attribute:"text-color"})],ua.prototype,"textColor",void 0),(0,C.Cg)([l.attr],ua.prototype,"icon",void 0),(0,C.Cg)([(0,l.attr)({attribute:"icon-size"})],ua.prototype,"iconSize",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"use-default-config"})],ua.prototype,"useDefaultConfig",void 0),(0,C.Cg)([l.observable],ua.prototype,"config",void 0),(0,C.Cg)([l.observable],ua.prototype,"envConfigs",void 0),(0,C.Cg)([l.observable],ua.prototype,"diConfig",void 0);const ha=ua.compose({baseName:"environment-indicator",template:ta,styles:ea}),pa=e=>l.html`
1790
1790
  <${e}-banner ${(0,l.ref)("banner")}>
1791
1791
  <div slot="content">
1792
1792
  <div>
@@ -1795,7 +1795,7 @@
1795
1795
  </div>
1796
1796
 
1797
1797
  <${e}-button slot="action" appearance="lightweight" @click=${e=>e.dismiss()}>
1798
- ${e=>{var t,i,o,n,s,a,r,l;return(null===(n=null===(o=null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.banner)||void 0===o?void 0:o.dismissingAction)||void 0===n?void 0:n.label)||(null===(l=null===(r=null===(a=null===(s=e.notification)||void 0===s?void 0:s.config)||void 0===a?void 0:a.banner)||void 0===r?void 0:r.dismissingAction)||void 0===l?void 0:l.label)||"Ignore"}}
1798
+ ${e=>{var t,i,o,n,a,s,r,l;return(null===(n=null===(o=null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.banner)||void 0===o?void 0:o.dismissingAction)||void 0===n?void 0:n.label)||(null===(l=null===(r=null===(s=null===(a=e.notification)||void 0===a?void 0:a.config)||void 0===s?void 0:s.banner)||void 0===r?void 0:r.dismissingAction)||void 0===l?void 0:l.label)||"Ignore"}}
1799
1799
  </${e}-button>
1800
1800
  ${(0,l.repeat)(e=>{var t,i,o,n;return(null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.banner.confirmingActions)||(null===(n=null===(o=e.notification)||void 0===o?void 0:o.config)||void 0===n?void 0:n.banner.confirmingActions)},l.html`
1801
1801
  <${e}-button
@@ -1807,13 +1807,13 @@
1807
1807
  </${e}-button>
1808
1808
  `)}
1809
1809
  </${e}-banner>
1810
- `,ms=l.html`
1811
- ${e=>ps(T(e))}
1812
- `,gs={mode:"open",delegatesFocus:!0};class vs extends a.FoundationElement{connectedCallback(){super.connectedCallback(),ot.deprecated("ErrorBanner","Use `${prefix}-banner` instead.")}dismiss(){return(0,C.sH)(this,void 0,void 0,function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){ot.error(e)}})}}(0,C.Cg)([l.observable],vs.prototype,"error",void 0),(0,C.Cg)([l.observable],vs.prototype,"notification",void 0);const fs=vs.compose({baseName:"error-banner",template:ms,shadowOptions:gs});var bs;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(bs||(bs={}));const ys=e=>{var t,i;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(i=null==e?void 0:e.errorDetails)&&void 0!==i?i:"Something went wrong"}`},ws=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)||it.LogLevels.error},Cs=(e,t)=>{const i=t.split("-")[0];let o=document.querySelector(`#${e}`);if(!o){o=document.createElement("div"),o.setAttribute("id",e);const t=document.createElement(`${i}-design-system-provider`);t.appendChild(o),document.body.appendChild(t)}return o},xs=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},$s=(0,it.createLogger)("foundation-error"),Ss={alert:e=>{alert(ys(e))},notification:(e,t)=>{var i,o,n,s,a,r,l,d,c,u,h,p,m;const g=t.split("-")[0],v=Cs("notify-container",t);if(v)switch(v.style.position="fixed",null===(o=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.notification)||void 0===o?void 0:o.position){case"top-left":v.style.top="0",v.style.left="0";break;case"bottom-left":v.style.bottom="0",v.style.left="0";break;case"bottom-right":v.style.bottom="0",v.style.right="0";break;default:v.style.top="0",v.style.right="0"}const f=document.createElement(`${g}-toast`),b=document.createElement("div");b.setAttribute("slot","top"),b.textContent=null!==(n=e.title)&&void 0!==n?n:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const w=document.createElement("div");w.setAttribute("slot","date"),w.textContent=(new Date).toLocaleTimeString(),f.setAttribute("notify",(null===(a=null===(s=null==e?void 0:e.config)||void 0===s?void 0:s.notification)||void 0===a?void 0:a.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)&&f.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)&&f.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}`),f.appendChild(b),f.appendChild(y),f.appendChild(w),v.appendChild(f)},dialog:(e,t)=>{const i=t.split("-")[0],o=document.createElement(`${i}-error-dialog`);Cs("dialog-container",t).appendChild(o),o.error=e,o.show()},snackbar:(e,t)=>{const i=t.split("-")[0],o=document.createElement(`${i}-snackbar`);Cs("snack-container",t).appendChild(o),o.error=e},banner:(e,t,i)=>{var o;const n=t.split("-")[0],s=document.createElement(`${n}-error-banner`),a=(e=>{for(var t,i;e&&!(e instanceof ShadowRoot);){const o=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("error-banner-anchor");if(o)return o.style.position="relative",o;e=null===(i=null==e?void 0:e.getRootNode())||void 0===i?void 0:i.host}return xs()})(i);(null===(o=null==a?void 0:a.children)||void 0===o?void 0:o.length)>0&&(s.style.position="absolute",s.style.top="0",s.style.left="0",s.style.width="100%"),a.appendChild(s),s.error=e}},Es=(e,t,i)=>{$s.log({message:ys(e),level:ws(e)});Object.keys((null==e?void 0:e.config)||{}).forEach(o=>{Ss[o]&&Ss[o](e,t,i)})};class Os{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 null!=this.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 Ts{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 ks=l.html`
1810
+ `,ma=l.html`
1811
+ ${e=>pa(T(e))}
1812
+ `,va={mode:"open",delegatesFocus:!0};class ga extends s.FoundationElement{connectedCallback(){super.connectedCallback(),ot.deprecated("ErrorBanner","Use `${prefix}-banner` instead.")}dismiss(){return(0,C.sH)(this,void 0,void 0,function*(){try{yield this.banner.dismiss(),this.remove()}catch(e){ot.error(e)}})}}(0,C.Cg)([l.observable],ga.prototype,"error",void 0),(0,C.Cg)([l.observable],ga.prototype,"notification",void 0);const fa=ga.compose({baseName:"error-banner",template:ma,shadowOptions:va});var ba;!function(e){e.ERROR_BOUNDARY_EVENT="error-boundary-event"}(ba||(ba={}));const ya=e=>{var t,i;return`${null!==(t=null==e?void 0:e.title)&&void 0!==t?t:"Error"}: ${null!==(i=null==e?void 0:e.errorDetails)&&void 0!==i?i:"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)||it.LogLevels.error},Ca=(e,t)=>{const i=t.split("-")[0];let o=document.querySelector(`#${e}`);if(!o){o=document.createElement("div"),o.setAttribute("id",e);const t=document.createElement(`${i}-design-system-provider`);t.appendChild(o),document.body.appendChild(t)}return o},xa=()=>{const e=document.createElement("div");return e.setAttribute("id","error-banner-anchor"),e.style.position="relative",document.body.insertBefore(e,document.body.firstChild),e},$a=(0,it.createLogger)("foundation-error"),Sa={alert:e=>{alert(ya(e))},notification:(e,t)=>{var i,o,n,a,s,r,l,d,c,u,h,p,m;const v=t.split("-")[0],g=Ca("notify-container",t);if(g)switch(g.style.position="fixed",null===(o=null===(i=null==e?void 0:e.config)||void 0===i?void 0:i.notification)||void 0===o?void 0:o.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 f=document.createElement(`${v}-toast`),b=document.createElement("div");b.setAttribute("slot","top"),b.textContent=null!==(n=e.title)&&void 0!==n?n:"Error";const y=document.createElement("div");y.setAttribute("slot","content"),y.textContent=(null==e?void 0:e.errorDetails)||"";const w=document.createElement("div");w.setAttribute("slot","date"),w.textContent=(new Date).toLocaleTimeString(),f.setAttribute("notify",(null===(s=null===(a=null==e?void 0:e.config)||void 0===a?void 0:a.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)&&f.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)&&f.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}`),f.appendChild(b),f.appendChild(y),f.appendChild(w),g.appendChild(f)},dialog:(e,t)=>{const i=t.split("-")[0],o=document.createElement(`${i}-error-dialog`);Ca("dialog-container",t).appendChild(o),o.error=e,o.show()},snackbar:(e,t)=>{const i=t.split("-")[0],o=document.createElement(`${i}-snackbar`);Ca("snack-container",t).appendChild(o),o.error=e},banner:(e,t,i)=>{var o;const n=t.split("-")[0],a=document.createElement(`${n}-error-banner`),s=(e=>{for(var t,i;e&&!(e instanceof ShadowRoot);){const o=null===(t=null==e?void 0:e.getRootNode())||void 0===t?void 0:t.getElementById("error-banner-anchor");if(o)return o.style.position="relative",o;e=null===(i=null==e?void 0:e.getRootNode())||void 0===i?void 0:i.host}return xa()})(i);(null===(o=null==s?void 0:s.children)||void 0===o?void 0:o.length)>0&&(a.style.position="absolute",a.style.top="0",a.style.left="0",a.style.width="100%"),s.appendChild(a),a.error=e}},Ea=(e,t,i)=>{$a.log({message:ya(e),level:wa(e)});Object.keys((null==e?void 0:e.config)||{}).forEach(o=>{Sa[o]&&Sa[o](e,t,i)})};class Oa{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 null!=this.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 Ta{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 ka=l.html`
1813
1813
  <template ${(0,l.ref)("errorBoundary")}>
1814
1814
  <slot></slot>
1815
1815
  </template>
1816
- `,Ds={mode:"open",delegatesFocus:!0};class Is extends a.FoundationElement{constructor(){super(...arguments),this.logger=(0,it.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(this,void 0,void 0,function*(){var t;if(e.connectedCallback.call(this),this.addEventListener(bs.ERROR_BOUNDARY_EVENT,e=>{e.stopImmediatePropagation(),Es(e.detail,this.tagName,this.errorBoundary)}),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void ot.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,i=null==t?void 0:t.BODY,o=t.NOTIFY_SEVERITY;Es((new Os).withTitle(e).withErrorDetails(i).withNotification((new Ts).withType(o).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,C.Cg)([l.observable],Is.prototype,"errorBoundary",void 0),(0,C.Cg)([(0,l.attr)({attribute:"resource-name"})],Is.prototype,"resourceName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Is.prototype,"closeTimeout",void 0),(0,C.Cg)([hi.yW],Is.prototype,"datasource",void 0);const Rs=Is.compose({baseName:"error-boundary",template:ks,shadowOptions:Ds}),As=l.css`
1816
+ `,Da={mode:"open",delegatesFocus:!0};class Ia extends s.FoundationElement{constructor(){super(...arguments),this.logger=(0,it.createLogger)("error-boundary"),this.closeTimeout=0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(this,void 0,void 0,function*(){var t;if(e.connectedCallback.call(this),this.addEventListener(ba.ERROR_BOUNDARY_EVENT,e=>{e.stopImmediatePropagation(),Ea(e.detail,this.tagName,this.errorBoundary)}),this.resourceName){if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))return void ot.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,i=null==t?void 0:t.BODY,o=t.NOTIFY_SEVERITY;Ea((new Oa).withTitle(e).withErrorDetails(i).withNotification((new Ta).withType(o).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,C.Cg)([l.observable],Ia.prototype,"errorBoundary",void 0),(0,C.Cg)([(0,l.attr)({attribute:"resource-name"})],Ia.prototype,"resourceName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Ia.prototype,"closeTimeout",void 0),(0,C.Cg)([hi.yW],Ia.prototype,"datasource",void 0);const Ra=Ia.compose({baseName:"error-boundary",template:ka,shadowOptions:Da}),Aa=l.css`
1817
1817
  :host {
1818
1818
  --design-unit: 3;
1819
1819
  --dialog-max-width: 358px;
@@ -1832,12 +1832,12 @@
1832
1832
  overflow: hidden;
1833
1833
  min-height: var(--error-details-min-height);
1834
1834
  }
1835
- `,Ls=e=>l.html`
1835
+ `,La=e=>l.html`
1836
1836
  <${e}-dialog show-close-icon="false" ${(0,l.ref)("dialog")}>
1837
1837
  <h2 slot="top" class="title">${e=>{var t;return null===(t=e.error)||void 0===t?void 0:t.title}}</h2>
1838
1838
  <div class="details">${e=>{var t,i;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(i=e.notification)||void 0===i?void 0:i.body)||"Place holder for error message"}}</div>
1839
1839
  <${e}-button slot="bottom" appearance="lightweight" @click=${e=>{e.dismiss()}}>
1840
- ${e=>{var t,i,o,n,s,a,r,l;return(null===(n=null===(o=null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===n?void 0:n.label)||(null===(l=null===(r=null===(a=null===(s=e.notification)||void 0===s?void 0:s.config)||void 0===a?void 0:a.dialog)||void 0===r?void 0:r.dismissingAction)||void 0===l?void 0:l.label)||"Ignore"}}
1840
+ ${e=>{var t,i,o,n,a,s,r,l;return(null===(n=null===(o=null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.dialog)||void 0===o?void 0:o.dismissingAction)||void 0===n?void 0:n.label)||(null===(l=null===(r=null===(s=null===(a=e.notification)||void 0===a?void 0:a.config)||void 0===s?void 0:s.dialog)||void 0===r?void 0:r.dismissingAction)||void 0===l?void 0:l.label)||"Ignore"}}
1841
1841
  </${e}-button>
1842
1842
  ${(0,l.repeat)(e=>{var t,i,o,n;return(null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.dialog.confirmingActions)||(null===(n=null===(o=e.notification)||void 0===o?void 0:o.config)||void 0===n?void 0:n.dialog.confirmingActions)},l.html`
1843
1843
  <${e}-button
@@ -1849,9 +1849,9 @@
1849
1849
  </${e}-button>
1850
1850
  `)}
1851
1851
  </${e}-dialog>
1852
- `,Ns=l.html`
1853
- ${e=>Ls(T(e))}
1854
- `,Fs={mode:"open",delegatesFocus:!0};class Ms extends a.FoundationElement{connectedCallback(){super.connectedCallback(),ot.deprecated("ErrorDialog","Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){var e,t,i,o,n,s,a,r;(null===(o=null===(i=null===(t=null===(e=this.error)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===o?void 0:o.action)&&this.error.config.dialog.dismissingAction.action(),(null===(r=null===(a=null===(s=null===(n=this.notification)||void 0===n?void 0:n.config)||void 0===s?void 0:s.dialog)||void 0===a?void 0:a.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){ot.error(e)}}}(0,C.Cg)([l.observable],Ms.prototype,"error",void 0),(0,C.Cg)([l.observable],Ms.prototype,"notification",void 0);const _s=Ms.compose({baseName:"error-dialog",template:Ns,styles:As,shadowOptions:Fs});class Hs extends a.FoundationElement{constructor(){super(...arguments),this.selectedFile=null,this.accept="",this.fileSizeLimitBytes=10485760,this.fileName="",this.isProcessing=!1}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t;const i=null==e?void 0:e.target,o=Array.from(null!==(t=null==i?void 0:i.files)&&void 0!==t?t:[]),n=o.find(e=>e.size>this.fileSizeLimitBytes);if(n){const e=`File "${n.name}" exceeds size limit of ${this.fileSizeLimitBytes} bytes`;return this.showError("File Size Error",e),void this.$emit("error",new Error(e))}this.onFileSelected(o)}clearSelection(){this.fileName="",this.selectedFile=null,this.isProcessing=!1,this.fileInput&&(this.fileInput.value=""),this.onFileCleared(),this.$emit("clear")}getSelectedFile(){return this.selectedFile}showError(e,t){Ce({title:e,body:t,config:{toast:{type:"warning",autoClose:!0,closeTimeout:5e3}}},this.tagName)}}(0,C.Cg)([l.attr],Hs.prototype,"label",void 0),(0,C.Cg)([l.attr],Hs.prototype,"accept",void 0),(0,C.Cg)([(0,l.attr)({attribute:"file-size-limit-bytes"})],Hs.prototype,"fileSizeLimitBytes",void 0),(0,C.Cg)([l.observable],Hs.prototype,"fileName",void 0),(0,C.Cg)([l.observable],Hs.prototype,"isProcessing",void 0);const Ps=(e,t,i)=>l.css`
1852
+ `,Na=l.html`
1853
+ ${e=>La(T(e))}
1854
+ `,Fa={mode:"open",delegatesFocus:!0};class Ma extends s.FoundationElement{connectedCallback(){super.connectedCallback(),ot.deprecated("ErrorDialog","Use `${prefix}-dialog` instead.")}show(){this.dialog.show()}dismiss(){var e,t,i,o,n,a,s,r;(null===(o=null===(i=null===(t=null===(e=this.error)||void 0===e?void 0:e.config)||void 0===t?void 0:t.dialog)||void 0===i?void 0:i.dismissingAction)||void 0===o?void 0:o.action)&&this.error.config.dialog.dismissingAction.action(),(null===(r=null===(s=null===(a=null===(n=this.notification)||void 0===n?void 0:n.config)||void 0===a?void 0:a.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){ot.error(e)}}}(0,C.Cg)([l.observable],Ma.prototype,"error",void 0),(0,C.Cg)([l.observable],Ma.prototype,"notification",void 0);const _a=Ma.compose({baseName:"error-dialog",template:Na,styles:Aa,shadowOptions:Fa});class Ha extends s.FoundationElement{constructor(){super(...arguments),this.selectedFile=null,this.accept="",this.fileSizeLimitBytes=10485760,this.fileName="",this.isProcessing=!1}handleClick(){this.fileInput.value=null,this.fileInput.click()}onInputChange(e){var t;const i=null==e?void 0:e.target,o=Array.from(null!==(t=null==i?void 0:i.files)&&void 0!==t?t:[]),n=o.find(e=>e.size>this.fileSizeLimitBytes);if(n){const e=`File "${n.name}" exceeds size limit of ${this.fileSizeLimitBytes} bytes`;return this.showError("File Size Error",e),void this.$emit("error",new Error(e))}this.onFileSelected(o)}clearSelection(){this.fileName="",this.selectedFile=null,this.isProcessing=!1,this.fileInput&&(this.fileInput.value=""),this.onFileCleared(),this.$emit("clear")}getSelectedFile(){return this.selectedFile}showError(e,t){Ce({title:e,body:t,config:{toast:{type:"warning",autoClose:!0,closeTimeout:5e3}}},this.tagName)}}(0,C.Cg)([l.attr],Ha.prototype,"label",void 0),(0,C.Cg)([l.attr],Ha.prototype,"accept",void 0),(0,C.Cg)([(0,l.attr)({attribute:"file-size-limit-bytes"})],Ha.prototype,"fileSizeLimitBytes",void 0),(0,C.Cg)([l.observable],Ha.prototype,"fileName",void 0),(0,C.Cg)([l.observable],Ha.prototype,"isProcessing",void 0);const Pa=(e,t,i)=>l.css`
1855
1855
  /* Host */
1856
1856
  :host {
1857
1857
  display: flex;
@@ -1901,9 +1901,9 @@
1901
1901
  justify-content: center;
1902
1902
  z-index: 2;
1903
1903
  }
1904
- `,zs=(e,t)=>l.css`
1905
- ${Ps("foundation",e,t)}
1906
- `,Us=e=>l.html`
1904
+ `,za=(e,t)=>l.css`
1905
+ ${Pa("foundation",e,t)}
1906
+ `,Ua=e=>l.html`
1907
1907
  <template>
1908
1908
  <div class="file-reader">
1909
1909
  ${(0,l.when)(e=>e.isProcessing,l.html`
@@ -1939,9 +1939,9 @@
1939
1939
  `)}
1940
1940
  </div>
1941
1941
  </template>
1942
- `,Bs=l.html`
1943
- ${e=>Us(T(e))}
1944
- `;class Vs extends Hs{constructor(){super(),this.processingTimeout=null,this.autoProcess=!1,this.processingDelayMs=1e3,this.fileContent=null,this.accept=".json,application/json"}onFileSelected(e){var t,i;const o=e[0];if(o&&this.accept.includes("json")&&!(null===(i=null===(t=null==o?void 0:o.name)||void 0===t?void 0:t.toLowerCase())||void 0===i?void 0:i.endsWith(".json"))){const e="Selected file is not a JSON file";return this.showError("File Type Error",e),void this.$emit("error",new Error(e))}this.selectedFile=o,this.fileName=o.name,this.autoProcess&&this.handleFileProcessing()}onFileCleared(){this.fileContent=null,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}handleFileProcessing(){return(0,C.sH)(this,void 0,void 0,function*(){var e;if(this.getSelectedFile()){this.processingTimeout&&clearTimeout(this.processingTimeout),this.isProcessing=!0;try{const t=yield this.getSelectedFile().text();let i;try{i=JSON.parse(t)}catch(e){return this.showError("Invalid JSON Format","The selected file contains invalid JSON"),void this.$emit("error",e)}this.fileContent=i,this.$emit("file-read",{fileName:this.fileName,content:this.fileContent,file:this.getSelectedFile()}),null===(e=this.onFileRead)||void 0===e||e.call(this,this.fileContent)}catch(e){this.showError("File Processing Error","An error occurred while processing the file"),this.$emit("error",e)}finally{this.processingTimeout=window.setTimeout(()=>{this.isProcessing=!1,this.processingTimeout=null},this.processingDelayMs)}}else this.showError("No File Selected","Please select a file to process")})}getFileContent(){return this.fileContent}disconnectedCallback(){super.disconnectedCallback(),this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}}(0,C.Cg)([(0,l.attr)({attribute:"auto-process",mode:"boolean"})],Vs.prototype,"autoProcess",void 0),(0,C.Cg)([(0,l.attr)({attribute:"processing-delay-ms"})],Vs.prototype,"processingDelayMs",void 0),(0,C.Cg)([l.observable],Vs.prototype,"fileContent",void 0),(0,C.Cg)([l.observable],Vs.prototype,"onFileRead",void 0);const Gs=Vs.compose({baseName:"file-reader",styles:zs,template:Bs});var js=i(17465),Ys=i(32748);const Ws=l.css`
1942
+ `,Ba=l.html`
1943
+ ${e=>Ua(T(e))}
1944
+ `;class Va extends Ha{constructor(){super(),this.processingTimeout=null,this.autoProcess=!1,this.processingDelayMs=1e3,this.fileContent=null,this.accept=".json,application/json"}onFileSelected(e){var t,i;const o=e[0];if(o&&this.accept.includes("json")&&!(null===(i=null===(t=null==o?void 0:o.name)||void 0===t?void 0:t.toLowerCase())||void 0===i?void 0:i.endsWith(".json"))){const e="Selected file is not a JSON file";return this.showError("File Type Error",e),void this.$emit("error",new Error(e))}this.selectedFile=o,this.fileName=o.name,this.autoProcess&&this.handleFileProcessing()}onFileCleared(){this.fileContent=null,this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}handleFileProcessing(){return(0,C.sH)(this,void 0,void 0,function*(){var e;if(this.getSelectedFile()){this.processingTimeout&&clearTimeout(this.processingTimeout),this.isProcessing=!0;try{const t=yield this.getSelectedFile().text();let i;try{i=JSON.parse(t)}catch(e){return this.showError("Invalid JSON Format","The selected file contains invalid JSON"),void this.$emit("error",e)}this.fileContent=i,this.$emit("file-read",{fileName:this.fileName,content:this.fileContent,file:this.getSelectedFile()}),null===(e=this.onFileRead)||void 0===e||e.call(this,this.fileContent)}catch(e){this.showError("File Processing Error","An error occurred while processing the file"),this.$emit("error",e)}finally{this.processingTimeout=window.setTimeout(()=>{this.isProcessing=!1,this.processingTimeout=null},this.processingDelayMs)}}else this.showError("No File Selected","Please select a file to process")})}getFileContent(){return this.fileContent}disconnectedCallback(){super.disconnectedCallback(),this.processingTimeout&&(clearTimeout(this.processingTimeout),this.processingTimeout=null)}}(0,C.Cg)([(0,l.attr)({attribute:"auto-process",mode:"boolean"})],Va.prototype,"autoProcess",void 0),(0,C.Cg)([(0,l.attr)({attribute:"processing-delay-ms"})],Va.prototype,"processingDelayMs",void 0),(0,C.Cg)([l.observable],Va.prototype,"fileContent",void 0),(0,C.Cg)([l.observable],Va.prototype,"onFileRead",void 0);const Ga=Va.compose({baseName:"file-reader",styles:za,template:Ba});var ja=i(17465),Ya=i(32748);const Wa=l.css`
1945
1945
  /* Host */
1946
1946
  :host {
1947
1947
  display: flex;
@@ -1989,7 +1989,7 @@
1989
1989
  fast-data-grid-row {
1990
1990
  align-items: center;
1991
1991
  }
1992
- `,qs=e=>l.html`
1992
+ `,qa=e=>l.html`
1993
1993
  <template>
1994
1994
  <div class="file-selection">
1995
1995
  <input type="file" multiple ${(0,l.ref)("fileInput")}
@@ -2015,13 +2015,13 @@
2015
2015
  </${e}-data-grid>
2016
2016
  </div>
2017
2017
  </template>
2018
- `,Ks=l.html`
2019
- ${e=>qs(T(e))}
2020
- `,Xs=e=>{const t=new FormData;return e.forEach(e=>{t.append(e.name,e)}),t},Js=(e,t,i,o)=>{const n=new Headers;return n.append("SESSION_AUTH_TOKEN",i),o.post(e,{body:t,headers:n})},Qs=(e,t,i,o="GET",n,s,a="zero")=>{const r=new Headers;r.append("SESSION_AUTH_TOKEN",i),fetch(e,{method:o,body:s,headers:r,credentials:"include"}).then(e=>(0,C.sH)(void 0,void 0,void 0,function*(){var t;if(e.ok)return e.blob();{const i=yield e.json();n&&Ce({title:null==i?void 0:i.MESSAGE_TYPE,body:null===(t=null==i?void 0:i.DETAILS)||void 0===t?void 0:t.ERROR,config:{toast:{autoClose:!0,closeTimeout:5e3,type:"warning"}}},a),ot.error(i||"An error occurred while downloading the file.")}})).then(e=>{if(e){const i=window.URL.createObjectURL(e),o=document.createElement("a");o.href=i,o.download=t,document.body.appendChild(o),o.click(),o.remove(),n&&Ce({title:"Success",body:"File downloaded successfully",config:{toast:{autoClose:!0,closeTimeout:5e3,type:"success"}}},a),ot.info("File downloaded successfully")}}).catch(e=>{ot.error(e)})},Zs=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],ea=["text/plain","text/csv"],ta=["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"],ia=l.html`
2018
+ `,Ka=l.html`
2019
+ ${e=>qa(T(e))}
2020
+ `,Xa=e=>{const t=new FormData;return e.forEach(e=>{t.append(e.name,e)}),t},Ja=(e,t,i,o)=>{const n=new Headers;return n.append("SESSION_AUTH_TOKEN",i),o.post(e,{body:t,headers:n})},Qa=(e,t,i,o="GET",n,a,s="zero")=>{const r=new Headers;r.append("SESSION_AUTH_TOKEN",i),fetch(e,{method:o,body:a,headers:r,credentials:"include"}).then(e=>(0,C.sH)(void 0,void 0,void 0,function*(){var t;if(e.ok)return e.blob();{const i=yield e.json();n&&Ce({title:null==i?void 0:i.MESSAGE_TYPE,body:null===(t=null==i?void 0:i.DETAILS)||void 0===t?void 0:t.ERROR,config:{toast:{autoClose:!0,closeTimeout:5e3,type:"warning"}}},s),ot.error(i||"An error occurred while downloading the file.")}})).then(e=>{if(e){const i=window.URL.createObjectURL(e),o=document.createElement("a");o.href=i,o.download=t,document.body.appendChild(o),o.click(),o.remove(),n&&Ce({title:"Success",body:"File downloaded successfully",config:{toast:{autoClose:!0,closeTimeout:5e3,type:"success"}}},s),ot.info("File downloaded successfully")}}).catch(e=>{ot.error(e)})},Za=["image/png","image/bmp","image/gif","image/jpeg","image/jpg"],es=["text/plain","text/csv"],ts=["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"],is=l.html`
2021
2021
  ${(0,l.when)(e=>e.rowData,l.html`
2022
2022
  ${e=>"DATETIME"===e.columnDefinition.type?(0,pi.zT)(e.rowData[e.columnDefinition.columnDataKey]):e.rowData[e.columnDefinition.columnDataKey]}
2023
2023
  `)}
2024
- `;class oa extends Hs{constructor(){super(...arguments),this.acceptedFormats=[],this.selectedFiles=[],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,...Zs]:"office/*"===t?e=[...e,...ta]:"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}});return(0,C.sH)(this,void 0,void 0,function*(){var t;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 j.b).withExpression((new G.K).withField(this.fieldName).withValue(this.entityId).build()).build(),this.setRowData())}handleStreamRowOperation(e){let t;for(const i of e.ROW)if(i.DETAILS)switch(i.DETAILS.OPERATION){case"INSERT":this.uploadedFilesList.unshift(i);break;case"MODIFY":t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===i.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1,i);break;case"DELETE":t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===i.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1);break;default:js.v.error(`Unsupported operation type: ${i.DETAILS.OPERATION}`)}}setRowData(){return(0,C.sH)(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=>{js.v.error(e)},{CRITERIA_MATCH:this.gridCriteria})})}setColumnDefs(){return(0,C.sH)(this,void 0,void 0,function*(){var e;const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),i=[];this.gridFields.length>0?this.gridFields.split(" ").forEach(e=>{var o;const n=null===(o=t.FIELD)||void 0===o?void 0:o.find(t=>t.NAME===e);n?i.push(this.getColumnObject(n)):"DOWNLOAD"===e&&this.downloadEventName&&i.push(this.getDownloadColumn())}):(null===(e=t.FIELD)||void 0===e||e.forEach(e=>{i.push(this.getColumnObject(e))}),this.downloadEventName&&i.push(this.getDownloadColumn())),this.filesGridColumnDefinitions=i})}getDownloadColumn(){const e=this.tagName.toLowerCase().split("-")[0];return{columnDataKey:"FILE_NAME",title:"File",cellTemplate:l.html`
2024
+ `;class os extends Ha{constructor(){super(...arguments),this.acceptedFormats=[],this.selectedFiles=[],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,...Za]:"office/*"===t?e=[...e,...ts]:"text/*"===t?e=[...e,...es]:e.push(t)}),this.acceptedFormats=e}fieldNameChanged(){this.setupGrid()}entityIdChanged(){this.setupGrid()}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(this,void 0,void 0,function*(){var t;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 j.b).withExpression((new G.K).withField(this.fieldName).withValue(this.entityId).build()).build(),this.setRowData())}handleStreamRowOperation(e){let t;for(const i of e.ROW)if(i.DETAILS)switch(i.DETAILS.OPERATION){case"INSERT":this.uploadedFilesList.unshift(i);break;case"MODIFY":t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===i.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1,i);break;case"DELETE":t=this.uploadedFilesList.findIndex(e=>e.FILE_ATTACHMENT_ID===i.FILE_ATTACHMENT_ID),this.uploadedFilesList.splice(t,1);break;default:ja.v.error(`Unsupported operation type: ${i.DETAILS.OPERATION}`)}}setRowData(){return(0,C.sH)(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=>{ja.v.error(e)},{CRITERIA_MATCH:this.gridCriteria})})}setColumnDefs(){return(0,C.sH)(this,void 0,void 0,function*(){var e;const t=yield this.connect.getMetadata(this.uploadedFilesResourceName),i=[];this.gridFields.length>0?this.gridFields.split(" ").forEach(e=>{var o;const n=null===(o=t.FIELD)||void 0===o?void 0:o.find(t=>t.NAME===e);n?i.push(this.getColumnObject(n)):"DOWNLOAD"===e&&this.downloadEventName&&i.push(this.getDownloadColumn())}):(null===(e=t.FIELD)||void 0===e||e.forEach(e=>{i.push(this.getColumnObject(e))}),this.downloadEventName&&i.push(this.getDownloadColumn())),this.filesGridColumnDefinitions=i})}getDownloadColumn(){const e=this.tagName.toLowerCase().split("-")[0];return{columnDataKey:"FILE_NAME",title:"File",cellTemplate:l.html`
2025
2025
  <template>
2026
2026
  <div class="download-button-container">
2027
2027
  <${e}-button
@@ -2032,7 +2032,7 @@
2032
2032
  </${e}-button>
2033
2033
  </div>
2034
2034
  </template>
2035
- `}}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:ia}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onFileSelected(e){const t=Array.isArray(e)?e:[e];if(t.length>0&&this.acceptedFormats.length>0)for(const e of t)if(!(this.accept.split(",").includes(".msg")&&e.name&&e.name.endsWith("msg")||this.acceptedFormats.includes(e.type)))return void this.showError("File Type Error",`Not a valid file type. Accepted Formats are ${this.accept}`);this.selectedFiles=t,this.fileName=this.selectedFiles.map(e=>e.name.trim()).join(),this.$emit("file-selected",{files:this.selectedFiles})}onFileCleared(){this.fileName="",this.selectedFiles=[]}handleFileUpload(){return(0,C.sH)(this,void 0,void 0,function*(){try{const e=Xs(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield Js(this.uploadEventName,e,this.session.getItem("authToken","session"),this.http);if(t.ERROR)return js.v.error(t.ERROR),void this.$emit("errorOut",t.ERROR);js.v.info(t),this.$emit("success",t),this.clearSelection()}catch(e){this.$emit("errorOut",e),js.v.error(e)}})}handleFileDownload(e){const t=this.tagName.toLowerCase().split("-")[0];Qs(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"),"GET",!0,void 0,t)}}(0,C.Cg)([l.observable],oa.prototype,"gridCriteria",void 0),(0,C.Cg)([ui.dm],oa.prototype,"connect",void 0),(0,C.Cg)([Ys.l],oa.prototype,"http",void 0),(0,C.Cg)([Ti.N],oa.prototype,"session",void 0),(0,C.Cg)([(0,l.attr)({attribute:"uploaded-files-resource-name"})],oa.prototype,"uploadedFilesResourceName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"upload-event-name"})],oa.prototype,"uploadEventName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"field-name"})],oa.prototype,"fieldName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"entity-id"})],oa.prototype,"entityId",void 0),(0,C.Cg)([(0,l.attr)({attribute:"upload-key"})],oa.prototype,"uploadKey",void 0),(0,C.Cg)([(0,l.attr)({attribute:"grid-fields"})],oa.prototype,"gridFields",void 0),(0,C.Cg)([l.observable],oa.prototype,"fileName",void 0),(0,C.Cg)([l.observable],oa.prototype,"uploadedFilesList",void 0),(0,C.Cg)([l.observable],oa.prototype,"filesGridColumnDefinitions",void 0);const na=void 0,sa={},aa=oa.compose(Object.assign({baseName:"file-upload",styles:Ws,template:Ks,shadowOptions:na},sa)),ra=l.css`
2035
+ `}}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:is}}handleClick(){this.fileInput.value=null,this.fileInput.click()}onFileSelected(e){const t=Array.isArray(e)?e:[e];if(t.length>0&&this.acceptedFormats.length>0)for(const e of t)if(!(this.accept.split(",").includes(".msg")&&e.name&&e.name.endsWith("msg")||this.acceptedFormats.includes(e.type)))return void this.showError("File Type Error",`Not a valid file type. Accepted Formats are ${this.accept}`);this.selectedFiles=t,this.fileName=this.selectedFiles.map(e=>e.name.trim()).join(),this.$emit("file-selected",{files:this.selectedFiles})}onFileCleared(){this.fileName="",this.selectedFiles=[]}handleFileUpload(){return(0,C.sH)(this,void 0,void 0,function*(){try{const e=Xa(this.selectedFiles);e.append(this.uploadKey,this.entityId);const t=yield Ja(this.uploadEventName,e,this.session.getItem("authToken","session"),this.http);if(t.ERROR)return ja.v.error(t.ERROR),void this.$emit("errorOut",t.ERROR);ja.v.info(t),this.$emit("success",t),this.clearSelection()}catch(e){this.$emit("errorOut",e),ja.v.error(e)}})}handleFileDownload(e){const t=this.tagName.toLowerCase().split("-")[0];Qa(this.downloadEventName(e),e.FILE_NAME,this.session.getItem("authToken","session"),"GET",!0,void 0,t)}}(0,C.Cg)([l.observable],os.prototype,"gridCriteria",void 0),(0,C.Cg)([ui.dm],os.prototype,"connect",void 0),(0,C.Cg)([Ya.l],os.prototype,"http",void 0),(0,C.Cg)([Ti.N],os.prototype,"session",void 0),(0,C.Cg)([(0,l.attr)({attribute:"uploaded-files-resource-name"})],os.prototype,"uploadedFilesResourceName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"upload-event-name"})],os.prototype,"uploadEventName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"field-name"})],os.prototype,"fieldName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"entity-id"})],os.prototype,"entityId",void 0),(0,C.Cg)([(0,l.attr)({attribute:"upload-key"})],os.prototype,"uploadKey",void 0),(0,C.Cg)([(0,l.attr)({attribute:"grid-fields"})],os.prototype,"gridFields",void 0),(0,C.Cg)([l.observable],os.prototype,"fileName",void 0),(0,C.Cg)([l.observable],os.prototype,"uploadedFilesList",void 0),(0,C.Cg)([l.observable],os.prototype,"filesGridColumnDefinitions",void 0);const ns=void 0,as={},ss=os.compose(Object.assign({baseName:"file-upload",styles:Wa,template:Ka,shadowOptions:ns},as)),rs=l.css`
2036
2036
  .filter-wrapper {
2037
2037
  border: 1px solid gray;
2038
2038
  border-radius: calc(var(--design-unit) * 2px);
@@ -2083,12 +2083,12 @@
2083
2083
  .flex-row foundation-select {
2084
2084
  flex: 1;
2085
2085
  }
2086
- `,la=(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`,da=l.html`
2087
- <div class="close-icon" @click=${e=>e.clear()}>${la()}</div>
2088
- `;function ca(e){var t,i,o;return null!==(o=null===(i=null===(t=null==e?void 0:e.event)||void 0===t?void 0:t.target)||void 0===i?void 0:i.value)&&void 0!==o?o:"all"}const ua=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],ha=(e,t)=>{switch(e.type){case"number":return(e=>l.html`
2086
+ `,ls=(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`,ds=l.html`
2087
+ <div class="close-icon" @click=${e=>e.clear()}>${ls()}</div>
2088
+ `;function cs(e){var t,i,o;return null!==(o=null===(i=null===(t=null==e?void 0:e.event)||void 0===t?void 0:t.target)||void 0===i?void 0:i.value)&&void 0!==o?o:"all"}const us=[{name:"All",value:"all",selected:!0},{name:"True",value:"true"},{name:"False",value:"false"},{name:"N/A",value:"null"}],hs=(e,t)=>{switch(e.type){case"number":return(e=>l.html`
2089
2089
  <div class="flex-row">
2090
2090
  <div>${e=>e.label}</div>
2091
- ${da}
2091
+ ${ds}
2092
2092
  </div>
2093
2093
  <div class="flex-row">
2094
2094
  <${e}-text-field
@@ -2107,7 +2107,7 @@
2107
2107
  `)(t);case"date":return(e=>l.html`
2108
2108
  <div class="flex-row">
2109
2109
  <div>${e=>e.label}</div>
2110
- ${da}
2110
+ ${ds}
2111
2111
  </div>
2112
2112
  <div class="flex-row">
2113
2113
  <${e}-text-field
@@ -2124,11 +2124,11 @@
2124
2124
  `)(t);case"boolean":return(e=>l.html`
2125
2125
  <div class="flex-row">
2126
2126
  <div>${e=>e.label}</div>
2127
- ${da}
2127
+ ${ds}
2128
2128
  </div>
2129
2129
  <div class="flex-row">
2130
- <${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(ca(t))}}">
2131
- ${(0,l.repeat)(()=>ua,l.html`
2130
+ <${e}-select @change="${(e,t)=>e.onBooleanFilterSelection(cs(t))}}">
2131
+ ${(0,l.repeat)(()=>us,l.html`
2132
2132
  <${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
2133
2133
  ${e=>e.name}
2134
2134
  </${e}-option>
@@ -2138,10 +2138,10 @@
2138
2138
  `)(t);case"enum":return(e=>l.html`
2139
2139
  <div class="flex-row">
2140
2140
  <div>${e=>e.label}</div>
2141
- ${da}
2141
+ ${ds}
2142
2142
  </div>
2143
2143
  <div class="flex-row">
2144
- <${e}-select @change="${(e,t)=>e.onEnumFilterSelection(ca(t))}}">
2144
+ <${e}-select @change="${(e,t)=>e.onEnumFilterSelection(cs(t))}}">
2145
2145
  ${(0,l.repeat)(e=>e.enumFilterOptions,l.html`
2146
2146
  <${e}-option value="${e=>e.value}" selected="${e=>e.selected}">
2147
2147
  ${e=>e.name}
@@ -2152,7 +2152,7 @@
2152
2152
  `)(t);default:return(e=>l.html`
2153
2153
  <div class="flex-row">
2154
2154
  <div>${e=>e.label}</div>
2155
- ${da}
2155
+ ${ds}
2156
2156
  </div>
2157
2157
  <div class="flex-row">
2158
2158
  <${e}-text-field
@@ -2161,11 +2161,11 @@
2161
2161
  :value=${(0,U.O)(e=>e.textFilter)}
2162
2162
  />
2163
2163
  </div>
2164
- `)(t)}},pa=e=>l.html`
2165
- <div class="filter-wrapper">${t=>ha(t,e)}</div>
2166
- `,ma=l.html`
2167
- ${e=>pa(T(e))}</div>
2168
- `;var ga;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(ga||(ga={}));class va extends a.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(ga.clear,{fieldName:this.fieldName,target:this.target});const i=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(ga.change,{fieldName:this.fieldName,filter:i,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(ga.clear,{fieldName:this.fieldName,target:this.target});const i=`${this.fieldName} >= ${e}`,o=`${this.fieldName} <= ${t}`,n=Number.isFinite(e)?Number.isFinite(t)?`(${i} && ${o})`:i:o;this.$emit(ga.change,{fieldName:this.fieldName,filter:n,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(ga.clear,{fieldName:this.fieldName});const i=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,o=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,n=Number.isFinite(e)?Number.isFinite(t)?`(${i} && ${o})`:i:o;this.$emit(ga.change,{fieldName:this.fieldName,filter:n,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(ga.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(ga.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(ga.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(ga.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(ga.clear,{fieldName:this.fieldName,target:this.target})}}(0,C.Cg)([l.attr],va.prototype,"fieldName",void 0),(0,C.Cg)([l.attr],va.prototype,"type",void 0),(0,C.Cg)([l.attr],va.prototype,"label",void 0),(0,C.Cg)([l.attr],va.prototype,"target",void 0),(0,C.Cg)([l.observable],va.prototype,"textFilter",void 0),(0,C.Cg)([l.observable],va.prototype,"numFilterMin",void 0),(0,C.Cg)([l.observable],va.prototype,"numFilterMax",void 0),(0,C.Cg)([l.observable],va.prototype,"dateFilterMin",void 0),(0,C.Cg)([l.observable],va.prototype,"dateFilterMax",void 0),(0,C.Cg)([l.attr],va.prototype,"enumOptions",void 0),(0,C.Cg)([l.observable],va.prototype,"enumFilterOptions",void 0);const fa=va.compose({baseName:"filter",template:ma,styles:ra});var ba=i(64324);const ya=(e,t)=>l.css`
2164
+ `)(t)}},ps=e=>l.html`
2165
+ <div class="filter-wrapper">${t=>hs(t,e)}</div>
2166
+ `,ms=l.html`
2167
+ ${e=>ps(T(e))}</div>
2168
+ `;var vs;!function(e){e.change="filter-changed",e.clear="filter-cleared"}(vs||(vs={}));class gs extends s.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(vs.clear,{fieldName:this.fieldName,target:this.target});const i=`Expr.containsIgnoreCase(${this.fieldName},'${t}')`;this.$emit(vs.change,{fieldName:this.fieldName,filter:i,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(vs.clear,{fieldName:this.fieldName,target:this.target});const i=`${this.fieldName} >= ${e}`,o=`${this.fieldName} <= ${t}`,n=Number.isFinite(e)?Number.isFinite(t)?`(${i} && ${o})`:i:o;this.$emit(vs.change,{fieldName:this.fieldName,filter:n,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(vs.clear,{fieldName:this.fieldName});const i=`Expr.dateTimeIsAfter(${this.fieldName}, '${this.formatDate(e)}')`,o=`Expr.dateTimeIsBefore(${this.fieldName}, '${this.formatDate(t)}')`,n=Number.isFinite(e)?Number.isFinite(t)?`(${i} && ${o})`:i:o;this.$emit(vs.change,{fieldName:this.fieldName,filter:n,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(vs.clear,{fieldName:this.fieldName,target:this.target})}onBooleanFilterSelection(e){e&&"all"!==e?this.$emit(vs.change,{fieldName:this.fieldName,filter:`${this.fieldName} == ${e}`,target:this.target}):this.$emit(vs.clear,{fieldName:this.fieldName,target:this.target})}onEnumFilterSelection(e){e&&"all"!==e?this.$emit(vs.change,{fieldName:this.fieldName,filter:`${this.fieldName} == "${e}"`,target:this.target}):this.$emit(vs.clear,{fieldName:this.fieldName,target:this.target})}}(0,C.Cg)([l.attr],gs.prototype,"fieldName",void 0),(0,C.Cg)([l.attr],gs.prototype,"type",void 0),(0,C.Cg)([l.attr],gs.prototype,"label",void 0),(0,C.Cg)([l.attr],gs.prototype,"target",void 0),(0,C.Cg)([l.observable],gs.prototype,"textFilter",void 0),(0,C.Cg)([l.observable],gs.prototype,"numFilterMin",void 0),(0,C.Cg)([l.observable],gs.prototype,"numFilterMax",void 0),(0,C.Cg)([l.observable],gs.prototype,"dateFilterMin",void 0),(0,C.Cg)([l.observable],gs.prototype,"dateFilterMax",void 0),(0,C.Cg)([l.attr],gs.prototype,"enumOptions",void 0),(0,C.Cg)([l.observable],gs.prototype,"enumFilterOptions",void 0);const fs=gs.compose({baseName:"filter",template:ms,styles:rs});var bs=i(64324);const ys=(e,t)=>l.css`
2169
2169
  .filter-bar {
2170
2170
  background-color: #2c2f33;
2171
2171
  padding: calc(var(--design-unit) * 2px);
@@ -2201,9 +2201,9 @@
2201
2201
  .toggle-collapsed {
2202
2202
  color: #48ed9c;
2203
2203
  }
2204
- `,wa=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"}},Ca=l.html`
2204
+ `,ws=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"}},Cs=l.html`
2205
2205
  <p>Fetching metadata for ${e=>e.resource}...</p>
2206
- `,xa=e=>l.html`
2206
+ `,xs=e=>l.html`
2207
2207
  <div
2208
2208
  class=${e=>(0,x.x)(["toggle",!0],["toggle-collapsed",e.collapsed])}
2209
2209
  @click="${e=>e.toggle()}"
@@ -2223,17 +2223,17 @@
2223
2223
  <${e}-filter
2224
2224
  label="${e=>e.UI_LABEL}"
2225
2225
  target="${(e,t)=>{var i;return null===(i=t.parent)||void 0===i?void 0:i.target}}"
2226
- type="${e=>wa(e.TYPE)}"
2226
+ type="${e=>ws(e.TYPE)}"
2227
2227
  fieldName="${e=>e.NAME}"
2228
2228
  enumOptions="${e=>e.VALID_VALUES}"
2229
2229
  ></${e}-filter>
2230
2230
  `)}
2231
2231
  </div>
2232
2232
  </div>
2233
- `,$a=l.html`
2234
- ${e=>e.ready?xa(T(e)):Ca}
2235
- `,Sa=5;class Ea extends a.FoundationElement{constructor(){super(...arguments),this.columns=Sa,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){var e,t,i,o;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===(i=this.fields)||void 0===i?void 0:i.length)===(null==s?void 0:s.length));for(let e=0;e<((null===(o=this.fields)||void 0===o?void 0:o.length)||0);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,ba.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,i;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,i)=>e.indexOf(t.NAME)>e.indexOf(i.NAME)?1:-1;this.fields=null===(i=this.fields)||void 0===i?void 0:i.filter(t=>e.includes(t.NAME)).sort(t)}this.ready=!0}).then(()=>this.initLabels()).then(()=>window.requestAnimationFrame(()=>{this.adjustColumnStyles()})).catch(e=>ot.error(e))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,C.Cg)([l.attr],Ea.prototype,"resource",void 0),(0,C.Cg)([l.attr],Ea.prototype,"only",void 0),(0,C.Cg)([l.attr],Ea.prototype,"labels",void 0),(0,C.Cg)([l.attr],Ea.prototype,"target",void 0),(0,C.Cg)([l.attr],Ea.prototype,"columns",void 0),(0,C.Cg)([l.observable],Ea.prototype,"ready",void 0),(0,C.Cg)([l.observable],Ea.prototype,"fields",void 0),(0,C.Cg)([ui.dm],Ea.prototype,"connect",void 0),(0,C.Cg)([l.observable],Ea.prototype,"collapsed",void 0);const Oa=Ea.compose({baseName:"filter-bar",template:$a,styles:ya});var Ta;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Ta||(Ta={}));const ka=e=>{const t=e?`-${e}`:"";return l.css`
2236
- ${t&&`@media only screen and ${Ta[e]} {`}
2233
+ `,$s=l.html`
2234
+ ${e=>e.ready?xs(T(e)):Cs}
2235
+ `,Ss=5;class Es extends s.FoundationElement{constructor(){super(...arguments),this.columns=Ss,this.ready=!1,this.collapsed=!0}connectedCallback(){super.connectedCallback(),this.init()}initLabels(){var e,t,i,o;let n=!1,a=[];(null===(e=null==this?void 0:this.labels)||void 0===e?void 0:e.length)&&(a=null===(t=this.labels.split(","))||void 0===t?void 0:t.map(e=>e.trim()),n=(null===(i=this.fields)||void 0===i?void 0:i.length)===(null==a?void 0:a.length));for(let e=0;e<((null===(o=this.fields)||void 0===o?void 0:o.length)||0);e+=1){const t=n?a[e]:this.camelCasePreserveWhitespace(this.fields[e].NAME.replace(/_/g," "));this.fields[e].UI_LABEL=t}}camelCasePreserveWhitespace(e){return e.split(" ").map(e=>(0,bs.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,i;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,i)=>e.indexOf(t.NAME)>e.indexOf(i.NAME)?1:-1;this.fields=null===(i=this.fields)||void 0===i?void 0:i.filter(t=>e.includes(t.NAME)).sort(t)}this.ready=!0}).then(()=>this.initLabels()).then(()=>window.requestAnimationFrame(()=>{this.adjustColumnStyles()})).catch(e=>ot.error(e))}adjustColumnStyles(){this.filterGrid&&(this.filterGrid.style["grid-template-columns"]=`repeat(${this.columns}, 1fr)`)}toggle(){this.ready&&(this.collapsed=!this.collapsed)}}(0,C.Cg)([l.attr],Es.prototype,"resource",void 0),(0,C.Cg)([l.attr],Es.prototype,"only",void 0),(0,C.Cg)([l.attr],Es.prototype,"labels",void 0),(0,C.Cg)([l.attr],Es.prototype,"target",void 0),(0,C.Cg)([l.attr],Es.prototype,"columns",void 0),(0,C.Cg)([l.observable],Es.prototype,"ready",void 0),(0,C.Cg)([l.observable],Es.prototype,"fields",void 0),(0,C.Cg)([ui.dm],Es.prototype,"connect",void 0),(0,C.Cg)([l.observable],Es.prototype,"collapsed",void 0);const Os=Es.compose({baseName:"filter-bar",template:$s,styles:ys});var Ts;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Ts||(Ts={}));const ks=e=>{const t=e?`-${e}`:"";return l.css`
2236
+ ${t&&`@media only screen and ${Ts[e]} {`}
2237
2237
  :host(.spacing${t}-1x) slot {
2238
2238
  gap: calc(var(--design-unit) * 2px);
2239
2239
  }
@@ -2350,7 +2350,7 @@
2350
2350
  align-content: space-evenly;
2351
2351
  }
2352
2352
  ${t&&"}"}
2353
- `},Da=l.css`
2353
+ `},Ds=l.css`
2354
2354
  :host {
2355
2355
  width: 100%;
2356
2356
  height: 100%;
@@ -2362,17 +2362,17 @@
2362
2362
  display: flex;
2363
2363
  }
2364
2364
 
2365
- ${ka()}
2366
- ${ka("lg")}
2367
- ${ka("md")}
2368
- ${ka("sm")}
2369
- `,Ia=l.html`
2365
+ ${ks()}
2366
+ ${ks("lg")}
2367
+ ${ks("md")}
2368
+ ${ks("sm")}
2369
+ `,Is=l.html`
2370
2370
  <template>
2371
2371
  <slot></slot>
2372
2372
  </template>
2373
- `,Ra=void 0,Aa={};class La extends a.FoundationElement{}const Na=La.compose(Object.assign({baseName:"flex-layout",styles:Da,template:Ia,shadowOptions:Ra},Aa)),Fa=(e,t)=>l.css`
2373
+ `,Rs=void 0,As={};class Ls extends s.FoundationElement{}const Ns=Ls.compose(Object.assign({baseName:"flex-layout",styles:Ds,template:Is,shadowOptions:Rs},As)),Fs=(e,t)=>l.css`
2374
2374
  ${(0,r.flipperStyles)(e,t)}
2375
- `,Ma=(e,t)=>(0,a.flipperTemplate)(e,t);class _a extends r.Flipper{}const Ha=void 0,Pa={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 '},za=_a.compose(Object.assign({baseName:"flipper",template:Ma,styles:Fa,shadowOptions:Ha},Pa)),Ua=225,Ba=l.css`
2375
+ `,Ms=(e,t)=>(0,s.flipperTemplate)(e,t);class _s extends r.Flipper{}const Hs=void 0,Ps={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 '},zs=_s.compose(Object.assign({baseName:"flipper",template:Ms,styles:Fs,shadowOptions:Hs},Ps)),Us=225,Bs=l.css`
2376
2376
  /* Host */
2377
2377
  :host {
2378
2378
  display: inline-block;
@@ -2398,8 +2398,8 @@
2398
2398
  position: absolute;
2399
2399
  /* stylelint-disable-next-line function-name-case */
2400
2400
  transition:
2401
- transform ${Ua.toString()}ms ease-in,
2402
- width ${Ua.toString()}ms ease-in-out;
2401
+ transform ${Us.toString()}ms ease-in,
2402
+ width ${Us.toString()}ms ease-in-out;
2403
2403
  width: var(--flyout-width, 20%);
2404
2404
  z-index: 2001;
2405
2405
  }
@@ -2458,7 +2458,7 @@
2458
2458
  opacity: 50%;
2459
2459
  position: absolute;
2460
2460
  /* stylelint-disable-next-line function-name-case */
2461
- transition: opacity ${Ua.toString()}ms linear;
2461
+ transition: opacity ${Us.toString()}ms linear;
2462
2462
  width: 100%;
2463
2463
  z-index: 2000;
2464
2464
  }
@@ -2466,7 +2466,7 @@
2466
2466
  :host([visuallyhidden]) div.background {
2467
2467
  opacity: 0%;
2468
2468
  }
2469
- `,Va=e=>l.html`
2469
+ `,Vs=e=>l.html`
2470
2470
  <div ?closed=${e=>e.closed} ?visuallyhidden=${e=>e.visuallyhidden}>
2471
2471
  <div class="container">
2472
2472
  <div class="background" part="background" @click=${e=>e.closeFlyout()}></div>
@@ -2490,10 +2490,10 @@
2490
2490
  </div>
2491
2491
  </div>
2492
2492
  </div>
2493
- `,Ga=l.html`
2494
- ${e=>Va(T(e))}
2495
- `;class ja extends a.FoundationElement{constructor(){super(...arguments),this.position="right",this.flyoutWidth="20%",this.displayHeader=!0,this.closed=!0,this.visuallyhidden=!0}flyoutWidthChanged(){this.isConnected&&null!=this.flyoutWidth&&this.style.setProperty("--flyout-width",this.flyoutWidth)}closedChanged(){this.closed||(setTimeout(()=>this.visuallyhidden=!1,1),this.focusExit())}connectedCallback(){super.connectedCallback(),null!=this.flyoutWidth&&this.style.setProperty("--flyout-width",this.flyoutWidth)}closeFlyout(){this.visuallyhidden=!0}closingFinished(){this.visuallyhidden&&(this.closed=!0,this.$emit("closed"))}focusExit(){this.exit.focus()}}(0,C.Cg)([l.attr],ja.prototype,"position",void 0),(0,C.Cg)([(0,l.attr)({attribute:"flyout-width"})],ja.prototype,"flyoutWidth",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ja.prototype,"displayHeader",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ja.prototype,"closed",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ja.prototype,"visuallyhidden",void 0);const Ya=void 0,Wa={},qa=ja.compose(Object.assign({baseName:"flyout",styles:Ba,template:Ga,shadowOptions:Ya},Wa));var Ka;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Ka||(Ka={}));const Xa=e=>{const t=e?`-${e}`:"";return l.css`
2496
- ${t&&`@media only screen and ${Ka[e]} {`}
2493
+ `,Gs=l.html`
2494
+ ${e=>Vs(T(e))}
2495
+ `;class js extends s.FoundationElement{constructor(){super(...arguments),this.position="right",this.flyoutWidth="20%",this.displayHeader=!0,this.closed=!0,this.visuallyhidden=!0}flyoutWidthChanged(){this.isConnected&&null!=this.flyoutWidth&&this.style.setProperty("--flyout-width",this.flyoutWidth)}closedChanged(){this.closed||(setTimeout(()=>this.visuallyhidden=!1,1),this.focusExit())}connectedCallback(){super.connectedCallback(),null!=this.flyoutWidth&&this.style.setProperty("--flyout-width",this.flyoutWidth)}closeFlyout(){this.visuallyhidden=!0}closingFinished(){this.visuallyhidden&&(this.closed=!0,this.$emit("closed"))}focusExit(){this.exit.focus()}}(0,C.Cg)([l.attr],js.prototype,"position",void 0),(0,C.Cg)([(0,l.attr)({attribute:"flyout-width"})],js.prototype,"flyoutWidth",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],js.prototype,"displayHeader",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],js.prototype,"closed",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],js.prototype,"visuallyhidden",void 0);const Ys=void 0,Ws={},qs=js.compose(Object.assign({baseName:"flyout",styles:Bs,template:Gs,shadowOptions:Ys},Ws));var Ks;!function(e){e.sm="(max-width: 640px)",e.md="(min-width: 641px) and (max-width: 1023px)",e.lg="(min-width: 1024px)"}(Ks||(Ks={}));const Xs=e=>{const t=e?`-${e}`:"";return l.css`
2496
+ ${t&&`@media only screen and ${Ks[e]} {`}
2497
2497
  :host(.spacing${t}-1x) slot {
2498
2498
  gap: calc(var(--design-unit) * 2px);
2499
2499
  }
@@ -2578,32 +2578,32 @@
2578
2578
  place-items: stretch;
2579
2579
  }
2580
2580
  ${t&&"}"}
2581
- `},Ja=l.css`
2581
+ `},Js=l.css`
2582
2582
  slot {
2583
2583
  width: 100%;
2584
2584
  height: 100%;
2585
2585
  display: grid;
2586
2586
  }
2587
2587
 
2588
- ${Xa()}
2589
- ${Xa("lg")}
2590
- ${Xa("md")}
2591
- ${Xa("sm")}
2592
- `,Qa=l.html`
2588
+ ${Xs()}
2589
+ ${Xs("lg")}
2590
+ ${Xs("md")}
2591
+ ${Xs("sm")}
2592
+ `,Qs=l.html`
2593
2593
  <template>
2594
2594
  <slot></slot>
2595
2595
  </template>
2596
- `,Za=void 0,er={};class tr{constructor(e,t,i,o="1fr",n="1fr"){this.listenerCache=new WeakMap,this.query=window.matchMedia(e);const s=t&&l.cssPartial`grid-template-columns: repeat(${t}, ${o});`,a=i&&l.cssPartial`grid-template-rows: repeat(${i}, ${n});`;this.styles=l.css`
2596
+ `,Zs=void 0,er={};class tr{constructor(e,t,i,o="1fr",n="1fr"){this.listenerCache=new WeakMap,this.query=window.matchMedia(e);const a=t&&l.cssPartial`grid-template-columns: repeat(${t}, ${o});`,s=i&&l.cssPartial`grid-template-rows: repeat(${i}, ${n});`;this.styles=l.css`
2597
2597
  slot {
2598
- ${a||""}
2599
2598
  ${s||""}
2599
+ ${a||""}
2600
2600
  }
2601
- `}bind(e){let t=!1;const i=i=>{const{matches:o}=i;o&&!t?(e.$fastController.addStyles(this.styles),t=!0):!o&&t&&(this.styles&&e.$fastController.removeStyles(this.styles),t=!1)};i({matches:this.query.matches}),this.query.addEventListener("change",i),this.listenerCache.set(e,i)}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 ir extends a.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(Ka).map(e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new tr(Ka[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"]&&l.cssPartial`grid-template-rows: repeat(${this["row-count"]}, ${this["row-height"]||"1fr"});`,t=this["col-count"]&&l.cssPartial`grid-template-columns: repeat(${this["col-count"]}, ${this["col-width"]||"1fr"});`;this.baseStyles=l.css`
2601
+ `}bind(e){let t=!1;const i=i=>{const{matches:o}=i;o&&!t?(e.$fastController.addStyles(this.styles),t=!0):!o&&t&&(this.styles&&e.$fastController.removeStyles(this.styles),t=!1)};i({matches:this.query.matches}),this.query.addEventListener("change",i),this.listenerCache.set(e,i)}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 ir extends s.FoundationElement{constructor(){super(...arguments),this.behaviors=[]}connectedCallback(){super.connectedCallback(),this.behaviors=Object.keys(Ks).map(e=>{if(this[`col-${e}-count`]||this[`row-${e}-count`])return new tr(Ks[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"]&&l.cssPartial`grid-template-rows: repeat(${this["row-count"]}, ${this["row-height"]||"1fr"});`,t=this["col-count"]&&l.cssPartial`grid-template-columns: repeat(${this["col-count"]}, ${this["col-width"]||"1fr"});`;this.baseStyles=l.css`
2602
2602
  slot {
2603
2603
  ${e||""}
2604
2604
  ${t||""}
2605
2605
  }
2606
- `,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,C.Cg)([l.attr],ir.prototype,"col-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-width",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-lg-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-lg-width",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-md-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-md-width",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-sm-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-sm-width",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-height",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-lg-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-lg-height",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-md-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-md-height",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-sm-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-sm-height",void 0);const or=ir.compose(Object.assign({baseName:"grid-layout",styles:Ja,template:Qa,shadowOptions:Za},er)),nr=l.html`
2606
+ `,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,C.Cg)([l.attr],ir.prototype,"col-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-width",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-lg-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-lg-width",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-md-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-md-width",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-sm-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"col-sm-width",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-height",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-lg-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-lg-height",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-md-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-md-height",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-sm-count",void 0),(0,C.Cg)([l.attr],ir.prototype,"row-sm-height",void 0);const or=ir.compose(Object.assign({baseName:"grid-layout",styles:Js,template:Qs,shadowOptions:Zs},er)),nr=l.html`
2607
2607
  <template>
2608
2608
  <style>
2609
2609
  :host {
@@ -2629,9 +2629,9 @@
2629
2629
  </style>
2630
2630
  <slot></slot>
2631
2631
  </template>
2632
- `,sr=void 0,ar={};class rr extends a.FoundationElement{setGridItemProperties(e,t,i,o){if(t&&e&&i&&o){return`grid-row: ${0===t||0===o?"auto":`${t} / ${Number(t)+Number(o)}`}; grid-column: ${0===e||0===i?"auto":`${e} / ${Number(e)+Number(i)}`}`}}}(0,C.Cg)([(0,l.attr)({attribute:"col-number"})],rr.prototype,"colNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"col-sm-number"})],rr.prototype,"colSmNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"col-md-number"})],rr.prototype,"colMdNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"col-lg-number"})],rr.prototype,"colLgNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"row-number"})],rr.prototype,"rowNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"row-sm-number"})],rr.prototype,"rowSmNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"row-md-number"})],rr.prototype,"rowMdNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"row-lg-number"})],rr.prototype,"rowLgNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"width"})],rr.prototype,"width",void 0),(0,C.Cg)([(0,l.attr)({attribute:"width-sm"})],rr.prototype,"widthSm",void 0),(0,C.Cg)([(0,l.attr)({attribute:"width-md"})],rr.prototype,"widthMd",void 0),(0,C.Cg)([(0,l.attr)({attribute:"width-lg"})],rr.prototype,"widthLg",void 0),(0,C.Cg)([(0,l.attr)({attribute:"height"})],rr.prototype,"height",void 0),(0,C.Cg)([(0,l.attr)({attribute:"height-sm"})],rr.prototype,"heightSm",void 0),(0,C.Cg)([(0,l.attr)({attribute:"height-md"})],rr.prototype,"heightMd",void 0),(0,C.Cg)([(0,l.attr)({attribute:"height-lg"})],rr.prototype,"heightLg",void 0);const lr=rr.compose(Object.assign({baseName:"grid-layout-item",template:nr,shadowOptions:sr},ar)),dr=(e,t)=>l.css`
2632
+ `,ar=void 0,sr={};class rr extends s.FoundationElement{setGridItemProperties(e,t,i,o){if(t&&e&&i&&o){return`grid-row: ${0===t||0===o?"auto":`${t} / ${Number(t)+Number(o)}`}; grid-column: ${0===e||0===i?"auto":`${e} / ${Number(e)+Number(i)}`}`}}}(0,C.Cg)([(0,l.attr)({attribute:"col-number"})],rr.prototype,"colNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"col-sm-number"})],rr.prototype,"colSmNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"col-md-number"})],rr.prototype,"colMdNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"col-lg-number"})],rr.prototype,"colLgNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"row-number"})],rr.prototype,"rowNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"row-sm-number"})],rr.prototype,"rowSmNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"row-md-number"})],rr.prototype,"rowMdNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"row-lg-number"})],rr.prototype,"rowLgNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"width"})],rr.prototype,"width",void 0),(0,C.Cg)([(0,l.attr)({attribute:"width-sm"})],rr.prototype,"widthSm",void 0),(0,C.Cg)([(0,l.attr)({attribute:"width-md"})],rr.prototype,"widthMd",void 0),(0,C.Cg)([(0,l.attr)({attribute:"width-lg"})],rr.prototype,"widthLg",void 0),(0,C.Cg)([(0,l.attr)({attribute:"height"})],rr.prototype,"height",void 0),(0,C.Cg)([(0,l.attr)({attribute:"height-sm"})],rr.prototype,"heightSm",void 0),(0,C.Cg)([(0,l.attr)({attribute:"height-md"})],rr.prototype,"heightMd",void 0),(0,C.Cg)([(0,l.attr)({attribute:"height-lg"})],rr.prototype,"heightLg",void 0);const lr=rr.compose(Object.assign({baseName:"grid-layout-item",template:nr,shadowOptions:ar},sr)),dr=(e,t)=>l.css`
2633
2633
  ${(0,r.horizontalScrollStyles)(e,t)}
2634
- `,cr=(e,t)=>(0,a.horizontalScrollTemplate)(e,t);class ur extends r.HorizontalScroll{}const hr={delegatesFocus:!0,mode:"open"},pr={nextFlipper:l.html`
2634
+ `,cr=(e,t)=>(0,s.horizontalScrollTemplate)(e,t);class ur extends r.HorizontalScroll{}const hr={delegatesFocus:!0,mode:"open"},pr={nextFlipper:l.html`
2635
2635
  <foundation-flipper
2636
2636
  @click="${e=>e.scrollToNext()}"
2637
2637
  aria-hidden="${e=>e.flippersHiddenFromAT}"
@@ -2642,7 +2642,7 @@
2642
2642
  direction="previous"
2643
2643
  aria-hidden="${e=>e.flippersHiddenFromAT}"
2644
2644
  ></foundation-flipper>
2645
- `},mr=ur.compose(Object.assign({baseName:"horizontal-scroll",template:cr,styles:dr,shadowOptions:hr},pr));var gr=i(70623),vr=i(32808),fr=i(10463),br=i(19037),yr=i(22984);const wr=()=>(gr.Yv.add(yr.X7I,br.C91,fr.Cvc),gr.tT.css()),Cr=(e,t)=>l.css`
2645
+ `},mr=ur.compose(Object.assign({baseName:"horizontal-scroll",template:cr,styles:dr,shadowOptions:hr},pr));var vr=i(70623),gr=i(32808),fr=i(10463),br=i(19037),yr=i(22984);const wr=()=>(vr.Yv.add(yr.X7I,br.C91,fr.Cvc),vr.tT.css()),Cr=(e,t)=>l.css`
2646
2646
  ${wr()}
2647
2647
 
2648
2648
  .fa-stack-1x {
@@ -2737,7 +2737,7 @@
2737
2737
  </template>
2738
2738
  `,$r=l.html`
2739
2739
  ${e=>xr(T(e))}
2740
- `,Sr={mode:"open",delegatesFocus:!0},Er={};var Or;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Or||(Or={}));const Tr="1x",kr=["2xs","xs","sm","lg","xl","2xl",Tr,"2x","3x","4x","5x","6x","7x","8x","9x","10x","stack-1x","stack-2x"];class Dr extends a.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,gr.wu)({prefix:Or[this.variant],iconName:this.name}),t=(0,gr.Kk)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map(e=>this.iElement.appendChild(e)))}}(0,C.Cg)([l.observable],Dr.prototype,"iElement",void 0),(0,C.Cg)([vr.k],Dr.prototype,"uuid",void 0),(0,C.Cg)([(0,l.attr)({attribute:"tooltip-id"})],Dr.prototype,"tooltipId",void 0),(0,C.Cg)([l.attr],Dr.prototype,"tooltip",void 0),(0,C.Cg)([(0,l.attr)({attribute:"error",mode:"boolean"})],Dr.prototype,"isError",void 0),(0,C.Cg)([l.attr],Dr.prototype,"name",void 0),(0,C.Cg)([l.attr],Dr.prototype,"size",void 0),(0,C.Cg)([l.attr],Dr.prototype,"variant",void 0);const Ir=Dr.compose(Object.assign({baseName:"icon",template:$r,styles:Cr,shadowOptions:Sr},Er)),Rr=(e,t)=>l.css`
2740
+ `,Sr={mode:"open",delegatesFocus:!0},Er={};var Or;!function(e){e.solid="fas",e.regular="far",e.brand="fab"}(Or||(Or={}));const Tr="1x",kr=["2xs","xs","sm","lg","xl","2xl",Tr,"2x","3x","4x","5x","6x","7x","8x","9x","10x","stack-1x","stack-2x"];class Dr extends s.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,vr.wu)({prefix:Or[this.variant],iconName:this.name}),t=(0,vr.Kk)(e);t&&t.node&&(this.iElement.innerHTML="",Array.from(t.node).map(e=>this.iElement.appendChild(e)))}}(0,C.Cg)([l.observable],Dr.prototype,"iElement",void 0),(0,C.Cg)([gr.k],Dr.prototype,"uuid",void 0),(0,C.Cg)([(0,l.attr)({attribute:"tooltip-id"})],Dr.prototype,"tooltipId",void 0),(0,C.Cg)([l.attr],Dr.prototype,"tooltip",void 0),(0,C.Cg)([(0,l.attr)({attribute:"error",mode:"boolean"})],Dr.prototype,"isError",void 0),(0,C.Cg)([l.attr],Dr.prototype,"name",void 0),(0,C.Cg)([l.attr],Dr.prototype,"size",void 0),(0,C.Cg)([l.attr],Dr.prototype,"variant",void 0);const Ir=Dr.compose(Object.assign({baseName:"icon",template:$r,styles:Cr,shadowOptions:Sr},Er)),Rr=(e,t)=>l.css`
2741
2741
  ${(0,r.listboxStyles)(e,t)}
2742
2742
 
2743
2743
  :host {
@@ -2748,11 +2748,11 @@
2748
2748
  border: calc(var(--stroke-width) * 1px) solid var(--neutral-stroke-rest);
2749
2749
  border-radius: calc(var(--control-corner-radius) * 1px);
2750
2750
  }
2751
- `,Ar=(e,t)=>(0,a.listboxTemplate)(e,t);class Lr extends r.Listbox{}const Nr=void 0,Fr={},Mr=Lr.compose(Object.assign({baseName:"listbox",template:Ar,styles:Rr,shadowOptions:Nr},Fr)),_r=(e,t)=>l.css`
2751
+ `,Ar=(e,t)=>(0,s.listboxTemplate)(e,t);class Lr extends r.Listbox{}const Nr=void 0,Fr={},Mr=Lr.compose(Object.assign({baseName:"listbox",template:Ar,styles:Rr,shadowOptions:Nr},Fr)),_r=(e,t)=>l.css`
2752
2752
  ${(0,r.optionStyles)(e,t)}
2753
- `,Hr=(e,t)=>(0,a.listboxOptionTemplate)(e,t);class Pr extends r.ListboxOption{}const zr=void 0,Ur={},Br=Pr.compose(Object.assign({baseName:"option",template:Hr,styles:_r,shadowOptions:zr},Ur)),Vr=(e,t)=>l.css`
2753
+ `,Hr=(e,t)=>(0,s.listboxOptionTemplate)(e,t);class Pr extends r.ListboxOption{}const zr=void 0,Ur={},Br=Pr.compose(Object.assign({baseName:"option",template:Hr,styles:_r,shadowOptions:zr},Ur)),Vr=(e,t)=>l.css`
2754
2754
  ${(0,r.menuStyles)(e,t)}
2755
- `,Gr=(e,t)=>(0,a.menuTemplate)(e,t);class jr extends r.Menu{}const Yr=void 0,Wr={},qr=jr.compose(Object.assign({baseName:"menu",template:Gr,styles:Vr,shadowOptions:Yr},Wr)),Kr=(e,t)=>l.css`
2755
+ `,Gr=(e,t)=>(0,s.menuTemplate)(e,t);class jr extends r.Menu{}const Yr=void 0,Wr={},qr=jr.compose(Object.assign({baseName:"menu",template:Gr,styles:Vr,shadowOptions:Yr},Wr)),Kr=(e,t)=>l.css`
2756
2756
  ${(0,r.menuItemStyles)(e,t)}
2757
2757
 
2758
2758
  :host, :host(.indent-0[aria-haspopup='menu']) {
@@ -2766,11 +2766,11 @@
2766
2766
  height: auto;
2767
2767
  width: auto;
2768
2768
  }
2769
- `,Xr=(e,t)=>(0,a.menuItemTemplate)(e,t);class Jr extends r.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",()=>this.$emit("onMenuClick"))}}const Qr=void 0,Zr={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 '},el=Jr.compose(Object.assign({baseName:"menu-item",template:Xr,styles:Kr,shadowOptions:Qr},Zr)),tl=l.css`
2769
+ `,Xr=(e,t)=>(0,s.menuItemTemplate)(e,t);class Jr extends r.MenuItem{connectedCallback(){super.connectedCallback(),this.addEventListener("click",()=>this.$emit("onMenuClick"))}}const Qr=void 0,Zr={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 '},el=Jr.compose(Object.assign({baseName:"menu-item",template:Xr,styles:Kr,shadowOptions:Qr},Zr)),tl=l.css`
2770
2770
  ${Sn}
2771
2771
  `,il=l.html`
2772
2772
  ${kn}
2773
- `,ol={mode:"open",delegatesFocus:!0},nl={};class sl extends Rn{show(){var e,t;null===(e=this.onShowCallback)||void 0===e||e.call(this),null===(t=this.mainElement)||void 0===t||t.showModal()}}const al=sl.compose(Object.assign({baseName:"modal",template:il,styles:tl,shadowOptions:ol},nl)),rl=230,ll=l.css`
2773
+ `,ol={mode:"open",delegatesFocus:!0},nl={};class al extends Rn{show(){var e,t;null===(e=this.onShowCallback)||void 0===e||e.call(this),null===(t=this.mainElement)||void 0===t||t.showModal()}}const sl=al.compose(Object.assign({baseName:"modal",template:il,styles:tl,shadowOptions:ol},nl)),rl=230,ll=l.css`
2774
2774
  :host {
2775
2775
  --scrollbar-width: 12px;
2776
2776
  --scrollbar-thumb-width: 8px;
@@ -3011,7 +3011,7 @@
3011
3011
  resize: none;
3012
3012
  overflow: hidden;
3013
3013
  }
3014
- `;let dl=class extends gi{constructor(){super(...arguments),this.isSnapshot=!0,this.baseCriteria=""}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(this,void 0,void 0,function*(){var t;e.connectedCallback.call(this),this.baseCriteria=this.criteria,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||ot.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 i=(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=i}handleStreamInserts(e){ot.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ot.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ot.debug("handleStreamUpdates - Method not implemented.")}};(0,C.Cg)([(0,l.attr)({attribute:"value-field"})],dl.prototype,"valueField",void 0),(0,C.Cg)([(0,l.attr)({attribute:"label-field"})],dl.prototype,"labelField",void 0),dl=(0,C.Cg)([(0,l.customElement)({name:"multiselect-datasource"})],dl);const cl=(e="foundation")=>l.html`
3014
+ `;let dl=class extends vi{constructor(){super(...arguments),this.isSnapshot=!0,this.baseCriteria=""}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(this,void 0,void 0,function*(){var t;e.connectedCallback.call(this),this.baseCriteria=this.criteria,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||ot.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 i=(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=i}handleStreamInserts(e){ot.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ot.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ot.debug("handleStreamUpdates - Method not implemented.")}};(0,C.Cg)([(0,l.attr)({attribute:"value-field"})],dl.prototype,"valueField",void 0),(0,C.Cg)([(0,l.attr)({attribute:"label-field"})],dl.prototype,"labelField",void 0),dl=(0,C.Cg)([(0,l.customElement)({name:"multiselect-datasource"})],dl);const cl=(e="foundation")=>l.html`
3015
3015
  <label
3016
3016
  part="label"
3017
3017
  for="display-field"
@@ -3019,7 +3019,7 @@
3019
3019
  >
3020
3020
  <slot
3021
3021
  name="label"
3022
- ${(0,l.slotted)({property:"defaultSlottedNodes",filter:a.whitespaceFilter})}
3022
+ ${(0,l.slotted)({property:"defaultSlottedNodes",filter:s.whitespaceFilter})}
3023
3023
  ></slot>
3024
3024
  </label>
3025
3025
  <div class="root" part="root" @keydown="${(e,t)=>e.keydownHandler(t.event)}">
@@ -3092,7 +3092,7 @@
3092
3092
  >
3093
3093
  <slot
3094
3094
  name="options-header"
3095
- ${(0,l.slotted)({property:"optionsHeaderSlottedNodes",filter:a.whitespaceFilter})}
3095
+ ${(0,l.slotted)({property:"optionsHeaderSlottedNodes",filter:s.whitespaceFilter})}
3096
3096
  ></slot>
3097
3097
  </li>
3098
3098
  ${(0,l.repeat)(e=>e.filteredAvailableOptions,l.html`
@@ -3122,7 +3122,7 @@
3122
3122
  ></slot>
3123
3123
  `,ul=l.html`
3124
3124
  ${cl()}
3125
- `,hl=void 0,pl={};class ml extends a.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.resizable=!1,this.filterByContains=!1,this.filterSearchValue="",this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=zt.BELOW,this.itemRenderer=this.defaultItemRenderer,this.initialisedOptions=!1,this.isResizing=!1,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.handleResizeStart=e=>{this.resizable&&this.multiselectDropdown&&(e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.startX=e.clientX,this.startY=e.clientY,this.startWidth=this.multiselectDropdown.offsetWidth,this.startHeight=this.multiselectDropdown.offsetHeight,this.multiselectDropdown.classList.add("is-resizing"),document.addEventListener("mousemove",this.handleResizeMove),document.addEventListener("mouseup",this.handleResizeEnd))},this.handleResizeMove=e=>{if(!this.isResizing||!this.multiselectDropdown)return;e.preventDefault();const t=e.clientX-this.startX,i=e.clientY-this.startY,o=Math.max(250,this.startWidth+t),n=Math.max(100,this.startHeight+i);this.multiselectDropdown&&(this.multiselectDropdown.style.width=`${o}px`,this.multiselectDropdown.style.maxHeight=`${n}px`)},this.handleResizeEnd=()=>{this.isResizing=!1,document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd),this.multiselectDropdown&&(this.multiselectDropdown.classList.remove("is-resizing"),this.multiselectDropdown.style.setProperty("--custom-max-height",this.multiselectDropdown.style.maxHeight),this.multiselectDropdown.style.removeProperty("max-height"))}}debounceChanged(e,t){this.debouncedInputHandler=ii()(this.asyncSetFilter,t)}openChanged(e,t){var i,o,n,s;t?(document.addEventListener("mousedown",this.clickOutside),null===(i=this.arrowIcon)||void 0===i||i.classList.add("flipped"),null===(o=this.multiselectDropdown)||void 0===o||o.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(n=this.arrowIcon)||void 0===n||n.classList.remove("flipped"),null===(s=this.multiselectDropdown)||void 0===s||s.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===zt.ABOVE&&(null===(e=this.multiselectDropdown)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd)}defaultItemRenderer(e,t){return l.html`
3125
+ `,hl=void 0,pl={};class ml extends s.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.resizable=!1,this.filterByContains=!1,this.filterSearchValue="",this.clickOutside=e=>this.handleClickOutside(e),this.open=!1,this.options=[],this.selectedOptions=[],this.filteredAvailableOptions=[...this.options],this.position=zt.BELOW,this.itemRenderer=this.defaultItemRenderer,this.initialisedOptions=!1,this.isResizing=!1,this.startX=0,this.startY=0,this.startWidth=0,this.startHeight=0,this.handleResizeStart=e=>{this.resizable&&this.multiselectDropdown&&(e.preventDefault(),e.stopPropagation(),this.isResizing=!0,this.startX=e.clientX,this.startY=e.clientY,this.startWidth=this.multiselectDropdown.offsetWidth,this.startHeight=this.multiselectDropdown.offsetHeight,this.multiselectDropdown.classList.add("is-resizing"),document.addEventListener("mousemove",this.handleResizeMove),document.addEventListener("mouseup",this.handleResizeEnd))},this.handleResizeMove=e=>{if(!this.isResizing||!this.multiselectDropdown)return;e.preventDefault();const t=e.clientX-this.startX,i=e.clientY-this.startY,o=Math.max(250,this.startWidth+t),n=Math.max(100,this.startHeight+i);this.multiselectDropdown&&(this.multiselectDropdown.style.width=`${o}px`,this.multiselectDropdown.style.maxHeight=`${n}px`)},this.handleResizeEnd=()=>{this.isResizing=!1,document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd),this.multiselectDropdown&&(this.multiselectDropdown.classList.remove("is-resizing"),this.multiselectDropdown.style.setProperty("--custom-max-height",this.multiselectDropdown.style.maxHeight),this.multiselectDropdown.style.removeProperty("max-height"))}}debounceChanged(e,t){this.debouncedInputHandler=ii()(this.asyncSetFilter,t)}openChanged(e,t){var i,o,n,a;t?(document.addEventListener("mousedown",this.clickOutside),null===(i=this.arrowIcon)||void 0===i||i.classList.add("flipped"),null===(o=this.multiselectDropdown)||void 0===o||o.classList.add("visible")):(document.removeEventListener("mousedown",this.clickOutside),null===(n=this.arrowIcon)||void 0===n||n.classList.remove("flipped"),null===(a=this.multiselectDropdown)||void 0===a||a.classList.remove("visible"))}connectedCallback(){var e;super.connectedCallback(),this.position===zt.ABOVE&&(null===(e=this.multiselectDropdown)||void 0===e||e.classList.add("position-above"))}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside),document.removeEventListener("mousemove",this.handleResizeMove),document.removeEventListener("mouseup",this.handleResizeEnd)}defaultItemRenderer(e,t){return l.html`
3126
3126
  ${"string"==typeof e?l.html`
3127
3127
  <span part="option-label">${()=>t.getItemLabel(e)}</span>
3128
3128
  `:l.html`
@@ -3134,7 +3134,7 @@
3134
3134
  ${()=>t.getItemLabel(e)}
3135
3135
  </span>
3136
3136
  `}
3137
- `}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}optionsChanged(){this.allSelected&&!this.initialisedOptions&&(this.selectedOptions=this.options.map(e=>this.optionValueGetter(e))),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}setDropdownPosition(){let e=this.position;if(this.autoPosition){const t=this.getBoundingClientRect(),i=window.innerHeight,o=t.top,n=i-t.bottom;e=n<rl&&o>n?zt.ABOVE:zt.BELOW}this.multiselectDropdown.classList.toggle("position-above",e===zt.ABOVE),this.multiselectDropdown.classList.toggle("position-below",e===zt.BELOW)}optionValueGetter(e){return"string"==typeof e?e:e.value}optionLabelGetter(e){return"string"==typeof e?e:e.label}getItemLabel(e){let t;return e?(t="string"==typeof e?e:this.optionLabelGetter(e)||this.optionValueGetter(e)||"",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.optionValueGetter(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 areAllOptionsSelected(){const e=this.getEnabledOptionsCount();return e>0&&this.selectedOptions.length===e}get showCreatable(){return this.creatable&&this.filterSearchValue.length>0&&0===this.findExactMatchOptions().length}isOptionSelected(e){const t=this.optionValueGetter(e);return this.selectedOptions.some(i=>{if("object"==typeof e&&"object"==typeof e.value)try{return JSON.stringify(i)===JSON.stringify(t)}catch(e){return i===t}return i===t})}selectCheckboxOne(e){const t=this.optionValueGetter(e),i=this.selectedOptions.includes(t);this.selectedOptions=i?this.selectedOptions.filter(e=>e!==t):[...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.optionValueGetter(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 i,o;const n="string"==typeof t?t:null!==(i=this.optionLabelGetter(t))&&void 0!==i?i:this.optionValueGetter(t);return(null!==(o=null==n?void 0:n.toLowerCase())&&void 0!==o?o:"")===e})}setFilter(){const e=this.filterSearchValue.toLowerCase();this.filteredAvailableOptions=this.options.filter(t=>{if(!e)return!0;if("string"==typeof t)return t.toLowerCase().includes(e);const i=t.label.toLowerCase(),o="object"==typeof t.value?(n=t.value,Object.values(n).some(t=>t.toLowerCase().includes(e))):String(t.value).toLowerCase().includes(e);var n;return i.includes(e)||o})}addOption(){this.options=[{value:this.filterSearchValue,label:this.filterSearchValue},...this.options],this.setFilter(),this.selectedOptions=[...this.selectedOptions,this.filterSearchValue]}asyncSetFilter(){this.slottedDatasource.length>0?vi(this.slottedDatasource[0],this.filterSearchValue):(this.loading=!1,ot.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality."))}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){E(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}}clear(e={}){const{clearSelectedValues:t=!0,clearFilterText:i=!0}=e;t&&(this.selectedOptions=[],this.$emit("selectionChange",this.selectedOptions)),i&&(this.filterSearchValue="",this.setFilter(),this.filterSearchInput&&(this.filterSearchInput.value="")),this.$emit("clear",{clearSelectedValues:t,clearFilterText:i})}}(0,C.Cg)([l.attr],ml.prototype,"name",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"auto-position"})],ml.prototype,"autoPosition",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"all",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"allSelected",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"search",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"disabled",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"creatable",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"async",void 0),(0,C.Cg)([l.attr],ml.prototype,"debounce",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"resizable",void 0),(0,C.Cg)([l.attr],ml.prototype,"tabindex",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"filter-by-contains"})],ml.prototype,"filterByContains",void 0),(0,C.Cg)([l.observable],ml.prototype,"defaultSlottedNodes",void 0),(0,C.Cg)([l.observable],ml.prototype,"slottedDatasource",void 0),(0,C.Cg)([l.observable],ml.prototype,"valueFormatter",void 0),(0,C.Cg)([l.observable],ml.prototype,"loading",void 0),(0,C.Cg)([l.observable],ml.prototype,"filterSearchValue",void 0),(0,C.Cg)([l.observable],ml.prototype,"open",void 0),(0,C.Cg)([l.observable],ml.prototype,"options",void 0),(0,C.Cg)([l.observable],ml.prototype,"selectedOptions",void 0),(0,C.Cg)([l.observable],ml.prototype,"filteredAvailableOptions",void 0),(0,C.Cg)([l.observable],ml.prototype,"scrollContainer",void 0),(0,C.Cg)([l.attr],ml.prototype,"position",void 0),(0,C.Cg)([l.observable],ml.prototype,"onAllSelectedCallback",void 0),(0,C.Cg)([l.observable],ml.prototype,"itemRenderer",void 0),(0,C.Cg)([l.volatile],ml.prototype,"getDisplayValue",null),(0,C.Cg)([l.volatile],ml.prototype,"getPlaceholder",null),(0,C.Cg)([l.volatile],ml.prototype,"isAllOptionsDisabled",null),(0,C.Cg)([l.volatile],ml.prototype,"areAllOptionsSelected",null),(0,C.Cg)([l.volatile],ml.prototype,"showCreatable",null),(0,C.Cg)([l.observable],ml.prototype,"optionsHeaderSlottedNodes",void 0);const gl=ml.compose(Object.assign({baseName:"multiselect",template:ul,styles:ll,shadowOptions:hl},pl)),vl={k:1e3,m:1e6,b:1e9},fl=/^(.*?)([kmb])$/i;class bl{constructor(e){const t=new Intl.NumberFormat(e).formatToParts(12345.6),i=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(i.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(`[${i.join("")}]`,"g"),this._index=e=>o.get(e)}parse(e){const t=e.trim().match(fl),i=t?vl[t[2].toLowerCase()]:1;return(e=(t?t[1]:e).trim().replace(this._group,"").replace(this._decimal,".").replace(this._numeral,this._index))?+e*i:NaN}hasSeparator(e){return this._separator.test(e)}}function yl(e){class t extends e{constructor(){super(...arguments),this.hideAffixFromScreenReader=!1}get controlAriaDescribedby(){var e;const t=null===(e=this.ariaDescribedby)||void 0===e?void 0:e.trim(),i=[];if(t&&i.push(...t.split(/\s+/).filter(Boolean)),!this.hideAffixFromScreenReader){const e=this.id||"control";this.prefix&&i.push(`${e}-prefix`),this.suffix&&i.push(`${e}-suffix`)}const o=new Set,n=[];for(const e of i)o.has(e)||(o.add(e),n.push(e));return n.join(" ")||void 0}}return(0,C.Cg)([l.attr],t.prototype,"prefix",void 0),(0,C.Cg)([l.attr],t.prototype,"suffix",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-affix-from-screen-reader",mode:"boolean"})],t.prototype,"hideAffixFromScreenReader",void 0),t}const wl=l.css`
3137
+ `}toggle(){this.open||this.setDropdownPosition(),this.open=!this.open}optionsChanged(){this.allSelected&&!this.initialisedOptions&&(this.selectedOptions=this.options.map(e=>this.optionValueGetter(e))),this.filteredAvailableOptions=[...this.options]}selectedOptionsChanged(){this.$fastController.isConnected&&(this.initialisedOptions=!0)}setDropdownPosition(){let e=this.position;if(this.autoPosition){const t=this.getBoundingClientRect(),i=window.innerHeight,o=t.top,n=i-t.bottom;e=n<rl&&o>n?zt.ABOVE:zt.BELOW}this.multiselectDropdown.classList.toggle("position-above",e===zt.ABOVE),this.multiselectDropdown.classList.toggle("position-below",e===zt.BELOW)}optionValueGetter(e){return"string"==typeof e?e:e.value}optionLabelGetter(e){return"string"==typeof e?e:e.label}getItemLabel(e){let t;return e?(t="string"==typeof e?e:this.optionLabelGetter(e)||this.optionValueGetter(e)||"",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.optionValueGetter(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 areAllOptionsSelected(){const e=this.getEnabledOptionsCount();return e>0&&this.selectedOptions.length===e}get showCreatable(){return this.creatable&&this.filterSearchValue.length>0&&0===this.findExactMatchOptions().length}isOptionSelected(e){const t=this.optionValueGetter(e);return this.selectedOptions.some(i=>{if("object"==typeof e&&"object"==typeof e.value)try{return JSON.stringify(i)===JSON.stringify(t)}catch(e){return i===t}return i===t})}selectCheckboxOne(e){const t=this.optionValueGetter(e),i=this.selectedOptions.includes(t);this.selectedOptions=i?this.selectedOptions.filter(e=>e!==t):[...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.optionValueGetter(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 i,o;const n="string"==typeof t?t:null!==(i=this.optionLabelGetter(t))&&void 0!==i?i:this.optionValueGetter(t);return(null!==(o=null==n?void 0:n.toLowerCase())&&void 0!==o?o:"")===e})}setFilter(){const e=this.filterSearchValue.toLowerCase();this.filteredAvailableOptions=this.options.filter(t=>{if(!e)return!0;if("string"==typeof t)return t.toLowerCase().includes(e);const i=t.label.toLowerCase(),o="object"==typeof t.value?(n=t.value,Object.values(n).some(t=>t.toLowerCase().includes(e))):String(t.value).toLowerCase().includes(e);var n;return i.includes(e)||o})}addOption(){this.options=[{value:this.filterSearchValue,label:this.filterSearchValue},...this.options],this.setFilter(),this.selectedOptions=[...this.selectedOptions,this.filterSearchValue]}asyncSetFilter(){this.slottedDatasource.length>0?gi(this.slottedDatasource[0],this.filterSearchValue):(this.loading=!1,ot.warn("Multiselect-datasource is not connected. Please add a datasource to use this functionality."))}changeHandler(e){e.preventDefault(),e.stopImmediatePropagation()}handleClickOutside(e){E(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}}clear(e={}){const{clearSelectedValues:t=!0,clearFilterText:i=!0}=e;t&&(this.selectedOptions=[],this.$emit("selectionChange",this.selectedOptions)),i&&(this.filterSearchValue="",this.setFilter(),this.filterSearchInput&&(this.filterSearchInput.value="")),this.$emit("clear",{clearSelectedValues:t,clearFilterText:i})}}(0,C.Cg)([l.attr],ml.prototype,"name",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"auto-position"})],ml.prototype,"autoPosition",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"all",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"allSelected",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"search",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"disabled",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"creatable",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"async",void 0),(0,C.Cg)([l.attr],ml.prototype,"debounce",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],ml.prototype,"resizable",void 0),(0,C.Cg)([l.attr],ml.prototype,"tabindex",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"filter-by-contains"})],ml.prototype,"filterByContains",void 0),(0,C.Cg)([l.observable],ml.prototype,"defaultSlottedNodes",void 0),(0,C.Cg)([l.observable],ml.prototype,"slottedDatasource",void 0),(0,C.Cg)([l.observable],ml.prototype,"valueFormatter",void 0),(0,C.Cg)([l.observable],ml.prototype,"loading",void 0),(0,C.Cg)([l.observable],ml.prototype,"filterSearchValue",void 0),(0,C.Cg)([l.observable],ml.prototype,"open",void 0),(0,C.Cg)([l.observable],ml.prototype,"options",void 0),(0,C.Cg)([l.observable],ml.prototype,"selectedOptions",void 0),(0,C.Cg)([l.observable],ml.prototype,"filteredAvailableOptions",void 0),(0,C.Cg)([l.observable],ml.prototype,"scrollContainer",void 0),(0,C.Cg)([l.attr],ml.prototype,"position",void 0),(0,C.Cg)([l.observable],ml.prototype,"onAllSelectedCallback",void 0),(0,C.Cg)([l.observable],ml.prototype,"itemRenderer",void 0),(0,C.Cg)([l.volatile],ml.prototype,"getDisplayValue",null),(0,C.Cg)([l.volatile],ml.prototype,"getPlaceholder",null),(0,C.Cg)([l.volatile],ml.prototype,"isAllOptionsDisabled",null),(0,C.Cg)([l.volatile],ml.prototype,"areAllOptionsSelected",null),(0,C.Cg)([l.volatile],ml.prototype,"showCreatable",null),(0,C.Cg)([l.observable],ml.prototype,"optionsHeaderSlottedNodes",void 0);const vl=ml.compose(Object.assign({baseName:"multiselect",template:ul,styles:ll,shadowOptions:hl},pl)),gl={k:1e3,m:1e6,b:1e9},fl=/^(.*?)([kmb])$/i;class bl{constructor(e){const t=new Intl.NumberFormat(e).formatToParts(12345.6),i=[...new Intl.NumberFormat(e,{useGrouping:!1}).format(9876543210)].reverse(),o=new Map(i.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(`[${i.join("")}]`,"g"),this._index=e=>o.get(e)}parse(e){const t=e.trim().match(fl),i=t?gl[t[2].toLowerCase()]:1;return(e=(t?t[1]:e).trim().replace(this._group,"").replace(this._decimal,".").replace(this._numeral,this._index))?+e*i:NaN}hasSeparator(e){return this._separator.test(e)}}function yl(e){class t extends e{constructor(){super(...arguments),this.hideAffixFromScreenReader=!1}get controlAriaDescribedby(){var e;const t=null===(e=this.ariaDescribedby)||void 0===e?void 0:e.trim(),i=[];if(t&&i.push(...t.split(/\s+/).filter(Boolean)),!this.hideAffixFromScreenReader){const e=this.id||"control";this.prefix&&i.push(`${e}-prefix`),this.suffix&&i.push(`${e}-suffix`)}const o=new Set,n=[];for(const e of i)o.has(e)||(o.add(e),n.push(e));return n.join(" ")||void 0}}return(0,C.Cg)([l.attr],t.prototype,"prefix",void 0),(0,C.Cg)([l.attr],t.prototype,"suffix",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-affix-from-screen-reader",mode:"boolean"})],t.prototype,"hideAffixFromScreenReader",void 0),t}const wl=l.css`
3138
3138
  .label-hidden {
3139
3139
  margin: 0;
3140
3140
  }
@@ -3238,7 +3238,7 @@
3238
3238
  <slot ${(0,l.slotted)("defaultSlottedNodes")}></slot>
3239
3239
  </label>
3240
3240
  <div class="root" part="root">
3241
- ${(0,a.startSlotTemplate)(e,t)}
3241
+ ${(0,s.startSlotTemplate)(e,t)}
3242
3242
  <div class="control-field">
3243
3243
  ${(0,l.when)(e=>e.prefix,l.html`
3244
3244
  <span
@@ -3316,10 +3316,10 @@
3316
3316
  </div>
3317
3317
  </div>
3318
3318
  `)}
3319
- ${(0,a.endSlotTemplate)(e,t)}
3319
+ ${(0,s.endSlotTemplate)(e,t)}
3320
3320
  </div>
3321
3321
  </template>
3322
- `,$l=12345.6,Sl=9,El=(e,t)=>{var i;return{decimalSeparator:(null===(i=new Intl.NumberFormat(t).formatToParts($l).find(e=>"decimal"===e.type))||void 0===i?void 0:i.value)||"."}},Ol=(e,t)=>{var i,o,n;const s=new Intl.NumberFormat(t).formatToParts($l),a=null===(i=s.find(e=>"group"===e.type))||void 0===i?void 0:i.value,r=null!==(n=null===(o=s.find(e=>"decimal"===e.type))||void 0===o?void 0:o.value)&&void 0!==n?n:".";let l=e.trim();return a&&(l=l.split(a).join("")),"."!==r&&(l=l.replace(r,".")),l},Tl=(e,t)=>{var i,o;const n=null!==(o=null===(i=new Intl.NumberFormat(t).formatToParts($l).find(e=>"decimal"===e.type))||void 0===i?void 0:i.value)&&void 0!==o?o:".";let s=0;for(const t of e)t===n&&(s+=1);return s},kl=(e,t)=>Tl(e,t)>1,Dl=(e,t,i,o)=>((e,t,i)=>{const o=Ol(String(null!=e?e:""),t);return!(!o||!/^-?\d+$/.test(o))&&o.replace(/^-/,"").length>=i})(e,i,o)&&Tl(t,i)>0,Il=(e,t,i)=>{const o=e.startsWith("-"),n=o?e.slice(1):e,s=n.indexOf("."),a=-1===s?n:n.slice(0,s);let r=-1===s?"":n.slice(s+1);const l=i.minimumFractionDigits,d=i.maximumFractionDigits;void 0!==d&&r.length>d&&(r=r.slice(0,d)),void 0!==l&&r.length<l&&(r=r.padEnd(l,"0"));const c=((e,t)=>{var i,o;const n=e.startsWith("-"),s=n?e.slice(1):e,a=null!==(o=null===(i=new Intl.NumberFormat(t).formatToParts(1234567).find(e=>"group"===e.type))||void 0===i?void 0:i.value)&&void 0!==o?o:",",r=[];let l=s;for(;l.length>3;)r.unshift(l.slice(-3)),l=l.slice(0,-3);r.unshift(l);const d=r.join(a);return n?`-${d}`:d})(o?`-${a}`:a,t),{decimalSeparator:u}=El(0,t);return-1===s?void 0!==l&&l>0?`${c}${u}${"0".repeat(l)}`:c:0===d?c:`${c}${u}${r}`},Rl=(e,t)=>{const{decimalSeparator:i}=El(0,t);return"."===i?e:e.replace(/\./g,i)},Al=(e,t,i)=>""===e?"":(e=>{const t=e.replace(/^-/,""),i=t.indexOf(".");return(-1===i?t:t.slice(0,i)).length>15})(e)&&/^-?\d+(\.\d*)?$/.test(e)?Il(e,t,i):Intl.NumberFormat(t,i).format(Number(e)),Ll=(e,t)=>{if(!e||""===e)return e;const i=Number(e);if(isNaN(i))return e;const o=e.indexOf("."),n=-1!==o,s=n?e.length-o-1:0,a=t.minimumFractionDigits,r=t.maximumFractionDigits;if(s>=a&&s<=r)return e;let l=e;if(s<a){n||(l=e+".");l+="0".repeat(a-s)}if(s>r){const t=n?e.substring(0,o):e,i=(n?e.substring(o+1):"").substring(0,r);l=0===r?t:`${t}.${i}`}return l},Nl=(e,t,i=!0,o)=>{if(null==e||""===e)return"";const n="number"==typeof e?e.toString():e,s=null!=o?o:12;if(kl(n,t))return"";let a;if(i)a=((e,t)=>{const i=Ol(String(e),t),o=i.replace(/^-/,"").replace(".","").length;return/^-?\d+(\.\d+)?$/.test(i)&&o>15?i:String(new bl(t).parse(String(e)))})(n,t);else{const{decimalSeparator:e}=El(0,t);if("."!==e){a=n.replace(new RegExp(`\\${e}`,"g"),".");const t=a.indexOf(".");-1!==t&&(a=a.substring(0,t))}else a=n}a=String(a);if(!/^-?\d*\.?\d+$/.test(a))return"";if(void 0!==s){if(a.replace(".","").replace(/^0+/,"").length>s){const e=a.indexOf(".");if(-1!==e){const t=a.substring(0,e),i=t.length;if(i>=s)return a.substring(0,s);{const o=s-i;return`${t}.${a.substring(e+1).substring(0,o)}`}}return a.substring(0,s)}}return a},Fl=(e,t,i,o)=>{if(void 0!==i&&Tl(e,t)>0){const n=Ol(e,t),s=n.indexOf("."),a=-1===s?n:n.slice(0,s);if(Dl(void 0!==o?o:a,e,t,i))return""}return((e,t,i)=>{const{decimalSeparator:o}=El(0,i),n=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),s=new RegExp(`${n}(\\d*?)(0+)$`),a=e.match(s);if(a){const e=a[1],i=a[2],o=String(t);if(!isNaN(Number(t))){if(o.includes(".")){const t=o.split(".")[1],n=Math.max(0,i.length-(t.length-e.length));return o+"0".repeat(n)}return o+"."+e+i}}return String(t)})(e,Nl(e,t,!0,i),t)},Ml=(e,t,i=!0,o,n,s)=>{const a=Nl(e,t,i,s);if(!a)return"";const r=a.replace(/^-/,"").replace(".","").length;if(/^-?\d+$/.test(a)&&r>15)try{return((e,t,i)=>{let o=BigInt(e);if(void 0!==i&&!Number.isNaN(i)){const e=BigInt(Math.trunc(i));o>e&&(o=e)}if(void 0!==t&&!Number.isNaN(t)){const e=BigInt(Math.trunc(t));o<e&&(o=e)}return o.toString()})(a,o,n)}catch(e){return a}let l=parseFloat(a);return isNaN(l)?l="":(l=Math.min(l,null!=n?n:l),l=Math.max(l,null!=o?o:l)),String(l)},_l=e=>{try{const t="string"==typeof e?e:e.toString(),i=t.indexOf(".");if(-1===i)return 1;const o=t.substring(i+1).length;if(0===o)return 1;const n=Math.pow(10,-o);return parseFloat(n.toFixed(o))}catch(t){const i="string"==typeof e?e:e.toString(),o=i.indexOf(".");if(-1===o)return 1;const n=i.substring(o+1).length;if(0===n)return 1;const s=Math.pow(10,-n);return parseFloat(s.toFixed(n))}};class Hl extends(yl(r.NumberField)){constructor(){super(...arguments),this.autocomplete="off",this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.autoStepPrecision=!1,this.maximumInputPrecision=12,this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}stepUp(){if(/^-?\d*\.?\d+$/.test(this.value)&&""!==this.value){let e;e=this.autoStepPrecision?_l(this.value):this.step;const t=((e,t)=>{try{const i="string"==typeof e?e:e.toString(),o=i.indexOf(".");if(-1===o)return(parseInt(i)+t).toString();const n=i.substring(o+1),s=n.length-1,a=parseInt(n.charAt(s))+1;if(a<=Sl){const e=n.substring(0,s)+a;return i.substring(0,o+1)+e}{let e="",t=1;for(let i=s;i>=0;i-=1){const o=parseInt(n.charAt(i))+t;o<=Sl?(e=o+e,t=0):(e="0"+e,t=1)}return 1===t?parseInt(i.substring(0,o))+1+"."+e:i.substring(0,o+1)+e}}catch(i){return(("string"==typeof e?parseFloat(e):e)+t).toString()}})(this.value,e);this.value=t.toString()}else{const e=this.min>0?this.min:this.max<0?this.max:this.min?0:this.step;this.value=e.toString()}this.control&&(void 0!==this.min||void 0!==this.max?this.control.value=Ml(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}stepDown(){if(/^-?\d*\.?\d+$/.test(this.value)&&""!==this.value){let e;e=this.autoStepPrecision?_l(this.value):this.step;const t=((e,t)=>{try{const i="string"==typeof e?e:e.toString(),o=i.indexOf(".");if(-1===o)return(parseInt(i)-t).toString();const n=i.substring(o+1),s=n.length-1,a=parseInt(n.charAt(s))-1;if(a>=0){const e=n.substring(0,s)+a;return i.substring(0,o+1)+e}{let e="",t=1;for(let i=s;i>=0;i-=1){const o=parseInt(n.charAt(i))-t;o>=0?(e=o+e,t=0):(e=Sl.toString()+e,t=1)}return 1===t?parseInt(i.substring(0,o))-1+"."+e:i.substring(0,o+1)+e}}catch(i){return(("string"==typeof e?parseFloat(e):e)-t).toString()}})(this.value,e);this.value=t.toString()}else{const e=this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step;this.value=e.toString()}this.control&&(void 0!==this.min||void 0!==this.max?this.control.value=Ml(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}restoreControlToCommittedValue(){if(!this.control)return;const e=this.value;if(!e)return this.control.value="",void(this.isUserInput=!1);this.control.value=this.withFormatting&&e?Al(e,this.locale,this.options):Rl(String(e),this.locale),this.isUserInput=!1}handleTextInput(){this.control&&"-"!==this.control.value&&"-0"!==this.control.value&&(kl(this.control.value,this.locale)||Dl(this.value,this.control.value,this.locale,this.maximumInputPrecision)?this.restoreControlToCommittedValue():(this.isUserInput=!0,this.withFormatting&&!new bl(this.locale).hasSeparator(this.control.value)?l.DOM.queueUpdate(()=>{const e=this.value,t=Fl(this.control.value,this.locale,this.maximumInputPrecision,this.value);if(t||!e||""===this.control.value){if(this.control){const e=this.withFormatting&&""!==t?Al(t,this.locale,this.options):Rl(t,this.locale);this.control.value=Ll(e,this.options)}this.value=Ll(t,this.options),this.$emit("input")}else this.restoreControlToCommittedValue()}):this.withFormatting||this.hasSeparatorWithoutDecimals().test(this.control.value)||l.DOM.queueUpdate(()=>{var e;this.control&&(this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,"")),this.value=(null===(e=this.control)||void 0===e?void 0:e.value)||"",this.$emit("input")})))}valueChanged(e,t){if(null!=t||!this.control)return null!=t&&t!==e?this.isUserInput?void 0:(this.value=Ml(this.value,this.locale,!1,this.min,this.max,this.maximumInputPrecision),void l.DOM.queueUpdate(()=>{this.isUserInput||this.control&&(this.control.value=this.withFormatting&&this.value?Al(this.value,this.locale,this.options):this.value)})):void 0;this.control.value=""}handleBlur(){if(!this.control)return;this.isUserInput=!1;const e=Ml(this.control.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision);e&&/^-?\d*\.?\d+$/.test(e)&&(this.value=this.withFormatting?Ll(e,this.options):e),this.control.value=this.withFormatting&&this.value?Al(this.value,this.locale,this.options):e,this.$emit("input")}}(0,C.Cg)([l.attr],Hl.prototype,"autocomplete",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Hl.prototype,"hideStep",void 0),(0,C.Cg)([(0,l.attr)({converter:{fromView:e=>null==e?"":String(e),toView:e=>e}})],Hl.prototype,"value",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Hl.prototype,"withFormatting",void 0),(0,C.Cg)([l.attr],Hl.prototype,"locale",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Hl.prototype,"autoStepPrecision",void 0),(0,C.Cg)([l.attr],Hl.prototype,"maximumInputPrecision",void 0);const Pl={delegatesFocus:!0,mode:"open"},zl={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 '},Ul=Hl.compose(Object.assign({baseName:"number-field",template:xl,styles:Cl,shadowOptions:Pl},zl)),Bl=(e,t)=>l.css`
3322
+ `,$l=12345.6,Sl=9,El=(e,t)=>{var i;return{decimalSeparator:(null===(i=new Intl.NumberFormat(t).formatToParts($l).find(e=>"decimal"===e.type))||void 0===i?void 0:i.value)||"."}},Ol=(e,t)=>{var i,o,n;const a=new Intl.NumberFormat(t).formatToParts($l),s=null===(i=a.find(e=>"group"===e.type))||void 0===i?void 0:i.value,r=null!==(n=null===(o=a.find(e=>"decimal"===e.type))||void 0===o?void 0:o.value)&&void 0!==n?n:".";let l=e.trim();return s&&(l=l.split(s).join("")),"."!==r&&(l=l.replace(r,".")),l},Tl=(e,t)=>{var i,o;const n=null!==(o=null===(i=new Intl.NumberFormat(t).formatToParts($l).find(e=>"decimal"===e.type))||void 0===i?void 0:i.value)&&void 0!==o?o:".";let a=0;for(const t of e)t===n&&(a+=1);return a},kl=(e,t)=>Tl(e,t)>1,Dl=(e,t,i,o)=>((e,t,i)=>{const o=Ol(String(null!=e?e:""),t);return!(!o||!/^-?\d+$/.test(o))&&o.replace(/^-/,"").length>=i})(e,i,o)&&Tl(t,i)>0,Il=(e,t,i)=>{const o=e.startsWith("-"),n=o?e.slice(1):e,a=n.indexOf("."),s=-1===a?n:n.slice(0,a);let r=-1===a?"":n.slice(a+1);const l=i.minimumFractionDigits,d=i.maximumFractionDigits;void 0!==d&&r.length>d&&(r=r.slice(0,d)),void 0!==l&&r.length<l&&(r=r.padEnd(l,"0"));const c=((e,t)=>{var i,o;const n=e.startsWith("-"),a=n?e.slice(1):e,s=null!==(o=null===(i=new Intl.NumberFormat(t).formatToParts(1234567).find(e=>"group"===e.type))||void 0===i?void 0:i.value)&&void 0!==o?o:",",r=[];let l=a;for(;l.length>3;)r.unshift(l.slice(-3)),l=l.slice(0,-3);r.unshift(l);const d=r.join(s);return n?`-${d}`:d})(o?`-${s}`:s,t),{decimalSeparator:u}=El(0,t);return-1===a?void 0!==l&&l>0?`${c}${u}${"0".repeat(l)}`:c:0===d?c:`${c}${u}${r}`},Rl=(e,t)=>{const{decimalSeparator:i}=El(0,t);return"."===i?e:e.replace(/\./g,i)},Al=(e,t,i)=>""===e?"":(e=>{const t=e.replace(/^-/,""),i=t.indexOf(".");return(-1===i?t:t.slice(0,i)).length>15})(e)&&/^-?\d+(\.\d*)?$/.test(e)?Il(e,t,i):Intl.NumberFormat(t,i).format(Number(e)),Ll=(e,t)=>{if(!e||""===e)return e;const i=Number(e);if(isNaN(i))return e;const o=e.indexOf("."),n=-1!==o,a=n?e.length-o-1:0,s=t.minimumFractionDigits,r=t.maximumFractionDigits;if(a>=s&&a<=r)return e;let l=e;if(a<s){n||(l=e+".");l+="0".repeat(s-a)}if(a>r){const t=n?e.substring(0,o):e,i=(n?e.substring(o+1):"").substring(0,r);l=0===r?t:`${t}.${i}`}return l},Nl=(e,t,i=!0,o)=>{if(null==e||""===e)return"";const n="number"==typeof e?e.toString():e,a=null!=o?o:12;if(kl(n,t))return"";let s;if(i)s=((e,t)=>{const i=Ol(String(e),t),o=i.replace(/^-/,"").replace(".","").length;return/^-?\d+(\.\d+)?$/.test(i)&&o>15?i:String(new bl(t).parse(String(e)))})(n,t);else{const{decimalSeparator:e}=El(0,t);if("."!==e){s=n.replace(new RegExp(`\\${e}`,"g"),".");const t=s.indexOf(".");-1!==t&&(s=s.substring(0,t))}else s=n}s=String(s);if(!/^-?\d*\.?\d+$/.test(s))return"";if(void 0!==a){if(s.replace(".","").replace(/^0+/,"").length>a){const e=s.indexOf(".");if(-1!==e){const t=s.substring(0,e),i=t.length;if(i>=a)return s.substring(0,a);{const o=a-i;return`${t}.${s.substring(e+1).substring(0,o)}`}}return s.substring(0,a)}}return s},Fl=(e,t,i,o)=>{if(void 0!==i&&Tl(e,t)>0){const n=Ol(e,t),a=n.indexOf("."),s=-1===a?n:n.slice(0,a);if(Dl(void 0!==o?o:s,e,t,i))return""}return((e,t,i)=>{const{decimalSeparator:o}=El(0,i),n=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`${n}(\\d*?)(0+)$`),s=e.match(a);if(s){const e=s[1],i=s[2],o=String(t);if(!isNaN(Number(t))){if(o.includes(".")){const t=o.split(".")[1],n=Math.max(0,i.length-(t.length-e.length));return o+"0".repeat(n)}return o+"."+e+i}}return String(t)})(e,Nl(e,t,!0,i),t)},Ml=(e,t,i=!0,o,n,a)=>{const s=Nl(e,t,i,a);if(!s)return"";const r=s.replace(/^-/,"").replace(".","").length;if(/^-?\d+$/.test(s)&&r>15)try{return((e,t,i)=>{let o=BigInt(e);if(void 0!==i&&!Number.isNaN(i)){const e=BigInt(Math.trunc(i));o>e&&(o=e)}if(void 0!==t&&!Number.isNaN(t)){const e=BigInt(Math.trunc(t));o<e&&(o=e)}return o.toString()})(s,o,n)}catch(e){return s}let l=parseFloat(s);return isNaN(l)?l="":(l=Math.min(l,null!=n?n:l),l=Math.max(l,null!=o?o:l)),String(l)},_l=e=>{try{const t="string"==typeof e?e:e.toString(),i=t.indexOf(".");if(-1===i)return 1;const o=t.substring(i+1).length;if(0===o)return 1;const n=Math.pow(10,-o);return parseFloat(n.toFixed(o))}catch(t){const i="string"==typeof e?e:e.toString(),o=i.indexOf(".");if(-1===o)return 1;const n=i.substring(o+1).length;if(0===n)return 1;const a=Math.pow(10,-n);return parseFloat(a.toFixed(n))}};class Hl extends(yl(r.NumberField)){constructor(){super(...arguments),this.autocomplete="off",this.hideStep=!1,this.value="",this.withFormatting=!1,this.locale="en-US",this.autoStepPrecision=!1,this.maximumInputPrecision=12,this.options={maximumFractionDigits:3,minimumFractionDigits:0}}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}stepUp(){if(/^-?\d*\.?\d+$/.test(this.value)&&""!==this.value){let e;e=this.autoStepPrecision?_l(this.value):this.step;const t=((e,t)=>{try{const i="string"==typeof e?e:e.toString(),o=i.indexOf(".");if(-1===o)return(parseInt(i)+t).toString();const n=i.substring(o+1),a=n.length-1,s=parseInt(n.charAt(a))+1;if(s<=Sl){const e=n.substring(0,a)+s;return i.substring(0,o+1)+e}{let e="",t=1;for(let i=a;i>=0;i-=1){const o=parseInt(n.charAt(i))+t;o<=Sl?(e=o+e,t=0):(e="0"+e,t=1)}return 1===t?parseInt(i.substring(0,o))+1+"."+e:i.substring(0,o+1)+e}}catch(i){return(("string"==typeof e?parseFloat(e):e)+t).toString()}})(this.value,e);this.value=t.toString()}else{const e=this.min>0?this.min:this.max<0?this.max:this.min?0:this.step;this.value=e.toString()}this.control&&(void 0!==this.min||void 0!==this.max?this.control.value=Ml(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}stepDown(){if(/^-?\d*\.?\d+$/.test(this.value)&&""!==this.value){let e;e=this.autoStepPrecision?_l(this.value):this.step;const t=((e,t)=>{try{const i="string"==typeof e?e:e.toString(),o=i.indexOf(".");if(-1===o)return(parseInt(i)-t).toString();const n=i.substring(o+1),a=n.length-1,s=parseInt(n.charAt(a))-1;if(s>=0){const e=n.substring(0,a)+s;return i.substring(0,o+1)+e}{let e="",t=1;for(let i=a;i>=0;i-=1){const o=parseInt(n.charAt(i))-t;o>=0?(e=o+e,t=0):(e=Sl.toString()+e,t=1)}return 1===t?parseInt(i.substring(0,o))-1+"."+e:i.substring(0,o+1)+e}}catch(i){return(("string"==typeof e?parseFloat(e):e)-t).toString()}})(this.value,e);this.value=t.toString()}else{const e=this.min>0?this.min:this.max<0?this.max:this.min?0:0-this.step;this.value=e.toString()}this.control&&(void 0!==this.min||void 0!==this.max?this.control.value=Ml(this.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision):this.control.value=this.value),this.handleTextInput()}hasSeparatorWithoutDecimals(){return new RegExp("[.]$")}restoreControlToCommittedValue(){if(!this.control)return;const e=this.value;if(!e)return this.control.value="",void(this.isUserInput=!1);this.control.value=this.withFormatting&&e?Al(e,this.locale,this.options):Rl(String(e),this.locale),this.isUserInput=!1}handleTextInput(){this.control&&"-"!==this.control.value&&"-0"!==this.control.value&&(kl(this.control.value,this.locale)||Dl(this.value,this.control.value,this.locale,this.maximumInputPrecision)?this.restoreControlToCommittedValue():(this.isUserInput=!0,this.withFormatting&&!new bl(this.locale).hasSeparator(this.control.value)?l.DOM.queueUpdate(()=>{const e=this.value,t=Fl(this.control.value,this.locale,this.maximumInputPrecision,this.value);if(t||!e||""===this.control.value){if(this.control){const e=this.withFormatting&&""!==t?Al(t,this.locale,this.options):Rl(t,this.locale);this.control.value=Ll(e,this.options)}this.value=Ll(t,this.options),this.$emit("input")}else this.restoreControlToCommittedValue()}):this.withFormatting||this.hasSeparatorWithoutDecimals().test(this.control.value)||l.DOM.queueUpdate(()=>{var e;this.control&&(this.control.value=this.control.value.replace(/[^0-9\-+e.]/g,"")),this.value=(null===(e=this.control)||void 0===e?void 0:e.value)||"",this.$emit("input")})))}valueChanged(e,t){if(null!=t||!this.control)return null!=t&&t!==e?this.isUserInput?void 0:(this.value=Ml(this.value,this.locale,!1,this.min,this.max,this.maximumInputPrecision),void l.DOM.queueUpdate(()=>{this.isUserInput||this.control&&(this.control.value=this.withFormatting&&this.value?Al(this.value,this.locale,this.options):this.value)})):void 0;this.control.value=""}handleBlur(){if(!this.control)return;this.isUserInput=!1;const e=Ml(this.control.value,this.locale,this.withFormatting,this.min,this.max,this.maximumInputPrecision);e&&/^-?\d*\.?\d+$/.test(e)&&(this.value=this.withFormatting?Ll(e,this.options):e),this.control.value=this.withFormatting&&this.value?Al(this.value,this.locale,this.options):e,this.$emit("input")}}(0,C.Cg)([l.attr],Hl.prototype,"autocomplete",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Hl.prototype,"hideStep",void 0),(0,C.Cg)([(0,l.attr)({converter:{fromView:e=>null==e?"":String(e),toView:e=>e}})],Hl.prototype,"value",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Hl.prototype,"withFormatting",void 0),(0,C.Cg)([l.attr],Hl.prototype,"locale",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Hl.prototype,"autoStepPrecision",void 0),(0,C.Cg)([l.attr],Hl.prototype,"maximumInputPrecision",void 0);const Pl={delegatesFocus:!0,mode:"open"},zl={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 '},Ul=Hl.compose(Object.assign({baseName:"number-field",template:xl,styles:Cl,shadowOptions:Pl},zl)),Bl=(e,t)=>l.css`
3323
3323
  :host {
3324
3324
  display: block;
3325
3325
  }
@@ -3350,19 +3350,19 @@
3350
3350
  <slot></slot>
3351
3351
  </div>
3352
3352
  </template>
3353
- `;class Gl extends a.ListboxOption{connectedCallback(){super.connectedCallback(),this.disabled=!0}}(0,C.Cg)([(0,l.attr)({attribute:"label"})],Gl.prototype,"groupLabel",void 0);const jl=Gl.compose({baseName:"optgroup",template:Vl,styles:Bl});var Yl=i(92277);var Wl=i(72154),ql=i.n(Wl),Kl=i(57565),Xl=i.n(Kl),Jl=i(13160),Ql=i(24669),Zl=i(5709),ed=i(45230);const td={windowEvents:["online","offline","pageshow"],documentEvents:["visibilitychange"],genesisConnectEvents:["stream","commit"],ignoredGenesisResources:[],startDelay:5e3,checkInterval:1e4,checkTimeout:3e3,resourceChecks:e=>(0,C.sH)(void 0,void 0,void 0,function*(){const t=(0,ui.tn)(),i=yield t.getMoreColumns(e),o=Date.now(),n=i;return{isConnected:i.MESSAGE_TYPE===li.Go.MORE_COLUMNS_ACK,lastUpdated:o,lastMessage:n}}),resourceDataLogon:({message:e,functions:t})=>{const{onMessage:i,onError:o}=t;(0,ed.Ol)().sendForStream(e,i,o)}},id=a.DI.createInterface(e=>e.instance(td)),od="system-health-changed";var nd;const sd=(0,it.createLogger)("network-monitor",{level:it.LogLevels.info}),ad=Date.now(),rd=(null===(nd=window.navigator)||void 0===nd?void 0:nd.userAgent)?ql().parse(window.navigator.userAgent):void 0,ld=(e,t={depthLimit:10,edgesLimit:10})=>e instanceof Event?`'${e.type}' Event`:"string"==typeof e?e:Xl()(e,void 0,2,t);class dd{constructor(){this.unsubscribableObservers=[],this.runAllChecks=(e,t)=>(0,C.sH)(this,void 0,void 0,function*(){if(!this.isReady||this.isRunningChecks&&!t)return;sd.info("Run health checks, triggered by",ld(e),"| Active resources",this.resources.size),this.isRunningChecks=!0,this.synchroniseCheckInterval();let i=this.getFormattedTimestamp(this.getNowTimestamp());const o=yield this.isOnlineCheck();o?sd.debug(`Network connected at ${i}`):sd.warn(`Network disconnected at ${i}`);const n=this.normaliseSerializedSocketStatus(this.socketStatus.serialize(),o),s=this.preFlightSocketChecks(n);if(s||sd.debug("Socket pre-flight checks failed"),!o||!s){sd.debug("Aborting remaining health checks");const e=[...this.resources].reduce((e,[t,i])=>{const n=e[i.resourceName];return n?(n.sourceRef=[...n.sourceRef,i.message.SOURCE_REF],e):Object.assign(Object.assign({},e),{[i.resourceName]:this.normaliseResourceHealth({name:i.resourceName,sourceRef:[i.message.SOURCE_REF],isConnected:i.isConnected,lastUpdated:i.lastUpdated},o)})},{});return this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:o,resources:e,resourcesAllConnected:!1,socket:n}),void(this.isRunningChecks=!1)}let a=!0;const r=[];this.resources.forEach((e,t)=>{const{resourceName:o,message:n,functions:s}=e,{resourceChecks:l=this.config.resourceChecks,resourceDataLogon:d=this.config.resourceDataLogon}=s,{SOURCE_REF:c}=n;let u,h,p,m,g,v=!1;r.push((()=>(0,C.sH)(this,void 0,void 0,function*(){var n,s,r;try{sd.debug(`Running health check against ${o}`);const e=yield Promise.race([l(c,t),(s=this.config.checkTimeout,r=()=>({isConnected:!1,lastUpdated:this.getNowTimestamp(),timeout:!0}),new Promise(e=>{setTimeout(()=>{e(r())},s)}))]);v=e.isConnected,u=e.lastUpdated,h=e.lastMessage,m=e.timeout}catch(e){v=!1,u=this.getNowTimestamp(),p=e,h=null!==(n=null==e?void 0:e.receivedMessage)&&void 0!==n?n:e}return g=(null==h?void 0:h.MESSAGE_TYPE)===li.Go.MSG_NACK||(0,li.z2)(h,Jl.v.NOT_FOUND),i=this.getFormattedTimestamp(null!=u?u:this.getNowTimestamp()),v?sd.debug(`${o} is healthy at ${i}`):sd.warn(`${o} is not healthy at ${i}`),h&&sd.debug(`${o} messaged at ${i}`,ld(h)),p&&sd.error(`${o} errored at ${i}`,ld(p)),m&&sd.warn(`${o} timed out at ${i}`),g&&(sd.error(`${o} issue, re-attempting data logon at ${i}`),d(e)),a&&(a=v),{name:o,sourceRef:[c],isConnected:v,lastUpdated:u,lastError:p}}))())});const l=(yield Promise.allSettled(r)).reduce((e,t)=>{if("fulfilled"===t.status){const i=e[t.value.name];return i?(i.sourceRef=[...i.sourceRef,...t.value.sourceRef],e):Object.assign(Object.assign({},e),{[t.value.name]:this.normaliseResourceHealth(t.value)})}return sd.warn("Unexpected promise rejection occurred. Please check any custom resourceChecks return MonitoredResourceChecksResult."),e},{});sd.debug("Health checks complete"),this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:o,resources:l,resourcesAllConnected:a,socket:n}),this.isRunningChecks=!1}),void 0!==this.config.logLevel&&(sd.level=this.config.logLevel)}create(){this.resources?sd.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:i,resourceName:o,stream:n}=e;this.config.ignoredGenesisResources.includes(o)||this.addResource(n,{functions:t,message:i,resourceName:o})},({detail:e})=>{const{resourceName:t,stream:i}=e;this.config.ignoredGenesisResources.includes(t)||this.removeResource(i)},({detail:e})=>{var t;const{resourceName:i,stream:o,error:n}=e,s=null!==(t=n.receivedMessage)&&void 0!==t?t:n;let a="";(0,li.z2)(s,Jl.v.NOT_FOUND)?a="Please check the resource is running.":(0,li.z2)(s,Jl.v.FORBIDDEN)&&(a="You are not authorised to access this resource, removing it from monitoring.",this.removeResource(o)),sd.error(`${i} errored at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,a,n)})),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:i}=e;i&&sd.error(`${t} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,"Please check the resource is running.",i)}))}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 i=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseEventDetail(e);(this.status.isHealthy?sd.debug:sd.warn)("Emitting 'system-health-changed' event",ld(this.status)),null==i||i.dispatchEvent(new CustomEvent(od,{detail:this.status,bubbles:i!==document,composed:!0})),this.status.socket.reconnectionLimitReached&&(sd.debug("Network monitoring no longer required. Please check your network and reload your application."),this.destroy())}reportStabilityToGenesis(e){return(0,C.sH)(this,void 0,void 0,function*(){return sd.debug("User requested report stability to Genesis."),sd.info("Please attach this data to your Genesis Support request: \n",JSON.stringify(e,null,2)),!0})}normaliseResourceHealth(e,t=!0){var i;const o=!!t&&e.isConnected,n=null!==(i=e.lastUpdated)&&void 0!==i?i:this.getNowTimestamp();return Object.assign(Object.assign({},e),{isConnected:o,lastUpdated:n})}normaliseSerializedSocketStatus(e,t=!0){const i=!!t&&e.isConnected,o=!i;return Object.assign(Object.assign({},e),{isConnected:i,isDisconnected:o})}normaliseEventDetail(e){var t,i,o,n;const s=!!((null===(t=e.socket)||void 0===t?void 0:t.isConfigured)?e.isOnline&&(null===(i=e.socket)||void 0===i?void 0:i.isConnected)&&e.resourcesAllConnected:e.isOnline),a=null!==(o=e.lastUpdated)&&void 0!==o?o:this.getNowTimestamp(),r=null!==(n=e.nextUpdate)&&void 0!==n?n:this.getNextTimestamp(),l=e.isAuthenticated&&this.user?this.user.username:void 0,d=Object.assign(Object.assign({},e),{browserInformation:rd,username:l,isHealthy:s,lastUpdated:a,nextUpdate:r,firstUpdated:ad,runAllChecks:()=>{sd.debug("User activated run checks command starting."),this.runAllChecks("user requested")},reportStabilityToGenesis:()=>this.reportStabilityToGenesis(d)});return d}preFlightSocketChecks(e){if(!e.isConfigured)return sd.debug("Socket not configured"),!1;if(e.isReconnecting)return sd.debug("Socket reconnecting"),!1;if(e.isConnecting)return sd.debug("Socket connecting"),!1;if(e.isDisconnected){const t=e.isDisconnectedByServer?`by the server, code: ${e.closedCode}, reason: ${e.closedReason}`:"";return sd.debug(`Socket disconnected ${t}`),e.reconnectionLimitReached&&sd.debug("Socket reconnection limit reached"),!1}const t=this.user.isAuthenticated?"with":"without";return sd.debug(`Socket connected ${t} valid session`),!0}getFormattedTimestamp(e){return(0,pi.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,C.Cg)([id],dd.prototype,"config",void 0),(0,C.Cg)([Zl.S5],dd.prototype,"socketStatus",void 0),(0,C.Cg)([Ql.a4],dd.prototype,"connectEvents",void 0),(0,C.Cg)([Yl.KJ],dd.prototype,"user",void 0),(0,C.Cg)([l.observable],dd.prototype,"status",void 0);const cd=a.DI.createInterface(e=>e.singleton(dd));var ud=i(6526);const hd=(e,t)=>l.css`
3353
+ `;class Gl extends s.ListboxOption{connectedCallback(){super.connectedCallback(),this.disabled=!0}}(0,C.Cg)([(0,l.attr)({attribute:"label"})],Gl.prototype,"groupLabel",void 0);const jl=Gl.compose({baseName:"optgroup",template:Vl,styles:Bl});var Yl=i(92277);var Wl=i(72154),ql=i.n(Wl),Kl=i(57565),Xl=i.n(Kl),Jl=i(13160),Ql=i(24669),Zl=i(5709),ed=i(45230);const td={windowEvents:["online","offline","pageshow"],documentEvents:["visibilitychange"],genesisConnectEvents:["stream","commit"],ignoredGenesisResources:[],startDelay:5e3,checkInterval:1e4,checkTimeout:3e3,resourceChecks:e=>(0,C.sH)(void 0,void 0,void 0,function*(){const t=(0,ui.tn)(),i=yield t.getMoreColumns(e),o=Date.now(),n=i;return{isConnected:i.MESSAGE_TYPE===li.Go.MORE_COLUMNS_ACK,lastUpdated:o,lastMessage:n}}),resourceDataLogon:({message:e,functions:t})=>{const{onMessage:i,onError:o}=t;(0,ed.Ol)().sendForStream(e,i,o)}},id=s.DI.createInterface(e=>e.instance(td)),od="system-health-changed";var nd;const ad=(0,it.createLogger)("network-monitor",{level:it.LogLevels.info}),sd=Date.now(),rd=(null===(nd=window.navigator)||void 0===nd?void 0:nd.userAgent)?ql().parse(window.navigator.userAgent):void 0,ld=(e,t={depthLimit:10,edgesLimit:10})=>e instanceof Event?`'${e.type}' Event`:"string"==typeof e?e:Xl()(e,void 0,2,t);class dd{constructor(){this.unsubscribableObservers=[],this.runAllChecks=(e,t)=>(0,C.sH)(this,void 0,void 0,function*(){if(!this.isReady||this.isRunningChecks&&!t)return;ad.info("Run health checks, triggered by",ld(e),"| Active resources",this.resources.size),this.isRunningChecks=!0,this.synchroniseCheckInterval();let i=this.getFormattedTimestamp(this.getNowTimestamp());const o=yield this.isOnlineCheck();o?ad.debug(`Network connected at ${i}`):ad.warn(`Network disconnected at ${i}`);const n=this.normaliseSerializedSocketStatus(this.socketStatus.serialize(),o),a=this.preFlightSocketChecks(n);if(a||ad.debug("Socket pre-flight checks failed"),!o||!a){ad.debug("Aborting remaining health checks");const e=[...this.resources].reduce((e,[t,i])=>{const n=e[i.resourceName];return n?(n.sourceRef=[...n.sourceRef,i.message.SOURCE_REF],e):Object.assign(Object.assign({},e),{[i.resourceName]:this.normaliseResourceHealth({name:i.resourceName,sourceRef:[i.message.SOURCE_REF],isConnected:i.isConnected,lastUpdated:i.lastUpdated},o)})},{});return this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:o,resources:e,resourcesAllConnected:!1,socket:n}),void(this.isRunningChecks=!1)}let s=!0;const r=[];this.resources.forEach((e,t)=>{const{resourceName:o,message:n,functions:a}=e,{resourceChecks:l=this.config.resourceChecks,resourceDataLogon:d=this.config.resourceDataLogon}=a,{SOURCE_REF:c}=n;let u,h,p,m,v,g=!1;r.push((()=>(0,C.sH)(this,void 0,void 0,function*(){var n,a,r;try{ad.debug(`Running health check against ${o}`);const e=yield Promise.race([l(c,t),(a=this.config.checkTimeout,r=()=>({isConnected:!1,lastUpdated:this.getNowTimestamp(),timeout:!0}),new Promise(e=>{setTimeout(()=>{e(r())},a)}))]);g=e.isConnected,u=e.lastUpdated,h=e.lastMessage,m=e.timeout}catch(e){g=!1,u=this.getNowTimestamp(),p=e,h=null!==(n=null==e?void 0:e.receivedMessage)&&void 0!==n?n:e}return v=(null==h?void 0:h.MESSAGE_TYPE)===li.Go.MSG_NACK||(0,li.z2)(h,Jl.v.NOT_FOUND),i=this.getFormattedTimestamp(null!=u?u:this.getNowTimestamp()),g?ad.debug(`${o} is healthy at ${i}`):ad.warn(`${o} is not healthy at ${i}`),h&&ad.debug(`${o} messaged at ${i}`,ld(h)),p&&ad.error(`${o} errored at ${i}`,ld(p)),m&&ad.warn(`${o} timed out at ${i}`),v&&(ad.error(`${o} issue, re-attempting data logon at ${i}`),d(e)),s&&(s=g),{name:o,sourceRef:[c],isConnected:g,lastUpdated:u,lastError:p}}))())});const l=(yield Promise.allSettled(r)).reduce((e,t)=>{if("fulfilled"===t.status){const i=e[t.value.name];return i?(i.sourceRef=[...i.sourceRef,...t.value.sourceRef],e):Object.assign(Object.assign({},e),{[t.value.name]:this.normaliseResourceHealth(t.value)})}return ad.warn("Unexpected promise rejection occurred. Please check any custom resourceChecks return MonitoredResourceChecksResult."),e},{});ad.debug("Health checks complete"),this.reportSystemHealth({isAuthenticated:this.user.isAuthenticated,isOnline:o,resources:l,resourcesAllConnected:s,socket:n}),this.isRunningChecks=!1}),void 0!==this.config.logLevel&&(ad.level=this.config.logLevel)}create(){this.resources?ad.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:i,resourceName:o,stream:n}=e;this.config.ignoredGenesisResources.includes(o)||this.addResource(n,{functions:t,message:i,resourceName:o})},({detail:e})=>{const{resourceName:t,stream:i}=e;this.config.ignoredGenesisResources.includes(t)||this.removeResource(i)},({detail:e})=>{var t;const{resourceName:i,stream:o,error:n}=e,a=null!==(t=n.receivedMessage)&&void 0!==t?t:n;let s="";(0,li.z2)(a,Jl.v.NOT_FOUND)?s="Please check the resource is running.":(0,li.z2)(a,Jl.v.FORBIDDEN)&&(s="You are not authorised to access this resource, removing it from monitoring.",this.removeResource(o)),ad.error(`${i} errored at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,s,n)})),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:i}=e;i&&ad.error(`${t} had an unrecoverable error at ${this.getFormattedTimestamp(this.getNowTimestamp())}.`,"Please check the resource is running.",i)}))}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 i=null!==(t=this.config.eventEmitter)&&void 0!==t?t:document;this.status=this.normaliseEventDetail(e);(this.status.isHealthy?ad.debug:ad.warn)("Emitting 'system-health-changed' event",ld(this.status)),null==i||i.dispatchEvent(new CustomEvent(od,{detail:this.status,bubbles:i!==document,composed:!0})),this.status.socket.reconnectionLimitReached&&(ad.debug("Network monitoring no longer required. Please check your network and reload your application."),this.destroy())}reportStabilityToGenesis(e){return(0,C.sH)(this,void 0,void 0,function*(){return ad.debug("User requested report stability to Genesis."),ad.info("Please attach this data to your Genesis Support request: \n",JSON.stringify(e,null,2)),!0})}normaliseResourceHealth(e,t=!0){var i;const o=!!t&&e.isConnected,n=null!==(i=e.lastUpdated)&&void 0!==i?i:this.getNowTimestamp();return Object.assign(Object.assign({},e),{isConnected:o,lastUpdated:n})}normaliseSerializedSocketStatus(e,t=!0){const i=!!t&&e.isConnected,o=!i;return Object.assign(Object.assign({},e),{isConnected:i,isDisconnected:o})}normaliseEventDetail(e){var t,i,o,n;const a=!!((null===(t=e.socket)||void 0===t?void 0:t.isConfigured)?e.isOnline&&(null===(i=e.socket)||void 0===i?void 0:i.isConnected)&&e.resourcesAllConnected:e.isOnline),s=null!==(o=e.lastUpdated)&&void 0!==o?o:this.getNowTimestamp(),r=null!==(n=e.nextUpdate)&&void 0!==n?n:this.getNextTimestamp(),l=e.isAuthenticated&&this.user?this.user.username:void 0,d=Object.assign(Object.assign({},e),{browserInformation:rd,username:l,isHealthy:a,lastUpdated:s,nextUpdate:r,firstUpdated:sd,runAllChecks:()=>{ad.debug("User activated run checks command starting."),this.runAllChecks("user requested")},reportStabilityToGenesis:()=>this.reportStabilityToGenesis(d)});return d}preFlightSocketChecks(e){if(!e.isConfigured)return ad.debug("Socket not configured"),!1;if(e.isReconnecting)return ad.debug("Socket reconnecting"),!1;if(e.isConnecting)return ad.debug("Socket connecting"),!1;if(e.isDisconnected){const t=e.isDisconnectedByServer?`by the server, code: ${e.closedCode}, reason: ${e.closedReason}`:"";return ad.debug(`Socket disconnected ${t}`),e.reconnectionLimitReached&&ad.debug("Socket reconnection limit reached"),!1}const t=this.user.isAuthenticated?"with":"without";return ad.debug(`Socket connected ${t} valid session`),!0}getFormattedTimestamp(e){return(0,pi.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,C.Cg)([id],dd.prototype,"config",void 0),(0,C.Cg)([Zl.S5],dd.prototype,"socketStatus",void 0),(0,C.Cg)([Ql.a4],dd.prototype,"connectEvents",void 0),(0,C.Cg)([Yl.KJ],dd.prototype,"user",void 0),(0,C.Cg)([l.observable],dd.prototype,"status",void 0);const cd=s.DI.createInterface(e=>e.singleton(dd));var ud=i(6526);const hd=(e,t)=>l.css`
3354
3354
  ${(0,r.progressStyles)(e,t)}
3355
3355
  :host {
3356
3356
  height: calc(var(--design-unit) * 2px);
3357
3357
  }
3358
- `,pd=(e,t)=>(0,a.progressTemplate)(e,t);class md extends r.Progress{}const gd=void 0,vd={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},fd=md.compose(Object.assign({baseName:"progress",template:pd,styles:hd,shadowOptions:gd},vd));function bd(e){return new Proxy(e,{get:(e,t,...i)=>{if(["withPrefix","withShadowRootMode","withElementDisambiguation"].includes(t))throw new Error("Modification of the Design System is not allowed.");return Reflect.get(e,t,...i)}})}const yd=(e,t="foundation",i,s)=>{e&&Jo(null!=i?i:o,null!=s?s:n,e);return bd(a.DesignSystem.getOrCreate(e).withPrefix(t))},wd="app",Cd="component";yd().register(fd({prefix:"next-update"}));class xd extends a.FoundationElement{constructor(){super(...arguments),this.timeTillNextUpdate={totalMs:1e4,remainMs:1e4,remainPercent:100},this.mode=wd,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 ud.Is.ArrowUp:e.ctrlKey&&e.altKey&&!this.isOpen&&(this.onOpen(!0),e.preventDefault());break;case ud.Is.ArrowDown:e.ctrlKey&&e.altKey&&this.isOpen&&(this.onClose(),e.preventDefault());break;case ud.F9:this.isOpen&&(this.onDismiss(),e.preventDefault())}}}isOpenChanged(){this.updateTemplateClassNames()}isDismissedChanged(){this.updateTemplateClassNames()}modeChanged(){this.$fastController.isConnected&&this.mode===Cd&&ot.warn("SystemHealthOverlay has support for app overlays only right now.")}logLevelChanged(){sd.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,x.x)(["healthy",this.status.isOnline],["unhealthy",!this.status.isOnline]),this.isHealthyClassNames=(0,x.x)(["healthy",this.status.isHealthy],["unhealthy",!this.status.isHealthy]),this.isSocketHealthyClassNames=(0,x.x)(["healthy",this.isSocketHealthy],["unhealthy",!this.isSocketHealthy]),this.resourcesAllConnectedClassNames=(0,x.x)(["healthy",this.status.resourcesAllConnected],["unhealthy",!this.status.resourcesAllConnected],["hidden",!this.validResourceList]),this.updateTemplateClassNames()}updateTemplateClassNames(){this.templateClassNames=(0,x.x)(["open",this.isOpen],["dismissed",this.isDismissed]),this.containerClassNames=(0,x.x)(this.isHealthyClassNames,["open",this.isOpen],["dismissed",this.isDismissed])}startTimeTillNextUpdateCountdown(){const e=this.status.nextUpdate-Date.now();let t=e,i=100;clearInterval(this.timeTillNextUpdateInterval),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:i},this.timeTillNextUpdateInterval=setInterval(()=>{t-=1e3,i=Math.floor(t/e*100),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:i},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(od,this.onSystemHealthChanged,!0),document.addEventListener("keydown",this.onDocumentKeydown)}removeEventListeners(){this.eventBridge().removeEventListener(od,this.onSystemHealthChanged,!0),document.removeEventListener("keydown",this.onDocumentKeydown)}static getCheckmarkTemplate(e){return e?l.html`
3358
+ `,pd=(e,t)=>(0,s.progressTemplate)(e,t);class md extends r.Progress{}const vd=void 0,gd={indeterminateIndicator1:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>',indeterminateIndicator2:'<span class="indeterminate-indicator-1" part="indeterminate-indicator-1"></span>'},fd=md.compose(Object.assign({baseName:"progress",template:pd,styles:hd,shadowOptions:vd},gd));function bd(e){return new Proxy(e,{get:(e,t,...i)=>{if(["withPrefix","withShadowRootMode","withElementDisambiguation"].includes(t))throw new Error("Modification of the Design System is not allowed.");return Reflect.get(e,t,...i)}})}const yd=(e,t="foundation",i,a)=>{e&&Jo(null!=i?i:o,null!=a?a:n,e);return bd(s.DesignSystem.getOrCreate(e).withPrefix(t))},wd="app",Cd="component";yd().register(fd({prefix:"next-update"}));class xd extends s.FoundationElement{constructor(){super(...arguments),this.timeTillNextUpdate={totalMs:1e4,remainMs:1e4,remainPercent:100},this.mode=wd,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 ud.Is.ArrowUp:e.ctrlKey&&e.altKey&&!this.isOpen&&(this.onOpen(!0),e.preventDefault());break;case ud.Is.ArrowDown:e.ctrlKey&&e.altKey&&this.isOpen&&(this.onClose(),e.preventDefault());break;case ud.F9:this.isOpen&&(this.onDismiss(),e.preventDefault())}}}isOpenChanged(){this.updateTemplateClassNames()}isDismissedChanged(){this.updateTemplateClassNames()}modeChanged(){this.$fastController.isConnected&&this.mode===Cd&&ot.warn("SystemHealthOverlay has support for app overlays only right now.")}logLevelChanged(){ad.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,x.x)(["healthy",this.status.isOnline],["unhealthy",!this.status.isOnline]),this.isHealthyClassNames=(0,x.x)(["healthy",this.status.isHealthy],["unhealthy",!this.status.isHealthy]),this.isSocketHealthyClassNames=(0,x.x)(["healthy",this.isSocketHealthy],["unhealthy",!this.isSocketHealthy]),this.resourcesAllConnectedClassNames=(0,x.x)(["healthy",this.status.resourcesAllConnected],["unhealthy",!this.status.resourcesAllConnected],["hidden",!this.validResourceList]),this.updateTemplateClassNames()}updateTemplateClassNames(){this.templateClassNames=(0,x.x)(["open",this.isOpen],["dismissed",this.isDismissed]),this.containerClassNames=(0,x.x)(this.isHealthyClassNames,["open",this.isOpen],["dismissed",this.isDismissed])}startTimeTillNextUpdateCountdown(){const e=this.status.nextUpdate-Date.now();let t=e,i=100;clearInterval(this.timeTillNextUpdateInterval),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:i},this.timeTillNextUpdateInterval=setInterval(()=>{t-=1e3,i=Math.floor(t/e*100),this.timeTillNextUpdate={totalMs:e,remainMs:t,remainPercent:i},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(od,this.onSystemHealthChanged,!0),document.addEventListener("keydown",this.onDocumentKeydown)}removeEventListeners(){this.eventBridge().removeEventListener(od,this.onSystemHealthChanged,!0),document.removeEventListener("keydown",this.onDocumentKeydown)}static getCheckmarkTemplate(e){return e?l.html`
3359
3359
  <span class="checkmark">&#x2714;</span>
3360
3360
  `:l.html`
3361
3361
  <span class="checkmark">&#10008;</span>
3362
3362
  `}}(0,C.Cg)([id],xd.prototype,"config",void 0),(0,C.Cg)([cd],xd.prototype,"networkMonitor",void 0),(0,C.Cg)([l.observable],xd.prototype,"resourceList",void 0),(0,C.Cg)([l.observable],xd.prototype,"isOpen",void 0),(0,C.Cg)([l.observable],xd.prototype,"wasOpenedByUser",void 0),(0,C.Cg)([l.observable],xd.prototype,"isDismissed",void 0),(0,C.Cg)([l.observable],xd.prototype,"templateClassNames",void 0),(0,C.Cg)([l.observable],xd.prototype,"containerClassNames",void 0),(0,C.Cg)([l.observable],xd.prototype,"isOnlineClassNames",void 0),(0,C.Cg)([l.observable],xd.prototype,"isHealthyClassNames",void 0),(0,C.Cg)([l.observable],xd.prototype,"isSocketHealthyClassNames",void 0),(0,C.Cg)([l.observable],xd.prototype,"resourcesAllConnectedClassNames",void 0),(0,C.Cg)([l.observable],xd.prototype,"timeTillNextUpdate",void 0),(0,C.Cg)([l.observable],xd.prototype,"saveDataCallback",void 0),(0,C.Cg)([l.attr],xd.prototype,"mode",void 0),(0,C.Cg)([(0,l.attr)({attribute:"log-level",converter:l.nullableNumberConverter})],xd.prototype,"logLevel",void 0),(0,C.Cg)([l.observable],xd.prototype,"status",void 0);const $d=(e,t)=>l.html`
3363
3363
  <template class="${e=>e.templateClassNames}">
3364
3364
  <header class="${e=>e.isHealthyClassNames}" part="header">
3365
- <h1>System ${e=>(0,ba.fL)(e.isHealthyClassNames)}</h1>
3365
+ <h1>System ${e=>(0,bs.fL)(e.isHealthyClassNames)}</h1>
3366
3366
  ${(0,l.when)(e=>!e.status.isHealthy,l.html`
3367
3367
  <span class="data-warning">Data Validity Unknown</span>
3368
3368
  `)}
@@ -3391,7 +3391,7 @@
3391
3391
  </header>
3392
3392
  <div class="container ${e=>e.containerClassNames}" part="container">
3393
3393
  <section class="network-section ${e=>e.isOnlineClassNames}" part="network-section">
3394
- <h2>Network ${e=>(0,ba.fL)(e.status.isOnline?"online":"offline")}</h2>
3394
+ <h2>Network ${e=>(0,bs.fL)(e.status.isOnline?"online":"offline")}</h2>
3395
3395
  <dl class="resource-list">
3396
3396
  <div class="resource ${e=>e.isOnlineClassNames}">
3397
3397
  <div class="attributes">
@@ -3411,11 +3411,11 @@
3411
3411
  `)}
3412
3412
  <div class="platform-type">
3413
3413
  <dt>Platform Type</dt>
3414
- <dd>${e=>{var t;return(0,ba.fL)(null===(t=e.status.browserInformation.platform)||void 0===t?void 0:t.type)}}</dd>
3414
+ <dd>${e=>{var t;return(0,bs.fL)(null===(t=e.status.browserInformation.platform)||void 0===t?void 0:t.type)}}</dd>
3415
3415
  </div>
3416
3416
  <div class="os-name">
3417
3417
  <dt>OS Name</dt>
3418
- <dd>${e=>{var t;return(0,ba.fL)(null===(t=e.status.browserInformation.os)||void 0===t?void 0:t.name)}}</dd>
3418
+ <dd>${e=>{var t;return(0,bs.fL)(null===(t=e.status.browserInformation.os)||void 0===t?void 0:t.name)}}</dd>
3419
3419
  </div>
3420
3420
  <div class="os-version">
3421
3421
  <dt>OS Version</dt>
@@ -3425,7 +3425,7 @@
3425
3425
  <div class="attributes">
3426
3426
  <div class="browser-name">
3427
3427
  <dt>Browser Name</dt>
3428
- <dd>${e=>{var t;return(0,ba.fL)(null===(t=e.status.browserInformation.browser)||void 0===t?void 0:t.name)}}</dd>
3428
+ <dd>${e=>{var t;return(0,bs.fL)(null===(t=e.status.browserInformation.browser)||void 0===t?void 0:t.name)}}</dd>
3429
3429
  </div>
3430
3430
  <div class="browser-version">
3431
3431
  <dt>Browser Version</dt>
@@ -3461,7 +3461,7 @@
3461
3461
  </dl>
3462
3462
  </section>
3463
3463
  <section class="socket-section ${e=>e.isSocketHealthyClassNames}" part="socket-section">
3464
- <h2>WebSocket ${e=>(0,ba.fL)(e.isSocketHealthyClassNames)}</h2>
3464
+ <h2>WebSocket ${e=>(0,bs.fL)(e.isSocketHealthyClassNames)}</h2>
3465
3465
  <dl class="resource-list">
3466
3466
  <div class="resource ${e=>e.isSocketHealthyClassNames}">
3467
3467
  <div class="attributes">
@@ -3510,7 +3510,7 @@
3510
3510
  class="resource-section ${e=>e.resourcesAllConnectedClassNames}"
3511
3511
  part="resource-section"
3512
3512
  >
3513
- <h2>Resources ${e=>(0,ba.fL)(e.resourcesAllConnectedClassNames)}</h2>
3513
+ <h2>Resources ${e=>(0,bs.fL)(e.resourcesAllConnectedClassNames)}</h2>
3514
3514
  <dl class="resource-list">
3515
3515
  ${(0,l.repeat)(e=>e.resourceList,l.html`
3516
3516
  <div class="resource ${e=>e.isConnected?"healthy":"unhealthy"}">
@@ -3816,7 +3816,121 @@
3816
3816
  padding: 0.2em 0.5em;
3817
3817
  background-color: var(--color-unhealthy-opacity-20);
3818
3818
  }
3819
- `,Ed=void 0,Od={},Td=xd.compose(Object.assign({baseName:"system-health-overlay",template:$d,styles:Sd,shadowOptions:Ed},Od));var kd=i(4934);const Dd={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class Id extends a.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,kd.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,C.Cg)([l.attr],Id.prototype,"selector",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Id.prototype,"show",void 0),(0,C.Cg)([l.attr],Id.prototype,"event",void 0),(0,C.Cg)([l.attr],Id.prototype,"placement",void 0),(0,C.Cg)([(0,l.attr)({converter:Dd})],Id.prototype,"offset",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Id.prototype,"flip",void 0);const Rd=l.css`
3819
+ `,Ed=void 0,Od={},Td=xd.compose(Object.assign({baseName:"system-health-overlay",template:$d,styles:Sd,shadowOptions:Ed},Od)),kd=l.css`
3820
+ :host {
3821
+ --pill-fill: var(--neutral-fill-rest, #e5e5e5);
3822
+ --pill-fill-hover: var(--neutral-fill-hover, #d9d9d9);
3823
+ --pill-foreground: var(--neutral-foreground-rest, #1a1a1a);
3824
+ --pill-border-radius: 12px;
3825
+
3826
+ display: inline-flex;
3827
+ }
3828
+
3829
+ .pill {
3830
+ display: inline-flex;
3831
+ align-items: center;
3832
+ gap: 4px;
3833
+ height: 24px;
3834
+ padding: 0 4px 0 10px;
3835
+ border-radius: var(--pill-border-radius);
3836
+ background: var(--pill-fill);
3837
+ color: var(--pill-foreground);
3838
+ font-size: 12px;
3839
+ line-height: 1;
3840
+ }
3841
+
3842
+ .pill[disabled] {
3843
+ opacity: 50%;
3844
+ }
3845
+
3846
+ .pill-body {
3847
+ display: inline-flex;
3848
+ align-items: center;
3849
+ gap: 4px;
3850
+ border: none;
3851
+ background: transparent;
3852
+ color: inherit;
3853
+ font: inherit;
3854
+ padding: 0;
3855
+ cursor: pointer;
3856
+ }
3857
+
3858
+ .pill-body:disabled {
3859
+ cursor: not-allowed;
3860
+ }
3861
+
3862
+ .pill-body:hover:not(:disabled) {
3863
+ background: var(--pill-fill-hover);
3864
+ border-radius: var(--pill-border-radius);
3865
+ }
3866
+
3867
+ .pill-label {
3868
+ font-weight: 600;
3869
+ white-space: nowrap;
3870
+ }
3871
+
3872
+ .pill-value {
3873
+ white-space: nowrap;
3874
+ }
3875
+
3876
+ .pill-remove {
3877
+ display: inline-flex;
3878
+ align-items: center;
3879
+ justify-content: center;
3880
+ width: 16px;
3881
+ height: 16px;
3882
+ border: none;
3883
+ border-radius: 50%;
3884
+ background: transparent;
3885
+ color: inherit;
3886
+ cursor: pointer;
3887
+ padding: 0;
3888
+ }
3889
+
3890
+ .pill-remove:disabled {
3891
+ cursor: not-allowed;
3892
+ }
3893
+
3894
+ .pill-remove:hover:not(:disabled) {
3895
+ background: var(--pill-fill-hover);
3896
+ }
3897
+ `,Dd=e=>l.html`
3898
+ <div class="pill" part="pill" ?disabled=${e=>e.disabled}>
3899
+ <button
3900
+ class="pill-body"
3901
+ part="pill-body"
3902
+ type="button"
3903
+ data-test-id="pill-body"
3904
+ ?disabled=${e=>e.disabled}
3905
+ @click=${e=>e.handleBodyClick()}
3906
+ >
3907
+ <span class="pill-label" part="pill-label" data-test-id="pill-label">
3908
+ ${e=>e.label}${e=>e.value?":":""}
3909
+ </span>
3910
+ ${(0,l.when)(e=>e.value,l.html`
3911
+ <span class="pill-value" part="pill-value" data-test-id="pill-value">
3912
+ ${e=>e.value}
3913
+ </span>
3914
+ `)}
3915
+ <slot></slot>
3916
+ </button>
3917
+ ${(0,l.when)(e=>e.removable,l.html`
3918
+ <button
3919
+ class="pill-remove"
3920
+ part="pill-remove"
3921
+ type="button"
3922
+ data-test-id="pill-remove"
3923
+ aria-label="${e=>(e=>{const t=[e.label,e.value].filter(Boolean).join(": ");return t?`Remove ${t}`:"Remove"})(e)}"
3924
+ ?disabled=${e=>e.disabled}
3925
+ @click=${(e,t)=>e.handleRemoveClick(t.event)}
3926
+ >
3927
+ <${e}-icon name="xmark" size="2xs"></${e}-icon>
3928
+ </button>
3929
+ `)}
3930
+ </div>
3931
+ `,Id=l.html`
3932
+ ${e=>Dd(T(e))}
3933
+ `,Rd=void 0,Ad={};class Ld extends s.FoundationElement{constructor(){super(...arguments),this.removable=!0,this.disabled=!1}handleBodyClick(){this.disabled||this.$emit("pill-click")}handleRemoveClick(e){null==e||e.stopPropagation(),this.disabled||this.$emit("remove")}}(0,C.Cg)([l.attr],Ld.prototype,"label",void 0),(0,C.Cg)([l.attr],Ld.prototype,"value",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Ld.prototype,"removable",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Ld.prototype,"disabled",void 0);const Nd=Ld.compose(Object.assign({baseName:"pill",template:Id,styles:kd,shadowOptions:Rd},Ad));var Fd=i(4934);const Md={toView:e=>JSON.stringify(e),fromView:e=>null==e?e:JSON.parse(e)};class _d extends s.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,Fd.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,C.Cg)([l.attr],_d.prototype,"selector",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],_d.prototype,"show",void 0),(0,C.Cg)([l.attr],_d.prototype,"event",void 0),(0,C.Cg)([l.attr],_d.prototype,"placement",void 0),(0,C.Cg)([(0,l.attr)({converter:Md})],_d.prototype,"offset",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],_d.prototype,"flip",void 0);const Hd=l.css`
3820
3934
  :host {
3821
3935
  display: none;
3822
3936
  inset: unset !important;
@@ -3826,24 +3940,24 @@
3826
3940
  :host([show]) {
3827
3941
  display: block;
3828
3942
  }
3829
- `,Ad=l.html`
3943
+ `,Pd=l.html`
3830
3944
  <template>
3831
3945
  <slot></slot>
3832
3946
  </template>
3833
- `,Ld=Id.compose({baseName:"popper",styles:Rd,template:Ad}),Nd=(e,t)=>l.css`
3947
+ `,zd=_d.compose({baseName:"popper",styles:Hd,template:Pd}),Ud=(e,t)=>l.css`
3834
3948
  ${(0,r.progressRingStyles)(e,t)}
3835
- `,Fd=(e,t)=>(0,a.progressRingTemplate)(e,t);class Md extends r.Progress{}const _d=void 0,Hd={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 '},Pd=Md.compose(Object.assign({baseName:"progress-ring",template:Fd,styles:Nd,shadowOptions:_d},Hd)),zd=(e,t)=>l.css`
3949
+ `,Bd=(e,t)=>(0,s.progressRingTemplate)(e,t);class Vd extends r.Progress{}const Gd=void 0,jd={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 '},Yd=Vd.compose(Object.assign({baseName:"progress-ring",template:Bd,styles:Ud,shadowOptions:Gd},jd)),Wd=(e,t)=>l.css`
3836
3950
  ${(0,r.radioStyles)(e,t)}
3837
- `,Ud=(e,t)=>(0,a.radioTemplate)(e,t);class Bd extends r.Radio{}const Vd=void 0,Gd={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},jd=Bd.compose(Object.assign({baseName:"radio",template:Ud,styles:zd,shadowOptions:Vd},Gd)),Yd=(e,t)=>l.css`
3951
+ `,qd=(e,t)=>(0,s.radioTemplate)(e,t);class Kd extends r.Radio{}const Xd=void 0,Jd={checkedIndicator:'\n <div part="checked-indicator" class="checked-indicator"></div>\n '},Qd=Kd.compose(Object.assign({baseName:"radio",template:qd,styles:Wd,shadowOptions:Xd},Jd)),Zd=(e,t)=>l.css`
3838
3952
  ${(0,r.radioGroupStyles)(e,t)}
3839
- `,Wd=(e,t)=>(0,a.radioGroupTemplate)(e,t);class qd extends r.RadioGroup{}const Kd=void 0,Xd={},Jd=qd.compose(Object.assign({baseName:"radio-group",template:Wd,styles:Yd,shadowOptions:Kd},Xd)),Qd=l.css`
3953
+ `,ec=(e,t)=>(0,s.radioGroupTemplate)(e,t);class tc extends r.RadioGroup{}const ic=void 0,oc={},nc=tc.compose(Object.assign({baseName:"radio-group",template:ec,styles:Zd,shadowOptions:ic},oc)),ac=l.css`
3840
3954
  /* Host */
3841
3955
  :host {
3842
3956
  display: flex;
3843
3957
  flex-direction: column;
3844
3958
  width: 100%;
3845
3959
  }
3846
- `,Zd=e=>l.html`
3960
+ `,sc=e=>l.html`
3847
3961
  <template>
3848
3962
  <${e}-scheduler-timezone
3849
3963
  :timezone=${(0,U.O)(e=>e.timezone)}
@@ -3856,9 +3970,9 @@
3856
3970
  ?disable-tooltips=${e=>e.disableTooltips}
3857
3971
  ></${e}-scheduler-cron-builder>
3858
3972
  </template>
3859
- `,ec=l.html`
3860
- ${e=>Zd(T(e))}
3861
- `;class tc extends a.FoundationElement{constructor(){super(...arguments),this.disableTooltips=!1,this.timezone="",this.cron=""}cronConfigChanged(){var e,t;this.timezone=(null===(e=this.cronConfig)||void 0===e?void 0:e.timezone)||"",this.cron=(null===(t=this.cronConfig)||void 0===t?void 0:t.cronExpression)||""}handleChange(e,t){e.stopPropagation();const{value:i}=e.target;this.cronConfig=Object.assign(Object.assign({},this.cronConfig),{[t]:i}),this.$emit("change",this.cronConfig)}}(0,C.Cg)([(0,l.attr)({attribute:"min-minute-interval"})],tc.prototype,"minMinuteInterval",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"disable-tooltips"})],tc.prototype,"disableTooltips",void 0),(0,C.Cg)([l.observable],tc.prototype,"timezone",void 0),(0,C.Cg)([l.observable],tc.prototype,"cron",void 0),(0,C.Cg)([l.observable],tc.prototype,"cronConfig",void 0);const ic=void 0,oc={},nc=tc.compose(Object.assign({baseName:"scheduler",styles:Qd,template:ec,shadowOptions:ic},oc)),sc=(e,t,i)=>{if(!e.title)throw new Error("Title is required");if(!e.body)throw new Error("Missing required param 'body'");let o={title:e.title,body:e.body,iconName:e.iconName},n={};e.createdAt&&(o=Object.assign({createdAt:e.createdAt},o)),null!=e.logLevel&&(o=Object.assign({logLevel:e.logLevel},o)),e.toast&&(n=Object.assign({toast:e.toast},n),o=Object.assign({config:n},o)),ye(o,t,i)};var ac,rc,lc;!function(e){e.MINUTES="Minutes",e.HOURLY="Hourly",e.DAILY="Daily",e.WEEKLY="Weekly",e.MONTHLY="Monthly",e.YEARLY="Yearly"}(ac||(ac={})),function(e){e.WEEK="Week",e.WORK_WEEK="Work week"}(rc||(rc={})),function(e){e.DATE="Date",e.DAY_OF_MONTH="Day of month"}(lc||(lc={}));const dc=[{value:"2",label:"Monday"},{value:"3",label:"Tuesday"},{value:"4",label:"Wednesday"},{value:"5",label:"Thursday"},{value:"6",label:"Friday"},{value:"7",label:"Saturday"},{value:"1",label:"Sunday"}],cc=[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"},{value:"4",label:"Fourth"},{value:"-1",label:"Last"}],uc=[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],hc=12,pc=31,mc=6,gc=7,vc=24,fc=60,bc=4,yc=30;var wc;!function(e){e.updateCronConfig="update-cron-config"}(wc||(wc={}));const Cc=e=>Number(e)>1?`/${e}`:"";const xc=(e,t,i)=>{const o=Number(e);return!isNaN(o)&&o<=i&&o>=t};function $c(e,t,i,o=!1,n=xc){if("*"===e)return!0;if(o&&("?"===e||"L"===e))return!0;if(o&&e.endsWith("L"))return n(e.slice(0,-1),t,i);if(e.startsWith("*/"))return n(e.substring(2),1,i);if(e.startsWith("0/"))return n(e.substring(2),1,i);if(o&&e.includes("#")){const[o,s]=e.split("#");return n(o,t,i)&&n(s,1,bc)}if(n(e,t,i))return!0;if(e.includes("-")){const[o,s]=e.split("-");return n(o,t,i)&&n(s,t,i)}return!!e.includes(",")&&e.split(",").every(e=>$c(e,t,i,o,n))}function Sc(e,t){return{type:ac.DAILY,frequency:e.startsWith("*/")?e.split("*/")[1]:"1",weekType:"?"===t?rc.WEEK:rc.WORK_WEEK}}function Ec(e){const t=e.includes("/");return{type:ac.HOURLY,frequency:t?e.split("/")[1]:"1",during:t?"every_hour":"specific_hours",hours:t?void 0:e}}function Oc(e,t="*"){const i="*"!==t&&"0/1"!==t;return{type:ac.MINUTES,frequency:e.includes("/")?e.split("/")[1]:"1",during:i?"specific_hours":"every_hour",hours:i?t:void 0}}function Tc(e){return{type:ac.WEEKLY,selectedDays:"*"!==e?new Set(e.split(",")):new Set}}const kc=(e,t,i,o)=>{let n;return n="?"===t?{type:lc.DAY_OF_MONTH,day:o.split(/[L#]/)[0],weekNumber:o.includes("#")?o.split("#")[1]:"-1"}:{type:lc.DATE,dayDate:t},e===ac.YEARLY&&(n.month=i),n};function Dc(e,t,i,o=kc){return{type:ac.YEARLY,frequency:2===i.split("/").length?i.split("/")[1]:"1",dateOrDay:o(ac.YEARLY,e,t,i.split("/")[0])}}function Ic(e,t,i,o=kc){return{type:ac.MONTHLY,frequency:t.startsWith("*/")?t.split("*/")[1]:"1",dateOrDay:o(ac.MONTHLY,e,t,i.split("/")[0])}}const Rc=l.css`
3973
+ `,rc=l.html`
3974
+ ${e=>sc(T(e))}
3975
+ `;class lc extends s.FoundationElement{constructor(){super(...arguments),this.disableTooltips=!1,this.timezone="",this.cron=""}cronConfigChanged(){var e,t;this.timezone=(null===(e=this.cronConfig)||void 0===e?void 0:e.timezone)||"",this.cron=(null===(t=this.cronConfig)||void 0===t?void 0:t.cronExpression)||""}handleChange(e,t){e.stopPropagation();const{value:i}=e.target;this.cronConfig=Object.assign(Object.assign({},this.cronConfig),{[t]:i}),this.$emit("change",this.cronConfig)}}(0,C.Cg)([(0,l.attr)({attribute:"min-minute-interval"})],lc.prototype,"minMinuteInterval",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"disable-tooltips"})],lc.prototype,"disableTooltips",void 0),(0,C.Cg)([l.observable],lc.prototype,"timezone",void 0),(0,C.Cg)([l.observable],lc.prototype,"cron",void 0),(0,C.Cg)([l.observable],lc.prototype,"cronConfig",void 0);const dc=void 0,cc={},uc=lc.compose(Object.assign({baseName:"scheduler",styles:ac,template:rc,shadowOptions:dc},cc)),hc=(e,t,i)=>{if(!e.title)throw new Error("Title is required");if(!e.body)throw new Error("Missing required param 'body'");let o={title:e.title,body:e.body,iconName:e.iconName},n={};e.createdAt&&(o=Object.assign({createdAt:e.createdAt},o)),null!=e.logLevel&&(o=Object.assign({logLevel:e.logLevel},o)),e.toast&&(n=Object.assign({toast:e.toast},n),o=Object.assign({config:n},o)),ye(o,t,i)};var pc,mc,vc;!function(e){e.MINUTES="Minutes",e.HOURLY="Hourly",e.DAILY="Daily",e.WEEKLY="Weekly",e.MONTHLY="Monthly",e.YEARLY="Yearly"}(pc||(pc={})),function(e){e.WEEK="Week",e.WORK_WEEK="Work week"}(mc||(mc={})),function(e){e.DATE="Date",e.DAY_OF_MONTH="Day of month"}(vc||(vc={}));const gc=[{value:"2",label:"Monday"},{value:"3",label:"Tuesday"},{value:"4",label:"Wednesday"},{value:"5",label:"Thursday"},{value:"6",label:"Friday"},{value:"7",label:"Saturday"},{value:"1",label:"Sunday"}],fc=[{value:"1",label:"First"},{value:"2",label:"Second"},{value:"3",label:"Third"},{value:"4",label:"Fourth"},{value:"-1",label:"Last"}],bc=[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],yc=12,wc=31,Cc=6,xc=7,$c=24,Sc=60,Ec=4,Oc=30;var Tc;!function(e){e.updateCronConfig="update-cron-config"}(Tc||(Tc={}));const kc=e=>Number(e)>1?`/${e}`:"";const Dc=(e,t,i)=>{const o=Number(e);return!isNaN(o)&&o<=i&&o>=t};function Ic(e,t,i,o=!1,n=Dc){if("*"===e)return!0;if(o&&("?"===e||"L"===e))return!0;if(o&&e.endsWith("L"))return n(e.slice(0,-1),t,i);if(e.startsWith("*/"))return n(e.substring(2),1,i);if(e.startsWith("0/"))return n(e.substring(2),1,i);if(o&&e.includes("#")){const[o,a]=e.split("#");return n(o,t,i)&&n(a,1,Ec)}if(n(e,t,i))return!0;if(e.includes("-")){const[o,a]=e.split("-");return n(o,t,i)&&n(a,t,i)}return!!e.includes(",")&&e.split(",").every(e=>Ic(e,t,i,o,n))}function Rc(e,t){return{type:pc.DAILY,frequency:e.startsWith("*/")?e.split("*/")[1]:"1",weekType:"?"===t?mc.WEEK:mc.WORK_WEEK}}function Ac(e){const t=e.includes("/");return{type:pc.HOURLY,frequency:t?e.split("/")[1]:"1",during:t?"every_hour":"specific_hours",hours:t?void 0:e}}function Lc(e,t="*"){const i="*"!==t&&"0/1"!==t;return{type:pc.MINUTES,frequency:e.includes("/")?e.split("/")[1]:"1",during:i?"specific_hours":"every_hour",hours:i?t:void 0}}function Nc(e){return{type:pc.WEEKLY,selectedDays:"*"!==e?new Set(e.split(",")):new Set}}const Fc=(e,t,i,o)=>{let n;return n="?"===t?{type:vc.DAY_OF_MONTH,day:o.split(/[L#]/)[0],weekNumber:o.includes("#")?o.split("#")[1]:"-1"}:{type:vc.DATE,dayDate:t},e===pc.YEARLY&&(n.month=i),n};function Mc(e,t,i,o=Fc){return{type:pc.YEARLY,frequency:2===i.split("/").length?i.split("/")[1]:"1",dateOrDay:o(pc.YEARLY,e,t,i.split("/")[0])}}function _c(e,t,i,o=Fc){return{type:pc.MONTHLY,frequency:t.startsWith("*/")?t.split("*/")[1]:"1",dateOrDay:o(pc.MONTHLY,e,t,i.split("/")[0])}}const Hc=l.css`
3862
3976
  .input-container {
3863
3977
  display: flex;
3864
3978
  flex-direction: column;
@@ -3894,8 +4008,8 @@
3894
4008
  width: 100%;
3895
4009
  height: 0;
3896
4010
  }
3897
- `,Ac=l.css`
3898
- ${Rc}
4011
+ `,Pc=l.css`
4012
+ ${Hc}
3899
4013
  /* Host */
3900
4014
  :host {
3901
4015
  display: flex;
@@ -3955,32 +4069,32 @@
3955
4069
  font-size: var(--type-ramp-minus-1-font-size);
3956
4070
  white-space: nowrap;
3957
4071
  }
3958
- `;var Lc=i(20633);const Nc=(e,t,i)=>l.html`
4072
+ `;var zc=i(20633);const Uc=(e,t,i)=>l.html`
3959
4073
  <${t}-icon tooltip="${()=>e}" name="${()=>i}"></${t}-icon>
3960
- `,Fc=e=>class extends e{$emit(...e){const[t,i,o]=((...e)=>{let[t,i,o]=e,n=i;var s;if(((null==(s=i)?void 0:s.hasOwnProperty("bubbles"))||(null==s?void 0:s.hasOwnProperty("cancelable"))||(null==s?void 0:s.hasOwnProperty("composed"))||(null==s?void 0:s.hasOwnProperty("broadcast")))&&(o=i,n=void 0),"string"!=typeof t)throw new Error("$emit event types must be typeof string.");return[t,n,o]})(...e);if(null==o?void 0:o.broadcast){const e=new CustomEvent(t,Object.assign({detail:i,bubbles:!0,composed:!0,cancelable:!0},o));return e.broadcast=!0,this.dispatchEvent(e)}return super.$emit(t,i,o)}},Mc=l.css`
3961
- ${Rc}
3962
- `,_c="\n <p>Select one or more hours.</p>\n",Hc=l.html`
4074
+ `,Bc=e=>class extends e{$emit(...e){const[t,i,o]=((...e)=>{let[t,i,o]=e,n=i;var a;if(((null==(a=i)?void 0:a.hasOwnProperty("bubbles"))||(null==a?void 0:a.hasOwnProperty("cancelable"))||(null==a?void 0:a.hasOwnProperty("composed"))||(null==a?void 0:a.hasOwnProperty("broadcast")))&&(o=i,n=void 0),"string"!=typeof t)throw new Error("$emit event types must be typeof string.");return[t,n,o]})(...e);if(null==o?void 0:o.broadcast){const e=new CustomEvent(t,Object.assign({detail:i,bubbles:!0,composed:!0,cancelable:!0},o));return e.broadcast=!0,this.dispatchEvent(e)}return super.$emit(t,i,o)}},Vc=l.css`
4075
+ ${Hc}
4076
+ `,Gc="\n <p>Select one or more hours.</p>\n",jc=l.html`
3963
4077
  ${e=>{return t=e.prefix,l.html`
3964
4078
  <template>
3965
4079
  <div class="input-container">
3966
- <label class="label">Of ${e=>e.disableTooltips?"":Nc("\n <p>Controls the daily frequency:</p>\n <ul>\n <li><strong>Week:</strong> allows you to configure the frequency of repeating days, including both weekdays and weekends.</li>\n <li><strong>Work week:</strong> runs the schedule at the specified time on every weekday (Monday - Friday). When this option is selected you cannot change the day frequency, it's every weekday.</li>\n </ul>\n",t)}</label>
4080
+ <label class="label">Of ${e=>e.disableTooltips?"":Uc("\n <p>Controls the daily frequency:</p>\n <ul>\n <li><strong>Week:</strong> allows you to configure the frequency of repeating days, including both weekdays and weekends.</li>\n <li><strong>Work week:</strong> runs the schedule at the specified time on every weekday (Monday - Friday). When this option is selected you cannot change the day frequency, it's every weekday.</li>\n </ul>\n",t)}</label>
3967
4081
  <${t}-select
3968
4082
  data-test-id="select-week-type"
3969
4083
  :value=${(0,U.O)(e=>e.weekType)}
3970
4084
  @change="${e=>e.updateCronConfig()}"
3971
4085
  >
3972
- <${t}-option data-test-id="${rc.WEEK}">
3973
- ${rc.WEEK}
4086
+ <${t}-option data-test-id="${mc.WEEK}">
4087
+ ${mc.WEEK}
3974
4088
  </${t}-option>
3975
- <${t}-option data-test-id="${rc.WORK_WEEK}">
3976
- ${rc.WORK_WEEK}
4089
+ <${t}-option data-test-id="${mc.WORK_WEEK}">
4090
+ ${mc.WORK_WEEK}
3977
4091
  </${t}-option>
3978
4092
  </${t}-select>
3979
4093
  </div>
3980
4094
  </template>
3981
4095
  `;var t}}
3982
- `;let Pc=class extends(Fc(a.FoundationElement)){constructor(){super(...arguments),this.disableTooltips=!1,this.prefix=""}configChanged(){var e;this.weekType=(null===(e=this.config)||void 0===e?void 0:e.weekType)||rc.WORK_WEEK}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{weekType:this.weekType}),this.$emit(wc.updateCronConfig,this.config)}};(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"disable-tooltips"})],Pc.prototype,"disableTooltips",void 0),(0,C.Cg)([l.observable],Pc.prototype,"prefix",void 0),(0,C.Cg)([l.observable],Pc.prototype,"config",void 0),(0,C.Cg)([l.observable],Pc.prototype,"weekType",void 0),Pc=(0,C.Cg)([(0,l.customElement)({name:"daily-recurrence",template:Hc,styles:Mc})],Pc);const zc=l.css`
3983
- ${Rc}
4096
+ `;let Yc=class extends(Bc(s.FoundationElement)){constructor(){super(...arguments),this.disableTooltips=!1,this.prefix=""}configChanged(){var e;this.weekType=(null===(e=this.config)||void 0===e?void 0:e.weekType)||mc.WORK_WEEK}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{weekType:this.weekType}),this.$emit(Tc.updateCronConfig,this.config)}};(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"disable-tooltips"})],Yc.prototype,"disableTooltips",void 0),(0,C.Cg)([l.observable],Yc.prototype,"prefix",void 0),(0,C.Cg)([l.observable],Yc.prototype,"config",void 0),(0,C.Cg)([l.observable],Yc.prototype,"weekType",void 0),Yc=(0,C.Cg)([(0,l.customElement)({name:"daily-recurrence",template:jc,styles:Vc})],Yc);const Wc=l.css`
4097
+ ${Hc}
3984
4098
  :host {
3985
4099
  display: flex;
3986
4100
  flex-direction: column;
@@ -4001,18 +4115,18 @@
4001
4115
  .day-date-number-field::part(root) {
4002
4116
  width: 40%;
4003
4117
  }
4004
- `,Uc=e=>l.html`
4118
+ `,qc=e=>l.html`
4005
4119
  <div class="input-container">
4006
4120
  <label class="label">Month</label>
4007
4121
  <${e}-select data-test-id="month-dropdown" :value=${(0,U.O)(e=>e.selectedMonth)} @change="${e=>e.updateCronConfig()}" >
4008
- ${(0,l.repeat)(()=>uc,l.html`
4122
+ ${(0,l.repeat)(()=>bc,l.html`
4009
4123
  <${e}-option value="${e=>e.value}">
4010
4124
  ${e=>e.label}
4011
4125
  </${e}-option>
4012
4126
  `)}
4013
4127
  </${e}-select>
4014
4128
  </div>
4015
- `,Bc=e=>l.html`
4129
+ `,Kc=e=>l.html`
4016
4130
  ${(e=>l.html`
4017
4131
  <div class="input-container">
4018
4132
  <label class="label">On</label>
@@ -4021,22 +4135,22 @@
4021
4135
  :value=${(0,U.O)(e=>e.dayOrDate)}
4022
4136
  @change="${e=>e.updateCronConfig()}"
4023
4137
  >
4024
- <${e}-option data-test-id="${lc.DATE}">
4025
- ${lc.DATE}
4138
+ <${e}-option data-test-id="${vc.DATE}">
4139
+ ${vc.DATE}
4026
4140
  </${e}-option>
4027
- <${e}-option data-test-id="${lc.DAY_OF_MONTH}">
4028
- ${lc.DAY_OF_MONTH}
4141
+ <${e}-option data-test-id="${vc.DAY_OF_MONTH}">
4142
+ ${vc.DAY_OF_MONTH}
4029
4143
  </${e}-option>
4030
4144
  </${e}-select>
4031
4145
  </div>
4032
4146
  `)(e)}
4033
- ${(0,En.q)(e=>e.dayOrDate===lc.DATE,(e=>l.html`
4147
+ ${(0,En.q)(e=>e.dayOrDate===vc.DATE,(e=>l.html`
4034
4148
  <div class="row">
4035
- ${(0,l.when)(e=>e.config.type===ac.YEARLY,l.html`
4036
- ${Uc(e)}
4149
+ ${(0,l.when)(e=>e.config.type===pc.YEARLY,l.html`
4150
+ ${qc(e)}
4037
4151
  `)}
4038
4152
  <div class="input-container">
4039
- <label class="label"> ${e=>e.config.type===ac.MONTHLY?"Day date":"Day"}</label>
4153
+ <label class="label"> ${e=>e.config.type===pc.MONTHLY?"Day date":"Day"}</label>
4040
4154
  <${e}-select data-test-id="day-date-dropdown" :value=${(0,U.O)(e=>e.dayDate)} @change="${e=>e.updateCronConfig()}" >
4041
4155
  ${(0,l.repeat)(()=>Array.from({length:31},(e,t)=>t+1),l.html`
4042
4156
  <${e}-option value="${e=>e}">
@@ -4049,8 +4163,8 @@
4049
4163
 
4050
4164
  `)(e),(e=>l.html`
4051
4165
  <div class="day-of-month-row">
4052
- ${(0,l.when)(e=>e.config.type===ac.YEARLY,l.html`
4053
- ${Uc(e)}
4166
+ ${(0,l.when)(e=>e.config.type===pc.YEARLY,l.html`
4167
+ ${qc(e)}
4054
4168
  `)}
4055
4169
  <div class="input-container">
4056
4170
  <label class="label">Day of Month</label>
@@ -4059,7 +4173,7 @@
4059
4173
  :value=${(0,U.O)(e=>e.weekNumber)}
4060
4174
  @change="${e=>e.updateCronConfig()}"
4061
4175
  >
4062
- ${(0,l.repeat)(()=>cc,l.html`
4176
+ ${(0,l.repeat)(()=>fc,l.html`
4063
4177
  <${e}-option value="${e=>e.value}">
4064
4178
  ${e=>e.label}
4065
4179
  </${e}-option>
@@ -4073,7 +4187,7 @@
4073
4187
  :value=${(0,U.O)(e=>e.day)}
4074
4188
  @change="${e=>e.updateCronConfig()}"
4075
4189
  >
4076
- ${(0,l.repeat)(()=>dc,l.html`
4190
+ ${(0,l.repeat)(()=>gc,l.html`
4077
4191
  <${e}-option value="${e=>e.value}">
4078
4192
  ${e=>e.label}
4079
4193
  </${e}-option>
@@ -4082,24 +4196,24 @@
4082
4196
  </div>
4083
4197
  </div>
4084
4198
  `)(e))}
4085
- `,Vc=l.html`
4086
- ${e=>Bc(e.prefix)}
4087
- `;let Gc=class extends(Fc(a.FoundationElement)){constructor(){super(...arguments),this.prefix="",this.dayOrDate=lc.DATE,this.weekNumber="1",this.day="1",this.selectedMonth="1"}configChanged(){this.config.type!==ac.YEARLY&&this.config.type!==ac.MONTHLY||(this.dayOrDate=this.config.dateOrDay.type||lc.DATE,this.setFieldsFromConfig())}setFieldsFromConfig(){this.config.type===ac.YEARLY&&(this.selectedMonth=this.config.dateOrDay.month),this.config.dateOrDay.type===lc.DAY_OF_MONTH?(this.weekNumber=this.config.dateOrDay.weekNumber||"1",this.day=this.config.dateOrDay.day||"1"):this.dayDate=this.config.dateOrDay.dayDate||"1"}getDayOrDateConfig(){let e;return e=this.dayOrDate===lc.DATE?{type:lc.DATE,dayDate:this.dayDate||"1"}:{type:lc.DAY_OF_MONTH,day:this.day||"1",weekNumber:this.weekNumber||"1"},e}updateCronConfig(){this.config.type===ac.MONTHLY?this.config=Object.assign(Object.assign({},this.config),{dateOrDay:this.getDayOrDateConfig()}):this.config=Object.assign(Object.assign({},this.config),{dateOrDay:Object.assign(Object.assign({},this.getDayOrDateConfig()),{month:this.selectedMonth||"1"})}),this.$emit(wc.updateCronConfig,this.config)}};(0,C.Cg)([l.observable],Gc.prototype,"prefix",void 0),(0,C.Cg)([l.observable],Gc.prototype,"config",void 0),(0,C.Cg)([l.observable],Gc.prototype,"dayOrDate",void 0),(0,C.Cg)([l.observable],Gc.prototype,"dayDate",void 0),(0,C.Cg)([l.observable],Gc.prototype,"weekNumber",void 0),(0,C.Cg)([l.observable],Gc.prototype,"day",void 0),(0,C.Cg)([l.observable],Gc.prototype,"selectedMonth",void 0),Gc=(0,C.Cg)([(0,l.customElement)({name:"monthly-yearly-recurrence",template:Vc,styles:zc})],Gc);const jc=l.css`
4088
- ${Rc}
4199
+ `,Xc=l.html`
4200
+ ${e=>Kc(e.prefix)}
4201
+ `;let Jc=class extends(Bc(s.FoundationElement)){constructor(){super(...arguments),this.prefix="",this.dayOrDate=vc.DATE,this.weekNumber="1",this.day="1",this.selectedMonth="1"}configChanged(){this.config.type!==pc.YEARLY&&this.config.type!==pc.MONTHLY||(this.dayOrDate=this.config.dateOrDay.type||vc.DATE,this.setFieldsFromConfig())}setFieldsFromConfig(){this.config.type===pc.YEARLY&&(this.selectedMonth=this.config.dateOrDay.month),this.config.dateOrDay.type===vc.DAY_OF_MONTH?(this.weekNumber=this.config.dateOrDay.weekNumber||"1",this.day=this.config.dateOrDay.day||"1"):this.dayDate=this.config.dateOrDay.dayDate||"1"}getDayOrDateConfig(){let e;return e=this.dayOrDate===vc.DATE?{type:vc.DATE,dayDate:this.dayDate||"1"}:{type:vc.DAY_OF_MONTH,day:this.day||"1",weekNumber:this.weekNumber||"1"},e}updateCronConfig(){this.config.type===pc.MONTHLY?this.config=Object.assign(Object.assign({},this.config),{dateOrDay:this.getDayOrDateConfig()}):this.config=Object.assign(Object.assign({},this.config),{dateOrDay:Object.assign(Object.assign({},this.getDayOrDateConfig()),{month:this.selectedMonth||"1"})}),this.$emit(Tc.updateCronConfig,this.config)}};(0,C.Cg)([l.observable],Jc.prototype,"prefix",void 0),(0,C.Cg)([l.observable],Jc.prototype,"config",void 0),(0,C.Cg)([l.observable],Jc.prototype,"dayOrDate",void 0),(0,C.Cg)([l.observable],Jc.prototype,"dayDate",void 0),(0,C.Cg)([l.observable],Jc.prototype,"weekNumber",void 0),(0,C.Cg)([l.observable],Jc.prototype,"day",void 0),(0,C.Cg)([l.observable],Jc.prototype,"selectedMonth",void 0),Jc=(0,C.Cg)([(0,l.customElement)({name:"monthly-yearly-recurrence",template:Xc,styles:Wc})],Jc);const Qc=l.css`
4202
+ ${Hc}
4089
4203
  .weekdays-row {
4090
4204
  display: flex;
4091
4205
  gap: calc(var(--design-unit) * 3px);
4092
4206
  flex-wrap: wrap;
4093
4207
  }
4094
- `,Yc=l.html`
4208
+ `,Zc=l.html`
4095
4209
  ${e=>{return t=e.prefix,l.html`
4096
4210
  <template>
4097
4211
  <div class="input-container">
4098
4212
  <label class="label">
4099
- On ${e=>e.disableTooltips?"":Nc("\n <p>Select which days to run this recurrence on. It's not valid to select no days, so if there is only a single day selected then its checkbox is disabled. </p>\n <p>If you need to change the day you can enable other days which will allow you to disable days until you only have a single day selected again.</p>\n",t)}
4213
+ On ${e=>e.disableTooltips?"":Uc("\n <p>Select which days to run this recurrence on. It's not valid to select no days, so if there is only a single day selected then its checkbox is disabled. </p>\n <p>If you need to change the day you can enable other days which will allow you to disable days until you only have a single day selected again.</p>\n",t)}
4100
4214
  </label>
4101
4215
  <div class="weekdays-row">
4102
- ${(0,l.repeat)(()=>dc,l.html`
4216
+ ${(0,l.repeat)(()=>gc,l.html`
4103
4217
  <${t}-checkbox
4104
4218
  part="weekdays-checkbox"
4105
4219
  class="weekdays-checkbox"
@@ -4115,12 +4229,12 @@
4115
4229
  </div>
4116
4230
  </template>
4117
4231
  `;var t}}
4118
- `;let Wc=class extends(Fc(a.FoundationElement)){constructor(){super(...arguments),this.disableTooltips=!1,this.prefix="",this.selectedDays=new Set}configChanged(){var e;this.selectedDays=(null===(e=this.config)||void 0===e?void 0:e.selectedDays)?new Set(this.config.selectedDays):new Set}isDisabled(e){return 1===this.selectedDays.size&&this.selectedDays.has(e)}checkboxChangeHandler(e){const{checked:t,value:i}=e.target;t?this.selectedDays.add(i):this.selectedDays.size>1&&this.selectedDays.delete(i),this.updateCronConfig()}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{selectedDays:this.selectedDays}),this.$emit(wc.updateCronConfig,this.config)}};(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"disable-tooltips"})],Wc.prototype,"disableTooltips",void 0),(0,C.Cg)([l.observable],Wc.prototype,"prefix",void 0),(0,C.Cg)([l.observable],Wc.prototype,"config",void 0),(0,C.Cg)([l.observable],Wc.prototype,"selectedDays",void 0),Wc=(0,C.Cg)([(0,l.customElement)({name:"weekly-recurrence",template:Yc,styles:jc})],Wc),(0,Lc.N)(Pc,Wc,Gc);const qc=(e,t)=>l.html`
4232
+ `;let eu=class extends(Bc(s.FoundationElement)){constructor(){super(...arguments),this.disableTooltips=!1,this.prefix="",this.selectedDays=new Set}configChanged(){var e;this.selectedDays=(null===(e=this.config)||void 0===e?void 0:e.selectedDays)?new Set(this.config.selectedDays):new Set}isDisabled(e){return 1===this.selectedDays.size&&this.selectedDays.has(e)}checkboxChangeHandler(e){const{checked:t,value:i}=e.target;t?this.selectedDays.add(i):this.selectedDays.size>1&&this.selectedDays.delete(i),this.updateCronConfig()}updateCronConfig(){this.config=Object.assign(Object.assign({},this.config),{selectedDays:this.selectedDays}),this.$emit(Tc.updateCronConfig,this.config)}};(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"disable-tooltips"})],eu.prototype,"disableTooltips",void 0),(0,C.Cg)([l.observable],eu.prototype,"prefix",void 0),(0,C.Cg)([l.observable],eu.prototype,"config",void 0),(0,C.Cg)([l.observable],eu.prototype,"selectedDays",void 0),eu=(0,C.Cg)([(0,l.customElement)({name:"weekly-recurrence",template:Zc,styles:Qc})],eu),(0,zc.N)(Yc,eu,Jc);const tu=(e,t)=>l.html`
4119
4233
  <monthly-yearly-recurrence
4120
4234
  :prefix=${()=>e}
4121
4235
  :config=${()=>t.cronConfig}
4122
4236
  ></monthly-yearly-recurrence>
4123
- `,Kc=(e,t,i)=>l.html`
4237
+ `,iu=(e,t,i)=>l.html`
4124
4238
  <div class="input-container">
4125
4239
  ${(0,l.when)(()=>i,l.html`
4126
4240
  <label class="label">${i}</label>
@@ -4138,38 +4252,38 @@
4138
4252
  <div slot="end" class="suffix-label">${()=>t.frequencySuffix}</div>
4139
4253
  </${e}-select>
4140
4254
  </div>
4141
- `,Xc=(e,t,i,o)=>l.html`
4255
+ `,ou=(e,t,i,o)=>l.html`
4142
4256
  <div class="input-container">
4143
4257
  <label class="label">Time </label>
4144
4258
  <div class="flex-row">
4145
4259
  ${(0,l.when)(()=>i,l.html`
4146
4260
  <${e}-select class="time-select" data-test-id="hours-dropdown" :value=${(0,U.O)(()=>t.hours)} @change="${()=>t.handleChange("hours")}" >
4147
- ${(0,l.repeat)(()=>Array.from({length:vc},(e,t)=>t),l.html`
4261
+ ${(0,l.repeat)(()=>Array.from({length:$c},(e,t)=>t),l.html`
4148
4262
  <${e}-option value="${e=>e}"> ${e=>e} </${e}-option>
4149
4263
  `)}
4150
4264
  <div slot="end" class="suffix-label">hr</div>
4151
4265
  </${e}-select>`)}
4152
4266
  ${(0,l.when)(()=>o,l.html`
4153
4267
  <${e}-select class="time-select" data-test-id="mins-dropdown" :value=${(0,U.O)(()=>t.minutes)} @change="${()=>t.handleChange("minutes")}" >
4154
- ${(0,l.repeat)(()=>Array.from({length:fc},(e,t)=>t),l.html`
4268
+ ${(0,l.repeat)(()=>Array.from({length:Sc},(e,t)=>t),l.html`
4155
4269
  <${e}-option value="${e=>e}"> ${e=>e} </${e}-option>
4156
4270
  `)}
4157
4271
  <div slot="end" class="suffix-label">min</div>
4158
4272
  </${e}-select>`)}
4159
4273
  <${e}-select class="time-select" data-test-id="seconds-dropdown" :value=${(0,U.O)(()=>t.seconds)} @change="${()=>t.handleChange("seconds")}" >
4160
- ${(0,l.repeat)(()=>Array.from({length:fc},(e,t)=>t),l.html`
4274
+ ${(0,l.repeat)(()=>Array.from({length:Sc},(e,t)=>t),l.html`
4161
4275
  <${e}-option value="${e=>e}"> ${e=>e} </${e}-option>
4162
4276
  `)}
4163
4277
  <div slot="end" class="suffix-label">sec</div>
4164
4278
  </${e}-select>
4165
4279
  </div>
4166
4280
  </div>
4167
- `,Jc=(e,t,i)=>{switch(e){case ac.MINUTES:return l.html`
4281
+ `,nu=(e,t,i)=>{switch(e){case pc.MINUTES:return l.html`
4168
4282
  <div class="minutes-options-row">
4169
4283
  <div class="input-container">
4170
4284
  <label class="label"
4171
4285
  >During
4172
- ${()=>i.disableTooltips?"":Nc("\n <p>Which hours in the day to run this schedule for:</p>\n <ul>\n <li><strong>Every hour:</strong> runs the minute schedule during every hour of the day.</li>\n <li><strong>Specific hours:</strong> specify which hours the minute schedule runs for. For example, just trading hours. Selecting every hour will configure the schedule as <strong>Every hour</strong>.</li>\n </ul>\n",t)}</label
4286
+ ${()=>i.disableTooltips?"":Uc("\n <p>Which hours in the day to run this schedule for:</p>\n <ul>\n <li><strong>Every hour:</strong> runs the minute schedule during every hour of the day.</li>\n <li><strong>Specific hours:</strong> specify which hours the minute schedule runs for. For example, just trading hours. Selecting every hour will configure the schedule as <strong>Every hour</strong>.</li>\n </ul>\n",t)}</label
4173
4287
  >
4174
4288
  <${t}-select
4175
4289
  data-test-id="during-select"
@@ -4189,7 +4303,7 @@
4189
4303
  ${(0,l.when)(()=>i.isSpecificHours,l.html`
4190
4304
  <div class="input-container">
4191
4305
  <label class="label"
4192
- >Hours ${Nc(_c,t)}</label
4306
+ >Hours ${Uc(Gc,t)}</label
4193
4307
  >
4194
4308
  <${t}-multiselect
4195
4309
  class="time-select"
@@ -4204,15 +4318,15 @@
4204
4318
  `)}
4205
4319
  </div>
4206
4320
  <div class="row">
4207
- ${Kc(t,i,"Every")}
4208
- ${Xc(t,i,!1,!1)}
4321
+ ${iu(t,i,"Every")}
4322
+ ${ou(t,i,!1,!1)}
4209
4323
  </div>
4210
- `;case ac.HOURLY:return l.html`
4324
+ `;case pc.HOURLY:return l.html`
4211
4325
  <div class="row">
4212
4326
  <div class="input-container">
4213
4327
  <label class="label"
4214
4328
  >Mode
4215
- ${()=>i.disableTooltips?"":Nc("\n <p>Select the type of hourly recurrence:</p>\n <ul>\n <li><strong>Interval:</strong> runs at a repeating interval of hours (e.g. every 2 hours).</li>\n <li><strong>Selected Hours:</strong> allows you to choose specific hours of the day (e.g. 9, 10, and 14).</li>\n </ul>\n",t)}</label
4329
+ ${()=>i.disableTooltips?"":Uc("\n <p>Select the type of hourly recurrence:</p>\n <ul>\n <li><strong>Interval:</strong> runs at a repeating interval of hours (e.g. every 2 hours).</li>\n <li><strong>Selected Hours:</strong> allows you to choose specific hours of the day (e.g. 9, 10, and 14).</li>\n </ul>\n",t)}</label
4216
4330
  >
4217
4331
  <${t}-select
4218
4332
  data-test-id="hourly-during-select"
@@ -4223,12 +4337,12 @@
4223
4337
  <${t}-option value="specific_hours">Selected Hours</${t}-option>
4224
4338
  </${t}-select>
4225
4339
  </div>
4226
- ${(0,l.when)(()=>"every_hour"===i.during,Kc(t,i,"Every"))}
4340
+ ${(0,l.when)(()=>"every_hour"===i.during,iu(t,i,"Every"))}
4227
4341
  ${(0,l.when)(()=>i.isSpecificHours,l.html`
4228
4342
  <div class="break"></div>
4229
4343
  <div class="input-container">
4230
4344
  <label class="label">
4231
- Hours ${Nc(_c,t)}
4345
+ Hours ${Uc(Gc,t)}
4232
4346
  </label>
4233
4347
  <${t}-multiselect
4234
4348
  class="time-select"
@@ -4240,9 +4354,9 @@
4240
4354
  ></${t}-multiselect>
4241
4355
  </div>
4242
4356
  `)}
4243
- ${Xc(t,i,!1,!0)}
4357
+ ${ou(t,i,!1,!0)}
4244
4358
  </div>
4245
- `;case ac.DAILY:return l.html`
4359
+ `;case pc.DAILY:return l.html`
4246
4360
  ${((e,t)=>l.html`
4247
4361
  <daily-recurrence
4248
4362
  :prefix=${()=>e}
@@ -4251,10 +4365,10 @@
4251
4365
  ></daily-recurrence>
4252
4366
  `)(t,i)}
4253
4367
  <div class="row">
4254
- ${Kc(t,i,"Every")}
4255
- ${Xc(t,i,!0,!0)}
4368
+ ${iu(t,i,"Every")}
4369
+ ${ou(t,i,!0,!0)}
4256
4370
  </div>
4257
- `;case ac.WEEKLY:return l.html`
4371
+ `;case pc.WEEKLY:return l.html`
4258
4372
  <div class="row">
4259
4373
  ${((e,t)=>l.html`
4260
4374
  <weekly-recurrence
@@ -4262,25 +4376,25 @@
4262
4376
  :config=${()=>t.cronConfig}
4263
4377
  ?disable-tooltips=${()=>t.disableTooltips}
4264
4378
  ></weekly-recurrence>
4265
- `)(t,i)} ${Xc(t,i,!0,!0)}
4379
+ `)(t,i)} ${ou(t,i,!0,!0)}
4266
4380
  </div>
4267
- `;case ac.MONTHLY:return l.html`
4381
+ `;case pc.MONTHLY:return l.html`
4268
4382
  <div class="row">
4269
- ${Kc(t,i,"Every")}
4270
- ${Xc(t,i,!0,!0)}
4383
+ ${iu(t,i,"Every")}
4384
+ ${ou(t,i,!0,!0)}
4271
4385
  </div>
4272
- ${qc(t,i)}
4273
- `;case ac.YEARLY:return l.html`
4274
- <div class="row">${Xc(t,i,!0,!0)}</div>
4275
- ${qc(t,i)}
4276
- `;default:return l.html``}},Qc=e=>l.html`
4386
+ ${tu(t,i)}
4387
+ `;case pc.YEARLY:return l.html`
4388
+ <div class="row">${ou(t,i,!0,!0)}</div>
4389
+ ${tu(t,i)}
4390
+ `;default:return l.html``}},au=e=>l.html`
4277
4391
  <template>
4278
4392
  <div class="container">
4279
4393
  <div class="input-container">
4280
4394
  <label class="label"
4281
4395
  >Recurrence
4282
4396
  ${(0,l.when)(e=>!e.disableTooltips,l.html`
4283
- ${t=>Nc(`\n <p>Select how often the event should occur:</p>\n <ul>\n${!t.minMinuteInterval||t.minMinuteInterval<yc?"<li><strong>Minutes:</strong> Runs at every interval of minutes from the hour. Can be for every or specific hours.</li>":""}\n <li><strong>Hourly:</strong> Runs at a specific time in the hour, for one or more hours in the day.</li>\n <li><strong>Daily:</strong> Runs at a specific time of day, for a frequency interval of days per week (or work week).</li>\n <li><strong>Weekly:</strong> Runs at a specific time of day, for specific days of the week.</li>\n <li><strong>Monthly:</strong> Runs at a specific time of day in monthly intervals, on a specific date or day of month .</li>\n <li><strong>Yearly:</strong> Runs at a specific time, every year on a specific date or day of month.</li>\n </ul>\n`,e)}
4397
+ ${t=>Uc(`\n <p>Select how often the event should occur:</p>\n <ul>\n${!t.minMinuteInterval||t.minMinuteInterval<Oc?"<li><strong>Minutes:</strong> Runs at every interval of minutes from the hour. Can be for every or specific hours.</li>":""}\n <li><strong>Hourly:</strong> Runs at a specific time in the hour, for one or more hours in the day.</li>\n <li><strong>Daily:</strong> Runs at a specific time of day, for a frequency interval of days per week (or work week).</li>\n <li><strong>Weekly:</strong> Runs at a specific time of day, for specific days of the week.</li>\n <li><strong>Monthly:</strong> Runs at a specific time of day in monthly intervals, on a specific date or day of month .</li>\n <li><strong>Yearly:</strong> Runs at a specific time, every year on a specific date or day of month.</li>\n </ul>\n`,e)}
4284
4398
  `)}
4285
4399
  </label>
4286
4400
  <${e}-select
@@ -4289,36 +4403,36 @@
4289
4403
  @change="${e=>e.handleRecurrenceChange()}"
4290
4404
  >
4291
4405
  ${(0,l.when)(e=>e.isMinutesRecurrenceEnabled,l.html`
4292
- <${e}-option data-test-id="${ac.MINUTES}">
4293
- ${ac.MINUTES}
4406
+ <${e}-option data-test-id="${pc.MINUTES}">
4407
+ ${pc.MINUTES}
4294
4408
  </${e}-option>
4295
4409
  `)}
4296
- <${e}-option data-test-id="${ac.HOURLY}">
4297
- ${ac.HOURLY}
4410
+ <${e}-option data-test-id="${pc.HOURLY}">
4411
+ ${pc.HOURLY}
4298
4412
  </${e}-option>
4299
- <${e}-option data-test-id="${ac.DAILY}">
4300
- ${ac.DAILY}
4413
+ <${e}-option data-test-id="${pc.DAILY}">
4414
+ ${pc.DAILY}
4301
4415
  </${e}-option>
4302
- <${e}-option data-test-id="${ac.WEEKLY}">
4303
- ${ac.WEEKLY}
4416
+ <${e}-option data-test-id="${pc.WEEKLY}">
4417
+ ${pc.WEEKLY}
4304
4418
  </${e}-option>
4305
- <${e}-option data-test-id="${ac.MONTHLY}">
4306
- ${ac.MONTHLY}
4419
+ <${e}-option data-test-id="${pc.MONTHLY}">
4420
+ ${pc.MONTHLY}
4307
4421
  </${e}-option>
4308
- <${e}-option data-test-id="${ac.YEARLY}">
4309
- ${ac.YEARLY}
4422
+ <${e}-option data-test-id="${pc.YEARLY}">
4423
+ ${pc.YEARLY}
4310
4424
  </${e}-option>
4311
4425
  </${e}-select>
4312
4426
  </div>
4313
4427
 
4314
4428
  ${(0,l.repeat)(e=>[`${e.recurrence}-${e.during}`],l.html`
4315
- ${(t,i)=>Jc(i.parent.recurrence,e,i.parent)}
4429
+ ${(t,i)=>nu(i.parent.recurrence,e,i.parent)}
4316
4430
  `,{recycle:!1})}
4317
4431
  </div>
4318
4432
  </template>
4319
- `,Zc=l.html`
4320
- ${e=>Qc(T(e))}
4321
- `;class eu extends a.FoundationElement{constructor(){super(...arguments),this.getConfigs={buildConfigForMinutesRecurrence:Oc,buildConfigForHourlyRecurrence:Ec,buildConfigForDailyRecurrence:Sc,buildConfigForWeeklyRecurrence:Tc,buildConfigForMonthlyRecurrence:Ic,buildConfigForYearlyRecurrence:Dc},this.recurrence=ac.DAILY,this.cron="",this.value=this.cron,this.cronConfig={type:ac.DAILY,weekType:rc.WEEK,hours:"0",minutes:"0",seconds:"0"},this.frequency="1",this.during="every_hour",this.hours="0",this.minutes="0",this.seconds="0",this.disableTooltips=!1,this.timezone=""}cronChanged(){if(this.cron)try{if(!((e,t=$c)=>{const i=e.trim().split(" ");if(i.length!=mc)return!1;const[o,n,s,a,r,l]=i;return t(o,0,fc-1)&&t(n,0,fc-1)&&t(s,0,vc-1)&&t(a,1,pc,!0)&&t(r,1,hc)&&t(l,0,gc,!0)})(this.cron))return void sc({title:"Cron Scheduler",body:"Invalid Cron Expression",toast:{type:"critical"}},T(this));this.setsFieldsFromCronEx()}catch(e){return console.error("Error:",e),void sc({title:"Cron Scheduler",body:e,toast:{type:"critical"}},T(this))}}get duringOptions(){return[{label:"Every hour",value:"every_hour"},{label:"Specific hours",value:"specific_hours"}]}get frequencySuffix(){switch(this.cronConfig.type){case ac.MINUTES:return"Minute(s)";case ac.HOURLY:return"Hour(s)";case ac.DAILY:return"Day(s)";case ac.MONTHLY:return"Month(s)";default:return""}}get frequencyList(){switch(this.cronConfig.type){case ac.MINUTES:const e=[1,2,3,4,5,6,10,12,15,20,30],t=this.minMinuteInterval?Number(this.minMinuteInterval):1;return e.filter(e=>e>=t);case ac.HOURLY:return Array.from({length:vc-1},(e,t)=>t+1);case ac.DAILY:return Array.from({length:pc},(e,t)=>t+1);case ac.MONTHLY:case ac.YEARLY:return Array.from({length:hc},(e,t)=>t+1);case ac.WEEKLY:return[1];default:return[]}}get hourOptions(){return Array.from({length:vc},(e,t)=>({label:t.toString(),value:t.toString()}))}get selectedHours(){return this.hours&&"*"!==this.hours&&"0"!==this.hours?this.hours.split(","):"*"===this.hours?this.hourOptions.map(e=>e.value):[this.hours]}handleHoursChange(e){const t=e.detail;t.length===vc?(this.hours="*",this.frequency="1",this.cronConfig.frequency="1"):t&&0!==t.length?this.hours=t.sort((e,t)=>Number(e)-Number(t)).join(","):this.hours="0",this.handleChange("hours")}get isMinutesRecurrenceEnabled(){return!this.minMinuteInterval||Number(this.minMinuteInterval)<=30}get isSpecificHours(){return"specific_hours"===this.during}get isDailyFrequencyDisabled(){return this.cronConfig.type===ac.DAILY&&this.cronConfig.weekType===rc.WORK_WEEK}minMinuteIntervalChanged(){this.minMinuteInterval>=60&&console.warn("Minimum minute interval has no effect on schedules with an hourly or longer recurrance")}connectedCallback(){super.connectedCallback(),this.addEventListener(wc.updateCronConfig,this.handleCronConfigUpdate)}disconnectedCallback(){this.removeEventListener(wc.updateCronConfig,this.handleCronConfigUpdate)}getBaseConfigFields(){return{frequency:this.frequency,hours:this.hours,minutes:this.minutes,seconds:this.seconds}}handleRecurrenceChange(){switch(this.recurrence){case ac.MINUTES:const e=this.getBaseConfigFields(),{minutes:t}=e,i=(0,C.Tt)(e,["minutes"]);this.during="every_hour",this.hours="*";const o=[1,2,3,4,5,6,10,12,15,20,30],n=this.minMinuteInterval?Number(this.minMinuteInterval):1,s=o.find(e=>e>=n)||1;this.cronConfig=Object.assign(Object.assign({type:ac.MINUTES},i),{frequency:s.toString(),during:"every_hour",hours:"*"}),this.generateCronExpressionFromConfig(this.cronConfig);break;case ac.HOURLY:const a=this.getBaseConfigFields(),{hours:r}=a,l=(0,C.Tt)(a,["hours"]);this.during="every_hour",this.hours="0",this.cronConfig=Object.assign(Object.assign({type:ac.HOURLY},l),{frequency:"1",during:"every_hour",hours:"0"}),this.generateCronExpressionFromConfig(this.cronConfig);break;case ac.DAILY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:ac.DAILY},this.getBaseConfigFields()),{frequency:"1",weekType:rc.WEEK}),this.generateCronExpressionFromConfig(this.cronConfig);break;case ac.WEEKLY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:ac.WEEKLY},this.getBaseConfigFields()),{frequency:"1",selectedDays:new Set(["2"])}),this.generateCronExpressionFromConfig(this.cronConfig);break;case ac.MONTHLY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:ac.MONTHLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:lc.DATE,dayDate:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;case ac.YEARLY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:ac.YEARLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:lc.DATE,dayDate:"1",month:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;default:sc({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},T(this))}}handleChange(e){if("frequency"===e&&0===Number(this.frequency))throw new Error("Frequency must be greater than 0");this.cronConfig[e]=this[e],this.generateCronExpressionFromConfig(this.cronConfig)}handleDuringChange(){"every_hour"===this.during?this.hours="*":"*"===this.hours&&(this.hours="0"),this.cronConfig.type!==ac.MINUTES&&this.cronConfig.type!==ac.HOURLY||(this.cronConfig.during=this.during,this.cronConfig.hours=this.hours),this.generateCronExpressionFromConfig(this.cronConfig)}handleCronConfigUpdate({detail:e}){this.cronConfig=Object.assign(Object.assign({},this.getBaseConfigFields()),e),this.generateCronExpressionFromConfig(this.cronConfig)}generateCronExpressionFromConfig(e){switch(e.type){case ac.MINUTES:this.cron=function(e){const t="specific_hours"===e.during&&e.hours?e.hours:"*";return`${e.seconds} 0/${e.frequency} ${t} ? * *`}(e);break;case ac.HOURLY:this.cron=function(e){return"specific_hours"===e.during&&e.hours&&"*"!==e.hours?`${e.seconds} ${e.minutes} ${e.hours} ? * *`:`${e.seconds} ${e.minutes} 0/${e.frequency} ? * *`}(e);break;case ac.DAILY:this.cron=function(e,t=Cc){const i=e.weekType===rc.WORK_WEEK?"?":`*${t(e.frequency)}`;return`${e.seconds} ${e.minutes} ${e.hours} ${i} * ${e.weekType===rc.WORK_WEEK?"2-6":"?"}`}(e,Cc);break;case ac.WEEKLY:this.cron=function(e){const t=[...e.selectedDays].join(",")||"*";return`${e.seconds} ${e.minutes} ${e.hours} ? * ${t}`}(e);break;case ac.MONTHLY:this.cron=function(e,t=Cc){const{dateOrDay:i,minutes:o,hours:n,seconds:s,frequency:a}=e,r=t(a);return i.type===lc.DATE?`${s} ${o} ${n} ${i.dayDate} *${r} ?`:"-1"===i.weekNumber?`${s} ${o} ${n} ? *${r} ${i.day}L`:`${e.seconds} ${o} ${n} ? *${r} ${i.day}#${i.weekNumber}`}(e,Cc);break;case ac.YEARLY:this.cron=function(e){const{dateOrDay:t,minutes:i,seconds:o,hours:n}=e;return t.type===lc.DATE?`${o} ${i} ${n} ${t.dayDate} ${t.month} ?`:"-1"===t.weekNumber?`${o} ${i} ${n} ? ${t.month} ${t.day}L`:`${o} ${i} ${n} ? ${t.month} ${t.day}#${t.weekNumber}`}(e);break;default:sc({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},T(this))}this.value=this.cron,this.$emit("change")}setsFieldsFromCronEx(){this.cronConfig=function(e,t){if(!e)return;const i=e.split(" "),[o,n,s,a,r,l]=i;if("?"!==l&&"?"!==a)throw new Error("Support for specifying both a day-of-week AND a day-of-month parameter is not implemented");if(/^(0|\*)\/\d+$/.test(n))return Object.assign({seconds:o},t.buildConfigForMinutesRecurrence(n,s));if(/^(0|\*)\/\d+$/.test(s))return Object.assign({minutes:n,seconds:o},t.buildConfigForHourlyRecurrence(s));if("?"===a&&"*"===l)return Object.assign({minutes:n,seconds:o},t.buildConfigForHourlyRecurrence(s));if("2-6"===l||"?"===l&&("*"===a||a.startsWith("*")))return Object.assign({hours:s,minutes:n,seconds:o},t.buildConfigForDailyRecurrence(a,l));if(/^([1-7](,[1-7])*)$/.test(l)||"*"===l)return Object.assign({hours:s,minutes:n,seconds:o},t.buildConfigForWeeklyRecurrence(l));if(l.includes("L")||l.includes("#")||/^([1-9]|[12]\d|3[01])$/.test(a)&&"?"===l)return"*"==r||r.startsWith("*/")?Object.assign({hours:s,minutes:n,seconds:o},t.buildConfigForMonthlyRecurrence(a,r,l)):Object.assign({hours:s,minutes:n,seconds:o},t.buildConfigForYearlyRecurrence(a,r,l));throw new Error("Invalid Cron Expression")}(this.cron,this.getConfigs),this.recurrence=this.cronConfig.type,this.frequency=this.cronConfig.frequency;const e=this.cronConfig;"minutes"in e&&(this.minutes=e.minutes),e.type!==ac.MINUTES&&e.type!==ac.HOURLY||(this.during=e.during||"every_hour",e.hours&&(this.hours=e.hours)),this.seconds=e.seconds,e.type!==ac.HOURLY&&e.type!==ac.MINUTES&&(this.hours=e.hours)}}(0,C.Cg)([l.observable],eu.prototype,"recurrence",void 0),(0,C.Cg)([l.observable],eu.prototype,"cron",void 0),(0,C.Cg)([l.observable],eu.prototype,"cronConfig",void 0),(0,C.Cg)([l.observable],eu.prototype,"frequency",void 0),(0,C.Cg)([l.observable],eu.prototype,"during",void 0),(0,C.Cg)([l.volatile],eu.prototype,"duringOptions",null),(0,C.Cg)([l.observable],eu.prototype,"hours",void 0),(0,C.Cg)([l.observable],eu.prototype,"minutes",void 0),(0,C.Cg)([l.observable],eu.prototype,"seconds",void 0),(0,C.Cg)([l.volatile],eu.prototype,"frequencySuffix",null),(0,C.Cg)([l.volatile],eu.prototype,"frequencyList",null),(0,C.Cg)([l.volatile],eu.prototype,"hourOptions",null),(0,C.Cg)([l.volatile],eu.prototype,"selectedHours",null),(0,C.Cg)([(0,l.attr)({attribute:"min-minute-interval"})],eu.prototype,"minMinuteInterval",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"disable-tooltips"})],eu.prototype,"disableTooltips",void 0),(0,C.Cg)([l.volatile],eu.prototype,"isMinutesRecurrenceEnabled",null),(0,C.Cg)([l.volatile],eu.prototype,"isSpecificHours",null),(0,C.Cg)([l.volatile],eu.prototype,"isDailyFrequencyDisabled",null),(0,C.Cg)([l.attr],eu.prototype,"timezone",void 0);const tu=void 0,iu={},ou=eu.compose(Object.assign({baseName:"scheduler-cron-builder",styles:Ac,template:Zc,shadowOptions:tu},iu)),nu=l.css`
4433
+ `,su=l.html`
4434
+ ${e=>au(T(e))}
4435
+ `;class ru extends s.FoundationElement{constructor(){super(...arguments),this.getConfigs={buildConfigForMinutesRecurrence:Lc,buildConfigForHourlyRecurrence:Ac,buildConfigForDailyRecurrence:Rc,buildConfigForWeeklyRecurrence:Nc,buildConfigForMonthlyRecurrence:_c,buildConfigForYearlyRecurrence:Mc},this.recurrence=pc.DAILY,this.cron="",this.value=this.cron,this.cronConfig={type:pc.DAILY,weekType:mc.WEEK,hours:"0",minutes:"0",seconds:"0"},this.frequency="1",this.during="every_hour",this.hours="0",this.minutes="0",this.seconds="0",this.disableTooltips=!1,this.timezone=""}cronChanged(){if(this.cron)try{if(!((e,t=Ic)=>{const i=e.trim().split(" ");if(i.length!=Cc)return!1;const[o,n,a,s,r,l]=i;return t(o,0,Sc-1)&&t(n,0,Sc-1)&&t(a,0,$c-1)&&t(s,1,wc,!0)&&t(r,1,yc)&&t(l,0,xc,!0)})(this.cron))return void hc({title:"Cron Scheduler",body:"Invalid Cron Expression",toast:{type:"critical"}},T(this));this.setsFieldsFromCronEx()}catch(e){return console.error("Error:",e),void hc({title:"Cron Scheduler",body:e,toast:{type:"critical"}},T(this))}}get duringOptions(){return[{label:"Every hour",value:"every_hour"},{label:"Specific hours",value:"specific_hours"}]}get frequencySuffix(){switch(this.cronConfig.type){case pc.MINUTES:return"Minute(s)";case pc.HOURLY:return"Hour(s)";case pc.DAILY:return"Day(s)";case pc.MONTHLY:return"Month(s)";default:return""}}get frequencyList(){switch(this.cronConfig.type){case pc.MINUTES:const e=[1,2,3,4,5,6,10,12,15,20,30],t=this.minMinuteInterval?Number(this.minMinuteInterval):1;return e.filter(e=>e>=t);case pc.HOURLY:return Array.from({length:$c-1},(e,t)=>t+1);case pc.DAILY:return Array.from({length:wc},(e,t)=>t+1);case pc.MONTHLY:case pc.YEARLY:return Array.from({length:yc},(e,t)=>t+1);case pc.WEEKLY:return[1];default:return[]}}get hourOptions(){return Array.from({length:$c},(e,t)=>({label:t.toString(),value:t.toString()}))}get selectedHours(){return this.hours&&"*"!==this.hours&&"0"!==this.hours?this.hours.split(","):"*"===this.hours?this.hourOptions.map(e=>e.value):[this.hours]}handleHoursChange(e){const t=e.detail;t.length===$c?(this.hours="*",this.frequency="1",this.cronConfig.frequency="1"):t&&0!==t.length?this.hours=t.sort((e,t)=>Number(e)-Number(t)).join(","):this.hours="0",this.handleChange("hours")}get isMinutesRecurrenceEnabled(){return!this.minMinuteInterval||Number(this.minMinuteInterval)<=30}get isSpecificHours(){return"specific_hours"===this.during}get isDailyFrequencyDisabled(){return this.cronConfig.type===pc.DAILY&&this.cronConfig.weekType===mc.WORK_WEEK}minMinuteIntervalChanged(){this.minMinuteInterval>=60&&console.warn("Minimum minute interval has no effect on schedules with an hourly or longer recurrance")}connectedCallback(){super.connectedCallback(),this.addEventListener(Tc.updateCronConfig,this.handleCronConfigUpdate)}disconnectedCallback(){this.removeEventListener(Tc.updateCronConfig,this.handleCronConfigUpdate)}getBaseConfigFields(){return{frequency:this.frequency,hours:this.hours,minutes:this.minutes,seconds:this.seconds}}handleRecurrenceChange(){switch(this.recurrence){case pc.MINUTES:const e=this.getBaseConfigFields(),{minutes:t}=e,i=(0,C.Tt)(e,["minutes"]);this.during="every_hour",this.hours="*";const o=[1,2,3,4,5,6,10,12,15,20,30],n=this.minMinuteInterval?Number(this.minMinuteInterval):1,a=o.find(e=>e>=n)||1;this.cronConfig=Object.assign(Object.assign({type:pc.MINUTES},i),{frequency:a.toString(),during:"every_hour",hours:"*"}),this.generateCronExpressionFromConfig(this.cronConfig);break;case pc.HOURLY:const s=this.getBaseConfigFields(),{hours:r}=s,l=(0,C.Tt)(s,["hours"]);this.during="every_hour",this.hours="0",this.cronConfig=Object.assign(Object.assign({type:pc.HOURLY},l),{frequency:"1",during:"every_hour",hours:"0"}),this.generateCronExpressionFromConfig(this.cronConfig);break;case pc.DAILY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:pc.DAILY},this.getBaseConfigFields()),{frequency:"1",weekType:mc.WEEK}),this.generateCronExpressionFromConfig(this.cronConfig);break;case pc.WEEKLY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:pc.WEEKLY},this.getBaseConfigFields()),{frequency:"1",selectedDays:new Set(["2"])}),this.generateCronExpressionFromConfig(this.cronConfig);break;case pc.MONTHLY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:pc.MONTHLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:vc.DATE,dayDate:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;case pc.YEARLY:("*"===this.hours||this.hours.includes(","))&&(this.hours="0"),this.cronConfig=Object.assign(Object.assign({type:pc.YEARLY},this.getBaseConfigFields()),{frequency:"1",dateOrDay:{type:vc.DATE,dayDate:"1",month:"1"}}),this.generateCronExpressionFromConfig(this.cronConfig);break;default:hc({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},T(this))}}handleChange(e){if("frequency"===e&&0===Number(this.frequency))throw new Error("Frequency must be greater than 0");this.cronConfig[e]=this[e],this.generateCronExpressionFromConfig(this.cronConfig)}handleDuringChange(){"every_hour"===this.during?this.hours="*":"*"===this.hours&&(this.hours="0"),this.cronConfig.type!==pc.MINUTES&&this.cronConfig.type!==pc.HOURLY||(this.cronConfig.during=this.during,this.cronConfig.hours=this.hours),this.generateCronExpressionFromConfig(this.cronConfig)}handleCronConfigUpdate({detail:e}){this.cronConfig=Object.assign(Object.assign({},this.getBaseConfigFields()),e),this.generateCronExpressionFromConfig(this.cronConfig)}generateCronExpressionFromConfig(e){switch(e.type){case pc.MINUTES:this.cron=function(e){const t="specific_hours"===e.during&&e.hours?e.hours:"*";return`${e.seconds} 0/${e.frequency} ${t} ? * *`}(e);break;case pc.HOURLY:this.cron=function(e){return"specific_hours"===e.during&&e.hours&&"*"!==e.hours?`${e.seconds} ${e.minutes} ${e.hours} ? * *`:`${e.seconds} ${e.minutes} 0/${e.frequency} ? * *`}(e);break;case pc.DAILY:this.cron=function(e,t=kc){const i=e.weekType===mc.WORK_WEEK?"?":`*${t(e.frequency)}`;return`${e.seconds} ${e.minutes} ${e.hours} ${i} * ${e.weekType===mc.WORK_WEEK?"2-6":"?"}`}(e,kc);break;case pc.WEEKLY:this.cron=function(e){const t=[...e.selectedDays].join(",")||"*";return`${e.seconds} ${e.minutes} ${e.hours} ? * ${t}`}(e);break;case pc.MONTHLY:this.cron=function(e,t=kc){const{dateOrDay:i,minutes:o,hours:n,seconds:a,frequency:s}=e,r=t(s);return i.type===vc.DATE?`${a} ${o} ${n} ${i.dayDate} *${r} ?`:"-1"===i.weekNumber?`${a} ${o} ${n} ? *${r} ${i.day}L`:`${e.seconds} ${o} ${n} ? *${r} ${i.day}#${i.weekNumber}`}(e,kc);break;case pc.YEARLY:this.cron=function(e){const{dateOrDay:t,minutes:i,seconds:o,hours:n}=e;return t.type===vc.DATE?`${o} ${i} ${n} ${t.dayDate} ${t.month} ?`:"-1"===t.weekNumber?`${o} ${i} ${n} ? ${t.month} ${t.day}L`:`${o} ${i} ${n} ? ${t.month} ${t.day}#${t.weekNumber}`}(e);break;default:hc({title:"Cron Scheduler",body:"Recurrence type should be one of the known types: Daily, Weekly,Monthly or Yearly",toast:{type:"critical"}},T(this))}this.value=this.cron,this.$emit("change")}setsFieldsFromCronEx(){this.cronConfig=function(e,t){if(!e)return;const i=e.split(" "),[o,n,a,s,r,l]=i;if("?"!==l&&"?"!==s)throw new Error("Support for specifying both a day-of-week AND a day-of-month parameter is not implemented");if(/^(0|\*)\/\d+$/.test(n))return Object.assign({seconds:o},t.buildConfigForMinutesRecurrence(n,a));if(/^(0|\*)\/\d+$/.test(a))return Object.assign({minutes:n,seconds:o},t.buildConfigForHourlyRecurrence(a));if("?"===s&&"*"===l)return Object.assign({minutes:n,seconds:o},t.buildConfigForHourlyRecurrence(a));if("2-6"===l||"?"===l&&("*"===s||s.startsWith("*")))return Object.assign({hours:a,minutes:n,seconds:o},t.buildConfigForDailyRecurrence(s,l));if(/^([1-7](,[1-7])*)$/.test(l)||"*"===l)return Object.assign({hours:a,minutes:n,seconds:o},t.buildConfigForWeeklyRecurrence(l));if(l.includes("L")||l.includes("#")||/^([1-9]|[12]\d|3[01])$/.test(s)&&"?"===l)return"*"==r||r.startsWith("*/")?Object.assign({hours:a,minutes:n,seconds:o},t.buildConfigForMonthlyRecurrence(s,r,l)):Object.assign({hours:a,minutes:n,seconds:o},t.buildConfigForYearlyRecurrence(s,r,l));throw new Error("Invalid Cron Expression")}(this.cron,this.getConfigs),this.recurrence=this.cronConfig.type,this.frequency=this.cronConfig.frequency;const e=this.cronConfig;"minutes"in e&&(this.minutes=e.minutes),e.type!==pc.MINUTES&&e.type!==pc.HOURLY||(this.during=e.during||"every_hour",e.hours&&(this.hours=e.hours)),this.seconds=e.seconds,e.type!==pc.HOURLY&&e.type!==pc.MINUTES&&(this.hours=e.hours)}}(0,C.Cg)([l.observable],ru.prototype,"recurrence",void 0),(0,C.Cg)([l.observable],ru.prototype,"cron",void 0),(0,C.Cg)([l.observable],ru.prototype,"cronConfig",void 0),(0,C.Cg)([l.observable],ru.prototype,"frequency",void 0),(0,C.Cg)([l.observable],ru.prototype,"during",void 0),(0,C.Cg)([l.volatile],ru.prototype,"duringOptions",null),(0,C.Cg)([l.observable],ru.prototype,"hours",void 0),(0,C.Cg)([l.observable],ru.prototype,"minutes",void 0),(0,C.Cg)([l.observable],ru.prototype,"seconds",void 0),(0,C.Cg)([l.volatile],ru.prototype,"frequencySuffix",null),(0,C.Cg)([l.volatile],ru.prototype,"frequencyList",null),(0,C.Cg)([l.volatile],ru.prototype,"hourOptions",null),(0,C.Cg)([l.volatile],ru.prototype,"selectedHours",null),(0,C.Cg)([(0,l.attr)({attribute:"min-minute-interval"})],ru.prototype,"minMinuteInterval",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"disable-tooltips"})],ru.prototype,"disableTooltips",void 0),(0,C.Cg)([l.volatile],ru.prototype,"isMinutesRecurrenceEnabled",null),(0,C.Cg)([l.volatile],ru.prototype,"isSpecificHours",null),(0,C.Cg)([l.volatile],ru.prototype,"isDailyFrequencyDisabled",null),(0,C.Cg)([l.attr],ru.prototype,"timezone",void 0);const lu=void 0,du={},cu=ru.compose(Object.assign({baseName:"scheduler-cron-builder",styles:Pc,template:su,shadowOptions:lu},du)),uu=l.css`
4322
4436
  /* Host */
4323
4437
  :host {
4324
4438
  display: flex;
@@ -4345,7 +4459,7 @@
4345
4459
  .timezone-combobox::part(listbox) {
4346
4460
  max-height: 20vh;
4347
4461
  }
4348
- `,su=e=>l.html`
4462
+ `,hu=e=>l.html`
4349
4463
  <template>
4350
4464
  <div class="container">
4351
4465
  <label class="label">Time Zone</label>
@@ -4361,9 +4475,9 @@
4361
4475
  </${e}-combobox>
4362
4476
  </div>
4363
4477
  </template>
4364
- `,au=l.html`
4365
- ${e=>su(T(e))}
4366
- `;class ru extends a.FoundationElement{constructor(){super(...arguments),this.timezone="",this.value=this.timezone}timezoneChanged(){this.value=this.timezone,this.$emit("change")}connectedCallback(){super.connectedCallback(),this.getTimeZones()}getTimeZones(){return(0,C.sH)(this,void 0,void 0,function*(){const e=["Europe/London","America/New_York"];try{const t=yield this.connect.request("VALID_TIME_ZONE",{REQUEST:{}});if(!t.REPLY||!Array.isArray(t.REPLY))throw new Error("Invalid data returned for Timezones");this.timeZones=t.REPLY.map(e=>e.ZONE_ID).sort((t,i)=>e.includes(t)&&!e.includes(i)?-1:!e.includes(t)&&e.includes(i)?1:t.localeCompare(i))}catch(e){sc({title:"Cron Scheduler",body:"Unable to fetch timezones data.",toast:{type:"critical"}},"rapid"),js.v.error(e)}})}}(0,C.Cg)([l.observable],ru.prototype,"timezone",void 0),(0,C.Cg)([ui.dm],ru.prototype,"connect",void 0),(0,C.Cg)([l.observable],ru.prototype,"timeZones",void 0);const lu=void 0,du={},cu=ru.compose(Object.assign({baseName:"scheduler-timezone",styles:nu,template:au,shadowOptions:lu},du)),uu=l.css`
4478
+ `,pu=l.html`
4479
+ ${e=>hu(T(e))}
4480
+ `;class mu extends s.FoundationElement{constructor(){super(...arguments),this.timezone="",this.value=this.timezone}timezoneChanged(){this.value=this.timezone,this.$emit("change")}connectedCallback(){super.connectedCallback(),this.getTimeZones()}getTimeZones(){return(0,C.sH)(this,void 0,void 0,function*(){const e=["Europe/London","America/New_York"];try{const t=yield this.connect.request("VALID_TIME_ZONE",{REQUEST:{}});if(!t.REPLY||!Array.isArray(t.REPLY))throw new Error("Invalid data returned for Timezones");this.timeZones=t.REPLY.map(e=>e.ZONE_ID).sort((t,i)=>e.includes(t)&&!e.includes(i)?-1:!e.includes(t)&&e.includes(i)?1:t.localeCompare(i))}catch(e){hc({title:"Cron Scheduler",body:"Unable to fetch timezones data.",toast:{type:"critical"}},"rapid"),ja.v.error(e)}})}}(0,C.Cg)([l.observable],mu.prototype,"timezone",void 0),(0,C.Cg)([ui.dm],mu.prototype,"connect",void 0),(0,C.Cg)([l.observable],mu.prototype,"timeZones",void 0);const vu=void 0,gu={},fu=mu.compose(Object.assign({baseName:"scheduler-timezone",styles:uu,template:pu,shadowOptions:vu},gu)),bu=l.css`
4367
4481
  .search-bar-combobox {
4368
4482
  width: 100%;
4369
4483
  min-width: auto;
@@ -4439,12 +4553,12 @@
4439
4553
  .close-icon {
4440
4554
  color: var(--accent-fill-rest);
4441
4555
  }
4442
- `,hu=(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',pu=()=>'\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>',mu=e=>l.html`
4556
+ `,yu=(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',wu=()=>'\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>',Cu=e=>l.html`
4443
4557
 
4444
4558
  <label part="label" for="control" data-test-id="label" class=${e=>{var t;return(0,x.x)("label",["label-hidden",!(null===(t=e.defaultSlottedNodes)||void 0===t?void 0:t.length)])}}
4445
4559
  >
4446
4560
  <slot
4447
- ${(0,l.slotted)({property:"defaultSlottedNodes",filter:a.whitespaceFilter})}
4561
+ ${(0,l.slotted)({property:"defaultSlottedNodes",filter:s.whitespaceFilter})}
4448
4562
  ></slot>
4449
4563
  </label>
4450
4564
 
@@ -4519,9 +4633,9 @@
4519
4633
  </${e}-button>
4520
4634
  `)}
4521
4635
  </${e}-search-bar-combobox>
4522
- `,gu=l.html`
4523
- ${e=>mu(T(e))}
4524
- `,vu=10,fu=3,bu=1,yu=(e,t)=>(new j.b).withExpression((new G.K).withField(e).withValue(t).withSerialiser(V.n.containsIgnoreCase).build()).build();class wu extends a.FoundationElement{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=fu,this.position=zt.BELOW,this.placeholder="Start typing to search",this.clearButton=!0,this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g," "),this.addOrReplaceSelectedText=(e,t,i)=>(null==t?void 0:t.length)>0?e.replace(t,i):e.concat(i)}clear(){this.selectedOptions=[],this.searchTerm="",this.combobox&&(this.combobox.currentValue="",this.combobox.value=""),this.$emit("selectionChange",[])}clearSearch(){this.clear()}get showClearAffordance(){var e,t,i;if(!this.clearButton)return!1;const o=(null!==(i=null!==(e=this.searchTerm)&&void 0!==e?e:null===(t=this.combobox)||void 0===t?void 0:t.value)&&void 0!==i?i:"").trim();return this.selectedOptions.length>0||o.length>0}get allSearchFieldsUsed(){var e;return!!(null===(e=this.options)||void 0===e?void 0:e.length)&&this.options.every(e=>this.selectedOptions.some(t=>t.field===e.field))}isOptionEnabled(e){return e.isEnabled?e.isEnabled(this.searchTerm,this.selectedOptions,this.minlength):this.searchTerm.length>=this.minlength&&!this.selectedOptions.some(t=>t.field===e.field)}selectedOptionsChanged(){this.applySearchInputLock()}optionsChanged(){this.applySearchInputLock()}applySearchInputLock(){this.combobox&&this.allSearchFieldsUsed&&(this.searchTerm="",this.combobox.value="",this.combobox.currentValue="",this.combobox.open=!1,this.filteredOptions=[])}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){const e=[];this.combobox.selectedOptions.forEach(t=>{var i,o,n;const s=t.value,a=this.searchTerm.trim();e.push({field:s,term:a,label:(null===(i=this.options.find(e=>e.field===s))||void 0===i?void 0:i.label(a))||t.text,createCriteria:null===(o=this.options.find(e=>e.field===s))||void 0===o?void 0:o.createCriteria,resourceType:null===(n=this.options.find(e=>e.field===s))||void 0===n?void 0:n.resourceType})}),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter((e,t,i)=>t===i.findIndex(t=>e.field===t.field&&e.term===t.term)),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),l.DOM.queueUpdate(()=>{setTimeout(()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)},vu)})}pasteHandler(e){var t;if(this.allSearchFieldsUsed)return void e.preventDefault();this.loading=!0;const i=e.clipboardData.getData("text/plain"),o=this.normalizeDelimiter(i),n=null===(t=window.getSelection())||void 0===t?void 0:t.toString(),s=this.addOrReplaceSelectedText(this.combobox.value,n,o);(null==s?void 0:s.length)>=this.minlength&&(this.combobox.value=s,this.searchTerm=s,this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some(i=>i.term===e&&i.field===t)}unselectOption(e){this.selectedOptions=this.selectedOptions.filter(t=>t!==e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){return(0,C.sH)(this,void 0,void 0,function*(){this.allSearchFieldsUsed?this.applySearchInputLock():(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(i=>i.field===t.field&&i.term.trim()===e.trim()))}}(0,C.Cg)([l.observable],wu.prototype,"defaultSlottedNodes",void 0),(0,C.Cg)([l.observable],wu.prototype,"options",void 0),(0,C.Cg)([l.observable],wu.prototype,"searchTerm",void 0),(0,C.Cg)([l.attr],wu.prototype,"appearance",void 0),(0,C.Cg)([l.attr],wu.prototype,"minlength",void 0),(0,C.Cg)([l.attr],wu.prototype,"position",void 0),(0,C.Cg)([l.attr],wu.prototype,"placeholder",void 0),(0,C.Cg)([l.attr],wu.prototype,"disabled",void 0),(0,C.Cg)([(0,l.attr)({attribute:"clear-button",mode:"boolean"})],wu.prototype,"clearButton",void 0),(0,C.Cg)([l.observable],wu.prototype,"loading",void 0),(0,C.Cg)([l.observable],wu.prototype,"selectedOptions",void 0),(0,C.Cg)([l.observable],wu.prototype,"filteredOptions",void 0);const Cu=void 0,xu={},$u=wu.compose(Object.assign({baseName:"search-bar",template:gu,styles:uu,shadowOptions:Cu},xu)),Su=(e,t)=>l.css`
4636
+ `,xu=l.html`
4637
+ ${e=>Cu(T(e))}
4638
+ `,$u=10,Su=3,Eu=1,Ou=(e,t)=>(new j.b).withExpression((new G.K).withField(e).withValue(t).withSerialiser(V.n.containsIgnoreCase).build()).build();class Tu extends s.FoundationElement{constructor(){super(...arguments),this.searchTerm="",this.appearance="neutral",this.minlength=Su,this.position=zt.BELOW,this.placeholder="Start typing to search",this.clearButton=!0,this.selectedOptions=[],this.normalizeDelimiter=e=>e.trim().replace(/\t|\r\n|\n|\r|,/g," "),this.addOrReplaceSelectedText=(e,t,i)=>(null==t?void 0:t.length)>0?e.replace(t,i):e.concat(i)}clear(){this.selectedOptions=[],this.searchTerm="",this.combobox&&(this.combobox.currentValue="",this.combobox.value=""),this.$emit("selectionChange",[])}clearSearch(){this.clear()}get showClearAffordance(){var e,t,i;if(!this.clearButton)return!1;const o=(null!==(i=null!==(e=this.searchTerm)&&void 0!==e?e:null===(t=this.combobox)||void 0===t?void 0:t.value)&&void 0!==i?i:"").trim();return this.selectedOptions.length>0||o.length>0}get allSearchFieldsUsed(){var e;return!!(null===(e=this.options)||void 0===e?void 0:e.length)&&this.options.every(e=>this.selectedOptions.some(t=>t.field===e.field))}isOptionEnabled(e){return e.isEnabled?e.isEnabled(this.searchTerm,this.selectedOptions,this.minlength):this.searchTerm.length>=this.minlength&&!this.selectedOptions.some(t=>t.field===e.field)}selectedOptionsChanged(){this.applySearchInputLock()}optionsChanged(){this.applySearchInputLock()}applySearchInputLock(){this.combobox&&this.allSearchFieldsUsed&&(this.searchTerm="",this.combobox.value="",this.combobox.currentValue="",this.combobox.open=!1,this.filteredOptions=[])}inputdeleted(){this.selectedOptions.length>0&&this.unselectOption(this.selectedOptions[this.selectedOptions.length-1])}changeHandler(){const e=[];this.combobox.selectedOptions.forEach(t=>{var i,o,n;const a=t.value,s=this.searchTerm.trim();e.push({field:a,term:s,label:(null===(i=this.options.find(e=>e.field===a))||void 0===i?void 0:i.label(s))||t.text,createCriteria:null===(o=this.options.find(e=>e.field===a))||void 0===o?void 0:o.createCriteria,resourceType:null===(n=this.options.find(e=>e.field===a))||void 0===n?void 0:n.resourceType})}),this.selectedOptions=[...this.selectedOptions,...e],this.selectedOptions=this.selectedOptions.filter((e,t,i)=>t===i.findIndex(t=>e.field===t.field&&e.term===t.term)),this.combobox.value="",this.combobox.open=!1,this.$emit("selectionChange",this.selectedOptions),l.DOM.queueUpdate(()=>{setTimeout(()=>{this.selectedOptionsDiv.scrollTo(this.selectedOptionsDiv.scrollWidth,0)},$u)})}pasteHandler(e){var t;if(this.allSearchFieldsUsed)return void e.preventDefault();this.loading=!0;const i=e.clipboardData.getData("text/plain"),o=this.normalizeDelimiter(i),n=null===(t=window.getSelection())||void 0===t?void 0:t.toString(),a=this.addOrReplaceSelectedText(this.combobox.value,n,o);(null==a?void 0:a.length)>=this.minlength&&(this.combobox.value=a,this.searchTerm=a,this.combobox.open=!0),this.loading=!1}hasSelectedOption(e,t){return this.selectedOptions.some(i=>i.term===e&&i.field===t)}unselectOption(e){this.selectedOptions=this.selectedOptions.filter(t=>t!==e),this.$emit("selectionChange",this.selectedOptions)}inputHandler(){return(0,C.sH)(this,void 0,void 0,function*(){this.allSearchFieldsUsed?this.applySearchInputLock():(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(i=>i.field===t.field&&i.term.trim()===e.trim()))}}(0,C.Cg)([l.observable],Tu.prototype,"defaultSlottedNodes",void 0),(0,C.Cg)([l.observable],Tu.prototype,"options",void 0),(0,C.Cg)([l.observable],Tu.prototype,"searchTerm",void 0),(0,C.Cg)([l.attr],Tu.prototype,"appearance",void 0),(0,C.Cg)([l.attr],Tu.prototype,"minlength",void 0),(0,C.Cg)([l.attr],Tu.prototype,"position",void 0),(0,C.Cg)([l.attr],Tu.prototype,"placeholder",void 0),(0,C.Cg)([l.attr],Tu.prototype,"disabled",void 0),(0,C.Cg)([(0,l.attr)({attribute:"clear-button",mode:"boolean"})],Tu.prototype,"clearButton",void 0),(0,C.Cg)([l.observable],Tu.prototype,"loading",void 0),(0,C.Cg)([l.observable],Tu.prototype,"selectedOptions",void 0),(0,C.Cg)([l.observable],Tu.prototype,"filteredOptions",void 0);const ku=void 0,Du={},Iu=Tu.compose(Object.assign({baseName:"search-bar",template:xu,styles:bu,shadowOptions:ku},Du)),Ru=(e,t)=>l.css`
4525
4639
  ${yi(e,t)}
4526
4640
  .control {
4527
4641
  width: auto;
@@ -4558,7 +4672,7 @@
4558
4672
  :host(.input-locked) .selected-value {
4559
4673
  display: none;
4560
4674
  }
4561
- `,Eu=(e,t)=>l.html`
4675
+ `,Au=(e,t)=>l.html`
4562
4676
  <template
4563
4677
  aria-disabled="${e=>e.ariaDisabled}"
4564
4678
  autocomplete="${e=>e.autocomplete}"
@@ -4594,7 +4708,7 @@
4594
4708
  />
4595
4709
  </slot>
4596
4710
  </div>
4597
- ${(0,a.endSlotTemplate)(e,t)}
4711
+ ${(0,s.endSlotTemplate)(e,t)}
4598
4712
  <div
4599
4713
  class="listbox"
4600
4714
  id="${e=>e.listboxId}"
@@ -4606,11 +4720,11 @@
4606
4720
  data-test-id="listbox"
4607
4721
  >
4608
4722
  <slot
4609
- ${(0,l.slotted)({filter:a.Listbox.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
4723
+ ${(0,l.slotted)({filter:s.Listbox.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
4610
4724
  ></slot>
4611
4725
  </div>
4612
4726
  </template>
4613
- `,Ou=new Set(["Backspace","Delete","Tab","Escape","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);class Tu extends r.Combobox{constructor(){super(...arguments),this.minlength=bu,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){const t=e.key;if(this.inputLocked){const i=e.ctrlKey||e.metaKey||e.altKey;if(!(Ou.has(t)||i))return e.preventDefault(),!1}switch(t){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){if(this.inputLocked)return this.control.value="",this.value="",this.open=!1,void e.stopImmediatePropagation();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,C.Cg)([l.attr],Tu.prototype,"minlength",void 0),(0,C.Cg)([l.observable],Tu.prototype,"inputLocked",void 0);const ku={delegatesFocus:!0,mode:"open"},Du={},Iu=Tu.compose(Object.assign({baseName:"search-bar-combobox",template:Eu,styles:Su,shadowOptions:ku},Du)),Ru=l.css`
4727
+ `,Lu=new Set(["Backspace","Delete","Tab","Escape","ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End"]);class Nu extends r.Combobox{constructor(){super(...arguments),this.minlength=Eu,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){const t=e.key;if(this.inputLocked){const i=e.ctrlKey||e.metaKey||e.altKey;if(!(Lu.has(t)||i))return e.preventDefault(),!1}switch(t){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){if(this.inputLocked)return this.control.value="",this.value="",this.open=!1,void e.stopImmediatePropagation();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,C.Cg)([l.attr],Nu.prototype,"minlength",void 0),(0,C.Cg)([l.observable],Nu.prototype,"inputLocked",void 0);const Fu={delegatesFocus:!0,mode:"open"},Mu={},_u=Nu.compose(Object.assign({baseName:"search-bar-combobox",template:Au,styles:Ru,shadowOptions:Fu},Mu)),Hu=l.css`
4614
4728
  :host {
4615
4729
  display: block;
4616
4730
  width: 100%;
@@ -4803,7 +4917,7 @@
4803
4917
  .section-link.state-none {
4804
4918
  color: var(--neutral-foreground-rest);
4805
4919
  }
4806
- `,Au=l.html`
4920
+ `,Pu=l.html`
4807
4921
  ${e=>{return t=T(e),l.html`
4808
4922
  <template>
4809
4923
  <div
@@ -4848,7 +4962,7 @@
4848
4962
  </div>
4849
4963
  </template>
4850
4964
  `;var t}}
4851
- `,Lu=(0,it.createLogger)("SectionNavigator"),Nu="section-navigator",Fu={setState:`${Nu}-set-state`,setStates:`${Nu}-set-states`,clearState:`${Nu}-clear-state`,clearAllStates:`${Nu}-clear-all-states`},Mu={active:"Active",inactive:"Inactive",pending:"Pending",disabled:"Disabled",error:"Error",completed:"Completed"},_u={active:{name:"circle-dot",variant:"solid"},inactive:{name:"times-circle",variant:"regular"},pending:{name:"clock",variant:"solid"},disabled:{name:"ban",variant:"solid"},error:{name:"times",variant:"solid"},completed:{name:"check",variant:"solid"}};class Hu extends a.FoundationElement{constructor(){super(...arguments),this.sections=[],this.scrollBehavior="top",this.stateTooltips=Mu,this.stateIcons=_u,this.disableAutoScrollDetection=!1,this.userClickedSection=!1,this.isUserScrolling=!1,this.sectionItems=[],this.activeSection=""}sectionsChanged(){this.setSectionItems(),this.setActiveSection(),this.updateScrollDetection()}disableAutoScrollDetectionChanged(){this.updateScrollDetection()}scrollBehaviorChanged(){this.updateSpacer()}connectedCallback(){super.connectedCallback(),this.setSectionItems(),this.setActiveSection(),this.updateSpacer(),this.setupStateEventListeners(),this.updateScrollDetection()}setSectionItems(){if(!Array.isArray(this.sections))return Lu.warn("Sections must be an array"),void(this.sectionItems=[]);this.sectionItems=this.sections}setActiveSection(){this.sectionItems.length>0&&!this.activeSection&&(this.activeSection=this.sectionItems[0].name)}handleSectionClick(e){this.activeSection=e,this.userClickedSection=!0,this.scrollToSection(e)}updateSpacer(){var e;if(this.sectionContent){if(null===(e=this.spacerElement)||void 0===e||e.remove(),this.spacerElement=void 0,"top"===this.scrollBehavior)try{const e=this.sectionContent.clientHeight,t=this.sectionContent.querySelector(".content-section:last-child");if(t){const i=t.offsetHeight,o=20,n=Math.max(0,e-i-o);this.spacerElement=document.createElement("div"),this.spacerElement.className="scroll-spacer",this.spacerElement.style.height=`${n}px`,this.spacerElement.style.pointerEvents="none",this.sectionContent.appendChild(this.spacerElement)}}catch(e){Lu.error("Error updating spacer:",e)}}else Lu.warn("Section content element not found")}scrollToSection(e){if(this.sectionContent)try{const t=this.sectionContent.querySelector(`[data-section="${e}"]`);if(!t)return void Lu.warn(`Section "${e}" not found`);const i=t.offsetTop-this.sectionContent.offsetTop;this.sectionContent.scrollTo({top:i,behavior:"smooth"}),this.setupScrollEndDetection()}catch(e){Lu.error("Error scrolling to section:",e)}else Lu.warn("Section content not available")}updateScrollDetection(){this.cleanupScrollDetection(),!this.disableAutoScrollDetection&&this.sectionContent&&this.setupScrollDetection()}setupScrollDetection(){if(this.sectionContent)try{this.scrollCheckHandler=()=>{this.isUserScrolling&&!this.userClickedSection&&(this.scrollDebounceTimeout&&clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=window.setTimeout(()=>{this.updateActiveSectionBasedOnScrollPosition()},Hu.SCROLL_DEBOUNCE_TIMEOUT))},this.sectionContent.addEventListener("scroll",this.scrollCheckHandler,{passive:!0});const e=()=>{this.isUserScrolling=!0},t=()=>{this.isUserScrolling=!1,this.userClickedSection=!1};let i;this.sectionContent.addEventListener("wheel",e,{passive:!0}),this.sectionContent.addEventListener("touchstart",e,{passive:!0}),this.sectionContent.addEventListener("mousedown",e,{passive:!0}),this.sectionContent.addEventListener("scrollend",t,{passive:!0}),this.sectionContent.addEventListener("scroll",()=>{clearTimeout(i),i=window.setTimeout(t,Hu.SCROLL_END_TIMEOUT)},{passive:!0})}catch(e){Lu.error("Error setting up scroll detection:",e)}else Lu.warn("Section content not available for scroll detection")}updateActiveSectionBasedOnScrollPosition(){if(!this.sectionContent)return;const e=this.sectionContent.scrollTop+this.sectionContent.clientHeight/2;let t=null,i=1/0;this.sectionItems.forEach(o=>{const n=this.sectionContent.querySelector(`[data-section="${o.name}"]`);if(n){const s=n.offsetTop+n.clientHeight/2,a=Math.abs(s-e);a<i&&(i=a,t=o.name)}}),t&&t!==this.activeSection&&(this.activeSection=t)}setupScrollEndDetection(){this.sectionContent&&(this.cleanupScrollEndDetection(),this.scrollEndHandler=()=>{this.userClickedSection=!1,this.cleanupScrollEndDetection()},this.sectionContent.addEventListener("scroll",this.scrollEndHandler,{passive:!0}))}cleanupScrollEndDetection(){this.scrollEndHandler&&this.sectionContent&&(this.sectionContent.removeEventListener("scroll",this.scrollEndHandler),this.scrollEndHandler=void 0)}cleanupScrollDetection(){this.scrollCheckHandler&&this.sectionContent&&(this.sectionContent.removeEventListener("scroll",this.scrollCheckHandler),this.scrollCheckHandler=void 0),this.scrollDebounceTimeout&&(clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=void 0),this.cleanupScrollEndDetection()}setupStateEventListeners(){this.sectionContent?(this.handleSetStateRef=e=>{try{const{sectionName:t,stateName:i}=e.detail;this.addState(t,i)}catch(e){Lu.error("Error handling set-state event:",e)}},this.handleSetStatesRef=e=>{try{const{sectionName:t,stateNames:i}=e.detail;this.addStates(t,i)}catch(e){Lu.error("Error handling set-states event:",e)}},this.handleClearStateRef=e=>{try{const{sectionName:t,stateName:i}=e.detail;this.clearState(t,i)}catch(e){Lu.error("Error handling clear-state event:",e)}},this.handleClearAllStatesRef=e=>{try{const{sectionName:t}=e.detail;t?this.clearAllStates(t):this.clearAllStatesInAllSections()}catch(e){Lu.error("Error handling clear-all-states event:",e)}},this.handleGenericStateEventRef=e=>{try{const t=e.type,i=e.detail;if(null==i?void 0:i.sectionName)return;const o=e.target.closest("[data-section]");let n=null==o?void 0:o.getAttribute("data-section");if(!n){const t=e.target.closest("[slot]");n=(null==t?void 0:t.getAttribute("slot"))||this.activeSection}n||(n=this.activeSection),e.stopPropagation(),e.preventDefault();const s=Object.assign(Object.assign({},i),{sectionName:n}),a=new CustomEvent(t,{detail:s,bubbles:!0,cancelable:!0});this.dispatchEvent(a)}catch(e){Lu.error("Error handling generic state event:",e)}},this.addEventListener(Fu.setState,this.handleSetStateRef),this.addEventListener(Fu.setStates,this.handleSetStatesRef),this.addEventListener(Fu.clearState,this.handleClearStateRef),this.addEventListener(Fu.clearAllStates,this.handleClearAllStatesRef),this.sectionContent.addEventListener(Fu.setState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(Fu.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(Fu.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(Fu.clearAllStates,this.handleGenericStateEventRef,!0)):Lu.warn("Section content not available for event listeners")}updateSectionStates(e,t){const i=this.sectionItems.findIndex(t=>t.name===e);if(-1!==i){const e=Object.assign(Object.assign({},this.sectionItems[i]),{states:t});this.sectionItems=[...this.sectionItems.slice(0,i),e,...this.sectionItems.slice(i+1)]}}addState(e,t){if(!e||!t)return void Lu.warn("Section name and state name are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void Lu.warn(`Section "${e}" not found`);const o=this.sectionItems[i].states||[];if(!o.includes(t)){const i=[...o,t];this.updateSectionStates(e,i)}}addStates(e,t){if(!e||!Array.isArray(t))return void Lu.warn("Section name and state names array are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void Lu.warn(`Section "${e}" not found`);const o=[...this.sectionItems[i].states||[]];t.forEach(e=>{o.includes(e)||o.push(e)}),this.updateSectionStates(e,o)}clearState(e,t){if(!e||!t)return void Lu.warn("Section name and state name are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void Lu.warn(`Section "${e}" not found`);const o=this.sectionItems[i].states||[],n=o.indexOf(t);if(n>-1){const t=o.filter((e,t)=>t!==n);this.updateSectionStates(e,t)}}clearAllStates(e){if(!e)return void Lu.warn("Section name is required");-1!==this.sectionItems.findIndex(t=>t.name===e)?this.updateSectionStates(e,[]):Lu.warn(`Section "${e}" not found`)}clearAllStatesInAllSections(){this.sectionItems=this.sectionItems.map(e=>Object.assign(Object.assign({},e),{states:[]}))}getStateTooltip(e){return e?this.stateTooltips[e]||"":(Lu.warn("State name is required"),"")}getSectionStateClass(e){if(!e)return Lu.warn("Section is required"),"state-none";const t=e.states||[];if(0===t.length)return"state-none";if(t.length>1)return"state-multiple";return`state-${t[0]}`}getStateIcon(e){return e?this.stateIcons[e]||_u[e]:(Lu.warn("State name is required"),_u.active)}disconnectedCallback(){var e;super.disconnectedCallback(),this.handleSetStateRef&&this.removeEventListener(Fu.setState,this.handleSetStateRef),this.handleSetStatesRef&&this.removeEventListener(Fu.setStates,this.handleSetStatesRef),this.handleClearStateRef&&this.removeEventListener(Fu.clearState,this.handleClearStateRef),this.handleClearAllStatesRef&&this.removeEventListener(Fu.clearAllStates,this.handleClearAllStatesRef),this.handleGenericStateEventRef&&this.sectionContent&&(this.sectionContent.removeEventListener(Fu.setState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(Fu.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(Fu.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(Fu.clearAllStates,this.handleGenericStateEventRef,!0)),this.cleanupScrollDetection(),null===(e=this.spacerElement)||void 0===e||e.remove(),this.spacerElement=void 0}}Hu.SCROLL_END_TIMEOUT=150,Hu.SCROLL_DEBOUNCE_TIMEOUT=100,(0,C.Cg)([l.observable],Hu.prototype,"sections",void 0),(0,C.Cg)([(0,l.attr)({attribute:"scroll-behavior"})],Hu.prototype,"scrollBehavior",void 0),(0,C.Cg)([(0,l.attr)({attribute:"state-tooltips"})],Hu.prototype,"stateTooltips",void 0),(0,C.Cg)([(0,l.attr)({attribute:"state-icons"})],Hu.prototype,"stateIcons",void 0),(0,C.Cg)([(0,l.attr)({attribute:"disable-auto-scroll-detection",mode:"boolean"})],Hu.prototype,"disableAutoScrollDetection",void 0),(0,C.Cg)([l.observable],Hu.prototype,"sectionItems",void 0),(0,C.Cg)([l.observable],Hu.prototype,"activeSection",void 0);const Pu={mode:"open"},zu={},Uu=Hu.compose(Object.assign({baseName:"foundation-section-navigator",template:Au,styles:Ru,shadowOptions:Pu},zu)),Bu=(e,t)=>l.css`
4965
+ `,zu=(0,it.createLogger)("SectionNavigator"),Uu="section-navigator",Bu={setState:`${Uu}-set-state`,setStates:`${Uu}-set-states`,clearState:`${Uu}-clear-state`,clearAllStates:`${Uu}-clear-all-states`},Vu={active:"Active",inactive:"Inactive",pending:"Pending",disabled:"Disabled",error:"Error",completed:"Completed"},Gu={active:{name:"circle-dot",variant:"solid"},inactive:{name:"times-circle",variant:"regular"},pending:{name:"clock",variant:"solid"},disabled:{name:"ban",variant:"solid"},error:{name:"times",variant:"solid"},completed:{name:"check",variant:"solid"}};class ju extends s.FoundationElement{constructor(){super(...arguments),this.sections=[],this.scrollBehavior="top",this.stateTooltips=Vu,this.stateIcons=Gu,this.disableAutoScrollDetection=!1,this.userClickedSection=!1,this.isUserScrolling=!1,this.sectionItems=[],this.activeSection=""}sectionsChanged(){this.setSectionItems(),this.setActiveSection(),this.updateScrollDetection()}disableAutoScrollDetectionChanged(){this.updateScrollDetection()}scrollBehaviorChanged(){this.updateSpacer()}connectedCallback(){super.connectedCallback(),this.setSectionItems(),this.setActiveSection(),this.updateSpacer(),this.setupStateEventListeners(),this.updateScrollDetection()}setSectionItems(){if(!Array.isArray(this.sections))return zu.warn("Sections must be an array"),void(this.sectionItems=[]);this.sectionItems=this.sections}setActiveSection(){this.sectionItems.length>0&&!this.activeSection&&(this.activeSection=this.sectionItems[0].name)}handleSectionClick(e){this.activeSection=e,this.userClickedSection=!0,this.scrollToSection(e)}updateSpacer(){var e;if(this.sectionContent){if(null===(e=this.spacerElement)||void 0===e||e.remove(),this.spacerElement=void 0,"top"===this.scrollBehavior)try{const e=this.sectionContent.clientHeight,t=this.sectionContent.querySelector(".content-section:last-child");if(t){const i=t.offsetHeight,o=20,n=Math.max(0,e-i-o);this.spacerElement=document.createElement("div"),this.spacerElement.className="scroll-spacer",this.spacerElement.style.height=`${n}px`,this.spacerElement.style.pointerEvents="none",this.sectionContent.appendChild(this.spacerElement)}}catch(e){zu.error("Error updating spacer:",e)}}else zu.warn("Section content element not found")}scrollToSection(e){if(this.sectionContent)try{const t=this.sectionContent.querySelector(`[data-section="${e}"]`);if(!t)return void zu.warn(`Section "${e}" not found`);const i=t.offsetTop-this.sectionContent.offsetTop;this.sectionContent.scrollTo({top:i,behavior:"smooth"}),this.setupScrollEndDetection()}catch(e){zu.error("Error scrolling to section:",e)}else zu.warn("Section content not available")}updateScrollDetection(){this.cleanupScrollDetection(),!this.disableAutoScrollDetection&&this.sectionContent&&this.setupScrollDetection()}setupScrollDetection(){if(this.sectionContent)try{this.scrollCheckHandler=()=>{this.isUserScrolling&&!this.userClickedSection&&(this.scrollDebounceTimeout&&clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=window.setTimeout(()=>{this.updateActiveSectionBasedOnScrollPosition()},ju.SCROLL_DEBOUNCE_TIMEOUT))},this.sectionContent.addEventListener("scroll",this.scrollCheckHandler,{passive:!0});const e=()=>{this.isUserScrolling=!0},t=()=>{this.isUserScrolling=!1,this.userClickedSection=!1};let i;this.sectionContent.addEventListener("wheel",e,{passive:!0}),this.sectionContent.addEventListener("touchstart",e,{passive:!0}),this.sectionContent.addEventListener("mousedown",e,{passive:!0}),this.sectionContent.addEventListener("scrollend",t,{passive:!0}),this.sectionContent.addEventListener("scroll",()=>{clearTimeout(i),i=window.setTimeout(t,ju.SCROLL_END_TIMEOUT)},{passive:!0})}catch(e){zu.error("Error setting up scroll detection:",e)}else zu.warn("Section content not available for scroll detection")}updateActiveSectionBasedOnScrollPosition(){if(!this.sectionContent)return;const e=this.sectionContent.scrollTop+this.sectionContent.clientHeight/2;let t=null,i=1/0;this.sectionItems.forEach(o=>{const n=this.sectionContent.querySelector(`[data-section="${o.name}"]`);if(n){const a=n.offsetTop+n.clientHeight/2,s=Math.abs(a-e);s<i&&(i=s,t=o.name)}}),t&&t!==this.activeSection&&(this.activeSection=t)}setupScrollEndDetection(){this.sectionContent&&(this.cleanupScrollEndDetection(),this.scrollEndHandler=()=>{this.userClickedSection=!1,this.cleanupScrollEndDetection()},this.sectionContent.addEventListener("scroll",this.scrollEndHandler,{passive:!0}))}cleanupScrollEndDetection(){this.scrollEndHandler&&this.sectionContent&&(this.sectionContent.removeEventListener("scroll",this.scrollEndHandler),this.scrollEndHandler=void 0)}cleanupScrollDetection(){this.scrollCheckHandler&&this.sectionContent&&(this.sectionContent.removeEventListener("scroll",this.scrollCheckHandler),this.scrollCheckHandler=void 0),this.scrollDebounceTimeout&&(clearTimeout(this.scrollDebounceTimeout),this.scrollDebounceTimeout=void 0),this.cleanupScrollEndDetection()}setupStateEventListeners(){this.sectionContent?(this.handleSetStateRef=e=>{try{const{sectionName:t,stateName:i}=e.detail;this.addState(t,i)}catch(e){zu.error("Error handling set-state event:",e)}},this.handleSetStatesRef=e=>{try{const{sectionName:t,stateNames:i}=e.detail;this.addStates(t,i)}catch(e){zu.error("Error handling set-states event:",e)}},this.handleClearStateRef=e=>{try{const{sectionName:t,stateName:i}=e.detail;this.clearState(t,i)}catch(e){zu.error("Error handling clear-state event:",e)}},this.handleClearAllStatesRef=e=>{try{const{sectionName:t}=e.detail;t?this.clearAllStates(t):this.clearAllStatesInAllSections()}catch(e){zu.error("Error handling clear-all-states event:",e)}},this.handleGenericStateEventRef=e=>{try{const t=e.type,i=e.detail;if(null==i?void 0:i.sectionName)return;const o=e.target.closest("[data-section]");let n=null==o?void 0:o.getAttribute("data-section");if(!n){const t=e.target.closest("[slot]");n=(null==t?void 0:t.getAttribute("slot"))||this.activeSection}n||(n=this.activeSection),e.stopPropagation(),e.preventDefault();const a=Object.assign(Object.assign({},i),{sectionName:n}),s=new CustomEvent(t,{detail:a,bubbles:!0,cancelable:!0});this.dispatchEvent(s)}catch(e){zu.error("Error handling generic state event:",e)}},this.addEventListener(Bu.setState,this.handleSetStateRef),this.addEventListener(Bu.setStates,this.handleSetStatesRef),this.addEventListener(Bu.clearState,this.handleClearStateRef),this.addEventListener(Bu.clearAllStates,this.handleClearAllStatesRef),this.sectionContent.addEventListener(Bu.setState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(Bu.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(Bu.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.addEventListener(Bu.clearAllStates,this.handleGenericStateEventRef,!0)):zu.warn("Section content not available for event listeners")}updateSectionStates(e,t){const i=this.sectionItems.findIndex(t=>t.name===e);if(-1!==i){const e=Object.assign(Object.assign({},this.sectionItems[i]),{states:t});this.sectionItems=[...this.sectionItems.slice(0,i),e,...this.sectionItems.slice(i+1)]}}addState(e,t){if(!e||!t)return void zu.warn("Section name and state name are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void zu.warn(`Section "${e}" not found`);const o=this.sectionItems[i].states||[];if(!o.includes(t)){const i=[...o,t];this.updateSectionStates(e,i)}}addStates(e,t){if(!e||!Array.isArray(t))return void zu.warn("Section name and state names array are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void zu.warn(`Section "${e}" not found`);const o=[...this.sectionItems[i].states||[]];t.forEach(e=>{o.includes(e)||o.push(e)}),this.updateSectionStates(e,o)}clearState(e,t){if(!e||!t)return void zu.warn("Section name and state name are required");const i=this.sectionItems.findIndex(t=>t.name===e);if(-1===i)return void zu.warn(`Section "${e}" not found`);const o=this.sectionItems[i].states||[],n=o.indexOf(t);if(n>-1){const t=o.filter((e,t)=>t!==n);this.updateSectionStates(e,t)}}clearAllStates(e){if(!e)return void zu.warn("Section name is required");-1!==this.sectionItems.findIndex(t=>t.name===e)?this.updateSectionStates(e,[]):zu.warn(`Section "${e}" not found`)}clearAllStatesInAllSections(){this.sectionItems=this.sectionItems.map(e=>Object.assign(Object.assign({},e),{states:[]}))}getStateTooltip(e){return e?this.stateTooltips[e]||"":(zu.warn("State name is required"),"")}getSectionStateClass(e){if(!e)return zu.warn("Section is required"),"state-none";const t=e.states||[];if(0===t.length)return"state-none";if(t.length>1)return"state-multiple";return`state-${t[0]}`}getStateIcon(e){return e?this.stateIcons[e]||Gu[e]:(zu.warn("State name is required"),Gu.active)}disconnectedCallback(){var e;super.disconnectedCallback(),this.handleSetStateRef&&this.removeEventListener(Bu.setState,this.handleSetStateRef),this.handleSetStatesRef&&this.removeEventListener(Bu.setStates,this.handleSetStatesRef),this.handleClearStateRef&&this.removeEventListener(Bu.clearState,this.handleClearStateRef),this.handleClearAllStatesRef&&this.removeEventListener(Bu.clearAllStates,this.handleClearAllStatesRef),this.handleGenericStateEventRef&&this.sectionContent&&(this.sectionContent.removeEventListener(Bu.setState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(Bu.setStates,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(Bu.clearState,this.handleGenericStateEventRef,!0),this.sectionContent.removeEventListener(Bu.clearAllStates,this.handleGenericStateEventRef,!0)),this.cleanupScrollDetection(),null===(e=this.spacerElement)||void 0===e||e.remove(),this.spacerElement=void 0}}ju.SCROLL_END_TIMEOUT=150,ju.SCROLL_DEBOUNCE_TIMEOUT=100,(0,C.Cg)([l.observable],ju.prototype,"sections",void 0),(0,C.Cg)([(0,l.attr)({attribute:"scroll-behavior"})],ju.prototype,"scrollBehavior",void 0),(0,C.Cg)([(0,l.attr)({attribute:"state-tooltips"})],ju.prototype,"stateTooltips",void 0),(0,C.Cg)([(0,l.attr)({attribute:"state-icons"})],ju.prototype,"stateIcons",void 0),(0,C.Cg)([(0,l.attr)({attribute:"disable-auto-scroll-detection",mode:"boolean"})],ju.prototype,"disableAutoScrollDetection",void 0),(0,C.Cg)([l.observable],ju.prototype,"sectionItems",void 0),(0,C.Cg)([l.observable],ju.prototype,"activeSection",void 0);const Yu={mode:"open"},Wu={},qu=ju.compose(Object.assign({baseName:"foundation-section-navigator",template:Pu,styles:Hu,shadowOptions:Yu},Wu)),Ku=(e,t)=>l.css`
4852
4966
  ${(0,r.radioGroupStyles)(e,t)}
4853
4967
  ::slotted(foundation-segmented-item:first-of-type) {
4854
4968
  border-radius: calc(var(--control-corner-radius) * 1px) 0 0
@@ -4861,7 +4975,7 @@
4861
4975
  calc(var(--control-corner-radius) * 1px) 0;
4862
4976
  border-left-width: 0;
4863
4977
  }
4864
- `,Vu=(e,t)=>(0,a.radioGroupTemplate)(e,t);class Gu extends a.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.checked=!1}),super.valueChanged()}}const ju=void 0,Yu={},Wu=Gu.compose(Object.assign({baseName:"segmented-control",template:Vu,styles:Bu,shadowOptions:ju},Yu)),qu=(e,t)=>l.css`
4978
+ `,Xu=(e,t)=>(0,s.radioGroupTemplate)(e,t);class Ju extends s.RadioGroup{valueChanged(){void 0===this.value&&this.slottedRadioButtons&&this.slottedRadioButtons.forEach(e=>{e.checked=!1}),super.valueChanged()}}const Qu=void 0,Zu={},eh=Ju.compose(Object.assign({baseName:"segmented-control",template:Xu,styles:Ku,shadowOptions:Qu},Zu)),th=(e,t)=>l.css`
4865
4979
  ${(0,r.radioStyles)(e,t)}
4866
4980
  :host {
4867
4981
  padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
@@ -4872,7 +4986,7 @@
4872
4986
  :host([aria-checked='true']) {
4873
4987
  background: var(--accent-foreground-rest);
4874
4988
  }
4875
- `,Ku=(e,t)=>l.html`
4989
+ `,ih=(e,t)=>l.html`
4876
4990
  <template
4877
4991
  role="radio"
4878
4992
  aria-checked="${e=>e.checked}"
@@ -4886,7 +5000,7 @@
4886
5000
  <slot></slot>
4887
5001
  </span>
4888
5002
  </template>
4889
- `;class Xu extends r.Radio{}const Ju=void 0,Qu={},Zu=Xu.compose(Object.assign({baseName:"segmented-item",template:Ku,styles:qu,shadowOptions:Ju},Qu)),eh=(e,t)=>l.css`
5003
+ `;class oh extends r.Radio{}const nh=void 0,ah={},sh=oh.compose(Object.assign({baseName:"segmented-item",template:ih,styles:th,shadowOptions:nh},ah)),rh=(e,t)=>l.css`
4890
5004
  ${(0,r.selectStyles)(e,t)}
4891
5005
 
4892
5006
  :host(:not([size]):not([multiple]):not([open]):focus-visible), :host([multiple]:focus-visible), :host([size]:focus-visible),
@@ -4894,19 +5008,19 @@
4894
5008
  box-shadow: none;
4895
5009
  outline: none;
4896
5010
  }
4897
- `,th=(e,t)=>(0,a.selectTemplate)(e,t);class ih extends r.Select{get scrollableListbox(){var e,t;return null!==(e=this.listbox)&&void 0!==e?e:null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".listbox")}slottedOptionsChanged(e,t){const i=this.value;super.slottedOptionsChanged(e,t),this.selectedIndex=-1;const o=[];this.slottedOptions&&this.slottedOptions.forEach(e=>{const t=e.nodeName.toLowerCase();if(t.endsWith("-optgroup")){const t=Array.from(e.children).filter(e=>{const t=e.nodeName.toLowerCase();return"option"===e.getAttribute("role")||t.endsWith("-option")});o.push(...t)}else("option"===e.getAttribute("role")||t.endsWith("-option"))&&o.push(e)}),this.options=o,i&&(this.value=i),-1===this.selectedIndex&&this.options.length>0&&(this.selectedIndex=0)}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(function(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}(this))&&null!==e&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:"nearest"})}))}openChanged(e,t){if(this.collapsible){if(this.$emit("open-change",{open:this.open}),this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void l.DOM.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}}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 oh=void 0,nh={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 '},sh=ih.compose(Object.assign({baseName:"select",template:th,styles:eh,shadowOptions:oh},nh)),ah=(e,t)=>l.css`
5011
+ `,lh=(e,t)=>(0,s.selectTemplate)(e,t);class dh extends r.Select{get scrollableListbox(){var e,t;return null!==(e=this.listbox)&&void 0!==e?e:null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".listbox")}slottedOptionsChanged(e,t){const i=this.value;super.slottedOptionsChanged(e,t),this.selectedIndex=-1;const o=[];this.slottedOptions&&this.slottedOptions.forEach(e=>{const t=e.nodeName.toLowerCase();if(t.endsWith("-optgroup")){const t=Array.from(e.children).filter(e=>{const t=e.nodeName.toLowerCase();return"option"===e.getAttribute("role")||t.endsWith("-option")});o.push(...t)}else("option"===e.getAttribute("role")||t.endsWith("-option"))&&o.push(e)}),this.options=o,i&&(this.value=i),-1===this.selectedIndex&&this.options.length>0&&(this.selectedIndex=0)}focusAndScrollOptionIntoView(e=this.firstSelectedOption){this.contains(function(e){const t=e.getRootNode();return t instanceof ShadowRoot?t.activeElement:document.activeElement}(this))&&null!==e&&(e.focus(),requestAnimationFrame(()=>{e.scrollIntoView({block:"nearest"})}))}openChanged(e,t){if(this.collapsible){if(this.$emit("open-change",{open:this.open}),this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void l.DOM.queueUpdate(()=>this.focus());this.ariaControls="",this.ariaExpanded="false"}}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 ch=void 0,uh={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 '},hh=dh.compose(Object.assign({baseName:"select",template:lh,styles:rh,shadowOptions:ch},uh)),ph=(e,t)=>l.css`
4898
5012
  ${(0,r.skeletonStyles)(e,t)}
4899
- `,rh=(e,t)=>(0,a.skeletonTemplate)(e,t);class lh extends r.Skeleton{}const dh=void 0,ch={},uh=lh.compose(Object.assign({baseName:"skeleton",template:rh,styles:ah,shadowOptions:dh},ch)),hh=(e,t)=>l.css`
5013
+ `,mh=(e,t)=>(0,s.skeletonTemplate)(e,t);class vh extends r.Skeleton{}const gh=void 0,fh={},bh=vh.compose(Object.assign({baseName:"skeleton",template:mh,styles:ph,shadowOptions:gh},fh)),yh=(e,t)=>l.css`
4900
5014
  ${(0,r.sliderStyles)(e,t)}
4901
5015
  .track-progress {
4902
5016
  background-color: var(--accent-fill-rest);
4903
5017
  border-radius: calc(var(--control-corner-radius) * 1px);
4904
5018
  }
4905
- `;var ph=i(17733),mh=i(54120);const gh=(e,t)=>l.html`
5019
+ `;var wh=i(17733),Ch=i(54120);const xh=(e,t)=>l.html`
4906
5020
  <template
4907
5021
  role="slider"
4908
5022
  class="${e=>e.readOnly?"readonly":""}
4909
- ${e=>e.orientation||ph.t.horizontal}"
5023
+ ${e=>e.orientation||wh.t.horizontal}"
4910
5024
  tabindex="${e=>e.disabled?null:0}"
4911
5025
  aria-valuetext="${e=>e.valueTextFormatter(e.value)}"
4912
5026
  aria-valuenow="${e=>e.value}"
@@ -4921,7 +5035,7 @@
4921
5035
  <div ${(0,l.ref)("track")} part="track-container" class="track">
4922
5036
  <div
4923
5037
  class="track-progress"
4924
- style="${e=>{const t=1-(0,mh.AB)(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),i=Math.round(100*(1-t));return"horizontal"===e.orientation?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${i}%;`:`height: calc(var(--track-width) * 1px); width: ${i}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${i}%;`:`width: calc(var(--track-width) * 1px); height: ${i}%; transition: all 0.2s ease;`}}"
5038
+ style="${e=>{const t=1-(0,Ch.AB)(0,1,(parseInt(e.value)-e.min)/(e.max-e.min)),i=Math.round(100*(1-t));return"horizontal"===e.orientation?e.isDragging?`height: calc(var(--track-width) * 1px); width: ${i}%;`:`height: calc(var(--track-width) * 1px); width: ${i}%; transition: all 0.2s ease;`:e.isDragging?`width: calc(var(--track-width) * 1px); height: ${i}%;`:`width: calc(var(--track-width) * 1px); height: ${i}%; transition: all 0.2s ease;`}}"
4925
5039
  ></div>
4926
5040
  </div>
4927
5041
  <slot></slot>
@@ -4935,9 +5049,9 @@
4935
5049
  </div>
4936
5050
  </div>
4937
5051
  </template>
4938
- `;class vh extends r.Slider{}const fh=void 0,bh={thumb:'\n <div class="thumb-cursor"></div>\n '},yh=vh.compose(Object.assign({baseName:"slider",template:gh,styles:hh,shadowOptions:fh},bh)),wh=(e,t)=>l.css`
5052
+ `;class $h extends r.Slider{}const Sh=void 0,Eh={thumb:'\n <div class="thumb-cursor"></div>\n '},Oh=$h.compose(Object.assign({baseName:"slider",template:xh,styles:yh,shadowOptions:Sh},Eh)),Th=(e,t)=>l.css`
4939
5053
  ${(0,r.sliderLabelStyles)(e,t)}
4940
- `,Ch=(e,t)=>(0,a.sliderLabelTemplate)(e,t);class xh extends r.SliderLabel{}const $h=void 0,Sh={},Eh=xh.compose(Object.assign({baseName:"slider-label",template:Ch,styles:wh,shadowOptions:$h},Sh)),Oh="default",Th={DEFAULT:Oh,ERROR:"error",SUCCESS:"success"},kh=1e4,Dh={DISMISS:"dismiss",AUTO_DISMISS:"autoDismiss"},Ih=l.css`
5054
+ `,kh=(e,t)=>(0,s.sliderLabelTemplate)(e,t);class Dh extends r.SliderLabel{}const Ih=void 0,Rh={},Ah=Dh.compose(Object.assign({baseName:"slider-label",template:kh,styles:Th,shadowOptions:Ih},Rh)),Lh="default",Nh={DEFAULT:Lh,ERROR:"error",SUCCESS:"success"},Fh=1e4,Mh={DISMISS:"dismiss",AUTO_DISMISS:"autoDismiss"},_h=l.css`
4941
5055
  @keyframes append-from-left-animate {
4942
5056
  from {
4943
5057
  transform: translateX(100%);
@@ -5058,7 +5172,7 @@
5058
5172
  flex: 1;
5059
5173
  overflow: hidden;
5060
5174
  }
5061
- `,Rh=e=>l.html`
5175
+ `,Hh=e=>l.html`
5062
5176
  <div
5063
5177
  role="alert"
5064
5178
  aria-live="polite"
@@ -5071,10 +5185,10 @@
5071
5185
  ${e=>{var t,i;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||(null===(i=e.notification)||void 0===i?void 0:i.body)||"Place holder for error message"}}
5072
5186
  </slot>
5073
5187
  </div>
5074
- ${(0,l.when)(e=>{var t,i,o,n,s,a,r,l;return(null===(n=null===(o=null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.confirmingActions)||void 0===n?void 0:n.length)||(null===(l=null===(r=null===(a=null===(s=e.notification)||void 0===s?void 0:s.config)||void 0===a?void 0:a.snackbar)||void 0===r?void 0:r.confirmingActions)||void 0===l?void 0:l.length)},l.html`
5188
+ ${(0,l.when)(e=>{var t,i,o,n,a,s,r,l;return(null===(n=null===(o=null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.confirmingActions)||void 0===n?void 0:n.length)||(null===(l=null===(r=null===(s=null===(a=e.notification)||void 0===a?void 0:a.config)||void 0===s?void 0:s.snackbar)||void 0===r?void 0:r.confirmingActions)||void 0===l?void 0:l.length)},l.html`
5075
5189
  <div part="action" class="action">
5076
5190
  <slot name="action">
5077
- ${(0,l.repeat)(e=>{var t,i,o,n,s,a;return(null===(o=null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.confirmingActions)||(null===(a=null===(s=null===(n=e.notification)||void 0===n?void 0:n.config)||void 0===s?void 0:s.snackbar)||void 0===a?void 0:a.confirmingActions)},l.html`
5191
+ ${(0,l.repeat)(e=>{var t,i,o,n,a,s;return(null===(o=null===(i=null===(t=e.error)||void 0===t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.confirmingActions)||(null===(s=null===(a=null===(n=e.notification)||void 0===n?void 0:n.config)||void 0===a?void 0:a.snackbar)||void 0===s?void 0:s.confirmingActions)},l.html`
5078
5192
  <${e}-button
5079
5193
  slot="action"
5080
5194
  appearance="lightweight"
@@ -5087,9 +5201,9 @@
5087
5201
  </div>
5088
5202
  `)}
5089
5203
  </div>
5090
- `,Ah=l.html`
5091
- ${e=>Rh(T(e))}
5092
- `,Lh={mode:"open",delegatesFocus:!0};class Nh extends a.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=kh,this.autoClose=!0,this.type=Oh,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(Dh.DISMISS,this.dismissEventListener)}errorChanged(e,t){var i,o,n;this.type=null!==(n=null===(o=null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.type)&&void 0!==n?n:Oh}notificationChanged(e,t){var i,o,n,s,a,r,l,d,c;this.type=null!==(n=null===(o=null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.type)&&void 0!==n?n:Oh,this.autoClose=null===(r=null===(a=null===(s=null==t?void 0:t.config)||void 0===s?void 0:s.snackbar)||void 0===a?void 0:a.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:kh}handleDissmis(e=!1){this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(Dh.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Dh.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}}(0,C.Cg)([l.observable],Nh.prototype,"error",void 0),(0,C.Cg)([l.observable],Nh.prototype,"notification",void 0),(0,C.Cg)([l.observable],Nh.prototype,"deleteAnimation",void 0),(0,C.Cg)([(0,l.attr)({attribute:"identifier"})],Nh.prototype,"identifier",void 0),(0,C.Cg)([(0,l.attr)({attribute:"close-timeout"})],Nh.prototype,"closeTimeout",void 0),(0,C.Cg)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],Nh.prototype,"autoClose",void 0),(0,C.Cg)([(0,l.attr)({attribute:"type"})],Nh.prototype,"type",void 0);const Fh=Nh.compose({baseName:"snackbar",styles:Ih,template:Ah,shadowOptions:Lh}),Mh=(e,t)=>l.css`
5204
+ `,Ph=l.html`
5205
+ ${e=>Hh(T(e))}
5206
+ `,zh={mode:"open",delegatesFocus:!0};class Uh extends s.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=Fh,this.autoClose=!0,this.type=Lh,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(Mh.DISMISS,this.dismissEventListener)}errorChanged(e,t){var i,o,n;this.type=null!==(n=null===(o=null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.type)&&void 0!==n?n:Lh}notificationChanged(e,t){var i,o,n,a,s,r,l,d,c;this.type=null!==(n=null===(o=null===(i=null==t?void 0:t.config)||void 0===i?void 0:i.snackbar)||void 0===o?void 0:o.type)&&void 0!==n?n:Lh,this.autoClose=null===(r=null===(s=null===(a=null==t?void 0:t.config)||void 0===a?void 0:a.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:Fh}handleDissmis(e=!1){this.deleteAnimation="snackbar-delete",this.snackbar.onanimationend=()=>{this.dismiss(),e&&this.dispatchEvent(new CustomEvent(Mh.AUTO_DISMISS,{bubbles:!0,composed:!0,detail:this.identifier}))}}dismiss(){this.remove(),this.timeoutRef&&clearTimeout(this.timeoutRef)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Mh.DISMISS,this.dismissEventListener),this.timeoutRef&&clearTimeout(this.timeoutRef)}}(0,C.Cg)([l.observable],Uh.prototype,"error",void 0),(0,C.Cg)([l.observable],Uh.prototype,"notification",void 0),(0,C.Cg)([l.observable],Uh.prototype,"deleteAnimation",void 0),(0,C.Cg)([(0,l.attr)({attribute:"identifier"})],Uh.prototype,"identifier",void 0),(0,C.Cg)([(0,l.attr)({attribute:"close-timeout"})],Uh.prototype,"closeTimeout",void 0),(0,C.Cg)([(0,l.attr)({attribute:"auto-close",mode:"boolean"})],Uh.prototype,"autoClose",void 0),(0,C.Cg)([(0,l.attr)({attribute:"type"})],Uh.prototype,"type",void 0);const Bh=Uh.compose({baseName:"snackbar",styles:_h,template:Ph,shadowOptions:zh}),Vh=(e,t)=>l.css`
5093
5207
  ${wr()}
5094
5208
 
5095
5209
  .fa-stack {
@@ -5115,14 +5229,14 @@
5115
5229
  .fa-stack-1x {
5116
5230
  z-index: 1;
5117
5231
  }
5118
- `,_h=l.html`
5232
+ `,Gh=l.html`
5119
5233
  <span
5120
5234
  class=${e=>`fa-stack fa-${e.size}`}
5121
5235
  style=${e=>`vertical-align: ${e["vertical-align"]};`}
5122
5236
  >
5123
5237
  <slot></slot>
5124
5238
  </span>
5125
- `;class Hh extends a.FoundationElement{constructor(){super(...arguments),this.size=Tr,this["vertical-align"]="baseline"}}(0,C.Cg)([l.attr],Hh.prototype,"size",void 0),(0,C.Cg)([l.attr],Hh.prototype,"vertical-align",void 0);const Ph=Hh.compose({baseName:"stacking-icons",template:_h,styles:Mh}),zh=l.css`
5239
+ `;class jh extends s.FoundationElement{constructor(){super(...arguments),this.size=Tr,this["vertical-align"]="baseline"}}(0,C.Cg)([l.attr],jh.prototype,"size",void 0),(0,C.Cg)([l.attr],jh.prototype,"vertical-align",void 0);const Yh=jh.compose({baseName:"stacking-icons",template:Gh,styles:Vh}),Wh=l.css`
5126
5240
  .status-pill {
5127
5241
  font-size: var(--ag-data-font-size);
5128
5242
  display: inline-flex;
@@ -5157,7 +5271,7 @@
5157
5271
  .status-pill-image {
5158
5272
  height: 14px;
5159
5273
  }
5160
- `,Uh=l.html`
5274
+ `,qh=l.html`
5161
5275
  ${e=>{return t=T(e),l.html`
5162
5276
  ${(0,l.when)(e=>e.isCountdownVisible&&!(e.hideWhenCountdownCompleted&&e.isCountdownExpired),l.html`
5163
5277
  <div
@@ -5188,7 +5302,7 @@
5188
5302
  </div>
5189
5303
  `)}
5190
5304
  `;var t}}
5191
- `,Bh=(e,t="second")=>{let i=e/1e3;const o=Math.floor(i/86400);i%=86400;const n=Math.floor(i/3600);i%=3600;const s=Math.floor(i/60),a=Math.floor(i%60),r=[];switch(o&&r.push(`${o}d`),t){case"minute":n&&r.push(`${n}h`),s&&r.push(`${s}m`),!s&&a&&r.push("< 1m");break;case"hour":n&&r.push(`${n}h`),n||!s&&!a||r.push("< 1h");break;default:n&&r.push(`${n}h`),s&&r.push(`${s}m`),a&&r.push(`${a}s`)}return r.length?r.join(" "):"0s"};class Vh extends a.FoundationElement{constructor(){super(...arguments),this.iconSize="sm",this.dateCountdownCompletedMessage="Expired",this.dateCountdownUnit="second",this.hideWhenCountdownCompleted=!1,this.isCountdownExpired=!1,this.isCountdownVisible=!0}dateCountdownChanged(e,t){if(e!==t){if(!t)return void this.clearCountdownTimer();this.isCountdownExpired=!1,this.setUpDateCountdown(t)}}dateCountdownVisibleAfterChanged(e,t){e!==t&&this.updateVisibilityFromStartTime()}connectedCallback(){this.updateVisibilityFromStartTime(),super.connectedCallback()}disconnectedCallback(){this.clearCountdownTimer(),super.disconnectedCallback()}setUpDateCountdown(e){if(this.clearCountdownTimer(),isNaN(parseInt(e)))ot.warn("invalid date-countdown value passed. Must be a number");else{e=parseInt(e);const t=new Date(e);this.updateCountdown(t),this.dateInterval=setInterval(()=>this.updateCountdown(t),1e3)}}updateCountdown(e){const t=(new Date).getTime(),i=Math.floor(e.getTime()-t),o=void 0!==this.dateCountdownVisibleAfter&&null!==this.dateCountdownVisibleAfter?Number(this.dateCountdownVisibleAfter):void 0;if(void 0!==o&&!isNaN(o)&&t<o)return this.isCountdownVisible=!1,this.countdown=null,void(this.isCountdownExpired=!1);this.isCountdownVisible=!0,i<=0?this.hideWhenCountdownCompleted?(this.isCountdownExpired=!0,this.clearCountdownTimer()):(this.countdown=this.dateCountdownCompletedMessage,clearInterval(this.dateInterval)):this.countdown=Bh(i,this.dateCountdownUnit)}updateVisibilityFromStartTime(){const e=void 0!==this.dateCountdownVisibleAfter&&null!==this.dateCountdownVisibleAfter?Number(this.dateCountdownVisibleAfter):void 0;if(void 0===e||isNaN(e))this.isCountdownVisible=!0;else{const t=Date.now();this.isCountdownVisible=t>=e}}clearCountdownTimer(){this.dateInterval&&(clearInterval(this.dateInterval),this.dateInterval=null),this.countdown=null}}(0,C.Cg)([(0,l.attr)({attribute:"background-color"})],Vh.prototype,"backgroundColor",void 0),(0,C.Cg)([(0,l.attr)({attribute:"icon-name"})],Vh.prototype,"iconName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"icon-src"})],Vh.prototype,"iconSrc",void 0),(0,C.Cg)([(0,l.attr)({attribute:"icon-initial"})],Vh.prototype,"iconInitial",void 0),(0,C.Cg)([(0,l.attr)({attribute:"icon-initial-background-color"})],Vh.prototype,"iconInitialBackgroundColor",void 0),(0,C.Cg)([(0,l.attr)({attribute:"icon-size"})],Vh.prototype,"iconSize",void 0),(0,C.Cg)([(0,l.attr)({attribute:"text-color"})],Vh.prototype,"textColor",void 0),(0,C.Cg)([l.attr],Vh.prototype,"text",void 0),(0,C.Cg)([(0,l.attr)({attribute:"date-countdown"})],Vh.prototype,"dateCountdown",void 0),(0,C.Cg)([(0,l.attr)({attribute:"date-countdown-completed-message"})],Vh.prototype,"dateCountdownCompletedMessage",void 0),(0,C.Cg)([(0,l.attr)({attribute:"date-countdown-unit"})],Vh.prototype,"dateCountdownUnit",void 0),(0,C.Cg)([(0,l.attr)({attribute:"date-countdown-visible-after"})],Vh.prototype,"dateCountdownVisibleAfter",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"hide-when-countdown-completed"})],Vh.prototype,"hideWhenCountdownCompleted",void 0),(0,C.Cg)([l.observable],Vh.prototype,"countdown",void 0),(0,C.Cg)([l.observable],Vh.prototype,"isCountdownExpired",void 0),(0,C.Cg)([l.observable],Vh.prototype,"isCountdownVisible",void 0);const Gh=Vh.compose({baseName:"status-pill",styles:zh,template:Uh}),jh=(e,t)=>l.css`
5305
+ `,Kh=(e,t="second")=>{let i=e/1e3;const o=Math.floor(i/86400);i%=86400;const n=Math.floor(i/3600);i%=3600;const a=Math.floor(i/60),s=Math.floor(i%60),r=[];switch(o&&r.push(`${o}d`),t){case"minute":n&&r.push(`${n}h`),a&&r.push(`${a}m`),!a&&s&&r.push("< 1m");break;case"hour":n&&r.push(`${n}h`),n||!a&&!s||r.push("< 1h");break;default:n&&r.push(`${n}h`),a&&r.push(`${a}m`),s&&r.push(`${s}s`)}return r.length?r.join(" "):"0s"};class Xh extends s.FoundationElement{constructor(){super(...arguments),this.iconSize="sm",this.dateCountdownCompletedMessage="Expired",this.dateCountdownUnit="second",this.hideWhenCountdownCompleted=!1,this.isCountdownExpired=!1,this.isCountdownVisible=!0}dateCountdownChanged(e,t){if(e!==t){if(!t)return void this.clearCountdownTimer();this.isCountdownExpired=!1,this.setUpDateCountdown(t)}}dateCountdownVisibleAfterChanged(e,t){e!==t&&this.updateVisibilityFromStartTime()}connectedCallback(){this.updateVisibilityFromStartTime(),super.connectedCallback()}disconnectedCallback(){this.clearCountdownTimer(),super.disconnectedCallback()}setUpDateCountdown(e){if(this.clearCountdownTimer(),isNaN(parseInt(e)))ot.warn("invalid date-countdown value passed. Must be a number");else{e=parseInt(e);const t=new Date(e);this.updateCountdown(t),this.dateInterval=setInterval(()=>this.updateCountdown(t),1e3)}}updateCountdown(e){const t=(new Date).getTime(),i=Math.floor(e.getTime()-t),o=void 0!==this.dateCountdownVisibleAfter&&null!==this.dateCountdownVisibleAfter?Number(this.dateCountdownVisibleAfter):void 0;if(void 0!==o&&!isNaN(o)&&t<o)return this.isCountdownVisible=!1,this.countdown=null,void(this.isCountdownExpired=!1);this.isCountdownVisible=!0,i<=0?this.hideWhenCountdownCompleted?(this.isCountdownExpired=!0,this.clearCountdownTimer()):(this.countdown=this.dateCountdownCompletedMessage,clearInterval(this.dateInterval)):this.countdown=Kh(i,this.dateCountdownUnit)}updateVisibilityFromStartTime(){const e=void 0!==this.dateCountdownVisibleAfter&&null!==this.dateCountdownVisibleAfter?Number(this.dateCountdownVisibleAfter):void 0;if(void 0===e||isNaN(e))this.isCountdownVisible=!0;else{const t=Date.now();this.isCountdownVisible=t>=e}}clearCountdownTimer(){this.dateInterval&&(clearInterval(this.dateInterval),this.dateInterval=null),this.countdown=null}}(0,C.Cg)([(0,l.attr)({attribute:"background-color"})],Xh.prototype,"backgroundColor",void 0),(0,C.Cg)([(0,l.attr)({attribute:"icon-name"})],Xh.prototype,"iconName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"icon-src"})],Xh.prototype,"iconSrc",void 0),(0,C.Cg)([(0,l.attr)({attribute:"icon-initial"})],Xh.prototype,"iconInitial",void 0),(0,C.Cg)([(0,l.attr)({attribute:"icon-initial-background-color"})],Xh.prototype,"iconInitialBackgroundColor",void 0),(0,C.Cg)([(0,l.attr)({attribute:"icon-size"})],Xh.prototype,"iconSize",void 0),(0,C.Cg)([(0,l.attr)({attribute:"text-color"})],Xh.prototype,"textColor",void 0),(0,C.Cg)([l.attr],Xh.prototype,"text",void 0),(0,C.Cg)([(0,l.attr)({attribute:"date-countdown"})],Xh.prototype,"dateCountdown",void 0),(0,C.Cg)([(0,l.attr)({attribute:"date-countdown-completed-message"})],Xh.prototype,"dateCountdownCompletedMessage",void 0),(0,C.Cg)([(0,l.attr)({attribute:"date-countdown-unit"})],Xh.prototype,"dateCountdownUnit",void 0),(0,C.Cg)([(0,l.attr)({attribute:"date-countdown-visible-after"})],Xh.prototype,"dateCountdownVisibleAfter",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"hide-when-countdown-completed"})],Xh.prototype,"hideWhenCountdownCompleted",void 0),(0,C.Cg)([l.observable],Xh.prototype,"countdown",void 0),(0,C.Cg)([l.observable],Xh.prototype,"isCountdownExpired",void 0),(0,C.Cg)([l.observable],Xh.prototype,"isCountdownVisible",void 0);const Jh=Xh.compose({baseName:"status-pill",styles:Wh,template:qh}),Qh=(e,t)=>l.css`
5192
5306
  .tree-item {
5193
5307
  cursor: default;
5194
5308
  }
@@ -5298,8 +5412,8 @@
5298
5412
  width: calc(100% - 28px);
5299
5413
  background-color: var(--accent-fill-rest); /* Choose a color */
5300
5414
  }
5301
- `,Yh=e=>l.html`
5302
- ${(0,En.q)(e=>e.orientation===a.TabsOrientation.vertical,l.html`
5415
+ `,Zh=e=>l.html`
5416
+ ${(0,En.q)(e=>e.orientation===s.TabsOrientation.vertical,l.html`
5303
5417
  <${e}-tree-item ${(0,l.ref)("treeItem")}
5304
5418
  class=${e=>(0,x.x)("tree-item",["cursor-pointer",e.showCursorPointer])}
5305
5419
  @click="${(e,t)=>e.$emit("tab-clicked",e.tabPosition-1)}">
@@ -5342,13 +5456,13 @@
5342
5456
  `)}
5343
5457
  </div>
5344
5458
  `)}
5345
- `,Wh=l.html`
5346
- ${e=>Yh(T(e))}
5347
- `;class qh extends a.FoundationElement{constructor(){super(...arguments),this.slot="tab",this.orientation=a.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,C.Cg)([l.attr],qh.prototype,"slot",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],qh.prototype,"selected",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],qh.prototype,"completed",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],qh.prototype,"error",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],qh.prototype,"isLast",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],qh.prototype,"hideStepNumber",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],qh.prototype,"showCursorPointer",void 0),(0,C.Cg)([(0,l.attr)({attribute:"tab-position"})],qh.prototype,"tabPosition",void 0),(0,C.Cg)([l.attr],qh.prototype,"orientation",void 0);const Kh=void 0,Xh={},Jh=qh.compose(Object.assign({baseName:"stepper-tab",template:Wh,styles:jh,shadowOptions:Kh},Xh)),Qh=()=>l.html`
5459
+ `,ep=l.html`
5460
+ ${e=>Zh(T(e))}
5461
+ `;class tp extends s.FoundationElement{constructor(){super(...arguments),this.slot="tab",this.orientation=s.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,C.Cg)([l.attr],tp.prototype,"slot",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],tp.prototype,"selected",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],tp.prototype,"completed",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],tp.prototype,"error",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],tp.prototype,"isLast",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],tp.prototype,"hideStepNumber",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],tp.prototype,"showCursorPointer",void 0),(0,C.Cg)([(0,l.attr)({attribute:"tab-position"})],tp.prototype,"tabPosition",void 0),(0,C.Cg)([l.attr],tp.prototype,"orientation",void 0);const ip=void 0,op={},np=tp.compose(Object.assign({baseName:"stepper-tab",template:ep,styles:Qh,shadowOptions:ip},op)),ap=()=>l.html`
5348
5462
  <template slot="tab-panel" role="stepper-tab-panel">
5349
5463
  <slot></slot>
5350
5464
  </template>
5351
- `;class Zh extends a.FoundationElement{}const ep=void 0,tp={},ip=Zh.compose(Object.assign({baseName:"stepper-tab-panel",template:Qh,shadowOptions:ep},tp)),op=(e,t)=>l.css`
5465
+ `;class sp extends s.FoundationElement{}const rp=void 0,lp={},dp=sp.compose(Object.assign({baseName:"stepper-tab-panel",template:ap,shadowOptions:rp},lp)),cp=(e,t)=>l.css`
5352
5466
  ${(0,r.switchStyles)(e,t)}
5353
5467
  .checked-indicator {
5354
5468
  transform: scale(1.3);
@@ -5361,20 +5475,20 @@
5361
5475
  .checked-indicator {
5362
5476
  border-radius: calc(var(--control-corner-radius) * 2px);
5363
5477
  }
5364
- `,np=(e,t)=>(0,a.switchTemplate)(e,t);class sp extends r.Switch{}const ap=void 0,rp={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},lp=sp.compose(Object.assign({baseName:"switch",template:np,styles:op,shadowOptions:ap},rp)),dp=(e,t)=>l.css`
5478
+ `,up=(e,t)=>(0,s.switchTemplate)(e,t);class hp extends r.Switch{}const pp=void 0,mp={switch:'<div class="checked-indicator" part="checked-indicator"></div>'},vp=hp.compose(Object.assign({baseName:"switch",template:up,styles:cp,shadowOptions:pp},mp)),gp=(e,t)=>l.css`
5365
5479
  ${(0,r.tabStyles)(e,t)}
5366
5480
 
5367
5481
  :host {
5368
5482
  user-select: none;
5369
5483
  }
5370
- `,cp=(e,t)=>(0,a.tabTemplate)(e,t);class up extends r.Tab{}const hp=void 0,pp={},mp=up.compose(Object.assign({baseName:"tab",template:cp,styles:dp,shadowOptions:hp},pp)),gp=(e,t)=>l.css`
5484
+ `,fp=(e,t)=>(0,s.tabTemplate)(e,t);class bp extends r.Tab{}const yp=void 0,wp={},Cp=bp.compose(Object.assign({baseName:"tab",template:fp,styles:gp,shadowOptions:yp},wp)),xp=(e,t)=>l.css`
5371
5485
  ${(0,r.tabPanelStyles)(e,t)}
5372
5486
 
5373
5487
  :host {
5374
5488
  height: 100%;
5375
5489
  padding: 0;
5376
5490
  }
5377
- `,vp=(e,t)=>(0,a.tabPanelTemplate)(e,t);class fp extends r.TabPanel{}const bp=void 0,yp={},wp=fp.compose(Object.assign({baseName:"tab-panel",template:vp,styles:gp,shadowOptions:bp},yp)),Cp=(e,t)=>l.css`
5491
+ `,$p=(e,t)=>(0,s.tabPanelTemplate)(e,t);class Sp extends r.TabPanel{}const Ep=void 0,Op={},Tp=Sp.compose(Object.assign({baseName:"tab-panel",template:$p,styles:xp,shadowOptions:Ep},Op)),kp=(e,t)=>l.css`
5378
5492
  ${(0,r.tabsStyles)(e,t)}
5379
5493
 
5380
5494
  :host {
@@ -5391,20 +5505,20 @@
5391
5505
  :host([scrollable]) ::slotted([role='tab']) {
5392
5506
  flex: 0 0 auto;
5393
5507
  }
5394
- `,xp=(e,t)=>(0,a.tabsTemplate)(e,t);class $p extends r.Tabs{constructor(){super(...arguments),this.scrollable=!1}get currentTabIndex(){return this.activeTabIndex}}(0,C.Cg)([(0,l.attr)({mode:"boolean"})],$p.prototype,"scrollable",void 0);const Sp=void 0,Ep={},Op=$p.compose(Object.assign({baseName:"tabs",template:xp,styles:Cp,shadowOptions:Sp},Ep)),Tp=(e,t)=>l.css`
5508
+ `,Dp=(e,t)=>(0,s.tabsTemplate)(e,t);class Ip extends r.Tabs{constructor(){super(...arguments),this.scrollable=!1}get currentTabIndex(){return this.activeTabIndex}}(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Ip.prototype,"scrollable",void 0);const Rp=void 0,Ap={},Lp=Ip.compose(Object.assign({baseName:"tabs",template:Dp,styles:kp,shadowOptions:Rp},Ap)),Np=(e,t)=>l.css`
5395
5509
  ${(0,r.textAreaStyles)(e,t)}
5396
5510
  :host .control {
5397
5511
  padding: calc(var(--design-unit) * 3px);
5398
5512
  }
5399
- `,kp=(e,t)=>(0,a.textAreaTemplate)(e,t);class Dp extends r.TextArea{}const Ip=void 0,Rp={},Ap=Dp.compose(Object.assign({baseName:"text-area",template:kp,styles:Tp,shadowOptions:Ip},Rp)),{create:Lp}=a.DesignToken,Np=Lp("active-color-scheme").withDefault(e=>r.baseLayerLuminance.getValueFor(e)===r.StandardLuminance.LightMode?"light":"dark"),Fp=(e,t)=>l.css`
5513
+ `,Fp=(e,t)=>(0,s.textAreaTemplate)(e,t);class Mp extends r.TextArea{}const _p=void 0,Hp={},Pp=Mp.compose(Object.assign({baseName:"text-area",template:Fp,styles:Np,shadowOptions:_p},Hp)),{create:zp}=s.DesignToken,Up=zp("active-color-scheme").withDefault(e=>r.baseLayerLuminance.getValueFor(e)===r.StandardLuminance.LightMode?"light":"dark"),Bp=(e,t)=>l.css`
5400
5514
  ${(0,r.textFieldStyles)(e,t)}
5401
5515
  /* Override FAST .root align-items: baseline for this flex child so it still fills the row. */
5402
5516
  ${wl}
5403
5517
 
5404
5518
  input {
5405
- color-scheme: ${Np};
5519
+ color-scheme: ${Up};
5406
5520
  }
5407
- `,Mp=(e,t)=>l.html`
5521
+ `,Vp=(e,t)=>l.html`
5408
5522
  <template
5409
5523
  class="${e=>(0,x.x)(["readonly",e.readOnly],["has-prefix",!!e.prefix],["has-suffix",!!e.suffix])}"
5410
5524
  >
@@ -5413,10 +5527,10 @@
5413
5527
  for="${e=>e.id?e.id:"control"}"
5414
5528
  class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label-hidden"}"
5415
5529
  >
5416
- <slot ${(0,l.slotted)({property:"defaultSlottedNodes",filter:a.whitespaceFilter})}></slot>
5530
+ <slot ${(0,l.slotted)({property:"defaultSlottedNodes",filter:s.whitespaceFilter})}></slot>
5417
5531
  </label>
5418
5532
  <div class="root" part="root">
5419
- ${(0,a.startSlotTemplate)(e,t)}
5533
+ ${(0,s.startSlotTemplate)(e,t)}
5420
5534
  <div class="control-field">
5421
5535
  ${(0,l.when)(e=>e.prefix,l.html`
5422
5536
  <span
@@ -5483,10 +5597,10 @@
5483
5597
  </span>
5484
5598
  `)}
5485
5599
  </div>
5486
- ${(0,a.endSlotTemplate)(e,t)}
5600
+ ${(0,s.endSlotTemplate)(e,t)}
5487
5601
  </div>
5488
5602
  </template>
5489
- `;class _p extends(yl(r.TextField)){constructor(){super(...arguments),this.autocomplete="off",this.autocapitalize="off"}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}}(0,C.Cg)([l.attr],_p.prototype,"autocomplete",void 0),(0,C.Cg)([l.attr],_p.prototype,"autocapitalize",void 0),(0,C.Cg)([l.attr],_p.prototype,"step",void 0);const Hp={mode:"open",delegatesFocus:!0},Pp={},zp=_p.compose(Object.assign({baseName:"text-field",template:Mp,styles:Fp,shadowOptions:Hp},Pp)),Up=l.css`
5603
+ `;class Gp extends(yl(r.TextField)){constructor(){super(...arguments),this.autocomplete="off",this.autocapitalize="off"}autocompleteChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocomplete=this.autocomplete)}autocapitalizeChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autocapitalize=this.autocapitalize)}}(0,C.Cg)([l.attr],Gp.prototype,"autocomplete",void 0),(0,C.Cg)([l.attr],Gp.prototype,"autocapitalize",void 0),(0,C.Cg)([l.attr],Gp.prototype,"step",void 0);const jp={mode:"open",delegatesFocus:!0},Yp={},Wp=Gp.compose(Object.assign({baseName:"text-field",template:Vp,styles:Bp,shadowOptions:jp},Yp)),qp=l.css`
5490
5604
  @keyframes append-animate {
5491
5605
  from {
5492
5606
  transform: translateX(100%);
@@ -5597,7 +5711,7 @@
5597
5711
  margin-left: auto;
5598
5712
  color: #879ba6;
5599
5713
  }
5600
- `,Bp=(e="zero")=>l.html`
5714
+ `,Kp=(e="zero")=>l.html`
5601
5715
  <div
5602
5716
  role="alert"
5603
5717
  part="root"
@@ -5624,13 +5738,13 @@
5624
5738
  </div>
5625
5739
  </div>
5626
5740
  </div>
5627
- `,Vp=l.html`
5628
- ${e=>Bp(T(e))}
5629
- `,Gp={mode:"open",delegatesFocus:!0},jp={};class Yp extends a.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!1,this.closeTimer=null}connectedCallback(){super.connectedCallback(),this.autoClose&&(this.closeTimer=setTimeout(()=>{this.deleteAnimation="toast-delete",this.toast.onanimationend=()=>{this.remove()}},this.closeTimeout))}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.closeTimer),this.closeTimer=null}close(){this.remove()}}(0,C.Cg)([l.observable],Yp.prototype,"deleteAnimation",void 0),(0,C.Cg)([(0,l.attr)({attribute:"close-timeout"})],Yp.prototype,"closeTimeout",void 0),(0,C.Cg)([(0,l.attr)({attribute:"auto-close"})],Yp.prototype,"autoClose",void 0),(0,C.Cg)([(0,l.attr)({attribute:"notification-icon"})],Yp.prototype,"notificationIcon",void 0);const Wp=Yp.compose(Object.assign({baseName:"toast",styles:Up,template:Vp,shadowOptions:Gp},jp)),qp=(e,t)=>l.css`
5741
+ `,Xp=l.html`
5742
+ ${e=>Kp(T(e))}
5743
+ `,Jp={mode:"open",delegatesFocus:!0},Qp={};class Zp extends s.FoundationElement{constructor(){super(...arguments),this.deleteAnimation="",this.closeTimeout=1e4,this.autoClose=!1,this.closeTimer=null}connectedCallback(){super.connectedCallback(),this.autoClose&&(this.closeTimer=setTimeout(()=>{this.deleteAnimation="toast-delete",this.toast.onanimationend=()=>{this.remove()}},this.closeTimeout))}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.closeTimer),this.closeTimer=null}close(){this.remove()}}(0,C.Cg)([l.observable],Zp.prototype,"deleteAnimation",void 0),(0,C.Cg)([(0,l.attr)({attribute:"close-timeout"})],Zp.prototype,"closeTimeout",void 0),(0,C.Cg)([(0,l.attr)({attribute:"auto-close"})],Zp.prototype,"autoClose",void 0),(0,C.Cg)([(0,l.attr)({attribute:"notification-icon"})],Zp.prototype,"notificationIcon",void 0);const em=Zp.compose(Object.assign({baseName:"toast",styles:qp,template:Xp,shadowOptions:Jp},Qp)),tm=(e,t)=>l.css`
5630
5744
  ${(0,r.toolbarStyles)(e,t)}
5631
- `,Kp=(e,t)=>(0,a.toolbarTemplate)(e,t);class Xp extends r.Toolbar{}const Jp=void 0,Qp={},Zp=Xp.compose(Object.assign({baseName:"toolbar",template:Kp,styles:qp,shadowOptions:Jp},Qp)),em=(e,t)=>l.css`
5745
+ `,im=(e,t)=>(0,s.toolbarTemplate)(e,t);class om extends r.Toolbar{}const nm=void 0,am={},sm=om.compose(Object.assign({baseName:"toolbar",template:im,styles:tm,shadowOptions:nm},am)),rm=(e,t)=>l.css`
5632
5746
  ${(0,r.tooltipStyles)(e,t)}
5633
- `,tm=(e,t)=>(0,a.tooltipTemplate)(e,t);class im extends r.Tooltip{}const om=void 0,nm={},sm=im.compose(Object.assign({baseName:"tooltip",template:tm,styles:em,shadowOptions:om},nm)),am=(e,t)=>l.css`
5747
+ `,lm=(e,t)=>(0,s.tooltipTemplate)(e,t);class dm extends r.Tooltip{}const cm=void 0,um={},hm=dm.compose(Object.assign({baseName:"tooltip",template:lm,styles:rm,shadowOptions:cm},um)),pm=(e,t)=>l.css`
5634
5748
  ${(0,r.treeItemStyles)(e,t)}
5635
5749
  :host {
5636
5750
  --focus-stroke-width: 0;
@@ -5647,9 +5761,9 @@
5647
5761
  .positioning-region {
5648
5762
  height: calc(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) * 1px);
5649
5763
  }
5650
- `,rm=(e,t)=>(0,a.treeItemTemplate)(e,t);class lm extends r.TreeItem{}const dm=void 0,cm={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>'},um=lm.compose(Object.assign({baseName:"tree-item",template:rm,styles:am,shadowOptions:dm},cm)),hm=(e,t)=>l.css`
5764
+ `,mm=(e,t)=>(0,s.treeItemTemplate)(e,t);class vm extends r.TreeItem{}const gm=void 0,fm={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>'},bm=vm.compose(Object.assign({baseName:"tree-item",template:mm,styles:pm,shadowOptions:gm},fm)),ym=(e,t)=>l.css`
5651
5765
  ${(0,r.treeViewStyles)(e,t)}
5652
- `,pm=(e,t)=>(0,a.treeViewTemplate)(e,t);class mm extends a.TreeView{}const gm=void 0,vm={},fm=mm.compose(Object.assign({baseName:"tree-view",template:pm,styles:hm,shadowOptions:gm},vm)),bm=(e,t)=>l.css`
5766
+ `,wm=(e,t)=>(0,s.treeViewTemplate)(e,t);class Cm extends s.TreeView{}const xm=void 0,$m={},Sm=Cm.compose(Object.assign({baseName:"tree-view",template:wm,styles:ym,shadowOptions:xm},$m)),Em=(e,t)=>l.css`
5653
5767
  .container {
5654
5768
  position: relative;
5655
5769
  width: 100%;
@@ -5669,7 +5783,7 @@
5669
5783
  overflow: hidden;
5670
5784
  text-overflow: ellipsis;
5671
5785
  }
5672
- `,ym=e=>l.html`
5786
+ `,Om=e=>l.html`
5673
5787
  <div class="container" value=${e=>e.value}>
5674
5788
  <${e}-text-field
5675
5789
  class="url-input"
@@ -5684,9 +5798,9 @@
5684
5798
  <a class="url-input-link" href=${e=>e.value} target="_blank">${e=>e.value}</a>
5685
5799
  `)}
5686
5800
  </div>
5687
- `,wm=l.html`
5688
- ${e=>ym(T(e))}
5689
- `,Cm=void 0,xm={};class $m extends r.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,C.Cg)([l.observable],$m.prototype,"value",void 0),(0,C.Cg)([l.observable],$m.prototype,"focused",void 0);const Sm=$m.compose(Object.assign({baseName:"url-input",template:wm,styles:bm,shadowOptions:Cm},xm)),Em={foundationAccordion:m,foundationAiCriteriaSearch:Oe,foundationAiIndicator:Ie,foundationAccordionItem:w,foundationActionsMenu:A,foundationAnchor:Me,foundationAnchoredRegion:Be,foundationAvatar:Ke,foundationBadge:tt,foundationBanner:dt,foundationBreadcrumb:gt,foundationBreadcrumbItem:Ct,foundationButton:Tt,foundationCalendar:Lt,foundationCard:Pt,foundationCategorizedMultiselect:qt,foundationCheckbox:ei,foundationCombobox:Oi,foundationConnectionIndicator:Ri,foundationDataGrid:_i,foundationDataGridCell:Bi,foundationDataGridRow:Wi,foundationDatePicker:Eo,foundationDesignSystemProvider:xn,foundationDialog:Ln,foundationDisclosure:Pn,foundationDivider:jn,foundationDropdownMenu:Qn,foundationErrorBanner:fs,foundationErrorBoundary:Rs,foundationErrorDialog:_s,foundationFileReader:Gs,foundationFileUpload:aa,foundationFilter:fa,foundationFilterBar:Oa,foundationFlexLayout:Na,foundationFlipper:za,foundationFlyout:qa,foundationGridLayout:or,foundationGridLayoutItem:lr,foundationHorizontalScroll:mr,foundationIcon:Ir,foundationListbox:Mr,foundationListboxOption:Br,foundationMenu:qr,foundationMenuItem:el,foundationModal:al,foundationMultiselect:gl,foundationNumberField:Ul,foundationOptgroup:jl,foundationPopper:Ld,foundationProgress:fd,foundationProgressRing:Pd,foundationRadio:jd,foundationRadioGroup:Jd,foundationScheduler:nc,foundationSchedulerCronBuilder:ou,foundationSchedulerTimezone:cu,foundationSearchBar:$u,foundationSearchBarCombobox:Iu,foundationSegmentedControl:Wu,foundationSegmentedItem:Zu,foundationSelect:sh,foundationSkeleton:uh,foundationSlider:yh,foundationSliderLabel:Eh,foundationSnackbar:Fh,foundationStackingIcons:Ph,foundationStatusPill:Gh,foundationEnvironmentIndicator:hs,foundationStepperTab:Jh,foundationStepperTabPanel:ip,foundationSwitch:lp,foundationSystemHealthOverlay:Td,foundationTab:mp,foundationTabPanel:wp,foundationTabs:Op,foundationTextArea:Ap,foundationTextField:zp,foundationToast:Wp,foundationToolbar:Zp,foundationTooltip:sm,foundationTreeItem:um,foundationTreeView:fm,foundationUrlInput:Sm,foundationSectionNavigator:Uu,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};class Om extends l.CSSDirective{constructor(e){super(),this.tokenMap=e}createTokenPartial(e,t){return l.cssPartial`${e}: ${t}`}createTokensCSS(){const e=[];for(const[t,i]of Object.entries(this.tokenMap))e.push(this.createTokenPartial(t,i).createCSS());return e}createCSS(){return this.createTokensCSS().join(";")}}let Tm=class extends gi{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(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(){ot.debug("clearData - Method not implemented.")}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values()),i=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=i,this.dataGrid.rowsData=t}handleStreamInserts(e){ot.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ot.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ot.debug("handleStreamUpdates - Method not implemented.")}};Tm=(0,C.Cg)([(0,l.customElement)({name:"data-grid-datasource"})],Tm);const km=[{type:"AND",maxRules:"many"},{type:"OR",maxRules:"many"}],Dm=[...km,{type:"NOT",maxRules:2},{type:"NAND",maxRules:"many"},{type:"NOR",maxRules:"many"},{type:"XOR",maxRules:2}],Im={type:"NULL",maxRules:1,invisible:!0},Rm=["int","short","long","bigdecimal","double"],Am=["date","date-time"],Lm=["enum",...Rm,"string",...Am,"boolean"],Nm=[{type:"equal",nbInputs:1,applyTo:Lm,optgroup:"Equality"},{type:"not_equal",nbInputs:1,applyTo:Lm,optgroup:"Equality"},{type:"greater",nbInputs:1,applyTo:[...Rm,...Am],optgroup:"Comparison"},{type:"less",nbInputs:1,applyTo:[...Rm,...Am],optgroup:"Comparison"},{type:"contains",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"starts_with",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"ends_with",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"one_of",nbInputs:"many",applyTo:[...Lm].filter(e=>"boolean"!==e)},{type:"not_any_of",nbInputs:"many",applyTo:[...Lm].filter(e=>"boolean"!==e)},{type:"within_inclusive",nbInputs:2,applyTo:[...Rm,...Am],optgroup:"Range"},{type:"within_exclusive",nbInputs:2,applyTo:[...Rm,...Am],optgroup:"Range"},{type:"is_null",nbInputs:0,applyTo:[...Lm],optgroup:"Null"},{type:"not_null",nbInputs:0,applyTo:[...Lm],optgroup:"Null"}];var Fm=i(93678);const Mm=i.n(Fm)()();function _m(e,t,i){const o=function e(o){const n=Mm(o);if(n.groupId===t)return n.children=i(n.children),n;const s=[];let a=!1;for(const t of n.children)if("children"in t){const i=e(t);i?(s.push(i),a=!0):s.push(t)}else s.push(t);return n.children=s,a?n:null}(e);if(!o)throw new Error(`Unable to find group with groupId ${t}`);return o}function Hm(e,t,i){return function e(o){for(const n of o.children){if(i(n,t))return o;if("children"in n){const t=e(n);if(t)return t}}return null}(e)}function Pm(e,t){const i=Hm(e,t,(e,t)=>"children"in e&&e.groupId===t);if(!i)throw new Error(`No parent group found for group with ID ${t}`);return i}function zm(e,t){const i=Hm(e,t,(e,t)=>"ruleId"in e&&e.ruleId===t);if(!i)throw new Error(`No parent group found for rule with ID ${t}`);return i}function Um(e,t,i){return _m(e,t,e=>[...e,i])}const Bm="group-root";function Vm(e,t){const i=(e,o)=>{return"children"in e?function(e,o){return Object.assign(Object.assign({},e),{level:o,config:t.getConfig(),groupId:t.getGroupId(),children:e.children.map(e=>i(e,o+1))})}(e,o):(n=e,Object.assign(Object.assign({},n),{ruleId:t.getRuleId(),config:t.getConfig()}));var n};return Object.assign(Object.assign({},e),{config:t.getConfig(),level:1,groupId:Bm,children:e.children.map(e=>i(e,2))})}function Gm(e){const t=e.children.map(e=>"children"in e?Gm(e):function(e){const{operator:t,field:i,value:o}=e;return{operator:t,field:i,value:o}}(e));return{combinator:e.combinator,children:t}}const jm=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}-${String(e.getUTCDate()).padStart(2,"0")}`,Ym=e=>`${jm(e)}T${String(e.getUTCHours()).padStart(2,"0")}:${String(e.getUTCMinutes()).padStart(2,"0")}:${String(e.getUTCSeconds()).padStart(2,"0")}`,Wm=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.input)&&void 0!==o?o:e.field.input},qm=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&void 0!==o?o:e.field.type},Km=e=>{const t={},i=[],o=e=>[...e].sort((e,t)=>"fieldId"in e&&"fieldId"in t?e.fieldId.localeCompare(t.fieldId):"type"in e&&"type"in t?e.type.localeCompare(t.type):0);e.forEach(e=>{if(e.optgroup){const i=e.optgroup;t[i]||(t[i]=[]),t[i].push(e)}else i.push(e)});const n=[];return Object.keys(t).sort().forEach(e=>{n.push({optgroup:e,xs:o(t[e])})}),[...n,...o(i)]};function Xm(e,t,i){if(!e.shadowRoot||!(null==t?void 0:t.customStyles))return;const o=t.customStyles[i];if(o){const t=document.createElement("style");t.textContent=o,e.shadowRoot.firstChild?e.shadowRoot.insertBefore(t,e.shadowRoot.firstChild):e.shadowRoot.appendChild(t)}}var Jm;!function(e){e.AddGroup="add-group",e.DelGroup="del-group",e.AddRule="add-rule",e.DelRule="del-rule",e.UpdateGroup="update-group",e.UpdateRule="update-rule",e.FieldSelected="field-selected",e.OperatorSelected="operator-selected",e.ValueUpdated="value-updated",e.RemoveVarArg="remove-variadic-operand"}(Jm||(Jm={}));const Qm=l.css`
5801
+ `,Tm=l.html`
5802
+ ${e=>Om(T(e))}
5803
+ `,km=void 0,Dm={};class Im extends r.TextField{constructor(){super(...arguments),this.value=""}saveUrl(e){this.value=e.startsWith("http")?e:"https://"+e,this.focused=!1}focus(){this.focused=!0}}(0,C.Cg)([l.observable],Im.prototype,"value",void 0),(0,C.Cg)([l.observable],Im.prototype,"focused",void 0);const Rm=Im.compose(Object.assign({baseName:"url-input",template:Tm,styles:Em,shadowOptions:km},Dm)),Am={foundationAccordion:m,foundationAiCriteriaSearch:Oe,foundationAiIndicator:Ie,foundationAccordionItem:w,foundationActionsMenu:A,foundationAnchor:Me,foundationAnchoredRegion:Be,foundationAvatar:Ke,foundationBadge:tt,foundationBanner:dt,foundationBreadcrumb:vt,foundationBreadcrumbItem:Ct,foundationButton:Tt,foundationCalendar:Lt,foundationCard:Pt,foundationCategorizedMultiselect:qt,foundationCheckbox:ei,foundationCombobox:Oi,foundationConnectionIndicator:Ri,foundationDataGrid:_i,foundationDataGridCell:Bi,foundationDataGridRow:Wi,foundationDatePicker:Eo,foundationDesignSystemProvider:xn,foundationDialog:Ln,foundationDisclosure:Pn,foundationDivider:jn,foundationDropdownMenu:Qn,foundationErrorBanner:fa,foundationErrorBoundary:Ra,foundationErrorDialog:_a,foundationFileReader:Ga,foundationFileUpload:ss,foundationFilter:fs,foundationFilterBar:Os,foundationFlexLayout:Ns,foundationFlipper:zs,foundationFlyout:qs,foundationGridLayout:or,foundationGridLayoutItem:lr,foundationHorizontalScroll:mr,foundationIcon:Ir,foundationListbox:Mr,foundationListboxOption:Br,foundationMenu:qr,foundationMenuItem:el,foundationModal:sl,foundationMultiselect:vl,foundationNumberField:Ul,foundationOptgroup:jl,foundationPill:Nd,foundationPopper:zd,foundationProgress:fd,foundationProgressRing:Yd,foundationRadio:Qd,foundationRadioGroup:nc,foundationScheduler:uc,foundationSchedulerCronBuilder:cu,foundationSchedulerTimezone:fu,foundationSearchBar:Iu,foundationSearchBarCombobox:_u,foundationSegmentedControl:eh,foundationSegmentedItem:sh,foundationSelect:hh,foundationSkeleton:bh,foundationSlider:Oh,foundationSliderLabel:Ah,foundationSnackbar:Bh,foundationStackingIcons:Yh,foundationStatusPill:Jh,foundationEnvironmentIndicator:ha,foundationStepperTab:np,foundationStepperTabPanel:dp,foundationSwitch:vp,foundationSystemHealthOverlay:Td,foundationTab:Cp,foundationTabPanel:Tp,foundationTabs:Lp,foundationTextArea:Pp,foundationTextField:Wp,foundationToast:em,foundationToolbar:sm,foundationTooltip:hm,foundationTreeItem:bm,foundationTreeView:Sm,foundationUrlInput:Rm,foundationSectionNavigator:qu,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};class Lm extends l.CSSDirective{constructor(e){super(),this.tokenMap=e}createTokenPartial(e,t){return l.cssPartial`${e}: ${t}`}createTokensCSS(){const e=[];for(const[t,i]of Object.entries(this.tokenMap))e.push(this.createTokenPartial(t,i).createCSS());return e}createCSS(){return this.createTokensCSS().join(";")}}let Nm=class extends vi{constructor(){super(...arguments),this.isSnapshot=!0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(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(){ot.debug("clearData - Method not implemented.")}syncComponentData(e){const t=null!=e?e:Array.from(this.rowsSyncedWithStream.values()),i=this.getColumnDefs(this.datasource.fieldMetadata);this.dataGrid.columnDefinitions=i,this.dataGrid.rowsData=t}handleStreamInserts(e){ot.debug("handleStreamInserts - Method not implemented.")}handleStreamDeletes(e){ot.debug("handleStreamDeletes - Method not implemented.")}handleStreamUpdates(e){ot.debug("handleStreamUpdates - Method not implemented.")}};Nm=(0,C.Cg)([(0,l.customElement)({name:"data-grid-datasource"})],Nm);const Fm=[{type:"AND",maxRules:"many"},{type:"OR",maxRules:"many"}],Mm=[...Fm,{type:"NOT",maxRules:2},{type:"NAND",maxRules:"many"},{type:"NOR",maxRules:"many"},{type:"XOR",maxRules:2}],_m={type:"NULL",maxRules:1,invisible:!0},Hm=["int","short","long","bigdecimal","double"],Pm=["date","date-time"],zm=["enum",...Hm,"string",...Pm,"boolean"],Um=[{type:"equal",nbInputs:1,applyTo:zm,optgroup:"Equality"},{type:"not_equal",nbInputs:1,applyTo:zm,optgroup:"Equality"},{type:"greater",nbInputs:1,applyTo:[...Hm,...Pm],optgroup:"Comparison"},{type:"less",nbInputs:1,applyTo:[...Hm,...Pm],optgroup:"Comparison"},{type:"contains",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"starts_with",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"ends_with",nbInputs:1,applyTo:["string"],optgroup:"String"},{type:"one_of",nbInputs:"many",applyTo:[...zm].filter(e=>"boolean"!==e)},{type:"not_any_of",nbInputs:"many",applyTo:[...zm].filter(e=>"boolean"!==e)},{type:"within_inclusive",nbInputs:2,applyTo:[...Hm,...Pm],optgroup:"Range"},{type:"within_exclusive",nbInputs:2,applyTo:[...Hm,...Pm],optgroup:"Range"},{type:"is_null",nbInputs:0,applyTo:[...zm],optgroup:"Null"},{type:"not_null",nbInputs:0,applyTo:[...zm],optgroup:"Null"}];var Bm=i(93678);const Vm=i.n(Bm)()();function Gm(e,t,i){const o=function e(o){const n=Vm(o);if(n.groupId===t)return n.children=i(n.children),n;const a=[];let s=!1;for(const t of n.children)if("children"in t){const i=e(t);i?(a.push(i),s=!0):a.push(t)}else a.push(t);return n.children=a,s?n:null}(e);if(!o)throw new Error(`Unable to find group with groupId ${t}`);return o}function jm(e,t,i){return function e(o){for(const n of o.children){if(i(n,t))return o;if("children"in n){const t=e(n);if(t)return t}}return null}(e)}function Ym(e,t){const i=jm(e,t,(e,t)=>"children"in e&&e.groupId===t);if(!i)throw new Error(`No parent group found for group with ID ${t}`);return i}function Wm(e,t){const i=jm(e,t,(e,t)=>"ruleId"in e&&e.ruleId===t);if(!i)throw new Error(`No parent group found for rule with ID ${t}`);return i}function qm(e,t,i){return Gm(e,t,e=>[...e,i])}const Km="group-root";function Xm(e,t){const i=(e,o)=>{return"children"in e?function(e,o){return Object.assign(Object.assign({},e),{level:o,config:t.getConfig(),groupId:t.getGroupId(),children:e.children.map(e=>i(e,o+1))})}(e,o):(n=e,Object.assign(Object.assign({},n),{ruleId:t.getRuleId(),config:t.getConfig()}));var n};return Object.assign(Object.assign({},e),{config:t.getConfig(),level:1,groupId:Km,children:e.children.map(e=>i(e,2))})}function Jm(e){const t=e.children.map(e=>"children"in e?Jm(e):function(e){const{operator:t,field:i,value:o}=e;return{operator:t,field:i,value:o}}(e));return{combinator:e.combinator,children:t}}const Qm=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}-${String(e.getUTCDate()).padStart(2,"0")}`,Zm=e=>`${Qm(e)}T${String(e.getUTCHours()).padStart(2,"0")}:${String(e.getUTCMinutes()).padStart(2,"0")}:${String(e.getUTCSeconds()).padStart(2,"0")}`,ev=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.input)&&void 0!==o?o:e.field.input},tv=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&void 0!==o?o:e.field.type},iv=e=>{const t={},i=[],o=e=>[...e].sort((e,t)=>"fieldId"in e&&"fieldId"in t?e.fieldId.localeCompare(t.fieldId):"type"in e&&"type"in t?e.type.localeCompare(t.type):0);e.forEach(e=>{if(e.optgroup){const i=e.optgroup;t[i]||(t[i]=[]),t[i].push(e)}else i.push(e)});const n=[];return Object.keys(t).sort().forEach(e=>{n.push({optgroup:e,xs:o(t[e])})}),[...n,...o(i)]};function ov(e,t,i){if(!e.shadowRoot||!(null==t?void 0:t.customStyles))return;const o=t.customStyles[i];if(o){const t=document.createElement("style");t.textContent=o,e.shadowRoot.firstChild?e.shadowRoot.insertBefore(t,e.shadowRoot.firstChild):e.shadowRoot.appendChild(t)}}var nv;!function(e){e.AddGroup="add-group",e.DelGroup="del-group",e.AddRule="add-rule",e.DelRule="del-rule",e.UpdateGroup="update-group",e.UpdateRule="update-rule",e.FieldSelected="field-selected",e.OperatorSelected="operator-selected",e.ValueUpdated="value-updated",e.RemoveVarArg="remove-variadic-operand"}(nv||(nv={}));const av=l.css`
5690
5804
  :host {
5691
5805
  --item-vertical-spacing: 4px;
5692
5806
  --item-border-radius: 5px;
@@ -5860,7 +5974,7 @@
5860
5974
  .rules-list > *:last-child::after {
5861
5975
  display: none;
5862
5976
  }
5863
- `,Zm=l.css`
5977
+ `,sv=l.css`
5864
5978
  .rules-group-container {
5865
5979
  border: 1px solid #ccc;
5866
5980
  margin-bottom: 10px;
@@ -5903,11 +6017,11 @@
5903
6017
  list-style: none;
5904
6018
  padding-left: 0;
5905
6019
  }
5906
- `;function eg(e,t,i){const o=e=>"function"==typeof e?e:()=>e,n=o(t),s=o(i);return(t,i)=>e(t,i)?n(t,i):s(t,i)}const tg=l.html`
5907
- ${e=>{var t,i;const o=null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.radio,{radioTag:n,radioGroupTag:s}=o?{radioTag:o.input,radioGroupTag:o.group}:{radioTag:"input",radioGroupTag:"div"};return l.html`
6020
+ `;function rv(e,t,i){const o=e=>"function"==typeof e?e:()=>e,n=o(t),a=o(i);return(t,i)=>e(t,i)?n(t,i):a(t,i)}const lv=l.html`
6021
+ ${e=>{var t,i;const o=null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.radio,{radioTag:n,radioGroupTag:a}=o?{radioTag:o.input,radioGroupTag:o.group}:{radioTag:"input",radioGroupTag:"div"};return l.html`
5908
6022
  <div class="btn-group group-conditions">
5909
- ${eg(e=>"input"!==n,l.html`
5910
- <${s}
6023
+ ${rv(e=>"input"!==n,l.html`
6024
+ <${a}
5911
6025
  class="radio-group-container"
5912
6026
  name="combinator"
5913
6027
  @change="${(e,t)=>e.handleCombinatorChange(t.event)}"
@@ -5923,7 +6037,7 @@
5923
6037
  </${n}>
5924
6038
  `)}
5925
6039
  `)}
5926
- </${s}>
6040
+ </${a}>
5927
6041
  `,l.html`
5928
6042
  <div class="radio-group-container">
5929
6043
  ${(0,l.repeat)(e=>e.config.combinators,l.html`
@@ -5944,8 +6058,8 @@
5944
6058
  `)}
5945
6059
  </div>
5946
6060
  `}}
5947
- `,ig=l.html`
5948
- ${e=>{var t,i,o,n,s,a,r,d;const c=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.button)||"button",u=`Add a new condition with field (e.g. CURRENCY), operator (e.g. EQUALS), and value (e.g. GBP) that will be combined with other conditions in this group using the selected logic (e.g. ${null===(s=null===(n=null===(o=e.config)||void 0===o?void 0:o.combinators)||void 0===n?void 0:n[0])||void 0===s?void 0:s.type})`,h=`Add a new nested sub-group to create more complex expressions, joined by combinatorial logic (e.g. ${null===(d=null===(r=null===(a=e.config)||void 0===a?void 0:a.combinators)||void 0===r?void 0:r[0])||void 0===d?void 0:d.type})`;return l.html`
6061
+ `,dv=l.html`
6062
+ ${e=>{var t,i,o,n,a,s,r,d;const c=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.button)||"button",u=`Add a new condition with field (e.g. CURRENCY), operator (e.g. EQUALS), and value (e.g. GBP) that will be combined with other conditions in this group using the selected logic (e.g. ${null===(a=null===(n=null===(o=e.config)||void 0===o?void 0:o.combinators)||void 0===n?void 0:n[0])||void 0===a?void 0:a.type})`,h=`Add a new nested sub-group to create more complex expressions, joined by combinatorial logic (e.g. ${null===(d=null===(r=null===(s=e.config)||void 0===s?void 0:s.combinators)||void 0===r?void 0:r[0])||void 0===d?void 0:d.type})`;return l.html`
5949
6063
  <div class="btn-group float-end group-actions">
5950
6064
  ${(0,l.when)(e=>e.allowAddRule,l.html`
5951
6065
  <${c}
@@ -5981,13 +6095,13 @@
5981
6095
  `)}
5982
6096
  </div>
5983
6097
  `}}
5984
- `,og=l.html`
6098
+ `,cv=l.html`
5985
6099
  <div class="rules-group-container">
5986
- <div class="rules-group-header">${ig} ${tg}</div>
6100
+ <div class="rules-group-header">${dv} ${lv}</div>
5987
6101
  <div class="rules-group-body">
5988
6102
  <div class="rules-list">
5989
6103
  ${(0,l.repeat)(e=>{var t,i;return null!==(i=null===(t=e.model)||void 0===t?void 0:t.children)&&void 0!==i?i:[]},l.html`
5990
- ${eg(e=>"children"in e,l.html`
6104
+ ${rv(e=>"children"in e,l.html`
5991
6105
  <expression-group
5992
6106
  :config=${(e,t)=>t.parent.config}
5993
6107
  :styles=${(e,t)=>t.parent.styles}
@@ -6011,7 +6125,7 @@
6011
6125
  </div>
6012
6126
  </div>
6013
6127
  </div>
6014
- `;let ng=class extends l.FASTElement{connectedCallback(){super.connectedCallback(),Xm(this,this.styles,"group")}get allowAddRule(){return!!this.model&&("many"===this.model.combinator.maxRules||this.model.children.length<this.model.combinator.maxRules)}get allowAddGroup(){var e,t;return!!this.model&&(1!==this.model.combinator.maxRules&&(!(2===this.model.combinator.maxRules&&this.model.children.length>=2)&&(!(null===(e=this.config)||void 0===e?void 0:e.maxNesting)||(null===(t=this.config)||void 0===t?void 0:t.maxNesting)<1||this.config.maxNesting>this.model.level)))}dispatchAddRule(e){if(e.stopPropagation(),!this.allowAddRule)throw new Error("Cannot add extra rules to group");const t={parentGroupId:this.model.groupId};this.dispatchEvent(new CustomEvent(Jm.AddRule,{detail:t,bubbles:!0,composed:!0}))}dispatchAddGroup(e){if(e.stopPropagation(),!this.allowAddGroup)throw new Error("Cannot add further nested groups");const t={parentGroupId:this.model.groupId,newGroup:{level:this.model.level+1}};this.dispatchEvent(new CustomEvent(Jm.AddGroup,{detail:t,bubbles:!0,composed:!0}))}dispatchDeleteGroup(e){e.stopPropagation();const t={groupId:this.model.groupId};this.dispatchEvent(new CustomEvent(Jm.DelGroup,{detail:t,bubbles:!0,composed:!0}))}handleCombinatorChange(e){e.stopPropagation();const t=e.target.value;this.updateCombinator(t)}handleCustomCombinatorChange(e){var t;if(e.stopPropagation(),!(null===(t=this.model)||void 0===t?void 0:t.groupId)||!e.target)return;const i=e.target.getAttribute("value");if(!i)throw new Error("No value found in the custom radio group event target");this.updateCombinator(i)}updateCombinator(e){var t,i;const o=this.config.combinators.find(({type:t})=>t===e);if(!o)throw new Error(`Cannot find selected combinator ${e}`);(null===(i=null===(t=this.model)||void 0===t?void 0:t.combinator)||void 0===i?void 0:i.type)!==o.type&&this.dispatchGroupDataUpdated(o)}dispatchGroupDataUpdated(e){const t={groupId:this.model.groupId,newData:{combinator:e}};this.dispatchEvent(new CustomEvent(Jm.UpdateGroup,{detail:t,bubbles:!0,composed:!0}))}};(0,C.Cg)([l.observable],ng.prototype,"config",void 0),(0,C.Cg)([l.observable],ng.prototype,"styles",void 0),(0,C.Cg)([l.observable],ng.prototype,"model",void 0),(0,C.Cg)([l.observable],ng.prototype,"index",void 0),(0,C.Cg)([l.volatile],ng.prototype,"allowAddRule",null),(0,C.Cg)([l.volatile],ng.prototype,"allowAddGroup",null),ng=(0,C.Cg)([(0,l.customElement)({name:"expression-group",template:og,styles:Zm,shadowOptions:{delegatesFocus:!0}})],ng);const sg=l.html`
6128
+ `;let uv=class extends l.FASTElement{connectedCallback(){super.connectedCallback(),ov(this,this.styles,"group")}get allowAddRule(){return!!this.model&&("many"===this.model.combinator.maxRules||this.model.children.length<this.model.combinator.maxRules)}get allowAddGroup(){var e,t;return!!this.model&&(1!==this.model.combinator.maxRules&&(!(2===this.model.combinator.maxRules&&this.model.children.length>=2)&&(!(null===(e=this.config)||void 0===e?void 0:e.maxNesting)||(null===(t=this.config)||void 0===t?void 0:t.maxNesting)<1||this.config.maxNesting>this.model.level)))}dispatchAddRule(e){if(e.stopPropagation(),!this.allowAddRule)throw new Error("Cannot add extra rules to group");const t={parentGroupId:this.model.groupId};this.dispatchEvent(new CustomEvent(nv.AddRule,{detail:t,bubbles:!0,composed:!0}))}dispatchAddGroup(e){if(e.stopPropagation(),!this.allowAddGroup)throw new Error("Cannot add further nested groups");const t={parentGroupId:this.model.groupId,newGroup:{level:this.model.level+1}};this.dispatchEvent(new CustomEvent(nv.AddGroup,{detail:t,bubbles:!0,composed:!0}))}dispatchDeleteGroup(e){e.stopPropagation();const t={groupId:this.model.groupId};this.dispatchEvent(new CustomEvent(nv.DelGroup,{detail:t,bubbles:!0,composed:!0}))}handleCombinatorChange(e){e.stopPropagation();const t=e.target.value;this.updateCombinator(t)}handleCustomCombinatorChange(e){var t;if(e.stopPropagation(),!(null===(t=this.model)||void 0===t?void 0:t.groupId)||!e.target)return;const i=e.target.getAttribute("value");if(!i)throw new Error("No value found in the custom radio group event target");this.updateCombinator(i)}updateCombinator(e){var t,i;const o=this.config.combinators.find(({type:t})=>t===e);if(!o)throw new Error(`Cannot find selected combinator ${e}`);(null===(i=null===(t=this.model)||void 0===t?void 0:t.combinator)||void 0===i?void 0:i.type)!==o.type&&this.dispatchGroupDataUpdated(o)}dispatchGroupDataUpdated(e){const t={groupId:this.model.groupId,newData:{combinator:e}};this.dispatchEvent(new CustomEvent(nv.UpdateGroup,{detail:t,bubbles:!0,composed:!0}))}};(0,C.Cg)([l.observable],uv.prototype,"config",void 0),(0,C.Cg)([l.observable],uv.prototype,"styles",void 0),(0,C.Cg)([l.observable],uv.prototype,"model",void 0),(0,C.Cg)([l.observable],uv.prototype,"index",void 0),(0,C.Cg)([l.volatile],uv.prototype,"allowAddRule",null),(0,C.Cg)([l.volatile],uv.prototype,"allowAddGroup",null),uv=(0,C.Cg)([(0,l.customElement)({name:"expression-group",template:cv,styles:sv,shadowOptions:{delegatesFocus:!0}})],uv);const hv=l.html`
6015
6129
  <div class="query-builder">
6016
6130
  ${(0,l.when)(e=>null!==e.model,l.html`
6017
6131
  <expression-group
@@ -6021,8 +6135,8 @@
6021
6135
  ></expression-group>
6022
6136
  `)}
6023
6137
  </div>
6024
- `,ag=l.html`
6025
- ${e=>{var t,i,o,n,s,a;const r=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.select)||"select",d=(null===(n=null===(o=e.styles)||void 0===o?void 0:o.customElements)||void 0===n?void 0:n.option)||"option",c=(null===(a=null===(s=e.styles)||void 0===s?void 0:s.customElements)||void 0===a?void 0:a.optgroup)||"optgroup";return l.html`
6138
+ `,pv=l.html`
6139
+ ${e=>{var t,i,o,n,a,s;const r=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.select)||"select",d=(null===(n=null===(o=e.styles)||void 0===o?void 0:o.customElements)||void 0===n?void 0:n.option)||"option",c=(null===(s=null===(a=e.styles)||void 0===a?void 0:a.customElements)||void 0===s?void 0:s.optgroup)||"optgroup";return l.html`
6026
6140
  <${r}
6027
6141
  class="form-select"
6028
6142
  @change=${(e,t)=>e.dispatchFieldsChanged(t.event)}
@@ -6052,8 +6166,8 @@
6052
6166
  `)}
6053
6167
  </${r}>
6054
6168
  `}}
6055
- `;let rg=class extends l.FASTElement{constructor(){super(...arguments),this.fields=[]}connectedCallback(){super.connectedCallback(),Xm(this,this.styles,"field")}get groupedFieldss(){return Km(this.fields)}dispatchFieldsChanged(e){e.stopPropagation();const t={fieldId:e.target.value};this.dispatchEvent(new CustomEvent(Jm.FieldSelected,{detail:t,bubbles:!0,composed:!0}))}};(0,C.Cg)([l.observable],rg.prototype,"fields",void 0),(0,C.Cg)([l.observable],rg.prototype,"field",void 0),(0,C.Cg)([l.observable],rg.prototype,"config",void 0),(0,C.Cg)([l.observable],rg.prototype,"styles",void 0),(0,C.Cg)([l.volatile],rg.prototype,"groupedFieldss",null),rg=(0,C.Cg)([(0,l.customElement)({name:"expression-rule-field",template:ag})],rg);const lg=l.html`
6056
- ${e=>{var t,i,o,n,s,a;const r=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.select)||"select",d=(null===(n=null===(o=e.styles)||void 0===o?void 0:o.customElements)||void 0===n?void 0:n.option)||"option",c=(null===(a=null===(s=e.styles)||void 0===s?void 0:s.customElements)||void 0===a?void 0:a.optgroup)||"optgroup";return l.html`
6169
+ `;let mv=class extends l.FASTElement{constructor(){super(...arguments),this.fields=[]}connectedCallback(){super.connectedCallback(),ov(this,this.styles,"field")}get groupedFieldss(){return iv(this.fields)}dispatchFieldsChanged(e){e.stopPropagation();const t={fieldId:e.target.value};this.dispatchEvent(new CustomEvent(nv.FieldSelected,{detail:t,bubbles:!0,composed:!0}))}};(0,C.Cg)([l.observable],mv.prototype,"fields",void 0),(0,C.Cg)([l.observable],mv.prototype,"field",void 0),(0,C.Cg)([l.observable],mv.prototype,"config",void 0),(0,C.Cg)([l.observable],mv.prototype,"styles",void 0),(0,C.Cg)([l.volatile],mv.prototype,"groupedFieldss",null),mv=(0,C.Cg)([(0,l.customElement)({name:"expression-rule-field",template:pv})],mv);const vv=l.html`
6170
+ ${e=>{var t,i,o,n,a,s;const r=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.select)||"select",d=(null===(n=null===(o=e.styles)||void 0===o?void 0:o.customElements)||void 0===n?void 0:n.option)||"option",c=(null===(s=null===(a=e.styles)||void 0===a?void 0:a.customElements)||void 0===s?void 0:s.optgroup)||"optgroup";return l.html`
6057
6171
  <${r}
6058
6172
  class="form-select"
6059
6173
  @change=${(e,t)=>e.handleOperatorChange(t.event)}
@@ -6085,7 +6199,7 @@
6085
6199
  `)}
6086
6200
  </${r}>
6087
6201
  `}}
6088
- `;let dg=class extends l.FASTElement{constructor(){super(...arguments),this.operators=[],this.field=null}connectedCallback(){super.connectedCallback(),Xm(this,this.styles,"operator")}get allowedOperators(){const e=e=>{var t,i,o;return null===(o=null===(i=null===(t=this.field)||void 0===t?void 0:t.operators)||void 0===i?void 0:i.includes(e.type))||void 0===o||o},t=e=>{var t,i,o,n;return null===(n=null===(i=null===(t=null==e?void 0:e.applyTo)||void 0===t?void 0:t.includes)||void 0===i?void 0:i.call(t,null===(o=this.field)||void 0===o?void 0:o.type))||void 0===n||n};return this.operators.filter(i=>e(i)&&t(i))}get groupedOperators(){return Km(this.allowedOperators)}handleOperatorChange(e){e.stopPropagation();const t={operatorId:e.target.value};this.dispatchEvent(new CustomEvent(Jm.OperatorSelected,{detail:t,bubbles:!0,composed:!0}))}};(0,C.Cg)([l.observable],dg.prototype,"operators",void 0),(0,C.Cg)([l.observable],dg.prototype,"operator",void 0),(0,C.Cg)([l.observable],dg.prototype,"field",void 0),(0,C.Cg)([l.observable],dg.prototype,"config",void 0),(0,C.Cg)([l.observable],dg.prototype,"styles",void 0),(0,C.Cg)([l.volatile],dg.prototype,"allowedOperators",null),(0,C.Cg)([l.volatile],dg.prototype,"groupedOperators",null),dg=(0,C.Cg)([(0,l.customElement)({name:"expression-rule-operator",template:lg})],dg);const cg=e=>["short","int","long"].includes(e),ug=e=>["double","bigdecimal"].includes(e),hg=(e,t)=>{var i,o;return null===(o=null===(i=(e=>cg(e)?/^[+-]?[0-9]+$/:ug(e)?/[+-]?([0-9]*[.])?[0-9]+/:null)(e))||void 0===i?void 0:i.test(t))||void 0===o||o?null:"Invalid number format"},pg=l.css`
6202
+ `;let gv=class extends l.FASTElement{constructor(){super(...arguments),this.operators=[],this.field=null}connectedCallback(){super.connectedCallback(),ov(this,this.styles,"operator")}get allowedOperators(){const e=e=>{var t,i,o;return null===(o=null===(i=null===(t=this.field)||void 0===t?void 0:t.operators)||void 0===i?void 0:i.includes(e.type))||void 0===o||o},t=e=>{var t,i,o,n;return null===(n=null===(i=null===(t=null==e?void 0:e.applyTo)||void 0===t?void 0:t.includes)||void 0===i?void 0:i.call(t,null===(o=this.field)||void 0===o?void 0:o.type))||void 0===n||n};return this.operators.filter(i=>e(i)&&t(i))}get groupedOperators(){return iv(this.allowedOperators)}handleOperatorChange(e){e.stopPropagation();const t={operatorId:e.target.value};this.dispatchEvent(new CustomEvent(nv.OperatorSelected,{detail:t,bubbles:!0,composed:!0}))}};(0,C.Cg)([l.observable],gv.prototype,"operators",void 0),(0,C.Cg)([l.observable],gv.prototype,"operator",void 0),(0,C.Cg)([l.observable],gv.prototype,"field",void 0),(0,C.Cg)([l.observable],gv.prototype,"config",void 0),(0,C.Cg)([l.observable],gv.prototype,"styles",void 0),(0,C.Cg)([l.volatile],gv.prototype,"allowedOperators",null),(0,C.Cg)([l.volatile],gv.prototype,"groupedOperators",null),gv=(0,C.Cg)([(0,l.customElement)({name:"expression-rule-operator",template:vv})],gv);const fv=e=>["short","int","long"].includes(e),bv=e=>["double","bigdecimal"].includes(e),yv=(e,t)=>{var i,o;return null===(o=null===(i=(e=>fv(e)?/^[+-]?[0-9]+$/:bv(e)?/[+-]?([0-9]*[.])?[0-9]+/:null)(e))||void 0===i?void 0:i.test(t))||void 0===o||o?null:"Invalid number format"},wv=l.css`
6089
6203
  .text-input.error {
6090
6204
  color: red;
6091
6205
  }
@@ -6094,34 +6208,34 @@
6094
6208
  display: inline-grid;
6095
6209
  align-items: center;
6096
6210
  }
6097
- `,mg=l.html`
6098
- ${e=>{var t,i;const o=Wm(e),n="datetime-local"===o?"datetimeLocal":o,s=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i[n])||"input";return l.html`
6099
- <${s}
6211
+ `,Cv=l.html`
6212
+ ${e=>{var t,i;const o=ev(e),n="datetime-local"===o?"datetimeLocal":o,a=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i[n])||"input";return l.html`
6213
+ <${a}
6100
6214
  type="${o}"
6101
6215
  class="text-input ${e=>(0,x.x)(["error",e.validationError])}"
6102
6216
  value=${e=>e.value}
6103
6217
  @blur=${(e,t)=>e.handleInputChange(t.event)}
6104
6218
  />
6105
6219
  `}}
6106
- `,gg=l.html`
6107
- ${e=>{var t,i,o,n;const s=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.select)||"select",a=(null===(n=null===(o=e.styles)||void 0===o?void 0:o.customElements)||void 0===n?void 0:n.option)||"option";return l.html`
6108
- <${s}
6220
+ `,xv=l.html`
6221
+ ${e=>{var t,i,o,n;const a=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.select)||"select",s=(null===(n=null===(o=e.styles)||void 0===o?void 0:o.customElements)||void 0===n?void 0:n.option)||"option";return l.html`
6222
+ <${a}
6109
6223
  class="form-select"
6110
6224
  @change=${(e,t)=>e.handleInputChange(t.event)}
6111
6225
  value=${e=>e.value}
6112
6226
  >
6113
- ${(0,l.repeat)(e=>{var t,i,o,n;const s="enum"===(null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&(null===(n=null===(o=null==e?void 0:e.operator)||void 0===o?void 0:o.valueType)||void 0===n?void 0:n.values)?e.operator.valueType.values:"enum"===e.field.type&&e.field.values?e.field.values:{};return Object.entries(s)},()=>l.html`
6114
- <${a}
6227
+ ${(0,l.repeat)(e=>{var t,i,o,n;const a="enum"===(null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&(null===(n=null===(o=null==e?void 0:e.operator)||void 0===o?void 0:o.valueType)||void 0===n?void 0:n.values)?e.operator.valueType.values:"enum"===e.field.type&&e.field.values?e.field.values:{};return Object.entries(a)},()=>l.html`
6228
+ <${s}
6115
6229
  value="${e=>e[0]}"
6116
6230
  ?selected=${(e,t)=>e[0]===t.parent.value}
6117
6231
  title="${e=>"object"==typeof e[1]?e[1].tooltip:""}"
6118
6232
  >
6119
6233
  ${e=>"object"==typeof e[1]?e[1].label:e[1]}
6120
- </${a}>
6234
+ </${s}>
6121
6235
  `)}
6122
- </${s}>
6236
+ </${a}>
6123
6237
  `}}
6124
- `,vg=l.html`
6238
+ `,$v=l.html`
6125
6239
  ${e=>{var t,i;const o=null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.checkbox,n=o||"input";return l.html`
6126
6240
  <label>
6127
6241
  <${n}
@@ -6133,15 +6247,15 @@
6133
6247
  True
6134
6248
  </label>
6135
6249
  `}}
6136
- `,fg=l.html`
6137
- <div>Input type "${e=>Wm(e)}" not yet supported.</div>
6138
- `,bg=l.html`
6139
- ${e=>{const t=Wm(e);return l.html`
6250
+ `,Sv=l.html`
6251
+ <div>Input type "${e=>ev(e)}" not yet supported.</div>
6252
+ `,Ev=l.html`
6253
+ ${e=>{const t=ev(e);return l.html`
6140
6254
  <div class="value-and-validation">
6141
- ${(0,l.when)(()=>["text","number","date","datetime-local"].includes(t),mg)}
6142
- ${(0,l.when)(()=>"select"===t,gg)}
6143
- ${(0,l.when)(()=>"checkbox"===t,vg)}
6144
- ${(0,l.when)(()=>!["text","number","select","checkbox","date","datetime-local"].includes(t),fg)}
6255
+ ${(0,l.when)(()=>["text","number","date","datetime-local"].includes(t),Cv)}
6256
+ ${(0,l.when)(()=>"select"===t,xv)}
6257
+ ${(0,l.when)(()=>"checkbox"===t,$v)}
6258
+ ${(0,l.when)(()=>!["text","number","select","checkbox","date","datetime-local"].includes(t),Sv)}
6145
6259
  ${(0,l.when)(e=>e.validationMsg,l.html`
6146
6260
  <p class="validation-msg">${e=>e.validationMsg}</p>
6147
6261
  `)}
@@ -6158,11 +6272,11 @@
6158
6272
  `}}
6159
6273
  `)}
6160
6274
  `}}
6161
- `,yg=l.html`
6162
- ${eg(e=>e.field,bg,l.html`
6275
+ `,Ov=l.html`
6276
+ ${rv(e=>e.field,Ev,l.html`
6163
6277
  <div>Select a field to set value</div>
6164
6278
  `)}
6165
- `;let wg=class extends l.FASTElement{constructor(){super(...arguments),this.variadic=!1,this.validationError=!1,this.field=null,this.operator=null}connectedCallback(){super.connectedCallback(),Xm(this,this.styles,"value")}validateInput(e){if(!this.field)return null;return["validation"in this.field?this.field.validation(e):null,hg(qm(this),e)].filter(e=>!!e).join(", ")||null}handleInputChange(e){e.stopPropagation();const t=e.target;if("checkbox"!==t.type&&"select-one"!==t.type){const e=this.validateInput(t.value);if(e)return this.validationError=!0,void(this.validationMsg=e);this.validationError=!1,this.validationMsg=null}let i;i="checkbox"===t.getAttribute("role")?t.checked:"select-one"===t.type?e.target.value:this.field&&cg(qm(this))?parseInt(t.value):this.field&&ug(qm(this))?parseFloat(t.value):t.value,this.value=i;const o={value:i,index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(Jm.ValueUpdated,{detail:o,bubbles:!0,composed:!0}))}handleRemoveVariadicOperand(){if(!this.variadic)throw new Error("Cannot remove inputs for non-variadic operator");const e={index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(Jm.RemoveVarArg,{detail:e,bubbles:!0,composed:!0}))}};(0,C.Cg)([(0,l.attr)({attribute:"value-index"})],wg.prototype,"valueIndex",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],wg.prototype,"variadic",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"validation-error"})],wg.prototype,"validationError",void 0),(0,C.Cg)([(0,l.attr)({attribute:"validation-msg"})],wg.prototype,"validationMsg",void 0),(0,C.Cg)([l.observable],wg.prototype,"field",void 0),(0,C.Cg)([l.observable],wg.prototype,"operator",void 0),(0,C.Cg)([l.observable],wg.prototype,"value",void 0),(0,C.Cg)([l.observable],wg.prototype,"config",void 0),(0,C.Cg)([l.observable],wg.prototype,"styles",void 0),wg=(0,C.Cg)([(0,l.customElement)({name:"expression-rule-value",template:yg,styles:pg,shadowOptions:{delegatesFocus:!0}})],wg);const Cg=(e,t)=>void 0!==t.field.defaultValue?t.field.defaultValue:xg(e,t),xg=(e,t)=>{var i,o;switch(qm(Object.assign(Object.assign({},t),{operator:e}))){case"string":return"";case"boolean":return!1;case"date":return jm(new Date);case"date-time":return Ym(new Date);case"double":case"int":case"bigdecimal":case"short":case"long":return 0;case"enum":{const n="enum"===(null===(i=null==e?void 0:e.valueType)||void 0===i?void 0:i.type)?null===(o=null==e?void 0:e.valueType)||void 0===o?void 0:o.values:"enum"===t.field.type?t.field.values:{};if(0===Object.keys(n).length)throw new Error("Enums require configured values");return Object.keys(n)[0]}}},$g=(e,t)=>{var i,o,n,s;const a=(r=e,l=t,e=>{var t,i,o;if((null===(t=null==r?void 0:r.valueType)||void 0===t?void 0:t.type)!==(null===(o=null===(i=l.operator)||void 0===i?void 0:i.valueType)||void 0===o?void 0:o.type))return null;if(!("value"in l)||!l.value||!l.operator)return null;const n=1===l.operator.nbInputs?[l.value]:l.value;return e>=n.length?null:n[e]});var r,l;switch(e.nbInputs){case 0:return{field:t.field,operator:e,value:void 0};case 1:return{field:t.field,operator:e,value:null!==(i=a(0))&&void 0!==i?i:Cg(e,t)};case 2:return{field:t.field,operator:e,value:[null!==(o=a(0))&&void 0!==o?o:Cg(e,t),null!==(n=a(1))&&void 0!==n?n:Cg(e,t)]};case"many":return{field:t.field,operator:e,value:[null!==(s=a(0))&&void 0!==s?s:Cg(e,t)]}}},Sg=(e,t,i)=>{switch(e.operator.nbInputs){case 0:throw new Error("Cannot set the value for a UniraryOperator");case 1:return{field:e.field,operator:e.operator,value:t};case 2:case"many":if(!("value"in e)||!Array.isArray(e.value))throw new Error("Invalid value shape for rule");return{field:e.field,operator:e.operator,value:e.value.map((e,o)=>o===i?t:e)}}},Eg=e=>!e&&0!==e,Og=l.css`
6279
+ `;let Tv=class extends l.FASTElement{constructor(){super(...arguments),this.variadic=!1,this.validationError=!1,this.field=null,this.operator=null}connectedCallback(){super.connectedCallback(),ov(this,this.styles,"value")}validateInput(e){if(!this.field)return null;return["validation"in this.field?this.field.validation(e):null,yv(tv(this),e)].filter(e=>!!e).join(", ")||null}handleInputChange(e){e.stopPropagation();const t=e.target;if("checkbox"!==t.type&&"select-one"!==t.type){const e=this.validateInput(t.value);if(e)return this.validationError=!0,void(this.validationMsg=e);this.validationError=!1,this.validationMsg=null}let i;i="checkbox"===t.getAttribute("role")?t.checked:"select-one"===t.type?e.target.value:this.field&&fv(tv(this))?parseInt(t.value):this.field&&bv(tv(this))?parseFloat(t.value):t.value,this.value=i;const o={value:i,index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(nv.ValueUpdated,{detail:o,bubbles:!0,composed:!0}))}handleRemoveVariadicOperand(){if(!this.variadic)throw new Error("Cannot remove inputs for non-variadic operator");const e={index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(nv.RemoveVarArg,{detail:e,bubbles:!0,composed:!0}))}};(0,C.Cg)([(0,l.attr)({attribute:"value-index"})],Tv.prototype,"valueIndex",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Tv.prototype,"variadic",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"validation-error"})],Tv.prototype,"validationError",void 0),(0,C.Cg)([(0,l.attr)({attribute:"validation-msg"})],Tv.prototype,"validationMsg",void 0),(0,C.Cg)([l.observable],Tv.prototype,"field",void 0),(0,C.Cg)([l.observable],Tv.prototype,"operator",void 0),(0,C.Cg)([l.observable],Tv.prototype,"value",void 0),(0,C.Cg)([l.observable],Tv.prototype,"config",void 0),(0,C.Cg)([l.observable],Tv.prototype,"styles",void 0),Tv=(0,C.Cg)([(0,l.customElement)({name:"expression-rule-value",template:Ov,styles:wv,shadowOptions:{delegatesFocus:!0}})],Tv);const kv=(e,t)=>void 0!==t.field.defaultValue?t.field.defaultValue:Dv(e,t),Dv=(e,t)=>{var i,o;switch(tv(Object.assign(Object.assign({},t),{operator:e}))){case"string":return"";case"boolean":return!1;case"date":return Qm(new Date);case"date-time":return Zm(new Date);case"double":case"int":case"bigdecimal":case"short":case"long":return 0;case"enum":{const n="enum"===(null===(i=null==e?void 0:e.valueType)||void 0===i?void 0:i.type)?null===(o=null==e?void 0:e.valueType)||void 0===o?void 0:o.values:"enum"===t.field.type?t.field.values:{};if(0===Object.keys(n).length)throw new Error("Enums require configured values");return Object.keys(n)[0]}}},Iv=(e,t)=>{var i,o,n,a;const s=(r=e,l=t,e=>{var t,i,o;if((null===(t=null==r?void 0:r.valueType)||void 0===t?void 0:t.type)!==(null===(o=null===(i=l.operator)||void 0===i?void 0:i.valueType)||void 0===o?void 0:o.type))return null;if(!("value"in l)||!l.value||!l.operator)return null;const n=1===l.operator.nbInputs?[l.value]:l.value;return e>=n.length?null:n[e]});var r,l;switch(e.nbInputs){case 0:return{field:t.field,operator:e,value:void 0};case 1:return{field:t.field,operator:e,value:null!==(i=s(0))&&void 0!==i?i:kv(e,t)};case 2:return{field:t.field,operator:e,value:[null!==(o=s(0))&&void 0!==o?o:kv(e,t),null!==(n=s(1))&&void 0!==n?n:kv(e,t)]};case"many":return{field:t.field,operator:e,value:[null!==(a=s(0))&&void 0!==a?a:kv(e,t)]}}},Rv=(e,t,i)=>{switch(e.operator.nbInputs){case 0:throw new Error("Cannot set the value for a UniraryOperator");case 1:return{field:e.field,operator:e.operator,value:t};case 2:case"many":if(!("value"in e)||!Array.isArray(e.value))throw new Error("Invalid value shape for rule");return{field:e.field,operator:e.operator,value:e.value.map((e,o)=>o===i?t:e)}}},Av=e=>!e&&0!==e,Lv=l.css`
6166
6280
  .rule-container {
6167
6281
  border: 1px solid #eee;
6168
6282
  margin-bottom: 5px;
@@ -6221,7 +6335,7 @@
6221
6335
  expression-rule-value {
6222
6336
  display: flex;
6223
6337
  }
6224
- `,Tg=l.html`
6338
+ `,Nv=l.html`
6225
6339
  ${e=>{var t,i;const o=(null===(i=null===(t=e.styles)||void 0===t?void 0:t.customElements)||void 0===i?void 0:i.button)||"button";return l.html`
6226
6340
  <div class="rule-container ${e=>(0,x.x)(["error",e.error])}">
6227
6341
  <div class="rule-content">
@@ -6281,17 +6395,17 @@ class="margin"
6281
6395
  </div>
6282
6396
  </div>
6283
6397
  `}}
6284
- `;let kg=class extends l.FASTElement{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),Xm(this,this.styles,"rule"),this.config.partialRuleValidationWarning&&(this.error=(e=>{if(!e.field||!e.operator)return!0;if(0===e.operator.nbInputs)return!1;if(!("value"in e))throw new Error("No value set as required for operator");return"boolean"!==qm(e)&&!!(Array.isArray(e.value)?e.value:[e.value]).some(Eg)})(this.model))}variadicRule(e){return"many"===e.operator.nbInputs&&"value"in e&&Array.isArray(e.value)}get operandIterator(){var e,t,i;if("many"===(null===(e=this.model.operator)||void 0===e?void 0:e.nbInputs)){if(!this.variadicRule(this.model))throw new Error("Varargs disabled for many nbInputs");return Array(this.model.value.length).fill(!0)}return Array(null!==(i=null===(t=this.model.operator)||void 0===t?void 0:t.nbInputs)&&void 0!==i?i:0).fill(!0)}operandValue(e){if(this.model.operator){if(1===this.model.operator.nbInputs&&"value"in this.model)return this.model.value;if((2===this.model.operator.nbInputs||"many"===this.model.operator.nbInputs)&&"value"in this.model&&Array.isArray(this.model.value))return this.model.value[e];throw new Error("Invalid operand lookup")}}dispatchAddVarArg(){if(!this.variadicRule(this.model))throw new Error("Cannot add inputs for non-variadic operator, or invalid format");const e={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:[...this.model.value,Cg(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(Jm.UpdateRule,{detail:e,bubbles:!0,composed:!0}))}handleRemoveVarArg(e){const{index:t}=e.detail;if(!this.variadicRule(this.model))throw new Error("Cannot remove inputs for non-variadic operator, or invalid format");const i={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:this.model.value.filter((e,i)=>i!==t)}};this.dispatchEvent(new CustomEvent(Jm.UpdateRule,{detail:i,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();const t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(Jm.DelRule,{detail:t,bubbles:!0,composed:!0}))}handleFieldSelected(e){var t;e.stopPropagation();const{fieldId:i}=e.detail,o=null!==(t=this.config.fields.find(e=>e.fieldId===i))&&void 0!==t?t:null,n={ruleId:this.model.ruleId,newData:{field:o,value:null,operator:null}};this.dispatchEvent(new CustomEvent(Jm.UpdateRule,{detail:n,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();const{value:t,index:i}=e.detail,o={ruleId:this.model.ruleId,newData:Sg(this.model,t,i)};this.dispatchEvent(new CustomEvent(Jm.UpdateRule,{detail:o,bubbles:!0,composed:!0}))}handleOperatorSelected(e){var t;e.stopPropagation();const{operatorId:i}=e.detail;if(!i)return;const o=null!==(t=this.config.operators.find(e=>e.type===i))&&void 0!==t?t:null;if(!o)throw new Error(`Unable to find operator of type ${i}`);this.dispatchEvent(new CustomEvent(Jm.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:$g(o,this.model)},bubbles:!0,composed:!0}))}};(0,C.Cg)([l.observable],kg.prototype,"config",void 0),(0,C.Cg)([l.observable],kg.prototype,"styles",void 0),(0,C.Cg)([l.observable],kg.prototype,"model",void 0),(0,C.Cg)([l.observable],kg.prototype,"index",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],kg.prototype,"error",void 0),(0,C.Cg)([l.volatile],kg.prototype,"operandIterator",null),kg=(0,C.Cg)([(0,l.customElement)({name:"expression-rule",template:Tg,styles:Og,shadowOptions:{delegatesFocus:!0}})],kg);let Dg=class extends l.FASTElement{constructor(){super(...arguments),this.model=null,this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!1,this.handleAddGroup=this._handleAddGroup.bind(this),this.handleAddRule=this._handleAddRule.bind(this),this.handleDeleteGroup=this._handleDeleteGroup.bind(this),this.handleDeleteRule=this._handleDeleteRule.bind(this),this.handleUpdateGroupData=this._handleUpdateGroupData.bind(this),this.handleUpdateRuleData=this._handleUpdateRuleData.bind(this)}configChanged(e,t){this.isValidConfig(t)?t.model?(this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!0,this.model=Vm(t.model,this),this.userUpdatingModel=!1):null===this.model&&this.initBaseModel():console.warn("Invalid config passed to ExpressionBuilder. Verify you've defined operators, fields, and combinators.")}modelChanged(e,t){if(!t||this.userUpdatingModel)return;const i=Gm(t);this.dispatchChangeEvent(i)}dispatchChangeEvent(e){this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,cancelable:!0,composed:!0}))}getConfig(){return this.config}getGroupId(){return this.groupCount+=1,`group-${this.groupCount}`}getRuleId(){return this.ruleCount+=1,`rule-${this.ruleCount}`}connectedCallback(){if(super.connectedCallback(),this.addEventListener(Jm.AddGroup,this.handleAddGroup),this.addEventListener(Jm.DelGroup,this.handleDeleteGroup),this.addEventListener(Jm.AddRule,this.handleAddRule),this.addEventListener(Jm.DelRule,this.handleDeleteRule),this.addEventListener(Jm.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(Jm.UpdateRule,this.handleUpdateRuleData),!this.isValidConfig(this.config))return this.config&&console.warn("Config detected during connectedCallback but it isn't valid"),void(this.config=null);this.config.model||this.initBaseModel()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(Jm.AddGroup,this.handleAddGroup),this.removeEventListener(Jm.DelGroup,this.handleDeleteGroup),this.removeEventListener(Jm.AddRule,this.handleAddRule),this.removeEventListener(Jm.DelRule,this.handleDeleteRule),this.removeEventListener(Jm.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(Jm.UpdateRule,this.handleUpdateRuleData)}isValidConfig(e){var t,i,o;return Boolean(e&&(null===(t=e.combinators)||void 0===t?void 0:t.length)&&(null===(i=e.operators)||void 0===i?void 0:i.length)&&(null===(o=e.fields)||void 0===o?void 0:o.length))}initBaseModel(){if(!this.isValidConfig(this.config))throw new Error("Invalid config set on ExpressionBuilder. Verify you've defined operators, fields, and combinators.");this.model={children:[],level:1,groupId:Bm,config:this.config,combinator:this.config.combinators[0]}}_handleAddGroup(e){const{parentGroupId:t,newGroup:i}=e.detail,o={groupId:this.getGroupId(),level:i.level,children:[],config:this.config,combinator:this.config.combinators[0]};this.model=Um(this.model,t,o)}_handleAddRule(e){const{parentGroupId:t}=e.detail,i={ruleId:this.getRuleId(),config:this.config,field:null,operator:null,value:null};this.model=Um(this.model,t,i)}_handleDeleteGroup(e){const{groupId:t}=e.detail;var i,o;this.model=_m(i=this.model,Pm(i,o=t).groupId,e=>e.filter(e=>!("groupId"in e)||e.groupId!==o))}_handleDeleteRule(e){const{ruleId:t}=e.detail;var i,o;this.model=_m(i=this.model,zm(i,o=t).groupId,e=>e.filter(e=>!("ruleId"in e)||e.ruleId!==o))}_handleUpdateGroupData(e){const{groupId:t,newData:i}=e.detail;this.model=function(e,t,i){return t===Bm?Object.assign(Object.assign({},e),i):_m(e,Pm(e,t).groupId,e=>e.map(e=>"groupId"in e&&e.groupId===t?Object.assign(Object.assign({},e),i):e))}(this.model,t,i)}_handleUpdateRuleData(e){const{ruleId:t,newData:i}=e.detail;this.model=function(e,t,i){return _m(e,zm(e,t).groupId,e=>e.map(e=>"ruleId"in e&&e.ruleId===t?Object.assign(Object.assign({},e),i):e))}(this.model,t,i)}};(0,C.Cg)([l.observable],Dg.prototype,"config",void 0),(0,C.Cg)([l.observable],Dg.prototype,"styles",void 0),(0,C.Cg)([l.observable],Dg.prototype,"model",void 0),Dg=(0,C.Cg)([(0,l.customElement)({name:"expression-builder",template:sg,styles:Qm})],Dg);let Ig=class extends Dg{};Ig=(0,C.Cg)([(0,l.customElement)({name:"foundation-expression-builder",styles:Qm,template:sg})],Ig);const Rg=["int","short","long"],Ag=["double","bigdecimal"],Lg=[...Rg,...Ag],Ng=["date","date-time"],Fg=["string","enum"],Mg=["boolean"],_g=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&void 0!==o?o:e.field.type};function Hg(e){switch(_g(e)){case"int":case"long":case"double":case"bigdecimal":case"date":case"date-time":case"short":return"NUMBER";case"string":case"enum":return"STRING";case"boolean":return"BOOLEAN"}}function Pg(e,t,i){return"value"in e?{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:{TYPE:i,VALUE:e.value}}:null}function zg(e,t,i){return{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:i}}function Ug(e,t,i=[]){return"value"in e?{TYPE:"METHOD_EXPRESSION",PARAMETERS:[{TYPE:"FIELD",NAME:e.field.fieldId},...i],METHOD:t}:null}function Bg(e){const t=!(!("value"in e)||void 0===e.value||null===e.value);return Object.assign(Object.assign({},e),t?{value:(t=>{const i=_g(e);if(Fg.includes(i))return t;if(Lg.includes(i))return t.toString();if(Mg.includes(i))return t;if(Array.isArray(t))throw new Error("Not implemented TernararyOperator or VariadicOperator args in rule value transformer");if(Ng.includes(i))return new Date(t).getTime().toString();throw new Error("Unhandled transformRuleValue case")})(e.value)}:{})}function Vg(e,t){return{TYPE:"PREDICATE_EXPRESSION",OPERATION:e.combinator.type,EXPRESSIONS:e.children.map(e=>"children"in e?Vg(e,t):t(e)).filter(Boolean)}}function Gg(e,t){const i=e.operator.nbInputs;if("many"===i||2===i)throw new Error("Not implemented TernararyOperator or VariadicOperator args in rebuildRuleValue");return Object.assign(Object.assign({},e),0===i?{}:{value:(t=>{const i=_g(e);if(Fg.includes(i))return t;if(Rg.includes(i))return parseInt(t);if(Ag.includes(i))return parseFloat(t);if(Mg.includes(i))return t;if(Ng.includes(i)){const e=new Date(parseInt(t));return"date"===i?jm(e):Ym(e)}throw new Error("Unhandled rebuildRuleValue case")})(t.VALUE)})}const jg={template:sg,styles:Qm};var Yg;!function(e){e.methodCall={CONTAINS_IGNORE_CASE:"CONTAINS_IGNORE_CASE",CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE:"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",TRIM:"TRIM",LONG_TO_DATE:"LONG_TO_DATE",LONG_TO_DATE_TIME:"LONG_TO_DATE_TIME",DATE_TIME_IS_IN_RANGE:"DATE_TIME_IS_IN_RANGE"},e.logicalOperations={AND:"AND",OR:"OR"},e.operations=Object.assign(Object.assign({},e.logicalOperations),{GREATER_THAN:"GREATER_THAN",LESS_THAN:"LESS_THAN",GREATER_THAN_OR_EQUAL:"GREATER_THAN_OR_EQUAL",LESS_THAN_OR_EQUAL:"LESS_THAN_OR_EQUAL",EQUALS:"EQUALS",NOT_EQUALS:"NOT_EQUALS",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",BITWISE_AND:"BITWISE_AND",BITWISE_OR:"BITWISE_OR",ASSIGNMENT:"ASSIGNMENT",IS_CURRENT:"IS_CURRENT",IS_PREVIOUS:"IS_PREVIOUS"})}(Yg||(Yg={}));const Wg=[{type:Yg.logicalOperations.AND,maxRules:"many"},{type:Yg.logicalOperations.OR,maxRules:"many"}],qg={EQUALS:Yg.operations.EQUALS,NOT_EQUALS:Yg.operations.NOT_EQUALS,IS_NULL:"IS_NULL",NOT_NULL:"NOT_NULL",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",CONTAINS:"CONTAINS",CONTAINS_WORDS_STARTING_WITH:"CONTAINS_WORDS_STARTING_WITH",CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:"CONTAINS_WORDS_STARTING_SPLIT_DELIMITER",GREATER_THAN:Yg.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:Yg.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:Yg.operations.LESS_THAN,LESS_THAN_OR_EQUAL:Yg.operations.LESS_THAN_OR_EQUAL,IS_BEFORE:"IS_BEFORE",IS_AFTER:"IS_AFTER",ON_OR_BEFORE:"ON_OR_BEFORE",ON_OR_AFTER:"ON_OR_AFTER",IS_CURRENT:Yg.operations.IS_CURRENT,IS_PREVIOUS:Yg.operations.IS_PREVIOUS},Kg=e=>({type:"enum",input:"select",values:e}),Xg=Kg({HOUR:{label:"Hour",tooltip:"Beginning of the hour immediately preceding the current one to the current hour."},DAY:{label:"Day",tooltip:"Midnight on the day before today to midnight of the current day."},WEEK_DAY:{label:"Week day",tooltip:"Midnight on the day before today to midnight of the current day. If the current day is Monday then the previous day is Friday."},WEEK:{label:"Week",tooltip:"Midnight on the Monday of the previous week to midnight on the Monday of the current week."},MONTH:{label:"Month",tooltip:"Midnight on the 1st of the previous month to midnight on the 1st of the current month."},YEAR:{label:"Year",tooltip:"Midnight on Jan 1st of the previous year to midnight on the 1st Jan of the current year."}}),Jg=Kg({HOUR:{label:"Hour",tooltip:"Beginning of the current hour to beginning of the next hour."},DAY:{label:"Day",tooltip:"Midnight on the current day day to midnight of the next day."},WEEK_DAY:{label:"Week day",tooltip:"Midnight on the current day day to midnight of the next day. This filter will never match Sat or Sun, always returning false on the weekends."},WEEK:{label:"Week",tooltip:"Midnight on the Monday of the current week to midnight on the Monday of the next week."},MONTH:{label:"Month",tooltip:"Midnight on the 1st of the current month to midnight on the 1st of the next month."},YEAR:{label:"Year",tooltip:"Midnight on Jan 1st of the current year to midnight on the 1st Jan of the next year."}}),Qg=[{type:qg.EQUALS,label:"Equals",nbInputs:1,applyTo:[...Fg,...Mg,...Lg,...Ng],tooltip:"Check the equality of the field compared to a set value"},{type:qg.NOT_EQUALS,label:"Not equals",nbInputs:1,applyTo:[...Fg,...Mg,...Lg,...Ng],tooltip:"Check that the field is different from a set value"},{type:qg.IS_NULL,label:"Is null",nbInputs:0,applyTo:["enum",...Mg,...Lg,...Ng],tooltip:"Check if the field value is null"},{type:qg.NOT_NULL,label:"Not null",nbInputs:0,applyTo:["enum",...Mg,...Lg,...Ng],tooltip:"Check if the field value is not null"},{type:qg.IS_NULL_OR_BLANK,label:"Is null or blank",nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is null or an empty string"},{type:qg.NOT_NULL_OR_BLANK,label:"Not null or blank",nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is not null and not an empty string"},{type:qg.CONTAINS,label:"Contains",nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains the specified text (case insensitive)"},{type:qg.CONTAINS_WORDS_STARTING_WITH,label:"Contains words starting with",nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains words that start with the specified text, split by whitespace (case insensitive)"},{type:qg.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER,label:"Contains words starting with (split)",nbInputs:2,applyTo:["string"],tooltip:"Check if field contains words starting with text, split by a delimiter (case insensitive)"},{type:qg.GREATER_THAN,label:"Greater than",nbInputs:1,applyTo:[...Lg],tooltip:"Check if the field value is greater than a specified number"},{type:qg.GREATER_THAN_OR_EQUAL,label:"Greater than or equal to",nbInputs:1,applyTo:[...Lg],tooltip:"Check if the field value is greater than or equal to a specified number"},{type:qg.LESS_THAN,label:"Less than",nbInputs:1,applyTo:[...Lg],tooltip:"Check if the field value is less than a specified number"},{type:qg.LESS_THAN_OR_EQUAL,label:"Less than or equal to",nbInputs:1,applyTo:[...Lg],tooltip:"Check if the field value is less than or equal to a specified number"},{type:qg.IS_BEFORE,label:"Is before",nbInputs:1,applyTo:[...Ng],tooltip:"Check if the field is before a specified date/time"},{type:qg.IS_AFTER,label:"Is after",nbInputs:1,applyTo:[...Ng],tooltip:"Check if the field is after a specified date/time"},{type:qg.ON_OR_BEFORE,label:"On or before",nbInputs:1,applyTo:[...Ng],tooltip:"Check if the field is on or before a specified date/time"},{type:qg.ON_OR_AFTER,label:"On or after",nbInputs:1,applyTo:[...Ng],tooltip:"Check if the field is on or after a specified date/time"},{type:qg.IS_CURRENT,label:"Is current",nbInputs:1,applyTo:[...Ng],tooltip:"Check whether the current date/time matches the current hour/day/work day/week/month/year.",valueType:Jg,optgroup:"Relative Period"},{type:qg.IS_PREVIOUS,label:"Is previous",nbInputs:1,applyTo:[...Ng],tooltip:"Check whether the current date/time matches the previous hour/day/work day/week/month/year",valueType:Xg,optgroup:"Relative Period"}];function Zg(e){switch(e){case"IS_BEFORE":return"LESS_THAN";case"IS_AFTER":return"GREATER_THAN";case"ON_OR_BEFORE":return"LESS_THAN_OR_EQUAL";case"ON_OR_AFTER":return"GREATER_THAN_OR_EQUAL";default:return e}}function ev(e,t){switch(t){case qg.IS_NULL_OR_BLANK:return Ug(e,Yg.methodCall.IS_NULL_OR_BLANK,[]);case qg.NOT_NULL_OR_BLANK:return Ug(e,Yg.methodCall.NOT_NULL_OR_BLANK,[]);case qg.CONTAINS:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS");return Ug(e,Yg.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case qg.CONTAINS_WORDS_STARTING_WITH:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS_WORDS_STARTING_WITH");return Ug(e,Yg.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case qg.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:if(!("value"in e)||!Array.isArray(e.value)||2!==e.value.length)throw new Error("Invalid shape for CONTAINS_WORDS_STARTING_SPLIT_DELIMITER");return Ug(e,Yg.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map(e=>({TYPE:"STRING",VALUE:e})));case qg.IS_CURRENT:case qg.IS_PREVIOUS:if(!("value"in e))throw new Error("Invalid shape for operator IS_CURRENT | IS_PREVIOUS");return Ug(e,Yg.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:"STRING",VALUE:e.value},{TYPE:"STRING",VALUE:t===qg.IS_CURRENT?"CURRENT":"PREVIOUS"}]);default:throw new Error("Unreachable default case")}}function tv(e){var t,i;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(i=e.field)||void 0===i?void 0:i.fieldId))return null;const o=Bg(e),n=Hg(o),s=Zg(o.operator.type);switch(s){case qg.EQUALS:case qg.NOT_EQUALS:case qg.GREATER_THAN:case qg.GREATER_THAN_OR_EQUAL:case qg.LESS_THAN:case qg.LESS_THAN_OR_EQUAL:return Pg(o,s,n);case qg.IS_NULL:return zg(o,Yg.operations.EQUALS,{TYPE:"NULL"});case qg.NOT_NULL:return zg(o,Yg.operations.NOT_EQUALS,{TYPE:"NULL"});case qg.IS_NULL_OR_BLANK:case qg.NOT_NULL_OR_BLANK:case qg.CONTAINS:case qg.CONTAINS_WORDS_STARTING_WITH:case qg.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case qg.IS_CURRENT:case qg.IS_PREVIOUS:return ev(o,s);default:throw new Error(`Unmatched case for operator name: ${s}`)}}function iv(e,t){if(!("date"===t.field.type||"date-time"===t.field.type))return e;switch(e){case"LESS_THAN":return"IS_BEFORE";case"GREATER_THAN":return"IS_AFTER";case"LESS_THAN_OR_EQUAL":return"ON_OR_BEFORE";case"GREATER_THAN_OR_EQUAL":return"ON_OR_AFTER";default:return e}}function ov(e,t){const i=(()=>{if("NULL"===t.RIGHT.TYPE){const e="EQUALS"===t.OPERATION?qg[qg.IS_NULL]:qg[qg.NOT_NULL];return Qg.find(t=>t.type===e)}const i=iv(t.OPERATION,e);return Qg.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}function nv(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return Gg(ov({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function sv(e,t){const[i,o]=(()=>{switch(!0){case"IS_NULL_OR_BLANK"===t.METHOD:return[qg[qg.IS_NULL_OR_BLANK],void 0];case"NOT_NULL_OR_BLANK"===t.METHOD:return[qg[qg.NOT_NULL_OR_BLANK],void 0];case"CONTAINS_IGNORE_CASE"===t.METHOD:return[qg[qg.CONTAINS],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&2===t.PARAMETERS.length:return[qg[qg.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&3===t.PARAMETERS.length:return[qg[qg.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map(e=>e.VALUE)];case t.METHOD===Yg.methodCall.DATE_TIME_IS_IN_RANGE&&3===t.PARAMETERS.length&&"STRING"===t.PARAMETERS[2].TYPE&&("CURRENT"===t.PARAMETERS[2].VALUE||"PREVIOUS"===t.PARAMETERS[2].VALUE):return[qg["CURRENT"===t.PARAMETERS[2].VALUE?qg.IS_CURRENT:qg.IS_PREVIOUS],t.PARAMETERS[1].VALUE];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:Qg.find(e=>e.type===i),value:o}}function av(e,t){return{combinator:Wg.find(e=>e.type===t.OPERATION),children:t.EXPRESSIONS.map(t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return av(e,t);if("BINARY_EXPRESSION"===t.TYPE)return nv(e,t);if("METHOD_EXPRESSION"===t.TYPE)return sv(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let rv=class extends Dg{ruleConfigChanged(e,t){this.config=Object.assign({combinators:Wg,operators:Qg,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},(null==t?void 0:t.model)?{model:av(t.fields,t.model)}:{})}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the ruleConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){const t=Vg(e,tv);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,C.Cg)([l.observable],rv.prototype,"ruleConfig",void 0),rv=(0,C.Cg)([(0,l.customElement)({name:"foundation-rule-expression-builder",styles:Qm,template:sg})],rv);const lv={TRIM:"TRIM",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",CONVERT_TO_DATE:"CONVERT_TO_DATE",CONVERT_TO_DATE_TIME:"CONVERT_TO_DATE_TIME"},dv=[{type:lv.PLUS,label:"Add (+)",applyTo:[...Lg],nbInputs:1,tooltip:"Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE"},{type:lv.MINUS,label:"Subtract (-)",applyTo:[...Lg],nbInputs:1,tooltip:"Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE"},{type:lv.MULTIPLY,label:"Multiply (*)",applyTo:[...Lg],nbInputs:1,tooltip:"Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE"},{type:lv.DIVIDE,label:"Divide (/)",applyTo:[...Lg],nbInputs:1,tooltip:"Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE"},{type:lv.CONVERT_TO_DATE,label:"Convert to date",applyTo:["date"],nbInputs:0,tooltip:"Returns the date, which is stored as the epoch time, as a formatted date YYYY/dd/mm"},{type:lv.CONVERT_TO_DATE_TIME,label:"Convert to date time",applyTo:["date-time"],nbInputs:0,tooltip:"Returns the date-time, which is stored as the epoch time, as a formatted date YYYY/dd/mm HH:mm:ss"}];function cv(e){var t,i;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(i=e.field)||void 0===i?void 0:i.fieldId))return null;const o=Bg(e),n=Hg(o),s=o.operator.type;switch(s){case lv.TRIM:case lv.CONVERT_TO_DATE:case lv.CONVERT_TO_DATE_TIME:return function(e,t){switch(t){case lv.TRIM:return Ug(e,Yg.methodCall.TRIM,[]);case lv.CONVERT_TO_DATE:return Ug(e,Yg.methodCall.LONG_TO_DATE,[]);case lv.CONVERT_TO_DATE_TIME:return Ug(e,Yg.methodCall.LONG_TO_DATE_TIME,[])}}(o,s);case lv.PLUS:case lv.MINUS:case lv.DIVIDE:case lv.MULTIPLY:return Pg(o,s,n);default:throw new Error(`Unmatched case for operator name: ${s}`)}}function uv(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return Gg(function(e,t){const i=(()=>{const i=function(e,t){return"date"===t.field.type||t.field.type,e}(t.OPERATION,e);return dv.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function hv(e,t){return{combinator:Im,children:t.EXPRESSIONS.map(t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return hv(e,t);if("BINARY_EXPRESSION"===t.TYPE)return uv(e,t);if("METHOD_EXPRESSION"===t.TYPE)return function(e,t){const[i,o]=(()=>{switch(!0){case"TRIM"===t.METHOD:return[lv[lv.TRIM],void 0];case"LONG_TO_DATE"===t.METHOD:return[lv[lv.CONVERT_TO_DATE],void 0];case"LONG_TO_DATE_TIME"===t.METHOD:return[lv[lv.CONVERT_TO_DATE_TIME],void 0];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:dv.find(e=>e.type===i),value:o}}(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let pv=class extends Dg{valueConfigChanged(e,t){const i={TYPE:"PREDICATE_EXPRESSION",OPERATION:"NULL",EXPRESSIONS:t.model?[t.model]:[]},o=hv(t.fields,i);this.config={combinators:[Im],operators:dv,fields:t.fields,model:o,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning}}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the valueConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){if(!("children"in e))throw new Error("Invalid top level group hierarchy");if(e.children.length>1)throw new Error("Value expressions should not have multiple rules");if(e.children[0]&&"children"in e.children[0])throw new Error("Trying to convert group to rule");const t=0===e.children.length?void 0:cv(e.children[0]);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,C.Cg)([l.observable],pv.prototype,"valueConfig",void 0),pv=(0,C.Cg)([(0,l.customElement)({name:"foundation-value-expression-builder",styles:Qm,template:sg})],pv);const mv=l.html`
6398
+ `;let Fv=class extends l.FASTElement{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),ov(this,this.styles,"rule"),this.config.partialRuleValidationWarning&&(this.error=(e=>{if(!e.field||!e.operator)return!0;if(0===e.operator.nbInputs)return!1;if(!("value"in e))throw new Error("No value set as required for operator");return"boolean"!==tv(e)&&!!(Array.isArray(e.value)?e.value:[e.value]).some(Av)})(this.model))}variadicRule(e){return"many"===e.operator.nbInputs&&"value"in e&&Array.isArray(e.value)}get operandIterator(){var e,t,i;if("many"===(null===(e=this.model.operator)||void 0===e?void 0:e.nbInputs)){if(!this.variadicRule(this.model))throw new Error("Varargs disabled for many nbInputs");return Array(this.model.value.length).fill(!0)}return Array(null!==(i=null===(t=this.model.operator)||void 0===t?void 0:t.nbInputs)&&void 0!==i?i:0).fill(!0)}operandValue(e){if(this.model.operator){if(1===this.model.operator.nbInputs&&"value"in this.model)return this.model.value;if((2===this.model.operator.nbInputs||"many"===this.model.operator.nbInputs)&&"value"in this.model&&Array.isArray(this.model.value))return this.model.value[e];throw new Error("Invalid operand lookup")}}dispatchAddVarArg(){if(!this.variadicRule(this.model))throw new Error("Cannot add inputs for non-variadic operator, or invalid format");const e={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:[...this.model.value,kv(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(nv.UpdateRule,{detail:e,bubbles:!0,composed:!0}))}handleRemoveVarArg(e){const{index:t}=e.detail;if(!this.variadicRule(this.model))throw new Error("Cannot remove inputs for non-variadic operator, or invalid format");const i={ruleId:this.model.ruleId,newData:{operator:this.model.operator,field:this.model.field,value:this.model.value.filter((e,i)=>i!==t)}};this.dispatchEvent(new CustomEvent(nv.UpdateRule,{detail:i,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();const t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(nv.DelRule,{detail:t,bubbles:!0,composed:!0}))}handleFieldSelected(e){var t;e.stopPropagation();const{fieldId:i}=e.detail,o=null!==(t=this.config.fields.find(e=>e.fieldId===i))&&void 0!==t?t:null,n={ruleId:this.model.ruleId,newData:{field:o,value:null,operator:null}};this.dispatchEvent(new CustomEvent(nv.UpdateRule,{detail:n,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();const{value:t,index:i}=e.detail,o={ruleId:this.model.ruleId,newData:Rv(this.model,t,i)};this.dispatchEvent(new CustomEvent(nv.UpdateRule,{detail:o,bubbles:!0,composed:!0}))}handleOperatorSelected(e){var t;e.stopPropagation();const{operatorId:i}=e.detail;if(!i)return;const o=null!==(t=this.config.operators.find(e=>e.type===i))&&void 0!==t?t:null;if(!o)throw new Error(`Unable to find operator of type ${i}`);this.dispatchEvent(new CustomEvent(nv.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:Iv(o,this.model)},bubbles:!0,composed:!0}))}};(0,C.Cg)([l.observable],Fv.prototype,"config",void 0),(0,C.Cg)([l.observable],Fv.prototype,"styles",void 0),(0,C.Cg)([l.observable],Fv.prototype,"model",void 0),(0,C.Cg)([l.observable],Fv.prototype,"index",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Fv.prototype,"error",void 0),(0,C.Cg)([l.volatile],Fv.prototype,"operandIterator",null),Fv=(0,C.Cg)([(0,l.customElement)({name:"expression-rule",template:Nv,styles:Lv,shadowOptions:{delegatesFocus:!0}})],Fv);let Mv=class extends l.FASTElement{constructor(){super(...arguments),this.model=null,this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!1,this.handleAddGroup=this._handleAddGroup.bind(this),this.handleAddRule=this._handleAddRule.bind(this),this.handleDeleteGroup=this._handleDeleteGroup.bind(this),this.handleDeleteRule=this._handleDeleteRule.bind(this),this.handleUpdateGroupData=this._handleUpdateGroupData.bind(this),this.handleUpdateRuleData=this._handleUpdateRuleData.bind(this)}configChanged(e,t){this.isValidConfig(t)?t.model?(this.ruleCount=0,this.groupCount=0,this.userUpdatingModel=!0,this.model=Xm(t.model,this),this.userUpdatingModel=!1):null===this.model&&this.initBaseModel():console.warn("Invalid config passed to ExpressionBuilder. Verify you've defined operators, fields, and combinators.")}modelChanged(e,t){if(!t||this.userUpdatingModel)return;const i=Jm(t);this.dispatchChangeEvent(i)}dispatchChangeEvent(e){this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,cancelable:!0,composed:!0}))}getConfig(){return this.config}getGroupId(){return this.groupCount+=1,`group-${this.groupCount}`}getRuleId(){return this.ruleCount+=1,`rule-${this.ruleCount}`}connectedCallback(){if(super.connectedCallback(),this.addEventListener(nv.AddGroup,this.handleAddGroup),this.addEventListener(nv.DelGroup,this.handleDeleteGroup),this.addEventListener(nv.AddRule,this.handleAddRule),this.addEventListener(nv.DelRule,this.handleDeleteRule),this.addEventListener(nv.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(nv.UpdateRule,this.handleUpdateRuleData),!this.isValidConfig(this.config))return this.config&&console.warn("Config detected during connectedCallback but it isn't valid"),void(this.config=null);this.config.model||this.initBaseModel()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(nv.AddGroup,this.handleAddGroup),this.removeEventListener(nv.DelGroup,this.handleDeleteGroup),this.removeEventListener(nv.AddRule,this.handleAddRule),this.removeEventListener(nv.DelRule,this.handleDeleteRule),this.removeEventListener(nv.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(nv.UpdateRule,this.handleUpdateRuleData)}isValidConfig(e){var t,i,o;return Boolean(e&&(null===(t=e.combinators)||void 0===t?void 0:t.length)&&(null===(i=e.operators)||void 0===i?void 0:i.length)&&(null===(o=e.fields)||void 0===o?void 0:o.length))}initBaseModel(){if(!this.isValidConfig(this.config))throw new Error("Invalid config set on ExpressionBuilder. Verify you've defined operators, fields, and combinators.");this.model={children:[],level:1,groupId:Km,config:this.config,combinator:this.config.combinators[0]}}_handleAddGroup(e){const{parentGroupId:t,newGroup:i}=e.detail,o={groupId:this.getGroupId(),level:i.level,children:[],config:this.config,combinator:this.config.combinators[0]};this.model=qm(this.model,t,o)}_handleAddRule(e){const{parentGroupId:t}=e.detail,i={ruleId:this.getRuleId(),config:this.config,field:null,operator:null,value:null};this.model=qm(this.model,t,i)}_handleDeleteGroup(e){const{groupId:t}=e.detail;var i,o;this.model=Gm(i=this.model,Ym(i,o=t).groupId,e=>e.filter(e=>!("groupId"in e)||e.groupId!==o))}_handleDeleteRule(e){const{ruleId:t}=e.detail;var i,o;this.model=Gm(i=this.model,Wm(i,o=t).groupId,e=>e.filter(e=>!("ruleId"in e)||e.ruleId!==o))}_handleUpdateGroupData(e){const{groupId:t,newData:i}=e.detail;this.model=function(e,t,i){return t===Km?Object.assign(Object.assign({},e),i):Gm(e,Ym(e,t).groupId,e=>e.map(e=>"groupId"in e&&e.groupId===t?Object.assign(Object.assign({},e),i):e))}(this.model,t,i)}_handleUpdateRuleData(e){const{ruleId:t,newData:i}=e.detail;this.model=function(e,t,i){return Gm(e,Wm(e,t).groupId,e=>e.map(e=>"ruleId"in e&&e.ruleId===t?Object.assign(Object.assign({},e),i):e))}(this.model,t,i)}};(0,C.Cg)([l.observable],Mv.prototype,"config",void 0),(0,C.Cg)([l.observable],Mv.prototype,"styles",void 0),(0,C.Cg)([l.observable],Mv.prototype,"model",void 0),Mv=(0,C.Cg)([(0,l.customElement)({name:"expression-builder",template:hv,styles:av})],Mv);let _v=class extends Mv{};_v=(0,C.Cg)([(0,l.customElement)({name:"foundation-expression-builder",styles:av,template:hv})],_v);const Hv=["int","short","long"],Pv=["double","bigdecimal"],zv=[...Hv,...Pv],Uv=["date","date-time"],Bv=["string","enum"],Vv=["boolean"],Gv=e=>{var t,i,o;return null!==(o=null===(i=null===(t=e.operator)||void 0===t?void 0:t.valueType)||void 0===i?void 0:i.type)&&void 0!==o?o:e.field.type};function jv(e){switch(Gv(e)){case"int":case"long":case"double":case"bigdecimal":case"date":case"date-time":case"short":return"NUMBER";case"string":case"enum":return"STRING";case"boolean":return"BOOLEAN"}}function Yv(e,t,i){return"value"in e?{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:{TYPE:i,VALUE:e.value}}:null}function Wv(e,t,i){return{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:i}}function qv(e,t,i=[]){return"value"in e?{TYPE:"METHOD_EXPRESSION",PARAMETERS:[{TYPE:"FIELD",NAME:e.field.fieldId},...i],METHOD:t}:null}function Kv(e){const t=!(!("value"in e)||void 0===e.value||null===e.value);return Object.assign(Object.assign({},e),t?{value:(t=>{const i=Gv(e);if(Bv.includes(i))return t;if(zv.includes(i))return t.toString();if(Vv.includes(i))return t;if(Array.isArray(t))throw new Error("Not implemented TernararyOperator or VariadicOperator args in rule value transformer");if(Uv.includes(i))return new Date(t).getTime().toString();throw new Error("Unhandled transformRuleValue case")})(e.value)}:{})}function Xv(e,t){return{TYPE:"PREDICATE_EXPRESSION",OPERATION:e.combinator.type,EXPRESSIONS:e.children.map(e=>"children"in e?Xv(e,t):t(e)).filter(Boolean)}}function Jv(e,t){const i=e.operator.nbInputs;if("many"===i||2===i)throw new Error("Not implemented TernararyOperator or VariadicOperator args in rebuildRuleValue");return Object.assign(Object.assign({},e),0===i?{}:{value:(t=>{const i=Gv(e);if(Bv.includes(i))return t;if(Hv.includes(i))return parseInt(t);if(Pv.includes(i))return parseFloat(t);if(Vv.includes(i))return t;if(Uv.includes(i)){const e=new Date(parseInt(t));return"date"===i?Qm(e):Zm(e)}throw new Error("Unhandled rebuildRuleValue case")})(t.VALUE)})}const Qv={template:hv,styles:av};var Zv;!function(e){e.methodCall={CONTAINS_IGNORE_CASE:"CONTAINS_IGNORE_CASE",CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE:"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",TRIM:"TRIM",LONG_TO_DATE:"LONG_TO_DATE",LONG_TO_DATE_TIME:"LONG_TO_DATE_TIME",DATE_TIME_IS_IN_RANGE:"DATE_TIME_IS_IN_RANGE"},e.logicalOperations={AND:"AND",OR:"OR"},e.operations=Object.assign(Object.assign({},e.logicalOperations),{GREATER_THAN:"GREATER_THAN",LESS_THAN:"LESS_THAN",GREATER_THAN_OR_EQUAL:"GREATER_THAN_OR_EQUAL",LESS_THAN_OR_EQUAL:"LESS_THAN_OR_EQUAL",EQUALS:"EQUALS",NOT_EQUALS:"NOT_EQUALS",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",BITWISE_AND:"BITWISE_AND",BITWISE_OR:"BITWISE_OR",ASSIGNMENT:"ASSIGNMENT",IS_CURRENT:"IS_CURRENT",IS_PREVIOUS:"IS_PREVIOUS"})}(Zv||(Zv={}));const eg=[{type:Zv.logicalOperations.AND,maxRules:"many"},{type:Zv.logicalOperations.OR,maxRules:"many"}],tg={EQUALS:Zv.operations.EQUALS,NOT_EQUALS:Zv.operations.NOT_EQUALS,IS_NULL:"IS_NULL",NOT_NULL:"NOT_NULL",IS_NULL_OR_BLANK:"IS_NULL_OR_BLANK",NOT_NULL_OR_BLANK:"NOT_NULL_OR_BLANK",CONTAINS:"CONTAINS",CONTAINS_WORDS_STARTING_WITH:"CONTAINS_WORDS_STARTING_WITH",CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:"CONTAINS_WORDS_STARTING_SPLIT_DELIMITER",GREATER_THAN:Zv.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:Zv.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:Zv.operations.LESS_THAN,LESS_THAN_OR_EQUAL:Zv.operations.LESS_THAN_OR_EQUAL,IS_BEFORE:"IS_BEFORE",IS_AFTER:"IS_AFTER",ON_OR_BEFORE:"ON_OR_BEFORE",ON_OR_AFTER:"ON_OR_AFTER",IS_CURRENT:Zv.operations.IS_CURRENT,IS_PREVIOUS:Zv.operations.IS_PREVIOUS},ig=e=>({type:"enum",input:"select",values:e}),og=ig({HOUR:{label:"Hour",tooltip:"Beginning of the hour immediately preceding the current one to the current hour."},DAY:{label:"Day",tooltip:"Midnight on the day before today to midnight of the current day."},WEEK_DAY:{label:"Week day",tooltip:"Midnight on the day before today to midnight of the current day. If the current day is Monday then the previous day is Friday."},WEEK:{label:"Week",tooltip:"Midnight on the Monday of the previous week to midnight on the Monday of the current week."},MONTH:{label:"Month",tooltip:"Midnight on the 1st of the previous month to midnight on the 1st of the current month."},YEAR:{label:"Year",tooltip:"Midnight on Jan 1st of the previous year to midnight on the 1st Jan of the current year."}}),ng=ig({HOUR:{label:"Hour",tooltip:"Beginning of the current hour to beginning of the next hour."},DAY:{label:"Day",tooltip:"Midnight on the current day day to midnight of the next day."},WEEK_DAY:{label:"Week day",tooltip:"Midnight on the current day day to midnight of the next day. This filter will never match Sat or Sun, always returning false on the weekends."},WEEK:{label:"Week",tooltip:"Midnight on the Monday of the current week to midnight on the Monday of the next week."},MONTH:{label:"Month",tooltip:"Midnight on the 1st of the current month to midnight on the 1st of the next month."},YEAR:{label:"Year",tooltip:"Midnight on Jan 1st of the current year to midnight on the 1st Jan of the next year."}}),ag=[{type:tg.EQUALS,label:"Equals",nbInputs:1,applyTo:[...Bv,...Vv,...zv,...Uv],tooltip:"Check the equality of the field compared to a set value"},{type:tg.NOT_EQUALS,label:"Not equals",nbInputs:1,applyTo:[...Bv,...Vv,...zv,...Uv],tooltip:"Check that the field is different from a set value"},{type:tg.IS_NULL,label:"Is null",nbInputs:0,applyTo:["enum",...Vv,...zv,...Uv],tooltip:"Check if the field value is null"},{type:tg.NOT_NULL,label:"Not null",nbInputs:0,applyTo:["enum",...Vv,...zv,...Uv],tooltip:"Check if the field value is not null"},{type:tg.IS_NULL_OR_BLANK,label:"Is null or blank",nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is null or an empty string"},{type:tg.NOT_NULL_OR_BLANK,label:"Not null or blank",nbInputs:0,applyTo:["string"],tooltip:"Check if the field value is not null and not an empty string"},{type:tg.CONTAINS,label:"Contains",nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains the specified text (case insensitive)"},{type:tg.CONTAINS_WORDS_STARTING_WITH,label:"Contains words starting with",nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains words that start with the specified text, split by whitespace (case insensitive)"},{type:tg.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER,label:"Contains words starting with (split)",nbInputs:2,applyTo:["string"],tooltip:"Check if field contains words starting with text, split by a delimiter (case insensitive)"},{type:tg.GREATER_THAN,label:"Greater than",nbInputs:1,applyTo:[...zv],tooltip:"Check if the field value is greater than a specified number"},{type:tg.GREATER_THAN_OR_EQUAL,label:"Greater than or equal to",nbInputs:1,applyTo:[...zv],tooltip:"Check if the field value is greater than or equal to a specified number"},{type:tg.LESS_THAN,label:"Less than",nbInputs:1,applyTo:[...zv],tooltip:"Check if the field value is less than a specified number"},{type:tg.LESS_THAN_OR_EQUAL,label:"Less than or equal to",nbInputs:1,applyTo:[...zv],tooltip:"Check if the field value is less than or equal to a specified number"},{type:tg.IS_BEFORE,label:"Is before",nbInputs:1,applyTo:[...Uv],tooltip:"Check if the field is before a specified date/time"},{type:tg.IS_AFTER,label:"Is after",nbInputs:1,applyTo:[...Uv],tooltip:"Check if the field is after a specified date/time"},{type:tg.ON_OR_BEFORE,label:"On or before",nbInputs:1,applyTo:[...Uv],tooltip:"Check if the field is on or before a specified date/time"},{type:tg.ON_OR_AFTER,label:"On or after",nbInputs:1,applyTo:[...Uv],tooltip:"Check if the field is on or after a specified date/time"},{type:tg.IS_CURRENT,label:"Is current",nbInputs:1,applyTo:[...Uv],tooltip:"Check whether the current date/time matches the current hour/day/work day/week/month/year.",valueType:ng,optgroup:"Relative Period"},{type:tg.IS_PREVIOUS,label:"Is previous",nbInputs:1,applyTo:[...Uv],tooltip:"Check whether the current date/time matches the previous hour/day/work day/week/month/year",valueType:og,optgroup:"Relative Period"}];function sg(e){switch(e){case"IS_BEFORE":return"LESS_THAN";case"IS_AFTER":return"GREATER_THAN";case"ON_OR_BEFORE":return"LESS_THAN_OR_EQUAL";case"ON_OR_AFTER":return"GREATER_THAN_OR_EQUAL";default:return e}}function rg(e,t){switch(t){case tg.IS_NULL_OR_BLANK:return qv(e,Zv.methodCall.IS_NULL_OR_BLANK,[]);case tg.NOT_NULL_OR_BLANK:return qv(e,Zv.methodCall.NOT_NULL_OR_BLANK,[]);case tg.CONTAINS:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS");return qv(e,Zv.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case tg.CONTAINS_WORDS_STARTING_WITH:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS_WORDS_STARTING_WITH");return qv(e,Zv.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case tg.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:if(!("value"in e)||!Array.isArray(e.value)||2!==e.value.length)throw new Error("Invalid shape for CONTAINS_WORDS_STARTING_SPLIT_DELIMITER");return qv(e,Zv.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map(e=>({TYPE:"STRING",VALUE:e})));case tg.IS_CURRENT:case tg.IS_PREVIOUS:if(!("value"in e))throw new Error("Invalid shape for operator IS_CURRENT | IS_PREVIOUS");return qv(e,Zv.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:"STRING",VALUE:e.value},{TYPE:"STRING",VALUE:t===tg.IS_CURRENT?"CURRENT":"PREVIOUS"}]);default:throw new Error("Unreachable default case")}}function lg(e){var t,i;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(i=e.field)||void 0===i?void 0:i.fieldId))return null;const o=Kv(e),n=jv(o),a=sg(o.operator.type);switch(a){case tg.EQUALS:case tg.NOT_EQUALS:case tg.GREATER_THAN:case tg.GREATER_THAN_OR_EQUAL:case tg.LESS_THAN:case tg.LESS_THAN_OR_EQUAL:return Yv(o,a,n);case tg.IS_NULL:return Wv(o,Zv.operations.EQUALS,{TYPE:"NULL"});case tg.NOT_NULL:return Wv(o,Zv.operations.NOT_EQUALS,{TYPE:"NULL"});case tg.IS_NULL_OR_BLANK:case tg.NOT_NULL_OR_BLANK:case tg.CONTAINS:case tg.CONTAINS_WORDS_STARTING_WITH:case tg.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case tg.IS_CURRENT:case tg.IS_PREVIOUS:return rg(o,a);default:throw new Error(`Unmatched case for operator name: ${a}`)}}function dg(e,t){if(!("date"===t.field.type||"date-time"===t.field.type))return e;switch(e){case"LESS_THAN":return"IS_BEFORE";case"GREATER_THAN":return"IS_AFTER";case"LESS_THAN_OR_EQUAL":return"ON_OR_BEFORE";case"GREATER_THAN_OR_EQUAL":return"ON_OR_AFTER";default:return e}}function cg(e,t){const i=(()=>{if("NULL"===t.RIGHT.TYPE){const e="EQUALS"===t.OPERATION?tg[tg.IS_NULL]:tg[tg.NOT_NULL];return ag.find(t=>t.type===e)}const i=dg(t.OPERATION,e);return ag.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}function ug(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return Jv(cg({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function hg(e,t){const[i,o]=(()=>{switch(!0){case"IS_NULL_OR_BLANK"===t.METHOD:return[tg[tg.IS_NULL_OR_BLANK],void 0];case"NOT_NULL_OR_BLANK"===t.METHOD:return[tg[tg.NOT_NULL_OR_BLANK],void 0];case"CONTAINS_IGNORE_CASE"===t.METHOD:return[tg[tg.CONTAINS],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&2===t.PARAMETERS.length:return[tg[tg.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&3===t.PARAMETERS.length:return[tg[tg.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map(e=>e.VALUE)];case t.METHOD===Zv.methodCall.DATE_TIME_IS_IN_RANGE&&3===t.PARAMETERS.length&&"STRING"===t.PARAMETERS[2].TYPE&&("CURRENT"===t.PARAMETERS[2].VALUE||"PREVIOUS"===t.PARAMETERS[2].VALUE):return[tg["CURRENT"===t.PARAMETERS[2].VALUE?tg.IS_CURRENT:tg.IS_PREVIOUS],t.PARAMETERS[1].VALUE];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:ag.find(e=>e.type===i),value:o}}function pg(e,t){return{combinator:eg.find(e=>e.type===t.OPERATION),children:t.EXPRESSIONS.map(t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return pg(e,t);if("BINARY_EXPRESSION"===t.TYPE)return ug(e,t);if("METHOD_EXPRESSION"===t.TYPE)return hg(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let mg=class extends Mv{ruleConfigChanged(e,t){this.config=Object.assign({combinators:eg,operators:ag,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},(null==t?void 0:t.model)?{model:pg(t.fields,t.model)}:{})}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the ruleConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){const t=Xv(e,lg);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,C.Cg)([l.observable],mg.prototype,"ruleConfig",void 0),mg=(0,C.Cg)([(0,l.customElement)({name:"foundation-rule-expression-builder",styles:av,template:hv})],mg);const vg={TRIM:"TRIM",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",CONVERT_TO_DATE:"CONVERT_TO_DATE",CONVERT_TO_DATE_TIME:"CONVERT_TO_DATE_TIME"},gg=[{type:vg.PLUS,label:"Add (+)",applyTo:[...zv],nbInputs:1,tooltip:"Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE"},{type:vg.MINUS,label:"Subtract (-)",applyTo:[...zv],nbInputs:1,tooltip:"Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE"},{type:vg.MULTIPLY,label:"Multiply (*)",applyTo:[...zv],nbInputs:1,tooltip:"Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE"},{type:vg.DIVIDE,label:"Divide (/)",applyTo:[...zv],nbInputs:1,tooltip:"Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE"},{type:vg.CONVERT_TO_DATE,label:"Convert to date",applyTo:["date"],nbInputs:0,tooltip:"Returns the date, which is stored as the epoch time, as a formatted date YYYY/dd/mm"},{type:vg.CONVERT_TO_DATE_TIME,label:"Convert to date time",applyTo:["date-time"],nbInputs:0,tooltip:"Returns the date-time, which is stored as the epoch time, as a formatted date YYYY/dd/mm HH:mm:ss"}];function fg(e){var t,i;if(!(null===(t=e.operator)||void 0===t?void 0:t.type)||!(null===(i=e.field)||void 0===i?void 0:i.fieldId))return null;const o=Kv(e),n=jv(o),a=o.operator.type;switch(a){case vg.TRIM:case vg.CONVERT_TO_DATE:case vg.CONVERT_TO_DATE_TIME:return function(e,t){switch(t){case vg.TRIM:return qv(e,Zv.methodCall.TRIM,[]);case vg.CONVERT_TO_DATE:return qv(e,Zv.methodCall.LONG_TO_DATE,[]);case vg.CONVERT_TO_DATE_TIME:return qv(e,Zv.methodCall.LONG_TO_DATE_TIME,[])}}(o,a);case vg.PLUS:case vg.MINUS:case vg.DIVIDE:case vg.MULTIPLY:return Yv(o,a,n);default:throw new Error(`Unmatched case for operator name: ${a}`)}}function bg(e,t){if("FIELD"!==t.LEFT.TYPE)throw new Error("BinaryExpression LHS must be TYPE === FIELD");if(!["STRING","NUMBER","BOOLEAN","NULL"].includes(t.RIGHT.TYPE))throw new Error("BinaryExpression RHS must be TYPE === NUMBER | STRING | BOOLEAN | NULL");return Jv(function(e,t){const i=(()=>{const i=function(e,t){return"date"===t.field.type||t.field.type,e}(t.OPERATION,e);return gg.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function yg(e,t){return{combinator:_m,children:t.EXPRESSIONS.map(t=>{if(!("TYPE"in t))throw new Error("RuleExpression format not yet supported - no TYPE");if("PREDICATE_EXPRESSION"===t.TYPE)return yg(e,t);if("BINARY_EXPRESSION"===t.TYPE)return bg(e,t);if("METHOD_EXPRESSION"===t.TYPE)return function(e,t){const[i,o]=(()=>{switch(!0){case"TRIM"===t.METHOD:return[vg[vg.TRIM],void 0];case"LONG_TO_DATE"===t.METHOD:return[vg[vg.CONVERT_TO_DATE],void 0];case"LONG_TO_DATE_TIME"===t.METHOD:return[vg[vg.CONVERT_TO_DATE_TIME],void 0];default:throw new Error("Unhandled fromMethodExpression case")}})();return{field:e.find(e=>e.fieldId===t.PARAMETERS[0].NAME),operator:gg.find(e=>e.type===i),value:o}}(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let wg=class extends Mv{valueConfigChanged(e,t){const i={TYPE:"PREDICATE_EXPRESSION",OPERATION:"NULL",EXPRESSIONS:t.model?[t.model]:[]},o=yg(t.fields,i);this.config={combinators:[_m],operators:gg,fields:t.fields,model:o,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning}}configChanged(e,t){if(null!==t){if(!t.operators||!t.combinators)throw new Error("Unable to detect operators or combinators. Did you set the config on the rule builder via the config property? Use the valueConfig property instead");super.configChanged(e,t)}}dispatchChangeEvent(e){if(!("children"in e))throw new Error("Invalid top level group hierarchy");if(e.children.length>1)throw new Error("Value expressions should not have multiple rules");if(e.children[0]&&"children"in e.children[0])throw new Error("Trying to convert group to rule");const t=0===e.children.length?void 0:fg(e.children[0]);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,C.Cg)([l.observable],wg.prototype,"valueConfig",void 0),wg=(0,C.Cg)([(0,l.customElement)({name:"foundation-value-expression-builder",styles:av,template:hv})],wg);const Cg=l.html`
6285
6399
  <template ${(0,l.ref)("notificationListener")}>
6286
6400
  <slot></slot>
6287
6401
  </template>
6288
- `,gv={mode:"open",delegatesFocus:!0};class vv extends a.FoundationElement{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.addEventListener(pe.NOTIFICATION_EVENT,e=>{e.stopImmediatePropagation(),Ce(e.detail,this.tagName,this.notificationListener)}),this.connectionSub=this.connect.isConnected$.subscribe(e=>(0,C.sH)(this,void 0,void 0,function*(){e&&(yield this.handleReconnection())}))})}handleReconnection(){return(0,C.sH)(this,void 0,void 0,function*(){var e;this.resourceName&&(null===(e=this.dataSub)||void 0===e||e.unsubscribe(),this.dataSub=void 0,yield this.initializeDatasource(),this.setupDataSubscription())})}initializeDatasource(){return(0,C.sH)(this,void 0,void 0,function*(){var e;(null===(e=this.datasource)||void 0===e?void 0:e.initialized)&&this.datasource.destroy();if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))throw new Error(`Failed to initialize datasource for ${this.resourceName}`)})}setupDataSubscription(){this.datasource.stream?this.dataSub=this.datasource.stream.subscribe(e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,di.d)(e))}):ot.warn(`No stream available for ${this.resourceName}`)}disconnectedCallback(){var e,t,i;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.connectionSub)||void 0===t||t.unsubscribe(),delete this.connectionSub,null===(i=this.datasource)||void 0===i||i.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:i,NOTIFY_SEVERITY:o}=e,n=e.CREATED_AT?new Date(e.CREATED_AT):void 0,s=e.EXPIRY?e.EXPIRY-e.CREATED_AT:void 0;let a=[];this.toastButtons&&this.toastButtons.length>0&&(a=this.toastButtons.filter(({condition:t})=>!t||t({details:e})));const r={title:t,body:i,createdAt:n,toast:{details:e,type:null==o?void 0:o.toLowerCase(),buttons:a,autoClose:void 0!==s?!!s:!!this.closeTimeout,closeTimeout:null!=s?s:this.closeTimeout,position:this.toastPosition}};sc(r,this.tagName)}}(0,C.Cg)([l.observable],vv.prototype,"notificationListener",void 0),(0,C.Cg)([ui.dm],vv.prototype,"connect",void 0),(0,C.Cg)([(0,l.attr)({attribute:"resource-name"})],vv.prototype,"resourceName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],vv.prototype,"closeTimeout",void 0),(0,C.Cg)([l.observable],vv.prototype,"toastButtons",void 0),(0,C.Cg)([(0,l.attr)({attribute:"toast-position"})],vv.prototype,"toastPosition",void 0),(0,C.Cg)([hi.yW],vv.prototype,"datasource",void 0);const fv=vv.compose({baseName:"notification-listener",template:mv,shadowOptions:gv}),bv=(e,t)=>i=>{const o="function"==typeof t?t:(n=t,e=>Object.assign(Object.assign({},n),e));var n;return l.FASTElement.define(class extends e{},o(i))};function yv(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=l.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}var wv;!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(wv||(wv={}));class Cv{trackEvent(e,t){js.v.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`)}}const xv=a.DI.createInterface(e=>e.singleton(Cv));var $v=i(98647),Sv=i(35044);const Ev=(0,it.createLogger)("foundation-router");var Ov=i(36132),Tv=i(80751),kv=i(3479);const Dv="$router",Iv=Object.freeze({getOrCreateFor:e=>{const t=e[Dv];return void 0!==t?t:e[Dv]=new Rv(e)},find:e=>kv.Ix.find(e),from:e=>kv.Ix.from(e)});class Rv extends kv.LK{}const Av=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function Lv(e){return Av.test(e)}function Nv(e){return e.config instanceof $v.Y?e:Iv.find(e)}function Fv(e){return Nv(e).parent}function Mv(e){let t=Nv(e);for(;t&&t.level>0;)t=t.parent;return t}function _v(e,t="/",i=!1){const o=e.join(t).replace(new RegExp(t+"{1,}","g"),t);return!i&&o.endsWith(t)?o.slice(0,-1):o}function Hv(e,t="/"){const i=e.split(t);return 2===i.length&&""===i[0]&&""!==i[1]?e:(i.length>1&&i.pop(),i.join(t))}function Pv(e){return e.replace(`/*${Tv.N}`,"")}function zv(){null===document.querySelector("foundation-router, fast-router")&&window.dispatchEvent(new PopStateEvent("popstate"))}const Uv=Object.freeze({path:Object.freeze({get current(){return Ov.qh.path.current},generateRoute:(e,t,...i)=>(0,C.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){let o=Nv(e);for(;null!==o;){const e=yield o.config.generateRouteFromPath(t,i);if(null!==e)return e;o=o.parent}return null}),push:(e,t=!0)=>{e&&Lv(e)?location.href=e:(history.pushState({},document.title,e),zv(),t&&Uv.path.trigger(e))},replace:(e,t=!0)=>{e&&Lv(e)?location.href=e:(history.replaceState({},document.title,e),zv(),t&&Uv.path.trigger(e))},trigger:e=>{Ov.qh.path.trigger(e)}}),name:Object.freeze({generateRoute:(e,t,...i)=>(0,C.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){let o=Nv(e);for(;null!==o;){const e=yield o.config.generateRouteFromName(t,i);if(null!==e)return e;o=o.parent}return null}),push:(e,t,...i)=>(0,C.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={},o=!0){const n=yield Uv.name.generateRoute(e,t,i);null!==n&&Uv.path.push(n,o)}),replace:(e,t,...i)=>(0,C.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={},o=!0){const n=yield Uv.name.generateRoute(e,t,i);null!==n&&Uv.path.replace(n,o)}),trigger:(e,t,...i)=>(0,C.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){const o=yield Uv.name.generateRoute(e,t,i);null!==o&&Uv.path.trigger(o)})})}),Bv=e=>!e.navId||"header"===e.navId||"side-nav"===e.navId,Vv=10;function Gv(e,t=Bv,i=Vv){const o=[];return e.filter(e=>e.navItems&&e.navItems.some(t)).forEach((e,n)=>{e.navItems.filter(t).map((t,o)=>{var s,a,r,l;const d=null!==(s=t.placementIndex)&&void 0!==s?s:n*i+o;return Object.assign(Object.assign({},t),{navId:null!==(a=t.navId)&&void 0!==a?a:"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=>o.push(e))}),o.sort((e,t)=>e.placementIndex-t.placementIndex)}class jv extends Tv.s{constructor(){super(...arguments),this.definitions=[]}map(...e){const t=this.owner,i=!t.parent,o=t.basename;i&&(""!==o&&"/"!==o)&&(Ev.debug("Route paths remap required due to detected sub-path deployment"),e=e.map(e=>{if(!e.path)return e;if(e.path.startsWith(o))return Ev.debug(`'${e.path}' path okay as is`),e;const t="/"!==e.path.charAt(0)?"/":"",i=`${o}${t}${e.path}`;return Ev.debug(`'${e.path}' path modified to '${i}'`),Object.assign(Object.assign({},e),{path:i})})),this.definitions=[...e,...this.definitions],super.map(...e)}}(0,C.Cg)([l.observable],jv.prototype,"definitions",void 0);class Yv extends $v.Y{constructor(){super(),this.logger=Ev,this.loginPath="login",this.notFoundPath="not-found",this.notPermittedPath="not-permitted",this.routes=new jv(this),this.basename=Zn.OB,this.routes=new jv(this)}getNavItems(e=Bv){return Gv(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,C.sH)(this,void 0,void 0,function*(){this.analytics.trackEvent(wv.routeChanged,{path:e.route.endpoint.path})})})}configureRoutePermittedChecks(){this.contributors.push({navigate:e=>(0,C.sH)(this,void 0,void 0,function*(){var t;const{settings:i}=e.route;!1===(null===(t=null==i?void 0:i.isPermitted)||void 0===t?void 0:t.call(i))&&e.cancel(()=>{var t,o;if(this.user.isAuthenticated){const n=null!==(o=null===(t=i.notPermittedPath)||void 0===t?void 0:t.call(i))&&void 0!==o?o:this.notPermittedPath;this.logger.debug(`User not permitted to access route. Re-routing to ${n}.`),Uv.name.replace(e.router,n)}else this.user.trackPath(),Uv.name.replace(e.router,this.loginPath)})})})}configureFallbackRouteDefinition(){this.routes.fallback(()=>{let e={redirect:this.notFoundPath};return this.user.isAuthenticated||(this.user.trackPath(),this._session.captureReturnUrl(),e={redirect:this.loginPath}),this.logger.debug(`Route unresolved. Re-routing to ${e.redirect}.`),e})}navigationPhaseLoginRedirect(e){e.cancel(()=>{this.user.trackPath(),this._session.captureReturnUrl(),Uv.name.replace(e.router,this.loginPath)})}generateRouteFromName(e,t){const i=Object.create(null,{generateRouteFromName:{get:()=>super.generateRouteFromName}});return(0,C.sH)(this,void 0,void 0,function*(){const o=yield i.generateRouteFromName.call(this,e,t);return o?this.generateNavigationPath(o):null})}navigateTo(e){return(0,C.sH)(this,void 0,void 0,function*(){if(e.name)return this.relativeTo||this.logger.error("unable to navigate by name as the relativeTo router is not set"),void(yield Uv.name.push(this.relativeTo,e.name,e.params,e.trigger));e.path&&Uv.path.push(this.generateNavigationPath(e.path,e.params),e.trigger)})}generateNavigationPath(e,t){const i=this.getNavigationPathBasename(),o=Sv.C.build(t);let n=i&&!e.startsWith(i)?_v([i,e]):e;return n=o?`${n}?${o}`:n,n}getNavigationPathBasename(){var e,t;const i=this.parent,o=null===(t=null===(e=null==i?void 0:i.relativeTo)||void 0===e?void 0:e.route)||void 0===t?void 0:t.endpoint.route.path;return o?Pv(o):this.basename?this.basename:""}construct(e){return this.container.get(e)}}(0,C.Cg)([a.Container],Yv.prototype,"container",void 0),(0,C.Cg)([xv],Yv.prototype,"analytics",void 0),(0,C.Cg)([Yl.KJ],Yv.prototype,"user",void 0),(0,C.Cg)([Ti.N],Yv.prototype,"_session",void 0);const Wv="navigate-to",qv="generate-navigation-path";let Kv=class extends(Iv.from(l.FASTElement)){constructor(){super(...arguments),this.logger=Ev,this.onNavigateTo=e=>{e.stopImmediatePropagation(),this.config.navigateTo(e.detail)},this.onGenerateNavigationPath=e=>{e.stopImmediatePropagation();const{path:t,params:i,callback:o}=e.detail;if(!o)return;o(this.config.generateNavigationPath(t,i))}}get router(){return this[Dv]}connectedCallback(){var e,t;super.connectedCallback(),this.config.isConfigured||(null!==(e=(t=this.config).relativeTo)&&void 0!==e||(t.relativeTo=this.router),l.DOM.queueUpdate(()=>(0,C.sH)(this,void 0,void 0,function*(){this.router.config?this.router.connect():this.router.config=this.config})),this.addEventListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}addEventListeners(){this.addEventListener(Wv,this.onNavigateTo),this.addEventListener(qv,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(Wv,this.onNavigateTo),this.removeEventListener(qv,this.onGenerateNavigationPath)}};Kv=(0,C.Cg)([(0,l.customElement)({name:"foundation-router"})],Kv);const Xv=e=>l.html`
6402
+ `,xg={mode:"open",delegatesFocus:!0};class $g extends s.FoundationElement{constructor(){super(...arguments),this.closeTimeout=0,this.toastButtons=[]}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return(0,C.sH)(this,void 0,void 0,function*(){e.connectedCallback.call(this),this.addEventListener(pe.NOTIFICATION_EVENT,e=>{e.stopImmediatePropagation(),Ce(e.detail,this.tagName,this.notificationListener)}),this.connectionSub=this.connect.isConnected$.subscribe(e=>(0,C.sH)(this,void 0,void 0,function*(){e&&(yield this.handleReconnection())}))})}handleReconnection(){return(0,C.sH)(this,void 0,void 0,function*(){var e;this.resourceName&&(null===(e=this.dataSub)||void 0===e||e.unsubscribe(),this.dataSub=void 0,yield this.initializeDatasource(),this.setupDataSubscription())})}initializeDatasource(){return(0,C.sH)(this,void 0,void 0,function*(){var e;(null===(e=this.datasource)||void 0===e?void 0:e.initialized)&&this.datasource.destroy();if(!(yield this.datasource.init({resourceName:this.resourceName},!0)))throw new Error(`Failed to initialize datasource for ${this.resourceName}`)})}setupDataSubscription(){this.datasource.stream?this.dataSub=this.datasource.stream.subscribe(e=>{e.ROW&&e.SEQUENCE_ID>1&&this.handleStreamUpdate((0,di.d)(e))}):ot.warn(`No stream available for ${this.resourceName}`)}disconnectedCallback(){var e,t,i;super.disconnectedCallback(),null===(e=this.dataSub)||void 0===e||e.unsubscribe(),delete this.dataSub,null===(t=this.connectionSub)||void 0===t||t.unsubscribe(),delete this.connectionSub,null===(i=this.datasource)||void 0===i||i.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:i,NOTIFY_SEVERITY:o}=e,n=e.CREATED_AT?new Date(e.CREATED_AT):void 0,a=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})));const r={title:t,body:i,createdAt:n,toast:{details:e,type:null==o?void 0:o.toLowerCase(),buttons:s,autoClose:void 0!==a?!!a:!!this.closeTimeout,closeTimeout:null!=a?a:this.closeTimeout,position:this.toastPosition}};hc(r,this.tagName)}}(0,C.Cg)([l.observable],$g.prototype,"notificationListener",void 0),(0,C.Cg)([ui.dm],$g.prototype,"connect",void 0),(0,C.Cg)([(0,l.attr)({attribute:"resource-name"})],$g.prototype,"resourceName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],$g.prototype,"closeTimeout",void 0),(0,C.Cg)([l.observable],$g.prototype,"toastButtons",void 0),(0,C.Cg)([(0,l.attr)({attribute:"toast-position"})],$g.prototype,"toastPosition",void 0),(0,C.Cg)([hi.yW],$g.prototype,"datasource",void 0);const Sg=$g.compose({baseName:"notification-listener",template:Cg,shadowOptions:xg}),Eg=(e,t)=>i=>{const o="function"==typeof t?t:(n=t,e=>Object.assign(Object.assign({},n),e));var n;return l.FASTElement.define(class extends e{},o(i))};function Og(e){if("string"==typeof e)return e;if("function"==typeof e&&!(e=l.FASTElementDefinition.forType(e)))throw new Error("Missing FASTElement definition.");return e.name}var Tg;!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(Tg||(Tg={}));class kg{trackEvent(e,t){ja.v.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`)}}const Dg=s.DI.createInterface(e=>e.singleton(kg));var Ig=i(98647),Rg=i(35044);const Ag=(0,it.createLogger)("foundation-router");var Lg=i(36132),Ng=i(80751),Fg=i(3479);const Mg="$router",_g=Object.freeze({getOrCreateFor:e=>{const t=e[Mg];return void 0!==t?t:e[Mg]=new Hg(e)},find:e=>Fg.Ix.find(e),from:e=>Fg.Ix.from(e)});class Hg extends Fg.LK{}const Pg=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function zg(e){return Pg.test(e)}function Ug(e){return e.config instanceof Ig.Y?e:_g.find(e)}function Bg(e){return Ug(e).parent}function Vg(e){let t=Ug(e);for(;t&&t.level>0;)t=t.parent;return t}function Gg(e,t="/",i=!1){const o=e.join(t).replace(new RegExp(t+"{1,}","g"),t);return!i&&o.endsWith(t)?o.slice(0,-1):o}function jg(e,t="/"){const i=e.split(t);return 2===i.length&&""===i[0]&&""!==i[1]?e:(i.length>1&&i.pop(),i.join(t))}function Yg(e){return e.replace(`/*${Ng.N}`,"")}function Wg(){null===document.querySelector("foundation-router, fast-router")&&window.dispatchEvent(new PopStateEvent("popstate"))}const qg=Object.freeze({path:Object.freeze({get current(){return Lg.qh.path.current},generateRoute:(e,t,...i)=>(0,C.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){let o=Ug(e);for(;null!==o;){const e=yield o.config.generateRouteFromPath(t,i);if(null!==e)return e;o=o.parent}return null}),push:(e,t=!0)=>{e&&zg(e)?location.href=e:(history.pushState({},document.title,e),Wg(),t&&qg.path.trigger(e))},replace:(e,t=!0)=>{e&&zg(e)?location.href=e:(history.replaceState({},document.title,e),Wg(),t&&qg.path.trigger(e))},trigger:e=>{Lg.qh.path.trigger(e)}}),name:Object.freeze({generateRoute:(e,t,...i)=>(0,C.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){let o=Ug(e);for(;null!==o;){const e=yield o.config.generateRouteFromName(t,i);if(null!==e)return e;o=o.parent}return null}),push:(e,t,...i)=>(0,C.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={},o=!0){const n=yield qg.name.generateRoute(e,t,i);null!==n&&qg.path.push(n,o)}),replace:(e,t,...i)=>(0,C.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={},o=!0){const n=yield qg.name.generateRoute(e,t,i);null!==n&&qg.path.replace(n,o)}),trigger:(e,t,...i)=>(0,C.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){const o=yield qg.name.generateRoute(e,t,i);null!==o&&qg.path.trigger(o)})})}),Kg=e=>!e.navId||"header"===e.navId||"side-nav"===e.navId,Xg=10;function Jg(e,t=Kg,i=Xg){const o=[];return e.filter(e=>e.navItems&&e.navItems.some(t)).forEach((e,n)=>{e.navItems.filter(t).map((t,o)=>{var a,s,r,l;const d=null!==(a=t.placementIndex)&&void 0!==a?a:n*i+o;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=>o.push(e))}),o.sort((e,t)=>e.placementIndex-t.placementIndex)}class Qg extends Ng.s{constructor(){super(...arguments),this.definitions=[]}map(...e){const t=this.owner,i=!t.parent,o=t.basename;i&&(""!==o&&"/"!==o)&&(Ag.debug("Route paths remap required due to detected sub-path deployment"),e=e.map(e=>{if(!e.path)return e;if(e.path.startsWith(o))return Ag.debug(`'${e.path}' path okay as is`),e;const t="/"!==e.path.charAt(0)?"/":"",i=`${o}${t}${e.path}`;return Ag.debug(`'${e.path}' path modified to '${i}'`),Object.assign(Object.assign({},e),{path:i})})),this.definitions=[...e,...this.definitions],super.map(...e)}}(0,C.Cg)([l.observable],Qg.prototype,"definitions",void 0);class Zg extends Ig.Y{constructor(){super(),this.logger=Ag,this.loginPath="login",this.notFoundPath="not-found",this.notPermittedPath="not-permitted",this.routes=new Qg(this),this.basename=Zn.OB,this.routes=new Qg(this)}getNavItems(e=Kg){return Jg(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,C.sH)(this,void 0,void 0,function*(){this.analytics.trackEvent(Tg.routeChanged,{path:e.route.endpoint.path})})})}configureRoutePermittedChecks(){this.contributors.push({navigate:e=>(0,C.sH)(this,void 0,void 0,function*(){var t;const{settings:i}=e.route;!1===(null===(t=null==i?void 0:i.isPermitted)||void 0===t?void 0:t.call(i))&&e.cancel(()=>{var t,o;if(this.user.isAuthenticated){const n=null!==(o=null===(t=i.notPermittedPath)||void 0===t?void 0:t.call(i))&&void 0!==o?o:this.notPermittedPath;this.logger.debug(`User not permitted to access route. Re-routing to ${n}.`),qg.name.replace(e.router,n)}else this.user.trackPath(),qg.name.replace(e.router,this.loginPath)})})})}configureFallbackRouteDefinition(){this.routes.fallback(()=>{let e={redirect:this.notFoundPath};return this.user.isAuthenticated||(this.user.trackPath(),this._session.captureReturnUrl(),e={redirect:this.loginPath}),this.logger.debug(`Route unresolved. Re-routing to ${e.redirect}.`),e})}navigationPhaseLoginRedirect(e){e.cancel(()=>{this.user.trackPath(),this._session.captureReturnUrl(),qg.name.replace(e.router,this.loginPath)})}generateRouteFromName(e,t){const i=Object.create(null,{generateRouteFromName:{get:()=>super.generateRouteFromName}});return(0,C.sH)(this,void 0,void 0,function*(){const o=yield i.generateRouteFromName.call(this,e,t);return o?this.generateNavigationPath(o):null})}navigateTo(e){return(0,C.sH)(this,void 0,void 0,function*(){if(e.name)return this.relativeTo||this.logger.error("unable to navigate by name as the relativeTo router is not set"),void(yield qg.name.push(this.relativeTo,e.name,e.params,e.trigger));e.path&&qg.path.push(this.generateNavigationPath(e.path,e.params),e.trigger)})}generateNavigationPath(e,t){const i=this.getNavigationPathBasename(),o=Rg.C.build(t);let n=i&&!e.startsWith(i)?Gg([i,e]):e;return n=o?`${n}?${o}`:n,n}getNavigationPathBasename(){var e,t;const i=this.parent,o=null===(t=null===(e=null==i?void 0:i.relativeTo)||void 0===e?void 0:e.route)||void 0===t?void 0:t.endpoint.route.path;return o?Yg(o):this.basename?this.basename:""}construct(e){return this.container.get(e)}}(0,C.Cg)([s.Container],Zg.prototype,"container",void 0),(0,C.Cg)([Dg],Zg.prototype,"analytics",void 0),(0,C.Cg)([Yl.KJ],Zg.prototype,"user",void 0),(0,C.Cg)([Ti.N],Zg.prototype,"_session",void 0);const ef="navigate-to",tf="generate-navigation-path";let of=class extends(_g.from(l.FASTElement)){constructor(){super(...arguments),this.logger=Ag,this.onNavigateTo=e=>{e.stopImmediatePropagation(),this.config.navigateTo(e.detail)},this.onGenerateNavigationPath=e=>{e.stopImmediatePropagation();const{path:t,params:i,callback:o}=e.detail;if(!o)return;o(this.config.generateNavigationPath(t,i))}}get router(){return this[Mg]}connectedCallback(){var e,t;super.connectedCallback(),this.config.isConfigured||(null!==(e=(t=this.config).relativeTo)&&void 0!==e||(t.relativeTo=this.router),l.DOM.queueUpdate(()=>(0,C.sH)(this,void 0,void 0,function*(){this.router.config?this.router.connect():this.router.config=this.config})),this.addEventListeners())}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListeners()}addEventListeners(){this.addEventListener(ef,this.onNavigateTo),this.addEventListener(tf,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(ef,this.onNavigateTo),this.removeEventListener(tf,this.onGenerateNavigationPath)}};of=(0,C.Cg)([(0,l.customElement)({name:"foundation-router"})],of);const nf=e=>l.html`
6289
6403
 
6290
6404
  <${e}-card class=${e=>(0,x.x)("stepper-tab",["stepper-tab-hidden",e.hideTabs])} part="stepper-tab" @tab-clicked="${(e,t)=>e.handleStepClick(t.event.detail)}" role="stepper-tab" data-test-id="stepper-tab">
6291
6405
  <div class=${e=>(0,x.x)("stepper-tab-menu",["stepper-tab-menu-hidden",e.hideTabs])} part="stepper-tab-menu">
6292
6406
  <slot name="tab" ${(0,l.slotted)("tabs")} ></slot>
6293
6407
  </div>
6294
- ${(0,l.when)(e=>e.orientation===a.TabsOrientation.vertical,l.html`
6408
+ ${(0,l.when)(e=>e.orientation===s.TabsOrientation.vertical,l.html`
6295
6409
  <div class="stepper-tab-progress" part="stepper-tab-progress">
6296
6410
  <${e}-progress-ring class="progress-ring" part="progress-ring" value=${e=>e.progressValue}></${e}-progress-ring>
6297
6411
  <label>You have completed ${e=>e.progressValue}% of the fields required to create a project</label>
@@ -6318,9 +6432,9 @@ class="margin"
6318
6432
  `)}
6319
6433
  </${e}-card>
6320
6434
  `)}
6321
- `,Jv=l.html`
6322
- ${e=>Xv(T(e))}
6323
- `,Qv=l.css`
6435
+ `,af=l.html`
6436
+ ${e=>nf(T(e))}
6437
+ `,sf=l.css`
6324
6438
  :host {
6325
6439
  display: flex;
6326
6440
  height: 100%;
@@ -6419,5 +6533,5 @@ class="margin"
6419
6533
  max-height: 70px;
6420
6534
  height: 70px;
6421
6535
  }
6422
- `;class Zv extends a.FoundationElement{constructor(){super(...arguments),this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.indicatorOnly=!1,this.orientation=a.TabsOrientation.vertical,this.tabs=[],this.tabpanels=[],this.progressValue=0,this.activeTabIndex=0,this.pendingNextStep=!1,this.slotsInitialized=!1,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if("tab"===e.slot){const i=this.activeTabIndex===t,o=t+1===this.tabIds.length,n=this.tabIds[t],s=this.tabpanelIds[t];e.setAttribute("id",n),e.setAttribute("aria-selected",i?"true":"false"),e.setAttribute("aria-disabled",i?"false":"true"),e.setAttribute("selected",i?"true":"false"),e.setAttribute("orientation",this.orientation),s&&e.setAttribute("aria-controls",s),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(o)),e.setAttribute("hideStepNumber",String(!0===this.hideStepNumber)),e.setAttribute("tabindex",i?"0":"-1"),e.setAttribute("showCursorPointer",String(t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps)),i&&(this.activetab=e,this.activeid=n)}}),0===this.activeTabIndex&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)});const t=this.indicatorOnly?this.tabs.length:this.tabpanels.length;this.progressValue=t?Math.round(e/t*100):0},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],o=this.tabpanelIds[t];e.setAttribute("id",o),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}setTabsAndTabPanels(){this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs(),this.slotsInitialized=this.tabs.length>0&&(this.indicatorOnly||this.tabpanels.length>0)}checkAndExecutePendingNextStep(){this.pendingNextStep&&this.slotsInitialized&&(this.pendingNextStep=!1,this.nextStep())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}goToStep(e,t=!1){const i=e-1;if(e<1||e>this.tabs.length)return ot.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(i===this.activeTabIndex)return!1;if(t){if(i<this.activeTabIndex)return this.handleBackwardJump(i);if(i>this.activeTabIndex)return this.handleForwardJump(i)}if(i<this.activeTabIndex&&this.allowBackwardJumps){return this.handleBackwardJump(i)}if(i>this.activeTabIndex&&this.allowForwardJumps){return this.handleForwardJump(i)}return i===this.activeTabIndex+1?(this.nextStep(),!0):(ot.warn(`[Stepper] Cannot jump to step ${e}. Jumps are not allowed or step is not adjacent.`),!1)}goToFirstStep(){return this.goToStep(1,!0)}goToLastStep(){return this.goToStep(this.tabs.length,!0)}handleStepClick(e){e<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(e):e>this.activeTabIndex&&this.allowForwardJumps&&this.handleForwardJump(e)}handleBackwardJump(e){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;return this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}handleForwardJump(e){for(let t=this.activeTabIndex;t<e;t+=1)if(this.validation&&this.validation[t]){if(!this.validation[t].isValid())return this.tabs[t].completed=!1,this.tabs[t].error=!0,this.getCompletedTabs(),this.$emit("validation-failure",{stepIndex:t,stepId:this.tabIds[t],message:`Validation failed for step ${t+1}`}),!1;this.tabs[t].error=!1}for(let t=this.activeTabIndex;t<e;t+=1)this.tabs[t].completed=!0,this.tabs[t].error=!1;return this.tabs[e].completed=!1,this.tabs[e].error=!1,this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.getCompletedTabs(),this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}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.slotsInitialized)return void(this.pendingNextStep=!0);if(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("next-step"),this.$emit("validation-success"));const t=this.tabs.length-1,i=this.activeTabIndex===t;this.hideSubmitButton&&i&&(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,ba.NF)()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,ba.NF)()}`})}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}}(0,C.Cg)([(0,l.attr)({attribute:"hide-submit-button",mode:"boolean"})],Zv.prototype,"hideSubmitButton",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-step-number",mode:"boolean"})],Zv.prototype,"hideStepNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"allow-backward-jumps",mode:"boolean"})],Zv.prototype,"allowBackwardJumps",void 0),(0,C.Cg)([(0,l.attr)({attribute:"allow-forward-jumps",mode:"boolean"})],Zv.prototype,"allowForwardJumps",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-all-buttons",mode:"boolean"})],Zv.prototype,"hideAllButtons",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-tabs",mode:"boolean"})],Zv.prototype,"hideTabs",void 0),(0,C.Cg)([(0,l.attr)({attribute:"indicator-only",mode:"boolean"})],Zv.prototype,"indicatorOnly",void 0),(0,C.Cg)([l.attr],Zv.prototype,"orientation",void 0),(0,C.Cg)([l.attr],Zv.prototype,"activeid",void 0),(0,C.Cg)([l.observable],Zv.prototype,"tabs",void 0),(0,C.Cg)([l.observable],Zv.prototype,"tabpanels",void 0),(0,C.Cg)([l.observable],Zv.prototype,"validation",void 0),(0,C.Cg)([l.observable],Zv.prototype,"progressValue",void 0),(0,C.Cg)([l.observable],Zv.prototype,"activeTabIndex",void 0),(0,C.Cg)([l.volatile],Zv.prototype,"disabledPreviousStep",null),(0,C.Cg)([l.volatile],Zv.prototype,"isLastStep",null),(0,C.Cg)([l.volatile],Zv.prototype,"islastStepValid",null);const ef=void 0,tf={},of=Zv.compose(Object.assign({baseName:"stepper",template:Jv,styles:Qv,shadowOptions:ef},tf)),nf=["text-field","text-area","combobox"],sf=["input","textarea","select",'[contenteditable="true"]','[contenteditable=""]','[role="textbox"]','[role="searchbox"]','[role="combobox"]'],af=e=>nf.map(t=>`${e}-${t}`),rf={rapid:af("rapid"),zero:af("zero")};function lf(e,t=[]){const i=e.flatMap(e=>{var t;return null!==(t=rf[e])&&void 0!==t?t:[]}),o=t.filter(Boolean);return Array.from(new Set([...sf,...i,...o])).join(",")}const df=()=>yd().register(Em)},70997(e,t,i){"use strict";function o(e,t,i){const o=e=>"function"==typeof e?e:()=>e,n=o(t),s=o(i);return(t,i)=>e(t,i)?n(t,i):s(t,i)}i.d(t,{q:()=>o})},80273(e,t,i){"use strict";i.d(t,{Du:()=>l,IT:()=>a,WP:()=>n,f4:()=>r,zz:()=>s});var o=i(52945);const n=(e,t)=>{(0,o.O5)(e,t)};var s,a;!function(e){e.Italic="italic",e.Normal="normal"}(s||(s={})),function(e){e[e.Thin=100]="Thin",e[e.Light=300]="Light",e[e.Regular=400]="Regular",e[e.Medium=500]="Medium",e[e.Bold=700]="Bold",e[e.Black=900]="Black"}(a||(a={}));const r=(e,t=s.Normal,i=a.Regular)=>`\n font-family: ${e};\n font-style: ${t};\n font-weight: ${i};\n`,l={minusOne:-1,minusTwo:-2,plusOne:1,plusTwo:2,plusThree:3,plusFour:4,plusFive:5,plusSix:6}}}]);
6423
- //# sourceMappingURL=197.0aa14727f552a8736ef7939c8a93c164.js.map
6536
+ `;class rf extends s.FoundationElement{constructor(){super(...arguments),this.allowBackwardJumps=!1,this.allowForwardJumps=!1,this.hideAllButtons=!1,this.hideTabs=!1,this.indicatorOnly=!1,this.orientation=s.TabsOrientation.vertical,this.tabs=[],this.tabpanels=[],this.progressValue=0,this.activeTabIndex=0,this.pendingNextStep=!1,this.slotsInitialized=!1,this.setTabs=()=>{this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach((e,t)=>{if("tab"===e.slot){const i=this.activeTabIndex===t,o=t+1===this.tabIds.length,n=this.tabIds[t],a=this.tabpanelIds[t];e.setAttribute("id",n),e.setAttribute("aria-selected",i?"true":"false"),e.setAttribute("aria-disabled",i?"false":"true"),e.setAttribute("selected",i?"true":"false"),e.setAttribute("orientation",this.orientation),a&&e.setAttribute("aria-controls",a),e.setAttribute("tab-position",String(t+1)),e.setAttribute("isLast",String(o)),e.setAttribute("hideStepNumber",String(!0===this.hideStepNumber)),e.setAttribute("tabindex",i?"0":"-1"),e.setAttribute("showCursorPointer",String(t<=this.activeTabIndex&&this.allowBackwardJumps||t>this.activeTabIndex&&this.allowForwardJumps)),i&&(this.activetab=e,this.activeid=n)}}),0===this.activeTabIndex&&this.resetCompletedState()},this.getCompletedTabs=()=>{let e=0;this.tabs.forEach(t=>{t.isCompleted()&&(e+=1)});const t=this.indicatorOnly?this.tabs.length:this.tabpanels.length;this.progressValue=t?Math.round(e/t*100):0},this.setTabPanels=()=>{this.tabpanels.forEach((e,t)=>{const i=this.tabIds[t],o=this.tabpanelIds[t];e.setAttribute("id",o),e.setAttribute("aria-labelledby",i),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")})}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels())}activeidChanged(e,t){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabs(),this.setTabPanels(),this.getCompletedTabs())}tabsChanged(){this.$fastController.isConnected&&(this.indicatorOnly||this.tabs.length<=this.tabpanels.length)&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabsAndTabPanels(),this.checkAndExecutePendingNextStep())}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}setTabsAndTabPanels(){this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.getCompletedTabs(),this.slotsInitialized=this.tabs.length>0&&(this.indicatorOnly||this.tabpanels.length>0)}checkAndExecutePendingNextStep(){this.pendingNextStep&&this.slotsInitialized&&(this.pendingNextStep=!1,this.nextStep())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}goToStep(e,t=!1){const i=e-1;if(e<1||e>this.tabs.length)return ot.warn(`[Stepper] Invalid step number: ${e}. Must be between 1 and ${this.tabs.length}`),!1;if(i===this.activeTabIndex)return!1;if(t){if(i<this.activeTabIndex)return this.handleBackwardJump(i);if(i>this.activeTabIndex)return this.handleForwardJump(i)}if(i<this.activeTabIndex&&this.allowBackwardJumps){return this.handleBackwardJump(i)}if(i>this.activeTabIndex&&this.allowForwardJumps){return this.handleForwardJump(i)}return i===this.activeTabIndex+1?(this.nextStep(),!0):(ot.warn(`[Stepper] Cannot jump to step ${e}. Jumps are not allowed or step is not adjacent.`),!1)}goToFirstStep(){return this.goToStep(1,!0)}goToLastStep(){return this.goToStep(this.tabs.length,!0)}handleStepClick(e){e<this.activeTabIndex&&this.allowBackwardJumps?this.handleBackwardJump(e):e>this.activeTabIndex&&this.allowForwardJumps&&this.handleForwardJump(e)}handleBackwardJump(e){for(let t=e+1;t<=this.activeTabIndex;t+=1)this.tabs[t].completed=!1;return this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}handleForwardJump(e){for(let t=this.activeTabIndex;t<e;t+=1)if(this.validation&&this.validation[t]){if(!this.validation[t].isValid())return this.tabs[t].completed=!1,this.tabs[t].error=!0,this.getCompletedTabs(),this.$emit("validation-failure",{stepIndex:t,stepId:this.tabIds[t],message:`Validation failed for step ${t+1}`}),!1;this.tabs[t].error=!1}for(let t=this.activeTabIndex;t<e;t+=1)this.tabs[t].completed=!0,this.tabs[t].error=!1;return this.tabs[e].completed=!1,this.tabs[e].error=!1,this.activeTabIndex=e,this.activetab=this.tabs[e],this.activeid=this.tabIds[e],this.getCompletedTabs(),this.$emit("step-click",{activetab:this.activetab,activeid:this.activeid}),!0}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.slotsInitialized)return void(this.pendingNextStep=!0);if(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("next-step"),this.$emit("validation-success"));const t=this.tabs.length-1,i=this.activeTabIndex===t;this.hideSubmitButton&&i&&(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,bs.NF)()}`})}getTabPanelIds(){return this.tabpanels.map(e=>{var t;return null!==(t=e.getAttribute("id"))&&void 0!==t?t:`panel-${(0,bs.NF)()}`})}resetCompletedState(){this.tabs.forEach(e=>e.completed=!1)}}(0,C.Cg)([(0,l.attr)({attribute:"hide-submit-button",mode:"boolean"})],rf.prototype,"hideSubmitButton",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-step-number",mode:"boolean"})],rf.prototype,"hideStepNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"allow-backward-jumps",mode:"boolean"})],rf.prototype,"allowBackwardJumps",void 0),(0,C.Cg)([(0,l.attr)({attribute:"allow-forward-jumps",mode:"boolean"})],rf.prototype,"allowForwardJumps",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-all-buttons",mode:"boolean"})],rf.prototype,"hideAllButtons",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-tabs",mode:"boolean"})],rf.prototype,"hideTabs",void 0),(0,C.Cg)([(0,l.attr)({attribute:"indicator-only",mode:"boolean"})],rf.prototype,"indicatorOnly",void 0),(0,C.Cg)([l.attr],rf.prototype,"orientation",void 0),(0,C.Cg)([l.attr],rf.prototype,"activeid",void 0),(0,C.Cg)([l.observable],rf.prototype,"tabs",void 0),(0,C.Cg)([l.observable],rf.prototype,"tabpanels",void 0),(0,C.Cg)([l.observable],rf.prototype,"validation",void 0),(0,C.Cg)([l.observable],rf.prototype,"progressValue",void 0),(0,C.Cg)([l.observable],rf.prototype,"activeTabIndex",void 0),(0,C.Cg)([l.volatile],rf.prototype,"disabledPreviousStep",null),(0,C.Cg)([l.volatile],rf.prototype,"isLastStep",null),(0,C.Cg)([l.volatile],rf.prototype,"islastStepValid",null);const lf=void 0,df={},cf=rf.compose(Object.assign({baseName:"stepper",template:af,styles:sf,shadowOptions:lf},df)),uf=["text-field","text-area","combobox"],hf=["input","textarea","select",'[contenteditable="true"]','[contenteditable=""]','[role="textbox"]','[role="searchbox"]','[role="combobox"]'],pf=e=>uf.map(t=>`${e}-${t}`),mf={rapid:pf("rapid"),zero:pf("zero")};function vf(e,t=[]){const i=e.flatMap(e=>{var t;return null!==(t=mf[e])&&void 0!==t?t:[]}),o=t.filter(Boolean);return Array.from(new Set([...hf,...i,...o])).join(",")}const gf=()=>yd().register(Am)},70997(e,t,i){"use strict";function o(e,t,i){const o=e=>"function"==typeof e?e:()=>e,n=o(t),a=o(i);return(t,i)=>e(t,i)?n(t,i):a(t,i)}i.d(t,{q:()=>o})},80273(e,t,i){"use strict";i.d(t,{Du:()=>l,IT:()=>s,WP:()=>n,f4:()=>r,zz:()=>a});var o=i(52945);const n=(e,t)=>{(0,o.O5)(e,t)};var a,s;!function(e){e.Italic="italic",e.Normal="normal"}(a||(a={})),function(e){e[e.Thin=100]="Thin",e[e.Light=300]="Light",e[e.Regular=400]="Regular",e[e.Medium=500]="Medium",e[e.Bold=700]="Bold",e[e.Black=900]="Black"}(s||(s={}));const r=(e,t=a.Normal,i=s.Regular)=>`\n font-family: ${e};\n font-style: ${t};\n font-weight: ${i};\n`,l={minusOne:-1,minusTwo:-2,plusOne:1,plusTwo:2,plusThree:3,plusFour:4,plusFive:5,plusSix:6}}}]);
6537
+ //# sourceMappingURL=311.5f9538d8ab72d405d162f13fb3779431.js.map