@genesislcap/design-system-configurator 14.3.0 → 14.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/1.0.0.remoteEntry.js +1 -1
- package/dist/{189.189.dcebef398b62f69ca3df.js → 189.189.fd33c3095a8d7ef0f408.js} +2 -2
- package/dist/600.600.e967932d02525f2ec825.js +2 -0
- package/dist/600.9c36d30717df2aa8f512f6d5b77ec882a5d5660f26ceeda82806a2b705326340.js.map +1 -0
- package/dist/{695.695.001dc85654befa2281df.js → 695.695.8ce5db9c9286da851c17.js} +1 -1
- package/dist/{755.755.f50a5f48778415fe974a.js → 755.755.67c464998c1de0fe658a.js} +1 -1
- package/dist/{842.842.8095a282a60fe0167e07.js → 842.842.3317acab8730ecfeeaad.js} +1 -1
- package/dist/{88.88.e483db66dc94bd8c21c3.js → 88.88.deb77cf4948c9a67fe74.js} +3 -3
- package/dist/{905.905.1ef3ae349a3f10df99db.js → 905.905.3812026c3ca3c7ea2dd5.js} +2 -2
- package/dist/dashboard.json +1 -1
- package/dist/{designSystemConfigurator.a48529778b3e027621b01f4f86ce84109fa1c651f08c02490a1087cbcd47a8a8.js.map → designSystemConfigurator.8ae691ebed8949ad2eecfaf7263b9eb522d2d222ddac8fe10d5f7963a4bf14d5.js.map} +1 -1
- package/dist/index.html +1 -1
- package/dist/info.html +4 -4
- package/dist/{main.4f95de849423391795fd3fdb4cec7e19baa1db31ea2893086ba8c8861b6e9931.js.map → main.8a4ab8f61ea3fd34b5c7f12eb21042544a0b11b63a99058b37ccce38baf77146.js.map} +1 -1
- package/dist/main.98d0aab7006d41aaca5d.js +2 -0
- package/dist/remoteEntry.js +2 -2
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +6 -6
- package/dist/600.600.20102666bb0ae2f5ede4.js +0 -2
- package/dist/600.bb626203a0672103000a907dd03e130a6d302f7dc649331c2579b503127e1fc4.js.map +0 -1
- package/dist/main.9643748eae358c702376.js +0 -2
- /package/dist/{905.905.1ef3ae349a3f10df99db.js.LICENSE.txt → 905.905.3812026c3ca3c7ea2dd5.js.LICENSE.txt} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[88],{7530:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,o=36e5,a="millisecond",i="second",n="minute",r="hour",s="day",l="week",d="month",c="quarter",u="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],o=e%100;return"["+e+(t[(o-20)%10]||t[o]||t[0])+"]"}},g=function(e,t,o){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(o)+e},b={s:g,z:function(e){var t=-e.utcOffset(),o=Math.abs(t),a=Math.floor(o/60),i=o%60;return(t<=0?"+":"-")+g(a,2,"0")+":"+g(i,2,"0")},m:function e(t,o){if(t.date()<o.date())return-e(o,t);var a=12*(o.year()-t.year())+(o.month()-t.month()),i=t.clone().add(a,d),n=o-i<0,r=t.clone().add(a+(n?-1:1),d);return+(-(a+(o-i)/(n?i-r:r-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:u,w:l,d:s,D:p,h:r,m:n,s:i,ms:a,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=v;var x=function(e){return e instanceof D},F=function e(t,o,a){var i;if(!t)return y;if("string"==typeof t){var n=t.toLowerCase();w[n]&&(i=n),o&&(w[n]=o,i=n);var r=t.split("-");if(!i&&r.length>1)return e(r[0])}else{var s=t.name;w[s]=t,i=s}return!a&&i&&(y=i),i||!a&&y},$=function(e,t){if(x(e))return e.clone();var o="object"==typeof t?t:{};return o.date=e,o.args=arguments,new D(o)},S=b;S.l=F,S.i=x,S.w=function(e,t){return $(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function v(e){this.$L=F(e.locale,null,!0),this.parse(e)}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,o=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(m);if(a){var i=a[2]-1||0,n=(a[7]||"0").substring(0,3);return o?new Date(Date.UTC(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)):new Date(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var o=$(e);return this.startOf(t)<=o&&o<=this.endOf(t)},g.isAfter=function(e,t){return $(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<$(e)},g.$g=function(e,t,o){return S.u(e)?this[t]:this.set(o,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var o=this,a=!!S.u(t)||t,c=S.p(e),h=function(e,t){var i=S.w(o.$u?Date.UTC(o.$y,t,e):new Date(o.$y,t,e),o);return a?i:i.endOf(s)},m=function(e,t){return S.w(o.toDate()[e].apply(o.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),o)},f=this.$W,v=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(c){case u:return a?h(1,0):h(31,11);case d:return a?h(1,v):h(0,v+1);case l:var y=this.$locale().weekStart||0,w=(f<y?f+7:f)-y;return h(a?g-w:g+(6-w),v);case s:case p:return m(b+"Hours",0);case r:return m(b+"Minutes",1);case n:return m(b+"Seconds",2);case i:return m(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var o,l=S.p(e),c="set"+(this.$u?"UTC":""),h=(o={},o[s]=c+"Date",o[p]=c+"Date",o[d]=c+"Month",o[u]=c+"FullYear",o[r]=c+"Hours",o[n]=c+"Minutes",o[i]=c+"Seconds",o[a]=c+"Milliseconds",o)[l],m=l===s?this.$D+(t-this.$W):t;if(l===d||l===u){var f=this.clone().set(p,1);f.$d[h](m),f.init(),this.$d=f.set(p,Math.min(this.$D,f.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[S.p(e)]()},g.add=function(a,c){var p,h=this;a=Number(a);var m=S.p(c),f=function(e){var t=$(h);return S.w(t.date(t.date()+Math.round(e*a)),h)};if(m===d)return this.set(d,this.$M+a);if(m===u)return this.set(u,this.$y+a);if(m===s)return f(1);if(m===l)return f(7);var v=(p={},p[n]=t,p[r]=o,p[i]=e,p)[m]||1,g=this.$d.getTime()+a*v;return S.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,o=this.$locale();if(!this.isValid())return o.invalidDate||h;var a=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),n=this.$H,r=this.$m,s=this.$M,l=o.weekdays,d=o.months,c=function(e,o,i,n){return e&&(e[o]||e(t,a))||i[o].slice(0,n)},u=function(e){return S.s(n%12||12,e,"0")},p=o.meridiem||function(e,t,o){var a=e<12?"AM":"PM";return o?a.toLowerCase():a},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:S.s(s+1,2,"0"),MMM:c(o.monthsShort,s,d,3),MMMM:c(d,s),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:c(o.weekdaysMin,this.$W,l,2),ddd:c(o.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(n),HH:S.s(n,2,"0"),h:u(1),hh:u(2),a:p(n,r,!0),A:p(n,r,!1),m:String(r),mm:S.s(r,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:i};return a.replace(f,(function(e,t){return t||m[e]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(a,p,h){var m,f=S.p(p),v=$(a),g=(v.utcOffset()-this.utcOffset())*t,b=this-v,y=S.m(this,v);return y=(m={},m[u]=y/12,m[d]=y,m[c]=y/3,m[l]=(b-g)/6048e5,m[s]=(b-g)/864e5,m[r]=b/o,m[n]=b/t,m[i]=b/e,m)[f]||b,h?y:S.a(y)},g.daysInMonth=function(){return this.endOf(d).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var o=this.clone(),a=F(e,t,!0);return a&&(o.$L=a),o},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),C=D.prototype;return $.prototype=C,[["$ms",a],["$s",i],["$m",n],["$H",r],["$W",s],["$M",d],["$y",u],["$D",p]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),$.extend=function(e,t){return e.$i||(e(t,D,$),e.$i=!0),$},$.locale=F,$.isDayjs=x,$.unix=function(e){return $(1e3*e)},$.en=w[y],$.Ls=w,$.p={},$}()},8113:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}()},5088:(e,t,o)=>{"use strict";o.r(t),o.d(t,{ActionsMenu:()=>p,Anchor:()=>g,Badge:()=>$,Banner:()=>L,BaseDatasource:()=>Vs,Breadcrumb:()=>N,BreadcrumbItem:()=>B,Button:()=>Y,CSSVarsTokenMapper:()=>Is,Card:()=>J,Checkbox:()=>ie,Combobox:()=>ce,ConnectionIndicator:()=>be,DEFUALT_FILTER_BAR_COLUMNS:()=>xa,DataGrid:()=>Fe,DataGridCell:()=>_e,DataGridDatasource:()=>Us,DataGridRow:()=>Re,DatePicker:()=>We,Dialog:()=>zt,DialogElement:()=>jt,Disclosure:()=>Wt,Divider:()=>Qt,DropdownMenu:()=>co,ErrorBanner:()=>vo,ErrorBoundary:()=>Co,ErrorBoundaryEvent:()=>bo,ErrorDialog:()=>Ro,FaPrefixFromStyle:()=>mi,FileUpload:()=>Zo,Filter:()=>pa,FilterBar:()=>Fa,FilterEvents:()=>ua,FlexLayout:()=>La,FlexMediaQueriesEnum:()=>Sa,Flipper:()=>Na,Flyout:()=>Ga,FoundationDesignSystemProvider:()=>Nt,FoundationRouter:()=>Js,GridLayout:()=>Ja,GridLayoutItem:()=>ai,GridMediaQueriesEnum:()=>Ua,Icon:()=>fi,ListboxOption:()=>yi,Menu:()=>Di,MenuItem:()=>Ti,Modal:()=>Hi,Multiselect:()=>qi,MultiselectDatasource:()=>qs,NumberField:()=>Ji,OptionsDatasource:()=>Ws,Popper:()=>nn,Progress:()=>un,ProgressRing:()=>gn,Radio:()=>$n,RadioGroup:()=>On,SegmentedControl:()=>Mn,SegmentedItem:()=>Gn,Select:()=>Wn,Skeleton:()=>Qn,Slider:()=>sr,Snackbar:()=>mr,Switch:()=>br,Tab:()=>Sr,TabPanel:()=>Lr,Tabs:()=>Er,TextArea:()=>jr,TextField:()=>qr,Toast:()=>os,Toolbar:()=>rs,Tooltip:()=>ps,TreeItem:()=>bs,TreeView:()=>Ss,UrlInput:()=>Rs,accentFillActive:()=>m.accentFillActive,accentFillActiveDelta:()=>m.accentFillActiveDelta,accentFillFocus:()=>m.accentFillFocus,accentFillFocusDelta:()=>m.accentFillFocusDelta,accentFillHover:()=>m.accentFillHover,accentFillHoverDelta:()=>m.accentFillHoverDelta,accentFillRest:()=>m.accentFillRest,accentFillRestDelta:()=>m.accentFillRestDelta,accentForegroundActive:()=>m.accentForegroundActive,accentForegroundActiveDelta:()=>m.accentForegroundActiveDelta,accentForegroundFocus:()=>m.accentForegroundFocus,accentForegroundFocusDelta:()=>m.accentForegroundFocusDelta,accentForegroundHover:()=>m.accentForegroundHover,accentForegroundHoverDelta:()=>m.accentForegroundHoverDelta,accentForegroundRest:()=>m.accentForegroundRest,accentForegroundRestDelta:()=>m.accentForegroundRestDelta,accentPalette:()=>m.accentPalette,accentPaletteValue:()=>$t,actionsMenuBaseStyles:()=>d,baseComponents:()=>Ns,baseHeightMultiplier:()=>m.baseHeightMultiplier,baseLayerLuminance:()=>m.baseLayerLuminance,baseLayerLuminanceValue:()=>Dt,black:()=>Ze,bodyFont:()=>m.bodyFont,closeIcon:()=>Pt,configureDesignSystem:()=>Ft,controlCornerRadius:()=>m.controlCornerRadius,controlCornerRadiusValue:()=>_t,createDesignSystemProxy:()=>Ms,defaultAnchorConfig:()=>y,defaultBadgeConfig:()=>D,defaultBreadcrumbConfig:()=>E,defaultBreadcrumbItemConfig:()=>j,defaultButtonConfig:()=>q,defaultCardConfig:()=>ee,defaultCheckboxConfig:()=>re,defaultComboboxConfig:()=>pe,defaultDataGridCellConfig:()=>Oe,defaultDataGridConfig:()=>Se,defaultDataGridRowConfig:()=>Ne,defaultDatePickerConfig:()=>Ye,defaultDialogConfig:()=>Gt,defaultDisclosureConfig:()=>Xt,defaultDividerConfig:()=>to,defaultFileUploadConfig:()=>Qo,defaultFillColor:()=>Qe,defaultFlexLayoutConfig:()=>Oa,defaultFlipperConfig:()=>Ea,defaultFlyoutConfig:()=>za,defaultGridLayoutConfig:()=>Ka,defaultGridLayoutItemConfig:()=>oi,defaultIconConfig:()=>hi,defaultListboxOptionConfig:()=>xi,defaultMenuConfig:()=>_i,defaultMenuItemConfig:()=>Ai,defaultModalConfig:()=>Pi,defaultMultiselectConfig:()=>Wi,defaultNeutralForegroundContrast:()=>pt,defaultNumberFieldConfig:()=>en,defaultProgressConfig:()=>hn,defaultProgressRingConfig:()=>yn,defaultRadioConfig:()=>Dn,defaultRadioGroupConfig:()=>Tn,defaultSegmentedControlConfig:()=>In,defaultSegmentedItemConfig:()=>zn,defaultSelectConfig:()=>Xn,defaultSkeletonConfig:()=>tr,defaultSliderConfig:()=>dr,defaultSwitchConfig:()=>wr,defaultTabConfig:()=>Cr,defaultTabPanelConfig:()=>Rr,defaultTabsConfig:()=>Pr,defaultTextAreaConfig:()=>Vr,defaultTextFieldConfig:()=>Kr,defaultToastConfig:()=>ts,defaultToolbarConfig:()=>ls,defaultTooltipConfig:()=>ms,defaultTreeItemConfig:()=>ws,defaultTreeViewConfig:()=>Cs,defaultUrlInputConfig:()=>Ts,defineFactory:()=>Xs,density:()=>m.density,designToken:()=>vt,designUnit:()=>m.designUnit,designUnitValue:()=>kt,direction:()=>m.direction,directionValue:()=>Ct,disabledOpacity:()=>m.disabledOpacity,dropdownMenuBaseStyles:()=>io,errorDialogTemplate:()=>Lo,extractMenuItems:()=>ro,fillColor:()=>m.fillColor,flyoutAnimationTime:()=>Pa,focusStrokeInner:()=>m.focusStrokeInner,focusStrokeOuter:()=>m.focusStrokeOuter,focusStrokeWidth:()=>m.focusStrokeWidth,foregroundOnAccentActive:()=>m.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>m.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>m.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>m.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>m.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>m.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>m.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>m.foregroundOnAccentRestLarge,foundationActionsMenu:()=>h,foundationActionsMenuStyles:()=>c,foundationActionsMenuTemplate:()=>u,foundationAnchor:()=>w,foundationAnchorShadowOptions:()=>b,foundationAnchorStyles:()=>f,foundationAnchorTemplate:()=>v,foundationBadge:()=>C,foundationBadgeShadowOptions:()=>S,foundationBadgeStyles:()=>x,foundationBadgeTemplate:()=>F,foundationBanner:()=>T,foundationBannerShadowOptions:()=>O,foundationBannerStyles:()=>_,foundationBannerTemplate:()=>k,foundationBreadcrumb:()=>I,foundationBreadcrumbItem:()=>z,foundationBreadcrumbItemShadowOptions:()=>G,foundationBreadcrumbItemStyles:()=>P,foundationBreadcrumbItemTemplate:()=>H,foundationBreadcrumbShadowOptions:()=>M,foundationBreadcrumbStyles:()=>R,foundationBreadcrumbTemplate:()=>A,foundationButton:()=>X,foundationButtonShadowOptions:()=>W,foundationButtonStyles:()=>V,foundationButtonTemplate:()=>U,foundationCard:()=>te,foundationCardShadowOptions:()=>Q,foundationCardStyles:()=>K,foundationCardTemplate:()=>Z,foundationCheckbox:()=>se,foundationCheckboxShadowOptions:()=>ne,foundationCheckboxStyles:()=>oe,foundationCheckboxTemplate:()=>ae,foundationCombobox:()=>he,foundationComboboxShadowOptions:()=>ue,foundationComboboxStyles:()=>le,foundationComboboxTemplate:()=>de,foundationConnectionIndicator:()=>ye,foundationConnectionIndicatorStyles:()=>ve,foundationConnectionIndicatorTemplate:()=>ge,foundationDataGrid:()=>De,foundationDataGridCell:()=>Le,foundationDataGridCellShadowOptions:()=>ke,foundationDataGridCellStyles:()=>Ce,foundationDataGridCellTemplate:()=>s.dataGridCellTemplate,foundationDataGridRow:()=>Me,foundationDataGridRowShadowOptions:()=>Ae,foundationDataGridRowStyles:()=>Te,foundationDataGridRowTemplate:()=>s.dataGridRowTemplate,foundationDataGridShadowOptions:()=>$e,foundationDataGridStyles:()=>we,foundationDataGridTemplate:()=>xe,foundationDatePicker:()=>qe,foundationDatePickerShadowOptions:()=>Ue,foundationDatePickerStyles:()=>ze,foundationDatePickerTemplate:()=>Ve,foundationDesignSystemProvider:()=>Mt,foundationDialog:()=>Vt,foundationDialogShadowOptions:()=>Bt,foundationDialogStyles:()=>It,foundationDialogTemplate:()=>Ht,foundationDisclosure:()=>Kt,foundationDisclosureShadowOptions:()=>qt,foundationDisclosureStyles:()=>Ut,foundationDisclosureTemplate:()=>Yt,foundationDivider:()=>oo,foundationDividerShadowOptions:()=>eo,foundationDividerStyles:()=>Zt,foundationDividerTemplate:()=>Jt,foundationDropdownMenu:()=>uo,foundationDropdownMenuStyles:()=>no,foundationDropdownMenuTemplate:()=>lo,foundationErrorBanner:()=>go,foundationErrorBannerShadowOptions:()=>fo,foundationErrorBannerTemplate:()=>mo,foundationErrorBoundary:()=>_o,foundationErrorBoundaryShadowOptions:()=>Do,foundationErrorBoundaryTemplate:()=>So,foundationErrorDialog:()=>Ao,foundationErrorDialogShadowOptions:()=>To,foundationErrorDialogStyles:()=>ko,foundationFileUpload:()=>ea,foundationFileUploadShadowOptions:()=>Jo,foundationFileUploadStyles:()=>Vo,foundationFileUploadTemplate:()=>Yo,foundationFilter:()=>ha,foundationFilterBar:()=>$a,foundationFilterBarStyles:()=>fa,foundationFilterBarTemplate:()=>wa,foundationFilterStyles:()=>ta,foundationFilterTemplate:()=>ca,foundationFlexLayout:()=>Ta,foundationFlexLayoutShadowOptions:()=>ka,foundationFlexLayoutStyles:()=>Ca,foundationFlexLayoutTemplate:()=>_a,foundationFlipper:()=>Ia,foundationFlipperShadowOptions:()=>Ma,foundationFlipperStyles:()=>Ra,foundationFlipperTemplate:()=>Aa,foundationFlyout:()=>Va,foundationFlyoutShadowOptions:()=>ja,foundationFlyoutStyles:()=>Ha,foundationFlyoutTemplate:()=>Ba,foundationGridLayout:()=>Qa,foundationGridLayoutItem:()=>ii,foundationGridLayoutItemShadowOptions:()=>ti,foundationGridLayoutItemTemplate:()=>ei,foundationGridLayoutShadowOptions:()=>Xa,foundationGridLayoutStyles:()=>Wa,foundationGridLayoutTemplate:()=>qa,foundationIcon:()=>vi,foundationIconShadowOptions:()=>pi,foundationIconStyles:()=>ci,foundationIconTemplate:()=>ui,foundationListboxOption:()=>Fi,foundationListboxOptionShadowOptions:()=>wi,foundationListboxOptionStyles:()=>gi,foundationListboxOptionTemplate:()=>bi,foundationMenu:()=>ki,foundationMenuItem:()=>Ni,foundationMenuItemShadowOptions:()=>Ri,foundationMenuItemStyles:()=>Oi,foundationMenuItemTemplate:()=>Li,foundationMenuShadowOptions:()=>Ci,foundationMenuStyles:()=>$i,foundationMenuTemplate:()=>Si,foundationModal:()=>Bi,foundationModalShadowOptions:()=>Ii,foundationModalStyles:()=>Mi,foundationModalTemplate:()=>Ei,foundationMultiselect:()=>Xi,foundationMultiselectShadowOptions:()=>Yi,foundationNumberField:()=>tn,foundationNumberFieldShadowOptions:()=>Qi,foundationNumberFieldStyles:()=>Ki,foundationNumberFieldTemplate:()=>Zi,foundationPopper:()=>ln,foundationProgress:()=>mn,foundationProgressRing:()=>wn,foundationProgressRingShadowOptions:()=>bn,foundationProgressRingStyles:()=>fn,foundationProgressRingTemplate:()=>vn,foundationProgressShadowOptions:()=>pn,foundationProgressStyles:()=>dn,foundationProgressTemplate:()=>cn,foundationRadio:()=>Cn,foundationRadioGroup:()=>Rn,foundationRadioGroupShadowOptions:()=>Ln,foundationRadioGroupStyles:()=>_n,foundationRadioGroupTemplate:()=>kn,foundationRadioShadowOptions:()=>Sn,foundationRadioStyles:()=>xn,foundationRadioTemplate:()=>Fn,foundationSegmentedControl:()=>Pn,foundationSegmentedControlShadowOptions:()=>En,foundationSegmentedControlStyles:()=>An,foundationSegmentedControlTemplate:()=>Nn,foundationSegmentedItem:()=>Vn,foundationSegmentedItemShadowOptions:()=>jn,foundationSegmentedItemStyles:()=>Hn,foundationSegmentedItemTemplate:()=>Bn,foundationSelect:()=>Kn,foundationSelectShadowOptions:()=>qn,foundationSelectStyles:()=>Un,foundationSelectTemplate:()=>Yn,foundationSkeleton:()=>or,foundationSkeletonShadowOptions:()=>er,foundationSkeletonStyles:()=>Zn,foundationSkeletonTemplate:()=>Jn,foundationSlider:()=>cr,foundationSliderShadowOptions:()=>lr,foundationSliderStyles:()=>ar,foundationSliderTemplate:()=>rr,foundationSnackbar:()=>fr,foundationSnackbarShadowOptions:()=>hr,foundationSnackbarStyles:()=>ur,foundationSnackbarTemplate:()=>pr,foundationSwitch:()=>xr,foundationSwitchShadowOptions:()=>yr,foundationSwitchStyles:()=>vr,foundationSwitchTemplate:()=>gr,foundationTab:()=>_r,foundationTabPanel:()=>Ar,foundationTabPanelShadowOptions:()=>Tr,foundationTabPanelStyles:()=>kr,foundationTabPanelTemplate:()=>Or,foundationTabShadowOptions:()=>Dr,foundationTabStyles:()=>Fr,foundationTabTemplate:()=>$r,foundationTabs:()=>Hr,foundationTabsShadowOptions:()=>Ir,foundationTabsStyles:()=>Nr,foundationTabsTemplate:()=>Mr,foundationTextArea:()=>Ur,foundationTextAreaShadowOptions:()=>zr,foundationTextAreaStyles:()=>Br,foundationTextAreaTemplate:()=>Gr,foundationTextField:()=>Zr,foundationTextFieldShadowOptions:()=>Xr,foundationTextFieldStyles:()=>Yr,foundationTextFieldTemplate:()=>Wr,foundationToast:()=>as,foundationToastShadowOptions:()=>es,foundationToastStyles:()=>Jr,foundationToastTemplate:()=>Qr,foundationToolbar:()=>ds,foundationToolbarShadowOptions:()=>ss,foundationToolbarStyles:()=>is,foundationToolbarTemplate:()=>ns,foundationTooltip:()=>fs,foundationTooltipShadowOptions:()=>hs,foundationTooltipStyles:()=>cs,foundationTooltipTemplate:()=>us,foundationTreeItem:()=>xs,foundationTreeItemShadowOptions:()=>ys,foundationTreeItemStyles:()=>vs,foundationTreeItemTemplate:()=>gs,foundationTreeView:()=>_s,foundationTreeViewShadowOptions:()=>Ds,foundationTreeViewStyles:()=>Fs,foundationTreeViewTemplate:()=>$s,foundationUrlInput:()=>As,foundationUrlInputShadowOptions:()=>Ls,foundationUrlInputStyles:()=>ks,fuiAccentPalette:()=>lt,fuiAccentSwatch:()=>st,fuiCardFillColor:()=>ut,fuiCardForegroundColor:()=>mt,fuiDefaultCardFillColor:()=>tt,fuiDefaultCardPalette:()=>ot,fuiFillColor:()=>ct,fuiNeutralPalette:()=>nt,fuiNeutralSwatch:()=>it,getDefaultConfig:()=>wt,getDropdownMenuTemplate:()=>so,getErrorDialogTemplate:()=>Oo,getExports:()=>xt,getFontawesomeIconsCss:()=>di,getPrefixedFileUpload:()=>Uo,getPrefixedMultiselect:()=>Vi,jsonConverter:()=>an,mapType:()=>va,maxheight:()=>ji,mixinFoundationFontFamily:()=>Lt,multiselectStyles:()=>zi,multiselectTemplate:()=>Ui,neutralFillActive:()=>m.neutralFillActive,neutralFillActiveDelta:()=>m.neutralFillActiveDelta,neutralFillFocus:()=>m.neutralFillFocus,neutralFillFocusDelta:()=>m.neutralFillFocusDelta,neutralFillHover:()=>m.neutralFillHover,neutralFillHoverDelta:()=>m.neutralFillHoverDelta,neutralFillInputActive:()=>m.neutralFillInputActive,neutralFillInputActiveDelta:()=>m.neutralFillInputActiveDelta,neutralFillInputFocus:()=>m.neutralFillInputFocus,neutralFillInputFocusDelta:()=>m.neutralFillInputFocusDelta,neutralFillInputHover:()=>m.neutralFillInputHover,neutralFillInputHoverDelta:()=>m.neutralFillInputHoverDelta,neutralFillInputRest:()=>m.neutralFillInputRest,neutralFillInputRestDelta:()=>m.neutralFillInputRestDelta,neutralFillLayerRest:()=>m.neutralFillLayerRest,neutralFillLayerRestDelta:()=>m.neutralFillLayerRestDelta,neutralFillRest:()=>m.neutralFillRest,neutralFillRestDelta:()=>m.neutralFillRestDelta,neutralFillStealthActive:()=>m.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>m.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>m.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>m.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>m.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>m.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>m.neutralFillStealthRest,neutralFillStealthRestDelta:()=>m.neutralFillStealthRestDelta,neutralFillStrongActive:()=>m.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>m.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>m.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>m.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>m.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>m.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>m.neutralFillStrongRest,neutralFillStrongRestDelta:()=>m.neutralFillStrongRestDelta,neutralForeground:()=>ht,neutralForegroundHint:()=>m.neutralForegroundHint,neutralForegroundRest:()=>m.neutralForegroundRest,neutralLayer1:()=>m.neutralLayer1,neutralLayer2:()=>m.neutralLayer2,neutralLayer3:()=>m.neutralLayer3,neutralLayer4:()=>m.neutralLayer4,neutralLayerCardContainer:()=>m.neutralLayerCardContainer,neutralLayerFloating:()=>m.neutralLayerFloating,neutralPalette:()=>m.neutralPalette,neutralPaletteValue:()=>St,neutralStrokeActive:()=>m.neutralStrokeActive,neutralStrokeActiveDelta:()=>m.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>m.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>m.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>m.neutralStrokeFocus,neutralStrokeFocusDelta:()=>m.neutralStrokeFocusDelta,neutralStrokeHover:()=>m.neutralStrokeHover,neutralStrokeHoverDelta:()=>m.neutralStrokeHoverDelta,neutralStrokeRest:()=>m.neutralStrokeRest,neutralStrokeRestDelta:()=>m.neutralStrokeRestDelta,paletteFromHex:()=>bt,provideDesignSystem:()=>Es,provideTokens:()=>ft,registerFoundationDesignSystem:()=>Qs,strokeWidth:()=>m.strokeWidth,swatchConverter:()=>gt,tagFor:()=>Ks,typeRampBaseFontSize:()=>m.typeRampBaseFontSize,typeRampBaseLineHeight:()=>m.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>m.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>m.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>m.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>m.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>m.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>m.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>m.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>m.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>m.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>m.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>m.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>m.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>m.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>m.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>m.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>m.typeRampPlus6LineHeight,urlinputTemplate:()=>Os,white:()=>Ke});var a={};o.r(a),o.d(a,{accentFillActive:()=>m.accentFillActive,accentFillActiveDelta:()=>m.accentFillActiveDelta,accentFillFocus:()=>m.accentFillFocus,accentFillFocusDelta:()=>m.accentFillFocusDelta,accentFillHover:()=>m.accentFillHover,accentFillHoverDelta:()=>m.accentFillHoverDelta,accentFillRest:()=>m.accentFillRest,accentFillRestDelta:()=>m.accentFillRestDelta,accentForegroundActive:()=>m.accentForegroundActive,accentForegroundActiveDelta:()=>m.accentForegroundActiveDelta,accentForegroundFocus:()=>m.accentForegroundFocus,accentForegroundFocusDelta:()=>m.accentForegroundFocusDelta,accentForegroundHover:()=>m.accentForegroundHover,accentForegroundHoverDelta:()=>m.accentForegroundHoverDelta,accentForegroundRest:()=>m.accentForegroundRest,accentForegroundRestDelta:()=>m.accentForegroundRestDelta,accentPalette:()=>m.accentPalette,baseHeightMultiplier:()=>m.baseHeightMultiplier,baseLayerLuminance:()=>m.baseLayerLuminance,bodyFont:()=>m.bodyFont,controlCornerRadius:()=>m.controlCornerRadius,defaultNeutralForegroundContrast:()=>pt,density:()=>m.density,designUnit:()=>m.designUnit,direction:()=>m.direction,disabledOpacity:()=>m.disabledOpacity,fillColor:()=>m.fillColor,focusStrokeInner:()=>m.focusStrokeInner,focusStrokeOuter:()=>m.focusStrokeOuter,focusStrokeWidth:()=>m.focusStrokeWidth,foregroundOnAccentActive:()=>m.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>m.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>m.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>m.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>m.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>m.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>m.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>m.foregroundOnAccentRestLarge,fuiCardFillColor:()=>ut,fuiCardForegroundColor:()=>mt,fuiFillColor:()=>ct,neutralFillActive:()=>m.neutralFillActive,neutralFillActiveDelta:()=>m.neutralFillActiveDelta,neutralFillFocus:()=>m.neutralFillFocus,neutralFillFocusDelta:()=>m.neutralFillFocusDelta,neutralFillHover:()=>m.neutralFillHover,neutralFillHoverDelta:()=>m.neutralFillHoverDelta,neutralFillInputActive:()=>m.neutralFillInputActive,neutralFillInputActiveDelta:()=>m.neutralFillInputActiveDelta,neutralFillInputFocus:()=>m.neutralFillInputFocus,neutralFillInputFocusDelta:()=>m.neutralFillInputFocusDelta,neutralFillInputHover:()=>m.neutralFillInputHover,neutralFillInputHoverDelta:()=>m.neutralFillInputHoverDelta,neutralFillInputRest:()=>m.neutralFillInputRest,neutralFillInputRestDelta:()=>m.neutralFillInputRestDelta,neutralFillLayerRest:()=>m.neutralFillLayerRest,neutralFillLayerRestDelta:()=>m.neutralFillLayerRestDelta,neutralFillRest:()=>m.neutralFillRest,neutralFillRestDelta:()=>m.neutralFillRestDelta,neutralFillStealthActive:()=>m.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>m.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>m.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>m.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>m.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>m.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>m.neutralFillStealthRest,neutralFillStealthRestDelta:()=>m.neutralFillStealthRestDelta,neutralFillStrongActive:()=>m.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>m.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>m.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>m.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>m.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>m.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>m.neutralFillStrongRest,neutralFillStrongRestDelta:()=>m.neutralFillStrongRestDelta,neutralForeground:()=>ht,neutralForegroundHint:()=>m.neutralForegroundHint,neutralForegroundRest:()=>m.neutralForegroundRest,neutralLayer1:()=>m.neutralLayer1,neutralLayer2:()=>m.neutralLayer2,neutralLayer3:()=>m.neutralLayer3,neutralLayer4:()=>m.neutralLayer4,neutralLayerCardContainer:()=>m.neutralLayerCardContainer,neutralLayerFloating:()=>m.neutralLayerFloating,neutralPalette:()=>m.neutralPalette,neutralStrokeActive:()=>m.neutralStrokeActive,neutralStrokeActiveDelta:()=>m.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>m.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>m.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>m.neutralStrokeFocus,neutralStrokeFocusDelta:()=>m.neutralStrokeFocusDelta,neutralStrokeHover:()=>m.neutralStrokeHover,neutralStrokeHoverDelta:()=>m.neutralStrokeHoverDelta,neutralStrokeRest:()=>m.neutralStrokeRest,neutralStrokeRestDelta:()=>m.neutralStrokeRestDelta,strokeWidth:()=>m.strokeWidth,typeRampBaseFontSize:()=>m.typeRampBaseFontSize,typeRampBaseLineHeight:()=>m.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>m.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>m.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>m.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>m.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>m.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>m.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>m.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>m.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>m.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>m.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>m.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>m.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>m.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>m.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>m.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>m.typeRampPlus6LineHeight});var i={};o.r(i),o.d(i,{accentPaletteValue:()=>$t,baseLayerLuminanceValue:()=>Dt,controlCornerRadiusValue:()=>_t,designUnitValue:()=>kt,directionValue:()=>Ct,neutralPaletteValue:()=>St});var n=o(8092),r=o(3147),s=o(5951),l=o(7675);const d=(e,t)=>r.css`
|
|
1
|
+
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[88],{4341:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,o=36e5,a="millisecond",i="second",n="minute",r="hour",s="day",l="week",d="month",c="quarter",u="year",p="date",h="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,v={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],o=e%100;return"["+e+(t[(o-20)%10]||t[o]||t[0])+"]"}},g=function(e,t,o){var a=String(e);return!a||a.length>=t?e:""+Array(t+1-a.length).join(o)+e},b={s:g,z:function(e){var t=-e.utcOffset(),o=Math.abs(t),a=Math.floor(o/60),i=o%60;return(t<=0?"+":"-")+g(a,2,"0")+":"+g(i,2,"0")},m:function e(t,o){if(t.date()<o.date())return-e(o,t);var a=12*(o.year()-t.year())+(o.month()-t.month()),i=t.clone().add(a,d),n=o-i<0,r=t.clone().add(a+(n?-1:1),d);return+(-(a+(o-i)/(n?i-r:r-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:d,y:u,w:l,d:s,D:p,h:r,m:n,s:i,ms:a,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},y="en",w={};w[y]=v;var x=function(e){return e instanceof D},F=function e(t,o,a){var i;if(!t)return y;if("string"==typeof t){var n=t.toLowerCase();w[n]&&(i=n),o&&(w[n]=o,i=n);var r=t.split("-");if(!i&&r.length>1)return e(r[0])}else{var s=t.name;w[s]=t,i=s}return!a&&i&&(y=i),i||!a&&y},$=function(e,t){if(x(e))return e.clone();var o="object"==typeof t?t:{};return o.date=e,o.args=arguments,new D(o)},S=b;S.l=F,S.i=x,S.w=function(e,t){return $(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var D=function(){function v(e){this.$L=F(e.locale,null,!0),this.parse(e)}var g=v.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,o=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var a=t.match(m);if(a){var i=a[2]-1||0,n=(a[7]||"0").substring(0,3);return o?new Date(Date.UTC(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)):new Date(a[1],i,a[3]||1,a[4]||0,a[5]||0,a[6]||0,n)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var o=$(e);return this.startOf(t)<=o&&o<=this.endOf(t)},g.isAfter=function(e,t){return $(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<$(e)},g.$g=function(e,t,o){return S.u(e)?this[t]:this.set(o,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var o=this,a=!!S.u(t)||t,c=S.p(e),h=function(e,t){var i=S.w(o.$u?Date.UTC(o.$y,t,e):new Date(o.$y,t,e),o);return a?i:i.endOf(s)},m=function(e,t){return S.w(o.toDate()[e].apply(o.toDate("s"),(a?[0,0,0,0]:[23,59,59,999]).slice(t)),o)},f=this.$W,v=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(c){case u:return a?h(1,0):h(31,11);case d:return a?h(1,v):h(0,v+1);case l:var y=this.$locale().weekStart||0,w=(f<y?f+7:f)-y;return h(a?g-w:g+(6-w),v);case s:case p:return m(b+"Hours",0);case r:return m(b+"Minutes",1);case n:return m(b+"Seconds",2);case i:return m(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var o,l=S.p(e),c="set"+(this.$u?"UTC":""),h=(o={},o[s]=c+"Date",o[p]=c+"Date",o[d]=c+"Month",o[u]=c+"FullYear",o[r]=c+"Hours",o[n]=c+"Minutes",o[i]=c+"Seconds",o[a]=c+"Milliseconds",o)[l],m=l===s?this.$D+(t-this.$W):t;if(l===d||l===u){var f=this.clone().set(p,1);f.$d[h](m),f.init(),this.$d=f.set(p,Math.min(this.$D,f.daysInMonth())).$d}else h&&this.$d[h](m);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[S.p(e)]()},g.add=function(a,c){var p,h=this;a=Number(a);var m=S.p(c),f=function(e){var t=$(h);return S.w(t.date(t.date()+Math.round(e*a)),h)};if(m===d)return this.set(d,this.$M+a);if(m===u)return this.set(u,this.$y+a);if(m===s)return f(1);if(m===l)return f(7);var v=(p={},p[n]=t,p[r]=o,p[i]=e,p)[m]||1,g=this.$d.getTime()+a*v;return S.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,o=this.$locale();if(!this.isValid())return o.invalidDate||h;var a=e||"YYYY-MM-DDTHH:mm:ssZ",i=S.z(this),n=this.$H,r=this.$m,s=this.$M,l=o.weekdays,d=o.months,c=function(e,o,i,n){return e&&(e[o]||e(t,a))||i[o].slice(0,n)},u=function(e){return S.s(n%12||12,e,"0")},p=o.meridiem||function(e,t,o){var a=e<12?"AM":"PM";return o?a.toLowerCase():a},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:S.s(s+1,2,"0"),MMM:c(o.monthsShort,s,d,3),MMMM:c(d,s),D:this.$D,DD:S.s(this.$D,2,"0"),d:String(this.$W),dd:c(o.weekdaysMin,this.$W,l,2),ddd:c(o.weekdaysShort,this.$W,l,3),dddd:l[this.$W],H:String(n),HH:S.s(n,2,"0"),h:u(1),hh:u(2),a:p(n,r,!0),A:p(n,r,!1),m:String(r),mm:S.s(r,2,"0"),s:String(this.$s),ss:S.s(this.$s,2,"0"),SSS:S.s(this.$ms,3,"0"),Z:i};return a.replace(f,(function(e,t){return t||m[e]||i.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(a,p,h){var m,f=S.p(p),v=$(a),g=(v.utcOffset()-this.utcOffset())*t,b=this-v,y=S.m(this,v);return y=(m={},m[u]=y/12,m[d]=y,m[c]=y/3,m[l]=(b-g)/6048e5,m[s]=(b-g)/864e5,m[r]=b/o,m[n]=b/t,m[i]=b/e,m)[f]||b,h?y:S.a(y)},g.daysInMonth=function(){return this.endOf(d).$D},g.$locale=function(){return w[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var o=this.clone(),a=F(e,t,!0);return a&&(o.$L=a),o},g.clone=function(){return S.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},v}(),C=D.prototype;return $.prototype=C,[["$ms",a],["$s",i],["$m",n],["$H",r],["$W",s],["$M",d],["$y",u],["$D",p]].forEach((function(e){C[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),$.extend=function(e,t){return e.$i||(e(t,D,$),e.$i=!0),$},$.locale=F,$.isDayjs=x,$.unix=function(e){return $(1e3*e)},$.en=w[y],$.Ls=w,$.p={},$}()},8113:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isLeapYear=function(){return this.$y%4==0&&this.$y%100!=0||this.$y%400==0}}}()},5088:(e,t,o)=>{"use strict";o.r(t),o.d(t,{ActionsMenu:()=>p,Anchor:()=>g,Badge:()=>$,Banner:()=>L,BaseDatasource:()=>Vs,Breadcrumb:()=>N,BreadcrumbItem:()=>B,Button:()=>Y,CSSVarsTokenMapper:()=>Is,Card:()=>J,Checkbox:()=>ie,Combobox:()=>ce,ConnectionIndicator:()=>be,DEFUALT_FILTER_BAR_COLUMNS:()=>xa,DataGrid:()=>Fe,DataGridCell:()=>_e,DataGridDatasource:()=>Us,DataGridRow:()=>Re,DatePicker:()=>We,Dialog:()=>zt,DialogElement:()=>jt,Disclosure:()=>Wt,Divider:()=>Qt,DropdownMenu:()=>co,ErrorBanner:()=>vo,ErrorBoundary:()=>Co,ErrorBoundaryEvent:()=>bo,ErrorDialog:()=>Ro,FaPrefixFromStyle:()=>mi,FileUpload:()=>Zo,Filter:()=>pa,FilterBar:()=>Fa,FilterEvents:()=>ua,FlexLayout:()=>La,FlexMediaQueriesEnum:()=>Sa,Flipper:()=>Na,Flyout:()=>Ga,FoundationDesignSystemProvider:()=>Nt,FoundationRouter:()=>Js,GridLayout:()=>Ja,GridLayoutItem:()=>ai,GridMediaQueriesEnum:()=>Ua,Icon:()=>fi,ListboxOption:()=>yi,Menu:()=>Di,MenuItem:()=>Ti,Modal:()=>Hi,Multiselect:()=>qi,MultiselectDatasource:()=>qs,NumberField:()=>Ji,OptionsDatasource:()=>Ws,Popper:()=>nn,Progress:()=>un,ProgressRing:()=>gn,Radio:()=>$n,RadioGroup:()=>On,SegmentedControl:()=>Mn,SegmentedItem:()=>Gn,Select:()=>Wn,Skeleton:()=>Qn,Slider:()=>sr,Snackbar:()=>mr,Switch:()=>br,Tab:()=>Sr,TabPanel:()=>Lr,Tabs:()=>Er,TextArea:()=>jr,TextField:()=>qr,Toast:()=>os,Toolbar:()=>rs,Tooltip:()=>ps,TreeItem:()=>bs,TreeView:()=>Ss,UrlInput:()=>Rs,accentFillActive:()=>m.accentFillActive,accentFillActiveDelta:()=>m.accentFillActiveDelta,accentFillFocus:()=>m.accentFillFocus,accentFillFocusDelta:()=>m.accentFillFocusDelta,accentFillHover:()=>m.accentFillHover,accentFillHoverDelta:()=>m.accentFillHoverDelta,accentFillRest:()=>m.accentFillRest,accentFillRestDelta:()=>m.accentFillRestDelta,accentForegroundActive:()=>m.accentForegroundActive,accentForegroundActiveDelta:()=>m.accentForegroundActiveDelta,accentForegroundFocus:()=>m.accentForegroundFocus,accentForegroundFocusDelta:()=>m.accentForegroundFocusDelta,accentForegroundHover:()=>m.accentForegroundHover,accentForegroundHoverDelta:()=>m.accentForegroundHoverDelta,accentForegroundRest:()=>m.accentForegroundRest,accentForegroundRestDelta:()=>m.accentForegroundRestDelta,accentPalette:()=>m.accentPalette,accentPaletteValue:()=>$t,actionsMenuBaseStyles:()=>d,baseComponents:()=>Ns,baseHeightMultiplier:()=>m.baseHeightMultiplier,baseLayerLuminance:()=>m.baseLayerLuminance,baseLayerLuminanceValue:()=>Dt,black:()=>Ze,bodyFont:()=>m.bodyFont,closeIcon:()=>Pt,configureDesignSystem:()=>Ft,controlCornerRadius:()=>m.controlCornerRadius,controlCornerRadiusValue:()=>_t,createDesignSystemProxy:()=>Ms,defaultAnchorConfig:()=>y,defaultBadgeConfig:()=>D,defaultBreadcrumbConfig:()=>E,defaultBreadcrumbItemConfig:()=>j,defaultButtonConfig:()=>q,defaultCardConfig:()=>ee,defaultCheckboxConfig:()=>re,defaultComboboxConfig:()=>pe,defaultDataGridCellConfig:()=>Oe,defaultDataGridConfig:()=>Se,defaultDataGridRowConfig:()=>Ne,defaultDatePickerConfig:()=>Ye,defaultDialogConfig:()=>Gt,defaultDisclosureConfig:()=>Xt,defaultDividerConfig:()=>to,defaultFileUploadConfig:()=>Qo,defaultFillColor:()=>Qe,defaultFlexLayoutConfig:()=>Oa,defaultFlipperConfig:()=>Ea,defaultFlyoutConfig:()=>za,defaultGridLayoutConfig:()=>Ka,defaultGridLayoutItemConfig:()=>oi,defaultIconConfig:()=>hi,defaultListboxOptionConfig:()=>xi,defaultMenuConfig:()=>_i,defaultMenuItemConfig:()=>Ai,defaultModalConfig:()=>Pi,defaultMultiselectConfig:()=>Wi,defaultNeutralForegroundContrast:()=>pt,defaultNumberFieldConfig:()=>en,defaultProgressConfig:()=>hn,defaultProgressRingConfig:()=>yn,defaultRadioConfig:()=>Dn,defaultRadioGroupConfig:()=>Tn,defaultSegmentedControlConfig:()=>In,defaultSegmentedItemConfig:()=>zn,defaultSelectConfig:()=>Xn,defaultSkeletonConfig:()=>tr,defaultSliderConfig:()=>dr,defaultSwitchConfig:()=>wr,defaultTabConfig:()=>Cr,defaultTabPanelConfig:()=>Rr,defaultTabsConfig:()=>Pr,defaultTextAreaConfig:()=>Vr,defaultTextFieldConfig:()=>Kr,defaultToastConfig:()=>ts,defaultToolbarConfig:()=>ls,defaultTooltipConfig:()=>ms,defaultTreeItemConfig:()=>ws,defaultTreeViewConfig:()=>Cs,defaultUrlInputConfig:()=>Ts,defineFactory:()=>Xs,density:()=>m.density,designToken:()=>vt,designUnit:()=>m.designUnit,designUnitValue:()=>kt,direction:()=>m.direction,directionValue:()=>Ct,disabledOpacity:()=>m.disabledOpacity,dropdownMenuBaseStyles:()=>io,errorDialogTemplate:()=>Lo,extractMenuItems:()=>ro,fillColor:()=>m.fillColor,flyoutAnimationTime:()=>Pa,focusStrokeInner:()=>m.focusStrokeInner,focusStrokeOuter:()=>m.focusStrokeOuter,focusStrokeWidth:()=>m.focusStrokeWidth,foregroundOnAccentActive:()=>m.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>m.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>m.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>m.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>m.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>m.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>m.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>m.foregroundOnAccentRestLarge,foundationActionsMenu:()=>h,foundationActionsMenuStyles:()=>c,foundationActionsMenuTemplate:()=>u,foundationAnchor:()=>w,foundationAnchorShadowOptions:()=>b,foundationAnchorStyles:()=>f,foundationAnchorTemplate:()=>v,foundationBadge:()=>C,foundationBadgeShadowOptions:()=>S,foundationBadgeStyles:()=>x,foundationBadgeTemplate:()=>F,foundationBanner:()=>T,foundationBannerShadowOptions:()=>O,foundationBannerStyles:()=>_,foundationBannerTemplate:()=>k,foundationBreadcrumb:()=>I,foundationBreadcrumbItem:()=>z,foundationBreadcrumbItemShadowOptions:()=>G,foundationBreadcrumbItemStyles:()=>P,foundationBreadcrumbItemTemplate:()=>H,foundationBreadcrumbShadowOptions:()=>M,foundationBreadcrumbStyles:()=>R,foundationBreadcrumbTemplate:()=>A,foundationButton:()=>X,foundationButtonShadowOptions:()=>W,foundationButtonStyles:()=>V,foundationButtonTemplate:()=>U,foundationCard:()=>te,foundationCardShadowOptions:()=>Q,foundationCardStyles:()=>K,foundationCardTemplate:()=>Z,foundationCheckbox:()=>se,foundationCheckboxShadowOptions:()=>ne,foundationCheckboxStyles:()=>oe,foundationCheckboxTemplate:()=>ae,foundationCombobox:()=>he,foundationComboboxShadowOptions:()=>ue,foundationComboboxStyles:()=>le,foundationComboboxTemplate:()=>de,foundationConnectionIndicator:()=>ye,foundationConnectionIndicatorStyles:()=>ve,foundationConnectionIndicatorTemplate:()=>ge,foundationDataGrid:()=>De,foundationDataGridCell:()=>Le,foundationDataGridCellShadowOptions:()=>ke,foundationDataGridCellStyles:()=>Ce,foundationDataGridCellTemplate:()=>s.dataGridCellTemplate,foundationDataGridRow:()=>Me,foundationDataGridRowShadowOptions:()=>Ae,foundationDataGridRowStyles:()=>Te,foundationDataGridRowTemplate:()=>s.dataGridRowTemplate,foundationDataGridShadowOptions:()=>$e,foundationDataGridStyles:()=>we,foundationDataGridTemplate:()=>xe,foundationDatePicker:()=>qe,foundationDatePickerShadowOptions:()=>Ue,foundationDatePickerStyles:()=>ze,foundationDatePickerTemplate:()=>Ve,foundationDesignSystemProvider:()=>Mt,foundationDialog:()=>Vt,foundationDialogShadowOptions:()=>Bt,foundationDialogStyles:()=>It,foundationDialogTemplate:()=>Ht,foundationDisclosure:()=>Kt,foundationDisclosureShadowOptions:()=>qt,foundationDisclosureStyles:()=>Ut,foundationDisclosureTemplate:()=>Yt,foundationDivider:()=>oo,foundationDividerShadowOptions:()=>eo,foundationDividerStyles:()=>Zt,foundationDividerTemplate:()=>Jt,foundationDropdownMenu:()=>uo,foundationDropdownMenuStyles:()=>no,foundationDropdownMenuTemplate:()=>lo,foundationErrorBanner:()=>go,foundationErrorBannerShadowOptions:()=>fo,foundationErrorBannerTemplate:()=>mo,foundationErrorBoundary:()=>_o,foundationErrorBoundaryShadowOptions:()=>Do,foundationErrorBoundaryTemplate:()=>So,foundationErrorDialog:()=>Ao,foundationErrorDialogShadowOptions:()=>To,foundationErrorDialogStyles:()=>ko,foundationFileUpload:()=>ea,foundationFileUploadShadowOptions:()=>Jo,foundationFileUploadStyles:()=>Vo,foundationFileUploadTemplate:()=>Yo,foundationFilter:()=>ha,foundationFilterBar:()=>$a,foundationFilterBarStyles:()=>fa,foundationFilterBarTemplate:()=>wa,foundationFilterStyles:()=>ta,foundationFilterTemplate:()=>ca,foundationFlexLayout:()=>Ta,foundationFlexLayoutShadowOptions:()=>ka,foundationFlexLayoutStyles:()=>Ca,foundationFlexLayoutTemplate:()=>_a,foundationFlipper:()=>Ia,foundationFlipperShadowOptions:()=>Ma,foundationFlipperStyles:()=>Ra,foundationFlipperTemplate:()=>Aa,foundationFlyout:()=>Va,foundationFlyoutShadowOptions:()=>ja,foundationFlyoutStyles:()=>Ha,foundationFlyoutTemplate:()=>Ba,foundationGridLayout:()=>Qa,foundationGridLayoutItem:()=>ii,foundationGridLayoutItemShadowOptions:()=>ti,foundationGridLayoutItemTemplate:()=>ei,foundationGridLayoutShadowOptions:()=>Xa,foundationGridLayoutStyles:()=>Wa,foundationGridLayoutTemplate:()=>qa,foundationIcon:()=>vi,foundationIconShadowOptions:()=>pi,foundationIconStyles:()=>ci,foundationIconTemplate:()=>ui,foundationListboxOption:()=>Fi,foundationListboxOptionShadowOptions:()=>wi,foundationListboxOptionStyles:()=>gi,foundationListboxOptionTemplate:()=>bi,foundationMenu:()=>ki,foundationMenuItem:()=>Ni,foundationMenuItemShadowOptions:()=>Ri,foundationMenuItemStyles:()=>Oi,foundationMenuItemTemplate:()=>Li,foundationMenuShadowOptions:()=>Ci,foundationMenuStyles:()=>$i,foundationMenuTemplate:()=>Si,foundationModal:()=>Bi,foundationModalShadowOptions:()=>Ii,foundationModalStyles:()=>Mi,foundationModalTemplate:()=>Ei,foundationMultiselect:()=>Xi,foundationMultiselectShadowOptions:()=>Yi,foundationNumberField:()=>tn,foundationNumberFieldShadowOptions:()=>Qi,foundationNumberFieldStyles:()=>Ki,foundationNumberFieldTemplate:()=>Zi,foundationPopper:()=>ln,foundationProgress:()=>mn,foundationProgressRing:()=>wn,foundationProgressRingShadowOptions:()=>bn,foundationProgressRingStyles:()=>fn,foundationProgressRingTemplate:()=>vn,foundationProgressShadowOptions:()=>pn,foundationProgressStyles:()=>dn,foundationProgressTemplate:()=>cn,foundationRadio:()=>Cn,foundationRadioGroup:()=>Rn,foundationRadioGroupShadowOptions:()=>Ln,foundationRadioGroupStyles:()=>_n,foundationRadioGroupTemplate:()=>kn,foundationRadioShadowOptions:()=>Sn,foundationRadioStyles:()=>xn,foundationRadioTemplate:()=>Fn,foundationSegmentedControl:()=>Pn,foundationSegmentedControlShadowOptions:()=>En,foundationSegmentedControlStyles:()=>An,foundationSegmentedControlTemplate:()=>Nn,foundationSegmentedItem:()=>Vn,foundationSegmentedItemShadowOptions:()=>jn,foundationSegmentedItemStyles:()=>Hn,foundationSegmentedItemTemplate:()=>Bn,foundationSelect:()=>Kn,foundationSelectShadowOptions:()=>qn,foundationSelectStyles:()=>Un,foundationSelectTemplate:()=>Yn,foundationSkeleton:()=>or,foundationSkeletonShadowOptions:()=>er,foundationSkeletonStyles:()=>Zn,foundationSkeletonTemplate:()=>Jn,foundationSlider:()=>cr,foundationSliderShadowOptions:()=>lr,foundationSliderStyles:()=>ar,foundationSliderTemplate:()=>rr,foundationSnackbar:()=>fr,foundationSnackbarShadowOptions:()=>hr,foundationSnackbarStyles:()=>ur,foundationSnackbarTemplate:()=>pr,foundationSwitch:()=>xr,foundationSwitchShadowOptions:()=>yr,foundationSwitchStyles:()=>vr,foundationSwitchTemplate:()=>gr,foundationTab:()=>_r,foundationTabPanel:()=>Ar,foundationTabPanelShadowOptions:()=>Tr,foundationTabPanelStyles:()=>kr,foundationTabPanelTemplate:()=>Or,foundationTabShadowOptions:()=>Dr,foundationTabStyles:()=>Fr,foundationTabTemplate:()=>$r,foundationTabs:()=>Hr,foundationTabsShadowOptions:()=>Ir,foundationTabsStyles:()=>Nr,foundationTabsTemplate:()=>Mr,foundationTextArea:()=>Ur,foundationTextAreaShadowOptions:()=>zr,foundationTextAreaStyles:()=>Br,foundationTextAreaTemplate:()=>Gr,foundationTextField:()=>Zr,foundationTextFieldShadowOptions:()=>Xr,foundationTextFieldStyles:()=>Yr,foundationTextFieldTemplate:()=>Wr,foundationToast:()=>as,foundationToastShadowOptions:()=>es,foundationToastStyles:()=>Jr,foundationToastTemplate:()=>Qr,foundationToolbar:()=>ds,foundationToolbarShadowOptions:()=>ss,foundationToolbarStyles:()=>is,foundationToolbarTemplate:()=>ns,foundationTooltip:()=>fs,foundationTooltipShadowOptions:()=>hs,foundationTooltipStyles:()=>cs,foundationTooltipTemplate:()=>us,foundationTreeItem:()=>xs,foundationTreeItemShadowOptions:()=>ys,foundationTreeItemStyles:()=>vs,foundationTreeItemTemplate:()=>gs,foundationTreeView:()=>_s,foundationTreeViewShadowOptions:()=>Ds,foundationTreeViewStyles:()=>Fs,foundationTreeViewTemplate:()=>$s,foundationUrlInput:()=>As,foundationUrlInputShadowOptions:()=>Ls,foundationUrlInputStyles:()=>ks,fuiAccentPalette:()=>lt,fuiAccentSwatch:()=>st,fuiCardFillColor:()=>ut,fuiCardForegroundColor:()=>mt,fuiDefaultCardFillColor:()=>tt,fuiDefaultCardPalette:()=>ot,fuiFillColor:()=>ct,fuiNeutralPalette:()=>nt,fuiNeutralSwatch:()=>it,getDefaultConfig:()=>wt,getDropdownMenuTemplate:()=>so,getErrorDialogTemplate:()=>Oo,getExports:()=>xt,getFontawesomeIconsCss:()=>di,getPrefixedFileUpload:()=>Uo,getPrefixedMultiselect:()=>Vi,jsonConverter:()=>an,mapType:()=>va,maxheight:()=>ji,mixinFoundationFontFamily:()=>Lt,multiselectStyles:()=>zi,multiselectTemplate:()=>Ui,neutralFillActive:()=>m.neutralFillActive,neutralFillActiveDelta:()=>m.neutralFillActiveDelta,neutralFillFocus:()=>m.neutralFillFocus,neutralFillFocusDelta:()=>m.neutralFillFocusDelta,neutralFillHover:()=>m.neutralFillHover,neutralFillHoverDelta:()=>m.neutralFillHoverDelta,neutralFillInputActive:()=>m.neutralFillInputActive,neutralFillInputActiveDelta:()=>m.neutralFillInputActiveDelta,neutralFillInputFocus:()=>m.neutralFillInputFocus,neutralFillInputFocusDelta:()=>m.neutralFillInputFocusDelta,neutralFillInputHover:()=>m.neutralFillInputHover,neutralFillInputHoverDelta:()=>m.neutralFillInputHoverDelta,neutralFillInputRest:()=>m.neutralFillInputRest,neutralFillInputRestDelta:()=>m.neutralFillInputRestDelta,neutralFillLayerRest:()=>m.neutralFillLayerRest,neutralFillLayerRestDelta:()=>m.neutralFillLayerRestDelta,neutralFillRest:()=>m.neutralFillRest,neutralFillRestDelta:()=>m.neutralFillRestDelta,neutralFillStealthActive:()=>m.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>m.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>m.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>m.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>m.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>m.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>m.neutralFillStealthRest,neutralFillStealthRestDelta:()=>m.neutralFillStealthRestDelta,neutralFillStrongActive:()=>m.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>m.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>m.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>m.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>m.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>m.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>m.neutralFillStrongRest,neutralFillStrongRestDelta:()=>m.neutralFillStrongRestDelta,neutralForeground:()=>ht,neutralForegroundHint:()=>m.neutralForegroundHint,neutralForegroundRest:()=>m.neutralForegroundRest,neutralLayer1:()=>m.neutralLayer1,neutralLayer2:()=>m.neutralLayer2,neutralLayer3:()=>m.neutralLayer3,neutralLayer4:()=>m.neutralLayer4,neutralLayerCardContainer:()=>m.neutralLayerCardContainer,neutralLayerFloating:()=>m.neutralLayerFloating,neutralPalette:()=>m.neutralPalette,neutralPaletteValue:()=>St,neutralStrokeActive:()=>m.neutralStrokeActive,neutralStrokeActiveDelta:()=>m.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>m.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>m.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>m.neutralStrokeFocus,neutralStrokeFocusDelta:()=>m.neutralStrokeFocusDelta,neutralStrokeHover:()=>m.neutralStrokeHover,neutralStrokeHoverDelta:()=>m.neutralStrokeHoverDelta,neutralStrokeRest:()=>m.neutralStrokeRest,neutralStrokeRestDelta:()=>m.neutralStrokeRestDelta,paletteFromHex:()=>bt,provideDesignSystem:()=>Es,provideTokens:()=>ft,registerFoundationDesignSystem:()=>Qs,strokeWidth:()=>m.strokeWidth,swatchConverter:()=>gt,tagFor:()=>Ks,typeRampBaseFontSize:()=>m.typeRampBaseFontSize,typeRampBaseLineHeight:()=>m.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>m.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>m.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>m.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>m.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>m.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>m.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>m.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>m.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>m.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>m.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>m.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>m.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>m.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>m.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>m.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>m.typeRampPlus6LineHeight,urlinputTemplate:()=>Os,white:()=>Ke});var a={};o.r(a),o.d(a,{accentFillActive:()=>m.accentFillActive,accentFillActiveDelta:()=>m.accentFillActiveDelta,accentFillFocus:()=>m.accentFillFocus,accentFillFocusDelta:()=>m.accentFillFocusDelta,accentFillHover:()=>m.accentFillHover,accentFillHoverDelta:()=>m.accentFillHoverDelta,accentFillRest:()=>m.accentFillRest,accentFillRestDelta:()=>m.accentFillRestDelta,accentForegroundActive:()=>m.accentForegroundActive,accentForegroundActiveDelta:()=>m.accentForegroundActiveDelta,accentForegroundFocus:()=>m.accentForegroundFocus,accentForegroundFocusDelta:()=>m.accentForegroundFocusDelta,accentForegroundHover:()=>m.accentForegroundHover,accentForegroundHoverDelta:()=>m.accentForegroundHoverDelta,accentForegroundRest:()=>m.accentForegroundRest,accentForegroundRestDelta:()=>m.accentForegroundRestDelta,accentPalette:()=>m.accentPalette,baseHeightMultiplier:()=>m.baseHeightMultiplier,baseLayerLuminance:()=>m.baseLayerLuminance,bodyFont:()=>m.bodyFont,controlCornerRadius:()=>m.controlCornerRadius,defaultNeutralForegroundContrast:()=>pt,density:()=>m.density,designUnit:()=>m.designUnit,direction:()=>m.direction,disabledOpacity:()=>m.disabledOpacity,fillColor:()=>m.fillColor,focusStrokeInner:()=>m.focusStrokeInner,focusStrokeOuter:()=>m.focusStrokeOuter,focusStrokeWidth:()=>m.focusStrokeWidth,foregroundOnAccentActive:()=>m.foregroundOnAccentActive,foregroundOnAccentActiveLarge:()=>m.foregroundOnAccentActiveLarge,foregroundOnAccentFocus:()=>m.foregroundOnAccentFocus,foregroundOnAccentFocusLarge:()=>m.foregroundOnAccentFocusLarge,foregroundOnAccentHover:()=>m.foregroundOnAccentHover,foregroundOnAccentHoverLarge:()=>m.foregroundOnAccentHoverLarge,foregroundOnAccentRest:()=>m.foregroundOnAccentRest,foregroundOnAccentRestLarge:()=>m.foregroundOnAccentRestLarge,fuiCardFillColor:()=>ut,fuiCardForegroundColor:()=>mt,fuiFillColor:()=>ct,neutralFillActive:()=>m.neutralFillActive,neutralFillActiveDelta:()=>m.neutralFillActiveDelta,neutralFillFocus:()=>m.neutralFillFocus,neutralFillFocusDelta:()=>m.neutralFillFocusDelta,neutralFillHover:()=>m.neutralFillHover,neutralFillHoverDelta:()=>m.neutralFillHoverDelta,neutralFillInputActive:()=>m.neutralFillInputActive,neutralFillInputActiveDelta:()=>m.neutralFillInputActiveDelta,neutralFillInputFocus:()=>m.neutralFillInputFocus,neutralFillInputFocusDelta:()=>m.neutralFillInputFocusDelta,neutralFillInputHover:()=>m.neutralFillInputHover,neutralFillInputHoverDelta:()=>m.neutralFillInputHoverDelta,neutralFillInputRest:()=>m.neutralFillInputRest,neutralFillInputRestDelta:()=>m.neutralFillInputRestDelta,neutralFillLayerRest:()=>m.neutralFillLayerRest,neutralFillLayerRestDelta:()=>m.neutralFillLayerRestDelta,neutralFillRest:()=>m.neutralFillRest,neutralFillRestDelta:()=>m.neutralFillRestDelta,neutralFillStealthActive:()=>m.neutralFillStealthActive,neutralFillStealthActiveDelta:()=>m.neutralFillStealthActiveDelta,neutralFillStealthFocus:()=>m.neutralFillStealthFocus,neutralFillStealthFocusDelta:()=>m.neutralFillStealthFocusDelta,neutralFillStealthHover:()=>m.neutralFillStealthHover,neutralFillStealthHoverDelta:()=>m.neutralFillStealthHoverDelta,neutralFillStealthRest:()=>m.neutralFillStealthRest,neutralFillStealthRestDelta:()=>m.neutralFillStealthRestDelta,neutralFillStrongActive:()=>m.neutralFillStrongActive,neutralFillStrongActiveDelta:()=>m.neutralFillStrongActiveDelta,neutralFillStrongFocus:()=>m.neutralFillStrongFocus,neutralFillStrongFocusDelta:()=>m.neutralFillStrongFocusDelta,neutralFillStrongHover:()=>m.neutralFillStrongHover,neutralFillStrongHoverDelta:()=>m.neutralFillStrongHoverDelta,neutralFillStrongRest:()=>m.neutralFillStrongRest,neutralFillStrongRestDelta:()=>m.neutralFillStrongRestDelta,neutralForeground:()=>ht,neutralForegroundHint:()=>m.neutralForegroundHint,neutralForegroundRest:()=>m.neutralForegroundRest,neutralLayer1:()=>m.neutralLayer1,neutralLayer2:()=>m.neutralLayer2,neutralLayer3:()=>m.neutralLayer3,neutralLayer4:()=>m.neutralLayer4,neutralLayerCardContainer:()=>m.neutralLayerCardContainer,neutralLayerFloating:()=>m.neutralLayerFloating,neutralPalette:()=>m.neutralPalette,neutralStrokeActive:()=>m.neutralStrokeActive,neutralStrokeActiveDelta:()=>m.neutralStrokeActiveDelta,neutralStrokeDividerRest:()=>m.neutralStrokeDividerRest,neutralStrokeDividerRestDelta:()=>m.neutralStrokeDividerRestDelta,neutralStrokeFocus:()=>m.neutralStrokeFocus,neutralStrokeFocusDelta:()=>m.neutralStrokeFocusDelta,neutralStrokeHover:()=>m.neutralStrokeHover,neutralStrokeHoverDelta:()=>m.neutralStrokeHoverDelta,neutralStrokeRest:()=>m.neutralStrokeRest,neutralStrokeRestDelta:()=>m.neutralStrokeRestDelta,strokeWidth:()=>m.strokeWidth,typeRampBaseFontSize:()=>m.typeRampBaseFontSize,typeRampBaseLineHeight:()=>m.typeRampBaseLineHeight,typeRampMinus1FontSize:()=>m.typeRampMinus1FontSize,typeRampMinus1LineHeight:()=>m.typeRampMinus1LineHeight,typeRampMinus2FontSize:()=>m.typeRampMinus2FontSize,typeRampMinus2LineHeight:()=>m.typeRampMinus2LineHeight,typeRampPlus1FontSize:()=>m.typeRampPlus1FontSize,typeRampPlus1LineHeight:()=>m.typeRampPlus1LineHeight,typeRampPlus2FontSize:()=>m.typeRampPlus2FontSize,typeRampPlus2LineHeight:()=>m.typeRampPlus2LineHeight,typeRampPlus3FontSize:()=>m.typeRampPlus3FontSize,typeRampPlus3LineHeight:()=>m.typeRampPlus3LineHeight,typeRampPlus4FontSize:()=>m.typeRampPlus4FontSize,typeRampPlus4LineHeight:()=>m.typeRampPlus4LineHeight,typeRampPlus5FontSize:()=>m.typeRampPlus5FontSize,typeRampPlus5LineHeight:()=>m.typeRampPlus5LineHeight,typeRampPlus6FontSize:()=>m.typeRampPlus6FontSize,typeRampPlus6LineHeight:()=>m.typeRampPlus6LineHeight});var i={};o.r(i),o.d(i,{accentPaletteValue:()=>$t,baseLayerLuminanceValue:()=>Dt,controlCornerRadiusValue:()=>_t,designUnitValue:()=>kt,directionValue:()=>Ct,neutralPaletteValue:()=>St});var n=o(8092),r=o(3147),s=o(5951),l=o(7675);const d=(e,t)=>r.css`
|
|
2
2
|
:host {
|
|
3
3
|
--actions-opener-height-multiplier: 0.7px;
|
|
4
4
|
--actions-opener-bg-color: 249 254 255;
|
|
@@ -296,7 +296,7 @@
|
|
|
296
296
|
${(0,m.dataGridCellStyles)(e,t)}
|
|
297
297
|
`;class _e extends m.DataGridCell{}const ke=void 0,Oe={},Le=_e.compose(Object.assign({baseName:"data-grid-cell",template:s.dataGridCellTemplate,styles:Ce,shadowOptions:ke},Oe)),Te=(e,t)=>r.css`
|
|
298
298
|
${(0,m.dataGridRowStyles)(e,t)}
|
|
299
|
-
`;class Re extends m.DataGridRow{}const Ae=void 0,Ne={},Me=Re.compose(Object.assign({baseName:"data-grid-row",template:s.dataGridRowTemplate,styles:Te,shadowOptions:Ae},Ne));var Ee=o(
|
|
299
|
+
`;class Re extends m.DataGridRow{}const Ae=void 0,Ne={},Me=Re.compose(Object.assign({baseName:"data-grid-row",template:s.dataGridRowTemplate,styles:Te,shadowOptions:Ae},Ne));var Ee=o(4341),Ie=o.n(Ee),Pe=o(8113),He=o.n(Pe);class Be{constructor(e=null,t="default"){e=null!=e?e:new Date,this.Date=e,this.date=e.getDate(),this.day=e.toLocaleString(t,{weekday:"long"}),this.dayNumber=e.getDay()+1,this.dayShort=e.toLocaleString(t,{weekday:"short"}),this.year=e.getFullYear(),this.yearShort=Number(e.toLocaleString(t,{year:"2-digit"})),this.month=e.toLocaleString(t,{month:"long"}),this.monthShort=e.toLocaleString(t,{month:"short"}),this.monthNumber=e.getMonth()+1,this.timestamp=e.getTime()}}Ie().extend(He());class Ge{constructor(e=null,t="default"){const o=new Be(e,t);this.lang=t,this.name=o.month,this.number=o.monthNumber,this.year=o.year,this.numberOfDays=[31,28,31,30,31,30,31,31,30,31,30,31][this.number-1],2===this.number&&(this.numberOfDays+=Ie()(o.date).isLeapYear()?1:0)}getDay(e){return new Be(new Date(this.year,this.number-1,e),this.lang)}}Ie().extend(He());class je{constructor(e=null,t=null,o="default"){this.weekDays=Array.from({length:7}),this.today=new Be(null,o),this.year=null!=e?e:this.today.year,this.month=new Ge(new Date(this.year,(t||this.today.monthNumber)-1),o),this.lang=o,this.weekDays.forEach(((e,t)=>{const o=this.month.getDay(t);this.weekDays[o.dayNumber-1]=o.day}))}getMonth(e){return new Ge(new Date(this.year,e-1),this.lang)}getPreviousMonth(){return 1===this.month.number?new Ge(new Date(this.year-1,11),this.lang):new Ge(new Date(this.year,this.month.number-2),this.lang)}getNextMonth(){return 1===this.month.number?new Ge(new Date(this.year+1,0),this.lang):new Ge(new Date(this.year,this.month.number+2),this.lang)}goToDate(e,t){this.month=new Ge(new Date(t,e-1),this.lang),this.year=t}goToNextYear(){this.year+=1,this.month=new Ge(new Date(this.year,0),this.lang)}goToPreviousYear(){this.year-=1,this.month=new Ge(new Date(this.year,11),this.lang)}goToNextMonth(){if(12===this.month.number)return this.goToNextYear();this.month=new Ge(new Date(this.year,this.month.number+1-1),this.lang)}goToPreviousMonth(){if(1===this.month.number)return this.goToPreviousYear();this.month=new Ge(new Date(this.year,this.month.number-1-1),this.lang)}}const ze=r.css`
|
|
300
300
|
:host {
|
|
301
301
|
position: relative;
|
|
302
302
|
}
|
|
@@ -682,7 +682,7 @@
|
|
|
682
682
|
</div>
|
|
683
683
|
`,lo=r.html`
|
|
684
684
|
${e=>so(e.tagName.toLowerCase().split("-")[0])}
|
|
685
|
-
`;class co extends s.FoundationElement{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name="Dropdown Menu",this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener("onMenuClick",this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){ao(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,l.A)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,n.__decorate)([r.observable],co.prototype,"items",void 0),(0,n.__decorate)([(0,r.attr)({attribute:"auto-close",mode:"boolean"})],co.prototype,"autoClose",void 0),(0,n.__decorate)([(0,r.attr)({attribute:"disable-button",mode:"boolean"})],co.prototype,"disabled",void 0),(0,n.__decorate)([r.observable],co.prototype,"classNames",void 0),(0,n.__decorate)([r.attr],co.prototype,"name",void 0),(0,n.__decorate)([(0,r.attr)({attribute:"open",mode:"boolean"})],co.prototype,"open",void 0),(0,n.__decorate)([r.attr],co.prototype,"buttonAppearance",void 0);const uo=co.compose({baseName:"dropdown-menu",styles:no,template:lo});var po=o(
|
|
685
|
+
`;class co extends s.FoundationElement{constructor(){super(...arguments),this.autoClose=!0,this.disabled=!1,this.name="Dropdown Menu",this.open=!1,this.clickOutside=e=>this.handleClickOutside(e)}connectedCallback(){super.connectedCallback(),this.addEventListener("onMenuClick",this.onDropdownMenuItemClick)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this.clickOutside)}handleClickOutside(e){ao(e,this)&&(this.open=!1)}openChanged(){this.classNames=(0,l.A)(["hidden",!this.open]),this.open?document.addEventListener("mousedown",this.clickOutside):document.removeEventListener("mousedown",this.clickOutside)}toggleDropdownMenuVisibility(){this.open=!this.open}onDropdownMenuItemClick(){this.autoClose&&(this.open=!1)}get allItems(){return this.items}}(0,n.__decorate)([r.observable],co.prototype,"items",void 0),(0,n.__decorate)([(0,r.attr)({attribute:"auto-close",mode:"boolean"})],co.prototype,"autoClose",void 0),(0,n.__decorate)([(0,r.attr)({attribute:"disable-button",mode:"boolean"})],co.prototype,"disabled",void 0),(0,n.__decorate)([r.observable],co.prototype,"classNames",void 0),(0,n.__decorate)([r.attr],co.prototype,"name",void 0),(0,n.__decorate)([(0,r.attr)({attribute:"open",mode:"boolean"})],co.prototype,"open",void 0),(0,n.__decorate)([r.attr],co.prototype,"buttonAppearance",void 0);const uo=co.compose({baseName:"dropdown-menu",styles:no,template:lo});var po=o(8120);const ho=(0,po.createLogger)("foundation-ui"),mo=r.html`
|
|
686
686
|
<foundation-banner ${(0,r.ref)("banner")}>
|
|
687
687
|
<div slot="content">
|
|
688
688
|
<div>${e=>{var t;return(null===(t=e.error)||void 0===t?void 0:t.errorDetails)||"Place holder for error message"}}</div>
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see 905.905.
|
|
2
|
-
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[905],{4077:(e,t,s)=>{"use strict";var r;s.d(t,{G:()=>r,l:()=>i}),function(e){e.BASIC="BASIC",e.SSO="SSO",e.JWT="JWT",e.REFRESH="REFRESH"}(r||(r={}));class i extends Error{constructor(e,t,s="Auth Failed \n"){super(s),this.sent=e,this.received=t,Object.setPrototypeOf(this,i.prototype)}isIgnorableError(){var e,t,s,r;return null===(r=null===(s=null===(t=null===(e=this.received)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.ERROR)||void 0===s?void 0:s.toLowerCase())||void 0===r?void 0:r.includes("request needs the user to be logged")}getMessageError(){var e,t;return Array.isArray(null===(e=this.received)||void 0===e?void 0:e.ERROR)?null===(t=this.received)||void 0===t?void 0:t.ERROR.map((e=>this.errorDetailFormatter(e))).join("\n"):""}getDetailsError(){var e,t,s,r;return Array.isArray(null===(t=null===(e=this.received)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.ERROR)?null===(r=null===(s=this.received)||void 0===s?void 0:s.DETAILS)||void 0===r?void 0:r.ERROR.map((e=>this.errorDetailFormatter(e))).join("\n"):""}hasPasswordExpiredError(){return this.hasErrorCode("PASSWORD_EXPIRED")}hasErrorCode(e){var t,s;return!!Array.isArray(null===(t=this.received)||void 0===t?void 0:t.ERROR)&&(null===(s=this.received)||void 0===s?void 0:s.ERROR.some((t=>t.CODE===e)))}errorDetailFormatter(e){return`\n ${e.CODE}: \n ${e.TEXT}`}}},1440:(e,t,s)=>{"use strict";s.d(t,{lj:()=>q});var r=s(186),i=s(1950),o=s(3147),n=s(5951);class a{constructor(){this.cachedMetadata=new Map,this.cachedJsonSchema=new Map}getMetadataFor(e){return this.cachedMetadata.get(e)}getJsonSchemaFor(e){return this.cachedJsonSchema.get(e)}hasMetadataFor(e){return this.cachedMetadata.has(e)}hasJsonSchemaFor(e){return this.cachedJsonSchema.has(e)}setMetadataFor(e,t){this.cachedMetadata.set(e,t)}setJsonSchemaFor(e,t){this.cachedJsonSchema.set(e,t)}}const c=n.DI.createInterface((e=>e.singleton(a))),d=new RegExp(/wss?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\b([-a-zA-Z0-9()@:%_\+.~#?&\/=]*)\b\/*$/,"i");var h=s(2296);const E=n.DI.createInterface(),l=n.DI.createInterface();var u=s(6714),S=s(5373),g=s(1966),_=s(9866),T=s(804),R=s(7211),p=s(4866),v=s(5527);class m{serialize(e){return JSON.stringify(e)}deserialize(e){return e?"string"==typeof e?JSON.parse(e):e.data?JSON.parse(e.data):e.text().then((e=>JSON.parse(e))):Promise.resolve({})}}const O=n.DI.createInterface((e=>e.singleton(m)));let A=class{constructor(e){this.serializer=e}get(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const s=yield fetch(e,Object.assign(Object.assign({},t),{method:"GET"}));return(t.serializer||this.serializer).deserialize(s)}))}post(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const s=yield fetch(e,Object.assign(Object.assign({},t),{method:"POST"}));return(t.serializer||this.serializer).deserialize(s)}))}};A=(0,r.__decorate)([(0,r.__param)(0,O)],A);const I=n.DI.createInterface((e=>e.singleton(A)));var f=s(9162);const M={polling:Object.assign({POLLING_MAP:{EVENT_AMEND_USER:{TEMP_FREQUENCY:500,AMOUNT_OF_POLLS:5,QUERIES:["ALL_USERS"]}},POLLING_INTERVAL_MAP:{ALL_TRADES:5e3,ALL_USERS:5e3,ALL_PROCESSES_STATUS:1e4},POLLING_FREQUENCY:5e3},{})};let N=class e{get isConnected(){return this._isConnected}set isConnected(e){this._isConnected=e,this.isConnectedSubject.next(this._isConnected)}constructor(e,t,s,r,i,o=M){this.http=e,this.messageBuilder=t,this.session=s,this.metaCache=r,this.serializer=i,this.config=o,this.isWorking=!1,this._isConnected=!1,this.isConnectedSubject=new u.X(this._isConnected),this.ongoingTurbo={},this.streams=new Map}checkHost(){return(0,r.__awaiter)(this,void 0,void 0,(function*(){try{return this.getMessage({MESSAGE_TYPE:f.Cs.HEARTBEAT_PING,SOURCE_REF:"host check"}).then((e=>e.MESSAGE_TYPE===f.Cs.HEARTBEAT_PONG))}catch(e){return h.k.error(e),!1}}))}send(t,s){return this.http.post(e.getUrl(this.host,t),{body:e.getBody(t),headers:e.getHeaders(t)})}httpMode(){return!0}setValidSession(e){h.k.warn("setValidSession() called while in http polling mode.")}connect(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){return this.host=e,this.host.endsWith("/")||(this.host=this.host.concat("/")),this.checkHost().then((e=>(this.isConnected=e,this.session.setSessionStorageItem("hostUrl",this.host),e)))}))}disconnect(){this.isConnected=!1,this.streams.clear(),this.ongoingTurbo={},this.host=void 0}snapshot(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createDataLogonMessage(e,t);return h.k.debug(`HTTP MODE - ${s.MESSAGE_TYPE} (snapshot) message created -> `,s),this.send(s).then((e=>(this.dataLogoff(s.SOURCE_REF).catch((e=>h.k.error(e))),e)))}))}stream(e,t,s,r){const i=this.messageBuilder.createDataLogonMessage(e,r);h.k.debug(`HTTP MODE - ${i.MESSAGE_TYPE} (stream) message created -> `,i);const o=i.SOURCE_REF;this.streams.set(o,{SOURCE_REF:o,POLLING_FREQUENCY:new u.X(this.config.polling.POLLING_FREQUENCY),RESOURCE_NAME:e});const n=this.streams.get(o).POLLING_FREQUENCY,a=(0,S.z)((0,g.D)(this.send(i)),n.pipe((0,_.w)((e=>(0,T.F)(e)))).pipe((0,_.w)((()=>(0,g.D)(this.getMessage(i)))))).pipe((0,R.o)((()=>this.streams.has(o))),(0,p.x)((()=>{h.k.debug(`Terminating stream for ${e} - ${o}`),this.dataLogoff(o)})));return this.streams.get(o).STREAM=a,a}getMessage(t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){return this.http.get(e.getUrl(this.host,t),{headers:e.getHeaders(t)})}))}getMoreRows(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMoreRowsMessage(e);return h.k.debug(`HTTP MODE - ${t.MESSAGE_TYPE} message created -> `,t),this.send(t)}))}dataLogoff(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createDataLogoffMessage(e);return this.send(t).then((t=>(this.streams.has(e)&&(h.k.debug(`Removing stream ${e}`),this.streams.delete(e)),t)))}))}getMetadata(e,t=!0){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMetaRequestMessage(e);return h.k.debug(`HTTP MODE - ${t.MESSAGE_TYPE} (metadata) message created -> `,t),this.send(t).then((e=>e.DETAILS))}))}getJSONSchema(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMetaRequestMessage(e,f.N$.JSON_SCHEMA_REQUEST);return h.k.debug(`HTTP MODE! - ${t.MESSAGE_TYPE} (json schema) message created -> `,t),this.send(t)}))}request(e,t){const s=this.messageBuilder.createRequestMessage(e,t);return h.k.debug(`HTTP MODE! - ${s.MESSAGE_TYPE} (request server) message created -> `,s),this.send(s)}commitEvent(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createCommitMessage(e,t);return h.k.debug(`HTTP MODE! - ${s.MESSAGE_TYPE} (commit) message created -> `,s),this.send(s).then((t=>(this.maybeTurbo(e,t),t)))}))}maybeTurbo(e,t){var s;if(!(null===(s=null==t?void 0:t.MESSAGE_TYPE)||void 0===s?void 0:s.endsWith("_ACK")))return;if(this.ongoingTurbo[e])return void h.k.debug(`${e} polling frequency is already accelerated.`);const r=this.config.polling.POLLING_MAP[e];if(!(null==r?void 0:r.TEMP_FREQUENCY)||!r.AMOUNT_OF_POLLS)return;const i=r.TEMP_FREQUENCY,o=i*r.AMOUNT_OF_POLLS,n=JSON.parse(JSON.stringify(this.config.polling.POLLING_INTERVAL_MAP)),a=JSON.parse(JSON.stringify(this.config.polling.POLLING_INTERVAL_MAP));for(const e of r.QUERIES)a[e]=i,n[e]||(n[e]=this.config.polling.POLLING_FREQUENCY);h.k.debug(`${e} TRIGGERED -> ENFORCING TURBO | FREQUENCY=${i}ms DURATION=${o}`),this.ongoingTurbo[e]=!0,this.updateIntervals({polling:{POLLING_INTERVAL_MAP:a}}),setTimeout((()=>{h.k.debug(`RESTORED ORIGINAL POLLING INTERVALS FOR ${e}`),this.updateIntervals({polling:{POLLING_INTERVAL_MAP:n}}),this.ongoingTurbo[e]=!1}),o)}updateIntervals(e){const{POLLING_INTERVAL_MAP:t}=e.polling;t&&(this.config.polling.POLLING_INTERVAL_MAP=t,this.handlePollingIntervalMapUpdate(t))}handlePollingIntervalMapUpdate(e){if(e)for(const t in e){if(!e.hasOwnProperty(t))continue;const s=e[t];this.config.polling.POLLING_INTERVAL_MAP[t]=s,h.k.debug(`Setting polling frequency for ${t} = ${s}`),[...this.streams.values()].filter((e=>e.RESOURCE_NAME===t)).forEach((e=>{var t;return null===(t=null==e?void 0:e.POLLING_FREQUENCY)||void 0===t?void 0:t.next(s)}))}}static getHeaders(e){const t={"Content-type":"application/json; charset=UTF-8","source-ref":e.SOURCE_REF};return e.SESSION_AUTH_TOKEN&&(t["SESSION-AUTH-TOKEN"]=e.SESSION_AUTH_TOKEN),e.MESSAGE_TYPE===f.N$.EVENT_LOGOUT&&(t["SESSION-ID"]=e.SESSION_ID),t}static getBody(e){return JSON.stringify(e)}static getUrl(e,t){const s=t.MESSAGE_TYPE;let r=t.MESSAGE_TYPE.replace(/_/g,"-").toLowerCase();return s===f.N$.DATA_LOGON&&(r=t.DETAILS.DATASOURCE_NAME.replace(/_/g,"-").toLowerCase()),`${e}${r}`}};(0,r.__decorate)([o.observable],N.prototype,"host",void 0),(0,r.__decorate)([o.observable],N.prototype,"isWorking",void 0),(0,r.__decorate)([o.observable],N.prototype,"_isConnected",void 0),(0,r.__decorate)([o.volatile],N.prototype,"isConnected",null),N=(0,r.__decorate)([(0,r.__param)(0,I),(0,r.__param)(1,f.sW),(0,r.__param)(2,v.z),(0,r.__param)(3,c),(0,r.__param)(4,i.JSONSerializer),(0,r.__param)(5,(0,n.optional)(l))],N);const b=n.DI.createInterface((e=>e.singleton(N)));var C=s(3344),U=s(1057),k=s(7674),L=s(94),w=s(526),P=s(2040),y=s(8370),D=s(1262),G=s(9262);const F=1e4,H=6e4;var V;!function(e){e.Linear="linear",e.Exponential="exponential"}(V||(V={}));const $=(e,t)=>{const{reconnectInterval:s=F}=e,r=s>H?H:s,i=Math.round(Math.log2(H/r));return r*Math.pow(2,t%i)},Y=e=>{const{reconnectInterval:t=F}=e;return t>H?H:t};class B extends C.x{constructor(){super()}}class K{constructor(e,t,s,r){this._message=e,this._onMessage=t,this._onError=s,this._isSubscription=r}get sentMessage(){return this._message}get onReceivedMessage(){return this._onMessage}get onReceivedError(){return this._onError}get isSubscription(){return this._isSubscription}}let W=class{isConnectedChanged(e,t){this.isConnectedSubject.next(t)}constructor(e,t,s,r){this.messageBuilder=e,this.session=t,this.serializer=s,this.uuid=r,this.defaultInterval=1e4,this.secondsMultiplier=1e3,this.isConnectedSubject=new u.X(!1),this.isConnected=!1,this.hasValidSession=!1,this.heartbeatIsEnabled=!0,this.heartbeatInterval=this.defaultInterval,this.isReconnecting=!1,this.socketMessages=()=>this.wsMessages}get heartbeatLoggingIsEnabled(){var e,t;return null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableHeartbeatLogging)&&void 0!==t&&t}get messageLoggingIsEnabled(){var e,t;return null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableMessageLogging)&&void 0!==t&&t}connect(e,t,s){return this.url=e,this.connectOptions=t,this.reconnectOptions=s,new Promise((e=>{var t,s,i,o;h.k.info(`${this.isReconnecting?"Reconnecting":"Connecting"} to ${this.url}`);(!this.isReconnecting||!(null===(t=this.reconnectOptions)||void 0===t?void 0:t.reconnectStreams))&&this.cleanMessages(),null===(s=this.socketSubscription)||void 0===s||s.unsubscribe(),this.websocket=new D.p({url:this.url,openObserver:{next:()=>{this.isConnected=!0,this.session.setSessionStorageItem("hostUrl",this.url),this.prepareHeartbeat(),h.k.info("WebSocket connection is now open"),e(this.isConnected)}},closeObserver:{next:t=>{this.disconnectedByServer=!t.wasClean,this.isConnected=!1,this.disconnectedByServer&&h.k.info(`WebSocket connection was closed due an error - Code: ${t.code} ${t.reason?" | Reason: "+t.reason:""}`),e(this.isConnected)}},serializer:this.serializer.serialize,deserializer:this.serializer.deserialize});this.socketSubscription=this.websocket.subscribe(null!==(o=null===(i=this.connectOptions)||void 0===i?void 0:i.connectObserver)&&void 0!==o?o:{next:e=>(0,r.__awaiter)(this,void 0,void 0,(function*(){var t;const s=`Response Message received for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;this.logMessageTypeFlow(e.MESSAGE_TYPE,h.k.info,s);const{SOURCE_REF:r,MESSAGE_TYPE:i}=e,o=this.getMessageHandler(r,i);if(!o)return;let n=!1;switch(e.MESSAGE_TYPE){case f.N$.EVENT_LOGIN_AUTH_ACK:{this.hasValidSession=!0;const s=e.DETAILS;s.HEARTBEAT_INTERVAL_SECS&&void 0===(null===(t=this.connectOptions)||void 0===t?void 0:t.heartbeatInterval)&&(this.heartbeatInterval=s.HEARTBEAT_INTERVAL_SECS*this.secondsMultiplier,this.prepareHeartbeat());break}case f.Cs.LOGOUT_ACK:return this.hasValidSession=!1,o.onReceivedMessage.call(this,e),void this.cleanMessages();case f.Cs.LOGON_ACK:return;case f.Cs.LOGOFF_ACK:if(e.LOGGED_OUT&&this.hasValidSession){const e=this.messageBuilder.createRefreshTokenMessage(),t=yield this.send(e);t?t.MESSAGE_TYPE===f.N$.EVENT_LOGIN_AUTH_ACK&&(this.session.setAuthResult(t),this.wsMessageHandlers.forEach((e=>{e.isSubscription&&(e.sentMessage.SESSION_AUTH_TOKEN=t.SESSION_AUTH_TOKEN,this.websocket.next(e.sentMessage))}))):this.hasValidSession=!1}break;case f.Cs.QUERY_UPDATE:if(!o.isSubscription){const e=this.messageBuilder.createDataLogoffMessage(r);this.send(e)}break;case f.Cs.MSG_NACK:n=!0}n?o.onReceivedError.call(this,{receivedMessage:e,sentMessage:o.sentMessage}):o.onReceivedMessage.call(this,e),this.wsMessages.next(e),o.isSubscription||this.removeMessageHandler(r)})),error:e=>{h.k.debug("Error found: ",e),this.reconnect()},complete:()=>{var e;this.disconnectedByServer&&(null===(e=this.connectOptions)||void 0===e?void 0:e.alwaysOn)?this.reconnect():h.k.info("Connection is now closed")}})}))}prepareHeartbeat(){var e,t,s,i;this.heartbeatSubscription&&this.heartbeatSubscription.unsubscribe();const o=()=>(0,r.__awaiter)(this,void 0,void 0,(function*(){if(!this.isConnected)return;const e={MESSAGE_TYPE:f.Cs.HEARTBEAT_PING,SOURCE_REF:this.uuid.createId()},t=yield this.send(e);this.heartbeatIsEnabled=t.MESSAGE_TYPE===f.Cs.HEARTBEAT_PONG&&t.SOURCE_REF===e.SOURCE_REF}));if(null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableHeartbeat)&&void 0!==t?t:this.heartbeatIsEnabled){const e=null!==(i=null===(s=this.connectOptions)||void 0===s?void 0:s.heartbeatInterval)&&void 0!==i?i:this.heartbeatInterval;this.heartbeatSubscription=(0,U.H)(e,e).pipe((0,R.o)((()=>this.websocket&&this.isConnected)),(0,w.b)((()=>this.heartbeatLoggingIsEnabled&&h.k.debug(`Sending a heartbeat ping every ${e} ms`)))).subscribe((()=>o()))}}reconnect(){var e,t,s,r,i;const o=!(null===(e=this.connectOptions)||void 0===e?void 0:e.alwaysOn)&&!1===(null===(t=this.connectOptions)||void 0===t?void 0:t.enableHeartbeat);if(this.isReconnecting||o)return;this.isReconnecting=!0;const n=(null===(s=this.reconnectOptions)||void 0===s?void 0:s.reconnectStrategy)===V.Exponential?$:Y,a=this.isConnectedSubject.asObservable().pipe((0,_.w)((e=>e?(0,k.of)(-1):((e,t)=>new G.y((s=>{let r,i=0;return function o(){s.next(i),clearTimeout(r),r=setTimeout(o,t(e,i)),i+=1}(),()=>{clearTimeout(r)}})))(this.reconnectOptions,n).pipe((0,P.z)((e=>{var t,s,r;let i;return i=(null===(t=this.connectOptions)||void 0===t?void 0:t.alwaysOn)?e+1:null!==(r=null===(s=this.reconnectOptions)||void 0===s?void 0:s.reconnectAttempts)&&void 0!==r?r:10,e<i?(0,k.of)(e):(0,L._)((()=>new Error(`Max reconnect attempts ${i} reached.`)))}))))),(0,R.o)((()=>this.websocket&&!this.isConnected)));a.subscribe(null!==(i=null===(r=this.reconnectOptions)||void 0===r?void 0:r.reconnectObserver)&&void 0!==i?i:{next:e=>{h.k.debug(`Attempt no. ${e+1} to reconnect`),this.websocket.complete(),this.connect(this.url,this.connectOptions,this.reconnectOptions)},error:e=>{var t;h.k.debug(e),null===(t=this.socketSubscription)||void 0===t||t.unsubscribe(),this.isReconnecting=!1},complete:()=>{h.k.info(this.isConnected?"Reconnected":"Disconnected"),this.isReconnecting=!1,this.wsMessageHandlers.forEach((e=>{e.isSubscription&&this.websocket.next(e.sentMessage)}))}})}reset(){this.isConnected=!1,this.websocket&&this.websocket.complete(),this.websocket=null,this.cleanMessages()}cleanMessages(){this.wsMessages&&this.wsMessages.complete(),this.wsMessages=new B,this.wsMessageHandlers=new Map}send(e,t=!0){if(!this.isConnected)return void Promise.reject(new Error("WebSocket connection is closed"));const s=`Sending Message for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;return this.logMessageTypeFlow(e.MESSAGE_TYPE,h.k.info,s),new Promise(((s,r)=>{const i=e=>{s(e)},o=e=>{r(e)};t&&this.setMessageHandler(e,i,o),this.websocket.next(e)}))}sendForStream(e,t,s){if(!this.isConnected)return(0,L._)((()=>new Error("WebSocket connection is closed")));if(!this.hasValidSession)return(0,L._)((()=>new Error("WebSocket connection is open but there is no valid/active session, please check your auth flow")));const r=`Sending Message (stream) for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;return this.logMessageTypeFlow(e.MESSAGE_TYPE,h.k.info,r),this.setMessageHandler(e,t,s,!0),this.websocket.next(e),(0,g.D)(this.wsMessages.pipe((0,y.h)((t=>t.SOURCE_REF===e.SOURCE_REF))))}setMessageHandler(e,t,s,r=!1){const i=`Setting Message Handler for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;this.logMessageTypeFlow(e.MESSAGE_TYPE,h.k.debug,i),this.wsMessageHandlers.set(e.SOURCE_REF,new K(e,t,s,r))}removeMessageHandler(e){this.wsMessageHandlers.delete(e)}getMessageHandler(e,t){const s=`Getting Message Handler for SourceRef: ${e} | MessageType: ${t}`;return this.logMessageTypeFlow(t,h.k.debug,s),this.wsMessageHandlers.get(e)}logMessageTypeFlow(e,t,s){switch(e){case f.Cs.HEARTBEAT_PING:case f.Cs.HEARTBEAT_PONG:this.heartbeatLoggingIsEnabled&&t(s);break;default:this.messageLoggingIsEnabled&&t(s)}}};(0,r.__decorate)([o.observable],W.prototype,"websocket",void 0),(0,r.__decorate)([o.observable],W.prototype,"wsMessages",void 0),(0,r.__decorate)([o.observable],W.prototype,"wsMessageHandlers",void 0),(0,r.__decorate)([o.observable],W.prototype,"isConnected",void 0),(0,r.__decorate)([o.observable],W.prototype,"disconnectedByServer",void 0),(0,r.__decorate)([o.observable],W.prototype,"hasValidSession",void 0),(0,r.__decorate)([o.observable],W.prototype,"heartbeatIsEnabled",void 0),(0,r.__decorate)([o.observable],W.prototype,"isReconnecting",void 0),W=(0,r.__decorate)([(0,r.__param)(0,f.sW),(0,r.__param)(1,v.z),(0,r.__param)(2,O),(0,r.__param)(3,i.UUID)],W);const x=n.DI.createInterface((e=>e.singleton(W))),Q={connect:{alwaysOn:!1,enableHeartbeat:!0,enableHeartbeatLogging:!1,heartbeatInterval:1e4,enableMessageLogging:!1},reconnect:{reconnectAttempts:10,reconnectInterval:1e4,reconnectStreams:!0}};let j=class{get isConnected(){return this.socket.isConnected}get isConnectedSubject(){return this.socket.isConnectedSubject}constructor(e,t,s,r=Q){this.socket=e,this.messageBuilder=t,this.metaCache=s,this.config=r,this.isWorking=!1}httpMode(){return!1}setValidSession(e){this.socket.hasValidSession=e}send(e,t){return this.socket.send(e,t)}connect(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){return this.socket.reset(),d.test(e)?this.socket.connect(e,this.config.connect,this.config.reconnect):(h.k.error(`Specified host (${e}) is not valid WebSocket url. Connection will not proceed.`),void h.k.warn("Make sure the host url starts with wss:// or ws://"))}))}disconnect(){this.socket.reset()}snapshot(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createDataLogonMessage(e,t);return h.k.debug(`${s.MESSAGE_TYPE} (snapshot) message created -> `,s),this.socket.send(s)}))}stream(e,t,s,r){const i=this.messageBuilder.createDataLogonMessage(e,r);return h.k.debug(`${i.MESSAGE_TYPE} (stream) message created -> `,i),this.socket.sendForStream(i,t,s)}getMoreRows(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMoreRowsMessage(e);return h.k.debug(`${t.MESSAGE_TYPE} message created -> `,t),this.socket.send(t,!1)}))}dataLogoff(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createDataLogoffMessage(e);return h.k.debug(`${t.MESSAGE_TYPE} message created -> `,t),this.socket.send(t)}))}getMetadata(e,t=!0){var s;return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(t&&this.metaCache.hasMetadataFor(e))return h.k.debug(`Cached metadata retrieved for ${e}`),this.metaCache.getMetadataFor(e);const r=this.messageBuilder.createMetaRequestMessage(e);let i;h.k.debug(`${r.MESSAGE_TYPE} (metadata) message created -> `,r);try{this.isWorking=!0;const t=yield this.socket.send(r);i=null!==(s=null==t?void 0:t.DETAILS)&&void 0!==s?s:{},Object.keys(i).length&&this.metaCache.setMetadataFor(e,i)}catch(e){h.k.error(e)}finally{this.isWorking=!1}return i}))}getJSONSchema(e,t=!0){var s;return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(t&&this.metaCache.hasMetadataFor(e))return h.k.debug(`Cached JsonSchema retrieved for ${e}`),this.metaCache.getJsonSchemaFor(e);const r=this.messageBuilder.createMetaRequestMessage(e,f.N$.JSON_SCHEMA_REQUEST);let i;h.k.debug(`${r.MESSAGE_TYPE} (json schema) message created -> `,r);try{this.isWorking=!0,i=null!==(s=yield this.socket.send(r))&&void 0!==s?s:{},Object.keys(i).length&&this.metaCache.setJsonSchemaFor(e,i)}catch(e){h.k.error(e)}finally{this.isWorking=!1}return i}))}request(e,t){const s=this.messageBuilder.createRequestMessage(e,t);return h.k.debug(`${s.MESSAGE_TYPE} (request server) message created -> `,s),this.socket.send(s)}commitEvent(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createCommitMessage(e,t);return h.k.debug(`${s.MESSAGE_TYPE} (commit) message created -> `,s),this.socket.send(s)}))}};(0,r.__decorate)([o.observable],j.prototype,"isWorking",void 0),(0,r.__decorate)([o.volatile],j.prototype,"isConnected",null),j=(0,r.__decorate)([(0,r.__param)(0,x),(0,r.__param)(1,f.sW),(0,r.__param)(2,c),(0,r.__param)(3,(0,n.optional)(E))],j);const J="true"===i.FORCE_HTTP||!1,z=n.DI.createInterface((e=>e.singleton(j))),q=n.DI.createInterface((e=>J?e.aliasTo(b):e.aliasTo(z)))},9162:(e,t,s)=>{"use strict";s.d(t,{Cs:()=>r,N$:()=>i,QT:()=>o,sW:()=>l});var r,i,o,n=s(186),a=s(1950),c=s(5951),d=s(4077),h=s(5527);!function(e){e.LOGON_ACK="LOGON_ACK",e.LOGON_NACK="LOGON_NACK",e.LOGOFF_ACK="LOGOFF_ACK",e.LOGOFF_NACK="LOGOFF_NACK",e.HEARTBEAT_PING="HEARTBEAT_PING",e.HEARTBEAT_PONG="HEARTBEAT_PONG",e.MORE_ROWS="MORE_ROWS",e.MSG_ACK="MSG_ACK",e.MSG_NACK="MSG_NACK",e.LOGOUT_ACK="LOGOUT_ACK",e.LOGOUT_NACK="LOGOUT_NACK",e.QUERY_UPDATE="QUERY_UPDATE"}(r||(r={})),function(e){e.EVENT_LOGIN_AUTH="EVENT_LOGIN_AUTH",e.EVENT_LOGIN_AUTH_ACK="EVENT_LOGIN_AUTH_ACK",e.EVENT_LOGIN_AUTH_NACK="EVENT_LOGIN_AUTH_NACK",e.EVENT_LOGOUT="EVENT_LOGOUT",e.DATA_LOGON="DATA_LOGON",e.DATA_LOGOFF="DATA_LOGOFF",e.META_REQUEST="META_REQUEST",e.JSON_SCHEMA_REQUEST="JSON_SCHEMA_REQUEST",e.RESOURCES_REQUEST="RESOURCES_REQUEST",e.EVENT_CHANGE_USER_PASSWORD="EVENT_CHANGE_USER_PASSWORD",e.EVENT_SELF_SERVICE_PASSWORD_RESET="EVENT_SELF_SERVICE_PASSWORD_RESET",e.EVENT_PASSWORD_RESET_ACTION="EVENT_PASSWORD_RESET_ACTION"}(i||(i={})),function(e){e.SESSION_NOT_FOUND="SESSION_NOT_FOUND",e.UNKNOWN_MESSAGE_TYPE="UNKNOWN_MESSAGE_TYPE"}(o||(o={}));let E=class{constructor(e,t){this.session=e,this.uuid=t}createLoginMessage(e){let t;switch(e.type){case d.G.BASIC:t={USER_NAME:e.username,PASSWORD:e.password};break;case d.G.REFRESH:t={USER_NAME:e.username,REFRESH_AUTH_TOKEN:e.refreshToken};break;case d.G.SSO:t={SSO_TOKEN:e.ssoToken};break;case d.G.JWT:t={JWT:e.jwt,DOMAIN:e.domain}}return{DETAILS:t,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.EVENT_LOGIN_AUTH}}createLogoutMessage(e){var t,s;return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.EVENT_LOGOUT,SESSION_AUTH_TOKEN:null!==(t=e.authToken)&&void 0!==t?t:this.session.getSessionStorageItem("authToken"),SESSION_ID:null!==(s=e.sessionId)&&void 0!==s?s:this.session.getSessionStorageItem("sessionId")}}createDataLogonMessage(e,t){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.DATA_LOGON,DETAILS:Object.assign({DATASOURCE_NAME:e},t),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createDataLogoffMessage(e){return{SOURCE_REF:e,MESSAGE_TYPE:i.DATA_LOGOFF,SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createRequestMessage(e,t){return Object.assign({SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:e.startsWith("REQ_")?e:`REQ_${e}`},t)}createMetaRequestMessage(e,t=i.META_REQUEST){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:t,DETAILS:{FEATURE:e},SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createCommitMessage(e,t){return Object.assign({SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:e},t)}createRefreshTokenMessage(){return{SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:i.EVENT_LOGIN_AUTH,DETAILS:{REFRESH_AUTH_TOKEN:this.session.getSessionStorageItem("refreshToken")}}}createChangePasswordMessage(e,t,s){return{USER_NAME:e,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.EVENT_CHANGE_USER_PASSWORD,DETAILS:{OLD_PASSWORD:t,NEW_PASSWORD:s}}}createForgotPasswordMessage(e,t,s=e){return{USER_NAME:s,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.EVENT_SELF_SERVICE_PASSWORD_RESET,DETAILS:{USER_NAME:e,RETURN_URL:t}}}createForgotPasswordTokenMessage(e,t,s,r=e){return{USER_NAME:r,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.EVENT_PASSWORD_RESET_ACTION,DETAILS:{USER_NAME:e,RESET_TOKEN:t,NEW_PASSWORD:s}}}createMoreRowsMessage(e){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.MORE_ROWS,DETAILS:{SOURCE_REF:e},SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}};E=(0,n.__decorate)([(0,n.__param)(0,h.z),(0,n.__param)(1,a.UUID)],E);const l=c.DI.createInterface((e=>e.singleton(E)))},5127:(e,t,s)=>{"use strict";s.d(t,{$:()=>i});var r=s(2296);function i(e,t="ROW_REF"){const s=e=>{const s=Object.assign(Object.assign({},e),{[t]:e.DETAILS[t]});return delete s.DETAILS,s},i=[],o=[],n=[];for(const t of e.ROW)if(t.DETAILS)switch(t.DETAILS.OPERATION){case"INSERT":i.push(s(t));break;case"MODIFY":n.push(s(t));break;case"DELETE":o.push(s(t));break;default:r.k.error(`Unsupported operation type: '${t.DETAILS.OPERATION}'`)}return{inserts:i,deletes:o,updates:n,SOURCE_REF:e.SOURCE_REF}}},1871:(e,t,s)=>{"use strict";s.d(t,{Yh:()=>H});var r=s(186),i=s(3147),o=s(5951),n=s(1057),a=s(1966),c=s(7211),d=s(9866),h=s(1440),E=s(9162);function l(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)e[r]=s[r]}return e}var u=function e(t,s){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=l({},s,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var n in i)i[n]&&(o+="; "+n,!0!==i[n]&&(o+="="+i[n].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var s=document.cookie?document.cookie.split("; "):[],r={},i=0;i<s.length;i++){var o=s[i].split("="),n=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(r[a]=t.read(n,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",l({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,l({},this.attributes,t))},withConverter:function(t){return e(l({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(s)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const S=u;var g=s(4077),_=s(5527),T=s(2296);const R=o.DI.createInterface();function p(){return(null===navigator||void 0===navigator?void 0:navigator.credentials)?"PasswordCredential"in window||(T.k.warn("PasswordCredential not available in this browser."),!1):(T.k.warn("CredentialsContainer not available in this browser."),!1)}const v=":";function m(e="",t=v,s){return e.split(t,s).map((e=>e.trim())).filter((e=>""!==e))}function O(e,t=v){const s="string"==typeof e&&e.trim();return!!s&&s.includes(t)}function A(e,t=v){return"string"==typeof e&&e.trim()?(e.match(new RegExp(t,"g"))||[]).length:0}function I(e,t=v){for(const s of e)if(O(s,t))return s;return e.find((e=>"string"==typeof e&&!!e.trim()))}function f(e,t,s){const r="string"==typeof e&&e.trim();return!r||s&&!r.includes(s)||A(r)>1?s&&t&&s!==t?`${t}:${s}`:t||s:r}function M(e="credential"){T.k.warn(`Unable to migrate legacy ${e} to latest format. Please remove from your browser.`)}const N={password:!0,mediation:"optional"},b={cookie:{path:"/",name:"credentials",expires:7300,storePasswords:!1}};let C=class{constructor(e,t=b){this.session=e,this.config=t}createBasicCredentials(e){return{type:g.G.BASIC,username:e.username,password:e.password}}createRefreshCredentials(e){var t,s;return{type:g.G.REFRESH,username:null!==(t=null==e?void 0:e.username)&&void 0!==t?t:this.getUsername(),refreshToken:null!==(s=null==e?void 0:e.refreshToken)&&void 0!==s?s:this.getRefreshToken()}}createSSOCredentials(e){var t;return{type:g.G.SSO,ssoToken:null!==(t=null==e?void 0:e.ssoToken)&&void 0!==t?t:this.getSSOToken()}}validateBasicCredentials(e){return e&&!!e.username&&!!e.password}validateRefreshCredentials(e){return e&&!!e.refreshToken&&!!e.username}validateSSOCredentials(e){return e&&!!e.ssoToken}validateUserCredentialData(e,t){const s=e&&!!e.id&&!!e.name&&!e.name.includes(v)&&A(e.id)<=1;return t?s&&!!e.password:s}normaliseLegacyCredentialData(e,t){if(this.validateUserCredentialData(e,!0))return[e,!0];if(this.validateUserCredentialData(t))return[t,!1];if(e)try{const t=e,[s]=m(t.name||t.id),[r,i]=m(I([t.id,t.name]));return[{id:f(t.id||t.name,s,i),name:s,password:t.password||""},!0]}catch(e){M("PasswordCredential")}if(t)try{const e=t,[s]=m(e.name||e.username||e.organisation),[r,i]=m(I([e.organisation||e.username||e.name]));return[{id:f(e.id||e.username||e.name,s,i),name:s,password:e.password||""},!1]}catch(e){M("cookie")}return[void 0,!1]}storeCredentialsInContainer(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(!p())return;const t=new PasswordCredential(e);return T.k.debug("Storing credentials in CredentialsContainer"),navigator.credentials.store(t)}))}getCredentialsFromContainer(e=N){return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(p())return T.k.debug("Getting credentials from CredentialsContainer"),yield navigator.credentials.get(e)}))}storeCredentialsInCookie(e){const{password:t}=e,s=(0,r.__rest)(e,["password"]),i=this.config.cookie.storePasswords?e:s;return T.k.debug("Storing credentials in cookie"),!!S.set(this.config.cookie.name,JSON.stringify(i),{expires:this.config.cookie.expires,domain:location.hostname,path:this.config.cookie.path,secure:!0})}getCredentialsFromCookie(){T.k.debug("Getting credentials from cookie");const e=S.get(this.config.cookie.name);return e?JSON.parse(e):void 0}storeCredentials(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(p()){const t=yield this.storeCredentialsInContainer(e);return Promise.resolve(!!t)}return Promise.resolve(this.storeCredentialsInCookie(e))}))}getCredentials(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){return p()?this.getCredentialsFromContainer(e):Promise.resolve(this.getCredentialsFromCookie())}))}getSSOToken(){return this.session.getSessionStorageItem("ssoToken")}getUsername(){return this.session.getSessionStorageItem("username")}getRefreshToken(){return this.session.getSessionStorageItem("refreshToken")}removeCookie(){S.remove(this.config.cookie.name,{domain:location.hostname,path:this.config.cookie.path})}removeSSOToken(){this.session.removeSessionStorageItem("ssoToken")}removeUsername(){this.session.removeSessionStorageItem("username")}removeRefreshToken(){this.session.removeSessionStorageItem("refreshToken")}removeAll(){this.removeCookie(),this.removeSSOToken(),this.removeUsername(),this.removeRefreshToken()}preventSilentAccess(){return p()&&navigator.credentials.preventSilentAccess()}};C=(0,r.__decorate)([(0,r.__param)(0,_.z),(0,r.__param)(1,(0,o.optional)(R))],C);const U=o.DI.createInterface((e=>e.singleton(C)));class k{constructor(e){Object.assign(this,e)}hasAdminProfile(){return this.hasProfile("ADMIN")}hasPermission(e){return this.hasKey(this.permissions,e)}hasProfile(e){return this.hasKey(this.profiles,e)}hasKey(e,t){return!!(e&&e.length&&t)&&(Array.isArray(t)||(t=[t]),t.some((t=>e.includes(t))))}}(0,r.__decorate)([i.observable],k.prototype,"permissions",void 0),(0,r.__decorate)([i.observable],k.prototype,"profiles",void 0),(0,r.__decorate)([i.observable],k.prototype,"username",void 0);let L=class{get isLoggedIn(){return!!this.loggedUserResult&&!(!this.loggedUserResult.authToken||!this.loggedUserResult.sessionId)}constructor(e,t,s,r){this.session=e,this.connect=t,this.messageBuilder=s,this.credentialManager=r,this.isWorking=!1,this.loggedUserResult=null,this.currentUser=null}login(e){var t;return(0,r.__awaiter)(this,void 0,void 0,(function*(){this.isWorking=!0;try{const s=this.messageBuilder.createLoginMessage(e),r=yield this.connect.send(s);if(!r||r.ERROR||(null===(t=r.DETAILS)||void 0===t?void 0:t.ERROR))throw new g.l(s,r);this.applyAuthResults({authToken:r.SESSION_AUTH_TOKEN,refreshToken:r.REFRESH_AUTH_TOKEN,profiles:r.PROFILE,username:r.USER_NAME,permissions:r.PERMISSION,sessionId:r.SESSION_ID}),this.session.setAuthResult(r),T.k.debug("Login Authentication Result:",r)}catch(e){if(T.k.error("Login Authentication Error:",e),!(e instanceof g.l&&e.isIgnorableError()))throw this.removeAuthResults(),e;T.k.warn("Ignoring authentication error as it is a known edge case.")}finally{this.isWorking=!1}return this.loggedUserResult}))}logout(){var e;return(0,r.__awaiter)(this,void 0,void 0,(function*(){this.isWorking=!0;let t={success:!1};try{const s=this.messageBuilder.createLogoutMessage(this.loggedUserResult);this.session.deleteUserFromSessionStorage(),this.connect.setValidSession(!1);const{CODE:r,DETAILS:i,ERROR:o,MESSAGE_TYPE:n,OIDC_LOGOUT_URL:a}=yield this.connect.send(s),c=null!==(e=null==i?void 0:i.ERROR)&&void 0!==e?e:o,d=n===E.Cs.LOGOUT_NACK;d&&T.k.warn("Unexpected Logout NACK received during logout.",c),t={success:n===E.Cs.LOGOUT_ACK||r===E.QT.SESSION_NOT_FOUND||d,error:c},a&&window.open(a,"_self")}catch(e){const s=new g.l(e.sentMessage,e.receivedMessage);if(T.k.error("Logout Authentication Error:",s),!s.isIgnorableError())throw e;T.k.warn("Ignoring authentication error as it is a known edge case."),t.success=!0}finally{this.removeAuthResults(),this.isWorking=!1}return t}))}reAuthFromSession(){return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(yield this.ensureConnection()){const e=this.messageBuilder.createRefreshTokenMessage(),t=yield this.connect.send(e);if((null==t?void 0:t.MESSAGE_TYPE)===E.N$.EVENT_LOGIN_AUTH_ACK)return this.session.setAuthResult(t),this.connect.setValidSession(!0),this.applyAuthResults(this.getLoggedUserFromMessage(t)),!0}return this.session.deleteUserFromSessionStorage(),this.connect.setValidSession(!1),!1}))}ensureConnection(){return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(this.connect.isConnected)return!0;const e=this.session.getSessionStorageItem("hostUrl");return!!e&&this.connect.connect(e)}))}getLoggedUserFromMessage(e){const t=e.USER_NAME,s=e.SESSION_AUTH_TOKEN,r=e.REFRESH_AUTH_TOKEN;return t&&s&&r?{username:t,authToken:s,refreshToken:r,profiles:e.PROFILE,permissions:e.PERMISSION,sessionId:e.SESSION_ID}:null}applyAuthResults(e){e?(this.loggedUserResult={authToken:e.authToken,refreshToken:e.refreshToken,profiles:e.profiles,username:e.username,permissions:e.permissions,sessionId:e.sessionId},this.currentUser=new k({permissions:e.permissions,profiles:e.profiles,username:e.username})):this.removeAuthResults()}removeAuthResults(){this.loggedUserResult=null,this.currentUser=null}};(0,r.__decorate)([i.observable],L.prototype,"isWorking",void 0),(0,r.__decorate)([i.observable],L.prototype,"loggedUserResult",void 0),(0,r.__decorate)([i.observable],L.prototype,"currentUser",void 0),(0,r.__decorate)([i.volatile],L.prototype,"isLoggedIn",null),L=(0,r.__decorate)([(0,r.__param)(0,_.z),(0,r.__param)(1,h.lj),(0,r.__param)(2,E.sW),(0,r.__param)(3,U)],L);const w=o.DI.createInterface((e=>e.singleton(L)));var P=s(6306);var y=s(5127),D=s(2940);const G={options:{criteria:"",isSnapshot:!1,maxRows:D.WJ.MAX_ROWS_250,maxView:D.WJ.MAX_VIEW_1000,orderBy:"",resourceName:"",reverse:!1},criteriaToFields:function(e){const t=e.split("&&").map((e=>e.trim())),s={};return t.forEach((e=>{const t=e.substr(0,e.indexOf("=")).trim().replace(/["']/g,""),r=e.substr(e.lastIndexOf("=")+1,e.length).trim().replace(/["']/g,"");s[t]=r})),s},dataServerResultFilter:y.$};let F=class{constructor(e,t,s=G){this.connect=e,this.auth=t,this.config=s,this.initialized=!1,this.readOnly=!0,this.originalFieldDef=[],this.requestFields=[],this.fieldMetadata=[],this.availableIndexes=[]}init(e,t=!0){var s;return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(!this.validResourceName(null==e?void 0:e.resourceName))return!1;if(this.options=Object.assign(Object.assign({},this.config.options),e),t){T.k.debug(`Initializing ${this.options.resourceName} Datasource`);const t=yield this.connect.getMetadata(this.options.resourceName).catch((t=>T.k.error(`Metadata Fetch failed for ${e.resourceName}:`,t)));if(!t)return!1;this.resourceType=t.TYPE,this.availableIndexes=null!==(s=t.INDEXES)&&void 0!==s?s:[],this.originalFieldDef=(0,P.C)(t),this.fieldMetadata=(0,P.i)(this.originalFieldDef),this.requestFields=t.REQUEST_FIELD||[],T.k.debug(`Datasource for ${this.options.resourceName} is ready`)}return this.options.isSnapshot||(this._stream=yield this.createStream()),this.initialized=!0,this.initialized}))}get stream(){return this._stream}get params(){const e={CRITERIA_MATCH:this.options.criteria,FIELDS:this.options.fields,MAX_ROWS:this.options.maxRows,MAX_VIEW:this.options.maxView,REQUEST:this.options.request,REVERSE:this.options.reverse};if(this.options.orderBy)if(this.availableIndexes.findIndex((e=>e.NAME===this.options.orderBy))>-1)e.ORDER_BY=this.options.orderBy;else{const e=this.availableIndexes.map((e=>e.NAME));T.k.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return T.k.debug("Getting configured params:",e),e}snapshot(){var e;return(0,r.__awaiter)(this,void 0,void 0,(function*(){switch(T.k.debug(`Requesting snapshot for ${this.options.resourceName} (${this.resourceType}).`),this.resourceType){case D._g.DATASERVER:return this.connect.snapshot(this.options.resourceName,this.params);case D._g.REQUEST_SERVER:{const t={DETAILS:Object.assign({},this.params),REQUEST:null},s={};if(this.requestFields.forEach((e=>{s[e.NAME]="*"})),t.REQUEST=s,null===(e=null==this?void 0:this.options)||void 0===e?void 0:e.criteria){const e=this.config.criteriaToFields(this.options.criteria);t.REQUEST=Object.assign(Object.assign({},t.REQUEST),e)}return this.connect.request(this.options.resourceName,t)}default:throw new Error(`Snapshot not supported for selected resource type: ${this.resourceType}`)}}))}snapshotFiltered(e="ROW_REF"){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.snapshot();return Array.isArray(t)?t:t.REPLY?t.REPLY:t.ROW?this.config.dataServerResultFilter(t,e).inserts:void 0}))}createStream(){return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(![D._g.DATASERVER,D._g.REQUEST_SERVER].includes(this.resourceType))throw new Error(`Streaming not supported for selected resource type: ${this.resourceType}`);return this.resourceType===D._g.DATASERVER?this.createDataserverStream():(T.k.debug(`Creating fake stream by polling ${this.options.resourceName} REQUEST_SERVER`),this.createReqRepStream())}))}createDataserverStream(){return(0,r.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.options.resourceName,(e=>{}),(e=>T.k.error(e)),this.params)}))}createReqRepStream(){return(0,n.H)(0,D.WJ.REQ_REP_POLLING_INTERVAL_MS).pipe((0,c.o)((()=>this.connect.isConnected&&this.auth.isLoggedIn)),(0,d.w)((()=>(0,a.D)(this.snapshot()))))}validResourceName(e){return!!e&&!!e.trim().length}};(0,r.__decorate)([i.observable],F.prototype,"initialized",void 0),(0,r.__decorate)([i.observable],F.prototype,"readOnly",void 0),(0,r.__decorate)([i.volatile],F.prototype,"stream",null),F=(0,r.__decorate)([(0,r.__param)(0,h.lj),(0,r.__param)(1,w),(0,r.__param)(2,(0,o.optional)(D.tt))],F);const H=o.DI.createInterface((e=>e.transient(F)))},2940:(e,t,s)=>{"use strict";s.d(t,{_g:()=>r,WJ:()=>o,tt:()=>n});var r,i=s(5951);!function(e){e.DATASERVER="DATASERVER",e.EVENT_HANDLER="EVENT_HANDLER",e.REQUEST_SERVER="REQUEST_SERVER"}(r||(r={}));class o{}o.MAX_ROWS_250=250,o.MAX_VIEW_1000=1e3,o.REQ_REP_POLLING_INTERVAL_MS=1e4;const n=i.DI.createInterface()},2449:(e,t,s)=>{"use strict";function r(e,t=";"){return e?e.split(t).map((e=>e.trim())).sort(((e,t)=>e.localeCompare(t))).join(t):e}s.d(t,{p:()=>r})},3123:(e,t,s)=>{"use strict";var r;s.d(t,{r:()=>r,E:()=>i}),function(e){e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.ENUM="ENUM",e.DATE="DATE",e.DATETIME="DATETIME",e.CUSTOM="CUSTOM"}(r||(r={}));const i={STRING:r.STRING,ENUM:r.ENUM,BOOLEAN:r.BOOLEAN,INT:r.NUMBER,DOUBLE:r.NUMBER,BIGDECIMAL:r.NUMBER,DATE:r.DATE,DATETIME:r.DATETIME}},6306:(e,t,s)=>{"use strict";s.d(t,{i:()=>n,C:()=>a});var r=s(2940),i=s(2296),o=s(3123);const n=e=>e?e.map((e=>{const t={name:e.NAME,type:o.E[e.TYPE]||o.r.STRING};if(e.TYPE===o.r.ENUM&&e.VALID_VALUES)try{t.enumOptions=Array.isArray(e.VALID_VALUES)?e.VALID_VALUES:e.VALID_VALUES.split("|")}catch(e){i.k.error(e),t.enumOptions=[]}return t})):null,a=e=>{const t=null==e?void 0:e.TYPE;if(t===r._g.DATASERVER)return e.FIELD||[];if(t===r._g.REQUEST_SERVER)return e.REPLY_FIELD||[];throw new Error(`Unsupported resource type: ${t}`)}},5527:(e,t,s)=>{"use strict";s.d(t,{z:()=>o});var r=s(5951);class i{constructor(){this.storageKeyPrefix="",this.returnUrl=this.getSessionStorageItem("returnUrl")||""}deleteUserFromSessionStorage(){["authToken","refreshToken","sessionId","ssoToken"].forEach((e=>this.removeSessionStorageItem(e)))}setStorageKeyPrefix(e){this.storageKeyPrefix=`${e.replace(/\s/g,"")}/`}setAuthResult(e){this.setSessionStorageItem("authToken",e.SESSION_AUTH_TOKEN),this.setSessionStorageItem("refreshToken",e.REFRESH_AUTH_TOKEN),this.setSessionStorageItem("username",e.USER_NAME),this.setSessionStorageItem("sessionId",e.SESSION_ID)}captureReturnUrl(){const{pathname:e,search:t,hash:s}=location;if("/login"===e)return;const r=`${"/"!==e?e:""}`;this.returnUrl=`${r}${t}${s}`,this.setSessionStorageItem("returnUrl",this.returnUrl)}setItem(e,t,s){"local"===s?localStorage.setItem(this.storageKeyPrefix+e,t):sessionStorage.setItem(this.storageKeyPrefix+e,t)}getItem(e,t){return"local"===t?localStorage.getItem(this.storageKeyPrefix+e):sessionStorage.getItem(this.storageKeyPrefix+e)}removeItem(e,t){"local"===t?localStorage.removeItem(this.storageKeyPrefix+e):sessionStorage.removeItem(this.storageKeyPrefix+e)}setLocalStorageItem(e,t){this.setItem(e,t,"local")}setSessionStorageItem(e,t){this.setItem(e,t,"session")}getLocalStorageItem(e){return this.getItem(e,"local")}getSessionStorageItem(e){return this.getItem(e,"session")}removeLocalStorageItem(e){this.removeItem(e,"local")}removeSessionStorageItem(e){this.removeItem(e,"session")}}const o=r.DI.createInterface((e=>e.singleton(i)))},2296:(e,t,s)=>{"use strict";s.d(t,{k:()=>i});var r=s(1950);const i=(0,r.createLogger)("foundation-comms")}}]);
|
|
1
|
+
/*! For license information please see 905.905.3812026c3ca3c7ea2dd5.js.LICENSE.txt */
|
|
2
|
+
(self.webpackChunk_genesislcap_design_system_configurator=self.webpackChunk_genesislcap_design_system_configurator||[]).push([[905],{4077:(e,t,s)=>{"use strict";var r;s.d(t,{G:()=>r,l:()=>i}),function(e){e.BASIC="BASIC",e.SSO="SSO",e.JWT="JWT",e.REFRESH="REFRESH"}(r||(r={}));class i extends Error{constructor(e,t,s="Auth Failed \n"){super(s),this.sent=e,this.received=t,Object.setPrototypeOf(this,i.prototype)}isIgnorableError(){var e,t,s,r;return null===(r=null===(s=null===(t=null===(e=this.received)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.ERROR)||void 0===s?void 0:s.toLowerCase())||void 0===r?void 0:r.includes("request needs the user to be logged")}getMessageError(){var e,t;return Array.isArray(null===(e=this.received)||void 0===e?void 0:e.ERROR)?null===(t=this.received)||void 0===t?void 0:t.ERROR.map((e=>this.errorDetailFormatter(e))).join("\n"):""}getDetailsError(){var e,t,s,r;return Array.isArray(null===(t=null===(e=this.received)||void 0===e?void 0:e.DETAILS)||void 0===t?void 0:t.ERROR)?null===(r=null===(s=this.received)||void 0===s?void 0:s.DETAILS)||void 0===r?void 0:r.ERROR.map((e=>this.errorDetailFormatter(e))).join("\n"):""}hasPasswordExpiredError(){return this.hasErrorCode("PASSWORD_EXPIRED")}hasErrorCode(e){var t,s;return!!Array.isArray(null===(t=this.received)||void 0===t?void 0:t.ERROR)&&(null===(s=this.received)||void 0===s?void 0:s.ERROR.some((t=>t.CODE===e)))}errorDetailFormatter(e){return`\n ${e.CODE}: \n ${e.TEXT}`}}},1440:(e,t,s)=>{"use strict";s.d(t,{lj:()=>q});var r=s(186),i=s(8120),o=s(3147),n=s(5951);class a{constructor(){this.cachedMetadata=new Map,this.cachedJsonSchema=new Map}getMetadataFor(e){return this.cachedMetadata.get(e)}getJsonSchemaFor(e){return this.cachedJsonSchema.get(e)}hasMetadataFor(e){return this.cachedMetadata.has(e)}hasJsonSchemaFor(e){return this.cachedJsonSchema.has(e)}setMetadataFor(e,t){this.cachedMetadata.set(e,t)}setJsonSchemaFor(e,t){this.cachedJsonSchema.set(e,t)}}const c=n.DI.createInterface((e=>e.singleton(a))),d=new RegExp(/wss?:\/\/[-a-zA-Z0-9@:%._\+~#=]{1,256}\b([-a-zA-Z0-9()@:%_\+.~#?&\/=]*)\b\/*$/,"i");var h=s(2296);const E=n.DI.createInterface(),l=n.DI.createInterface();var u=s(6714),S=s(5373),g=s(1966),_=s(9866),T=s(804),R=s(7211),p=s(4866),v=s(5527);class m{serialize(e){return JSON.stringify(e)}deserialize(e){return e?"string"==typeof e?JSON.parse(e):e.data?JSON.parse(e.data):e.text().then((e=>JSON.parse(e))):Promise.resolve({})}}const O=n.DI.createInterface((e=>e.singleton(m)));let A=class{constructor(e){this.serializer=e}get(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const s=yield fetch(e,Object.assign(Object.assign({},t),{method:"GET"}));return(t.serializer||this.serializer).deserialize(s)}))}post(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const s=yield fetch(e,Object.assign(Object.assign({},t),{method:"POST"}));return(t.serializer||this.serializer).deserialize(s)}))}};A=(0,r.__decorate)([(0,r.__param)(0,O)],A);const I=n.DI.createInterface((e=>e.singleton(A)));var f=s(9162);const M={polling:Object.assign({POLLING_MAP:{EVENT_AMEND_USER:{TEMP_FREQUENCY:500,AMOUNT_OF_POLLS:5,QUERIES:["ALL_USERS"]}},POLLING_INTERVAL_MAP:{ALL_TRADES:5e3,ALL_USERS:5e3,ALL_PROCESSES_STATUS:1e4},POLLING_FREQUENCY:5e3},{})};let N=class e{get isConnected(){return this._isConnected}set isConnected(e){this._isConnected=e,this.isConnectedSubject.next(this._isConnected)}constructor(e,t,s,r,i,o=M){this.http=e,this.messageBuilder=t,this.session=s,this.metaCache=r,this.serializer=i,this.config=o,this.isWorking=!1,this._isConnected=!1,this.isConnectedSubject=new u.X(this._isConnected),this.ongoingTurbo={},this.streams=new Map}checkHost(){return(0,r.__awaiter)(this,void 0,void 0,(function*(){try{return this.getMessage({MESSAGE_TYPE:f.Cs.HEARTBEAT_PING,SOURCE_REF:"host check"}).then((e=>e.MESSAGE_TYPE===f.Cs.HEARTBEAT_PONG))}catch(e){return h.k.error(e),!1}}))}send(t,s){return this.http.post(e.getUrl(this.host,t),{body:e.getBody(t),headers:e.getHeaders(t)})}httpMode(){return!0}setValidSession(e){h.k.warn("setValidSession() called while in http polling mode.")}connect(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){return this.host=e,this.host.endsWith("/")||(this.host=this.host.concat("/")),this.checkHost().then((e=>(this.isConnected=e,this.session.setSessionStorageItem("hostUrl",this.host),e)))}))}disconnect(){this.isConnected=!1,this.streams.clear(),this.ongoingTurbo={},this.host=void 0}snapshot(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createDataLogonMessage(e,t);return h.k.debug(`HTTP MODE - ${s.MESSAGE_TYPE} (snapshot) message created -> `,s),this.send(s).then((e=>(this.dataLogoff(s.SOURCE_REF).catch((e=>h.k.error(e))),e)))}))}stream(e,t,s,r){const i=this.messageBuilder.createDataLogonMessage(e,r);h.k.debug(`HTTP MODE - ${i.MESSAGE_TYPE} (stream) message created -> `,i);const o=i.SOURCE_REF;this.streams.set(o,{SOURCE_REF:o,POLLING_FREQUENCY:new u.X(this.config.polling.POLLING_FREQUENCY),RESOURCE_NAME:e});const n=this.streams.get(o).POLLING_FREQUENCY,a=(0,S.z)((0,g.D)(this.send(i)),n.pipe((0,_.w)((e=>(0,T.F)(e)))).pipe((0,_.w)((()=>(0,g.D)(this.getMessage(i)))))).pipe((0,R.o)((()=>this.streams.has(o))),(0,p.x)((()=>{h.k.debug(`Terminating stream for ${e} - ${o}`),this.dataLogoff(o)})));return this.streams.get(o).STREAM=a,a}getMessage(t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){return this.http.get(e.getUrl(this.host,t),{headers:e.getHeaders(t)})}))}getMoreRows(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMoreRowsMessage(e);return h.k.debug(`HTTP MODE - ${t.MESSAGE_TYPE} message created -> `,t),this.send(t)}))}dataLogoff(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createDataLogoffMessage(e);return this.send(t).then((t=>(this.streams.has(e)&&(h.k.debug(`Removing stream ${e}`),this.streams.delete(e)),t)))}))}getMetadata(e,t=!0){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMetaRequestMessage(e);return h.k.debug(`HTTP MODE - ${t.MESSAGE_TYPE} (metadata) message created -> `,t),this.send(t).then((e=>e.DETAILS))}))}getJSONSchema(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMetaRequestMessage(e,f.N$.JSON_SCHEMA_REQUEST);return h.k.debug(`HTTP MODE! - ${t.MESSAGE_TYPE} (json schema) message created -> `,t),this.send(t)}))}request(e,t){const s=this.messageBuilder.createRequestMessage(e,t);return h.k.debug(`HTTP MODE! - ${s.MESSAGE_TYPE} (request server) message created -> `,s),this.send(s)}commitEvent(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createCommitMessage(e,t);return h.k.debug(`HTTP MODE! - ${s.MESSAGE_TYPE} (commit) message created -> `,s),this.send(s).then((t=>(this.maybeTurbo(e,t),t)))}))}maybeTurbo(e,t){var s;if(!(null===(s=null==t?void 0:t.MESSAGE_TYPE)||void 0===s?void 0:s.endsWith("_ACK")))return;if(this.ongoingTurbo[e])return void h.k.debug(`${e} polling frequency is already accelerated.`);const r=this.config.polling.POLLING_MAP[e];if(!(null==r?void 0:r.TEMP_FREQUENCY)||!r.AMOUNT_OF_POLLS)return;const i=r.TEMP_FREQUENCY,o=i*r.AMOUNT_OF_POLLS,n=JSON.parse(JSON.stringify(this.config.polling.POLLING_INTERVAL_MAP)),a=JSON.parse(JSON.stringify(this.config.polling.POLLING_INTERVAL_MAP));for(const e of r.QUERIES)a[e]=i,n[e]||(n[e]=this.config.polling.POLLING_FREQUENCY);h.k.debug(`${e} TRIGGERED -> ENFORCING TURBO | FREQUENCY=${i}ms DURATION=${o}`),this.ongoingTurbo[e]=!0,this.updateIntervals({polling:{POLLING_INTERVAL_MAP:a}}),setTimeout((()=>{h.k.debug(`RESTORED ORIGINAL POLLING INTERVALS FOR ${e}`),this.updateIntervals({polling:{POLLING_INTERVAL_MAP:n}}),this.ongoingTurbo[e]=!1}),o)}updateIntervals(e){const{POLLING_INTERVAL_MAP:t}=e.polling;t&&(this.config.polling.POLLING_INTERVAL_MAP=t,this.handlePollingIntervalMapUpdate(t))}handlePollingIntervalMapUpdate(e){if(e)for(const t in e){if(!e.hasOwnProperty(t))continue;const s=e[t];this.config.polling.POLLING_INTERVAL_MAP[t]=s,h.k.debug(`Setting polling frequency for ${t} = ${s}`),[...this.streams.values()].filter((e=>e.RESOURCE_NAME===t)).forEach((e=>{var t;return null===(t=null==e?void 0:e.POLLING_FREQUENCY)||void 0===t?void 0:t.next(s)}))}}static getHeaders(e){const t={"Content-type":"application/json; charset=UTF-8","source-ref":e.SOURCE_REF};return e.SESSION_AUTH_TOKEN&&(t["SESSION-AUTH-TOKEN"]=e.SESSION_AUTH_TOKEN),e.MESSAGE_TYPE===f.N$.EVENT_LOGOUT&&(t["SESSION-ID"]=e.SESSION_ID),t}static getBody(e){return JSON.stringify(e)}static getUrl(e,t){const s=t.MESSAGE_TYPE;let r=t.MESSAGE_TYPE.replace(/_/g,"-").toLowerCase();return s===f.N$.DATA_LOGON&&(r=t.DETAILS.DATASOURCE_NAME.replace(/_/g,"-").toLowerCase()),`${e}${r}`}};(0,r.__decorate)([o.observable],N.prototype,"host",void 0),(0,r.__decorate)([o.observable],N.prototype,"isWorking",void 0),(0,r.__decorate)([o.observable],N.prototype,"_isConnected",void 0),(0,r.__decorate)([o.volatile],N.prototype,"isConnected",null),N=(0,r.__decorate)([(0,r.__param)(0,I),(0,r.__param)(1,f.sW),(0,r.__param)(2,v.z),(0,r.__param)(3,c),(0,r.__param)(4,i.JSONSerializer),(0,r.__param)(5,(0,n.optional)(l))],N);const b=n.DI.createInterface((e=>e.singleton(N)));var C=s(3344),U=s(1057),k=s(7674),L=s(94),w=s(526),P=s(2040),y=s(8370),D=s(1262),G=s(9262);const F=1e4,H=6e4;var V;!function(e){e.Linear="linear",e.Exponential="exponential"}(V||(V={}));const $=(e,t)=>{const{reconnectInterval:s=F}=e,r=s>H?H:s,i=Math.round(Math.log2(H/r));return r*Math.pow(2,t%i)},Y=e=>{const{reconnectInterval:t=F}=e;return t>H?H:t};class B extends C.x{constructor(){super()}}class K{constructor(e,t,s,r){this._message=e,this._onMessage=t,this._onError=s,this._isSubscription=r}get sentMessage(){return this._message}get onReceivedMessage(){return this._onMessage}get onReceivedError(){return this._onError}get isSubscription(){return this._isSubscription}}let W=class{isConnectedChanged(e,t){this.isConnectedSubject.next(t)}constructor(e,t,s,r){this.messageBuilder=e,this.session=t,this.serializer=s,this.uuid=r,this.defaultInterval=1e4,this.secondsMultiplier=1e3,this.isConnectedSubject=new u.X(!1),this.isConnected=!1,this.hasValidSession=!1,this.heartbeatIsEnabled=!0,this.heartbeatInterval=this.defaultInterval,this.isReconnecting=!1,this.socketMessages=()=>this.wsMessages}get heartbeatLoggingIsEnabled(){var e,t;return null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableHeartbeatLogging)&&void 0!==t&&t}get messageLoggingIsEnabled(){var e,t;return null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableMessageLogging)&&void 0!==t&&t}connect(e,t,s){return this.url=e,this.connectOptions=t,this.reconnectOptions=s,new Promise((e=>{var t,s,i,o;h.k.info(`${this.isReconnecting?"Reconnecting":"Connecting"} to ${this.url}`);(!this.isReconnecting||!(null===(t=this.reconnectOptions)||void 0===t?void 0:t.reconnectStreams))&&this.cleanMessages(),null===(s=this.socketSubscription)||void 0===s||s.unsubscribe(),this.websocket=new D.p({url:this.url,openObserver:{next:()=>{this.isConnected=!0,this.session.setSessionStorageItem("hostUrl",this.url),this.prepareHeartbeat(),h.k.info("WebSocket connection is now open"),e(this.isConnected)}},closeObserver:{next:t=>{this.disconnectedByServer=!t.wasClean,this.isConnected=!1,this.disconnectedByServer&&h.k.info(`WebSocket connection was closed due an error - Code: ${t.code} ${t.reason?" | Reason: "+t.reason:""}`),e(this.isConnected)}},serializer:this.serializer.serialize,deserializer:this.serializer.deserialize});this.socketSubscription=this.websocket.subscribe(null!==(o=null===(i=this.connectOptions)||void 0===i?void 0:i.connectObserver)&&void 0!==o?o:{next:e=>(0,r.__awaiter)(this,void 0,void 0,(function*(){var t;const s=`Response Message received for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;this.logMessageTypeFlow(e.MESSAGE_TYPE,h.k.info,s);const{SOURCE_REF:r,MESSAGE_TYPE:i}=e,o=this.getMessageHandler(r,i);if(!o)return;let n=!1;switch(e.MESSAGE_TYPE){case f.N$.EVENT_LOGIN_AUTH_ACK:{this.hasValidSession=!0;const s=e.DETAILS;s.HEARTBEAT_INTERVAL_SECS&&void 0===(null===(t=this.connectOptions)||void 0===t?void 0:t.heartbeatInterval)&&(this.heartbeatInterval=s.HEARTBEAT_INTERVAL_SECS*this.secondsMultiplier,this.prepareHeartbeat());break}case f.Cs.LOGOUT_ACK:return this.hasValidSession=!1,o.onReceivedMessage.call(this,e),void this.cleanMessages();case f.Cs.LOGON_ACK:return;case f.Cs.LOGOFF_ACK:if(e.LOGGED_OUT&&this.hasValidSession){const e=this.messageBuilder.createRefreshTokenMessage(),t=yield this.send(e);t?t.MESSAGE_TYPE===f.N$.EVENT_LOGIN_AUTH_ACK&&(this.session.setAuthResult(t),this.wsMessageHandlers.forEach((e=>{e.isSubscription&&(e.sentMessage.SESSION_AUTH_TOKEN=t.SESSION_AUTH_TOKEN,this.websocket.next(e.sentMessage))}))):this.hasValidSession=!1}break;case f.Cs.QUERY_UPDATE:if(!o.isSubscription){const e=this.messageBuilder.createDataLogoffMessage(r);this.send(e)}break;case f.Cs.MSG_NACK:n=!0}n?o.onReceivedError.call(this,{receivedMessage:e,sentMessage:o.sentMessage}):o.onReceivedMessage.call(this,e),this.wsMessages.next(e),o.isSubscription||this.removeMessageHandler(r)})),error:e=>{h.k.debug("Error found: ",e),this.reconnect()},complete:()=>{var e;this.disconnectedByServer&&(null===(e=this.connectOptions)||void 0===e?void 0:e.alwaysOn)?this.reconnect():h.k.info("Connection is now closed")}})}))}prepareHeartbeat(){var e,t,s,i;this.heartbeatSubscription&&this.heartbeatSubscription.unsubscribe();const o=()=>(0,r.__awaiter)(this,void 0,void 0,(function*(){if(!this.isConnected)return;const e={MESSAGE_TYPE:f.Cs.HEARTBEAT_PING,SOURCE_REF:this.uuid.createId()},t=yield this.send(e);this.heartbeatIsEnabled=t.MESSAGE_TYPE===f.Cs.HEARTBEAT_PONG&&t.SOURCE_REF===e.SOURCE_REF}));if(null!==(t=null===(e=this.connectOptions)||void 0===e?void 0:e.enableHeartbeat)&&void 0!==t?t:this.heartbeatIsEnabled){const e=null!==(i=null===(s=this.connectOptions)||void 0===s?void 0:s.heartbeatInterval)&&void 0!==i?i:this.heartbeatInterval;this.heartbeatSubscription=(0,U.H)(e,e).pipe((0,R.o)((()=>this.websocket&&this.isConnected)),(0,w.b)((()=>this.heartbeatLoggingIsEnabled&&h.k.debug(`Sending a heartbeat ping every ${e} ms`)))).subscribe((()=>o()))}}reconnect(){var e,t,s,r,i;const o=!(null===(e=this.connectOptions)||void 0===e?void 0:e.alwaysOn)&&!1===(null===(t=this.connectOptions)||void 0===t?void 0:t.enableHeartbeat);if(this.isReconnecting||o)return;this.isReconnecting=!0;const n=(null===(s=this.reconnectOptions)||void 0===s?void 0:s.reconnectStrategy)===V.Exponential?$:Y,a=this.isConnectedSubject.asObservable().pipe((0,_.w)((e=>e?(0,k.of)(-1):((e,t)=>new G.y((s=>{let r,i=0;return function o(){s.next(i),clearTimeout(r),r=setTimeout(o,t(e,i)),i+=1}(),()=>{clearTimeout(r)}})))(this.reconnectOptions,n).pipe((0,P.z)((e=>{var t,s,r;let i;return i=(null===(t=this.connectOptions)||void 0===t?void 0:t.alwaysOn)?e+1:null!==(r=null===(s=this.reconnectOptions)||void 0===s?void 0:s.reconnectAttempts)&&void 0!==r?r:10,e<i?(0,k.of)(e):(0,L._)((()=>new Error(`Max reconnect attempts ${i} reached.`)))}))))),(0,R.o)((()=>this.websocket&&!this.isConnected)));a.subscribe(null!==(i=null===(r=this.reconnectOptions)||void 0===r?void 0:r.reconnectObserver)&&void 0!==i?i:{next:e=>{h.k.debug(`Attempt no. ${e+1} to reconnect`),this.websocket.complete(),this.connect(this.url,this.connectOptions,this.reconnectOptions)},error:e=>{var t;h.k.debug(e),null===(t=this.socketSubscription)||void 0===t||t.unsubscribe(),this.isReconnecting=!1},complete:()=>{h.k.info(this.isConnected?"Reconnected":"Disconnected"),this.isReconnecting=!1,this.wsMessageHandlers.forEach((e=>{e.isSubscription&&this.websocket.next(e.sentMessage)}))}})}reset(){this.isConnected=!1,this.websocket&&this.websocket.complete(),this.websocket=null,this.cleanMessages()}cleanMessages(){this.wsMessages&&this.wsMessages.complete(),this.wsMessages=new B,this.wsMessageHandlers=new Map}send(e,t=!0){if(!this.isConnected)return void Promise.reject(new Error("WebSocket connection is closed"));const s=`Sending Message for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;return this.logMessageTypeFlow(e.MESSAGE_TYPE,h.k.info,s),new Promise(((s,r)=>{const i=e=>{s(e)},o=e=>{r(e)};t&&this.setMessageHandler(e,i,o),this.websocket.next(e)}))}sendForStream(e,t,s){if(!this.isConnected)return(0,L._)((()=>new Error("WebSocket connection is closed")));if(!this.hasValidSession)return(0,L._)((()=>new Error("WebSocket connection is open but there is no valid/active session, please check your auth flow")));const r=`Sending Message (stream) for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;return this.logMessageTypeFlow(e.MESSAGE_TYPE,h.k.info,r),this.setMessageHandler(e,t,s,!0),this.websocket.next(e),(0,g.D)(this.wsMessages.pipe((0,y.h)((t=>t.SOURCE_REF===e.SOURCE_REF))))}setMessageHandler(e,t,s,r=!1){const i=`Setting Message Handler for SourceRef: ${e.SOURCE_REF} | MessageType: ${e.MESSAGE_TYPE}`;this.logMessageTypeFlow(e.MESSAGE_TYPE,h.k.debug,i),this.wsMessageHandlers.set(e.SOURCE_REF,new K(e,t,s,r))}removeMessageHandler(e){this.wsMessageHandlers.delete(e)}getMessageHandler(e,t){const s=`Getting Message Handler for SourceRef: ${e} | MessageType: ${t}`;return this.logMessageTypeFlow(t,h.k.debug,s),this.wsMessageHandlers.get(e)}logMessageTypeFlow(e,t,s){switch(e){case f.Cs.HEARTBEAT_PING:case f.Cs.HEARTBEAT_PONG:this.heartbeatLoggingIsEnabled&&t(s);break;default:this.messageLoggingIsEnabled&&t(s)}}};(0,r.__decorate)([o.observable],W.prototype,"websocket",void 0),(0,r.__decorate)([o.observable],W.prototype,"wsMessages",void 0),(0,r.__decorate)([o.observable],W.prototype,"wsMessageHandlers",void 0),(0,r.__decorate)([o.observable],W.prototype,"isConnected",void 0),(0,r.__decorate)([o.observable],W.prototype,"disconnectedByServer",void 0),(0,r.__decorate)([o.observable],W.prototype,"hasValidSession",void 0),(0,r.__decorate)([o.observable],W.prototype,"heartbeatIsEnabled",void 0),(0,r.__decorate)([o.observable],W.prototype,"isReconnecting",void 0),W=(0,r.__decorate)([(0,r.__param)(0,f.sW),(0,r.__param)(1,v.z),(0,r.__param)(2,O),(0,r.__param)(3,i.UUID)],W);const x=n.DI.createInterface((e=>e.singleton(W))),Q={connect:{alwaysOn:!1,enableHeartbeat:!0,enableHeartbeatLogging:!1,heartbeatInterval:1e4,enableMessageLogging:!1},reconnect:{reconnectAttempts:10,reconnectInterval:1e4,reconnectStreams:!0}};let j=class{get isConnected(){return this.socket.isConnected}get isConnectedSubject(){return this.socket.isConnectedSubject}constructor(e,t,s,r=Q){this.socket=e,this.messageBuilder=t,this.metaCache=s,this.config=r,this.isWorking=!1}httpMode(){return!1}setValidSession(e){this.socket.hasValidSession=e}send(e,t){return this.socket.send(e,t)}connect(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){return this.socket.reset(),d.test(e)?this.socket.connect(e,this.config.connect,this.config.reconnect):(h.k.error(`Specified host (${e}) is not valid WebSocket url. Connection will not proceed.`),void h.k.warn("Make sure the host url starts with wss:// or ws://"))}))}disconnect(){this.socket.reset()}snapshot(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createDataLogonMessage(e,t);return h.k.debug(`${s.MESSAGE_TYPE} (snapshot) message created -> `,s),this.socket.send(s)}))}stream(e,t,s,r){const i=this.messageBuilder.createDataLogonMessage(e,r);return h.k.debug(`${i.MESSAGE_TYPE} (stream) message created -> `,i),this.socket.sendForStream(i,t,s)}getMoreRows(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createMoreRowsMessage(e);return h.k.debug(`${t.MESSAGE_TYPE} message created -> `,t),this.socket.send(t,!1)}))}dataLogoff(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=this.messageBuilder.createDataLogoffMessage(e);return h.k.debug(`${t.MESSAGE_TYPE} message created -> `,t),this.socket.send(t)}))}getMetadata(e,t=!0){var s;return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(t&&this.metaCache.hasMetadataFor(e))return h.k.debug(`Cached metadata retrieved for ${e}`),this.metaCache.getMetadataFor(e);const r=this.messageBuilder.createMetaRequestMessage(e);let i;h.k.debug(`${r.MESSAGE_TYPE} (metadata) message created -> `,r);try{this.isWorking=!0;const t=yield this.socket.send(r);i=null!==(s=null==t?void 0:t.DETAILS)&&void 0!==s?s:{},Object.keys(i).length&&this.metaCache.setMetadataFor(e,i)}catch(e){h.k.error(e)}finally{this.isWorking=!1}return i}))}getJSONSchema(e,t=!0){var s;return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(t&&this.metaCache.hasMetadataFor(e))return h.k.debug(`Cached JsonSchema retrieved for ${e}`),this.metaCache.getJsonSchemaFor(e);const r=this.messageBuilder.createMetaRequestMessage(e,f.N$.JSON_SCHEMA_REQUEST);let i;h.k.debug(`${r.MESSAGE_TYPE} (json schema) message created -> `,r);try{this.isWorking=!0,i=null!==(s=yield this.socket.send(r))&&void 0!==s?s:{},Object.keys(i).length&&this.metaCache.setJsonSchemaFor(e,i)}catch(e){h.k.error(e)}finally{this.isWorking=!1}return i}))}request(e,t){const s=this.messageBuilder.createRequestMessage(e,t);return h.k.debug(`${s.MESSAGE_TYPE} (request server) message created -> `,s),this.socket.send(s)}commitEvent(e,t){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const s=this.messageBuilder.createCommitMessage(e,t);return h.k.debug(`${s.MESSAGE_TYPE} (commit) message created -> `,s),this.socket.send(s)}))}};(0,r.__decorate)([o.observable],j.prototype,"isWorking",void 0),(0,r.__decorate)([o.volatile],j.prototype,"isConnected",null),j=(0,r.__decorate)([(0,r.__param)(0,x),(0,r.__param)(1,f.sW),(0,r.__param)(2,c),(0,r.__param)(3,(0,n.optional)(E))],j);const J="true"===i.FORCE_HTTP||!1,z=n.DI.createInterface((e=>e.singleton(j))),q=n.DI.createInterface((e=>J?e.aliasTo(b):e.aliasTo(z)))},9162:(e,t,s)=>{"use strict";s.d(t,{Cs:()=>r,N$:()=>i,QT:()=>o,sW:()=>l});var r,i,o,n=s(186),a=s(8120),c=s(5951),d=s(4077),h=s(5527);!function(e){e.LOGON_ACK="LOGON_ACK",e.LOGON_NACK="LOGON_NACK",e.LOGOFF_ACK="LOGOFF_ACK",e.LOGOFF_NACK="LOGOFF_NACK",e.HEARTBEAT_PING="HEARTBEAT_PING",e.HEARTBEAT_PONG="HEARTBEAT_PONG",e.MORE_ROWS="MORE_ROWS",e.MSG_ACK="MSG_ACK",e.MSG_NACK="MSG_NACK",e.LOGOUT_ACK="LOGOUT_ACK",e.LOGOUT_NACK="LOGOUT_NACK",e.QUERY_UPDATE="QUERY_UPDATE"}(r||(r={})),function(e){e.EVENT_LOGIN_AUTH="EVENT_LOGIN_AUTH",e.EVENT_LOGIN_AUTH_ACK="EVENT_LOGIN_AUTH_ACK",e.EVENT_LOGIN_AUTH_NACK="EVENT_LOGIN_AUTH_NACK",e.EVENT_LOGOUT="EVENT_LOGOUT",e.DATA_LOGON="DATA_LOGON",e.DATA_LOGOFF="DATA_LOGOFF",e.META_REQUEST="META_REQUEST",e.JSON_SCHEMA_REQUEST="JSON_SCHEMA_REQUEST",e.RESOURCES_REQUEST="RESOURCES_REQUEST",e.EVENT_CHANGE_USER_PASSWORD="EVENT_CHANGE_USER_PASSWORD",e.EVENT_SELF_SERVICE_PASSWORD_RESET="EVENT_SELF_SERVICE_PASSWORD_RESET",e.EVENT_PASSWORD_RESET_ACTION="EVENT_PASSWORD_RESET_ACTION"}(i||(i={})),function(e){e.SESSION_NOT_FOUND="SESSION_NOT_FOUND",e.UNKNOWN_MESSAGE_TYPE="UNKNOWN_MESSAGE_TYPE"}(o||(o={}));let E=class{constructor(e,t){this.session=e,this.uuid=t}createLoginMessage(e){let t;switch(e.type){case d.G.BASIC:t={USER_NAME:e.username,PASSWORD:e.password};break;case d.G.REFRESH:t={USER_NAME:e.username,REFRESH_AUTH_TOKEN:e.refreshToken};break;case d.G.SSO:t={SSO_TOKEN:e.ssoToken};break;case d.G.JWT:t={JWT:e.jwt,DOMAIN:e.domain}}return{DETAILS:t,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.EVENT_LOGIN_AUTH}}createLogoutMessage(e){var t,s;return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.EVENT_LOGOUT,SESSION_AUTH_TOKEN:null!==(t=e.authToken)&&void 0!==t?t:this.session.getSessionStorageItem("authToken"),SESSION_ID:null!==(s=e.sessionId)&&void 0!==s?s:this.session.getSessionStorageItem("sessionId")}}createDataLogonMessage(e,t){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.DATA_LOGON,DETAILS:Object.assign({DATASOURCE_NAME:e},t),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createDataLogoffMessage(e){return{SOURCE_REF:e,MESSAGE_TYPE:i.DATA_LOGOFF,SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createRequestMessage(e,t){return Object.assign({SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:e.startsWith("REQ_")?e:`REQ_${e}`},t)}createMetaRequestMessage(e,t=i.META_REQUEST){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:t,DETAILS:{FEATURE:e},SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}createCommitMessage(e,t){return Object.assign({SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:e},t)}createRefreshTokenMessage(){return{SOURCE_REF:this.uuid.createId(),SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken"),MESSAGE_TYPE:i.EVENT_LOGIN_AUTH,DETAILS:{REFRESH_AUTH_TOKEN:this.session.getSessionStorageItem("refreshToken")}}}createChangePasswordMessage(e,t,s){return{USER_NAME:e,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.EVENT_CHANGE_USER_PASSWORD,DETAILS:{OLD_PASSWORD:t,NEW_PASSWORD:s}}}createForgotPasswordMessage(e,t,s=e){return{USER_NAME:s,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.EVENT_SELF_SERVICE_PASSWORD_RESET,DETAILS:{USER_NAME:e,RETURN_URL:t}}}createForgotPasswordTokenMessage(e,t,s,r=e){return{USER_NAME:r,SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:i.EVENT_PASSWORD_RESET_ACTION,DETAILS:{USER_NAME:e,RESET_TOKEN:t,NEW_PASSWORD:s}}}createMoreRowsMessage(e){return{SOURCE_REF:this.uuid.createId(),MESSAGE_TYPE:r.MORE_ROWS,DETAILS:{SOURCE_REF:e},SESSION_AUTH_TOKEN:this.session.getSessionStorageItem("authToken")}}};E=(0,n.__decorate)([(0,n.__param)(0,h.z),(0,n.__param)(1,a.UUID)],E);const l=c.DI.createInterface((e=>e.singleton(E)))},5127:(e,t,s)=>{"use strict";s.d(t,{$:()=>i});var r=s(2296);function i(e,t="ROW_REF"){const s=e=>{const s=Object.assign(Object.assign({},e),{[t]:e.DETAILS[t]});return delete s.DETAILS,s},i=[],o=[],n=[];for(const t of e.ROW)if(t.DETAILS)switch(t.DETAILS.OPERATION){case"INSERT":i.push(s(t));break;case"MODIFY":n.push(s(t));break;case"DELETE":o.push(s(t));break;default:r.k.error(`Unsupported operation type: '${t.DETAILS.OPERATION}'`)}return{inserts:i,deletes:o,updates:n,SOURCE_REF:e.SOURCE_REF}}},1871:(e,t,s)=>{"use strict";s.d(t,{Yh:()=>H});var r=s(186),i=s(3147),o=s(5951),n=s(1057),a=s(1966),c=s(7211),d=s(9866),h=s(1440),E=s(9162);function l(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var r in s)e[r]=s[r]}return e}var u=function e(t,s){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=l({},s,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var n in i)i[n]&&(o+="; "+n,!0!==i[n]&&(o+="="+i[n].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var s=document.cookie?document.cookie.split("; "):[],r={},i=0;i<s.length;i++){var o=s[i].split("="),n=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(r[a]=t.read(n,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",l({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,l({},this.attributes,t))},withConverter:function(t){return e(l({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(s)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const S=u;var g=s(4077),_=s(5527),T=s(2296);const R=o.DI.createInterface();function p(){return(null===navigator||void 0===navigator?void 0:navigator.credentials)?"PasswordCredential"in window||(T.k.warn("PasswordCredential not available in this browser."),!1):(T.k.warn("CredentialsContainer not available in this browser."),!1)}const v=":";function m(e="",t=v,s){return e.split(t,s).map((e=>e.trim())).filter((e=>""!==e))}function O(e,t=v){const s="string"==typeof e&&e.trim();return!!s&&s.includes(t)}function A(e,t=v){return"string"==typeof e&&e.trim()?(e.match(new RegExp(t,"g"))||[]).length:0}function I(e,t=v){for(const s of e)if(O(s,t))return s;return e.find((e=>"string"==typeof e&&!!e.trim()))}function f(e,t,s){const r="string"==typeof e&&e.trim();return!r||s&&!r.includes(s)||A(r)>1?s&&t&&s!==t?`${t}:${s}`:t||s:r}function M(e="credential"){T.k.warn(`Unable to migrate legacy ${e} to latest format. Please remove from your browser.`)}const N={password:!0,mediation:"optional"},b={cookie:{path:"/",name:"credentials",expires:7300,storePasswords:!1}};let C=class{constructor(e,t=b){this.session=e,this.config=t}createBasicCredentials(e){return{type:g.G.BASIC,username:e.username,password:e.password}}createRefreshCredentials(e){var t,s;return{type:g.G.REFRESH,username:null!==(t=null==e?void 0:e.username)&&void 0!==t?t:this.getUsername(),refreshToken:null!==(s=null==e?void 0:e.refreshToken)&&void 0!==s?s:this.getRefreshToken()}}createSSOCredentials(e){var t;return{type:g.G.SSO,ssoToken:null!==(t=null==e?void 0:e.ssoToken)&&void 0!==t?t:this.getSSOToken()}}validateBasicCredentials(e){return e&&!!e.username&&!!e.password}validateRefreshCredentials(e){return e&&!!e.refreshToken&&!!e.username}validateSSOCredentials(e){return e&&!!e.ssoToken}validateUserCredentialData(e,t){const s=e&&!!e.id&&!!e.name&&!e.name.includes(v)&&A(e.id)<=1;return t?s&&!!e.password:s}normaliseLegacyCredentialData(e,t){if(this.validateUserCredentialData(e,!0))return[e,!0];if(this.validateUserCredentialData(t))return[t,!1];if(e)try{const t=e,[s]=m(t.name||t.id),[r,i]=m(I([t.id,t.name]));return[{id:f(t.id||t.name,s,i),name:s,password:t.password||""},!0]}catch(e){M("PasswordCredential")}if(t)try{const e=t,[s]=m(e.name||e.username||e.organisation),[r,i]=m(I([e.organisation||e.username||e.name]));return[{id:f(e.id||e.username||e.name,s,i),name:s,password:e.password||""},!1]}catch(e){M("cookie")}return[void 0,!1]}storeCredentialsInContainer(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(!p())return;const t=new PasswordCredential(e);return T.k.debug("Storing credentials in CredentialsContainer"),navigator.credentials.store(t)}))}getCredentialsFromContainer(e=N){return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(p())return T.k.debug("Getting credentials from CredentialsContainer"),yield navigator.credentials.get(e)}))}storeCredentialsInCookie(e){const{password:t}=e,s=(0,r.__rest)(e,["password"]),i=this.config.cookie.storePasswords?e:s;return T.k.debug("Storing credentials in cookie"),!!S.set(this.config.cookie.name,JSON.stringify(i),{expires:this.config.cookie.expires,domain:location.hostname,path:this.config.cookie.path,secure:!0})}getCredentialsFromCookie(){T.k.debug("Getting credentials from cookie");const e=S.get(this.config.cookie.name);return e?JSON.parse(e):void 0}storeCredentials(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(p()){const t=yield this.storeCredentialsInContainer(e);return Promise.resolve(!!t)}return Promise.resolve(this.storeCredentialsInCookie(e))}))}getCredentials(e){return(0,r.__awaiter)(this,void 0,void 0,(function*(){return p()?this.getCredentialsFromContainer(e):Promise.resolve(this.getCredentialsFromCookie())}))}getSSOToken(){return this.session.getSessionStorageItem("ssoToken")}getUsername(){return this.session.getSessionStorageItem("username")}getRefreshToken(){return this.session.getSessionStorageItem("refreshToken")}removeCookie(){S.remove(this.config.cookie.name,{domain:location.hostname,path:this.config.cookie.path})}removeSSOToken(){this.session.removeSessionStorageItem("ssoToken")}removeUsername(){this.session.removeSessionStorageItem("username")}removeRefreshToken(){this.session.removeSessionStorageItem("refreshToken")}removeAll(){this.removeCookie(),this.removeSSOToken(),this.removeUsername(),this.removeRefreshToken()}preventSilentAccess(){return p()&&navigator.credentials.preventSilentAccess()}};C=(0,r.__decorate)([(0,r.__param)(0,_.z),(0,r.__param)(1,(0,o.optional)(R))],C);const U=o.DI.createInterface((e=>e.singleton(C)));class k{constructor(e){Object.assign(this,e)}hasAdminProfile(){return this.hasProfile("ADMIN")}hasPermission(e){return this.hasKey(this.permissions,e)}hasProfile(e){return this.hasKey(this.profiles,e)}hasKey(e,t){return!!(e&&e.length&&t)&&(Array.isArray(t)||(t=[t]),t.some((t=>e.includes(t))))}}(0,r.__decorate)([i.observable],k.prototype,"permissions",void 0),(0,r.__decorate)([i.observable],k.prototype,"profiles",void 0),(0,r.__decorate)([i.observable],k.prototype,"username",void 0);let L=class{get isLoggedIn(){return!!this.loggedUserResult&&!(!this.loggedUserResult.authToken||!this.loggedUserResult.sessionId)}constructor(e,t,s,r){this.session=e,this.connect=t,this.messageBuilder=s,this.credentialManager=r,this.isWorking=!1,this.loggedUserResult=null,this.currentUser=null}login(e){var t;return(0,r.__awaiter)(this,void 0,void 0,(function*(){this.isWorking=!0;try{const s=this.messageBuilder.createLoginMessage(e),r=yield this.connect.send(s);if(!r||r.ERROR||(null===(t=r.DETAILS)||void 0===t?void 0:t.ERROR))throw new g.l(s,r);this.applyAuthResults({authToken:r.SESSION_AUTH_TOKEN,refreshToken:r.REFRESH_AUTH_TOKEN,profiles:r.PROFILE,username:r.USER_NAME,permissions:r.PERMISSION,sessionId:r.SESSION_ID}),this.session.setAuthResult(r),T.k.debug("Login Authentication Result:",r)}catch(e){if(T.k.error("Login Authentication Error:",e),!(e instanceof g.l&&e.isIgnorableError()))throw this.removeAuthResults(),e;T.k.warn("Ignoring authentication error as it is a known edge case.")}finally{this.isWorking=!1}return this.loggedUserResult}))}logout(){var e;return(0,r.__awaiter)(this,void 0,void 0,(function*(){this.isWorking=!0;let t={success:!1};try{const s=this.messageBuilder.createLogoutMessage(this.loggedUserResult);this.session.deleteUserFromSessionStorage(),this.connect.setValidSession(!1);const{CODE:r,DETAILS:i,ERROR:o,MESSAGE_TYPE:n,OIDC_LOGOUT_URL:a}=yield this.connect.send(s),c=null!==(e=null==i?void 0:i.ERROR)&&void 0!==e?e:o,d=n===E.Cs.LOGOUT_NACK;d&&T.k.warn("Unexpected Logout NACK received during logout.",c),t={success:n===E.Cs.LOGOUT_ACK||r===E.QT.SESSION_NOT_FOUND||d,error:c},a&&window.open(a,"_self")}catch(e){const s=new g.l(e.sentMessage,e.receivedMessage);if(T.k.error("Logout Authentication Error:",s),!s.isIgnorableError())throw e;T.k.warn("Ignoring authentication error as it is a known edge case."),t.success=!0}finally{this.removeAuthResults(),this.isWorking=!1}return t}))}reAuthFromSession(){return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(yield this.ensureConnection()){const e=this.messageBuilder.createRefreshTokenMessage(),t=yield this.connect.send(e);if((null==t?void 0:t.MESSAGE_TYPE)===E.N$.EVENT_LOGIN_AUTH_ACK)return this.session.setAuthResult(t),this.connect.setValidSession(!0),this.applyAuthResults(this.getLoggedUserFromMessage(t)),!0}return this.session.deleteUserFromSessionStorage(),this.connect.setValidSession(!1),!1}))}ensureConnection(){return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(this.connect.isConnected)return!0;const e=this.session.getSessionStorageItem("hostUrl");return!!e&&this.connect.connect(e)}))}getLoggedUserFromMessage(e){const t=e.USER_NAME,s=e.SESSION_AUTH_TOKEN,r=e.REFRESH_AUTH_TOKEN;return t&&s&&r?{username:t,authToken:s,refreshToken:r,profiles:e.PROFILE,permissions:e.PERMISSION,sessionId:e.SESSION_ID}:null}applyAuthResults(e){e?(this.loggedUserResult={authToken:e.authToken,refreshToken:e.refreshToken,profiles:e.profiles,username:e.username,permissions:e.permissions,sessionId:e.sessionId},this.currentUser=new k({permissions:e.permissions,profiles:e.profiles,username:e.username})):this.removeAuthResults()}removeAuthResults(){this.loggedUserResult=null,this.currentUser=null}};(0,r.__decorate)([i.observable],L.prototype,"isWorking",void 0),(0,r.__decorate)([i.observable],L.prototype,"loggedUserResult",void 0),(0,r.__decorate)([i.observable],L.prototype,"currentUser",void 0),(0,r.__decorate)([i.volatile],L.prototype,"isLoggedIn",null),L=(0,r.__decorate)([(0,r.__param)(0,_.z),(0,r.__param)(1,h.lj),(0,r.__param)(2,E.sW),(0,r.__param)(3,U)],L);const w=o.DI.createInterface((e=>e.singleton(L)));var P=s(6306);var y=s(5127),D=s(2940);const G={options:{criteria:"",isSnapshot:!1,maxRows:D.WJ.MAX_ROWS_250,maxView:D.WJ.MAX_VIEW_1000,orderBy:"",resourceName:"",reverse:!1},criteriaToFields:function(e){const t=e.split("&&").map((e=>e.trim())),s={};return t.forEach((e=>{const t=e.substr(0,e.indexOf("=")).trim().replace(/["']/g,""),r=e.substr(e.lastIndexOf("=")+1,e.length).trim().replace(/["']/g,"");s[t]=r})),s},dataServerResultFilter:y.$};let F=class{constructor(e,t,s=G){this.connect=e,this.auth=t,this.config=s,this.initialized=!1,this.readOnly=!0,this.originalFieldDef=[],this.requestFields=[],this.fieldMetadata=[],this.availableIndexes=[]}init(e,t=!0){var s;return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(!this.validResourceName(null==e?void 0:e.resourceName))return!1;if(this.options=Object.assign(Object.assign({},this.config.options),e),t){T.k.debug(`Initializing ${this.options.resourceName} Datasource`);const t=yield this.connect.getMetadata(this.options.resourceName).catch((t=>T.k.error(`Metadata Fetch failed for ${e.resourceName}:`,t)));if(!t)return!1;this.resourceType=t.TYPE,this.availableIndexes=null!==(s=t.INDEXES)&&void 0!==s?s:[],this.originalFieldDef=(0,P.C)(t),this.fieldMetadata=(0,P.i)(this.originalFieldDef),this.requestFields=t.REQUEST_FIELD||[],T.k.debug(`Datasource for ${this.options.resourceName} is ready`)}return this.options.isSnapshot||(this._stream=yield this.createStream()),this.initialized=!0,this.initialized}))}get stream(){return this._stream}get params(){const e={CRITERIA_MATCH:this.options.criteria,FIELDS:this.options.fields,MAX_ROWS:this.options.maxRows,MAX_VIEW:this.options.maxView,REQUEST:this.options.request,REVERSE:this.options.reverse};if(this.options.orderBy)if(this.availableIndexes.findIndex((e=>e.NAME===this.options.orderBy))>-1)e.ORDER_BY=this.options.orderBy;else{const e=this.availableIndexes.map((e=>e.NAME));T.k.warn("Specified [orderBy] index is not valid and will not be used. See https://learn.genesis.global/docs/database/data-types/index-entities/ - Available indexes:",e)}return T.k.debug("Getting configured params:",e),e}snapshot(){var e;return(0,r.__awaiter)(this,void 0,void 0,(function*(){switch(T.k.debug(`Requesting snapshot for ${this.options.resourceName} (${this.resourceType}).`),this.resourceType){case D._g.DATASERVER:return this.connect.snapshot(this.options.resourceName,this.params);case D._g.REQUEST_SERVER:{const t={DETAILS:Object.assign({},this.params),REQUEST:null},s={};if(this.requestFields.forEach((e=>{s[e.NAME]="*"})),t.REQUEST=s,null===(e=null==this?void 0:this.options)||void 0===e?void 0:e.criteria){const e=this.config.criteriaToFields(this.options.criteria);t.REQUEST=Object.assign(Object.assign({},t.REQUEST),e)}return this.connect.request(this.options.resourceName,t)}default:throw new Error(`Snapshot not supported for selected resource type: ${this.resourceType}`)}}))}snapshotFiltered(e="ROW_REF"){return(0,r.__awaiter)(this,void 0,void 0,(function*(){const t=yield this.snapshot();return Array.isArray(t)?t:t.REPLY?t.REPLY:t.ROW?this.config.dataServerResultFilter(t,e).inserts:void 0}))}createStream(){return(0,r.__awaiter)(this,void 0,void 0,(function*(){if(![D._g.DATASERVER,D._g.REQUEST_SERVER].includes(this.resourceType))throw new Error(`Streaming not supported for selected resource type: ${this.resourceType}`);return this.resourceType===D._g.DATASERVER?this.createDataserverStream():(T.k.debug(`Creating fake stream by polling ${this.options.resourceName} REQUEST_SERVER`),this.createReqRepStream())}))}createDataserverStream(){return(0,r.__awaiter)(this,void 0,void 0,(function*(){return this.connect.stream(this.options.resourceName,(e=>{}),(e=>T.k.error(e)),this.params)}))}createReqRepStream(){return(0,n.H)(0,D.WJ.REQ_REP_POLLING_INTERVAL_MS).pipe((0,c.o)((()=>this.connect.isConnected&&this.auth.isLoggedIn)),(0,d.w)((()=>(0,a.D)(this.snapshot()))))}validResourceName(e){return!!e&&!!e.trim().length}};(0,r.__decorate)([i.observable],F.prototype,"initialized",void 0),(0,r.__decorate)([i.observable],F.prototype,"readOnly",void 0),(0,r.__decorate)([i.volatile],F.prototype,"stream",null),F=(0,r.__decorate)([(0,r.__param)(0,h.lj),(0,r.__param)(1,w),(0,r.__param)(2,(0,o.optional)(D.tt))],F);const H=o.DI.createInterface((e=>e.transient(F)))},2940:(e,t,s)=>{"use strict";s.d(t,{_g:()=>r,WJ:()=>o,tt:()=>n});var r,i=s(5951);!function(e){e.DATASERVER="DATASERVER",e.EVENT_HANDLER="EVENT_HANDLER",e.REQUEST_SERVER="REQUEST_SERVER"}(r||(r={}));class o{}o.MAX_ROWS_250=250,o.MAX_VIEW_1000=1e3,o.REQ_REP_POLLING_INTERVAL_MS=1e4;const n=i.DI.createInterface()},2449:(e,t,s)=>{"use strict";function r(e,t=";"){return e?e.split(t).map((e=>e.trim())).sort(((e,t)=>e.localeCompare(t))).join(t):e}s.d(t,{p:()=>r})},3123:(e,t,s)=>{"use strict";var r;s.d(t,{r:()=>r,E:()=>i}),function(e){e.STRING="STRING",e.NUMBER="NUMBER",e.BOOLEAN="BOOLEAN",e.ENUM="ENUM",e.DATE="DATE",e.DATETIME="DATETIME",e.CUSTOM="CUSTOM"}(r||(r={}));const i={STRING:r.STRING,ENUM:r.ENUM,BOOLEAN:r.BOOLEAN,INT:r.NUMBER,DOUBLE:r.NUMBER,BIGDECIMAL:r.NUMBER,DATE:r.DATE,DATETIME:r.DATETIME}},6306:(e,t,s)=>{"use strict";s.d(t,{i:()=>n,C:()=>a});var r=s(2940),i=s(2296),o=s(3123);const n=e=>e?e.map((e=>{const t={name:e.NAME,type:o.E[e.TYPE]||o.r.STRING};if(e.TYPE===o.r.ENUM&&e.VALID_VALUES)try{t.enumOptions=Array.isArray(e.VALID_VALUES)?e.VALID_VALUES:e.VALID_VALUES.split("|")}catch(e){i.k.error(e),t.enumOptions=[]}return t})):null,a=e=>{const t=null==e?void 0:e.TYPE;if(t===r._g.DATASERVER)return e.FIELD||[];if(t===r._g.REQUEST_SERVER)return e.REPLY_FIELD||[];throw new Error(`Unsupported resource type: ${t}`)}},5527:(e,t,s)=>{"use strict";s.d(t,{z:()=>o});var r=s(5951);class i{constructor(){this.storageKeyPrefix="",this.returnUrl=this.getSessionStorageItem("returnUrl")||""}deleteUserFromSessionStorage(){["authToken","refreshToken","sessionId","ssoToken"].forEach((e=>this.removeSessionStorageItem(e)))}setStorageKeyPrefix(e){this.storageKeyPrefix=`${e.replace(/\s/g,"")}/`}setAuthResult(e){this.setSessionStorageItem("authToken",e.SESSION_AUTH_TOKEN),this.setSessionStorageItem("refreshToken",e.REFRESH_AUTH_TOKEN),this.setSessionStorageItem("username",e.USER_NAME),this.setSessionStorageItem("sessionId",e.SESSION_ID)}captureReturnUrl(){const{pathname:e,search:t,hash:s}=location;if("/login"===e)return;const r=`${"/"!==e?e:""}`;this.returnUrl=`${r}${t}${s}`,this.setSessionStorageItem("returnUrl",this.returnUrl)}setItem(e,t,s){"local"===s?localStorage.setItem(this.storageKeyPrefix+e,t):sessionStorage.setItem(this.storageKeyPrefix+e,t)}getItem(e,t){return"local"===t?localStorage.getItem(this.storageKeyPrefix+e):sessionStorage.getItem(this.storageKeyPrefix+e)}removeItem(e,t){"local"===t?localStorage.removeItem(this.storageKeyPrefix+e):sessionStorage.removeItem(this.storageKeyPrefix+e)}setLocalStorageItem(e,t){this.setItem(e,t,"local")}setSessionStorageItem(e,t){this.setItem(e,t,"session")}getLocalStorageItem(e){return this.getItem(e,"local")}getSessionStorageItem(e){return this.getItem(e,"session")}removeLocalStorageItem(e){this.removeItem(e,"local")}removeSessionStorageItem(e){this.removeItem(e,"session")}}const o=r.DI.createInterface((e=>e.singleton(i)))},2296:(e,t,s)=>{"use strict";s.d(t,{k:()=>i});var r=s(8120);const i=(0,r.createLogger)("foundation-comms")}}]);
|
|
3
3
|
//# sourceMappingURL=905.23f3a10296b6ce78d74825c63d28bb6eed1788ad1e008cbd127d4de866da38ca.js.map
|
package/dist/dashboard.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"dependencies":[{"name":"@genesislcap/alpha-design-system","version":"14.
|
|
1
|
+
{"dependencies":[{"name":"@genesislcap/alpha-design-system","version":"14.3"},{"name":"@genesislcap/documentation-components","version":"14.3"},{"name":"@genesislcap/foundation-ui","version":"14.3"},{"name":"@genesislcap/foundation-utils","version":"14.3"},{"name":"@microsoft/fast-colors","version":"5.3"},{"name":"@microsoft/fast-components","version":"2.30"},{"name":"@microsoft/fast-element","version":"1.11"},{"name":"@microsoft/fast-foundation","version":"2.47"},{"name":"tslib","version":"1.14"},{"name":"yargs","version":"17.7"}],"devDependencies":[{"name":"@playwright/test","version":"1.32"},{"name":"c8","version":"7.13"},{"name":"camel-case","version":"4.1"},{"name":"clean-webpack-plugin","version":"4.0"},{"name":"csp-html-webpack-plugin","version":"5.1"},{"name":"css-loader","version":"6.7"},{"name":"cssnano","version":"5.1"},{"name":"esm","version":"3.2"},{"name":"file-loader","version":"6.2"},{"name":"html-webpack-plugin","version":"5.5"},{"name":"jsdom","version":"19.0"},{"name":"mini-css-extract-plugin","version":"2.7"},{"name":"playwright-test","version":"7.4"},{"name":"postcss","version":"8.4"},{"name":"postcss-import","version":"14.1"},{"name":"postcss-loader","version":"6.2"},{"name":"postcss-preset-env","version":"7.8"},{"name":"sass","version":"1.60"},{"name":"sass-loader","version":"12.6"},{"name":"terser-webpack-plugin","version":"5.3"},{"name":"to-string-loader","version":"1.2"},{"name":"ts-loader","version":"9.3"},{"name":"tsconfig-paths-webpack-plugin","version":"3.5"},{"name":"tsm","version":"2.3"},{"name":"typescript","version":"4.9"},{"name":"uvu","version":"0.5"},{"name":"watchlist","version":"0.3"},{"name":"webpack","version":"5.45"},{"name":"webpack-cli","version":"4.10"},{"name":"webpack-dev-server","version":"4.13"},{"name":"webpack-merge","version":"5.8"}],"optionalDependencies":[],"id":"designSystemConfigurator","name":"designSystemConfigurator","remote":"","metadata":{},"overrides":[{"id":"@genesislcap/alpha-design-system","name":"@genesislcap/alpha-design-system","version":"14.3","location":"@genesislcap/alpha-design-system","applicationID":"designSystemConfigurator"},{"id":"@microsoft/fast-element","name":"@microsoft/fast-element","version":"1.11","location":"@microsoft/fast-element","applicationID":"designSystemConfigurator"},{"id":"@microsoft/fast-components","name":"@microsoft/fast-components","version":"2.30","location":"@microsoft/fast-components","applicationID":"designSystemConfigurator"},{"id":"@genesislcap/foundation-ui","name":"@genesislcap/foundation-ui","version":"14.3","location":"@genesislcap/foundation-ui","applicationID":"designSystemConfigurator"},{"id":"@microsoft/fast-colors","name":"@microsoft/fast-colors","version":"5.3","location":"@microsoft/fast-colors","applicationID":"designSystemConfigurator"},{"id":"@microsoft/fast-foundation","name":"@microsoft/fast-foundation","version":"2.47","location":"@microsoft/fast-foundation","applicationID":"designSystemConfigurator"},{"id":"tslib","name":"tslib","version":"1.14","location":"tslib","applicationID":"designSystemConfigurator"},{"id":"@genesislcap/foundation-utils","name":"@genesislcap/foundation-utils","version":"14.3","location":"@genesislcap/foundation-utils","applicationID":"designSystemConfigurator"},{"id":"@genesislcap/documentation-components","name":"@genesislcap/documentation-components","version":"14.3","location":"@genesislcap/documentation-components","applicationID":"designSystemConfigurator"}],"consumes":[],"modules":[{"id":"designSystemConfigurator:index","name":"index","applicationID":"designSystemConfigurator","requires":[],"file":"./src/index.federated.ts"}],"version":"1.0.0"}
|