@genesislcap/design-system-configurator 14.490.0 → 14.491.0-FUI-2567.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{995.995.17535a93f5ccfcf458d3.js → 367.367.8150cb189f9b01723706.js} +224 -72
- package/dist/367.efc8766139fbed5f21f442773433df38.js.map +1 -0
- package/dist/{990.990.4e170e59a70c0d3f8302.js → 37.37.47e264865c3bef3c8eca.js} +113 -60
- package/dist/37.ca3fb13c358250ae8e95224732629400.js.map +1 -0
- package/dist/{396.396.d1ca369920a6231fff72.js → 396.396.064741f605da4a3b9550.js} +2 -2
- package/dist/{59.59.46b1d394c5cf4e41e604.js → 521.521.020947fe771b6182aee2.js} +79 -31
- package/dist/521.53c1ec96584364935237c03825ca7ca1.js.map +1 -0
- package/dist/{designSystemConfigurator.acfd9470fb5c0832c4d5f9373e81ef86.js.map → designSystemConfigurator.1c4eb897457b0b8d3049dbe58d274f8f.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/{main.e6cdce5b6622b2a7be70.js → main.aa8f16cbc20002464a56.js} +2 -2
- package/dist/{main.7972cebafadb97d37f05c3c4edaef1d9.js.map → main.c2940565c49850bde335ffe830cc1420.js.map} +1 -1
- package/dist/remoteEntry.js +2 -2
- package/package.json +13 -13
- package/dist/59.9d8783a4bea9fbb1c2f82eec8a749094.js.map +0 -1
- package/dist/990.5129906802bec5bf63fad5ad73385bc9.js.map +0 -1
- package/dist/995.d493edc41d48963d9addfc54d7dc3979.js.map +0 -1
- /package/dist/{396.396.d1ca369920a6231fff72.js.LICENSE.txt → 396.396.064741f605da4a3b9550.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[995],{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}}},14609(e,t,i){"use strict";i.d(t,{b:()=>a});const o=(0,i(66506).createLogger)("foundation-criteria");var n=i(86636);const s="default";class a{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,n.r.And()),this.Or=(e,t={})=>this.withExpression(e,t,n.r.Or()),this.Not=(e,t={})=>this.withExpression(e,t,n.r.Not())}withExpression(e,t={},i=n.r.And()){const{condition:a,join:r,groupName:l}=t,d=(e,t=s)=>{var o;const n=null!==(o=this.expressions[t])&&void 0!==o?o:[];this.expressions[t]=[...n,{join:i||r,condition:a,expression:e}]};if(Array.isArray(e))if(r){const t=e.filter(e=>{const t=e instanceof n.r;return t&&o.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t});if(l)t.forEach(e=>{d(e,l)});else{const e=(c=r,t.flat().flatMap((e,t,i)=>i.length-1!==t?[e,c]:e));d(e,s)}}else d(e,s);else d(e,"string"==typeof e?s:e.group);var c;return this}build(e){const t=Object.entries(this.expressions).reduce((e,[t,i])=>Object.assign(Object.assign({},e),{[t]:`(${i.filter(({condition:e})=>!e||e()).map(({expression:e,join:t},i,o)=>this.parseExpression(e,o[i-1],t)).join("")})`}),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,i){const o=[];return i&&t&&o.push(` ${i.operator} `),"string"==typeof e?o.push(e):Array.isArray(e)?(e.forEach((e,t,i)=>{if(e instanceof n.r){if(i[t-1]instanceof n.r)throw new Error("Adjacent Join operations detected")}}),o.push(`(${e.map(e=>this.parseExpression(e,void 0)).join("")})`)):e instanceof n.r?o.push(` ${e.operator} `):e&&o.push(e.serialiser(e)),o.join("")}}},58749(e,t,i){"use strict";i.d(t,{K:()=>n});var o=i(95553);class n{constructor(e){this.serialiser=o.n.EQ,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}},95553(e,t,i){"use strict";i.d(t,{n:()=>a});var o=i(86636);const n=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},s=e=>t=>`${t.field} ${e} ${n(t)}`,a={AND:e=>s(o.X.AND)(e),OR:e=>s(o.X.OR)(e),NOT:e=>s(o.X.NOT)(e),GT:e=>s(o.X.GT)(e),GE:e=>s(o.X.GE)(e),LT:e=>s(o.X.LT)(e),LE:e=>s(o.X.LE)(e),NE:e=>s(o.X.NE)(e),EQ:e=>s(o.X.EQ)(e),equals:e=>`${e.field}.equals(${n(e)})`,equalsIgnoreCase:e=>`${e.field}.equalsIgnoreCase(${n(e)})`,contains:e=>`Expr.contains(${e.field}, ${n(e)})`,fieldContains:e=>`${e.field}.contains(${n(e)})`,containsIgnoreCase:e=>`Expr.containsIgnoreCase(${e.field}, ${n(e)})`,startsWith:e=>`${e.field}.startsWith(${n(e)})`,endsWith:e=>`${e.field}.endsWith(${n(e)})`,dateIsToday:e=>`Expr.dateIsToday(${e.field})`,dateIsEqual:e=>`Expr.dateIsEqual(${e.field}, ${n(e)})`,dateIsGreaterEqual:e=>`Expr.dateIsGreaterEqual(${e.field}, ${n(e)})`,dateIsLessEqual:e=>`Expr.dateIsLessEqual(${e.field}, ${n(e)})`,dateTimeIsGreaterEqual:e=>`Expr.dateTimeIsGreaterEqual(${e.field}, ${n(e)})`,dateTimeIsLessEqual:e=>`Expr.dateTimeIsLessEqual(${e.field}, ${n(e)})`}},86636(e,t,i){"use strict";var o;i.d(t,{X:()=>o,r:()=>n}),function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(o||(o={}));class n{constructor(e){this.$$operator=e}static And(){return new n(o.AND)}static Or(){return new n(o.OR)}static Not(){return new n(o.NOT)}static GreaterThan(){return new n(o.GT)}static GreaterThanOrEqual(){return new n(o.GE)}static LessThan(){return new n(o.LT)}static LessThanOrEqual(){return new n(o.LE)}static NotEqual(){return new n(o.NE)}static Equal(){return new n(o.EQ)}get operator(){return this.$$operator}}},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}},85995(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:()=>ji,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:()=>Vg,FaPrefixFromStyle:()=>Or,FileReader:()=>Gs,FileUpload:()=>oa,Filter:()=>va,FilterBar:()=>Ea,FilterEvents:()=>ga,FlexLayout:()=>La,FlexMediaQueriesEnum:()=>Ta,Flipper:()=>_a,Flyout:()=>Va,FoundationDesignSystemProvider:()=>Cn,FoundationExpressionBuilder:()=>Ig,FoundationRouteCollection:()=>Vv,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:()=>Vr,MenuItem:()=>Jr,Modal:()=>sl,Multiselect:()=>ml,MultiselectDatasource:()=>dl,NUMERIC_OPERATORS:()=>Q,NavigateToEventType:()=>Wv,NotificationListener:()=>vv,NumberField:()=>Hl,OPERATOR_DISPLAY_LABEL:()=>te,Optgroup:()=>jl,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:()=>ju,SegmentedItem:()=>Xu,Select:()=>ih,Skeleton:()=>lh,Slider:()=>vh,SliderLabel:()=>xh,Snackbar:()=>Nh,StackingIcons:()=>Hh,StatusPill:()=>Gh,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:()=>jt,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:()=>jn,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:()=>Go,defaultNumberFieldConfig:()=>zl,defaultPlacementIndexPadding:()=>Gv,defaultProgressConfig:()=>vd,defaultProgressRingConfig:()=>Hd,defaultRadioConfig:()=>jd,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:()=>Vp,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:()=>Ge,foundationAvatarTemplate:()=>je,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:()=>Vt,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:()=>Vi,foundationDataGridRowStyles:()=>Gi,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:()=>Vn,foundationDividerShadowOptions:()=>Gn,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:()=>js,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:()=>ja,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:()=>Gr,foundationMenuTemplate:()=>jr,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:()=>Vl,foundationOptgroupStyles:()=>Bl,foundationOptgroupTemplate:()=>Gl,foundationPopper:()=>Ld,foundationProgress:()=>fd,foundationProgressRing:()=>Pd,foundationProgressRingShadowOptions:()=>_d,foundationProgressRingStyles:()=>Nd,foundationProgressRingTemplate:()=>Fd,foundationProgressShadowOptions:()=>gd,foundationProgressStyles:()=>hd,foundationProgressTemplate:()=>pd,foundationRadio:()=>Vd,foundationRadioGroup:()=>Jd,foundationRadioGroupShadowOptions:()=>Kd,foundationRadioGroupStyles:()=>Yd,foundationRadioGroupTemplate:()=>Wd,foundationRadioShadowOptions:()=>Gd,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:()=>Vu,foundationSegmentedControlStyles:()=>Bu,foundationSegmentedControlTemplate:()=>Gu,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:()=>jh,foundationStatusPillTemplate:()=>Uh,foundationStepper:()=>of,foundationStepperShadowOptions:()=>ef,foundationStepperStyles:()=>Qv,foundationStepperTab:()=>Jh,foundationStepperTabPanel:()=>ip,foundationStepperTabPanelShadowOptions:()=>ep,foundationStepperTabPanelTemplate:()=>Qh,foundationStepperTabShadowOptions:()=>Kh,foundationStepperTabStyles:()=>Vh,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:()=>jp,foundationToastStyles:()=>Up,foundationToastTemplate:()=>Gp,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:()=>Vo,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:()=>jv,getPrefixedCategorizedMultiselect:()=>Gt,getPrefixedCronBuilder:()=>Qc,getPrefixedDatePicker:()=>co,getPrefixedErrorBanner:()=>ps,getPrefixedFileReader:()=>Us,getPrefixedFileUpload:()=>qs,getPrefixedFilterTemplate:()=>pa,getPrefixedFlyout:()=>Ga,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:()=>Ve,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:()=>jo,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:()=>Go,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:()=>Vo,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:()=>jo,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([[367],{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}}},14609(e,t,i){"use strict";i.d(t,{b:()=>a});const o=(0,i(66506).createLogger)("foundation-criteria");var n=i(86636);const s="default";class a{constructor(){this.expressions={},this.And=(e,t={})=>this.withExpression(e,t,n.r.And()),this.Or=(e,t={})=>this.withExpression(e,t,n.r.Or()),this.Not=(e,t={})=>this.withExpression(e,t,n.r.Not())}withExpression(e,t={},i=n.r.And()){const{condition:a,join:r,groupName:l}=t,d=(e,t=s)=>{var o;const n=null!==(o=this.expressions[t])&&void 0!==o?o:[];this.expressions[t]=[...n,{join:i||r,condition:a,expression:e}]};if(Array.isArray(e))if(r){const t=e.filter(e=>{const t=e instanceof n.r;return t&&o.warn("Inline joins will be discarded when join is defined in ExpressionOptions"),!t});if(l)t.forEach(e=>{d(e,l)});else{const e=(c=r,t.flat().flatMap((e,t,i)=>i.length-1!==t?[e,c]:e));d(e,s)}}else d(e,s);else d(e,"string"==typeof e?s:e.group);var c;return this}build(e){const t=Object.entries(this.expressions).reduce((e,[t,i])=>Object.assign(Object.assign({},e),{[t]:`(${i.filter(({condition:e})=>!e||e()).map(({expression:e,join:t},i,o)=>this.parseExpression(e,o[i-1],t)).join("")})`}),{});return e?e(t):`(${Object.values(t).join(" && ")})`}reset(){this.expressions={}}parseExpression(e,t,i){const o=[];return i&&t&&o.push(` ${i.operator} `),"string"==typeof e?o.push(e):Array.isArray(e)?(e.forEach((e,t,i)=>{if(e instanceof n.r){if(i[t-1]instanceof n.r)throw new Error("Adjacent Join operations detected")}}),o.push(`(${e.map(e=>this.parseExpression(e,void 0)).join("")})`)):e instanceof n.r?o.push(` ${e.operator} `):e&&o.push(e.serialiser(e)),o.join("")}}},58749(e,t,i){"use strict";i.d(t,{K:()=>n});var o=i(95553);class n{constructor(e){this.serialiser=o.n.EQ,this.build=()=>{if(!this.field)throw new Error("Missing required param 'field'");if(void 0===this.value)throw new Error("Missing required param 'value'");if(!this.serialiser)throw new Error("Missing required param 'serialise'");return{field:this.field,value:this.value,serialiser:this.serialiser,params:this.params,valueGetter:this.valueGetter,group:this.group}},e&&(this.field=e.field,this.value=e.value,this.serialiser=e.serialiser,this.params=e.params,this.valueGetter=e.valueGetter,this.group=e.group)}withField(e){return this.field=e,this}withValue(e){return this.value=e,this}withSerialiser(e){return this.serialiser=e,this}withParams(e){return this.params=e,this}withValueGetter(e){return this.valueGetter=e,this}withGroup(e){return this.group=e,this}}},95553(e,t,i){"use strict";i.d(t,{n:()=>a});var o=i(86636);const n=e=>{const{value:t}=e;return e.valueGetter?e.valueGetter(t):"function"==typeof t?t(e):Array.isArray(t)?t.join(","):"string"==typeof t?`"${t}"`:t},s=e=>t=>`${t.field} ${e} ${n(t)}`,a={AND:e=>s(o.X.AND)(e),OR:e=>s(o.X.OR)(e),NOT:e=>s(o.X.NOT)(e),GT:e=>s(o.X.GT)(e),GE:e=>s(o.X.GE)(e),LT:e=>s(o.X.LT)(e),LE:e=>s(o.X.LE)(e),NE:e=>s(o.X.NE)(e),EQ:e=>s(o.X.EQ)(e),equals:e=>`${e.field}.equals(${n(e)})`,equalsIgnoreCase:e=>`${e.field}.equalsIgnoreCase(${n(e)})`,contains:e=>`Expr.contains(${e.field}, ${n(e)})`,fieldContains:e=>`${e.field}.contains(${n(e)})`,containsIgnoreCase:e=>`Expr.containsIgnoreCase(${e.field}, ${n(e)})`,startsWith:e=>`${e.field}.startsWith(${n(e)})`,endsWith:e=>`${e.field}.endsWith(${n(e)})`,dateIsToday:e=>`Expr.dateIsToday(${e.field})`,dateIsEqual:e=>`Expr.dateIsEqual(${e.field}, ${n(e)})`,dateIsGreaterEqual:e=>`Expr.dateIsGreaterEqual(${e.field}, ${n(e)})`,dateIsLessEqual:e=>`Expr.dateIsLessEqual(${e.field}, ${n(e)})`,dateTimeIsGreaterEqual:e=>`Expr.dateTimeIsGreaterEqual(${e.field}, ${n(e)})`,dateTimeIsLessEqual:e=>`Expr.dateTimeIsLessEqual(${e.field}, ${n(e)})`}},86636(e,t,i){"use strict";var o;i.d(t,{X:()=>o,r:()=>n}),function(e){e.AND="&&",e.OR="||",e.NOT="!",e.GT=">",e.GE=">=",e.LT="<",e.LE="<=",e.NE="!=",e.EQ="=="}(o||(o={}));class n{constructor(e){this.$$operator=e}static And(){return new n(o.AND)}static Or(){return new n(o.OR)}static Not(){return new n(o.NOT)}static GreaterThan(){return new n(o.GT)}static GreaterThanOrEqual(){return new n(o.GE)}static LessThan(){return new n(o.LT)}static LessThanOrEqual(){return new n(o.LE)}static NotEqual(){return new n(o.NE)}static Equal(){return new n(o.EQ)}get operator(){return this.$$operator}}},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}},10367(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:()=>pf,Badge:()=>Qe,Banner:()=>lt,BaseDatasource:()=>gi,BaseFileComponent:()=>Hs,Breadcrumb:()=>ht,BreadcrumbItem:()=>bt,Button:()=>St,COMBO_INPUT_MIN_LENGTH:()=>bu,CRON_LENGTH:()=>mc,CSSVarsTokenMapper:()=>Nm,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:()=>gf,DataGrid:()=>Ni,DataGridCell:()=>Pi,DataGridDatasource:()=>Fm,DataGridRow:()=>Gi,DateOrDay:()=>lc,DatePicker:()=>So,DefaultRouter:()=>Pv,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:()=>Zg,FaPrefixFromStyle:()=>Or,FileReader:()=>Vs,FileUpload:()=>oa,Filter:()=>va,FilterBar:()=>Ea,FilterEvents:()=>ga,FlexLayout:()=>La,FlexMediaQueriesEnum:()=>Ta,Flipper:()=>_a,Flyout:()=>ja,FoundationDesignSystemProvider:()=>Cn,FoundationExpressionBuilder:()=>Hg,FoundationRouteCollection:()=>Zv,FoundationRouteNav:()=>Kv,FoundationRouter:()=>nf,FoundationRouterConfiguration:()=>ef,FoundationRuleExpressionBuilder:()=>gv,FoundationValueExpressionBuilder:()=>Cv,GenerateNavigationPathEventType:()=>of,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:()=>tf,NotificationListener:()=>Sv,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:()=>Hv,RuleExpression:()=>ev,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:()=>lf,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,VerificationCodeInput:()=>Rm,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:()=>Lm,baseHeightMultiplier:()=>r.baseHeightMultiplier,baseLayerLuminance:()=>r.baseLayerLuminance,baseLayerLuminanceValue:()=>hn,black:()=>ko,bodyFont:()=>r.bodyFont,buildEditableElementSelector:()=>vf,categorizedMultiselectStyles:()=>Bt,categorizedMultiselectTemplate:()=>Gt,clientOperators:()=>iv,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:()=>Xv,defaultNeutralForegroundContrast:()=>Vo,defaultNumberFieldConfig:()=>zl,defaultPlacementIndexPadding:()=>Jv,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:()=>cf,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,defaultVerificationCodeInputConfig:()=>km,defineFactory:()=>Ov,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:()=>Vv,findRouter:()=>Bv,findTopLevelRouter:()=>Gv,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:()=>Ev,foundationNotificationListenerShadowOptions:()=>$v,foundationNotificationListenerTemplate:()=>xv,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:()=>uf,foundationStepperShadowOptions:()=>df,foundationStepperStyles:()=>rf,foundationStepperTab:()=>Jh,foundationStepperTabPanel:()=>ip,foundationStepperTabPanelShadowOptions:()=>ep,foundationStepperTabPanelTemplate:()=>Qh,foundationStepperTabShadowOptions:()=>Kh,foundationStepperTabStyles:()=>jh,foundationStepperTabTemplate:()=>Wh,foundationStepperTemplate:()=>af,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,foundationVerificationCodeInput:()=>Am,foundationVerificationCodeInputShadowOptions:()=>Tm,foundationVerificationCodeInputStyles:()=>Em,foundationVerificationCodeInputTemplate:()=>Om,fromBinaryExpression:()=>hv,fromMethodExpression:()=>pv,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:()=>Qv,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:()=>sf,getPrefixedStepperTab:()=>Yh,getPrefixedToast:()=>Bp,getPrefixedUrlInput:()=>ym,getTypeRampValue:()=>an,groupsToCriteria:()=>X,hasDateValue:()=>vo,inputControls:()=>Rc,isAbsoluteUrl:()=>Uv,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:()=>jv,plusIcon:()=>pu,provideDesignSystem:()=>yd,provideTokens:()=>Jo,rebuildOperator:()=>uv,registerFoundationDesignSystem:()=>ff,removeChildRouteParameter:()=>Wv,removeLastPathSegment:()=>Yv,resolveDayjsLocale:()=>ho,routerLogger:()=>Lv,routerProperty:()=>_v,ruleExpressionToGroup:()=>mv,ruleToRuleExpression:()=>dv,ruleToRuleMethodExpression:()=>lv,schedulerCronBuilderStyles:()=>Ac,schedulerStyles:()=>Qd,schedulerTimezoneStyles:()=>nu,selectCustomToken:()=>ln,sharedFieldStyles:()=>wl,singleOptionTemplate:()=>D,statusPillStyles:()=>zh,strokeWidth:()=>r.strokeWidth,swatchConverter:()=>Zo,tagFor:()=>Tv,transformOperatorNameToServerName:()=>rv,transformServerNameToOperatorName:()=>cv,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:()=>Mm,BASE_OPERATORS:()=>Bm,LOGICAL_COMBINATORS:()=>_m,NULL_COMBINATOR:()=>Hm});var a=i(38370),r=i(54634),l=i(33681);const d=(e,t)=>l.css`
|
|
2
2
|
${(0,r.accordionStyles)(e,t)}
|
|
3
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`
|
|
4
4
|
${(0,r.accordionItemStyles)(e,t)}
|
|
@@ -332,7 +332,7 @@
|
|
|
332
332
|
</div>
|
|
333
333
|
`)}
|
|
334
334
|
`;var t}}
|
|
335
|
-
`;var G=i(95553),j=i(58749),V=i(14609),Y=i(86636);const W={contains:G.n.containsIgnoreCase,equals:G.n.EQ,startsWith:G.n.startsWith,endsWith:G.n.endsWith,greaterThan:G.n.GT,lessThan:G.n.LT,greaterThanOrEqual:G.n.GE,lessThanOrEqual:G.n.LE,notEqual:G.n.NE,dateIsToday:G.n.dateIsToday,dateIsAfter:G.n.dateIsGreaterEqual,dateIsGreaterEqual:G.n.dateIsGreaterEqual,dateIsBefore:G.n.dateIsLessEqual,dateIsLessEqual:G.n.dateIsLessEqual,dateIsEqual:G.n.dateIsEqual,dateTimeIsAfter:G.n.dateTimeIsGreaterEqual,dateTimeIsGreaterEqual:G.n.dateTimeIsGreaterEqual,dateTimeIsBefore:G.n.dateTimeIsLessEqual,dateTimeIsLessEqual:G.n.dateTimeIsLessEqual};function q(e){var t,i;const o=null!==(t=W[e.operator])&&void 0!==t?t:G.n.containsIgnoreCase;return(new j.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 V.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),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`
|
|
336
336
|
:host {
|
|
337
337
|
display: flex;
|
|
338
338
|
justify-content: center;
|
|
@@ -523,13 +523,13 @@
|
|
|
523
523
|
${(0,r.anchorStyles)(e,t)}
|
|
524
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`
|
|
525
525
|
${(0,r.anchoredRegionStyles)(e,t)}
|
|
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)),
|
|
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
|
-
`,
|
|
528
|
+
`,Ge=(e,t)=>(0,a.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
|
-
`;class Ye extends r.Avatar{}const We={delegatesFocus:!0,mode:"open"},qe={media:
|
|
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
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`
|
|
535
535
|
@keyframes delete-animate {
|
|
@@ -838,7 +838,7 @@
|
|
|
838
838
|
visibility: visible;
|
|
839
839
|
max-height: ${Ut.toString()}px;
|
|
840
840
|
}
|
|
841
|
-
`,
|
|
841
|
+
`,Vt=(e="foundation")=>l.html`
|
|
842
842
|
<div class="root" part="root">
|
|
843
843
|
<div class="control" part="control" @click=${e=>!e.disabled&&e.toggle()}>
|
|
844
844
|
<label
|
|
@@ -907,11 +907,11 @@
|
|
|
907
907
|
</div>
|
|
908
908
|
</div>
|
|
909
909
|
</div>
|
|
910
|
-
`,
|
|
911
|
-
${
|
|
912
|
-
`,
|
|
910
|
+
`,Gt=l.html`
|
|
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`
|
|
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(26347),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.rowId="ROW_REF",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}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){"ROW_REF"!==this.rowId&&(null===(i=e.REPLY)||void 0===i||i.forEach(e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const 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.rowId],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 V.b;o.withExpression((new j.K).withField(null!==(i=e.labelField)&&void 0!==i?i:e.valueField).withValue(t).withSerialiser(G.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,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(26347),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.rowId="ROW_REF",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}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){"ROW_REF"!==this.rowId&&(null===(i=e.REPLY)||void 0===i||i.forEach(e=>{this.rowsSyncedWithStream.set(e[this.rowId],e)}));const t=this.rowsSyncedWithStream.size>0?Array.from(this.rowsSyncedWithStream.values()):e.REPLY;return void this.syncComponentData(t)}this.handleStreamInserts(e.REPLY);const 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.rowId],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`
|
|
915
915
|
.combo-box-indicator {
|
|
916
916
|
transition-property: transform;
|
|
917
917
|
transition-duration: 0.2s;
|
|
@@ -1034,9 +1034,9 @@
|
|
|
1034
1034
|
${(0,r.dataGridStyles)(e,t)}
|
|
1035
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`
|
|
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)),
|
|
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`
|
|
1038
1038
|
${(0,r.dataGridRowStyles)(e,t)}
|
|
1039
|
-
`;class
|
|
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`
|
|
1040
1040
|
:host {
|
|
1041
1041
|
position: relative;
|
|
1042
1042
|
}
|
|
@@ -1247,7 +1247,7 @@
|
|
|
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),Go=14;function jo(e,t){return e.colorContrast(t,Go)}const Vo=zo({name:"card-foreground-color",cssCustomPropertyName:"fui-card-foreground-color"}).withDefault(e=>jo(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`
|
|
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
1251
|
${(0,a.display)("flex")}
|
|
1252
1252
|
:host {
|
|
1253
1253
|
flex: 1;
|
|
@@ -1266,7 +1266,7 @@
|
|
|
1266
1266
|
${e.name} ${"h"+t} {
|
|
1267
1267
|
margin: 0;
|
|
1268
1268
|
}
|
|
1269
|
-
`;class Cn extends r.DesignSystemProvider{constructor(){super(),Jo(o,n,this)}}(0,C.Cg)([(0,l.attr)({attribute:"card-fill-color",converter:Zo}),Qo(Bo)],Cn.prototype,"cardFillColor",void 0),(0,C.Cg)([(0,l.attr)({attribute:"card-foreground-color",converter:Zo}),Qo(
|
|
1269
|
+
`;class Cn extends r.DesignSystemProvider{constructor(){super(),Jo(o,n,this)}}(0,C.Cg)([(0,l.attr)({attribute:"card-fill-color",converter:Zo}),Qo(Bo)],Cn.prototype,"cardFillColor",void 0),(0,C.Cg)([(0,l.attr)({attribute:"card-foreground-color",converter:Zo}),Qo(jo)],Cn.prototype,"cardForegroundColor",void 0);const xn=Cn.compose({baseName:"design-system-provider",template:l.html`
|
|
1270
1270
|
<slot></slot>
|
|
1271
1271
|
`,styles:e=>{const t=(e=>l.css`
|
|
1272
1272
|
${wn(e,"1")}
|
|
@@ -1621,7 +1621,7 @@
|
|
|
1621
1621
|
${(0,r.disclosureStyles)(e,t)}
|
|
1622
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`
|
|
1623
1623
|
${(0,r.dividerStyles)(e,t)}
|
|
1624
|
-
`,Un=(e,t)=>(0,a.dividerTemplate)(e,t);class Bn extends a.Divider{}const
|
|
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`
|
|
1625
1625
|
:host {
|
|
1626
1626
|
--dropdown-opener-height-multiplier: 0.7px;
|
|
1627
1627
|
--menu-item-height-multiplier: 0.7px;
|
|
@@ -1941,7 +1941,7 @@
|
|
|
1941
1941
|
</template>
|
|
1942
1942
|
`,Bs=l.html`
|
|
1943
1943
|
${e=>Us(T(e))}
|
|
1944
|
-
`;class
|
|
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`
|
|
1945
1945
|
/* Host */
|
|
1946
1946
|
:host {
|
|
1947
1947
|
display: flex;
|
|
@@ -2021,7 +2021,7 @@
|
|
|
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
|
|
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`
|
|
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
|
|
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`
|
|
2036
2036
|
.filter-wrapper {
|
|
2037
2037
|
border: 1px solid gray;
|
|
2038
2038
|
border-radius: calc(var(--design-unit) * 2px);
|
|
@@ -2466,7 +2466,7 @@
|
|
|
2466
2466
|
:host([visuallyhidden]) div.background {
|
|
2467
2467
|
opacity: 0%;
|
|
2468
2468
|
}
|
|
2469
|
-
`,
|
|
2469
|
+
`,Va=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,9 +2490,9 @@
|
|
|
2490
2490
|
</div>
|
|
2491
2491
|
</div>
|
|
2492
2492
|
</div>
|
|
2493
|
-
`,
|
|
2494
|
-
${e=>
|
|
2495
|
-
`;class
|
|
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
2496
|
${t&&`@media only screen and ${Ka[e]} {`}
|
|
2497
2497
|
:host(.spacing${t}-1x) slot {
|
|
2498
2498
|
gap: calc(var(--design-unit) * 2px);
|
|
@@ -2750,9 +2750,9 @@
|
|
|
2750
2750
|
}
|
|
2751
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`
|
|
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)),
|
|
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`
|
|
2754
2754
|
${(0,r.menuStyles)(e,t)}
|
|
2755
|
-
`,
|
|
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`
|
|
2756
2756
|
${(0,r.menuItemStyles)(e,t)}
|
|
2757
2757
|
|
|
2758
2758
|
:host, :host(.indent-0[aria-haspopup='menu']) {
|
|
@@ -3342,7 +3342,7 @@
|
|
|
3342
3342
|
::slotted(*) {
|
|
3343
3343
|
padding-left: 20px;
|
|
3344
3344
|
}
|
|
3345
|
-
`,
|
|
3345
|
+
`,Vl=(e,t)=>l.html`
|
|
3346
3346
|
<template role="option">
|
|
3347
3347
|
<div class="label" part="label" role="presentation">${e=>e.groupLabel}</div>
|
|
3348
3348
|
|
|
@@ -3350,7 +3350,7 @@
|
|
|
3350
3350
|
<slot></slot>
|
|
3351
3351
|
</div>
|
|
3352
3352
|
</template>
|
|
3353
|
-
`;class
|
|
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`
|
|
3354
3354
|
${(0,r.progressStyles)(e,t)}
|
|
3355
3355
|
:host {
|
|
3356
3356
|
height: calc(var(--design-unit) * 2px);
|
|
@@ -3834,7 +3834,7 @@
|
|
|
3834
3834
|
${(0,r.progressRingStyles)(e,t)}
|
|
3835
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`
|
|
3836
3836
|
${(0,r.radioStyles)(e,t)}
|
|
3837
|
-
`,Ud=(e,t)=>(0,a.radioTemplate)(e,t);class Bd extends r.Radio{}const
|
|
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`
|
|
3838
3838
|
${(0,r.radioGroupStyles)(e,t)}
|
|
3839
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`
|
|
3840
3840
|
/* Host */
|
|
@@ -4082,9 +4082,9 @@
|
|
|
4082
4082
|
</div>
|
|
4083
4083
|
</div>
|
|
4084
4084
|
`)(e))}
|
|
4085
|
-
`,
|
|
4085
|
+
`,Vc=l.html`
|
|
4086
4086
|
${e=>Bc(e.prefix)}
|
|
4087
|
-
`;let
|
|
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
4088
|
${Rc}
|
|
4089
4089
|
.weekdays-row {
|
|
4090
4090
|
display: flex;
|
|
@@ -4115,7 +4115,7 @@
|
|
|
4115
4115
|
</div>
|
|
4116
4116
|
</template>
|
|
4117
4117
|
`;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:
|
|
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`
|
|
4119
4119
|
<monthly-yearly-recurrence
|
|
4120
4120
|
:prefix=${()=>e}
|
|
4121
4121
|
:config=${()=>t.cronConfig}
|
|
@@ -4363,7 +4363,7 @@
|
|
|
4363
4363
|
</template>
|
|
4364
4364
|
`,au=l.html`
|
|
4365
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"),
|
|
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`
|
|
4367
4367
|
.search-bar-combobox {
|
|
4368
4368
|
width: 100%;
|
|
4369
4369
|
min-width: auto;
|
|
@@ -4521,7 +4521,7 @@
|
|
|
4521
4521
|
</${e}-search-bar-combobox>
|
|
4522
4522
|
`,gu=l.html`
|
|
4523
4523
|
${e=>mu(T(e))}
|
|
4524
|
-
`,vu=10,fu=3,bu=1,yu=(e,t)=>(new
|
|
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`
|
|
4525
4525
|
${yi(e,t)}
|
|
4526
4526
|
.control {
|
|
4527
4527
|
width: auto;
|
|
@@ -4861,7 +4861,7 @@
|
|
|
4861
4861
|
calc(var(--control-corner-radius) * 1px) 0;
|
|
4862
4862
|
border-left-width: 0;
|
|
4863
4863
|
}
|
|
4864
|
-
`,
|
|
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`
|
|
4865
4865
|
${(0,r.radioStyles)(e,t)}
|
|
4866
4866
|
:host {
|
|
4867
4867
|
padding: calc(var(--design-unit) * 2px) calc(var(--design-unit) * 4px);
|
|
@@ -5188,7 +5188,7 @@
|
|
|
5188
5188
|
</div>
|
|
5189
5189
|
`)}
|
|
5190
5190
|
`;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
|
|
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`
|
|
5192
5192
|
.tree-item {
|
|
5193
5193
|
cursor: default;
|
|
5194
5194
|
}
|
|
@@ -5344,7 +5344,7 @@
|
|
|
5344
5344
|
`)}
|
|
5345
5345
|
`,Wh=l.html`
|
|
5346
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:
|
|
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`
|
|
5348
5348
|
<template slot="tab-panel" role="stepper-tab-panel">
|
|
5349
5349
|
<slot></slot>
|
|
5350
5350
|
</template>
|
|
@@ -5624,9 +5624,9 @@
|
|
|
5624
5624
|
</div>
|
|
5625
5625
|
</div>
|
|
5626
5626
|
</div>
|
|
5627
|
-
`,
|
|
5627
|
+
`,Vp=l.html`
|
|
5628
5628
|
${e=>Bp(T(e))}
|
|
5629
|
-
`,
|
|
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`
|
|
5630
5630
|
${(0,r.toolbarStyles)(e,t)}
|
|
5631
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`
|
|
5632
5632
|
${(0,r.tooltipStyles)(e,t)}
|
|
@@ -5686,7 +5686,159 @@
|
|
|
5686
5686
|
</div>
|
|
5687
5687
|
`,wm=l.html`
|
|
5688
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=
|
|
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=l.css`
|
|
5690
|
+
:host {
|
|
5691
|
+
display: block;
|
|
5692
|
+
font-family: var(--body-font);
|
|
5693
|
+
outline: none;
|
|
5694
|
+
}
|
|
5695
|
+
|
|
5696
|
+
.label {
|
|
5697
|
+
display: block;
|
|
5698
|
+
color: var(--neutral-foreground-rest);
|
|
5699
|
+
cursor: pointer;
|
|
5700
|
+
font-size: var(--type-ramp-base-font-size);
|
|
5701
|
+
line-height: var(--type-ramp-base-line-height);
|
|
5702
|
+
margin-bottom: 4px;
|
|
5703
|
+
}
|
|
5704
|
+
|
|
5705
|
+
.label-hidden {
|
|
5706
|
+
display: none;
|
|
5707
|
+
}
|
|
5708
|
+
|
|
5709
|
+
:host([readonly]) .label {
|
|
5710
|
+
cursor: var(--disabled-cursor);
|
|
5711
|
+
}
|
|
5712
|
+
|
|
5713
|
+
.container {
|
|
5714
|
+
display: flex;
|
|
5715
|
+
gap: calc(var(--design-unit) * 1px);
|
|
5716
|
+
align-items: center;
|
|
5717
|
+
}
|
|
5718
|
+
|
|
5719
|
+
.digit {
|
|
5720
|
+
display: inline-block;
|
|
5721
|
+
box-sizing: border-box;
|
|
5722
|
+
outline: none;
|
|
5723
|
+
min-width: calc(
|
|
5724
|
+
(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px
|
|
5725
|
+
);
|
|
5726
|
+
}
|
|
5727
|
+
|
|
5728
|
+
.digit .root {
|
|
5729
|
+
box-sizing: border-box;
|
|
5730
|
+
position: relative;
|
|
5731
|
+
display: flex;
|
|
5732
|
+
flex-direction: row;
|
|
5733
|
+
align-items: center;
|
|
5734
|
+
color: var(--neutral-foreground-rest);
|
|
5735
|
+
background: var(--neutral-fill-input-rest);
|
|
5736
|
+
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
5737
|
+
border: calc(var(--stroke-width) * 1px) solid var(--accent-fill-rest);
|
|
5738
|
+
height: calc(
|
|
5739
|
+
(((var(--base-height-multiplier) + var(--density)) * var(--design-unit)) - 4) * 1px
|
|
5740
|
+
);
|
|
5741
|
+
}
|
|
5742
|
+
|
|
5743
|
+
.digit .control {
|
|
5744
|
+
appearance: none;
|
|
5745
|
+
font: inherit;
|
|
5746
|
+
background: transparent;
|
|
5747
|
+
border: 0;
|
|
5748
|
+
color: inherit;
|
|
5749
|
+
height: calc(100% - 4px);
|
|
5750
|
+
width: 100%;
|
|
5751
|
+
margin-top: auto;
|
|
5752
|
+
margin-bottom: auto;
|
|
5753
|
+
padding: 0 calc(var(--design-unit) * 2px + 1px);
|
|
5754
|
+
font-size: var(--type-ramp-base-font-size);
|
|
5755
|
+
line-height: var(--type-ramp-base-line-height);
|
|
5756
|
+
text-align: center;
|
|
5757
|
+
outline: none;
|
|
5758
|
+
color-scheme: ${Np};
|
|
5759
|
+
}
|
|
5760
|
+
|
|
5761
|
+
.digit[appearance='filled'] .root {
|
|
5762
|
+
background: var(--neutral-fill-rest);
|
|
5763
|
+
}
|
|
5764
|
+
|
|
5765
|
+
.digit.error .root {
|
|
5766
|
+
border-color: var(--error-fill-rest);
|
|
5767
|
+
}
|
|
5768
|
+
|
|
5769
|
+
.digit.disabled {
|
|
5770
|
+
opacity: var(--disabled-opacity);
|
|
5771
|
+
cursor: var(--disabled-cursor);
|
|
5772
|
+
}
|
|
5773
|
+
|
|
5774
|
+
.digit.disabled .control {
|
|
5775
|
+
cursor: var(--disabled-cursor);
|
|
5776
|
+
}
|
|
5777
|
+
|
|
5778
|
+
.digit:hover:not(.disabled) .root {
|
|
5779
|
+
background: var(--neutral-fill-input-hover);
|
|
5780
|
+
border-color: var(--accent-fill-hover);
|
|
5781
|
+
}
|
|
5782
|
+
|
|
5783
|
+
.digit:focus-within:not(.disabled) .root {
|
|
5784
|
+
border-color: var(--focus-stroke-outer);
|
|
5785
|
+
box-shadow: 0 0 0 calc(var(--focus-stroke-width) * 1px) var(--focus-stroke-outer) inset;
|
|
5786
|
+
}
|
|
5787
|
+
|
|
5788
|
+
.digit[appearance='filled']:hover:not(.disabled) .root {
|
|
5789
|
+
background: var(--neutral-fill-hover);
|
|
5790
|
+
}
|
|
5791
|
+
|
|
5792
|
+
${wl}
|
|
5793
|
+
`,Om=l.html`
|
|
5794
|
+
<label
|
|
5795
|
+
part="label"
|
|
5796
|
+
id="${e=>e.labelId}"
|
|
5797
|
+
for="${e=>e.getControlId(0)}"
|
|
5798
|
+
class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label-hidden"}"
|
|
5799
|
+
>
|
|
5800
|
+
<slot
|
|
5801
|
+
${(0,l.slotted)({property:"defaultSlottedNodes",filter:a.whitespaceFilter})}
|
|
5802
|
+
></slot>
|
|
5803
|
+
</label>
|
|
5804
|
+
<div
|
|
5805
|
+
class="container"
|
|
5806
|
+
role="group"
|
|
5807
|
+
aria-labelledby="${e=>e.hasLabel?e.labelId:void 0}"
|
|
5808
|
+
aria-label="${e=>e.hasLabel?void 0:"Verification code"}"
|
|
5809
|
+
>
|
|
5810
|
+
${(0,l.repeat)(e=>e.digitsIndexes,l.html`
|
|
5811
|
+
<div
|
|
5812
|
+
class="digit ${(e,t)=>t.parent.digitClassnames}"
|
|
5813
|
+
data-digit-index="${e=>e}"
|
|
5814
|
+
appearance="${(e,t)=>t.parent.appearance}"
|
|
5815
|
+
>
|
|
5816
|
+
<div class="root" part="root">
|
|
5817
|
+
<div class="control-field">
|
|
5818
|
+
<input
|
|
5819
|
+
class="control"
|
|
5820
|
+
part="control"
|
|
5821
|
+
type="text"
|
|
5822
|
+
inputmode="numeric"
|
|
5823
|
+
pattern="[0-9]*"
|
|
5824
|
+
name="${(e,t)=>t.parent.getControlId(e)}"
|
|
5825
|
+
id="${(e,t)=>t.parent.getControlId(e)}"
|
|
5826
|
+
autocomplete="${e=>0===e?"one-time-code":"off"}"
|
|
5827
|
+
data-test-id="${(e,t)=>t.parent.getControlId(e)}"
|
|
5828
|
+
title="Only numbers are allowed"
|
|
5829
|
+
maxlength="1"
|
|
5830
|
+
?autofocus="${(e,t)=>t.parent.autofocus&&0===e}"
|
|
5831
|
+
?readonly="${(e,t)=>t.parent.readOnly}"
|
|
5832
|
+
?disabled="${(e,t)=>t.parent.disabled||t.parent.readOnly}"
|
|
5833
|
+
?aria-required="${(e,t)=>t.parent.required}"
|
|
5834
|
+
?aria-invalid="${(e,t)=>t.parent.error}"
|
|
5835
|
+
/>
|
|
5836
|
+
</div>
|
|
5837
|
+
</div>
|
|
5838
|
+
</div>
|
|
5839
|
+
`)}
|
|
5840
|
+
</div>
|
|
5841
|
+
`,Tm={mode:"open",delegatesFocus:!0},km={},Dm=/^\d$/;class Im extends a.FoundationElement{}class Rm extends((0,a.FormAssociated)(Im)){constructor(){super(),this.values=[],this.controlListeners=new Map,this.syncingFromDigits=!1,this.appearance="outline",this.digits=6,this.readOnly=!1,this.disabled=!1,this.autofocus=!1,this.error=!1,this.proxy=document.createElement("input")}get digitsIndexes(){return Array.from({length:this.digits},(e,t)=>t)}get controlIdPrefix(){return this.id||"verification-code"}get labelId(){return`${this.controlIdPrefix}-label`}get hasLabel(){var e;return!!(null===(e=this.defaultSlottedNodes)||void 0===e?void 0:e.length)}getControlId(e){return`${this.controlIdPrefix}-${e}`}clear(){this.value="",this.emitChange(),this.$fastController.isConnected&&this.focusDigit(0)}focus(){this.focusDigit(0)}valueChanged(e,t){const i=this.sanitizeCode(t);this.syncingFromDigits||this.syncDigitsFromValue(i),String(null!=t?t:"")===i?super.valueChanged(e,i):this.value=i}validate(e){var t,i;if(!(this.proxy instanceof HTMLElement))return;const o=null!==(t=null!=e?e:this.getControlElement(0))&&void 0!==t?t:void 0;String(null!==(i=this.value)&&void 0!==i?i:"").length>0&&!this.isComplete()?this.setValidity({patternMismatch:!0},`Please enter a ${this.digits}-digit code.`,o):!this.required||this.isComplete()?this.setValidity({},"",o):this.setValidity({valueMissing:!0},"Please fill out this field.",o)}connectedCallback(){super.connectedCallback(),this.proxy.type="text",this.proxy.inputMode="numeric",l.DOM.queueUpdate(()=>{this.syncFieldValues(),this.bindControlListeners(),this.autofocus&&!this.readOnly&&this.focus()})}disconnectedCallback(){super.disconnectedCallback(),this.unbindControlListeners()}digitsChanged(){var e;this.syncDigitsFromValue(this.sanitizeCode(this.value));const t=(null!==(e=this.values)&&void 0!==e?e:[]).join("");this.value!==t?this.value=t:this.validate(),l.DOM.queueUpdate(()=>{this.syncFieldValues(),this.bindControlListeners()})}get digitClassnames(){return[this.error&&"error",(this.disabled||this.readOnly)&&"disabled"].filter(Boolean).join(" ")}sanitizeCode(e){const t=Math.max(1,Number(this.digits)||6);return String(null!=e?e:"").replace(/\D/g,"").slice(0,t)}bindControlListeners(){this.unbindControlListeners();this.rootNode.querySelectorAll("[data-digit-index] input.control").forEach(e=>{const t=this.getIndexFromInput(e);if(null===t)return;const i={paste:e=>this.onPaste(e,t),keydown:e=>this.onKeyDown(e,t),input:e=>this.onInput(e,t)};e.addEventListener("paste",i.paste,!0),e.addEventListener("keydown",i.keydown),e.addEventListener("input",i.input),this.controlListeners.set(e,i)})}unbindControlListeners(){var e,t;null===(e=this.controlListeners)||void 0===e||e.forEach((e,t)=>{t.removeEventListener("paste",e.paste,!0),t.removeEventListener("keydown",e.keydown),t.removeEventListener("input",e.input)}),null===(t=this.controlListeners)||void 0===t||t.clear()}onKeyDown(e,t){if(!this.readOnly&&!this.disabled){if(Dm.test(e.key)&&!e.ctrlKey&&!e.metaKey&&!e.altKey)return e.preventDefault(),this.updateDigit(t,e.key),void this.focusDigit(t+1);switch(e.key){case"Backspace":e.preventDefault(),this.handleBackspace(t);break;case"Delete":e.preventDefault(),this.handleDelete(t);break;case"ArrowLeft":e.preventDefault(),this.focusDigit(t-1);break;case"ArrowRight":e.preventDefault(),this.focusDigit(t+1);break;case"Tab":case"Home":case"End":break;default:this.isBlockedCharacter(e)&&e.preventDefault()}}}isBlockedCharacter(e){return!(e.ctrlKey||e.metaKey||e.altKey)&&(1===e.key.length&&!Dm.test(e.key))}onInput(e,t){if(this.readOnly||this.disabled)return;const i=e.target,o=i.value.replace(/\D/g,"");if(o.length>1)return void this.applyDigits(o,t);const n=o.slice(-1);i.value!==n&&(i.value=n),n&&this.values[t]!==n?(this.updateDigit(t,n),this.focusDigit(t+1)):!n&&this.values[t]&&this.updateDigit(t,"")}onPaste(e,t){var i,o;if(this.readOnly||this.disabled)return;e.preventDefault();const n=null!==(o=null===(i=e.clipboardData)||void 0===i?void 0:i.getData("text"))&&void 0!==o?o:"";n&&this.applyDigits(n,t)}handleBackspace(e){this.values[e]?this.updateDigit(e,""):e>0&&(this.updateDigit(e-1,""),this.focusDigit(e-1))}handleDelete(e){this.values[e]&&this.updateDigit(e,"")}getIndexFromInput(e){var t;const i=Number(null===(t=e.closest("[data-digit-index]"))||void 0===t?void 0:t.getAttribute("data-digit-index"));return Number.isNaN(i)?null:i}syncDigitsFromValue(e){var t,i;const o=Math.max(1,Number(this.digits)||6),n=Array.from({length:o},(t,i)=>{var o;return null!==(o=e[i])&&void 0!==o?o:""}),s=null!==(t=this.values)&&void 0!==t?t:[];n.length===s.length&&n.every((e,t)=>e===s[t])||(this.values=n,(null===(i=this.$fastController)||void 0===i?void 0:i.isConnected)&&this.syncFieldValues())}updateDigit(e,t){if(e<0||e>=this.digits)return;const i=[...this.values];i[e]=t,this.values=i,this.syncFieldValue(e),this.commitValues(i)}applyDigits(e,t){const i=e.replace(/\D/g,"").slice(0,this.digits-t);if(!i.length)return;const o=[...this.values];for(let e=0;e<i.length;e+=1)o[t+e]=i[e];this.values=o,this.syncFieldValues(),this.commitValues(o),this.focusDigit(this.isComplete()?this.digits-1:t+i.length)}commitValues(e){const t=e.join("");this.syncingFromDigits=!0;try{this.value!==t?this.value=t:this.validate()}finally{this.syncingFromDigits=!1}this.emitChange(),this.isComplete()&&this.$emit("complete",{value:this.value})}syncFieldValues(){for(let e=0;e<this.digits;e+=1)this.syncFieldValue(e)}syncFieldValue(e){var t;const i=this.getControlElement(e);i&&(i.value=null!==(t=this.values[e])&&void 0!==t?t:"")}focusDigit(e){var t;e<0||e>=this.digits||null===(t=this.getControlElement(e))||void 0===t||t.focus()}get rootNode(){var e;return null!==(e=this.shadowRoot)&&void 0!==e?e:this}getControlElement(e){return this.rootNode.querySelector(`[data-digit-index="${e}"] input.control`)}isComplete(){var e;const t=null!==(e=this.values)&&void 0!==e?e:[];return t.length===this.digits&&t.every(e=>Dm.test(e))}emitChange(){this.$emit("change",{value:this.value})}}(0,C.Cg)([l.observable],Rm.prototype,"values",void 0),(0,C.Cg)([l.observable],Rm.prototype,"defaultSlottedNodes",void 0),(0,C.Cg)([l.attr],Rm.prototype,"id",void 0),(0,C.Cg)([l.attr],Rm.prototype,"appearance",void 0),(0,C.Cg)([l.attr],Rm.prototype,"digits",void 0),(0,C.Cg)([(0,l.attr)({attribute:"readonly",mode:"boolean"})],Rm.prototype,"readOnly",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Rm.prototype,"disabled",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Rm.prototype,"autofocus",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Rm.prototype,"error",void 0);const Am=Rm.compose(Object.assign({baseName:"verification-code-input",template:Om,styles:Em,shadowOptions:Tm},km)),Lm={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,foundationVerificationCodeInput:Am,foundationSectionNavigator:Uu,register(e,...t){if(e)for(const i in this)"register"!==i&&this[i]().register(e,...t)}};class Nm 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 Fm=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.")}};Fm=(0,C.Cg)([(0,l.customElement)({name:"data-grid-datasource"})],Fm);const Mm=[{type:"AND",maxRules:"many"},{type:"OR",maxRules:"many"}],_m=[...Mm,{type:"NOT",maxRules:2},{type:"NAND",maxRules:"many"},{type:"NOR",maxRules:"many"},{type:"XOR",maxRules:2}],Hm={type:"NULL",maxRules:1,invisible:!0},Pm=["int","short","long","bigdecimal","double"],zm=["date","date-time"],Um=["enum",...Pm,"string",...zm,"boolean"],Bm=[{type:"equal",nbInputs:1,applyTo:Um,optgroup:"Equality"},{type:"not_equal",nbInputs:1,applyTo:Um,optgroup:"Equality"},{type:"greater",nbInputs:1,applyTo:[...Pm,...zm],optgroup:"Comparison"},{type:"less",nbInputs:1,applyTo:[...Pm,...zm],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:[...Um].filter(e=>"boolean"!==e)},{type:"not_any_of",nbInputs:"many",applyTo:[...Um].filter(e=>"boolean"!==e)},{type:"within_inclusive",nbInputs:2,applyTo:[...Pm,...zm],optgroup:"Range"},{type:"within_exclusive",nbInputs:2,applyTo:[...Pm,...zm],optgroup:"Range"},{type:"is_null",nbInputs:0,applyTo:[...Um],optgroup:"Null"},{type:"not_null",nbInputs:0,applyTo:[...Um],optgroup:"Null"}];var Vm=i(93678);const Gm=i.n(Vm)()();function jm(e,t,i){const o=function e(o){const n=Gm(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 Ym(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 Wm(e,t){const i=Ym(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 qm(e,t){const i=Ym(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 Km(e,t,i){return jm(e,t,e=>[...e,i])}const Xm="group-root";function Jm(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:Xm,children:e.children.map(e=>i(e,2))})}function Qm(e){const t=e.children.map(e=>"children"in e?Qm(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 Zm=e=>`${e.getUTCFullYear()}-${String(e.getUTCMonth()+1).padStart(2,"0")}-${String(e.getUTCDate()).padStart(2,"0")}`,eg=e=>`${Zm(e)}T${String(e.getUTCHours()).padStart(2,"0")}:${String(e.getUTCMinutes()).padStart(2,"0")}:${String(e.getUTCSeconds()).padStart(2,"0")}`,tg=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},ig=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},og=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 ng(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 sg;!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"}(sg||(sg={}));const ag=l.css`
|
|
5690
5842
|
:host {
|
|
5691
5843
|
--item-vertical-spacing: 4px;
|
|
5692
5844
|
--item-border-radius: 5px;
|
|
@@ -5860,7 +6012,7 @@
|
|
|
5860
6012
|
.rules-list > *:last-child::after {
|
|
5861
6013
|
display: none;
|
|
5862
6014
|
}
|
|
5863
|
-
`,
|
|
6015
|
+
`,rg=l.css`
|
|
5864
6016
|
.rules-group-container {
|
|
5865
6017
|
border: 1px solid #ccc;
|
|
5866
6018
|
margin-bottom: 10px;
|
|
@@ -5903,10 +6055,10 @@
|
|
|
5903
6055
|
list-style: none;
|
|
5904
6056
|
padding-left: 0;
|
|
5905
6057
|
}
|
|
5906
|
-
`;function
|
|
6058
|
+
`;function lg(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 dg=l.html`
|
|
5907
6059
|
${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`
|
|
5908
6060
|
<div class="btn-group group-conditions">
|
|
5909
|
-
${
|
|
6061
|
+
${lg(e=>"input"!==n,l.html`
|
|
5910
6062
|
<${s}
|
|
5911
6063
|
class="radio-group-container"
|
|
5912
6064
|
name="combinator"
|
|
@@ -5944,7 +6096,7 @@
|
|
|
5944
6096
|
`)}
|
|
5945
6097
|
</div>
|
|
5946
6098
|
`}}
|
|
5947
|
-
`,
|
|
6099
|
+
`,cg=l.html`
|
|
5948
6100
|
${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`
|
|
5949
6101
|
<div class="btn-group float-end group-actions">
|
|
5950
6102
|
${(0,l.when)(e=>e.allowAddRule,l.html`
|
|
@@ -5981,13 +6133,13 @@
|
|
|
5981
6133
|
`)}
|
|
5982
6134
|
</div>
|
|
5983
6135
|
`}}
|
|
5984
|
-
`,
|
|
6136
|
+
`,ug=l.html`
|
|
5985
6137
|
<div class="rules-group-container">
|
|
5986
|
-
<div class="rules-group-header">${
|
|
6138
|
+
<div class="rules-group-header">${cg} ${dg}</div>
|
|
5987
6139
|
<div class="rules-group-body">
|
|
5988
6140
|
<div class="rules-list">
|
|
5989
6141
|
${(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
|
-
${
|
|
6142
|
+
${lg(e=>"children"in e,l.html`
|
|
5991
6143
|
<expression-group
|
|
5992
6144
|
:config=${(e,t)=>t.parent.config}
|
|
5993
6145
|
:styles=${(e,t)=>t.parent.styles}
|
|
@@ -6011,7 +6163,7 @@
|
|
|
6011
6163
|
</div>
|
|
6012
6164
|
</div>
|
|
6013
6165
|
</div>
|
|
6014
|
-
`;let
|
|
6166
|
+
`;let hg=class extends l.FASTElement{connectedCallback(){super.connectedCallback(),ng(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(sg.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(sg.AddGroup,{detail:t,bubbles:!0,composed:!0}))}dispatchDeleteGroup(e){e.stopPropagation();const t={groupId:this.model.groupId};this.dispatchEvent(new CustomEvent(sg.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(sg.UpdateGroup,{detail:t,bubbles:!0,composed:!0}))}};(0,C.Cg)([l.observable],hg.prototype,"config",void 0),(0,C.Cg)([l.observable],hg.prototype,"styles",void 0),(0,C.Cg)([l.observable],hg.prototype,"model",void 0),(0,C.Cg)([l.observable],hg.prototype,"index",void 0),(0,C.Cg)([l.volatile],hg.prototype,"allowAddRule",null),(0,C.Cg)([l.volatile],hg.prototype,"allowAddGroup",null),hg=(0,C.Cg)([(0,l.customElement)({name:"expression-group",template:ug,styles:rg,shadowOptions:{delegatesFocus:!0}})],hg);const pg=l.html`
|
|
6015
6167
|
<div class="query-builder">
|
|
6016
6168
|
${(0,l.when)(e=>null!==e.model,l.html`
|
|
6017
6169
|
<expression-group
|
|
@@ -6021,7 +6173,7 @@
|
|
|
6021
6173
|
></expression-group>
|
|
6022
6174
|
`)}
|
|
6023
6175
|
</div>
|
|
6024
|
-
`,
|
|
6176
|
+
`,mg=l.html`
|
|
6025
6177
|
${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`
|
|
6026
6178
|
<${r}
|
|
6027
6179
|
class="form-select"
|
|
@@ -6052,7 +6204,7 @@
|
|
|
6052
6204
|
`)}
|
|
6053
6205
|
</${r}>
|
|
6054
6206
|
`}}
|
|
6055
|
-
`;let
|
|
6207
|
+
`;let gg=class extends l.FASTElement{constructor(){super(...arguments),this.fields=[]}connectedCallback(){super.connectedCallback(),ng(this,this.styles,"field")}get groupedFieldss(){return og(this.fields)}dispatchFieldsChanged(e){e.stopPropagation();const t={fieldId:e.target.value};this.dispatchEvent(new CustomEvent(sg.FieldSelected,{detail:t,bubbles:!0,composed:!0}))}};(0,C.Cg)([l.observable],gg.prototype,"fields",void 0),(0,C.Cg)([l.observable],gg.prototype,"field",void 0),(0,C.Cg)([l.observable],gg.prototype,"config",void 0),(0,C.Cg)([l.observable],gg.prototype,"styles",void 0),(0,C.Cg)([l.volatile],gg.prototype,"groupedFieldss",null),gg=(0,C.Cg)([(0,l.customElement)({name:"expression-rule-field",template:mg})],gg);const vg=l.html`
|
|
6056
6208
|
${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`
|
|
6057
6209
|
<${r}
|
|
6058
6210
|
class="form-select"
|
|
@@ -6085,7 +6237,7 @@
|
|
|
6085
6237
|
`)}
|
|
6086
6238
|
</${r}>
|
|
6087
6239
|
`}}
|
|
6088
|
-
`;let
|
|
6240
|
+
`;let fg=class extends l.FASTElement{constructor(){super(...arguments),this.operators=[],this.field=null}connectedCallback(){super.connectedCallback(),ng(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 og(this.allowedOperators)}handleOperatorChange(e){e.stopPropagation();const t={operatorId:e.target.value};this.dispatchEvent(new CustomEvent(sg.OperatorSelected,{detail:t,bubbles:!0,composed:!0}))}};(0,C.Cg)([l.observable],fg.prototype,"operators",void 0),(0,C.Cg)([l.observable],fg.prototype,"operator",void 0),(0,C.Cg)([l.observable],fg.prototype,"field",void 0),(0,C.Cg)([l.observable],fg.prototype,"config",void 0),(0,C.Cg)([l.observable],fg.prototype,"styles",void 0),(0,C.Cg)([l.volatile],fg.prototype,"allowedOperators",null),(0,C.Cg)([l.volatile],fg.prototype,"groupedOperators",null),fg=(0,C.Cg)([(0,l.customElement)({name:"expression-rule-operator",template:vg})],fg);const bg=e=>["short","int","long"].includes(e),yg=e=>["double","bigdecimal"].includes(e),wg=(e,t)=>{var i,o;return null===(o=null===(i=(e=>bg(e)?/^[+-]?[0-9]+$/:yg(e)?/[+-]?([0-9]*[.])?[0-9]+/:null)(e))||void 0===i?void 0:i.test(t))||void 0===o||o?null:"Invalid number format"},Cg=l.css`
|
|
6089
6241
|
.text-input.error {
|
|
6090
6242
|
color: red;
|
|
6091
6243
|
}
|
|
@@ -6094,8 +6246,8 @@
|
|
|
6094
6246
|
display: inline-grid;
|
|
6095
6247
|
align-items: center;
|
|
6096
6248
|
}
|
|
6097
|
-
`,
|
|
6098
|
-
${e=>{var t,i;const o=
|
|
6249
|
+
`,xg=l.html`
|
|
6250
|
+
${e=>{var t,i;const o=tg(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
6251
|
<${s}
|
|
6100
6252
|
type="${o}"
|
|
6101
6253
|
class="text-input ${e=>(0,x.x)(["error",e.validationError])}"
|
|
@@ -6103,7 +6255,7 @@
|
|
|
6103
6255
|
@blur=${(e,t)=>e.handleInputChange(t.event)}
|
|
6104
6256
|
/>
|
|
6105
6257
|
`}}
|
|
6106
|
-
|
|
6258
|
+
`,$g=l.html`
|
|
6107
6259
|
${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
6260
|
<${s}
|
|
6109
6261
|
class="form-select"
|
|
@@ -6121,7 +6273,7 @@
|
|
|
6121
6273
|
`)}
|
|
6122
6274
|
</${s}>
|
|
6123
6275
|
`}}
|
|
6124
|
-
`,
|
|
6276
|
+
`,Sg=l.html`
|
|
6125
6277
|
${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
6278
|
<label>
|
|
6127
6279
|
<${n}
|
|
@@ -6133,15 +6285,15 @@
|
|
|
6133
6285
|
True
|
|
6134
6286
|
</label>
|
|
6135
6287
|
`}}
|
|
6136
|
-
`,
|
|
6137
|
-
<div>Input type "${e=>
|
|
6138
|
-
`,
|
|
6139
|
-
${e=>{const t=
|
|
6288
|
+
`,Eg=l.html`
|
|
6289
|
+
<div>Input type "${e=>tg(e)}" not yet supported.</div>
|
|
6290
|
+
`,Og=l.html`
|
|
6291
|
+
${e=>{const t=tg(e);return l.html`
|
|
6140
6292
|
<div class="value-and-validation">
|
|
6141
|
-
${(0,l.when)(()=>["text","number","date","datetime-local"].includes(t),
|
|
6142
|
-
${(0,l.when)(()=>"select"===t
|
|
6143
|
-
${(0,l.when)(()=>"checkbox"===t,
|
|
6144
|
-
${(0,l.when)(()=>!["text","number","select","checkbox","date","datetime-local"].includes(t),
|
|
6293
|
+
${(0,l.when)(()=>["text","number","date","datetime-local"].includes(t),xg)}
|
|
6294
|
+
${(0,l.when)(()=>"select"===t,$g)}
|
|
6295
|
+
${(0,l.when)(()=>"checkbox"===t,Sg)}
|
|
6296
|
+
${(0,l.when)(()=>!["text","number","select","checkbox","date","datetime-local"].includes(t),Eg)}
|
|
6145
6297
|
${(0,l.when)(e=>e.validationMsg,l.html`
|
|
6146
6298
|
<p class="validation-msg">${e=>e.validationMsg}</p>
|
|
6147
6299
|
`)}
|
|
@@ -6158,11 +6310,11 @@
|
|
|
6158
6310
|
`}}
|
|
6159
6311
|
`)}
|
|
6160
6312
|
`}}
|
|
6161
|
-
`,
|
|
6162
|
-
${
|
|
6313
|
+
`,Tg=l.html`
|
|
6314
|
+
${lg(e=>e.field,Og,l.html`
|
|
6163
6315
|
<div>Select a field to set value</div>
|
|
6164
6316
|
`)}
|
|
6165
|
-
`;let
|
|
6317
|
+
`;let kg=class extends l.FASTElement{constructor(){super(...arguments),this.variadic=!1,this.validationError=!1,this.field=null,this.operator=null}connectedCallback(){super.connectedCallback(),ng(this,this.styles,"value")}validateInput(e){if(!this.field)return null;return["validation"in this.field?this.field.validation(e):null,wg(ig(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&&bg(ig(this))?parseInt(t.value):this.field&&yg(ig(this))?parseFloat(t.value):t.value,this.value=i;const o={value:i,index:parseInt(this.valueIndex)};this.dispatchEvent(new CustomEvent(sg.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(sg.RemoveVarArg,{detail:e,bubbles:!0,composed:!0}))}};(0,C.Cg)([(0,l.attr)({attribute:"value-index"})],kg.prototype,"valueIndex",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],kg.prototype,"variadic",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean",attribute:"validation-error"})],kg.prototype,"validationError",void 0),(0,C.Cg)([(0,l.attr)({attribute:"validation-msg"})],kg.prototype,"validationMsg",void 0),(0,C.Cg)([l.observable],kg.prototype,"field",void 0),(0,C.Cg)([l.observable],kg.prototype,"operator",void 0),(0,C.Cg)([l.observable],kg.prototype,"value",void 0),(0,C.Cg)([l.observable],kg.prototype,"config",void 0),(0,C.Cg)([l.observable],kg.prototype,"styles",void 0),kg=(0,C.Cg)([(0,l.customElement)({name:"expression-rule-value",template:Tg,styles:Cg,shadowOptions:{delegatesFocus:!0}})],kg);const Dg=(e,t)=>void 0!==t.field.defaultValue?t.field.defaultValue:Ig(e,t),Ig=(e,t)=>{var i,o;switch(ig(Object.assign(Object.assign({},t),{operator:e}))){case"string":return"";case"boolean":return!1;case"date":return Zm(new Date);case"date-time":return eg(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]}}},Rg=(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:Dg(e,t)};case 2:return{field:t.field,operator:e,value:[null!==(o=a(0))&&void 0!==o?o:Dg(e,t),null!==(n=a(1))&&void 0!==n?n:Dg(e,t)]};case"many":return{field:t.field,operator:e,value:[null!==(s=a(0))&&void 0!==s?s:Dg(e,t)]}}},Ag=(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)}}},Lg=e=>!e&&0!==e,Ng=l.css`
|
|
6166
6318
|
.rule-container {
|
|
6167
6319
|
border: 1px solid #eee;
|
|
6168
6320
|
margin-bottom: 5px;
|
|
@@ -6221,7 +6373,7 @@
|
|
|
6221
6373
|
expression-rule-value {
|
|
6222
6374
|
display: flex;
|
|
6223
6375
|
}
|
|
6224
|
-
`,
|
|
6376
|
+
`,Fg=l.html`
|
|
6225
6377
|
${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
6378
|
<div class="rule-container ${e=>(0,x.x)(["error",e.error])}">
|
|
6227
6379
|
<div class="rule-content">
|
|
@@ -6281,11 +6433,11 @@ class="margin"
|
|
|
6281
6433
|
</div>
|
|
6282
6434
|
</div>
|
|
6283
6435
|
`}}
|
|
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=Gm(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(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 Gg(e,t){return{TYPE:"PREDICATE_EXPRESSION",OPERATION:e.combinator.type,EXPRESSIONS:e.children.map(e=>"children"in e?Gg(e,t):t(e)).filter(Boolean)}}function jg(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?Vm(e):Ym(e)}throw new Error("Unhandled rebuildRuleValue case")})(t.VALUE)})}const Vg={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 jg(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=Gg(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 jg(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`
|
|
6436
|
+
`;let Mg=class extends l.FASTElement{constructor(){super(...arguments),this.error=!1}connectedCallback(){super.connectedCallback(),ng(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"!==ig(e)&&!!(Array.isArray(e.value)?e.value:[e.value]).some(Lg)})(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,Dg(this.model.operator,this.model)]}};this.dispatchEvent(new CustomEvent(sg.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(sg.UpdateRule,{detail:i,bubbles:!0,composed:!0}))}dispatchDeleteRule(e){e.stopPropagation();const t={ruleId:this.model.ruleId};this.dispatchEvent(new CustomEvent(sg.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(sg.UpdateRule,{detail:n,bubbles:!0,composed:!0}))}handleValueChanged(e){e.stopPropagation();const{value:t,index:i}=e.detail,o={ruleId:this.model.ruleId,newData:Ag(this.model,t,i)};this.dispatchEvent(new CustomEvent(sg.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(sg.UpdateRule,{detail:{ruleId:this.model.ruleId,newData:Rg(o,this.model)},bubbles:!0,composed:!0}))}};(0,C.Cg)([l.observable],Mg.prototype,"config",void 0),(0,C.Cg)([l.observable],Mg.prototype,"styles",void 0),(0,C.Cg)([l.observable],Mg.prototype,"model",void 0),(0,C.Cg)([l.observable],Mg.prototype,"index",void 0),(0,C.Cg)([(0,l.attr)({mode:"boolean"})],Mg.prototype,"error",void 0),(0,C.Cg)([l.volatile],Mg.prototype,"operandIterator",null),Mg=(0,C.Cg)([(0,l.customElement)({name:"expression-rule",template:Fg,styles:Ng,shadowOptions:{delegatesFocus:!0}})],Mg);let _g=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=Jm(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=Qm(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(sg.AddGroup,this.handleAddGroup),this.addEventListener(sg.DelGroup,this.handleDeleteGroup),this.addEventListener(sg.AddRule,this.handleAddRule),this.addEventListener(sg.DelRule,this.handleDeleteRule),this.addEventListener(sg.UpdateGroup,this.handleUpdateGroupData),this.addEventListener(sg.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(sg.AddGroup,this.handleAddGroup),this.removeEventListener(sg.DelGroup,this.handleDeleteGroup),this.removeEventListener(sg.AddRule,this.handleAddRule),this.removeEventListener(sg.DelRule,this.handleDeleteRule),this.removeEventListener(sg.UpdateGroup,this.handleUpdateGroupData),this.removeEventListener(sg.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:Xm,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=Km(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=Km(this.model,t,i)}_handleDeleteGroup(e){const{groupId:t}=e.detail;var i,o;this.model=jm(i=this.model,Wm(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=jm(i=this.model,qm(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===Xm?Object.assign(Object.assign({},e),i):jm(e,Wm(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 jm(e,qm(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],_g.prototype,"config",void 0),(0,C.Cg)([l.observable],_g.prototype,"styles",void 0),(0,C.Cg)([l.observable],_g.prototype,"model",void 0),_g=(0,C.Cg)([(0,l.customElement)({name:"expression-builder",template:pg,styles:ag})],_g);let Hg=class extends _g{};Hg=(0,C.Cg)([(0,l.customElement)({name:"foundation-expression-builder",styles:ag,template:pg})],Hg);const Pg=["int","short","long"],zg=["double","bigdecimal"],Ug=[...Pg,...zg],Bg=["date","date-time"],Vg=["string","enum"],Gg=["boolean"],jg=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 Yg(e){switch(jg(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 Wg(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 qg(e,t,i){return{TYPE:"BINARY_EXPRESSION",LEFT:{TYPE:"FIELD",NAME:e.field.fieldId},OPERATION:t,RIGHT:i}}function Kg(e,t,i=[]){return"value"in e?{TYPE:"METHOD_EXPRESSION",PARAMETERS:[{TYPE:"FIELD",NAME:e.field.fieldId},...i],METHOD:t}:null}function Xg(e){const t=!(!("value"in e)||void 0===e.value||null===e.value);return Object.assign(Object.assign({},e),t?{value:(t=>{const i=jg(e);if(Vg.includes(i))return t;if(Ug.includes(i))return t.toString();if(Gg.includes(i))return t;if(Array.isArray(t))throw new Error("Not implemented TernararyOperator or VariadicOperator args in rule value transformer");if(Bg.includes(i))return new Date(t).getTime().toString();throw new Error("Unhandled transformRuleValue case")})(e.value)}:{})}function Jg(e,t){return{TYPE:"PREDICATE_EXPRESSION",OPERATION:e.combinator.type,EXPRESSIONS:e.children.map(e=>"children"in e?Jg(e,t):t(e)).filter(Boolean)}}function Qg(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=jg(e);if(Vg.includes(i))return t;if(Pg.includes(i))return parseInt(t);if(zg.includes(i))return parseFloat(t);if(Gg.includes(i))return t;if(Bg.includes(i)){const e=new Date(parseInt(t));return"date"===i?Zm(e):eg(e)}throw new Error("Unhandled rebuildRuleValue case")})(t.VALUE)})}const Zg={template:pg,styles:ag};var ev;!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"})}(ev||(ev={}));const tv=[{type:ev.logicalOperations.AND,maxRules:"many"},{type:ev.logicalOperations.OR,maxRules:"many"}],iv={EQUALS:ev.operations.EQUALS,NOT_EQUALS:ev.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:ev.operations.GREATER_THAN,GREATER_THAN_OR_EQUAL:ev.operations.GREATER_THAN_OR_EQUAL,LESS_THAN:ev.operations.LESS_THAN,LESS_THAN_OR_EQUAL:ev.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:ev.operations.IS_CURRENT,IS_PREVIOUS:ev.operations.IS_PREVIOUS},ov=e=>({type:"enum",input:"select",values:e}),nv=ov({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."}}),sv=ov({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."}}),av=[{type:iv.EQUALS,label:"Equals",nbInputs:1,applyTo:[...Vg,...Gg,...Ug,...Bg],tooltip:"Check the equality of the field compared to a set value"},{type:iv.NOT_EQUALS,label:"Not equals",nbInputs:1,applyTo:[...Vg,...Gg,...Ug,...Bg],tooltip:"Check that the field is different from a set value"},{type:iv.IS_NULL,label:"Is null",nbInputs:0,applyTo:["enum",...Gg,...Ug,...Bg],tooltip:"Check if the field value is null"},{type:iv.NOT_NULL,label:"Not null",nbInputs:0,applyTo:["enum",...Gg,...Ug,...Bg],tooltip:"Check if the field value is not null"},{type:iv.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:iv.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:iv.CONTAINS,label:"Contains",nbInputs:1,applyTo:["string"],tooltip:"Check if the field contains the specified text (case insensitive)"},{type:iv.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:iv.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:iv.GREATER_THAN,label:"Greater than",nbInputs:1,applyTo:[...Ug],tooltip:"Check if the field value is greater than a specified number"},{type:iv.GREATER_THAN_OR_EQUAL,label:"Greater than or equal to",nbInputs:1,applyTo:[...Ug],tooltip:"Check if the field value is greater than or equal to a specified number"},{type:iv.LESS_THAN,label:"Less than",nbInputs:1,applyTo:[...Ug],tooltip:"Check if the field value is less than a specified number"},{type:iv.LESS_THAN_OR_EQUAL,label:"Less than or equal to",nbInputs:1,applyTo:[...Ug],tooltip:"Check if the field value is less than or equal to a specified number"},{type:iv.IS_BEFORE,label:"Is before",nbInputs:1,applyTo:[...Bg],tooltip:"Check if the field is before a specified date/time"},{type:iv.IS_AFTER,label:"Is after",nbInputs:1,applyTo:[...Bg],tooltip:"Check if the field is after a specified date/time"},{type:iv.ON_OR_BEFORE,label:"On or before",nbInputs:1,applyTo:[...Bg],tooltip:"Check if the field is on or before a specified date/time"},{type:iv.ON_OR_AFTER,label:"On or after",nbInputs:1,applyTo:[...Bg],tooltip:"Check if the field is on or after a specified date/time"},{type:iv.IS_CURRENT,label:"Is current",nbInputs:1,applyTo:[...Bg],tooltip:"Check whether the current date/time matches the current hour/day/work day/week/month/year.",valueType:sv,optgroup:"Relative Period"},{type:iv.IS_PREVIOUS,label:"Is previous",nbInputs:1,applyTo:[...Bg],tooltip:"Check whether the current date/time matches the previous hour/day/work day/week/month/year",valueType:nv,optgroup:"Relative Period"}];function rv(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 lv(e,t){switch(t){case iv.IS_NULL_OR_BLANK:return Kg(e,ev.methodCall.IS_NULL_OR_BLANK,[]);case iv.NOT_NULL_OR_BLANK:return Kg(e,ev.methodCall.NOT_NULL_OR_BLANK,[]);case iv.CONTAINS:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS");return Kg(e,ev.methodCall.CONTAINS_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case iv.CONTAINS_WORDS_STARTING_WITH:if(!("value"in e))throw new Error("Invalid shape for operator CONTAINS_WORDS_STARTING_WITH");return Kg(e,ev.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,[{TYPE:"STRING",VALUE:e.value}]);case iv.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 Kg(e,ev.methodCall.CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE,e.value.map(e=>({TYPE:"STRING",VALUE:e})));case iv.IS_CURRENT:case iv.IS_PREVIOUS:if(!("value"in e))throw new Error("Invalid shape for operator IS_CURRENT | IS_PREVIOUS");return Kg(e,ev.methodCall.DATE_TIME_IS_IN_RANGE,[{TYPE:"STRING",VALUE:e.value},{TYPE:"STRING",VALUE:t===iv.IS_CURRENT?"CURRENT":"PREVIOUS"}]);default:throw new Error("Unreachable default case")}}function dv(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=Xg(e),n=Yg(o),s=rv(o.operator.type);switch(s){case iv.EQUALS:case iv.NOT_EQUALS:case iv.GREATER_THAN:case iv.GREATER_THAN_OR_EQUAL:case iv.LESS_THAN:case iv.LESS_THAN_OR_EQUAL:return Wg(o,s,n);case iv.IS_NULL:return qg(o,ev.operations.EQUALS,{TYPE:"NULL"});case iv.NOT_NULL:return qg(o,ev.operations.NOT_EQUALS,{TYPE:"NULL"});case iv.IS_NULL_OR_BLANK:case iv.NOT_NULL_OR_BLANK:case iv.CONTAINS:case iv.CONTAINS_WORDS_STARTING_WITH:case iv.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER:case iv.IS_CURRENT:case iv.IS_PREVIOUS:return lv(o,s);default:throw new Error(`Unmatched case for operator name: ${s}`)}}function cv(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 uv(e,t){const i=(()=>{if("NULL"===t.RIGHT.TYPE){const e="EQUALS"===t.OPERATION?iv[iv.IS_NULL]:iv[iv.NOT_NULL];return av.find(t=>t.type===e)}const i=cv(t.OPERATION,e);return av.find(e=>e.type===i)})();return Object.assign(Object.assign({},e),{operator:i})}function hv(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 Qg(uv({field:e.find(e=>e.fieldId===t.LEFT.NAME)},t),t.RIGHT)}function pv(e,t){const[i,o]=(()=>{switch(!0){case"IS_NULL_OR_BLANK"===t.METHOD:return[iv[iv.IS_NULL_OR_BLANK],void 0];case"NOT_NULL_OR_BLANK"===t.METHOD:return[iv[iv.NOT_NULL_OR_BLANK],void 0];case"CONTAINS_IGNORE_CASE"===t.METHOD:return[iv[iv.CONTAINS],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&2===t.PARAMETERS.length:return[iv[iv.CONTAINS_WORDS_STARTING_WITH],t.PARAMETERS[1].VALUE];case"CONTAINS_WORDS_STARTING_WITH_IGNORE_CASE"===t.METHOD&&3===t.PARAMETERS.length:return[iv[iv.CONTAINS_WORDS_STARTING_SPLIT_DELIMITER],t.PARAMETERS.slice(1).map(e=>e.VALUE)];case t.METHOD===ev.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[iv["CURRENT"===t.PARAMETERS[2].VALUE?iv.IS_CURRENT:iv.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:av.find(e=>e.type===i),value:o}}function mv(e,t){return{combinator:tv.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 mv(e,t);if("BINARY_EXPRESSION"===t.TYPE)return hv(e,t);if("METHOD_EXPRESSION"===t.TYPE)return pv(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let gv=class extends _g{ruleConfigChanged(e,t){this.config=Object.assign({combinators:tv,operators:av,fields:t.fields,maxNesting:t.maxNesting,partialRuleValidationWarning:t.partialRuleValidationWarning},(null==t?void 0:t.model)?{model:mv(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=Jg(e,dv);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,C.Cg)([l.observable],gv.prototype,"ruleConfig",void 0),gv=(0,C.Cg)([(0,l.customElement)({name:"foundation-rule-expression-builder",styles:ag,template:pg})],gv);const vv={TRIM:"TRIM",PLUS:"PLUS",MINUS:"MINUS",MULTIPLY:"MULTIPLY",DIVIDE:"DIVIDE",CONVERT_TO_DATE:"CONVERT_TO_DATE",CONVERT_TO_DATE_TIME:"CONVERT_TO_DATE_TIME"},fv=[{type:vv.PLUS,label:"Add (+)",applyTo:[...Ug],nbInputs:1,tooltip:"Returns the result of the field value mathematically added to the specified rule value. FIELD + VALUE"},{type:vv.MINUS,label:"Subtract (-)",applyTo:[...Ug],nbInputs:1,tooltip:"Returns the result of the field value mathematically subtracted by the specified rule value. FIELD - VALUE"},{type:vv.MULTIPLY,label:"Multiply (*)",applyTo:[...Ug],nbInputs:1,tooltip:"Returns the result of the field value mathematically multiplied by the specified rule value. FIELD * VALUE"},{type:vv.DIVIDE,label:"Divide (/)",applyTo:[...Ug],nbInputs:1,tooltip:"Returns the result of the field value mathematically divided by the specified rule value. FIELD / VALUE"},{type:vv.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:vv.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 bv(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=Xg(e),n=Yg(o),s=o.operator.type;switch(s){case vv.TRIM:case vv.CONVERT_TO_DATE:case vv.CONVERT_TO_DATE_TIME:return function(e,t){switch(t){case vv.TRIM:return Kg(e,ev.methodCall.TRIM,[]);case vv.CONVERT_TO_DATE:return Kg(e,ev.methodCall.LONG_TO_DATE,[]);case vv.CONVERT_TO_DATE_TIME:return Kg(e,ev.methodCall.LONG_TO_DATE_TIME,[])}}(o,s);case vv.PLUS:case vv.MINUS:case vv.DIVIDE:case vv.MULTIPLY:return Wg(o,s,n);default:throw new Error(`Unmatched case for operator name: ${s}`)}}function yv(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 Qg(function(e,t){const i=(()=>{const i=function(e,t){return"date"===t.field.type||t.field.type,e}(t.OPERATION,e);return fv.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 wv(e,t){return{combinator:Hm,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 wv(e,t);if("BINARY_EXPRESSION"===t.TYPE)return yv(e,t);if("METHOD_EXPRESSION"===t.TYPE)return function(e,t){const[i,o]=(()=>{switch(!0){case"TRIM"===t.METHOD:return[vv[vv.TRIM],void 0];case"LONG_TO_DATE"===t.METHOD:return[vv[vv.CONVERT_TO_DATE],void 0];case"LONG_TO_DATE_TIME"===t.METHOD:return[vv[vv.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:fv.find(e=>e.type===i),value:o}}(e,t);throw new Error("RuleExpression format not yet supported - unsupported TYPE")})}}let Cv=class extends _g{valueConfigChanged(e,t){const i={TYPE:"PREDICATE_EXPRESSION",OPERATION:"NULL",EXPRESSIONS:t.model?[t.model]:[]},o=wv(t.fields,i);this.config={combinators:[Hm],operators:fv,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:bv(e.children[0]);this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,cancelable:!0,composed:!0}))}};(0,C.Cg)([l.observable],Cv.prototype,"valueConfig",void 0),Cv=(0,C.Cg)([(0,l.customElement)({name:"foundation-value-expression-builder",styles:ag,template:pg})],Cv);const xv=l.html`
|
|
6285
6437
|
<template ${(0,l.ref)("notificationListener")}>
|
|
6286
6438
|
<slot></slot>
|
|
6287
6439
|
</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){Vs.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,Gv=10;function jv(e,t=Bv,i=Gv){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 Vv 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],Vv.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 Vv(this),this.basename=Zn.OB,this.routes=new Vv(this)}getNavItems(e=Bv){return jv(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`
|
|
6440
|
+
`,$v={mode:"open",delegatesFocus:!0};class Sv 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],Sv.prototype,"notificationListener",void 0),(0,C.Cg)([ui.dm],Sv.prototype,"connect",void 0),(0,C.Cg)([(0,l.attr)({attribute:"resource-name"})],Sv.prototype,"resourceName",void 0),(0,C.Cg)([(0,l.attr)({attribute:"close-timeout",converter:l.nullableNumberConverter})],Sv.prototype,"closeTimeout",void 0),(0,C.Cg)([l.observable],Sv.prototype,"toastButtons",void 0),(0,C.Cg)([(0,l.attr)({attribute:"toast-position"})],Sv.prototype,"toastPosition",void 0),(0,C.Cg)([hi.yW],Sv.prototype,"datasource",void 0);const Ev=Sv.compose({baseName:"notification-listener",template:xv,shadowOptions:$v}),Ov=(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 Tv(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 kv;!function(e){e.controlClicked="controlClicked",e.routeChanged="routeChanged"}(kv||(kv={}));class Dv{trackEvent(e,t){js.v.debug(`FoundationAnalytics.trackEvent ${e} : ${JSON.stringify(t)}`)}}const Iv=a.DI.createInterface(e=>e.singleton(Dv));var Rv=i(98647),Av=i(35044);const Lv=(0,it.createLogger)("foundation-router");var Nv=i(36132),Fv=i(80751),Mv=i(3479);const _v="$router",Hv=Object.freeze({getOrCreateFor:e=>{const t=e[_v];return void 0!==t?t:e[_v]=new Pv(e)},find:e=>Mv.Ix.find(e),from:e=>Mv.Ix.from(e)});class Pv extends Mv.LK{}const zv=/^([a-z][a-z0-9+\-.]*:)?\/\//i;function Uv(e){return zv.test(e)}function Bv(e){return e.config instanceof Rv.Y?e:Hv.find(e)}function Vv(e){return Bv(e).parent}function Gv(e){let t=Bv(e);for(;t&&t.level>0;)t=t.parent;return t}function jv(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 Yv(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 Wv(e){return e.replace(`/*${Fv.N}`,"")}function qv(){null===document.querySelector("foundation-router, fast-router")&&window.dispatchEvent(new PopStateEvent("popstate"))}const Kv=Object.freeze({path:Object.freeze({get current(){return Nv.qh.path.current},generateRoute:(e,t,...i)=>(0,C.sH)(void 0,[e,t,...i],void 0,function*(e,t,i={}){let o=Bv(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&&Uv(e)?location.href=e:(history.pushState({},document.title,e),qv(),t&&Kv.path.trigger(e))},replace:(e,t=!0)=>{e&&Uv(e)?location.href=e:(history.replaceState({},document.title,e),qv(),t&&Kv.path.trigger(e))},trigger:e=>{Nv.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=Bv(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 Kv.name.generateRoute(e,t,i);null!==n&&Kv.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 Kv.name.generateRoute(e,t,i);null!==n&&Kv.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 Kv.name.generateRoute(e,t,i);null!==o&&Kv.path.trigger(o)})})}),Xv=e=>!e.navId||"header"===e.navId||"side-nav"===e.navId,Jv=10;function Qv(e,t=Xv,i=Jv){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 Zv extends Fv.s{constructor(){super(...arguments),this.definitions=[]}map(...e){const t=this.owner,i=!t.parent,o=t.basename;i&&(""!==o&&"/"!==o)&&(Lv.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 Lv.debug(`'${e.path}' path okay as is`),e;const t="/"!==e.path.charAt(0)?"/":"",i=`${o}${t}${e.path}`;return Lv.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],Zv.prototype,"definitions",void 0);class ef extends Rv.Y{constructor(){super(),this.logger=Lv,this.loginPath="login",this.notFoundPath="not-found",this.notPermittedPath="not-permitted",this.routes=new Zv(this),this.basename=Zn.OB,this.routes=new Zv(this)}getNavItems(e=Xv){return Qv(this.routes.definitions,e)}configureAnalytics(){this.contributors.push({navigate:e=>(0,C.sH)(this,void 0,void 0,function*(){this.analytics.trackEvent(kv.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}.`),Kv.name.replace(e.router,n)}else this.user.trackPath(),Kv.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(),Kv.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 Kv.name.push(this.relativeTo,e.name,e.params,e.trigger));e.path&&Kv.path.push(this.generateNavigationPath(e.path,e.params),e.trigger)})}generateNavigationPath(e,t){const i=this.getNavigationPathBasename(),o=Av.C.build(t);let n=i&&!e.startsWith(i)?jv([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?Wv(o):this.basename?this.basename:""}construct(e){return this.container.get(e)}}(0,C.Cg)([a.Container],ef.prototype,"container",void 0),(0,C.Cg)([Iv],ef.prototype,"analytics",void 0),(0,C.Cg)([Yl.KJ],ef.prototype,"user",void 0),(0,C.Cg)([Ti.N],ef.prototype,"_session",void 0);const tf="navigate-to",of="generate-navigation-path";let nf=class extends(Hv.from(l.FASTElement)){constructor(){super(...arguments),this.logger=Lv,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[_v]}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(tf,this.onNavigateTo),this.addEventListener(of,this.onGenerateNavigationPath)}removeEventListeners(){this.removeEventListener(tf,this.onNavigateTo),this.removeEventListener(of,this.onGenerateNavigationPath)}};nf=(0,C.Cg)([(0,l.customElement)({name:"foundation-router"})],nf);const sf=e=>l.html`
|
|
6289
6441
|
|
|
6290
6442
|
<${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
6443
|
<div class=${e=>(0,x.x)("stepper-tab-menu",["stepper-tab-menu-hidden",e.hideTabs])} part="stepper-tab-menu">
|
|
@@ -6318,9 +6470,9 @@ class="margin"
|
|
|
6318
6470
|
`)}
|
|
6319
6471
|
</${e}-card>
|
|
6320
6472
|
`)}
|
|
6321
|
-
`,
|
|
6322
|
-
${e=>
|
|
6323
|
-
`,
|
|
6473
|
+
`,af=l.html`
|
|
6474
|
+
${e=>sf(T(e))}
|
|
6475
|
+
`,rf=l.css`
|
|
6324
6476
|
:host {
|
|
6325
6477
|
display: flex;
|
|
6326
6478
|
height: 100%;
|
|
@@ -6419,5 +6571,5 @@ class="margin"
|
|
|
6419
6571
|
max-height: 70px;
|
|
6420
6572
|
height: 70px;
|
|
6421
6573
|
}
|
|
6422
|
-
`;class
|
|
6423
|
-
//# sourceMappingURL=
|
|
6574
|
+
`;class lf 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"})],lf.prototype,"hideSubmitButton",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-step-number",mode:"boolean"})],lf.prototype,"hideStepNumber",void 0),(0,C.Cg)([(0,l.attr)({attribute:"allow-backward-jumps",mode:"boolean"})],lf.prototype,"allowBackwardJumps",void 0),(0,C.Cg)([(0,l.attr)({attribute:"allow-forward-jumps",mode:"boolean"})],lf.prototype,"allowForwardJumps",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-all-buttons",mode:"boolean"})],lf.prototype,"hideAllButtons",void 0),(0,C.Cg)([(0,l.attr)({attribute:"hide-tabs",mode:"boolean"})],lf.prototype,"hideTabs",void 0),(0,C.Cg)([(0,l.attr)({attribute:"indicator-only",mode:"boolean"})],lf.prototype,"indicatorOnly",void 0),(0,C.Cg)([l.attr],lf.prototype,"orientation",void 0),(0,C.Cg)([l.attr],lf.prototype,"activeid",void 0),(0,C.Cg)([l.observable],lf.prototype,"tabs",void 0),(0,C.Cg)([l.observable],lf.prototype,"tabpanels",void 0),(0,C.Cg)([l.observable],lf.prototype,"validation",void 0),(0,C.Cg)([l.observable],lf.prototype,"progressValue",void 0),(0,C.Cg)([l.observable],lf.prototype,"activeTabIndex",void 0),(0,C.Cg)([l.volatile],lf.prototype,"disabledPreviousStep",null),(0,C.Cg)([l.volatile],lf.prototype,"isLastStep",null),(0,C.Cg)([l.volatile],lf.prototype,"islastStepValid",null);const df=void 0,cf={},uf=lf.compose(Object.assign({baseName:"stepper",template:af,styles:rf,shadowOptions:df},cf)),hf=["text-field","text-area","combobox"],pf=["input","textarea","select",'[contenteditable="true"]','[contenteditable=""]','[role="textbox"]','[role="searchbox"]','[role="combobox"]'],mf=e=>hf.map(t=>`${e}-${t}`),gf={rapid:mf("rapid"),zero:mf("zero")};function vf(e,t=[]){const i=e.flatMap(e=>{var t;return null!==(t=gf[e])&&void 0!==t?t:[]}),o=t.filter(Boolean);return Array.from(new Set([...pf,...i,...o])).join(",")}const ff=()=>yd().register(Lm)},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}}}]);
|
|
6575
|
+
//# sourceMappingURL=367.efc8766139fbed5f21f442773433df38.js.map
|