@ixon-cdk/simulator 1.13.0 → 1.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{quill_default}from"./chunk-JJIOQICA.js";import{A11yModule,ACTIVE_RUNTIME_CHECKS,ANIMATION_MODULE_TYPE,APP_CONFIG,APP_INITIALIZER,AUTO_STYLE,Actions,ActionsSubject,ActivatedRoute,AnimationGroupPlayer,AnimationMetadataType,AnonymousSubject,ApplicationRef,AsyncPipe,BackendComponentCallerService,BackendComponentCallerServiceFactory,BackendComponentClient,BackendComponentClientProxyService,BehaviorSubject,BreakpointObserver,BrowserModule,CdkDrag,CdkDragPlaceholder,CdkDragPreview,CdkDropList,CdkPortalOutlet,CdkScrollable,CdkTextareaAutosize,CdkTrapFocus,ChangeDetectorRef,Clipboard,ClipboardModule,CommonModule,ComponentFactoryResolver$1,ComponentPortal,ComponentTemplateValidatorService,DEFAULT_CARD_DIMENSIONS,DEFAULT_CBC_INGRESS_URL,DEFAULT_REPORT_DIMENSIONS,DEFAULT_SHEET_DIMENSIONS,DOCUMENT,DateAdapter,DefaultClassDirective,DefaultFlexDirective,DefaultLayoutAlignDirective,DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultShowHideDirective,DefaultValueAccessor,DestroyRef,DomRendererFactory2,DomSanitizer,DragDropModule,EMPTY,ENVIRONMENT_INITIALIZER,EffectsModule,ElementRef,ErrorHandler,EventEmitter,FlexLayoutModule,FlexModule,FormArray,FormBuilder,FormControl,FormControlDirective,FormControlName,FormGroup,FormGroupDirective,FormGroupName,FormsModule,HTTP_INTERCEPTORS,HttpClient,HttpContext,HttpErrorResponse,HttpHeaders,HttpParams,HttpResponse,INIT,INITIAL_STATE,IXAPI_OPTIONS,InjectionToken,Injector,IxApi2RequestErrorMessages,IxApiErrorMessages,IxApiErrors,IxApiHeaderKeys,IxApiModule,IxApiRequestErrorMessages,IxApiRequestErrors,IxApiService,LayoutModule,Location,LowerCasePipe,MAT_BOTTOM_SHEET_DATA,MAT_DATE_FORMATS,MAT_DATE_LOCALE,MAT_DIALOG_DATA,MatActionList,MatBadge,MatBadgeModule,MatBottomSheet,MatBottomSheetRef,MatButton,MatButtonModule,MatCard,MatCardActions,MatCardHeader,MatCardModule,MatCardSubtitle,MatCardTitle,MatCheckbox,MatCheckboxModule,MatDatepicker,MatDatepickerInput,MatDatepickerToggle,MatDialog,MatDialogActions,MatDialogClose,MatDialogContainer,MatDialogContent,MatDialogModule,MatDialogRef,MatDialogTitle,MatDivider,MatDividerModule,MatDrawer,MatDrawerContainer,MatDrawerContent,MatError,MatExpansionPanel,MatFormField,MatFormFieldModule,MatHint,MatIcon,MatIconAnchor,MatIconButton,MatIconModule,MatIconRegistry,MatInput,MatInputModule,MatLabel,MatListItem,MatListItemIcon,MatListItemMeta,MatListItemTitle,MatListModule,MatListOption,MatListSubheaderCssMatStyler,MatMenu,MatMenuContent,MatMenuItem,MatMenuModule,MatMenuTrigger,MatNavList,MatOptgroup,MatOption,MatPaginatorModule,MatPrefix,MatProgressSpinner,MatProgressSpinnerModule,MatSelect,MatSelectModule,MatSelectionList,MatSidenav,MatSidenavContainer,MatSidenavModule,MatSnackBar,MatSnackBarModule,MatSuffix,MatTab,MatTabGroup,MatToolbar,MatToolbarModule,MatTooltip,MatTooltipModule,MediaObserver,Meta,MinValidator,NG_VALIDATORS,NG_VALUE_ACCESSOR,NavigationCancel,NavigationEnd,NavigationError,NavigationStart,NgClass,NgControl,NgControlStatus,NgControlStatusGroup,NgForOf,NgForm,NgIf,NgModel,NgSelectOption,NgStyle,NgTemplateOutlet,NgZone,NoopAnimationPlayer,NumberValueAccessor,ONE_WEEK,OTP_SMS_REQUIRED_PATTERN,Observable,Overlay,OverlayConfig,PAGE_COMPONENT,PLATFORM_ID,PageComponentTemplateManifestModule,PageComponentTemplateModule,PageComponentTemplateService,Platform,PortalInjector,PortalModule,REQUIRES_BRANDING,REQUIRES_COMPANY,ReactiveFormsModule,ReducerManagerDispatcher,ReducerObservable,Renderer2,RendererFactory2,ReplaySubject,RequiredValidator,ResourceDataClient,ResourceDataClientProxyService,ResourceDataServiceFactory,Router,RouterLink,RouterLinkActive,RouterModule,RouterOutlet,RoutesRecognized,RuntimeError,SESSION_STORAGE,STORAGE_KEY_CBC_INGRESS,STORAGE_KEY_CBC_INGRESS_URL,STORAGE_KEY_CBC_PUBLIC_ID,ScannedActionsSubject,SecurityContext,SelectControlValueAccessor,SettingsModule,SharedModule,StateObservable,StorageEventContext,StorageModule,StorageService,Store,StoreModule,Subject,Subscriber,Subscription,TemplateRef,Title,TitleCasePipe,TranslateDirective,TranslateLoader,TranslateModule,TranslatePipe,TranslateService,UPDATE,Validators,ViewContainerRef,ViewportRuler,WINDOW,__asyncDelegator,__asyncGenerator,__asyncValues,__await,__rest,add,addFailure,addSuccess,appConfigFactory,arrowRotateFactory,booleanAttribute,buffer,buildFields,catchError,combineLatest,compactFields,concatMap,createAction,createEffect,createEntityAdapter,createFeature,createFeatureSelector,createReducer,createResourceAdapter,createResourceSelectorFactory,createSelector,debounceTime,decryptValue,defaultOptions,defer,delay,delayWhen,didAdd,didAddList,didRemove,didRemoveList,didUpdate,didUpdateList,distinctUntilChanged,ensureAll,ensureMany,ensureOne,environment,expandCollapse,filter,first,firstValueFrom,forkJoin,forwardRef,from,fromEvent,getLinkMap,getLinkUrl,getMissingFields,getPageParams,hasFields,haveFields,inject,input,isDevMode,isNgrxMockEnvironment,isObservable,isPlatformBrowser,isPlatformServer,last,lastValueFrom,loadAllForIntentSuccess,loadAllSuccess,loadAppConfig,loadHost,loadHostFailure,loadHostSuccess,loadManySuccess,makeEnvironmentProviders,map,mapPageComponentTemplateManifestToDefaultInputs,mapPageComponentTemplateToCustomElementName,mapPageComponentTemplateToTemplateBaseUrl,mapPageComponentTemplateToTemplateUrl,mapResourceToSubResourceList,mapTemplateUrlToMainPath,mapTemplateUrlToManifestUrl,mapTemplateUrlToPublicId,merge,mergeFields,mergeLoadedFields,mergeMap,moveItemInArray,mustache_default,observeOn,of,ofStatus,ofType,omitSubresources,on,pairwise,parseBody,platformBrowser,props,provideHttpClient,queueScheduler,remove,removeFailure,removeSuccess,require_crypto_js,reset,reset2,reset3,resetPendingUpdates,retryBackoff,scan,select,selectAll,selectEntities,selectEntities2,selectEntity,selectEntity2,sequence,share,shareReplay,signal,skip,sortByNameAndPublicIdComparer,startWith,style,switchMap,take,takeUntil,takeUntilDestroyed,tap,throwError,throwNotFoundError,timeout,timer,toSignal,update,updateFailure,updateMany,updateManyFailure,updateManySuccess,updateResource,updateSuccess,validateOptions,whileMoreAfter,withInterceptorsFromDi,withLatestFrom,ɵNgNoValidate,ɵNgSelectMultipleOption,ɵPRE_STYLE,ɵɵInheritDefinitionFeature,ɵɵInputTransformsFeature,ɵɵNgOnChangesFeature,ɵɵProvidersFeature,ɵɵStandaloneFeature,ɵɵadvance,ɵɵattribute,ɵɵclassMap,ɵɵclassMapInterpolate1,ɵɵclassProp,ɵɵconditional,ɵɵcontentQuery,ɵɵdefineComponent,ɵɵdefineDirective,ɵɵdefineInjectable,ɵɵdefineInjector,ɵɵdefineNgModule,ɵɵdefinePipe,ɵɵdirectiveInject,ɵɵelement,ɵɵelementContainer,ɵɵelementContainerEnd,ɵɵelementContainerStart,ɵɵelementEnd,ɵɵelementStart,ɵɵgetCurrentView,ɵɵgetInheritedFactory,ɵɵinject,ɵɵlistener,ɵɵloadQuery,ɵɵnamespaceSVG,ɵɵnextContext,ɵɵpipe,ɵɵpipeBind1,ɵɵpipeBind2,ɵɵpipeBind3,ɵɵprojection,ɵɵprojectionDef,ɵɵproperty,ɵɵpropertyInterpolate,ɵɵpureFunction0,ɵɵpureFunction1,ɵɵpureFunction2,ɵɵpureFunction4,ɵɵpureFunction7,ɵɵqueryRefresh,ɵɵreference,ɵɵrepeater,ɵɵrepeaterCreate,ɵɵrepeaterTrackByIdentity,ɵɵrepeaterTrackByIndex,ɵɵresetView,ɵɵresolveDocument,ɵɵrestoreView,ɵɵsanitizeHtml,ɵɵsanitizeUrl,ɵɵsetComponentScope,ɵɵstyleMap,ɵɵstyleProp,ɵɵtemplate,ɵɵtemplateRefExtractor,ɵɵtext,ɵɵtextInterpolate,ɵɵtextInterpolate1,ɵɵtextInterpolate2,ɵɵtextInterpolate3,ɵɵtwoWayBindingSet,ɵɵtwoWayListener,ɵɵtwoWayProperty,ɵɵviewQuery}from"./chunk-Z67EE25J.js";import{camelCase_default,capitalize_default,cloneDeep_default,compact_default,deburr_default,escape_default,flatMap_default,flatten_default,get_default,groupBy_default,has_default,isArray_default,isBoolean_default,isEmpty_default,isEqual_default,isNil_default,isObject_default,isString_default,isUndefined_default,kebabCase_default,memoize_default,merge_default,omitBy_default,omit_default,orderBy_default,pick_default,range_default,set_default,snakeCase_default,sortBy_default,startCase_default,template_default,uniqBy_default,uniq_default,upperCase_default,upperFirst_default}from"./chunk-J2FK5UNH.js";import{__async,__commonJS,__esm,__export,__objRest,__publicField,__require,__spreadProps,__spreadValues,__superGet,__toCommonJS,__toESM,__yieldStar}from"./chunk-LA6QQXNS.js";var require_FileSaver_min=__commonJS({"node_modules/file-saver/dist/FileSaver.min.js"(exports,module){(function(a,b2){typeof define=="function"&&define.amd?define([],b2):typeof exports<"u"?b2():(b2(),a.FileSaver={})})(exports,function(){"use strict";function b2(a2,b3){return typeof b3>"u"?b3={autoBom:!1}:typeof b3!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),b3={autoBom:!b3}),b3.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a2.type)?new Blob(["\uFEFF",a2],{type:a2.type}):a2}function c(a2,b3,c2){var d3=new XMLHttpRequest;d3.open("GET",a2),d3.responseType="blob",d3.onload=function(){g2(d3.response,b3,c2)},d3.onerror=function(){console.error("could not download file")},d3.send()}function d2(a2){var b3=new XMLHttpRequest;b3.open("HEAD",a2,!1);try{b3.send()}catch{}return 200<=b3.status&&299>=b3.status}function e(a2){try{a2.dispatchEvent(new MouseEvent("click"))}catch{var b3=document.createEvent("MouseEvents");b3.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a2.dispatchEvent(b3)}}var f2=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,a=f2.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g2=f2.saveAs||(typeof window!="object"||window!==f2?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b3,g3,h){var i=f2.URL||f2.webkitURL,j2=document.createElement("a");g3=g3||b3.name||"download",j2.download=g3,j2.rel="noopener",typeof b3=="string"?(j2.href=b3,j2.origin===location.origin?e(j2):d2(j2.href)?c(b3,g3,h):e(j2,j2.target="_blank")):(j2.href=i.createObjectURL(b3),setTimeout(function(){i.revokeObjectURL(j2.href)},4e4),setTimeout(function(){e(j2)},0))}:"msSaveOrOpenBlob"in navigator?function(f3,g3,h){if(g3=g3||f3.name||"download",typeof f3!="string")navigator.msSaveOrOpenBlob(b2(f3,h),g3);else if(d2(f3))c(f3,g3,h);else{var i=document.createElement("a");i.href=f3,i.target="_blank",setTimeout(function(){e(i)})}}:function(b3,d3,e2,g3){if(g3=g3||open("","_blank"),g3&&(g3.document.title=g3.document.body.innerText="downloading..."),typeof b3=="string")return c(b3,d3,e2);var h=b3.type==="application/octet-stream",i=/constructor/i.test(f2.HTMLElement)||f2.safari,j2=/CriOS\/[\d]+/.test(navigator.userAgent);if((j2||h&&i||a)&&typeof FileReader<"u"){var k=new FileReader;k.onloadend=function(){var a2=k.result;a2=j2?a2:a2.replace(/^data:[^;]*;/,"data:attachment/file;"),g3?g3.location.href=a2:location=a2,g3=null},k.readAsDataURL(b3)}else{var l2=f2.URL||f2.webkitURL,m=l2.createObjectURL(b3);g3?g3.location=m:location.href=m,g3=null,setTimeout(function(){l2.revokeObjectURL(m)},4e4)}});f2.saveAs=g2.saveAs=g2,typeof module<"u"&&(module.exports=g2)})}});var require_ua_parser=__commonJS({"node_modules/ua-parser-js/src/ua-parser.js"(exports,module){(function(window2,undefined2){"use strict";var LIBVERSION="1.0.37",EMPTY2="",UNKNOWN="?",FUNC_TYPE="function",UNDEF_TYPE="undefined",OBJ_TYPE="object",STR_TYPE="string",MAJOR="major",MODEL="model",NAME="name",TYPE="type",VENDOR="vendor",VERSION4="version",ARCHITECTURE="architecture",CONSOLE="console",MOBILE="mobile",TABLET="tablet",SMARTTV="smarttv",WEARABLE="wearable",EMBEDDED="embedded",UA_MAX_LENGTH=500,AMAZON="Amazon",APPLE="Apple",ASUS="ASUS",BLACKBERRY="BlackBerry",BROWSER="Browser",CHROME="Chrome",EDGE="Edge",FIREFOX="Firefox",GOOGLE="Google",HUAWEI="Huawei",LG="LG",MICROSOFT="Microsoft",MOTOROLA="Motorola",OPERA="Opera",SAMSUNG="Samsung",SHARP="Sharp",SONY="Sony",XIAOMI="Xiaomi",ZEBRA="Zebra",FACEBOOK="Facebook",CHROMIUM_OS="Chromium OS",MAC_OS="Mac OS",extend4=function(regexes2,extensions){var mergedRegexes={};for(var i in regexes2)extensions[i]&&extensions[i].length%2===0?mergedRegexes[i]=extensions[i].concat(regexes2[i]):mergedRegexes[i]=regexes2[i];return mergedRegexes},enumerize=function(arr){for(var enums={},i=0;i<arr.length;i++)enums[arr[i].toUpperCase()]=arr[i];return enums},has=function(str1,str2){return typeof str1===STR_TYPE?lowerize(str2).indexOf(lowerize(str1))!==-1:!1},lowerize=function(str){return str.toLowerCase()},majorize=function(version3){return typeof version3===STR_TYPE?version3.replace(/[^\d\.]/g,EMPTY2).split(".")[0]:undefined2},trim=function(str,len){if(typeof str===STR_TYPE)return str=str.replace(/^\s\s*/,EMPTY2),typeof len===UNDEF_TYPE?str:str.substring(0,UA_MAX_LENGTH)},rgxMapper=function(ua,arrays){for(var i=0,j2,k,p,q,matches,match2;i<arrays.length&&!matches;){var regex=arrays[i],props2=arrays[i+1];for(j2=k=0;j2<regex.length&&!matches&®ex[j2];)if(matches=regex[j2++].exec(ua),matches)for(p=0;p<props2.length;p++)match2=matches[++k],q=props2[p],typeof q===OBJ_TYPE&&q.length>0?q.length===2?typeof q[1]==FUNC_TYPE?this[q[0]]=q[1].call(this,match2):this[q[0]]=q[1]:q.length===3?typeof q[1]===FUNC_TYPE&&!(q[1].exec&&q[1].test)?this[q[0]]=match2?q[1].call(this,match2,q[2]):undefined2:this[q[0]]=match2?match2.replace(q[1],q[2]):undefined2:q.length===4&&(this[q[0]]=match2?q[3].call(this,match2.replace(q[1],q[2])):undefined2):this[q]=match2||undefined2;i+=2}},strMapper=function(str,map3){for(var i in map3)if(typeof map3[i]===OBJ_TYPE&&map3[i].length>0){for(var j2=0;j2<map3[i].length;j2++)if(has(map3[i][j2],str))return i===UNKNOWN?undefined2:i}else if(has(map3[i],str))return i===UNKNOWN?undefined2:i;return str},oldSafariMap={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},windowsVersionMap={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},regexes={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[VERSION4,[NAME,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[VERSION4,[NAME,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[NAME,VERSION4],[/opios[\/ ]+([\w\.]+)/i],[VERSION4,[NAME,OPERA+" Mini"]],[/\bopr\/([\w\.]+)/i],[VERSION4,[NAME,OPERA]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[VERSION4,[NAME,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[NAME,VERSION4],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[VERSION4,[NAME,"UC"+BROWSER]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[VERSION4,[NAME,"WeChat"]],[/konqueror\/([\w\.]+)/i],[VERSION4,[NAME,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[VERSION4,[NAME,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[VERSION4,[NAME,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[VERSION4,[NAME,"Smart Lenovo "+BROWSER]],[/(avast|avg)\/([\w\.]+)/i],[[NAME,/(.+)/,"$1 Secure "+BROWSER],VERSION4],[/\bfocus\/([\w\.]+)/i],[VERSION4,[NAME,FIREFOX+" Focus"]],[/\bopt\/([\w\.]+)/i],[VERSION4,[NAME,OPERA+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[VERSION4,[NAME,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[VERSION4,[NAME,"Dolphin"]],[/coast\/([\w\.]+)/i],[VERSION4,[NAME,OPERA+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[VERSION4,[NAME,"MIUI "+BROWSER]],[/fxios\/([-\w\.]+)/i],[VERSION4,[NAME,FIREFOX]],[/\bqihu|(qi?ho?o?|360)browser/i],[[NAME,"360 "+BROWSER]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[NAME,/(.+)/,"$1 "+BROWSER],VERSION4],[/samsungbrowser\/([\w\.]+)/i],[VERSION4,[NAME,SAMSUNG+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[NAME,/_/g," "],VERSION4],[/metasr[\/ ]?([\d\.]+)/i],[VERSION4,[NAME,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[NAME,"Sogou Mobile"],VERSION4],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[NAME,VERSION4],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[NAME],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[NAME,FACEBOOK],VERSION4],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[NAME,VERSION4],[/\bgsa\/([\w\.]+) .*safari\//i],[VERSION4,[NAME,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[VERSION4,[NAME,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[VERSION4,[NAME,CHROME+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[NAME,CHROME+" WebView"],VERSION4],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[VERSION4,[NAME,"Android "+BROWSER]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[NAME,VERSION4],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[VERSION4,[NAME,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[VERSION4,NAME],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[NAME,[VERSION4,strMapper,oldSafariMap]],[/(webkit|khtml)\/([\w\.]+)/i],[NAME,VERSION4],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[NAME,"Netscape"],VERSION4],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[VERSION4,[NAME,FIREFOX+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[NAME,VERSION4],[/(cobalt)\/([\w\.]+)/i],[NAME,[VERSION4,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[ARCHITECTURE,"amd64"]],[/(ia32(?=;))/i],[[ARCHITECTURE,lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[ARCHITECTURE,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[ARCHITECTURE,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[ARCHITECTURE,"armhf"]],[/windows (ce|mobile); ppc;/i],[[ARCHITECTURE,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[ARCHITECTURE,/ower/,EMPTY2,lowerize]],[/(sun4\w)[;\)]/i],[[ARCHITECTURE,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[ARCHITECTURE,lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[MODEL,[VENDOR,SAMSUNG],[TYPE,TABLET]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[MODEL,[VENDOR,SAMSUNG],[TYPE,MOBILE]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[MODEL,[VENDOR,APPLE],[TYPE,MOBILE]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[MODEL,[VENDOR,APPLE],[TYPE,TABLET]],[/(macintosh);/i],[MODEL,[VENDOR,APPLE]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[MODEL,[VENDOR,SHARP],[TYPE,MOBILE]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[MODEL,[VENDOR,HUAWEI],[TYPE,TABLET]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[MODEL,[VENDOR,HUAWEI],[TYPE,MOBILE]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[MODEL,/_/g," "],[VENDOR,XIAOMI],[TYPE,MOBILE]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[MODEL,/_/g," "],[VENDOR,XIAOMI],[TYPE,TABLET]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[MODEL,[VENDOR,"OPPO"],[TYPE,MOBILE]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[MODEL,[VENDOR,"Vivo"],[TYPE,MOBILE]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[MODEL,[VENDOR,"Realme"],[TYPE,MOBILE]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[MODEL,[VENDOR,MOTOROLA],[TYPE,MOBILE]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[MODEL,[VENDOR,MOTOROLA],[TYPE,TABLET]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[MODEL,[VENDOR,LG],[TYPE,TABLET]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[MODEL,[VENDOR,LG],[TYPE,MOBILE]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[MODEL,[VENDOR,"Lenovo"],[TYPE,TABLET]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[MODEL,/_/g," "],[VENDOR,"Nokia"],[TYPE,MOBILE]],[/(pixel c)\b/i],[MODEL,[VENDOR,GOOGLE],[TYPE,TABLET]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[MODEL,[VENDOR,GOOGLE],[TYPE,MOBILE]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[MODEL,[VENDOR,SONY],[TYPE,MOBILE]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[MODEL,"Xperia Tablet"],[VENDOR,SONY],[TYPE,TABLET]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[MODEL,[VENDOR,"OnePlus"],[TYPE,MOBILE]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[MODEL,[VENDOR,AMAZON],[TYPE,TABLET]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[MODEL,/(.+)/g,"Fire Phone $1"],[VENDOR,AMAZON],[TYPE,MOBILE]],[/(playbook);[-\w\),; ]+(rim)/i],[MODEL,VENDOR,[TYPE,TABLET]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[MODEL,[VENDOR,BLACKBERRY],[TYPE,MOBILE]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[MODEL,[VENDOR,ASUS],[TYPE,TABLET]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[MODEL,[VENDOR,ASUS],[TYPE,MOBILE]],[/(nexus 9)/i],[MODEL,[VENDOR,"HTC"],[TYPE,TABLET]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[VENDOR,[MODEL,/_/g," "],[TYPE,MOBILE]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[MODEL,[VENDOR,"Acer"],[TYPE,TABLET]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[MODEL,[VENDOR,"Meizu"],[TYPE,MOBILE]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[MODEL,[VENDOR,"Ulefone"],[TYPE,MOBILE]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[VENDOR,MODEL,[TYPE,TABLET]],[/(surface duo)/i],[MODEL,[VENDOR,MICROSOFT],[TYPE,TABLET]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[MODEL,[VENDOR,"Fairphone"],[TYPE,MOBILE]],[/(u304aa)/i],[MODEL,[VENDOR,"AT&T"],[TYPE,MOBILE]],[/\bsie-(\w*)/i],[MODEL,[VENDOR,"Siemens"],[TYPE,MOBILE]],[/\b(rct\w+) b/i],[MODEL,[VENDOR,"RCA"],[TYPE,TABLET]],[/\b(venue[\d ]{2,7}) b/i],[MODEL,[VENDOR,"Dell"],[TYPE,TABLET]],[/\b(q(?:mv|ta)\w+) b/i],[MODEL,[VENDOR,"Verizon"],[TYPE,TABLET]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[MODEL,[VENDOR,"Barnes & Noble"],[TYPE,TABLET]],[/\b(tm\d{3}\w+) b/i],[MODEL,[VENDOR,"NuVision"],[TYPE,TABLET]],[/\b(k88) b/i],[MODEL,[VENDOR,"ZTE"],[TYPE,TABLET]],[/\b(nx\d{3}j) b/i],[MODEL,[VENDOR,"ZTE"],[TYPE,MOBILE]],[/\b(gen\d{3}) b.+49h/i],[MODEL,[VENDOR,"Swiss"],[TYPE,MOBILE]],[/\b(zur\d{3}) b/i],[MODEL,[VENDOR,"Swiss"],[TYPE,TABLET]],[/\b((zeki)?tb.*\b) b/i],[MODEL,[VENDOR,"Zeki"],[TYPE,TABLET]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[VENDOR,"Dragon Touch"],MODEL,[TYPE,TABLET]],[/\b(ns-?\w{0,9}) b/i],[MODEL,[VENDOR,"Insignia"],[TYPE,TABLET]],[/\b((nxa|next)-?\w{0,9}) b/i],[MODEL,[VENDOR,"NextBook"],[TYPE,TABLET]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[VENDOR,"Voice"],MODEL,[TYPE,MOBILE]],[/\b(lvtel\-)?(v1[12]) b/i],[[VENDOR,"LvTel"],MODEL,[TYPE,MOBILE]],[/\b(ph-1) /i],[MODEL,[VENDOR,"Essential"],[TYPE,MOBILE]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[MODEL,[VENDOR,"Envizen"],[TYPE,TABLET]],[/\b(trio[-\w\. ]+) b/i],[MODEL,[VENDOR,"MachSpeed"],[TYPE,TABLET]],[/\btu_(1491) b/i],[MODEL,[VENDOR,"Rotor"],[TYPE,TABLET]],[/(shield[\w ]+) b/i],[MODEL,[VENDOR,"Nvidia"],[TYPE,TABLET]],[/(sprint) (\w+)/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/(kin\.[onetw]{3})/i],[[MODEL,/\./g," "],[VENDOR,MICROSOFT],[TYPE,MOBILE]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[MODEL,[VENDOR,ZEBRA],[TYPE,TABLET]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[MODEL,[VENDOR,ZEBRA],[TYPE,MOBILE]],[/smart-tv.+(samsung)/i],[VENDOR,[TYPE,SMARTTV]],[/hbbtv.+maple;(\d+)/i],[[MODEL,/^/,"SmartTV"],[VENDOR,SAMSUNG],[TYPE,SMARTTV]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[VENDOR,LG],[TYPE,SMARTTV]],[/(apple) ?tv/i],[VENDOR,[MODEL,APPLE+" TV"],[TYPE,SMARTTV]],[/crkey/i],[[MODEL,CHROME+"cast"],[VENDOR,GOOGLE],[TYPE,SMARTTV]],[/droid.+aft(\w+)( bui|\))/i],[MODEL,[VENDOR,AMAZON],[TYPE,SMARTTV]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[MODEL,[VENDOR,SHARP],[TYPE,SMARTTV]],[/(bravia[\w ]+)( bui|\))/i],[MODEL,[VENDOR,SONY],[TYPE,SMARTTV]],[/(mitv-\w{5}) bui/i],[MODEL,[VENDOR,XIAOMI],[TYPE,SMARTTV]],[/Hbbtv.*(technisat) (.*);/i],[VENDOR,MODEL,[TYPE,SMARTTV]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[VENDOR,trim],[MODEL,trim],[TYPE,SMARTTV]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[TYPE,SMARTTV]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[VENDOR,MODEL,[TYPE,CONSOLE]],[/droid.+; (shield) bui/i],[MODEL,[VENDOR,"Nvidia"],[TYPE,CONSOLE]],[/(playstation [345portablevi]+)/i],[MODEL,[VENDOR,SONY],[TYPE,CONSOLE]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[MODEL,[VENDOR,MICROSOFT],[TYPE,CONSOLE]],[/((pebble))app/i],[VENDOR,MODEL,[TYPE,WEARABLE]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[MODEL,[VENDOR,APPLE],[TYPE,WEARABLE]],[/droid.+; (glass) \d/i],[MODEL,[VENDOR,GOOGLE],[TYPE,WEARABLE]],[/droid.+; (wt63?0{2,3})\)/i],[MODEL,[VENDOR,ZEBRA],[TYPE,WEARABLE]],[/(quest( 2| pro)?)/i],[MODEL,[VENDOR,FACEBOOK],[TYPE,WEARABLE]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[VENDOR,[TYPE,EMBEDDED]],[/(aeobc)\b/i],[MODEL,[VENDOR,AMAZON],[TYPE,EMBEDDED]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[MODEL,[TYPE,MOBILE]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[MODEL,[TYPE,TABLET]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[TYPE,TABLET]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[TYPE,MOBILE]],[/(android[-\w\. ]{0,9});.+buil/i],[MODEL,[VENDOR,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[VERSION4,[NAME,EDGE+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[VERSION4,[NAME,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[NAME,VERSION4],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[VERSION4,NAME]],os:[[/microsoft (windows) (vista|xp)/i],[NAME,VERSION4],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[NAME,[VERSION4,strMapper,windowsVersionMap]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[VERSION4,strMapper,windowsVersionMap],[NAME,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[VERSION4,/_/g,"."],[NAME,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[NAME,MAC_OS],[VERSION4,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[VERSION4,NAME],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[NAME,VERSION4],[/\(bb(10);/i],[VERSION4,[NAME,BLACKBERRY]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[VERSION4,[NAME,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[VERSION4,[NAME,FIREFOX+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[VERSION4,[NAME,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[VERSION4,[NAME,"watchOS"]],[/crkey\/([\d\.]+)/i],[VERSION4,[NAME,CHROME+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[NAME,CHROMIUM_OS],VERSION4],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[NAME,VERSION4],[/(sunos) ?([\w\.\d]*)/i],[[NAME,"Solaris"],VERSION4],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[NAME,VERSION4]]},UAParser2=function(ua,extensions){if(typeof ua===OBJ_TYPE&&(extensions=ua,ua=undefined2),!(this instanceof UAParser2))return new UAParser2(ua,extensions).getResult();var _navigator=typeof window2!==UNDEF_TYPE&&window2.navigator?window2.navigator:undefined2,_ua=ua||(_navigator&&_navigator.userAgent?_navigator.userAgent:EMPTY2),_uach=_navigator&&_navigator.userAgentData?_navigator.userAgentData:undefined2,_rgxmap=extensions?extend4(regexes,extensions):regexes,_isSelfNav=_navigator&&_navigator.userAgent==_ua;return this.getBrowser=function(){var _browser={};return _browser[NAME]=undefined2,_browser[VERSION4]=undefined2,rgxMapper.call(_browser,_ua,_rgxmap.browser),_browser[MAJOR]=majorize(_browser[VERSION4]),_isSelfNav&&_navigator&&_navigator.brave&&typeof _navigator.brave.isBrave==FUNC_TYPE&&(_browser[NAME]="Brave"),_browser},this.getCPU=function(){var _cpu={};return _cpu[ARCHITECTURE]=undefined2,rgxMapper.call(_cpu,_ua,_rgxmap.cpu),_cpu},this.getDevice=function(){var _device={};return _device[VENDOR]=undefined2,_device[MODEL]=undefined2,_device[TYPE]=undefined2,rgxMapper.call(_device,_ua,_rgxmap.device),_isSelfNav&&!_device[TYPE]&&_uach&&_uach.mobile&&(_device[TYPE]=MOBILE),_isSelfNav&&_device[MODEL]=="Macintosh"&&_navigator&&typeof _navigator.standalone!==UNDEF_TYPE&&_navigator.maxTouchPoints&&_navigator.maxTouchPoints>2&&(_device[MODEL]="iPad",_device[TYPE]=TABLET),_device},this.getEngine=function(){var _engine={};return _engine[NAME]=undefined2,_engine[VERSION4]=undefined2,rgxMapper.call(_engine,_ua,_rgxmap.engine),_engine},this.getOS=function(){var _os={};return _os[NAME]=undefined2,_os[VERSION4]=undefined2,rgxMapper.call(_os,_ua,_rgxmap.os),_isSelfNav&&!_os[NAME]&&_uach&&_uach.platform!="Unknown"&&(_os[NAME]=_uach.platform.replace(/chrome os/i,CHROMIUM_OS).replace(/macos/i,MAC_OS)),_os},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return _ua},this.setUA=function(ua2){return _ua=typeof ua2===STR_TYPE&&ua2.length>UA_MAX_LENGTH?trim(ua2,UA_MAX_LENGTH):ua2,this},this.setUA(_ua),this};UAParser2.VERSION=LIBVERSION,UAParser2.BROWSER=enumerize([NAME,VERSION4,MAJOR]),UAParser2.CPU=enumerize([ARCHITECTURE]),UAParser2.DEVICE=enumerize([MODEL,VENDOR,TYPE,CONSOLE,MOBILE,SMARTTV,TABLET,WEARABLE,EMBEDDED]),UAParser2.ENGINE=UAParser2.OS=enumerize([NAME,VERSION4]),typeof exports!==UNDEF_TYPE?(typeof module!==UNDEF_TYPE&&module.exports&&(exports=module.exports=UAParser2),exports.UAParser=UAParser2):typeof define===FUNC_TYPE&&define.amd?define(function(){return UAParser2}):typeof window2!==UNDEF_TYPE&&(window2.UAParser=UAParser2);var $=typeof window2!==UNDEF_TYPE&&(window2.jQuery||window2.Zepto);if($&&!$.ua){var parser=new UAParser2;$.ua=parser.getResult(),$.ua.get=function(){return parser.getUA()},$.ua.set=function(ua){parser.setUA(ua);var result=parser.getResult();for(var prop in result)$.ua[prop]=result[prop]}}})(typeof window=="object"?window:exports)}});var require_tinycolor=__commonJS({"node_modules/tinycolor2/tinycolor.js"(exports,module){(function(Math2){var trimLeft=/^\s+/,trimRight=/\s+$/,tinyCounter=0,mathRound=Math2.round,mathMin=Math2.min,mathMax=Math2.max,mathRandom=Math2.random;function tinycolor4(color,opts){if(color=color||"",opts=opts||{},color instanceof tinycolor4)return color;if(!(this instanceof tinycolor4))return new tinycolor4(color,opts);var rgb=inputToRGB(color);this._originalInput=color,this._r=rgb.r,this._g=rgb.g,this._b=rgb.b,this._a=rgb.a,this._roundA=mathRound(100*this._a)/100,this._format=opts.format||rgb.format,this._gradientType=opts.gradientType,this._r<1&&(this._r=mathRound(this._r)),this._g<1&&(this._g=mathRound(this._g)),this._b<1&&(this._b=mathRound(this._b)),this._ok=rgb.ok,this._tc_id=tinyCounter++}tinycolor4.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var rgb=this.toRgb();return(rgb.r*299+rgb.g*587+rgb.b*114)/1e3},getLuminance:function(){var rgb=this.toRgb(),RsRGB,GsRGB,BsRGB,R2,G2,B;return RsRGB=rgb.r/255,GsRGB=rgb.g/255,BsRGB=rgb.b/255,RsRGB<=.03928?R2=RsRGB/12.92:R2=Math2.pow((RsRGB+.055)/1.055,2.4),GsRGB<=.03928?G2=GsRGB/12.92:G2=Math2.pow((GsRGB+.055)/1.055,2.4),BsRGB<=.03928?B=BsRGB/12.92:B=Math2.pow((BsRGB+.055)/1.055,2.4),.2126*R2+.7152*G2+.0722*B},setAlpha:function(value){return this._a=boundAlpha(value),this._roundA=mathRound(100*this._a)/100,this},toHsv:function(){var hsv=rgbToHsv(this._r,this._g,this._b);return{h:hsv.h*360,s:hsv.s,v:hsv.v,a:this._a}},toHsvString:function(){var hsv=rgbToHsv(this._r,this._g,this._b),h=mathRound(hsv.h*360),s2=mathRound(hsv.s*100),v=mathRound(hsv.v*100);return this._a==1?"hsv("+h+", "+s2+"%, "+v+"%)":"hsva("+h+", "+s2+"%, "+v+"%, "+this._roundA+")"},toHsl:function(){var hsl=rgbToHsl(this._r,this._g,this._b);return{h:hsl.h*360,s:hsl.s,l:hsl.l,a:this._a}},toHslString:function(){var hsl=rgbToHsl(this._r,this._g,this._b),h=mathRound(hsl.h*360),s2=mathRound(hsl.s*100),l2=mathRound(hsl.l*100);return this._a==1?"hsl("+h+", "+s2+"%, "+l2+"%)":"hsla("+h+", "+s2+"%, "+l2+"%, "+this._roundA+")"},toHex:function(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char)},toHexString:function(allow3Char){return"#"+this.toHex(allow3Char)},toHex8:function(allow4Char){return rgbaToHex(this._r,this._g,this._b,this._a,allow4Char)},toHex8String:function(allow4Char){return"#"+this.toHex8(allow4Char)},toRgb:function(){return{r:mathRound(this._r),g:mathRound(this._g),b:mathRound(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+mathRound(this._r)+", "+mathRound(this._g)+", "+mathRound(this._b)+")":"rgba("+mathRound(this._r)+", "+mathRound(this._g)+", "+mathRound(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:mathRound(bound01(this._r,255)*100)+"%",g:mathRound(bound01(this._g,255)*100)+"%",b:mathRound(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+mathRound(bound01(this._r,255)*100)+"%, "+mathRound(bound01(this._g,255)*100)+"%, "+mathRound(bound01(this._b,255)*100)+"%)":"rgba("+mathRound(bound01(this._r,255)*100)+"%, "+mathRound(bound01(this._g,255)*100)+"%, "+mathRound(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(secondColor){var hex8String="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),secondHex8String=hex8String,gradientType=this._gradientType?"GradientType = 1, ":"";if(secondColor){var s2=tinycolor4(secondColor);secondHex8String="#"+rgbaToArgbHex(s2._r,s2._g,s2._b,s2._a)}return"progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"},toString:function(format2){var formatSet=!!format2;format2=format2||this._format;var formattedString=!1,hasAlpha=this._a<1&&this._a>=0,needsAlphaFormat=!formatSet&&hasAlpha&&(format2==="hex"||format2==="hex6"||format2==="hex3"||format2==="hex4"||format2==="hex8"||format2==="name");return needsAlphaFormat?format2==="name"&&this._a===0?this.toName():this.toRgbString():(format2==="rgb"&&(formattedString=this.toRgbString()),format2==="prgb"&&(formattedString=this.toPercentageRgbString()),(format2==="hex"||format2==="hex6")&&(formattedString=this.toHexString()),format2==="hex3"&&(formattedString=this.toHexString(!0)),format2==="hex4"&&(formattedString=this.toHex8String(!0)),format2==="hex8"&&(formattedString=this.toHex8String()),format2==="name"&&(formattedString=this.toName()),format2==="hsl"&&(formattedString=this.toHslString()),format2==="hsv"&&(formattedString=this.toHsvString()),formattedString||this.toHexString())},clone:function(){return tinycolor4(this.toString())},_applyModification:function(fn2,args){var color=fn2.apply(null,[this].concat([].slice.call(args)));return this._r=color._r,this._g=color._g,this._b=color._b,this.setAlpha(color._a),this},lighten:function(){return this._applyModification(lighten,arguments)},brighten:function(){return this._applyModification(brighten,arguments)},darken:function(){return this._applyModification(darken,arguments)},desaturate:function(){return this._applyModification(desaturate,arguments)},saturate:function(){return this._applyModification(saturate,arguments)},greyscale:function(){return this._applyModification(greyscale,arguments)},spin:function(){return this._applyModification(spin,arguments)},_applyCombination:function(fn2,args){return fn2.apply(null,[this].concat([].slice.call(args)))},analogous:function(){return this._applyCombination(analogous,arguments)},complement:function(){return this._applyCombination(complement,arguments)},monochromatic:function(){return this._applyCombination(monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments)},triad:function(){return this._applyCombination(triad,arguments)},tetrad:function(){return this._applyCombination(tetrad,arguments)}},tinycolor4.fromRatio=function(color,opts){if(typeof color=="object"){var newColor={};for(var i in color)color.hasOwnProperty(i)&&(i==="a"?newColor[i]=color[i]:newColor[i]=convertToPercentage(color[i]));color=newColor}return tinycolor4(color,opts)};function inputToRGB(color){var rgb={r:0,g:0,b:0},a=1,s2=null,v=null,l2=null,ok=!1,format2=!1;return typeof color=="string"&&(color=stringInputToObject(color)),typeof color=="object"&&(isValidCSSUnit(color.r)&&isValidCSSUnit(color.g)&&isValidCSSUnit(color.b)?(rgb=rgbToRgb(color.r,color.g,color.b),ok=!0,format2=String(color.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(color.h)&&isValidCSSUnit(color.s)&&isValidCSSUnit(color.v)?(s2=convertToPercentage(color.s),v=convertToPercentage(color.v),rgb=hsvToRgb(color.h,s2,v),ok=!0,format2="hsv"):isValidCSSUnit(color.h)&&isValidCSSUnit(color.s)&&isValidCSSUnit(color.l)&&(s2=convertToPercentage(color.s),l2=convertToPercentage(color.l),rgb=hslToRgb(color.h,s2,l2),ok=!0,format2="hsl"),color.hasOwnProperty("a")&&(a=color.a)),a=boundAlpha(a),{ok,format:color.format||format2,r:mathMin(255,mathMax(rgb.r,0)),g:mathMin(255,mathMax(rgb.g,0)),b:mathMin(255,mathMax(rgb.b,0)),a}}function rgbToRgb(r,g2,b2){return{r:bound01(r,255)*255,g:bound01(g2,255)*255,b:bound01(b2,255)*255}}function rgbToHsl(r,g2,b2){r=bound01(r,255),g2=bound01(g2,255),b2=bound01(b2,255);var max2=mathMax(r,g2,b2),min2=mathMin(r,g2,b2),h,s2,l2=(max2+min2)/2;if(max2==min2)h=s2=0;else{var d2=max2-min2;switch(s2=l2>.5?d2/(2-max2-min2):d2/(max2+min2),max2){case r:h=(g2-b2)/d2+(g2<b2?6:0);break;case g2:h=(b2-r)/d2+2;break;case b2:h=(r-g2)/d2+4;break}h/=6}return{h,s:s2,l:l2}}function hslToRgb(h,s2,l2){var r,g2,b2;h=bound01(h,360),s2=bound01(s2,100),l2=bound01(l2,100);function hue2rgb(p2,q2,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?p2+(q2-p2)*6*t:t<1/2?q2:t<2/3?p2+(q2-p2)*(2/3-t)*6:p2}if(s2===0)r=g2=b2=l2;else{var q=l2<.5?l2*(1+s2):l2+s2-l2*s2,p=2*l2-q;r=hue2rgb(p,q,h+1/3),g2=hue2rgb(p,q,h),b2=hue2rgb(p,q,h-1/3)}return{r:r*255,g:g2*255,b:b2*255}}function rgbToHsv(r,g2,b2){r=bound01(r,255),g2=bound01(g2,255),b2=bound01(b2,255);var max2=mathMax(r,g2,b2),min2=mathMin(r,g2,b2),h,s2,v=max2,d2=max2-min2;if(s2=max2===0?0:d2/max2,max2==min2)h=0;else{switch(max2){case r:h=(g2-b2)/d2+(g2<b2?6:0);break;case g2:h=(b2-r)/d2+2;break;case b2:h=(r-g2)/d2+4;break}h/=6}return{h,s:s2,v}}function hsvToRgb(h,s2,v){h=bound01(h,360)*6,s2=bound01(s2,100),v=bound01(v,100);var i=Math2.floor(h),f2=h-i,p=v*(1-s2),q=v*(1-f2*s2),t=v*(1-(1-f2)*s2),mod=i%6,r=[v,q,p,p,t,v][mod],g2=[t,v,v,q,p,p][mod],b2=[p,p,t,v,v,q][mod];return{r:r*255,g:g2*255,b:b2*255}}function rgbToHex(r,g2,b2,allow3Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g2).toString(16)),pad2(mathRound(b2).toString(16))];return allow3Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)?hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0):hex.join("")}function rgbaToHex(r,g2,b2,a,allow4Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g2).toString(16)),pad2(mathRound(b2).toString(16)),pad2(convertDecimalToHex(a))];return allow4Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)&&hex[3].charAt(0)==hex[3].charAt(1)?hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0)+hex[3].charAt(0):hex.join("")}function rgbaToArgbHex(r,g2,b2,a){var hex=[pad2(convertDecimalToHex(a)),pad2(mathRound(r).toString(16)),pad2(mathRound(g2).toString(16)),pad2(mathRound(b2).toString(16))];return hex.join("")}tinycolor4.equals=function(color1,color2){return!color1||!color2?!1:tinycolor4(color1).toRgbString()==tinycolor4(color2).toRgbString()},tinycolor4.random=function(){return tinycolor4.fromRatio({r:mathRandom(),g:mathRandom(),b:mathRandom()})};function desaturate(color,amount){amount=amount===0?0:amount||10;var hsl=tinycolor4(color).toHsl();return hsl.s-=amount/100,hsl.s=clamp01(hsl.s),tinycolor4(hsl)}function saturate(color,amount){amount=amount===0?0:amount||10;var hsl=tinycolor4(color).toHsl();return hsl.s+=amount/100,hsl.s=clamp01(hsl.s),tinycolor4(hsl)}function greyscale(color){return tinycolor4(color).desaturate(100)}function lighten(color,amount){amount=amount===0?0:amount||10;var hsl=tinycolor4(color).toHsl();return hsl.l+=amount/100,hsl.l=clamp01(hsl.l),tinycolor4(hsl)}function brighten(color,amount){amount=amount===0?0:amount||10;var rgb=tinycolor4(color).toRgb();return rgb.r=mathMax(0,mathMin(255,rgb.r-mathRound(255*-(amount/100)))),rgb.g=mathMax(0,mathMin(255,rgb.g-mathRound(255*-(amount/100)))),rgb.b=mathMax(0,mathMin(255,rgb.b-mathRound(255*-(amount/100)))),tinycolor4(rgb)}function darken(color,amount){amount=amount===0?0:amount||10;var hsl=tinycolor4(color).toHsl();return hsl.l-=amount/100,hsl.l=clamp01(hsl.l),tinycolor4(hsl)}function spin(color,amount){var hsl=tinycolor4(color).toHsl(),hue=(hsl.h+amount)%360;return hsl.h=hue<0?360+hue:hue,tinycolor4(hsl)}function complement(color){var hsl=tinycolor4(color).toHsl();return hsl.h=(hsl.h+180)%360,tinycolor4(hsl)}function triad(color){var hsl=tinycolor4(color).toHsl(),h=hsl.h;return[tinycolor4(color),tinycolor4({h:(h+120)%360,s:hsl.s,l:hsl.l}),tinycolor4({h:(h+240)%360,s:hsl.s,l:hsl.l})]}function tetrad(color){var hsl=tinycolor4(color).toHsl(),h=hsl.h;return[tinycolor4(color),tinycolor4({h:(h+90)%360,s:hsl.s,l:hsl.l}),tinycolor4({h:(h+180)%360,s:hsl.s,l:hsl.l}),tinycolor4({h:(h+270)%360,s:hsl.s,l:hsl.l})]}function splitcomplement(color){var hsl=tinycolor4(color).toHsl(),h=hsl.h;return[tinycolor4(color),tinycolor4({h:(h+72)%360,s:hsl.s,l:hsl.l}),tinycolor4({h:(h+216)%360,s:hsl.s,l:hsl.l})]}function analogous(color,results,slices){results=results||6,slices=slices||30;var hsl=tinycolor4(color).toHsl(),part=360/slices,ret=[tinycolor4(color)];for(hsl.h=(hsl.h-(part*results>>1)+720)%360;--results;)hsl.h=(hsl.h+part)%360,ret.push(tinycolor4(hsl));return ret}function monochromatic(color,results){results=results||6;for(var hsv=tinycolor4(color).toHsv(),h=hsv.h,s2=hsv.s,v=hsv.v,ret=[],modification=1/results;results--;)ret.push(tinycolor4({h,s:s2,v})),v=(v+modification)%1;return ret}tinycolor4.mix=function(color1,color2,amount){amount=amount===0?0:amount||50;var rgb1=tinycolor4(color1).toRgb(),rgb2=tinycolor4(color2).toRgb(),p=amount/100,rgba={r:(rgb2.r-rgb1.r)*p+rgb1.r,g:(rgb2.g-rgb1.g)*p+rgb1.g,b:(rgb2.b-rgb1.b)*p+rgb1.b,a:(rgb2.a-rgb1.a)*p+rgb1.a};return tinycolor4(rgba)},tinycolor4.readability=function(color1,color2){var c1=tinycolor4(color1),c2=tinycolor4(color2);return(Math2.max(c1.getLuminance(),c2.getLuminance())+.05)/(Math2.min(c1.getLuminance(),c2.getLuminance())+.05)},tinycolor4.isReadable=function(color1,color2,wcag2){var readability=tinycolor4.readability(color1,color2),wcag2Parms,out;switch(out=!1,wcag2Parms=validateWCAG2Parms(wcag2),wcag2Parms.level+wcag2Parms.size){case"AAsmall":case"AAAlarge":out=readability>=4.5;break;case"AAlarge":out=readability>=3;break;case"AAAsmall":out=readability>=7;break}return out},tinycolor4.mostReadable=function(baseColor,colorList,args){var bestColor=null,bestScore=0,readability,includeFallbackColors,level,size;args=args||{},includeFallbackColors=args.includeFallbackColors,level=args.level,size=args.size;for(var i=0;i<colorList.length;i++)readability=tinycolor4.readability(baseColor,colorList[i]),readability>bestScore&&(bestScore=readability,bestColor=tinycolor4(colorList[i]));return tinycolor4.isReadable(baseColor,bestColor,{level,size})||!includeFallbackColors?bestColor:(args.includeFallbackColors=!1,tinycolor4.mostReadable(baseColor,["#fff","#000"],args))};var names=tinycolor4.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor4.hexNames=flip2(names);function flip2(o2){var flipped={};for(var i in o2)o2.hasOwnProperty(i)&&(flipped[o2[i]]=i);return flipped}function boundAlpha(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function bound01(n2,max2){isOnePointZero(n2)&&(n2="100%");var processPercent=isPercentage(n2);return n2=mathMin(max2,mathMax(0,parseFloat(n2))),processPercent&&(n2=parseInt(n2*max2,10)/100),Math2.abs(n2-max2)<1e-6?1:n2%max2/parseFloat(max2)}function clamp01(val){return mathMin(1,mathMax(0,val))}function parseIntFromHex(val){return parseInt(val,16)}function isOnePointZero(n2){return typeof n2=="string"&&n2.indexOf(".")!=-1&&parseFloat(n2)===1}function isPercentage(n2){return typeof n2=="string"&&n2.indexOf("%")!=-1}function pad2(c){return c.length==1?"0"+c:""+c}function convertToPercentage(n2){return n2<=1&&(n2=n2*100+"%"),n2}function convertDecimalToHex(d2){return Math2.round(parseFloat(d2)*255).toString(16)}function convertHexToDecimal(h){return parseIntFromHex(h)/255}var matchers=function(){var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:"+CSS_NUMBER+")|(?:"+CSS_INTEGER+")",PERMISSIVE_MATCH3="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?";return{CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function isValidCSSUnit(color){return!!matchers.CSS_UNIT.exec(color)}function stringInputToObject(color){color=color.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var named=!1;if(names[color])color=names[color],named=!0;else if(color=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var match2;return(match2=matchers.rgb.exec(color))?{r:match2[1],g:match2[2],b:match2[3]}:(match2=matchers.rgba.exec(color))?{r:match2[1],g:match2[2],b:match2[3],a:match2[4]}:(match2=matchers.hsl.exec(color))?{h:match2[1],s:match2[2],l:match2[3]}:(match2=matchers.hsla.exec(color))?{h:match2[1],s:match2[2],l:match2[3],a:match2[4]}:(match2=matchers.hsv.exec(color))?{h:match2[1],s:match2[2],v:match2[3]}:(match2=matchers.hsva.exec(color))?{h:match2[1],s:match2[2],v:match2[3],a:match2[4]}:(match2=matchers.hex8.exec(color))?{r:parseIntFromHex(match2[1]),g:parseIntFromHex(match2[2]),b:parseIntFromHex(match2[3]),a:convertHexToDecimal(match2[4]),format:named?"name":"hex8"}:(match2=matchers.hex6.exec(color))?{r:parseIntFromHex(match2[1]),g:parseIntFromHex(match2[2]),b:parseIntFromHex(match2[3]),format:named?"name":"hex"}:(match2=matchers.hex4.exec(color))?{r:parseIntFromHex(match2[1]+""+match2[1]),g:parseIntFromHex(match2[2]+""+match2[2]),b:parseIntFromHex(match2[3]+""+match2[3]),a:convertHexToDecimal(match2[4]+""+match2[4]),format:named?"name":"hex8"}:(match2=matchers.hex3.exec(color))?{r:parseIntFromHex(match2[1]+""+match2[1]),g:parseIntFromHex(match2[2]+""+match2[2]),b:parseIntFromHex(match2[3]+""+match2[3]),format:named?"name":"hex"}:!1}function validateWCAG2Parms(parms){var level,size;return parms=parms||{level:"AA",size:"small"},level=(parms.level||"AA").toUpperCase(),size=(parms.size||"small").toLowerCase(),level!=="AA"&&level!=="AAA"&&(level="AA"),size!=="small"&&size!=="large"&&(size="small"),{level,size}}typeof module<"u"&&module.exports?module.exports=tinycolor4:typeof define=="function"&&define.amd?define(function(){return tinycolor4}):window.tinycolor=tinycolor4})(Math)}});var require_os=__commonJS({"(disabled):os"(){}});var require_events=__commonJS({"node_modules/events/events.js"(exports,module){"use strict";var R2=typeof Reflect=="object"?Reflect:null,ReflectApply=R2&&typeof R2.apply=="function"?R2.apply:function(target,receiver,args){return Function.prototype.apply.call(target,receiver,args)},ReflectOwnKeys;R2&&typeof R2.ownKeys=="function"?ReflectOwnKeys=R2.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(target){return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target))}:ReflectOwnKeys=function(target){return Object.getOwnPropertyNames(target)};function ProcessEmitWarning(warning){console&&console.warn&&console.warn(warning)}var NumberIsNaN=Number.isNaN||function(value){return value!==value};function EventEmitter3(){EventEmitter3.init.call(this)}module.exports=EventEmitter3;module.exports.once=once;EventEmitter3.EventEmitter=EventEmitter3;EventEmitter3.prototype._events=void 0;EventEmitter3.prototype._eventsCount=0;EventEmitter3.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(listener){if(typeof listener!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof listener)}Object.defineProperty(EventEmitter3,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(arg){if(typeof arg!="number"||arg<0||NumberIsNaN(arg))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+arg+".");defaultMaxListeners=arg}});EventEmitter3.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};EventEmitter3.prototype.setMaxListeners=function(n2){if(typeof n2!="number"||n2<0||NumberIsNaN(n2))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n2+".");return this._maxListeners=n2,this};function _getMaxListeners(that){return that._maxListeners===void 0?EventEmitter3.defaultMaxListeners:that._maxListeners}EventEmitter3.prototype.getMaxListeners=function(){return _getMaxListeners(this)};EventEmitter3.prototype.emit=function(type2){for(var args=[],i=1;i<arguments.length;i++)args.push(arguments[i]);var doError=type2==="error",events=this._events;if(events!==void 0)doError=doError&&events.error===void 0;else if(!doError)return!1;if(doError){var er;if(args.length>0&&(er=args[0]),er instanceof Error)throw er;var err=new Error("Unhandled error."+(er?" ("+er.message+")":""));throw err.context=er,err}var handler=events[type2];if(handler===void 0)return!1;if(typeof handler=="function")ReflectApply(handler,this,args);else for(var len=handler.length,listeners=arrayClone(handler,len),i=0;i<len;++i)ReflectApply(listeners[i],this,args);return!0};function _addListener(target,type2,listener,prepend){var m,events,existing;if(checkListener(listener),events=target._events,events===void 0?(events=target._events=Object.create(null),target._eventsCount=0):(events.newListener!==void 0&&(target.emit("newListener",type2,listener.listener?listener.listener:listener),events=target._events),existing=events[type2]),existing===void 0)existing=events[type2]=listener,++target._eventsCount;else if(typeof existing=="function"?existing=events[type2]=prepend?[listener,existing]:[existing,listener]:prepend?existing.unshift(listener):existing.push(listener),m=_getMaxListeners(target),m>0&&existing.length>m&&!existing.warned){existing.warned=!0;var w2=new Error("Possible EventEmitter memory leak detected. "+existing.length+" "+String(type2)+" listeners added. Use emitter.setMaxListeners() to increase limit");w2.name="MaxListenersExceededWarning",w2.emitter=target,w2.type=type2,w2.count=existing.length,ProcessEmitWarning(w2)}return target}EventEmitter3.prototype.addListener=function(type2,listener){return _addListener(this,type2,listener,!1)};EventEmitter3.prototype.on=EventEmitter3.prototype.addListener;EventEmitter3.prototype.prependListener=function(type2,listener){return _addListener(this,type2,listener,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(target,type2,listener){var state={fired:!1,wrapFn:void 0,target,type:type2,listener},wrapped=onceWrapper.bind(state);return wrapped.listener=listener,state.wrapFn=wrapped,wrapped}EventEmitter3.prototype.once=function(type2,listener){return checkListener(listener),this.on(type2,_onceWrap(this,type2,listener)),this};EventEmitter3.prototype.prependOnceListener=function(type2,listener){return checkListener(listener),this.prependListener(type2,_onceWrap(this,type2,listener)),this};EventEmitter3.prototype.removeListener=function(type2,listener){var list,events,position,i,originalListener;if(checkListener(listener),events=this._events,events===void 0)return this;if(list=events[type2],list===void 0)return this;if(list===listener||list.listener===listener)--this._eventsCount===0?this._events=Object.create(null):(delete events[type2],events.removeListener&&this.emit("removeListener",type2,list.listener||listener));else if(typeof list!="function"){for(position=-1,i=list.length-1;i>=0;i--)if(list[i]===listener||list[i].listener===listener){originalListener=list[i].listener,position=i;break}if(position<0)return this;position===0?list.shift():spliceOne(list,position),list.length===1&&(events[type2]=list[0]),events.removeListener!==void 0&&this.emit("removeListener",type2,originalListener||listener)}return this};EventEmitter3.prototype.off=EventEmitter3.prototype.removeListener;EventEmitter3.prototype.removeAllListeners=function(type2){var listeners,events,i;if(events=this._events,events===void 0)return this;if(events.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):events[type2]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete events[type2]),this;if(arguments.length===0){var keys=Object.keys(events),key;for(i=0;i<keys.length;++i)key=keys[i],key!=="removeListener"&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(listeners=events[type2],typeof listeners=="function")this.removeListener(type2,listeners);else if(listeners!==void 0)for(i=listeners.length-1;i>=0;i--)this.removeListener(type2,listeners[i]);return this};function _listeners2(target,type2,unwrap){var events=target._events;if(events===void 0)return[];var evlistener=events[type2];return evlistener===void 0?[]:typeof evlistener=="function"?unwrap?[evlistener.listener||evlistener]:[evlistener]:unwrap?unwrapListeners(evlistener):arrayClone(evlistener,evlistener.length)}EventEmitter3.prototype.listeners=function(type2){return _listeners2(this,type2,!0)};EventEmitter3.prototype.rawListeners=function(type2){return _listeners2(this,type2,!1)};EventEmitter3.listenerCount=function(emitter,type2){return typeof emitter.listenerCount=="function"?emitter.listenerCount(type2):listenerCount.call(emitter,type2)};EventEmitter3.prototype.listenerCount=listenerCount;function listenerCount(type2){var events=this._events;if(events!==void 0){var evlistener=events[type2];if(typeof evlistener=="function")return 1;if(evlistener!==void 0)return evlistener.length}return 0}EventEmitter3.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(arr,n2){for(var copy=new Array(n2),i=0;i<n2;++i)copy[i]=arr[i];return copy}function spliceOne(list,index){for(;index+1<list.length;index++)list[index]=list[index+1];list.pop()}function unwrapListeners(arr){for(var ret=new Array(arr.length),i=0;i<ret.length;++i)ret[i]=arr[i].listener||arr[i];return ret}function once(emitter,name){return new Promise(function(resolve,reject2){function errorListener(err){emitter.removeListener(name,resolver),reject2(err)}function resolver(){typeof emitter.removeListener=="function"&&emitter.removeListener("error",errorListener),resolve([].slice.call(arguments))}eventTargetAgnosticAddListener(emitter,name,resolver,{once:!0}),name!=="error"&&addErrorHandlerIfEventEmitter(emitter,errorListener,{once:!0})})}function addErrorHandlerIfEventEmitter(emitter,handler,flags){typeof emitter.on=="function"&&eventTargetAgnosticAddListener(emitter,"error",handler,flags)}function eventTargetAgnosticAddListener(emitter,name,listener,flags){if(typeof emitter.on=="function")flags.once?emitter.once(name,listener):emitter.on(name,listener);else if(typeof emitter.addEventListener=="function")emitter.addEventListener(name,function wrapListener(arg){flags.once&&emitter.removeEventListener(name,wrapListener),listener(arg)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof emitter)}}});var require_dayjs_min=__commonJS({"node_modules/dayjs/dayjs.min.js"(exports,module){(function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(exports,function(){"use strict";var t=1e3,e=6e4,n2=36e5,r="millisecond",i="second",s2="minute",u2="hour",a="day",o2="week",c="month",f2="quarter",h="year",d2="date",l2="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y2=/\[([^\]]+)]|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,M={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(t2){var e2=["th","st","nd","rd"],n3=t2%100;return"["+t2+(e2[(n3-20)%10]||e2[n3]||e2[0])+"]"}},m=function(t2,e2,n3){var r2=String(t2);return!r2||r2.length>=e2?t2:""+Array(e2+1-r2.length).join(n3)+t2},v={s:m,z:function(t2){var e2=-t2.utcOffset(),n3=Math.abs(e2),r2=Math.floor(n3/60),i2=n3%60;return(e2<=0?"+":"-")+m(r2,2,"0")+":"+m(i2,2,"0")},m:function t2(e2,n3){if(e2.date()<n3.date())return-t2(n3,e2);var r2=12*(n3.year()-e2.year())+(n3.month()-e2.month()),i2=e2.clone().add(r2,c),s3=n3-i2<0,u3=e2.clone().add(r2+(s3?-1:1),c);return+(-(r2+(n3-i2)/(s3?i2-u3:u3-i2))||0)},a:function(t2){return t2<0?Math.ceil(t2)||0:Math.floor(t2)},p:function(t2){return{M:c,y:h,w:o2,d:a,D:d2,h:u2,m:s2,s:i,ms:r,Q:f2}[t2]||String(t2||"").toLowerCase().replace(/s$/,"")},u:function(t2){return t2===void 0}},g2="en",D={};D[g2]=M;var p="$isDayjsObject",S2=function(t2){return t2 instanceof _||!(!t2||!t2[p])},w2=function t2(e2,n3,r2){var i2;if(!e2)return g2;if(typeof e2=="string"){var s3=e2.toLowerCase();D[s3]&&(i2=s3),n3&&(D[s3]=n3,i2=s3);var u3=e2.split("-");if(!i2&&u3.length>1)return t2(u3[0])}else{var a2=e2.name;D[a2]=e2,i2=a2}return!r2&&i2&&(g2=i2),i2||!r2&&g2},O=function(t2,e2){if(S2(t2))return t2.clone();var n3=typeof e2=="object"?e2:{};return n3.date=t2,n3.args=arguments,new _(n3)},b2=v;b2.l=w2,b2.i=S2,b2.w=function(t2,e2){return O(t2,{locale:e2.$L,utc:e2.$u,x:e2.$x,$offset:e2.$offset})};var _=function(){function M2(t2){this.$L=w2(t2.locale,null,!0),this.parse(t2),this.$x=this.$x||t2.x||{},this[p]=!0}var m2=M2.prototype;return m2.parse=function(t2){this.$d=function(t3){var e2=t3.date,n3=t3.utc;if(e2===null)return new Date(NaN);if(b2.u(e2))return new Date;if(e2 instanceof Date)return new Date(e2);if(typeof e2=="string"&&!/Z$/i.test(e2)){var r2=e2.match($);if(r2){var i2=r2[2]-1||0,s3=(r2[7]||"0").substring(0,3);return n3?new Date(Date.UTC(r2[1],i2,r2[3]||1,r2[4]||0,r2[5]||0,r2[6]||0,s3)):new Date(r2[1],i2,r2[3]||1,r2[4]||0,r2[5]||0,r2[6]||0,s3)}}return new Date(e2)}(t2),this.init()},m2.init=function(){var t2=this.$d;this.$y=t2.getFullYear(),this.$M=t2.getMonth(),this.$D=t2.getDate(),this.$W=t2.getDay(),this.$H=t2.getHours(),this.$m=t2.getMinutes(),this.$s=t2.getSeconds(),this.$ms=t2.getMilliseconds()},m2.$utils=function(){return b2},m2.isValid=function(){return this.$d.toString()!==l2},m2.isSame=function(t2,e2){var n3=O(t2);return this.startOf(e2)<=n3&&n3<=this.endOf(e2)},m2.isAfter=function(t2,e2){return O(t2)<this.startOf(e2)},m2.isBefore=function(t2,e2){return this.endOf(e2)<O(t2)},m2.$g=function(t2,e2,n3){return b2.u(t2)?this[e2]:this.set(n3,t2)},m2.unix=function(){return Math.floor(this.valueOf()/1e3)},m2.valueOf=function(){return this.$d.getTime()},m2.startOf=function(t2,e2){var n3=this,r2=!!b2.u(e2)||e2,f3=b2.p(t2),l3=function(t3,e3){var i2=b2.w(n3.$u?Date.UTC(n3.$y,e3,t3):new Date(n3.$y,e3,t3),n3);return r2?i2:i2.endOf(a)},$2=function(t3,e3){return b2.w(n3.toDate()[t3].apply(n3.toDate("s"),(r2?[0,0,0,0]:[23,59,59,999]).slice(e3)),n3)},y3=this.$W,M3=this.$M,m3=this.$D,v2="set"+(this.$u?"UTC":"");switch(f3){case h:return r2?l3(1,0):l3(31,11);case c:return r2?l3(1,M3):l3(0,M3+1);case o2:var g3=this.$locale().weekStart||0,D2=(y3<g3?y3+7:y3)-g3;return l3(r2?m3-D2:m3+(6-D2),M3);case a:case d2:return $2(v2+"Hours",0);case u2:return $2(v2+"Minutes",1);case s2:return $2(v2+"Seconds",2);case i:return $2(v2+"Milliseconds",3);default:return this.clone()}},m2.endOf=function(t2){return this.startOf(t2,!1)},m2.$set=function(t2,e2){var n3,o3=b2.p(t2),f3="set"+(this.$u?"UTC":""),l3=(n3={},n3[a]=f3+"Date",n3[d2]=f3+"Date",n3[c]=f3+"Month",n3[h]=f3+"FullYear",n3[u2]=f3+"Hours",n3[s2]=f3+"Minutes",n3[i]=f3+"Seconds",n3[r]=f3+"Milliseconds",n3)[o3],$2=o3===a?this.$D+(e2-this.$W):e2;if(o3===c||o3===h){var y3=this.clone().set(d2,1);y3.$d[l3]($2),y3.init(),this.$d=y3.set(d2,Math.min(this.$D,y3.daysInMonth())).$d}else l3&&this.$d[l3]($2);return this.init(),this},m2.set=function(t2,e2){return this.clone().$set(t2,e2)},m2.get=function(t2){return this[b2.p(t2)]()},m2.add=function(r2,f3){var d3,l3=this;r2=Number(r2);var $2=b2.p(f3),y3=function(t2){var e2=O(l3);return b2.w(e2.date(e2.date()+Math.round(t2*r2)),l3)};if($2===c)return this.set(c,this.$M+r2);if($2===h)return this.set(h,this.$y+r2);if($2===a)return y3(1);if($2===o2)return y3(7);var M3=(d3={},d3[s2]=e,d3[u2]=n2,d3[i]=t,d3)[$2]||1,m3=this.$d.getTime()+r2*M3;return b2.w(m3,this)},m2.subtract=function(t2,e2){return this.add(-1*t2,e2)},m2.format=function(t2){var e2=this,n3=this.$locale();if(!this.isValid())return n3.invalidDate||l2;var r2=t2||"YYYY-MM-DDTHH:mm:ssZ",i2=b2.z(this),s3=this.$H,u3=this.$m,a2=this.$M,o3=n3.weekdays,c2=n3.months,f3=n3.meridiem,h2=function(t3,n4,i3,s4){return t3&&(t3[n4]||t3(e2,r2))||i3[n4].slice(0,s4)},d3=function(t3){return b2.s(s3%12||12,t3,"0")},$2=f3||function(t3,e3,n4){var r3=t3<12?"AM":"PM";return n4?r3.toLowerCase():r3};return r2.replace(y2,function(t3,r3){return r3||function(t4){switch(t4){case"YY":return String(e2.$y).slice(-2);case"YYYY":return b2.s(e2.$y,4,"0");case"M":return a2+1;case"MM":return b2.s(a2+1,2,"0");case"MMM":return h2(n3.monthsShort,a2,c2,3);case"MMMM":return h2(c2,a2);case"D":return e2.$D;case"DD":return b2.s(e2.$D,2,"0");case"d":return String(e2.$W);case"dd":return h2(n3.weekdaysMin,e2.$W,o3,2);case"ddd":return h2(n3.weekdaysShort,e2.$W,o3,3);case"dddd":return o3[e2.$W];case"H":return String(s3);case"HH":return b2.s(s3,2,"0");case"h":return d3(1);case"hh":return d3(2);case"a":return $2(s3,u3,!0);case"A":return $2(s3,u3,!1);case"m":return String(u3);case"mm":return b2.s(u3,2,"0");case"s":return String(e2.$s);case"ss":return b2.s(e2.$s,2,"0");case"SSS":return b2.s(e2.$ms,3,"0");case"Z":return i2}return null}(t3)||i2.replace(":","")})},m2.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m2.diff=function(r2,d3,l3){var $2,y3=this,M3=b2.p(d3),m3=O(r2),v2=(m3.utcOffset()-this.utcOffset())*e,g3=this-m3,D2=function(){return b2.m(y3,m3)};switch(M3){case h:$2=D2()/12;break;case c:$2=D2();break;case f2:$2=D2()/3;break;case o2:$2=(g3-v2)/6048e5;break;case a:$2=(g3-v2)/864e5;break;case u2:$2=g3/n2;break;case s2:$2=g3/e;break;case i:$2=g3/t;break;default:$2=g3}return l3?$2:b2.a($2)},m2.daysInMonth=function(){return this.endOf(c).$D},m2.$locale=function(){return D[this.$L]},m2.locale=function(t2,e2){if(!t2)return this.$L;var n3=this.clone(),r2=w2(t2,e2,!0);return r2&&(n3.$L=r2),n3},m2.clone=function(){return b2.w(this.$d,this)},m2.toDate=function(){return new Date(this.valueOf())},m2.toJSON=function(){return this.isValid()?this.toISOString():null},m2.toISOString=function(){return this.$d.toISOString()},m2.toString=function(){return this.$d.toUTCString()},M2}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s2],["$H",u2],["$W",a],["$M",c],["$y",h],["$D",d2]].forEach(function(t2){k[t2[1]]=function(e2){return this.$g(e2,t2[0],t2[1])}}),O.extend=function(t2,e2){return t2.$i||(t2(e2,_,O),t2.$i=!0),O},O.locale=w2,O.isDayjs=S2,O.unix=function(t2){return O(1e3*t2)},O.en=D[g2],O.Ls=D,O.p={},O})}});var require_localeData=__commonJS({"node_modules/dayjs/plugin/localeData.js"(exports,module){(function(n2,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(n2=typeof globalThis<"u"?globalThis:n2||self).dayjs_plugin_localeData=e()})(exports,function(){"use strict";return function(n2,e,t){var r=e.prototype,o2=function(n3){return n3&&(n3.indexOf?n3:n3.s)},u2=function(n3,e2,t2,r2,u3){var i2=n3.name?n3:n3.$locale(),a2=o2(i2[e2]),s3=o2(i2[t2]),f2=a2||s3.map(function(n4){return n4.slice(0,r2)});if(!u3)return f2;var d2=i2.weekStart;return f2.map(function(n4,e3){return f2[(e3+(d2||0))%7]})},i=function(){return t.Ls[t.locale()]},a=function(n3,e2){return n3.formats[e2]||function(n4){return n4.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(n5,e3,t2){return e3||t2.slice(1)})}(n3.formats[e2.toUpperCase()])},s2=function(){var n3=this;return{months:function(e2){return e2?e2.format("MMMM"):u2(n3,"months")},monthsShort:function(e2){return e2?e2.format("MMM"):u2(n3,"monthsShort","months",3)},firstDayOfWeek:function(){return n3.$locale().weekStart||0},weekdays:function(e2){return e2?e2.format("dddd"):u2(n3,"weekdays")},weekdaysMin:function(e2){return e2?e2.format("dd"):u2(n3,"weekdaysMin","weekdays",2)},weekdaysShort:function(e2){return e2?e2.format("ddd"):u2(n3,"weekdaysShort","weekdays",3)},longDateFormat:function(e2){return a(n3.$locale(),e2)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s2.bind(this)()},t.localeData=function(){var n3=i();return{firstDayOfWeek:function(){return n3.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e2){return a(n3,e2)},meridiem:n3.meridiem,ordinal:n3.ordinal}},t.months=function(){return u2(i(),"months")},t.monthsShort=function(){return u2(i(),"monthsShort","months",3)},t.weekdays=function(n3){return u2(i(),"weekdays",null,null,n3)},t.weekdaysShort=function(n3){return u2(i(),"weekdaysShort","weekdays",3,n3)},t.weekdaysMin=function(n3){return u2(i(),"weekdaysMin","weekdays",2,n3)}}})}});var require_localizedFormat=__commonJS({"node_modules/dayjs/plugin/localizedFormat.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_localizedFormat=t()})(exports,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,o2,n2){var r=o2.prototype,i=r.format;n2.en.formats=e,r.format=function(t2){t2===void 0&&(t2="YYYY-MM-DDTHH:mm:ssZ");var o3=this.$locale().formats,n3=function(t3,o4){return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t4,n4,r2){var i2=r2&&r2.toUpperCase();return n4||o4[r2]||e[r2]||o4[i2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e2,t5,o5){return t5||o5.slice(1)})})}(t2,o3===void 0?{}:o3);return i.call(this,n3)}}})}});var require_isoWeek=__commonJS({"node_modules/dayjs/plugin/isoWeek.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=t()})(exports,function(){"use strict";var e="day";return function(t,i,s2){var a=function(t2){return t2.add(4-t2.isoWeekday(),e)},d2=i.prototype;d2.isoWeekYear=function(){return a(this).year()},d2.isoWeek=function(t2){if(!this.$utils().u(t2))return this.add(7*(t2-this.isoWeek()),e);var i2,d3,n3,o2,r=a(this),u2=(i2=this.isoWeekYear(),d3=this.$u,n3=(d3?s2.utc:s2)().year(i2).startOf("year"),o2=4-n3.isoWeekday(),n3.isoWeekday()>4&&(o2+=7),n3.add(o2,e));return r.diff(u2,"week")+1},d2.isoWeekday=function(e2){return this.$utils().u(e2)?this.day()||7:this.day(this.day()%7?e2:e2-7)};var n2=d2.startOf;d2.startOf=function(e2,t2){var i2=this.$utils(),s3=!!i2.u(t2)||t2;return i2.p(e2)==="isoweek"?s3?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):n2.bind(this)(e2,t2)}}})}});var require_weekOfYear=__commonJS({"node_modules/dayjs/plugin/weekOfYear.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_weekOfYear=t()})(exports,function(){"use strict";var e="week",t="year";return function(i,n2,r){var f2=n2.prototype;f2.week=function(i2){if(i2===void 0&&(i2=null),i2!==null)return this.add(7*(i2-this.week()),"day");var n3=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f3=r(this).startOf(t).add(1,t).date(n3),s2=r(this).endOf(e);if(f3.isBefore(s2))return 1}var a=r(this).startOf(t).date(n3).startOf(e).subtract(1,"millisecond"),o2=this.diff(a,e,!0);return o2<0?r(this).startOf("week").week():Math.ceil(o2)},f2.weeks=function(e2){return e2===void 0&&(e2=null),this.week(e2)}}})}});var require_customParseFormat=__commonJS({"node_modules/dayjs/plugin/customParseFormat.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(exports,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n2=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o2={},s2=function(e2){return(e2=+e2)+(e2>68?1900:2e3)},a=function(e2){return function(t2){this[e2]=+t2}},f2=[/[+-]\d\d:?(\d\d)?|Z/,function(e2){(this.zone||(this.zone={})).offset=function(e3){if(!e3||e3==="Z")return 0;var t2=e3.match(/([+-]|\d\d)/g),n3=60*t2[1]+(+t2[2]||0);return n3===0?0:t2[0]==="+"?-n3:n3}(e2)}],h=function(e2){var t2=o2[e2];return t2&&(t2.indexOf?t2:t2.s.concat(t2.f))},u2=function(e2,t2){var n3,r2=o2.meridiem;if(r2){for(var i2=1;i2<=24;i2+=1)if(e2.indexOf(r2(i2,0,t2))>-1){n3=i2>12;break}}else n3=e2===(t2?"pm":"PM");return n3},d2={A:[i,function(e2){this.afternoon=u2(e2,!1)}],a:[i,function(e2){this.afternoon=u2(e2,!0)}],S:[/\d/,function(e2){this.milliseconds=100*+e2}],SS:[n2,function(e2){this.milliseconds=10*+e2}],SSS:[/\d{3}/,function(e2){this.milliseconds=+e2}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n2,a("day")],Do:[i,function(e2){var t2=o2.ordinal,n3=e2.match(/\d+/);if(this.day=n3[0],t2)for(var r2=1;r2<=31;r2+=1)t2(r2).replace(/\[|\]/g,"")===e2&&(this.day=r2)}],M:[r,a("month")],MM:[n2,a("month")],MMM:[i,function(e2){var t2=h("months"),n3=(h("monthsShort")||t2.map(function(e3){return e3.slice(0,3)})).indexOf(e2)+1;if(n3<1)throw new Error;this.month=n3%12||n3}],MMMM:[i,function(e2){var t2=h("months").indexOf(e2)+1;if(t2<1)throw new Error;this.month=t2%12||t2}],Y:[/[+-]?\d+/,a("year")],YY:[n2,function(e2){this.year=s2(e2)}],YYYY:[/\d{4}/,a("year")],Z:f2,ZZ:f2};function c(n3){var r2,i2;r2=n3,i2=o2&&o2.formats;for(var s3=(n3=r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t2,n4,r3){var o3=r3&&r3.toUpperCase();return n4||i2[r3]||e[r3]||i2[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e2,t3,n5){return t3||n5.slice(1)})})).match(t),a2=s3.length,f3=0;f3<a2;f3+=1){var h2=s3[f3],u3=d2[h2],c2=u3&&u3[0],l2=u3&&u3[1];s3[f3]=l2?{regex:c2,parser:l2}:h2.replace(/^\[|\]$/g,"")}return function(e2){for(var t2={},n4=0,r3=0;n4<a2;n4+=1){var i3=s3[n4];if(typeof i3=="string")r3+=i3.length;else{var o3=i3.regex,f4=i3.parser,h3=e2.slice(r3),u4=o3.exec(h3)[0];f4.call(t2,u4),e2=e2.replace(u4,"")}}return function(e3){var t3=e3.afternoon;if(t3!==void 0){var n5=e3.hours;t3?n5<12&&(e3.hours+=12):n5===12&&(e3.hours=0),delete e3.afternoon}}(t2),t2}}return function(e2,t2,n3){n3.p.customParseFormat=!0,e2&&e2.parseTwoDigitYear&&(s2=e2.parseTwoDigitYear);var r2=t2.prototype,i2=r2.parse;r2.parse=function(e3){var t3=e3.date,r3=e3.utc,s3=e3.args;this.$u=r3;var a2=s3[1];if(typeof a2=="string"){var f3=s3[2]===!0,h2=s3[3]===!0,u3=f3||h2,d3=s3[2];h2&&(d3=s3[2]),o2=this.$locale(),!f3&&d3&&(o2=n3.Ls[d3]),this.$d=function(e4,t4,n4){try{if(["x","X"].indexOf(t4)>-1)return new Date((t4==="X"?1e3:1)*e4);var r4=c(t4)(e4),i3=r4.year,o3=r4.month,s4=r4.day,a3=r4.hours,f4=r4.minutes,h3=r4.seconds,u4=r4.milliseconds,d4=r4.zone,l3=new Date,m2=s4||(i3||o3?1:l3.getDate()),M2=i3||l3.getFullYear(),Y=0;i3&&!o3||(Y=o3>0?o3-1:l3.getMonth());var p=a3||0,v=f4||0,D=h3||0,g2=u4||0;return d4?new Date(Date.UTC(M2,Y,m2,p,v,D,g2+60*d4.offset*1e3)):n4?new Date(Date.UTC(M2,Y,m2,p,v,D,g2)):new Date(M2,Y,m2,p,v,D,g2)}catch{return new Date("")}}(t3,a2,r3),this.init(),d3&&d3!==!0&&(this.$L=this.locale(d3).$L),u3&&t3!=this.format(a2)&&(this.$d=new Date("")),o2={}}else if(a2 instanceof Array)for(var l2=a2.length,m=1;m<=l2;m+=1){s3[1]=a2[m-1];var M=n3.apply(this,s3);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l2&&(this.$d=new Date(""))}else i2.call(this,e3)}}})}});var require_formats=__commonJS({"node_modules/lorem-ipsum/dist/constants/formats.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.FORMAT_PLAIN=exports.FORMAT_HTML=exports.FORMATS=void 0;var FORMAT_HTML="html";exports.FORMAT_HTML=FORMAT_HTML;var FORMAT_PLAIN="plain";exports.FORMAT_PLAIN=FORMAT_PLAIN;var FORMATS=[FORMAT_HTML,FORMAT_PLAIN];exports.FORMATS=FORMATS}});var require_units=__commonJS({"node_modules/lorem-ipsum/dist/constants/units.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.UNIT_WORDS=exports.UNIT_WORD=exports.UNIT_SENTENCES=exports.UNIT_SENTENCE=exports.UNIT_PARAGRAPHS=exports.UNIT_PARAGRAPH=exports.UNITS=void 0;var UNIT_WORDS="words";exports.UNIT_WORDS=UNIT_WORDS;var UNIT_WORD="word";exports.UNIT_WORD=UNIT_WORD;var UNIT_SENTENCES="sentences";exports.UNIT_SENTENCES=UNIT_SENTENCES;var UNIT_SENTENCE="sentence";exports.UNIT_SENTENCE=UNIT_SENTENCE;var UNIT_PARAGRAPHS="paragraphs";exports.UNIT_PARAGRAPHS=UNIT_PARAGRAPHS;var UNIT_PARAGRAPH="paragraph";exports.UNIT_PARAGRAPH=UNIT_PARAGRAPH;var UNITS=[UNIT_WORDS,UNIT_WORD,UNIT_SENTENCES,UNIT_SENTENCE,UNIT_PARAGRAPHS,UNIT_PARAGRAPH];exports.UNITS=UNITS}});var require_words=__commonJS({"node_modules/lorem-ipsum/dist/constants/words.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.WORDS=void 0;var WORDS=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"];exports.WORDS=WORDS}});var require_lineEndings=__commonJS({"node_modules/lorem-ipsum/dist/constants/lineEndings.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.LINE_ENDINGS=void 0;var LINE_ENDINGS={POSIX:`
|
|
1
|
+
import{quill_default}from"./chunk-JJIOQICA.js";import{A11yModule,ACTIVE_RUNTIME_CHECKS,ANIMATION_MODULE_TYPE,APP_CONFIG,APP_INITIALIZER,AUTO_STYLE,Actions,ActionsSubject,ActivatedRoute,AnimationGroupPlayer,AnimationMetadataType,AnonymousSubject,ApplicationRef,AsyncPipe,BackendComponentCallerService,BackendComponentCallerServiceFactory,BackendComponentClient,BackendComponentClientProxyService,BehaviorSubject,BreakpointObserver,BrowserModule,CdkDrag,CdkDragPlaceholder,CdkDragPreview,CdkDropList,CdkPortalOutlet,CdkScrollable,CdkTextareaAutosize,CdkTrapFocus,ChangeDetectorRef,Clipboard,ClipboardModule,CommonModule,ComponentFactoryResolver$1,ComponentPortal,ComponentTemplateValidatorService,DEFAULT_CARD_DIMENSIONS,DEFAULT_CBC_INGRESS_URL,DEFAULT_REPORT_DIMENSIONS,DEFAULT_SHEET_DIMENSIONS,DOCUMENT,DateAdapter,DefaultClassDirective,DefaultFlexDirective,DefaultLayoutAlignDirective,DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultShowHideDirective,DefaultValueAccessor,DestroyRef,DomRendererFactory2,DomSanitizer,DragDropModule,EMPTY,ENVIRONMENT_INITIALIZER,EffectsModule,ElementRef,ErrorHandler,EventEmitter,FlexLayoutModule,FlexModule,FormArray,FormBuilder,FormControl,FormControlDirective,FormControlName,FormGroup,FormGroupDirective,FormGroupName,FormsModule,HTTP_INTERCEPTORS,HttpClient,HttpContext,HttpErrorResponse,HttpHeaders,HttpParams,HttpResponse,INIT,INITIAL_STATE,IXAPI_OPTIONS,InjectionToken,Injector,IxApi2RequestErrorMessages,IxApiErrorMessages,IxApiErrors,IxApiHeaderKeys,IxApiModule,IxApiRequestErrorMessages,IxApiRequestErrors,IxApiService,LayoutModule,Location,LowerCasePipe,MAT_BOTTOM_SHEET_DATA,MAT_DATE_FORMATS,MAT_DATE_LOCALE,MAT_DIALOG_DATA,MatActionList,MatBadge,MatBadgeModule,MatBottomSheet,MatBottomSheetRef,MatButton,MatButtonModule,MatCard,MatCardActions,MatCardHeader,MatCardModule,MatCardSubtitle,MatCardTitle,MatCheckbox,MatCheckboxModule,MatDatepicker,MatDatepickerInput,MatDatepickerToggle,MatDialog,MatDialogActions,MatDialogClose,MatDialogContainer,MatDialogContent,MatDialogModule,MatDialogRef,MatDialogTitle,MatDivider,MatDividerModule,MatDrawer,MatDrawerContainer,MatDrawerContent,MatError,MatExpansionPanel,MatFormField,MatFormFieldModule,MatHint,MatIcon,MatIconAnchor,MatIconButton,MatIconModule,MatIconRegistry,MatInput,MatInputModule,MatLabel,MatListItem,MatListItemIcon,MatListItemMeta,MatListItemTitle,MatListModule,MatListOption,MatListSubheaderCssMatStyler,MatMenu,MatMenuContent,MatMenuItem,MatMenuModule,MatMenuTrigger,MatNavList,MatOptgroup,MatOption,MatPaginatorModule,MatPrefix,MatProgressSpinner,MatProgressSpinnerModule,MatSelect,MatSelectModule,MatSelectionList,MatSidenav,MatSidenavContainer,MatSidenavModule,MatSnackBar,MatSnackBarModule,MatSuffix,MatTab,MatTabGroup,MatToolbar,MatToolbarModule,MatTooltip,MatTooltipModule,MediaObserver,Meta,MinValidator,NG_VALIDATORS,NG_VALUE_ACCESSOR,NavigationCancel,NavigationEnd,NavigationError,NavigationStart,NgClass,NgControl,NgControlStatus,NgControlStatusGroup,NgForOf,NgForm,NgIf,NgModel,NgSelectOption,NgStyle,NgTemplateOutlet,NgZone,NoopAnimationPlayer,NumberValueAccessor,ONE_WEEK,OTP_SMS_REQUIRED_PATTERN,Observable,Overlay,OverlayConfig,PAGE_COMPONENT,PLATFORM_ID,PageComponentTemplateManifestModule,PageComponentTemplateModule,PageComponentTemplateService,Platform,PortalInjector,PortalModule,REQUIRES_BRANDING,REQUIRES_COMPANY,ReactiveFormsModule,ReducerManagerDispatcher,ReducerObservable,Renderer2,RendererFactory2,ReplaySubject,RequiredValidator,ResourceDataClient,ResourceDataClientProxyService,ResourceDataServiceFactory,Router,RouterLink,RouterLinkActive,RouterModule,RouterOutlet,RoutesRecognized,RuntimeError,SESSION_STORAGE,STORAGE_KEY_CBC_INGRESS,STORAGE_KEY_CBC_INGRESS_URL,STORAGE_KEY_CBC_PUBLIC_ID,ScannedActionsSubject,SecurityContext,SelectControlValueAccessor,SettingsModule,SharedModule,StateObservable,StorageEventContext,StorageModule,StorageService,Store,StoreModule,Subject,Subscriber,Subscription,TemplateRef,Title,TitleCasePipe,TranslateDirective,TranslateLoader,TranslateModule,TranslatePipe,TranslateService,UPDATE,Validators,ViewContainerRef,ViewportRuler,WINDOW,__asyncDelegator,__asyncGenerator,__asyncValues,__await,__rest,add,addFailure,addSuccess,appConfigFactory,arrowRotateFactory,booleanAttribute,buffer,buildFields,catchError,combineLatest,compactFields,concatMap,createAction,createEffect,createEntityAdapter,createFeature,createFeatureSelector,createReducer,createResourceAdapter,createResourceSelectorFactory,createSelector,debounceTime,decryptValue,defaultOptions,defer,delay,delayWhen,didAdd,didAddList,didRemove,didRemoveList,didUpdate,didUpdateList,distinctUntilChanged,ensureAll,ensureMany,ensureOne,environment,expandCollapse,filter,first,firstValueFrom,forkJoin,forwardRef,from,fromEvent,getLinkMap,getLinkUrl,getMissingFields,getPageParams,hasFields,haveFields,inject,input,isDevMode,isNgrxMockEnvironment,isObservable,isPlatformBrowser,isPlatformServer,last,lastValueFrom,loadAllForIntentSuccess,loadAllSuccess,loadAppConfig,loadHost,loadHostFailure,loadHostSuccess,loadManySuccess,makeEnvironmentProviders,map,mapPageComponentTemplateManifestToDefaultInputs,mapPageComponentTemplateToCustomElementName,mapPageComponentTemplateToTemplateBaseUrl,mapPageComponentTemplateToTemplateUrl,mapResourceToSubResourceList,mapTemplateUrlToMainPath,mapTemplateUrlToManifestUrl,mapTemplateUrlToPublicId,merge,mergeFields,mergeLoadedFields,mergeMap,moveItemInArray,mustache_default,observeOn,of,ofStatus,ofType,omitSubresources,on,pairwise,parseBody,platformBrowser,props,provideHttpClient,queueScheduler,remove,removeFailure,removeSuccess,require_crypto_js,reset,reset2,reset3,resetPendingUpdates,retryBackoff,scan,select,selectAll,selectEntities,selectEntities2,selectEntity,selectEntity2,sequence,share,shareReplay,signal,skip,sortByNameAndPublicIdComparer,startWith,style,switchMap,take,takeUntil,takeUntilDestroyed,tap,throwError,throwNotFoundError,timeout,timer,toSignal,update,updateFailure,updateMany,updateManyFailure,updateManySuccess,updateResource,updateSuccess,validateOptions,whileMoreAfter,withInterceptorsFromDi,withLatestFrom,ɵNgNoValidate,ɵNgSelectMultipleOption,ɵPRE_STYLE,ɵɵInheritDefinitionFeature,ɵɵInputTransformsFeature,ɵɵNgOnChangesFeature,ɵɵProvidersFeature,ɵɵStandaloneFeature,ɵɵadvance,ɵɵattribute,ɵɵclassMap,ɵɵclassMapInterpolate1,ɵɵclassProp,ɵɵconditional,ɵɵcontentQuery,ɵɵdefineComponent,ɵɵdefineDirective,ɵɵdefineInjectable,ɵɵdefineInjector,ɵɵdefineNgModule,ɵɵdefinePipe,ɵɵdirectiveInject,ɵɵelement,ɵɵelementContainer,ɵɵelementContainerEnd,ɵɵelementContainerStart,ɵɵelementEnd,ɵɵelementStart,ɵɵgetCurrentView,ɵɵgetInheritedFactory,ɵɵinject,ɵɵlistener,ɵɵloadQuery,ɵɵnamespaceSVG,ɵɵnextContext,ɵɵpipe,ɵɵpipeBind1,ɵɵpipeBind2,ɵɵpipeBind3,ɵɵprojection,ɵɵprojectionDef,ɵɵproperty,ɵɵpropertyInterpolate,ɵɵpureFunction0,ɵɵpureFunction1,ɵɵpureFunction2,ɵɵpureFunction4,ɵɵpureFunction7,ɵɵqueryRefresh,ɵɵreference,ɵɵrepeater,ɵɵrepeaterCreate,ɵɵrepeaterTrackByIdentity,ɵɵrepeaterTrackByIndex,ɵɵresetView,ɵɵresolveDocument,ɵɵrestoreView,ɵɵsanitizeHtml,ɵɵsanitizeUrl,ɵɵsetComponentScope,ɵɵstyleMap,ɵɵstyleProp,ɵɵtemplate,ɵɵtemplateRefExtractor,ɵɵtext,ɵɵtextInterpolate,ɵɵtextInterpolate1,ɵɵtextInterpolate2,ɵɵtextInterpolate3,ɵɵtwoWayBindingSet,ɵɵtwoWayListener,ɵɵtwoWayProperty,ɵɵviewQuery}from"./chunk-27OHY4WY.js";import{camelCase_default,capitalize_default,cloneDeep_default,compact_default,deburr_default,escape_default,flatMap_default,flatten_default,get_default,groupBy_default,has_default,isArray_default,isBoolean_default,isEmpty_default,isEqual_default,isNil_default,isObject_default,isString_default,isUndefined_default,kebabCase_default,memoize_default,merge_default,omitBy_default,omit_default,orderBy_default,pick_default,range_default,set_default,snakeCase_default,sortBy_default,startCase_default,template_default,uniqBy_default,uniq_default,upperCase_default,upperFirst_default}from"./chunk-J2FK5UNH.js";import{__async,__commonJS,__esm,__export,__objRest,__publicField,__require,__spreadProps,__spreadValues,__superGet,__toCommonJS,__toESM,__yieldStar}from"./chunk-LA6QQXNS.js";var require_FileSaver_min=__commonJS({"node_modules/file-saver/dist/FileSaver.min.js"(exports,module){(function(a,b2){typeof define=="function"&&define.amd?define([],b2):typeof exports<"u"?b2():(b2(),a.FileSaver={})})(exports,function(){"use strict";function b2(a2,b3){return typeof b3>"u"?b3={autoBom:!1}:typeof b3!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),b3={autoBom:!b3}),b3.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a2.type)?new Blob(["\uFEFF",a2],{type:a2.type}):a2}function c(a2,b3,c2){var d3=new XMLHttpRequest;d3.open("GET",a2),d3.responseType="blob",d3.onload=function(){g2(d3.response,b3,c2)},d3.onerror=function(){console.error("could not download file")},d3.send()}function d2(a2){var b3=new XMLHttpRequest;b3.open("HEAD",a2,!1);try{b3.send()}catch{}return 200<=b3.status&&299>=b3.status}function e(a2){try{a2.dispatchEvent(new MouseEvent("click"))}catch{var b3=document.createEvent("MouseEvents");b3.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a2.dispatchEvent(b3)}}var f2=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:void 0,a=f2.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),g2=f2.saveAs||(typeof window!="object"||window!==f2?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(b3,g3,h){var i=f2.URL||f2.webkitURL,j2=document.createElement("a");g3=g3||b3.name||"download",j2.download=g3,j2.rel="noopener",typeof b3=="string"?(j2.href=b3,j2.origin===location.origin?e(j2):d2(j2.href)?c(b3,g3,h):e(j2,j2.target="_blank")):(j2.href=i.createObjectURL(b3),setTimeout(function(){i.revokeObjectURL(j2.href)},4e4),setTimeout(function(){e(j2)},0))}:"msSaveOrOpenBlob"in navigator?function(f3,g3,h){if(g3=g3||f3.name||"download",typeof f3!="string")navigator.msSaveOrOpenBlob(b2(f3,h),g3);else if(d2(f3))c(f3,g3,h);else{var i=document.createElement("a");i.href=f3,i.target="_blank",setTimeout(function(){e(i)})}}:function(b3,d3,e2,g3){if(g3=g3||open("","_blank"),g3&&(g3.document.title=g3.document.body.innerText="downloading..."),typeof b3=="string")return c(b3,d3,e2);var h=b3.type==="application/octet-stream",i=/constructor/i.test(f2.HTMLElement)||f2.safari,j2=/CriOS\/[\d]+/.test(navigator.userAgent);if((j2||h&&i||a)&&typeof FileReader<"u"){var k=new FileReader;k.onloadend=function(){var a2=k.result;a2=j2?a2:a2.replace(/^data:[^;]*;/,"data:attachment/file;"),g3?g3.location.href=a2:location=a2,g3=null},k.readAsDataURL(b3)}else{var l2=f2.URL||f2.webkitURL,m=l2.createObjectURL(b3);g3?g3.location=m:location.href=m,g3=null,setTimeout(function(){l2.revokeObjectURL(m)},4e4)}});f2.saveAs=g2.saveAs=g2,typeof module<"u"&&(module.exports=g2)})}});var require_ua_parser=__commonJS({"node_modules/ua-parser-js/src/ua-parser.js"(exports,module){(function(window2,undefined2){"use strict";var LIBVERSION="1.0.37",EMPTY2="",UNKNOWN="?",FUNC_TYPE="function",UNDEF_TYPE="undefined",OBJ_TYPE="object",STR_TYPE="string",MAJOR="major",MODEL="model",NAME="name",TYPE="type",VENDOR="vendor",VERSION4="version",ARCHITECTURE="architecture",CONSOLE="console",MOBILE="mobile",TABLET="tablet",SMARTTV="smarttv",WEARABLE="wearable",EMBEDDED="embedded",UA_MAX_LENGTH=500,AMAZON="Amazon",APPLE="Apple",ASUS="ASUS",BLACKBERRY="BlackBerry",BROWSER="Browser",CHROME="Chrome",EDGE="Edge",FIREFOX="Firefox",GOOGLE="Google",HUAWEI="Huawei",LG="LG",MICROSOFT="Microsoft",MOTOROLA="Motorola",OPERA="Opera",SAMSUNG="Samsung",SHARP="Sharp",SONY="Sony",XIAOMI="Xiaomi",ZEBRA="Zebra",FACEBOOK="Facebook",CHROMIUM_OS="Chromium OS",MAC_OS="Mac OS",extend4=function(regexes2,extensions){var mergedRegexes={};for(var i in regexes2)extensions[i]&&extensions[i].length%2===0?mergedRegexes[i]=extensions[i].concat(regexes2[i]):mergedRegexes[i]=regexes2[i];return mergedRegexes},enumerize=function(arr){for(var enums={},i=0;i<arr.length;i++)enums[arr[i].toUpperCase()]=arr[i];return enums},has=function(str1,str2){return typeof str1===STR_TYPE?lowerize(str2).indexOf(lowerize(str1))!==-1:!1},lowerize=function(str){return str.toLowerCase()},majorize=function(version3){return typeof version3===STR_TYPE?version3.replace(/[^\d\.]/g,EMPTY2).split(".")[0]:undefined2},trim=function(str,len){if(typeof str===STR_TYPE)return str=str.replace(/^\s\s*/,EMPTY2),typeof len===UNDEF_TYPE?str:str.substring(0,UA_MAX_LENGTH)},rgxMapper=function(ua,arrays){for(var i=0,j2,k,p,q,matches,match2;i<arrays.length&&!matches;){var regex=arrays[i],props2=arrays[i+1];for(j2=k=0;j2<regex.length&&!matches&®ex[j2];)if(matches=regex[j2++].exec(ua),matches)for(p=0;p<props2.length;p++)match2=matches[++k],q=props2[p],typeof q===OBJ_TYPE&&q.length>0?q.length===2?typeof q[1]==FUNC_TYPE?this[q[0]]=q[1].call(this,match2):this[q[0]]=q[1]:q.length===3?typeof q[1]===FUNC_TYPE&&!(q[1].exec&&q[1].test)?this[q[0]]=match2?q[1].call(this,match2,q[2]):undefined2:this[q[0]]=match2?match2.replace(q[1],q[2]):undefined2:q.length===4&&(this[q[0]]=match2?q[3].call(this,match2.replace(q[1],q[2])):undefined2):this[q]=match2||undefined2;i+=2}},strMapper=function(str,map3){for(var i in map3)if(typeof map3[i]===OBJ_TYPE&&map3[i].length>0){for(var j2=0;j2<map3[i].length;j2++)if(has(map3[i][j2],str))return i===UNKNOWN?undefined2:i}else if(has(map3[i],str))return i===UNKNOWN?undefined2:i;return str},oldSafariMap={"1.0":"/8","1.2":"/1","1.3":"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},windowsVersionMap={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},regexes={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[VERSION4,[NAME,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[VERSION4,[NAME,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[NAME,VERSION4],[/opios[\/ ]+([\w\.]+)/i],[VERSION4,[NAME,OPERA+" Mini"]],[/\bopr\/([\w\.]+)/i],[VERSION4,[NAME,OPERA]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[VERSION4,[NAME,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[NAME,VERSION4],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[VERSION4,[NAME,"UC"+BROWSER]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[VERSION4,[NAME,"WeChat"]],[/konqueror\/([\w\.]+)/i],[VERSION4,[NAME,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[VERSION4,[NAME,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[VERSION4,[NAME,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[VERSION4,[NAME,"Smart Lenovo "+BROWSER]],[/(avast|avg)\/([\w\.]+)/i],[[NAME,/(.+)/,"$1 Secure "+BROWSER],VERSION4],[/\bfocus\/([\w\.]+)/i],[VERSION4,[NAME,FIREFOX+" Focus"]],[/\bopt\/([\w\.]+)/i],[VERSION4,[NAME,OPERA+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[VERSION4,[NAME,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[VERSION4,[NAME,"Dolphin"]],[/coast\/([\w\.]+)/i],[VERSION4,[NAME,OPERA+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[VERSION4,[NAME,"MIUI "+BROWSER]],[/fxios\/([-\w\.]+)/i],[VERSION4,[NAME,FIREFOX]],[/\bqihu|(qi?ho?o?|360)browser/i],[[NAME,"360 "+BROWSER]],[/(oculus|sailfish|huawei|vivo)browser\/([\w\.]+)/i],[[NAME,/(.+)/,"$1 "+BROWSER],VERSION4],[/samsungbrowser\/([\w\.]+)/i],[VERSION4,[NAME,SAMSUNG+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[NAME,/_/g," "],VERSION4],[/metasr[\/ ]?([\d\.]+)/i],[VERSION4,[NAME,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[NAME,"Sogou Mobile"],VERSION4],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[NAME,VERSION4],[/(lbbrowser)/i,/\[(linkedin)app\]/i],[NAME],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[NAME,FACEBOOK],VERSION4],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[NAME,VERSION4],[/\bgsa\/([\w\.]+) .*safari\//i],[VERSION4,[NAME,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[VERSION4,[NAME,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[VERSION4,[NAME,CHROME+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[NAME,CHROME+" WebView"],VERSION4],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[VERSION4,[NAME,"Android "+BROWSER]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[NAME,VERSION4],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[VERSION4,[NAME,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[VERSION4,NAME],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[NAME,[VERSION4,strMapper,oldSafariMap]],[/(webkit|khtml)\/([\w\.]+)/i],[NAME,VERSION4],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[NAME,"Netscape"],VERSION4],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[VERSION4,[NAME,FIREFOX+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[NAME,VERSION4],[/(cobalt)\/([\w\.]+)/i],[NAME,[VERSION4,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[ARCHITECTURE,"amd64"]],[/(ia32(?=;))/i],[[ARCHITECTURE,lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[ARCHITECTURE,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[ARCHITECTURE,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[ARCHITECTURE,"armhf"]],[/windows (ce|mobile); ppc;/i],[[ARCHITECTURE,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[ARCHITECTURE,/ower/,EMPTY2,lowerize]],[/(sun4\w)[;\)]/i],[[ARCHITECTURE,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[ARCHITECTURE,lowerize]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[MODEL,[VENDOR,SAMSUNG],[TYPE,TABLET]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[MODEL,[VENDOR,SAMSUNG],[TYPE,MOBILE]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[MODEL,[VENDOR,APPLE],[TYPE,MOBILE]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[MODEL,[VENDOR,APPLE],[TYPE,TABLET]],[/(macintosh);/i],[MODEL,[VENDOR,APPLE]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[MODEL,[VENDOR,SHARP],[TYPE,MOBILE]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[MODEL,[VENDOR,HUAWEI],[TYPE,TABLET]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[MODEL,[VENDOR,HUAWEI],[TYPE,MOBILE]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[MODEL,/_/g," "],[VENDOR,XIAOMI],[TYPE,MOBILE]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[MODEL,/_/g," "],[VENDOR,XIAOMI],[TYPE,TABLET]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[MODEL,[VENDOR,"OPPO"],[TYPE,MOBILE]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[MODEL,[VENDOR,"Vivo"],[TYPE,MOBILE]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[MODEL,[VENDOR,"Realme"],[TYPE,MOBILE]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[MODEL,[VENDOR,MOTOROLA],[TYPE,MOBILE]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[MODEL,[VENDOR,MOTOROLA],[TYPE,TABLET]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[MODEL,[VENDOR,LG],[TYPE,TABLET]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[MODEL,[VENDOR,LG],[TYPE,MOBILE]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[MODEL,[VENDOR,"Lenovo"],[TYPE,TABLET]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[MODEL,/_/g," "],[VENDOR,"Nokia"],[TYPE,MOBILE]],[/(pixel c)\b/i],[MODEL,[VENDOR,GOOGLE],[TYPE,TABLET]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[MODEL,[VENDOR,GOOGLE],[TYPE,MOBILE]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[MODEL,[VENDOR,SONY],[TYPE,MOBILE]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[MODEL,"Xperia Tablet"],[VENDOR,SONY],[TYPE,TABLET]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[MODEL,[VENDOR,"OnePlus"],[TYPE,MOBILE]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[MODEL,[VENDOR,AMAZON],[TYPE,TABLET]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[MODEL,/(.+)/g,"Fire Phone $1"],[VENDOR,AMAZON],[TYPE,MOBILE]],[/(playbook);[-\w\),; ]+(rim)/i],[MODEL,VENDOR,[TYPE,TABLET]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[MODEL,[VENDOR,BLACKBERRY],[TYPE,MOBILE]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[MODEL,[VENDOR,ASUS],[TYPE,TABLET]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[MODEL,[VENDOR,ASUS],[TYPE,MOBILE]],[/(nexus 9)/i],[MODEL,[VENDOR,"HTC"],[TYPE,TABLET]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[VENDOR,[MODEL,/_/g," "],[TYPE,MOBILE]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[MODEL,[VENDOR,"Acer"],[TYPE,TABLET]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[MODEL,[VENDOR,"Meizu"],[TYPE,MOBILE]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[MODEL,[VENDOR,"Ulefone"],[TYPE,MOBILE]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[VENDOR,MODEL,[TYPE,TABLET]],[/(surface duo)/i],[MODEL,[VENDOR,MICROSOFT],[TYPE,TABLET]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[MODEL,[VENDOR,"Fairphone"],[TYPE,MOBILE]],[/(u304aa)/i],[MODEL,[VENDOR,"AT&T"],[TYPE,MOBILE]],[/\bsie-(\w*)/i],[MODEL,[VENDOR,"Siemens"],[TYPE,MOBILE]],[/\b(rct\w+) b/i],[MODEL,[VENDOR,"RCA"],[TYPE,TABLET]],[/\b(venue[\d ]{2,7}) b/i],[MODEL,[VENDOR,"Dell"],[TYPE,TABLET]],[/\b(q(?:mv|ta)\w+) b/i],[MODEL,[VENDOR,"Verizon"],[TYPE,TABLET]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[MODEL,[VENDOR,"Barnes & Noble"],[TYPE,TABLET]],[/\b(tm\d{3}\w+) b/i],[MODEL,[VENDOR,"NuVision"],[TYPE,TABLET]],[/\b(k88) b/i],[MODEL,[VENDOR,"ZTE"],[TYPE,TABLET]],[/\b(nx\d{3}j) b/i],[MODEL,[VENDOR,"ZTE"],[TYPE,MOBILE]],[/\b(gen\d{3}) b.+49h/i],[MODEL,[VENDOR,"Swiss"],[TYPE,MOBILE]],[/\b(zur\d{3}) b/i],[MODEL,[VENDOR,"Swiss"],[TYPE,TABLET]],[/\b((zeki)?tb.*\b) b/i],[MODEL,[VENDOR,"Zeki"],[TYPE,TABLET]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[VENDOR,"Dragon Touch"],MODEL,[TYPE,TABLET]],[/\b(ns-?\w{0,9}) b/i],[MODEL,[VENDOR,"Insignia"],[TYPE,TABLET]],[/\b((nxa|next)-?\w{0,9}) b/i],[MODEL,[VENDOR,"NextBook"],[TYPE,TABLET]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[VENDOR,"Voice"],MODEL,[TYPE,MOBILE]],[/\b(lvtel\-)?(v1[12]) b/i],[[VENDOR,"LvTel"],MODEL,[TYPE,MOBILE]],[/\b(ph-1) /i],[MODEL,[VENDOR,"Essential"],[TYPE,MOBILE]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[MODEL,[VENDOR,"Envizen"],[TYPE,TABLET]],[/\b(trio[-\w\. ]+) b/i],[MODEL,[VENDOR,"MachSpeed"],[TYPE,TABLET]],[/\btu_(1491) b/i],[MODEL,[VENDOR,"Rotor"],[TYPE,TABLET]],[/(shield[\w ]+) b/i],[MODEL,[VENDOR,"Nvidia"],[TYPE,TABLET]],[/(sprint) (\w+)/i],[VENDOR,MODEL,[TYPE,MOBILE]],[/(kin\.[onetw]{3})/i],[[MODEL,/\./g," "],[VENDOR,MICROSOFT],[TYPE,MOBILE]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[MODEL,[VENDOR,ZEBRA],[TYPE,TABLET]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[MODEL,[VENDOR,ZEBRA],[TYPE,MOBILE]],[/smart-tv.+(samsung)/i],[VENDOR,[TYPE,SMARTTV]],[/hbbtv.+maple;(\d+)/i],[[MODEL,/^/,"SmartTV"],[VENDOR,SAMSUNG],[TYPE,SMARTTV]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[VENDOR,LG],[TYPE,SMARTTV]],[/(apple) ?tv/i],[VENDOR,[MODEL,APPLE+" TV"],[TYPE,SMARTTV]],[/crkey/i],[[MODEL,CHROME+"cast"],[VENDOR,GOOGLE],[TYPE,SMARTTV]],[/droid.+aft(\w+)( bui|\))/i],[MODEL,[VENDOR,AMAZON],[TYPE,SMARTTV]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[MODEL,[VENDOR,SHARP],[TYPE,SMARTTV]],[/(bravia[\w ]+)( bui|\))/i],[MODEL,[VENDOR,SONY],[TYPE,SMARTTV]],[/(mitv-\w{5}) bui/i],[MODEL,[VENDOR,XIAOMI],[TYPE,SMARTTV]],[/Hbbtv.*(technisat) (.*);/i],[VENDOR,MODEL,[TYPE,SMARTTV]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[VENDOR,trim],[MODEL,trim],[TYPE,SMARTTV]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[TYPE,SMARTTV]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[VENDOR,MODEL,[TYPE,CONSOLE]],[/droid.+; (shield) bui/i],[MODEL,[VENDOR,"Nvidia"],[TYPE,CONSOLE]],[/(playstation [345portablevi]+)/i],[MODEL,[VENDOR,SONY],[TYPE,CONSOLE]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[MODEL,[VENDOR,MICROSOFT],[TYPE,CONSOLE]],[/((pebble))app/i],[VENDOR,MODEL,[TYPE,WEARABLE]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[MODEL,[VENDOR,APPLE],[TYPE,WEARABLE]],[/droid.+; (glass) \d/i],[MODEL,[VENDOR,GOOGLE],[TYPE,WEARABLE]],[/droid.+; (wt63?0{2,3})\)/i],[MODEL,[VENDOR,ZEBRA],[TYPE,WEARABLE]],[/(quest( 2| pro)?)/i],[MODEL,[VENDOR,FACEBOOK],[TYPE,WEARABLE]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[VENDOR,[TYPE,EMBEDDED]],[/(aeobc)\b/i],[MODEL,[VENDOR,AMAZON],[TYPE,EMBEDDED]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[MODEL,[TYPE,MOBILE]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[MODEL,[TYPE,TABLET]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[TYPE,TABLET]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[TYPE,MOBILE]],[/(android[-\w\. ]{0,9});.+buil/i],[MODEL,[VENDOR,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[VERSION4,[NAME,EDGE+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[VERSION4,[NAME,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[NAME,VERSION4],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[VERSION4,NAME]],os:[[/microsoft (windows) (vista|xp)/i],[NAME,VERSION4],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[NAME,[VERSION4,strMapper,windowsVersionMap]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[VERSION4,strMapper,windowsVersionMap],[NAME,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[VERSION4,/_/g,"."],[NAME,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[NAME,MAC_OS],[VERSION4,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[VERSION4,NAME],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[NAME,VERSION4],[/\(bb(10);/i],[VERSION4,[NAME,BLACKBERRY]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[VERSION4,[NAME,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[VERSION4,[NAME,FIREFOX+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[VERSION4,[NAME,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[VERSION4,[NAME,"watchOS"]],[/crkey\/([\d\.]+)/i],[VERSION4,[NAME,CHROME+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[NAME,CHROMIUM_OS],VERSION4],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[NAME,VERSION4],[/(sunos) ?([\w\.\d]*)/i],[[NAME,"Solaris"],VERSION4],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[NAME,VERSION4]]},UAParser2=function(ua,extensions){if(typeof ua===OBJ_TYPE&&(extensions=ua,ua=undefined2),!(this instanceof UAParser2))return new UAParser2(ua,extensions).getResult();var _navigator=typeof window2!==UNDEF_TYPE&&window2.navigator?window2.navigator:undefined2,_ua=ua||(_navigator&&_navigator.userAgent?_navigator.userAgent:EMPTY2),_uach=_navigator&&_navigator.userAgentData?_navigator.userAgentData:undefined2,_rgxmap=extensions?extend4(regexes,extensions):regexes,_isSelfNav=_navigator&&_navigator.userAgent==_ua;return this.getBrowser=function(){var _browser={};return _browser[NAME]=undefined2,_browser[VERSION4]=undefined2,rgxMapper.call(_browser,_ua,_rgxmap.browser),_browser[MAJOR]=majorize(_browser[VERSION4]),_isSelfNav&&_navigator&&_navigator.brave&&typeof _navigator.brave.isBrave==FUNC_TYPE&&(_browser[NAME]="Brave"),_browser},this.getCPU=function(){var _cpu={};return _cpu[ARCHITECTURE]=undefined2,rgxMapper.call(_cpu,_ua,_rgxmap.cpu),_cpu},this.getDevice=function(){var _device={};return _device[VENDOR]=undefined2,_device[MODEL]=undefined2,_device[TYPE]=undefined2,rgxMapper.call(_device,_ua,_rgxmap.device),_isSelfNav&&!_device[TYPE]&&_uach&&_uach.mobile&&(_device[TYPE]=MOBILE),_isSelfNav&&_device[MODEL]=="Macintosh"&&_navigator&&typeof _navigator.standalone!==UNDEF_TYPE&&_navigator.maxTouchPoints&&_navigator.maxTouchPoints>2&&(_device[MODEL]="iPad",_device[TYPE]=TABLET),_device},this.getEngine=function(){var _engine={};return _engine[NAME]=undefined2,_engine[VERSION4]=undefined2,rgxMapper.call(_engine,_ua,_rgxmap.engine),_engine},this.getOS=function(){var _os={};return _os[NAME]=undefined2,_os[VERSION4]=undefined2,rgxMapper.call(_os,_ua,_rgxmap.os),_isSelfNav&&!_os[NAME]&&_uach&&_uach.platform!="Unknown"&&(_os[NAME]=_uach.platform.replace(/chrome os/i,CHROMIUM_OS).replace(/macos/i,MAC_OS)),_os},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return _ua},this.setUA=function(ua2){return _ua=typeof ua2===STR_TYPE&&ua2.length>UA_MAX_LENGTH?trim(ua2,UA_MAX_LENGTH):ua2,this},this.setUA(_ua),this};UAParser2.VERSION=LIBVERSION,UAParser2.BROWSER=enumerize([NAME,VERSION4,MAJOR]),UAParser2.CPU=enumerize([ARCHITECTURE]),UAParser2.DEVICE=enumerize([MODEL,VENDOR,TYPE,CONSOLE,MOBILE,SMARTTV,TABLET,WEARABLE,EMBEDDED]),UAParser2.ENGINE=UAParser2.OS=enumerize([NAME,VERSION4]),typeof exports!==UNDEF_TYPE?(typeof module!==UNDEF_TYPE&&module.exports&&(exports=module.exports=UAParser2),exports.UAParser=UAParser2):typeof define===FUNC_TYPE&&define.amd?define(function(){return UAParser2}):typeof window2!==UNDEF_TYPE&&(window2.UAParser=UAParser2);var $=typeof window2!==UNDEF_TYPE&&(window2.jQuery||window2.Zepto);if($&&!$.ua){var parser=new UAParser2;$.ua=parser.getResult(),$.ua.get=function(){return parser.getUA()},$.ua.set=function(ua){parser.setUA(ua);var result=parser.getResult();for(var prop in result)$.ua[prop]=result[prop]}}})(typeof window=="object"?window:exports)}});var require_tinycolor=__commonJS({"node_modules/tinycolor2/tinycolor.js"(exports,module){(function(Math2){var trimLeft=/^\s+/,trimRight=/\s+$/,tinyCounter=0,mathRound=Math2.round,mathMin=Math2.min,mathMax=Math2.max,mathRandom=Math2.random;function tinycolor4(color,opts){if(color=color||"",opts=opts||{},color instanceof tinycolor4)return color;if(!(this instanceof tinycolor4))return new tinycolor4(color,opts);var rgb=inputToRGB(color);this._originalInput=color,this._r=rgb.r,this._g=rgb.g,this._b=rgb.b,this._a=rgb.a,this._roundA=mathRound(100*this._a)/100,this._format=opts.format||rgb.format,this._gradientType=opts.gradientType,this._r<1&&(this._r=mathRound(this._r)),this._g<1&&(this._g=mathRound(this._g)),this._b<1&&(this._b=mathRound(this._b)),this._ok=rgb.ok,this._tc_id=tinyCounter++}tinycolor4.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var rgb=this.toRgb();return(rgb.r*299+rgb.g*587+rgb.b*114)/1e3},getLuminance:function(){var rgb=this.toRgb(),RsRGB,GsRGB,BsRGB,R2,G2,B;return RsRGB=rgb.r/255,GsRGB=rgb.g/255,BsRGB=rgb.b/255,RsRGB<=.03928?R2=RsRGB/12.92:R2=Math2.pow((RsRGB+.055)/1.055,2.4),GsRGB<=.03928?G2=GsRGB/12.92:G2=Math2.pow((GsRGB+.055)/1.055,2.4),BsRGB<=.03928?B=BsRGB/12.92:B=Math2.pow((BsRGB+.055)/1.055,2.4),.2126*R2+.7152*G2+.0722*B},setAlpha:function(value){return this._a=boundAlpha(value),this._roundA=mathRound(100*this._a)/100,this},toHsv:function(){var hsv=rgbToHsv(this._r,this._g,this._b);return{h:hsv.h*360,s:hsv.s,v:hsv.v,a:this._a}},toHsvString:function(){var hsv=rgbToHsv(this._r,this._g,this._b),h=mathRound(hsv.h*360),s2=mathRound(hsv.s*100),v=mathRound(hsv.v*100);return this._a==1?"hsv("+h+", "+s2+"%, "+v+"%)":"hsva("+h+", "+s2+"%, "+v+"%, "+this._roundA+")"},toHsl:function(){var hsl=rgbToHsl(this._r,this._g,this._b);return{h:hsl.h*360,s:hsl.s,l:hsl.l,a:this._a}},toHslString:function(){var hsl=rgbToHsl(this._r,this._g,this._b),h=mathRound(hsl.h*360),s2=mathRound(hsl.s*100),l2=mathRound(hsl.l*100);return this._a==1?"hsl("+h+", "+s2+"%, "+l2+"%)":"hsla("+h+", "+s2+"%, "+l2+"%, "+this._roundA+")"},toHex:function(allow3Char){return rgbToHex(this._r,this._g,this._b,allow3Char)},toHexString:function(allow3Char){return"#"+this.toHex(allow3Char)},toHex8:function(allow4Char){return rgbaToHex(this._r,this._g,this._b,this._a,allow4Char)},toHex8String:function(allow4Char){return"#"+this.toHex8(allow4Char)},toRgb:function(){return{r:mathRound(this._r),g:mathRound(this._g),b:mathRound(this._b),a:this._a}},toRgbString:function(){return this._a==1?"rgb("+mathRound(this._r)+", "+mathRound(this._g)+", "+mathRound(this._b)+")":"rgba("+mathRound(this._r)+", "+mathRound(this._g)+", "+mathRound(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:mathRound(bound01(this._r,255)*100)+"%",g:mathRound(bound01(this._g,255)*100)+"%",b:mathRound(bound01(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+mathRound(bound01(this._r,255)*100)+"%, "+mathRound(bound01(this._g,255)*100)+"%, "+mathRound(bound01(this._b,255)*100)+"%)":"rgba("+mathRound(bound01(this._r,255)*100)+"%, "+mathRound(bound01(this._g,255)*100)+"%, "+mathRound(bound01(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:hexNames[rgbToHex(this._r,this._g,this._b,!0)]||!1},toFilter:function(secondColor){var hex8String="#"+rgbaToArgbHex(this._r,this._g,this._b,this._a),secondHex8String=hex8String,gradientType=this._gradientType?"GradientType = 1, ":"";if(secondColor){var s2=tinycolor4(secondColor);secondHex8String="#"+rgbaToArgbHex(s2._r,s2._g,s2._b,s2._a)}return"progid:DXImageTransform.Microsoft.gradient("+gradientType+"startColorstr="+hex8String+",endColorstr="+secondHex8String+")"},toString:function(format2){var formatSet=!!format2;format2=format2||this._format;var formattedString=!1,hasAlpha=this._a<1&&this._a>=0,needsAlphaFormat=!formatSet&&hasAlpha&&(format2==="hex"||format2==="hex6"||format2==="hex3"||format2==="hex4"||format2==="hex8"||format2==="name");return needsAlphaFormat?format2==="name"&&this._a===0?this.toName():this.toRgbString():(format2==="rgb"&&(formattedString=this.toRgbString()),format2==="prgb"&&(formattedString=this.toPercentageRgbString()),(format2==="hex"||format2==="hex6")&&(formattedString=this.toHexString()),format2==="hex3"&&(formattedString=this.toHexString(!0)),format2==="hex4"&&(formattedString=this.toHex8String(!0)),format2==="hex8"&&(formattedString=this.toHex8String()),format2==="name"&&(formattedString=this.toName()),format2==="hsl"&&(formattedString=this.toHslString()),format2==="hsv"&&(formattedString=this.toHsvString()),formattedString||this.toHexString())},clone:function(){return tinycolor4(this.toString())},_applyModification:function(fn2,args){var color=fn2.apply(null,[this].concat([].slice.call(args)));return this._r=color._r,this._g=color._g,this._b=color._b,this.setAlpha(color._a),this},lighten:function(){return this._applyModification(lighten,arguments)},brighten:function(){return this._applyModification(brighten,arguments)},darken:function(){return this._applyModification(darken,arguments)},desaturate:function(){return this._applyModification(desaturate,arguments)},saturate:function(){return this._applyModification(saturate,arguments)},greyscale:function(){return this._applyModification(greyscale,arguments)},spin:function(){return this._applyModification(spin,arguments)},_applyCombination:function(fn2,args){return fn2.apply(null,[this].concat([].slice.call(args)))},analogous:function(){return this._applyCombination(analogous,arguments)},complement:function(){return this._applyCombination(complement,arguments)},monochromatic:function(){return this._applyCombination(monochromatic,arguments)},splitcomplement:function(){return this._applyCombination(splitcomplement,arguments)},triad:function(){return this._applyCombination(triad,arguments)},tetrad:function(){return this._applyCombination(tetrad,arguments)}},tinycolor4.fromRatio=function(color,opts){if(typeof color=="object"){var newColor={};for(var i in color)color.hasOwnProperty(i)&&(i==="a"?newColor[i]=color[i]:newColor[i]=convertToPercentage(color[i]));color=newColor}return tinycolor4(color,opts)};function inputToRGB(color){var rgb={r:0,g:0,b:0},a=1,s2=null,v=null,l2=null,ok=!1,format2=!1;return typeof color=="string"&&(color=stringInputToObject(color)),typeof color=="object"&&(isValidCSSUnit(color.r)&&isValidCSSUnit(color.g)&&isValidCSSUnit(color.b)?(rgb=rgbToRgb(color.r,color.g,color.b),ok=!0,format2=String(color.r).substr(-1)==="%"?"prgb":"rgb"):isValidCSSUnit(color.h)&&isValidCSSUnit(color.s)&&isValidCSSUnit(color.v)?(s2=convertToPercentage(color.s),v=convertToPercentage(color.v),rgb=hsvToRgb(color.h,s2,v),ok=!0,format2="hsv"):isValidCSSUnit(color.h)&&isValidCSSUnit(color.s)&&isValidCSSUnit(color.l)&&(s2=convertToPercentage(color.s),l2=convertToPercentage(color.l),rgb=hslToRgb(color.h,s2,l2),ok=!0,format2="hsl"),color.hasOwnProperty("a")&&(a=color.a)),a=boundAlpha(a),{ok,format:color.format||format2,r:mathMin(255,mathMax(rgb.r,0)),g:mathMin(255,mathMax(rgb.g,0)),b:mathMin(255,mathMax(rgb.b,0)),a}}function rgbToRgb(r,g2,b2){return{r:bound01(r,255)*255,g:bound01(g2,255)*255,b:bound01(b2,255)*255}}function rgbToHsl(r,g2,b2){r=bound01(r,255),g2=bound01(g2,255),b2=bound01(b2,255);var max2=mathMax(r,g2,b2),min2=mathMin(r,g2,b2),h,s2,l2=(max2+min2)/2;if(max2==min2)h=s2=0;else{var d2=max2-min2;switch(s2=l2>.5?d2/(2-max2-min2):d2/(max2+min2),max2){case r:h=(g2-b2)/d2+(g2<b2?6:0);break;case g2:h=(b2-r)/d2+2;break;case b2:h=(r-g2)/d2+4;break}h/=6}return{h,s:s2,l:l2}}function hslToRgb(h,s2,l2){var r,g2,b2;h=bound01(h,360),s2=bound01(s2,100),l2=bound01(l2,100);function hue2rgb(p2,q2,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?p2+(q2-p2)*6*t:t<1/2?q2:t<2/3?p2+(q2-p2)*(2/3-t)*6:p2}if(s2===0)r=g2=b2=l2;else{var q=l2<.5?l2*(1+s2):l2+s2-l2*s2,p=2*l2-q;r=hue2rgb(p,q,h+1/3),g2=hue2rgb(p,q,h),b2=hue2rgb(p,q,h-1/3)}return{r:r*255,g:g2*255,b:b2*255}}function rgbToHsv(r,g2,b2){r=bound01(r,255),g2=bound01(g2,255),b2=bound01(b2,255);var max2=mathMax(r,g2,b2),min2=mathMin(r,g2,b2),h,s2,v=max2,d2=max2-min2;if(s2=max2===0?0:d2/max2,max2==min2)h=0;else{switch(max2){case r:h=(g2-b2)/d2+(g2<b2?6:0);break;case g2:h=(b2-r)/d2+2;break;case b2:h=(r-g2)/d2+4;break}h/=6}return{h,s:s2,v}}function hsvToRgb(h,s2,v){h=bound01(h,360)*6,s2=bound01(s2,100),v=bound01(v,100);var i=Math2.floor(h),f2=h-i,p=v*(1-s2),q=v*(1-f2*s2),t=v*(1-(1-f2)*s2),mod=i%6,r=[v,q,p,p,t,v][mod],g2=[t,v,v,q,p,p][mod],b2=[p,p,t,v,v,q][mod];return{r:r*255,g:g2*255,b:b2*255}}function rgbToHex(r,g2,b2,allow3Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g2).toString(16)),pad2(mathRound(b2).toString(16))];return allow3Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)?hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0):hex.join("")}function rgbaToHex(r,g2,b2,a,allow4Char){var hex=[pad2(mathRound(r).toString(16)),pad2(mathRound(g2).toString(16)),pad2(mathRound(b2).toString(16)),pad2(convertDecimalToHex(a))];return allow4Char&&hex[0].charAt(0)==hex[0].charAt(1)&&hex[1].charAt(0)==hex[1].charAt(1)&&hex[2].charAt(0)==hex[2].charAt(1)&&hex[3].charAt(0)==hex[3].charAt(1)?hex[0].charAt(0)+hex[1].charAt(0)+hex[2].charAt(0)+hex[3].charAt(0):hex.join("")}function rgbaToArgbHex(r,g2,b2,a){var hex=[pad2(convertDecimalToHex(a)),pad2(mathRound(r).toString(16)),pad2(mathRound(g2).toString(16)),pad2(mathRound(b2).toString(16))];return hex.join("")}tinycolor4.equals=function(color1,color2){return!color1||!color2?!1:tinycolor4(color1).toRgbString()==tinycolor4(color2).toRgbString()},tinycolor4.random=function(){return tinycolor4.fromRatio({r:mathRandom(),g:mathRandom(),b:mathRandom()})};function desaturate(color,amount){amount=amount===0?0:amount||10;var hsl=tinycolor4(color).toHsl();return hsl.s-=amount/100,hsl.s=clamp01(hsl.s),tinycolor4(hsl)}function saturate(color,amount){amount=amount===0?0:amount||10;var hsl=tinycolor4(color).toHsl();return hsl.s+=amount/100,hsl.s=clamp01(hsl.s),tinycolor4(hsl)}function greyscale(color){return tinycolor4(color).desaturate(100)}function lighten(color,amount){amount=amount===0?0:amount||10;var hsl=tinycolor4(color).toHsl();return hsl.l+=amount/100,hsl.l=clamp01(hsl.l),tinycolor4(hsl)}function brighten(color,amount){amount=amount===0?0:amount||10;var rgb=tinycolor4(color).toRgb();return rgb.r=mathMax(0,mathMin(255,rgb.r-mathRound(255*-(amount/100)))),rgb.g=mathMax(0,mathMin(255,rgb.g-mathRound(255*-(amount/100)))),rgb.b=mathMax(0,mathMin(255,rgb.b-mathRound(255*-(amount/100)))),tinycolor4(rgb)}function darken(color,amount){amount=amount===0?0:amount||10;var hsl=tinycolor4(color).toHsl();return hsl.l-=amount/100,hsl.l=clamp01(hsl.l),tinycolor4(hsl)}function spin(color,amount){var hsl=tinycolor4(color).toHsl(),hue=(hsl.h+amount)%360;return hsl.h=hue<0?360+hue:hue,tinycolor4(hsl)}function complement(color){var hsl=tinycolor4(color).toHsl();return hsl.h=(hsl.h+180)%360,tinycolor4(hsl)}function triad(color){var hsl=tinycolor4(color).toHsl(),h=hsl.h;return[tinycolor4(color),tinycolor4({h:(h+120)%360,s:hsl.s,l:hsl.l}),tinycolor4({h:(h+240)%360,s:hsl.s,l:hsl.l})]}function tetrad(color){var hsl=tinycolor4(color).toHsl(),h=hsl.h;return[tinycolor4(color),tinycolor4({h:(h+90)%360,s:hsl.s,l:hsl.l}),tinycolor4({h:(h+180)%360,s:hsl.s,l:hsl.l}),tinycolor4({h:(h+270)%360,s:hsl.s,l:hsl.l})]}function splitcomplement(color){var hsl=tinycolor4(color).toHsl(),h=hsl.h;return[tinycolor4(color),tinycolor4({h:(h+72)%360,s:hsl.s,l:hsl.l}),tinycolor4({h:(h+216)%360,s:hsl.s,l:hsl.l})]}function analogous(color,results,slices){results=results||6,slices=slices||30;var hsl=tinycolor4(color).toHsl(),part=360/slices,ret=[tinycolor4(color)];for(hsl.h=(hsl.h-(part*results>>1)+720)%360;--results;)hsl.h=(hsl.h+part)%360,ret.push(tinycolor4(hsl));return ret}function monochromatic(color,results){results=results||6;for(var hsv=tinycolor4(color).toHsv(),h=hsv.h,s2=hsv.s,v=hsv.v,ret=[],modification=1/results;results--;)ret.push(tinycolor4({h,s:s2,v})),v=(v+modification)%1;return ret}tinycolor4.mix=function(color1,color2,amount){amount=amount===0?0:amount||50;var rgb1=tinycolor4(color1).toRgb(),rgb2=tinycolor4(color2).toRgb(),p=amount/100,rgba={r:(rgb2.r-rgb1.r)*p+rgb1.r,g:(rgb2.g-rgb1.g)*p+rgb1.g,b:(rgb2.b-rgb1.b)*p+rgb1.b,a:(rgb2.a-rgb1.a)*p+rgb1.a};return tinycolor4(rgba)},tinycolor4.readability=function(color1,color2){var c1=tinycolor4(color1),c2=tinycolor4(color2);return(Math2.max(c1.getLuminance(),c2.getLuminance())+.05)/(Math2.min(c1.getLuminance(),c2.getLuminance())+.05)},tinycolor4.isReadable=function(color1,color2,wcag2){var readability=tinycolor4.readability(color1,color2),wcag2Parms,out;switch(out=!1,wcag2Parms=validateWCAG2Parms(wcag2),wcag2Parms.level+wcag2Parms.size){case"AAsmall":case"AAAlarge":out=readability>=4.5;break;case"AAlarge":out=readability>=3;break;case"AAAsmall":out=readability>=7;break}return out},tinycolor4.mostReadable=function(baseColor,colorList,args){var bestColor=null,bestScore=0,readability,includeFallbackColors,level,size;args=args||{},includeFallbackColors=args.includeFallbackColors,level=args.level,size=args.size;for(var i=0;i<colorList.length;i++)readability=tinycolor4.readability(baseColor,colorList[i]),readability>bestScore&&(bestScore=readability,bestColor=tinycolor4(colorList[i]));return tinycolor4.isReadable(baseColor,bestColor,{level,size})||!includeFallbackColors?bestColor:(args.includeFallbackColors=!1,tinycolor4.mostReadable(baseColor,["#fff","#000"],args))};var names=tinycolor4.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},hexNames=tinycolor4.hexNames=flip2(names);function flip2(o2){var flipped={};for(var i in o2)o2.hasOwnProperty(i)&&(flipped[o2[i]]=i);return flipped}function boundAlpha(a){return a=parseFloat(a),(isNaN(a)||a<0||a>1)&&(a=1),a}function bound01(n2,max2){isOnePointZero(n2)&&(n2="100%");var processPercent=isPercentage(n2);return n2=mathMin(max2,mathMax(0,parseFloat(n2))),processPercent&&(n2=parseInt(n2*max2,10)/100),Math2.abs(n2-max2)<1e-6?1:n2%max2/parseFloat(max2)}function clamp01(val){return mathMin(1,mathMax(0,val))}function parseIntFromHex(val){return parseInt(val,16)}function isOnePointZero(n2){return typeof n2=="string"&&n2.indexOf(".")!=-1&&parseFloat(n2)===1}function isPercentage(n2){return typeof n2=="string"&&n2.indexOf("%")!=-1}function pad2(c){return c.length==1?"0"+c:""+c}function convertToPercentage(n2){return n2<=1&&(n2=n2*100+"%"),n2}function convertDecimalToHex(d2){return Math2.round(parseFloat(d2)*255).toString(16)}function convertHexToDecimal(h){return parseIntFromHex(h)/255}var matchers=function(){var CSS_INTEGER="[-\\+]?\\d+%?",CSS_NUMBER="[-\\+]?\\d*\\.\\d+%?",CSS_UNIT="(?:"+CSS_NUMBER+")|(?:"+CSS_INTEGER+")",PERMISSIVE_MATCH3="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?",PERMISSIVE_MATCH4="[\\s|\\(]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")[,|\\s]+("+CSS_UNIT+")\\s*\\)?";return{CSS_UNIT:new RegExp(CSS_UNIT),rgb:new RegExp("rgb"+PERMISSIVE_MATCH3),rgba:new RegExp("rgba"+PERMISSIVE_MATCH4),hsl:new RegExp("hsl"+PERMISSIVE_MATCH3),hsla:new RegExp("hsla"+PERMISSIVE_MATCH4),hsv:new RegExp("hsv"+PERMISSIVE_MATCH3),hsva:new RegExp("hsva"+PERMISSIVE_MATCH4),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function isValidCSSUnit(color){return!!matchers.CSS_UNIT.exec(color)}function stringInputToObject(color){color=color.replace(trimLeft,"").replace(trimRight,"").toLowerCase();var named=!1;if(names[color])color=names[color],named=!0;else if(color=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var match2;return(match2=matchers.rgb.exec(color))?{r:match2[1],g:match2[2],b:match2[3]}:(match2=matchers.rgba.exec(color))?{r:match2[1],g:match2[2],b:match2[3],a:match2[4]}:(match2=matchers.hsl.exec(color))?{h:match2[1],s:match2[2],l:match2[3]}:(match2=matchers.hsla.exec(color))?{h:match2[1],s:match2[2],l:match2[3],a:match2[4]}:(match2=matchers.hsv.exec(color))?{h:match2[1],s:match2[2],v:match2[3]}:(match2=matchers.hsva.exec(color))?{h:match2[1],s:match2[2],v:match2[3],a:match2[4]}:(match2=matchers.hex8.exec(color))?{r:parseIntFromHex(match2[1]),g:parseIntFromHex(match2[2]),b:parseIntFromHex(match2[3]),a:convertHexToDecimal(match2[4]),format:named?"name":"hex8"}:(match2=matchers.hex6.exec(color))?{r:parseIntFromHex(match2[1]),g:parseIntFromHex(match2[2]),b:parseIntFromHex(match2[3]),format:named?"name":"hex"}:(match2=matchers.hex4.exec(color))?{r:parseIntFromHex(match2[1]+""+match2[1]),g:parseIntFromHex(match2[2]+""+match2[2]),b:parseIntFromHex(match2[3]+""+match2[3]),a:convertHexToDecimal(match2[4]+""+match2[4]),format:named?"name":"hex8"}:(match2=matchers.hex3.exec(color))?{r:parseIntFromHex(match2[1]+""+match2[1]),g:parseIntFromHex(match2[2]+""+match2[2]),b:parseIntFromHex(match2[3]+""+match2[3]),format:named?"name":"hex"}:!1}function validateWCAG2Parms(parms){var level,size;return parms=parms||{level:"AA",size:"small"},level=(parms.level||"AA").toUpperCase(),size=(parms.size||"small").toLowerCase(),level!=="AA"&&level!=="AAA"&&(level="AA"),size!=="small"&&size!=="large"&&(size="small"),{level,size}}typeof module<"u"&&module.exports?module.exports=tinycolor4:typeof define=="function"&&define.amd?define(function(){return tinycolor4}):window.tinycolor=tinycolor4})(Math)}});var require_os=__commonJS({"(disabled):os"(){}});var require_events=__commonJS({"node_modules/events/events.js"(exports,module){"use strict";var R2=typeof Reflect=="object"?Reflect:null,ReflectApply=R2&&typeof R2.apply=="function"?R2.apply:function(target,receiver,args){return Function.prototype.apply.call(target,receiver,args)},ReflectOwnKeys;R2&&typeof R2.ownKeys=="function"?ReflectOwnKeys=R2.ownKeys:Object.getOwnPropertySymbols?ReflectOwnKeys=function(target){return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target))}:ReflectOwnKeys=function(target){return Object.getOwnPropertyNames(target)};function ProcessEmitWarning(warning){console&&console.warn&&console.warn(warning)}var NumberIsNaN=Number.isNaN||function(value){return value!==value};function EventEmitter3(){EventEmitter3.init.call(this)}module.exports=EventEmitter3;module.exports.once=once;EventEmitter3.EventEmitter=EventEmitter3;EventEmitter3.prototype._events=void 0;EventEmitter3.prototype._eventsCount=0;EventEmitter3.prototype._maxListeners=void 0;var defaultMaxListeners=10;function checkListener(listener){if(typeof listener!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof listener)}Object.defineProperty(EventEmitter3,"defaultMaxListeners",{enumerable:!0,get:function(){return defaultMaxListeners},set:function(arg){if(typeof arg!="number"||arg<0||NumberIsNaN(arg))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+arg+".");defaultMaxListeners=arg}});EventEmitter3.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0};EventEmitter3.prototype.setMaxListeners=function(n2){if(typeof n2!="number"||n2<0||NumberIsNaN(n2))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+n2+".");return this._maxListeners=n2,this};function _getMaxListeners(that){return that._maxListeners===void 0?EventEmitter3.defaultMaxListeners:that._maxListeners}EventEmitter3.prototype.getMaxListeners=function(){return _getMaxListeners(this)};EventEmitter3.prototype.emit=function(type2){for(var args=[],i=1;i<arguments.length;i++)args.push(arguments[i]);var doError=type2==="error",events=this._events;if(events!==void 0)doError=doError&&events.error===void 0;else if(!doError)return!1;if(doError){var er;if(args.length>0&&(er=args[0]),er instanceof Error)throw er;var err=new Error("Unhandled error."+(er?" ("+er.message+")":""));throw err.context=er,err}var handler=events[type2];if(handler===void 0)return!1;if(typeof handler=="function")ReflectApply(handler,this,args);else for(var len=handler.length,listeners=arrayClone(handler,len),i=0;i<len;++i)ReflectApply(listeners[i],this,args);return!0};function _addListener(target,type2,listener,prepend){var m,events,existing;if(checkListener(listener),events=target._events,events===void 0?(events=target._events=Object.create(null),target._eventsCount=0):(events.newListener!==void 0&&(target.emit("newListener",type2,listener.listener?listener.listener:listener),events=target._events),existing=events[type2]),existing===void 0)existing=events[type2]=listener,++target._eventsCount;else if(typeof existing=="function"?existing=events[type2]=prepend?[listener,existing]:[existing,listener]:prepend?existing.unshift(listener):existing.push(listener),m=_getMaxListeners(target),m>0&&existing.length>m&&!existing.warned){existing.warned=!0;var w2=new Error("Possible EventEmitter memory leak detected. "+existing.length+" "+String(type2)+" listeners added. Use emitter.setMaxListeners() to increase limit");w2.name="MaxListenersExceededWarning",w2.emitter=target,w2.type=type2,w2.count=existing.length,ProcessEmitWarning(w2)}return target}EventEmitter3.prototype.addListener=function(type2,listener){return _addListener(this,type2,listener,!1)};EventEmitter3.prototype.on=EventEmitter3.prototype.addListener;EventEmitter3.prototype.prependListener=function(type2,listener){return _addListener(this,type2,listener,!0)};function onceWrapper(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function _onceWrap(target,type2,listener){var state={fired:!1,wrapFn:void 0,target,type:type2,listener},wrapped=onceWrapper.bind(state);return wrapped.listener=listener,state.wrapFn=wrapped,wrapped}EventEmitter3.prototype.once=function(type2,listener){return checkListener(listener),this.on(type2,_onceWrap(this,type2,listener)),this};EventEmitter3.prototype.prependOnceListener=function(type2,listener){return checkListener(listener),this.prependListener(type2,_onceWrap(this,type2,listener)),this};EventEmitter3.prototype.removeListener=function(type2,listener){var list,events,position,i,originalListener;if(checkListener(listener),events=this._events,events===void 0)return this;if(list=events[type2],list===void 0)return this;if(list===listener||list.listener===listener)--this._eventsCount===0?this._events=Object.create(null):(delete events[type2],events.removeListener&&this.emit("removeListener",type2,list.listener||listener));else if(typeof list!="function"){for(position=-1,i=list.length-1;i>=0;i--)if(list[i]===listener||list[i].listener===listener){originalListener=list[i].listener,position=i;break}if(position<0)return this;position===0?list.shift():spliceOne(list,position),list.length===1&&(events[type2]=list[0]),events.removeListener!==void 0&&this.emit("removeListener",type2,originalListener||listener)}return this};EventEmitter3.prototype.off=EventEmitter3.prototype.removeListener;EventEmitter3.prototype.removeAllListeners=function(type2){var listeners,events,i;if(events=this._events,events===void 0)return this;if(events.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):events[type2]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete events[type2]),this;if(arguments.length===0){var keys=Object.keys(events),key;for(i=0;i<keys.length;++i)key=keys[i],key!=="removeListener"&&this.removeAllListeners(key);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(listeners=events[type2],typeof listeners=="function")this.removeListener(type2,listeners);else if(listeners!==void 0)for(i=listeners.length-1;i>=0;i--)this.removeListener(type2,listeners[i]);return this};function _listeners2(target,type2,unwrap){var events=target._events;if(events===void 0)return[];var evlistener=events[type2];return evlistener===void 0?[]:typeof evlistener=="function"?unwrap?[evlistener.listener||evlistener]:[evlistener]:unwrap?unwrapListeners(evlistener):arrayClone(evlistener,evlistener.length)}EventEmitter3.prototype.listeners=function(type2){return _listeners2(this,type2,!0)};EventEmitter3.prototype.rawListeners=function(type2){return _listeners2(this,type2,!1)};EventEmitter3.listenerCount=function(emitter,type2){return typeof emitter.listenerCount=="function"?emitter.listenerCount(type2):listenerCount.call(emitter,type2)};EventEmitter3.prototype.listenerCount=listenerCount;function listenerCount(type2){var events=this._events;if(events!==void 0){var evlistener=events[type2];if(typeof evlistener=="function")return 1;if(evlistener!==void 0)return evlistener.length}return 0}EventEmitter3.prototype.eventNames=function(){return this._eventsCount>0?ReflectOwnKeys(this._events):[]};function arrayClone(arr,n2){for(var copy=new Array(n2),i=0;i<n2;++i)copy[i]=arr[i];return copy}function spliceOne(list,index){for(;index+1<list.length;index++)list[index]=list[index+1];list.pop()}function unwrapListeners(arr){for(var ret=new Array(arr.length),i=0;i<ret.length;++i)ret[i]=arr[i].listener||arr[i];return ret}function once(emitter,name){return new Promise(function(resolve,reject2){function errorListener(err){emitter.removeListener(name,resolver),reject2(err)}function resolver(){typeof emitter.removeListener=="function"&&emitter.removeListener("error",errorListener),resolve([].slice.call(arguments))}eventTargetAgnosticAddListener(emitter,name,resolver,{once:!0}),name!=="error"&&addErrorHandlerIfEventEmitter(emitter,errorListener,{once:!0})})}function addErrorHandlerIfEventEmitter(emitter,handler,flags){typeof emitter.on=="function"&&eventTargetAgnosticAddListener(emitter,"error",handler,flags)}function eventTargetAgnosticAddListener(emitter,name,listener,flags){if(typeof emitter.on=="function")flags.once?emitter.once(name,listener):emitter.on(name,listener);else if(typeof emitter.addEventListener=="function")emitter.addEventListener(name,function wrapListener(arg){flags.once&&emitter.removeEventListener(name,wrapListener),listener(arg)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof emitter)}}});var require_dayjs_min=__commonJS({"node_modules/dayjs/dayjs.min.js"(exports,module){(function(t,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(exports,function(){"use strict";var t=1e3,e=6e4,n2=36e5,r="millisecond",i="second",s2="minute",u2="hour",a="day",o2="week",c="month",f2="quarter",h="year",d2="date",l2="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y2=/\[([^\]]+)]|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,M={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(t2){var e2=["th","st","nd","rd"],n3=t2%100;return"["+t2+(e2[(n3-20)%10]||e2[n3]||e2[0])+"]"}},m=function(t2,e2,n3){var r2=String(t2);return!r2||r2.length>=e2?t2:""+Array(e2+1-r2.length).join(n3)+t2},v={s:m,z:function(t2){var e2=-t2.utcOffset(),n3=Math.abs(e2),r2=Math.floor(n3/60),i2=n3%60;return(e2<=0?"+":"-")+m(r2,2,"0")+":"+m(i2,2,"0")},m:function t2(e2,n3){if(e2.date()<n3.date())return-t2(n3,e2);var r2=12*(n3.year()-e2.year())+(n3.month()-e2.month()),i2=e2.clone().add(r2,c),s3=n3-i2<0,u3=e2.clone().add(r2+(s3?-1:1),c);return+(-(r2+(n3-i2)/(s3?i2-u3:u3-i2))||0)},a:function(t2){return t2<0?Math.ceil(t2)||0:Math.floor(t2)},p:function(t2){return{M:c,y:h,w:o2,d:a,D:d2,h:u2,m:s2,s:i,ms:r,Q:f2}[t2]||String(t2||"").toLowerCase().replace(/s$/,"")},u:function(t2){return t2===void 0}},g2="en",D={};D[g2]=M;var p="$isDayjsObject",S2=function(t2){return t2 instanceof _||!(!t2||!t2[p])},w2=function t2(e2,n3,r2){var i2;if(!e2)return g2;if(typeof e2=="string"){var s3=e2.toLowerCase();D[s3]&&(i2=s3),n3&&(D[s3]=n3,i2=s3);var u3=e2.split("-");if(!i2&&u3.length>1)return t2(u3[0])}else{var a2=e2.name;D[a2]=e2,i2=a2}return!r2&&i2&&(g2=i2),i2||!r2&&g2},O=function(t2,e2){if(S2(t2))return t2.clone();var n3=typeof e2=="object"?e2:{};return n3.date=t2,n3.args=arguments,new _(n3)},b2=v;b2.l=w2,b2.i=S2,b2.w=function(t2,e2){return O(t2,{locale:e2.$L,utc:e2.$u,x:e2.$x,$offset:e2.$offset})};var _=function(){function M2(t2){this.$L=w2(t2.locale,null,!0),this.parse(t2),this.$x=this.$x||t2.x||{},this[p]=!0}var m2=M2.prototype;return m2.parse=function(t2){this.$d=function(t3){var e2=t3.date,n3=t3.utc;if(e2===null)return new Date(NaN);if(b2.u(e2))return new Date;if(e2 instanceof Date)return new Date(e2);if(typeof e2=="string"&&!/Z$/i.test(e2)){var r2=e2.match($);if(r2){var i2=r2[2]-1||0,s3=(r2[7]||"0").substring(0,3);return n3?new Date(Date.UTC(r2[1],i2,r2[3]||1,r2[4]||0,r2[5]||0,r2[6]||0,s3)):new Date(r2[1],i2,r2[3]||1,r2[4]||0,r2[5]||0,r2[6]||0,s3)}}return new Date(e2)}(t2),this.init()},m2.init=function(){var t2=this.$d;this.$y=t2.getFullYear(),this.$M=t2.getMonth(),this.$D=t2.getDate(),this.$W=t2.getDay(),this.$H=t2.getHours(),this.$m=t2.getMinutes(),this.$s=t2.getSeconds(),this.$ms=t2.getMilliseconds()},m2.$utils=function(){return b2},m2.isValid=function(){return this.$d.toString()!==l2},m2.isSame=function(t2,e2){var n3=O(t2);return this.startOf(e2)<=n3&&n3<=this.endOf(e2)},m2.isAfter=function(t2,e2){return O(t2)<this.startOf(e2)},m2.isBefore=function(t2,e2){return this.endOf(e2)<O(t2)},m2.$g=function(t2,e2,n3){return b2.u(t2)?this[e2]:this.set(n3,t2)},m2.unix=function(){return Math.floor(this.valueOf()/1e3)},m2.valueOf=function(){return this.$d.getTime()},m2.startOf=function(t2,e2){var n3=this,r2=!!b2.u(e2)||e2,f3=b2.p(t2),l3=function(t3,e3){var i2=b2.w(n3.$u?Date.UTC(n3.$y,e3,t3):new Date(n3.$y,e3,t3),n3);return r2?i2:i2.endOf(a)},$2=function(t3,e3){return b2.w(n3.toDate()[t3].apply(n3.toDate("s"),(r2?[0,0,0,0]:[23,59,59,999]).slice(e3)),n3)},y3=this.$W,M3=this.$M,m3=this.$D,v2="set"+(this.$u?"UTC":"");switch(f3){case h:return r2?l3(1,0):l3(31,11);case c:return r2?l3(1,M3):l3(0,M3+1);case o2:var g3=this.$locale().weekStart||0,D2=(y3<g3?y3+7:y3)-g3;return l3(r2?m3-D2:m3+(6-D2),M3);case a:case d2:return $2(v2+"Hours",0);case u2:return $2(v2+"Minutes",1);case s2:return $2(v2+"Seconds",2);case i:return $2(v2+"Milliseconds",3);default:return this.clone()}},m2.endOf=function(t2){return this.startOf(t2,!1)},m2.$set=function(t2,e2){var n3,o3=b2.p(t2),f3="set"+(this.$u?"UTC":""),l3=(n3={},n3[a]=f3+"Date",n3[d2]=f3+"Date",n3[c]=f3+"Month",n3[h]=f3+"FullYear",n3[u2]=f3+"Hours",n3[s2]=f3+"Minutes",n3[i]=f3+"Seconds",n3[r]=f3+"Milliseconds",n3)[o3],$2=o3===a?this.$D+(e2-this.$W):e2;if(o3===c||o3===h){var y3=this.clone().set(d2,1);y3.$d[l3]($2),y3.init(),this.$d=y3.set(d2,Math.min(this.$D,y3.daysInMonth())).$d}else l3&&this.$d[l3]($2);return this.init(),this},m2.set=function(t2,e2){return this.clone().$set(t2,e2)},m2.get=function(t2){return this[b2.p(t2)]()},m2.add=function(r2,f3){var d3,l3=this;r2=Number(r2);var $2=b2.p(f3),y3=function(t2){var e2=O(l3);return b2.w(e2.date(e2.date()+Math.round(t2*r2)),l3)};if($2===c)return this.set(c,this.$M+r2);if($2===h)return this.set(h,this.$y+r2);if($2===a)return y3(1);if($2===o2)return y3(7);var M3=(d3={},d3[s2]=e,d3[u2]=n2,d3[i]=t,d3)[$2]||1,m3=this.$d.getTime()+r2*M3;return b2.w(m3,this)},m2.subtract=function(t2,e2){return this.add(-1*t2,e2)},m2.format=function(t2){var e2=this,n3=this.$locale();if(!this.isValid())return n3.invalidDate||l2;var r2=t2||"YYYY-MM-DDTHH:mm:ssZ",i2=b2.z(this),s3=this.$H,u3=this.$m,a2=this.$M,o3=n3.weekdays,c2=n3.months,f3=n3.meridiem,h2=function(t3,n4,i3,s4){return t3&&(t3[n4]||t3(e2,r2))||i3[n4].slice(0,s4)},d3=function(t3){return b2.s(s3%12||12,t3,"0")},$2=f3||function(t3,e3,n4){var r3=t3<12?"AM":"PM";return n4?r3.toLowerCase():r3};return r2.replace(y2,function(t3,r3){return r3||function(t4){switch(t4){case"YY":return String(e2.$y).slice(-2);case"YYYY":return b2.s(e2.$y,4,"0");case"M":return a2+1;case"MM":return b2.s(a2+1,2,"0");case"MMM":return h2(n3.monthsShort,a2,c2,3);case"MMMM":return h2(c2,a2);case"D":return e2.$D;case"DD":return b2.s(e2.$D,2,"0");case"d":return String(e2.$W);case"dd":return h2(n3.weekdaysMin,e2.$W,o3,2);case"ddd":return h2(n3.weekdaysShort,e2.$W,o3,3);case"dddd":return o3[e2.$W];case"H":return String(s3);case"HH":return b2.s(s3,2,"0");case"h":return d3(1);case"hh":return d3(2);case"a":return $2(s3,u3,!0);case"A":return $2(s3,u3,!1);case"m":return String(u3);case"mm":return b2.s(u3,2,"0");case"s":return String(e2.$s);case"ss":return b2.s(e2.$s,2,"0");case"SSS":return b2.s(e2.$ms,3,"0");case"Z":return i2}return null}(t3)||i2.replace(":","")})},m2.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m2.diff=function(r2,d3,l3){var $2,y3=this,M3=b2.p(d3),m3=O(r2),v2=(m3.utcOffset()-this.utcOffset())*e,g3=this-m3,D2=function(){return b2.m(y3,m3)};switch(M3){case h:$2=D2()/12;break;case c:$2=D2();break;case f2:$2=D2()/3;break;case o2:$2=(g3-v2)/6048e5;break;case a:$2=(g3-v2)/864e5;break;case u2:$2=g3/n2;break;case s2:$2=g3/e;break;case i:$2=g3/t;break;default:$2=g3}return l3?$2:b2.a($2)},m2.daysInMonth=function(){return this.endOf(c).$D},m2.$locale=function(){return D[this.$L]},m2.locale=function(t2,e2){if(!t2)return this.$L;var n3=this.clone(),r2=w2(t2,e2,!0);return r2&&(n3.$L=r2),n3},m2.clone=function(){return b2.w(this.$d,this)},m2.toDate=function(){return new Date(this.valueOf())},m2.toJSON=function(){return this.isValid()?this.toISOString():null},m2.toISOString=function(){return this.$d.toISOString()},m2.toString=function(){return this.$d.toUTCString()},M2}(),k=_.prototype;return O.prototype=k,[["$ms",r],["$s",i],["$m",s2],["$H",u2],["$W",a],["$M",c],["$y",h],["$D",d2]].forEach(function(t2){k[t2[1]]=function(e2){return this.$g(e2,t2[0],t2[1])}}),O.extend=function(t2,e2){return t2.$i||(t2(e2,_,O),t2.$i=!0),O},O.locale=w2,O.isDayjs=S2,O.unix=function(t2){return O(1e3*t2)},O.en=D[g2],O.Ls=D,O.p={},O})}});var require_localeData=__commonJS({"node_modules/dayjs/plugin/localeData.js"(exports,module){(function(n2,e){typeof exports=="object"&&typeof module<"u"?module.exports=e():typeof define=="function"&&define.amd?define(e):(n2=typeof globalThis<"u"?globalThis:n2||self).dayjs_plugin_localeData=e()})(exports,function(){"use strict";return function(n2,e,t){var r=e.prototype,o2=function(n3){return n3&&(n3.indexOf?n3:n3.s)},u2=function(n3,e2,t2,r2,u3){var i2=n3.name?n3:n3.$locale(),a2=o2(i2[e2]),s3=o2(i2[t2]),f2=a2||s3.map(function(n4){return n4.slice(0,r2)});if(!u3)return f2;var d2=i2.weekStart;return f2.map(function(n4,e3){return f2[(e3+(d2||0))%7]})},i=function(){return t.Ls[t.locale()]},a=function(n3,e2){return n3.formats[e2]||function(n4){return n4.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(n5,e3,t2){return e3||t2.slice(1)})}(n3.formats[e2.toUpperCase()])},s2=function(){var n3=this;return{months:function(e2){return e2?e2.format("MMMM"):u2(n3,"months")},monthsShort:function(e2){return e2?e2.format("MMM"):u2(n3,"monthsShort","months",3)},firstDayOfWeek:function(){return n3.$locale().weekStart||0},weekdays:function(e2){return e2?e2.format("dddd"):u2(n3,"weekdays")},weekdaysMin:function(e2){return e2?e2.format("dd"):u2(n3,"weekdaysMin","weekdays",2)},weekdaysShort:function(e2){return e2?e2.format("ddd"):u2(n3,"weekdaysShort","weekdays",3)},longDateFormat:function(e2){return a(n3.$locale(),e2)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s2.bind(this)()},t.localeData=function(){var n3=i();return{firstDayOfWeek:function(){return n3.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e2){return a(n3,e2)},meridiem:n3.meridiem,ordinal:n3.ordinal}},t.months=function(){return u2(i(),"months")},t.monthsShort=function(){return u2(i(),"monthsShort","months",3)},t.weekdays=function(n3){return u2(i(),"weekdays",null,null,n3)},t.weekdaysShort=function(n3){return u2(i(),"weekdaysShort","weekdays",3,n3)},t.weekdaysMin=function(n3){return u2(i(),"weekdaysMin","weekdays",2,n3)}}})}});var require_localizedFormat=__commonJS({"node_modules/dayjs/plugin/localizedFormat.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_localizedFormat=t()})(exports,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};return function(t,o2,n2){var r=o2.prototype,i=r.format;n2.en.formats=e,r.format=function(t2){t2===void 0&&(t2="YYYY-MM-DDTHH:mm:ssZ");var o3=this.$locale().formats,n3=function(t3,o4){return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t4,n4,r2){var i2=r2&&r2.toUpperCase();return n4||o4[r2]||e[r2]||o4[i2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e2,t5,o5){return t5||o5.slice(1)})})}(t2,o3===void 0?{}:o3);return i.call(this,n3)}}})}});var require_isoWeek=__commonJS({"node_modules/dayjs/plugin/isoWeek.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=t()})(exports,function(){"use strict";var e="day";return function(t,i,s2){var a=function(t2){return t2.add(4-t2.isoWeekday(),e)},d2=i.prototype;d2.isoWeekYear=function(){return a(this).year()},d2.isoWeek=function(t2){if(!this.$utils().u(t2))return this.add(7*(t2-this.isoWeek()),e);var i2,d3,n3,o2,r=a(this),u2=(i2=this.isoWeekYear(),d3=this.$u,n3=(d3?s2.utc:s2)().year(i2).startOf("year"),o2=4-n3.isoWeekday(),n3.isoWeekday()>4&&(o2+=7),n3.add(o2,e));return r.diff(u2,"week")+1},d2.isoWeekday=function(e2){return this.$utils().u(e2)?this.day()||7:this.day(this.day()%7?e2:e2-7)};var n2=d2.startOf;d2.startOf=function(e2,t2){var i2=this.$utils(),s3=!!i2.u(t2)||t2;return i2.p(e2)==="isoweek"?s3?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):n2.bind(this)(e2,t2)}}})}});var require_weekOfYear=__commonJS({"node_modules/dayjs/plugin/weekOfYear.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_weekOfYear=t()})(exports,function(){"use strict";var e="week",t="year";return function(i,n2,r){var f2=n2.prototype;f2.week=function(i2){if(i2===void 0&&(i2=null),i2!==null)return this.add(7*(i2-this.week()),"day");var n3=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var f3=r(this).startOf(t).add(1,t).date(n3),s2=r(this).endOf(e);if(f3.isBefore(s2))return 1}var a=r(this).startOf(t).date(n3).startOf(e).subtract(1,"millisecond"),o2=this.diff(a,e,!0);return o2<0?r(this).startOf("week").week():Math.ceil(o2)},f2.weeks=function(e2){return e2===void 0&&(e2=null),this.week(e2)}}})}});var require_customParseFormat=__commonJS({"node_modules/dayjs/plugin/customParseFormat.js"(exports,module){(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(exports,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n2=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,o2={},s2=function(e2){return(e2=+e2)+(e2>68?1900:2e3)},a=function(e2){return function(t2){this[e2]=+t2}},f2=[/[+-]\d\d:?(\d\d)?|Z/,function(e2){(this.zone||(this.zone={})).offset=function(e3){if(!e3||e3==="Z")return 0;var t2=e3.match(/([+-]|\d\d)/g),n3=60*t2[1]+(+t2[2]||0);return n3===0?0:t2[0]==="+"?-n3:n3}(e2)}],h=function(e2){var t2=o2[e2];return t2&&(t2.indexOf?t2:t2.s.concat(t2.f))},u2=function(e2,t2){var n3,r2=o2.meridiem;if(r2){for(var i2=1;i2<=24;i2+=1)if(e2.indexOf(r2(i2,0,t2))>-1){n3=i2>12;break}}else n3=e2===(t2?"pm":"PM");return n3},d2={A:[i,function(e2){this.afternoon=u2(e2,!1)}],a:[i,function(e2){this.afternoon=u2(e2,!0)}],S:[/\d/,function(e2){this.milliseconds=100*+e2}],SS:[n2,function(e2){this.milliseconds=10*+e2}],SSS:[/\d{3}/,function(e2){this.milliseconds=+e2}],s:[r,a("seconds")],ss:[r,a("seconds")],m:[r,a("minutes")],mm:[r,a("minutes")],H:[r,a("hours")],h:[r,a("hours")],HH:[r,a("hours")],hh:[r,a("hours")],D:[r,a("day")],DD:[n2,a("day")],Do:[i,function(e2){var t2=o2.ordinal,n3=e2.match(/\d+/);if(this.day=n3[0],t2)for(var r2=1;r2<=31;r2+=1)t2(r2).replace(/\[|\]/g,"")===e2&&(this.day=r2)}],M:[r,a("month")],MM:[n2,a("month")],MMM:[i,function(e2){var t2=h("months"),n3=(h("monthsShort")||t2.map(function(e3){return e3.slice(0,3)})).indexOf(e2)+1;if(n3<1)throw new Error;this.month=n3%12||n3}],MMMM:[i,function(e2){var t2=h("months").indexOf(e2)+1;if(t2<1)throw new Error;this.month=t2%12||t2}],Y:[/[+-]?\d+/,a("year")],YY:[n2,function(e2){this.year=s2(e2)}],YYYY:[/\d{4}/,a("year")],Z:f2,ZZ:f2};function c(n3){var r2,i2;r2=n3,i2=o2&&o2.formats;for(var s3=(n3=r2.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t2,n4,r3){var o3=r3&&r3.toUpperCase();return n4||i2[r3]||e[r3]||i2[o3].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e2,t3,n5){return t3||n5.slice(1)})})).match(t),a2=s3.length,f3=0;f3<a2;f3+=1){var h2=s3[f3],u3=d2[h2],c2=u3&&u3[0],l2=u3&&u3[1];s3[f3]=l2?{regex:c2,parser:l2}:h2.replace(/^\[|\]$/g,"")}return function(e2){for(var t2={},n4=0,r3=0;n4<a2;n4+=1){var i3=s3[n4];if(typeof i3=="string")r3+=i3.length;else{var o3=i3.regex,f4=i3.parser,h3=e2.slice(r3),u4=o3.exec(h3)[0];f4.call(t2,u4),e2=e2.replace(u4,"")}}return function(e3){var t3=e3.afternoon;if(t3!==void 0){var n5=e3.hours;t3?n5<12&&(e3.hours+=12):n5===12&&(e3.hours=0),delete e3.afternoon}}(t2),t2}}return function(e2,t2,n3){n3.p.customParseFormat=!0,e2&&e2.parseTwoDigitYear&&(s2=e2.parseTwoDigitYear);var r2=t2.prototype,i2=r2.parse;r2.parse=function(e3){var t3=e3.date,r3=e3.utc,s3=e3.args;this.$u=r3;var a2=s3[1];if(typeof a2=="string"){var f3=s3[2]===!0,h2=s3[3]===!0,u3=f3||h2,d3=s3[2];h2&&(d3=s3[2]),o2=this.$locale(),!f3&&d3&&(o2=n3.Ls[d3]),this.$d=function(e4,t4,n4){try{if(["x","X"].indexOf(t4)>-1)return new Date((t4==="X"?1e3:1)*e4);var r4=c(t4)(e4),i3=r4.year,o3=r4.month,s4=r4.day,a3=r4.hours,f4=r4.minutes,h3=r4.seconds,u4=r4.milliseconds,d4=r4.zone,l3=new Date,m2=s4||(i3||o3?1:l3.getDate()),M2=i3||l3.getFullYear(),Y=0;i3&&!o3||(Y=o3>0?o3-1:l3.getMonth());var p=a3||0,v=f4||0,D=h3||0,g2=u4||0;return d4?new Date(Date.UTC(M2,Y,m2,p,v,D,g2+60*d4.offset*1e3)):n4?new Date(Date.UTC(M2,Y,m2,p,v,D,g2)):new Date(M2,Y,m2,p,v,D,g2)}catch{return new Date("")}}(t3,a2,r3),this.init(),d3&&d3!==!0&&(this.$L=this.locale(d3).$L),u3&&t3!=this.format(a2)&&(this.$d=new Date("")),o2={}}else if(a2 instanceof Array)for(var l2=a2.length,m=1;m<=l2;m+=1){s3[1]=a2[m-1];var M=n3.apply(this,s3);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===l2&&(this.$d=new Date(""))}else i2.call(this,e3)}}})}});var require_formats=__commonJS({"node_modules/lorem-ipsum/dist/constants/formats.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.FORMAT_PLAIN=exports.FORMAT_HTML=exports.FORMATS=void 0;var FORMAT_HTML="html";exports.FORMAT_HTML=FORMAT_HTML;var FORMAT_PLAIN="plain";exports.FORMAT_PLAIN=FORMAT_PLAIN;var FORMATS=[FORMAT_HTML,FORMAT_PLAIN];exports.FORMATS=FORMATS}});var require_units=__commonJS({"node_modules/lorem-ipsum/dist/constants/units.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.UNIT_WORDS=exports.UNIT_WORD=exports.UNIT_SENTENCES=exports.UNIT_SENTENCE=exports.UNIT_PARAGRAPHS=exports.UNIT_PARAGRAPH=exports.UNITS=void 0;var UNIT_WORDS="words";exports.UNIT_WORDS=UNIT_WORDS;var UNIT_WORD="word";exports.UNIT_WORD=UNIT_WORD;var UNIT_SENTENCES="sentences";exports.UNIT_SENTENCES=UNIT_SENTENCES;var UNIT_SENTENCE="sentence";exports.UNIT_SENTENCE=UNIT_SENTENCE;var UNIT_PARAGRAPHS="paragraphs";exports.UNIT_PARAGRAPHS=UNIT_PARAGRAPHS;var UNIT_PARAGRAPH="paragraph";exports.UNIT_PARAGRAPH=UNIT_PARAGRAPH;var UNITS=[UNIT_WORDS,UNIT_WORD,UNIT_SENTENCES,UNIT_SENTENCE,UNIT_PARAGRAPHS,UNIT_PARAGRAPH];exports.UNITS=UNITS}});var require_words=__commonJS({"node_modules/lorem-ipsum/dist/constants/words.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.WORDS=void 0;var WORDS=["ad","adipisicing","aliqua","aliquip","amet","anim","aute","cillum","commodo","consectetur","consequat","culpa","cupidatat","deserunt","do","dolor","dolore","duis","ea","eiusmod","elit","enim","esse","est","et","eu","ex","excepteur","exercitation","fugiat","id","in","incididunt","ipsum","irure","labore","laboris","laborum","Lorem","magna","minim","mollit","nisi","non","nostrud","nulla","occaecat","officia","pariatur","proident","qui","quis","reprehenderit","sint","sit","sunt","tempor","ullamco","ut","velit","veniam","voluptate"];exports.WORDS=WORDS}});var require_lineEndings=__commonJS({"node_modules/lorem-ipsum/dist/constants/lineEndings.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.LINE_ENDINGS=void 0;var LINE_ENDINGS={POSIX:`
|
|
2
2
|
`,WIN32:`\r
|
|
3
3
|
`};exports.LINE_ENDINGS=LINE_ENDINGS}});var require_capitalize=__commonJS({"node_modules/lorem-ipsum/dist/util/capitalize.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;var capitalize=function(str){var trimmed=str.trim();return trimmed.charAt(0).toUpperCase()+trimmed.slice(1)},_default=capitalize;exports.default=_default}});var require_isNode=__commonJS({"node_modules/lorem-ipsum/dist/util/isNode.js"(exports,module){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;var isNode2=function(){return typeof module<"u"&&!!module.exports},_default=isNode2;exports.default=_default}});var require_isReactNative=__commonJS({"node_modules/lorem-ipsum/dist/util/isReactNative.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;var isReactNative2=function(){var isReactNativeResult=!1;try{isReactNativeResult=navigator.product==="ReactNative"}catch{isReactNativeResult=!1}return isReactNativeResult},_default=isReactNative2;exports.default=_default}});var require_platforms=__commonJS({"node_modules/lorem-ipsum/dist/constants/platforms.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.SUPPORTED_PLATFORMS=void 0;var SUPPORTED_PLATFORMS={DARWIN:"darwin",LINUX:"linux",WIN32:"win32"};exports.SUPPORTED_PLATFORMS=SUPPORTED_PLATFORMS}});var require_isWindows=__commonJS({"node_modules/lorem-ipsum/dist/util/isWindows.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;var _platforms=require_platforms(),isWindows=function(){var isWindowsResult=!1;try{isWindowsResult=process.platform===_platforms.SUPPORTED_PLATFORMS.WIN32}catch{isWindowsResult=!1}return isWindowsResult},_default=isWindows;exports.default=_default}});var require_makeArrayOfLength=__commonJS({"node_modules/lorem-ipsum/dist/util/makeArrayOfLength.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;var makeArrayOfLength=function(){var length=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return Array.apply(null,Array(length)).map(function(item,index){return index})},_default=makeArrayOfLength;exports.default=_default}});var require_makeArrayOfStrings=__commonJS({"node_modules/lorem-ipsum/dist/util/makeArrayOfStrings.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;var _makeArrayOfLength=_interopRequireDefault(require_makeArrayOfLength());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var makeArrayOfStrings=function(length,makeString){var arr=(0,_makeArrayOfLength.default)(length);return arr.map(function(){return makeString()})},_default=makeArrayOfStrings;exports.default=_default}});var require_util=__commonJS({"node_modules/lorem-ipsum/dist/util/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});Object.defineProperty(exports,"capitalize",{enumerable:!0,get:function(){return _capitalize.default}});Object.defineProperty(exports,"isNode",{enumerable:!0,get:function(){return _isNode.default}});Object.defineProperty(exports,"isReactNative",{enumerable:!0,get:function(){return _isReactNative.default}});Object.defineProperty(exports,"isWindows",{enumerable:!0,get:function(){return _isWindows.default}});Object.defineProperty(exports,"makeArrayOfLength",{enumerable:!0,get:function(){return _makeArrayOfLength.default}});Object.defineProperty(exports,"makeArrayOfStrings",{enumerable:!0,get:function(){return _makeArrayOfStrings.default}});var _capitalize=_interopRequireDefault(require_capitalize()),_isNode=_interopRequireDefault(require_isNode()),_isReactNative=_interopRequireDefault(require_isReactNative()),_isWindows=_interopRequireDefault(require_isWindows()),_makeArrayOfLength=_interopRequireDefault(require_makeArrayOfLength()),_makeArrayOfStrings=_interopRequireDefault(require_makeArrayOfStrings());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}}});var require_generator=__commonJS({"node_modules/lorem-ipsum/dist/lib/generator.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;var _words=require_words(),_util=require_util();function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props2){for(var i=0;i<props2.length;i++){var descriptor=props2[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var Generator=function(){function Generator2(){var _ref=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_ref$sentencesPerPara=_ref.sentencesPerParagraph,sentencesPerParagraph=_ref$sentencesPerPara===void 0?{max:7,min:3}:_ref$sentencesPerPara,_ref$wordsPerSentence=_ref.wordsPerSentence,wordsPerSentence=_ref$wordsPerSentence===void 0?{max:15,min:5}:_ref$wordsPerSentence,random3=_ref.random,seed=_ref.seed,_ref$words=_ref.words,words=_ref$words===void 0?_words.WORDS:_ref$words;if(_classCallCheck(this,Generator2),_defineProperty(this,"sentencesPerParagraph",void 0),_defineProperty(this,"wordsPerSentence",void 0),_defineProperty(this,"random",void 0),_defineProperty(this,"words",void 0),sentencesPerParagraph.min>sentencesPerParagraph.max)throw new Error("Minimum number of sentences per paragraph (".concat(sentencesPerParagraph.min,") cannot exceed maximum (").concat(sentencesPerParagraph.max,")."));if(wordsPerSentence.min>wordsPerSentence.max)throw new Error("Minimum number of words per sentence (".concat(wordsPerSentence.min,") cannot exceed maximum (").concat(wordsPerSentence.max,")."));this.sentencesPerParagraph=sentencesPerParagraph,this.words=words,this.wordsPerSentence=wordsPerSentence,this.random=random3||Math.random}return _createClass(Generator2,[{key:"generateRandomInteger",value:function(min2,max2){return Math.floor(this.random()*(max2-min2+1)+min2)}},{key:"generateRandomWords",value:function(num){var _this=this,_this$wordsPerSentenc=this.wordsPerSentence,min2=_this$wordsPerSentenc.min,max2=_this$wordsPerSentenc.max,length=num||this.generateRandomInteger(min2,max2);return(0,_util.makeArrayOfLength)(length).reduce(function(accumulator,index){return"".concat(_this.pluckRandomWord()," ").concat(accumulator)},"").trim()}},{key:"generateRandomSentence",value:function(num){return"".concat((0,_util.capitalize)(this.generateRandomWords(num)),".")}},{key:"generateRandomParagraph",value:function(num){var _this2=this,_this$sentencesPerPar=this.sentencesPerParagraph,min2=_this$sentencesPerPar.min,max2=_this$sentencesPerPar.max,length=num||this.generateRandomInteger(min2,max2);return(0,_util.makeArrayOfLength)(length).reduce(function(accumulator,index){return"".concat(_this2.generateRandomSentence()," ").concat(accumulator)},"").trim()}},{key:"pluckRandomWord",value:function(){var min2=0,max2=this.words.length-1,index=this.generateRandomInteger(min2,max2);return this.words[index]}}]),Generator2}(),_default=Generator;exports.default=_default}});var require_LoremIpsum=__commonJS({"node_modules/lorem-ipsum/dist/lib/LoremIpsum.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=void 0;var _formats=require_formats(),_lineEndings=require_lineEndings(),_generator=_interopRequireDefault(require_generator()),_util=require_util();function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor))throw new TypeError("Cannot call a class as a function")}function _defineProperties(target,props2){for(var i=0;i<props2.length;i++){var descriptor=props2[i];descriptor.enumerable=descriptor.enumerable||!1,descriptor.configurable=!0,"value"in descriptor&&(descriptor.writable=!0),Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){return protoProps&&_defineProperties(Constructor.prototype,protoProps),staticProps&&_defineProperties(Constructor,staticProps),Object.defineProperty(Constructor,"prototype",{writable:!1}),Constructor}function _defineProperty(obj,key,value){return key in obj?Object.defineProperty(obj,key,{value,enumerable:!0,configurable:!0,writable:!0}):obj[key]=value,obj}var LoremIpsum2=function(){function LoremIpsum3(){var options=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},format2=arguments.length>1&&arguments[1]!==void 0?arguments[1]:_formats.FORMAT_PLAIN,suffix=arguments.length>2?arguments[2]:void 0;if(_classCallCheck(this,LoremIpsum3),this.format=format2,this.suffix=suffix,_defineProperty(this,"generator",void 0),_formats.FORMATS.indexOf(format2.toLowerCase())===-1)throw new Error("".concat(format2," is an invalid format. Please use ").concat(_formats.FORMATS.join(" or "),"."));this.generator=new _generator.default(options)}return _createClass(LoremIpsum3,[{key:"getLineEnding",value:function(){return this.suffix?this.suffix:!(0,_util.isReactNative)()&&(0,_util.isNode)()&&(0,_util.isWindows)()?_lineEndings.LINE_ENDINGS.WIN32:_lineEndings.LINE_ENDINGS.POSIX}},{key:"formatString",value:function(str){return this.format===_formats.FORMAT_HTML?"<p>".concat(str,"</p>"):str}},{key:"formatStrings",value:function(strings){var _this=this;return strings.map(function(str){return _this.formatString(str)})}},{key:"generateWords",value:function(num){return this.formatString(this.generator.generateRandomWords(num))}},{key:"generateSentences",value:function(num){return this.formatString(this.generator.generateRandomParagraph(num))}},{key:"generateParagraphs",value:function(num){var makeString=this.generator.generateRandomParagraph.bind(this.generator);return this.formatStrings((0,_util.makeArrayOfStrings)(num,makeString)).join(this.getLineEnding())}}]),LoremIpsum3}(),_default=LoremIpsum2;exports.default=_default}});var require_dist=__commonJS({"node_modules/lorem-ipsum/dist/index.js"(exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});Object.defineProperty(exports,"LoremIpsum",{enumerable:!0,get:function(){return _LoremIpsum.default}});exports.loremIpsum=void 0;var _formats=require_formats(),_units=require_units(),_words=require_words(),_LoremIpsum=_interopRequireDefault(require_LoremIpsum());function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}var loremIpsum=function(){var _ref=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},_ref$count=_ref.count,count=_ref$count===void 0?1:_ref$count,_ref$format=_ref.format,format2=_ref$format===void 0?_formats.FORMAT_PLAIN:_ref$format,_ref$paragraphLowerBo=_ref.paragraphLowerBound,paragraphLowerBound=_ref$paragraphLowerBo===void 0?3:_ref$paragraphLowerBo,_ref$paragraphUpperBo=_ref.paragraphUpperBound,paragraphUpperBound=_ref$paragraphUpperBo===void 0?7:_ref$paragraphUpperBo,random3=_ref.random,_ref$sentenceLowerBou=_ref.sentenceLowerBound,sentenceLowerBound=_ref$sentenceLowerBou===void 0?5:_ref$sentenceLowerBou,_ref$sentenceUpperBou=_ref.sentenceUpperBound,sentenceUpperBound=_ref$sentenceUpperBou===void 0?15:_ref$sentenceUpperBou,_ref$units=_ref.units,units=_ref$units===void 0?_units.UNIT_SENTENCES:_ref$units,_ref$words=_ref.words,words=_ref$words===void 0?_words.WORDS:_ref$words,_ref$suffix=_ref.suffix,suffix=_ref$suffix===void 0?"":_ref$suffix,options={random:random3,sentencesPerParagraph:{max:paragraphUpperBound,min:paragraphLowerBound},words,wordsPerSentence:{max:sentenceUpperBound,min:sentenceLowerBound}},lorem=new _LoremIpsum.default(options,format2,suffix);switch(units){case _units.UNIT_PARAGRAPHS:case _units.UNIT_PARAGRAPH:return lorem.generateParagraphs(count);case _units.UNIT_SENTENCES:case _units.UNIT_SENTENCE:return lorem.generateSentences(count);case _units.UNIT_WORDS:case _units.UNIT_WORD:return lorem.generateWords(count);default:return""}};exports.loremIpsum=loremIpsum}});var require_papaparse_min=__commonJS({"node_modules/papaparse/papaparse.min.js"(exports,module){(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof module=="object"&&typeof exports<"u"?module.exports=t():e.Papa=t()})(exports,function s2(){"use strict";var f2=typeof self<"u"?self:typeof window<"u"?window:f2!==void 0?f2:{},n2=!f2.document&&!!f2.postMessage,o2=f2.IS_PAPA_WORKER||!1,a={},u2=0,b2={parse:function(e,t){var r2=(t=t||{}).dynamicTyping||!1;if(J(r2)&&(t.dynamicTypingFunction=r2,r2={}),t.dynamicTyping=r2,t.transform=!!J(t.transform)&&t.transform,t.worker&&b2.WORKERS_SUPPORTED){var i=function(){if(!b2.WORKERS_SUPPORTED)return!1;var e2=(r3=f2.URL||f2.webkitURL||null,i2=s2.toString(),b2.BLOB_URL||(b2.BLOB_URL=r3.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",i2,")();"],{type:"text/javascript"})))),t2=new f2.Worker(e2),r3,i2;return t2.onmessage=_,t2.id=u2++,a[t2.id]=t2}();return i.userStep=t.step,i.userChunk=t.chunk,i.userComplete=t.complete,i.userError=t.error,t.step=J(t.step),t.chunk=J(t.chunk),t.complete=J(t.complete),t.error=J(t.error),delete t.worker,void i.postMessage({input:e,config:t,workerId:i.id})}var n3=null;return b2.NODE_STREAM_INPUT,typeof e=="string"?(e=function(e2){return e2.charCodeAt(0)===65279?e2.slice(1):e2}(e),n3=t.download?new l2(t):new p(t)):e.readable===!0&&J(e.read)&&J(e.on)?n3=new g2(t):(f2.File&&e instanceof File||e instanceof Object)&&(n3=new c(t)),n3.stream(e)},unparse:function(e,t){var n3=!1,_2=!0,m2=",",y3=`\r
|
|
4
4
|
`,s3='"',a2=s3+s3,r2=!1,i=null,o3=!1;(function(){if(typeof t=="object"){if(typeof t.delimiter!="string"||b2.BAD_DELIMITERS.filter(function(e2){return t.delimiter.indexOf(e2)!==-1}).length||(m2=t.delimiter),(typeof t.quotes=="boolean"||typeof t.quotes=="function"||Array.isArray(t.quotes))&&(n3=t.quotes),typeof t.skipEmptyLines!="boolean"&&typeof t.skipEmptyLines!="string"||(r2=t.skipEmptyLines),typeof t.newline=="string"&&(y3=t.newline),typeof t.quoteChar=="string"&&(s3=t.quoteChar),typeof t.header=="boolean"&&(_2=t.header),Array.isArray(t.columns)){if(t.columns.length===0)throw new Error("Option columns is empty");i=t.columns}t.escapeChar!==void 0&&(a2=t.escapeChar+s3),(typeof t.escapeFormulae=="boolean"||t.escapeFormulae instanceof RegExp)&&(o3=t.escapeFormulae instanceof RegExp?t.escapeFormulae:/^[=+\-@\t\r].*$/)}})();var u3=new RegExp(Q(s3),"g");if(typeof e=="string"&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h2(null,e,r2);if(typeof e[0]=="object")return h2(i||Object.keys(e[0]),e,r2)}else if(typeof e=="object")return typeof e.data=="string"&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||i),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:typeof e.data[0]=="object"?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||typeof e.data[0]=="object"||(e.data=[e.data])),h2(e.fields||[],e.data||[],r2);throw new Error("Unable to serialize unrecognized input");function h2(e2,t2,r3){var i2="";typeof e2=="string"&&(e2=JSON.parse(e2)),typeof t2=="string"&&(t2=JSON.parse(t2));var n4=Array.isArray(e2)&&0<e2.length,s4=!Array.isArray(t2[0]);if(n4&&_2){for(var a3=0;a3<e2.length;a3++)0<a3&&(i2+=m2),i2+=v2(e2[a3],a3);0<t2.length&&(i2+=y3)}for(var o4=0;o4<t2.length;o4++){var u4=n4?e2.length:t2[o4].length,h3=!1,f3=n4?Object.keys(t2[o4]).length===0:t2[o4].length===0;if(r3&&!n4&&(h3=r3==="greedy"?t2[o4].join("").trim()==="":t2[o4].length===1&&t2[o4][0].length===0),r3==="greedy"&&n4){for(var d3=[],l3=0;l3<u4;l3++){var c2=s4?e2[l3]:l3;d3.push(t2[o4][c2])}h3=d3.join("").trim()===""}if(!h3){for(var p2=0;p2<u4;p2++){0<p2&&!f3&&(i2+=m2);var g3=n4&&s4?e2[p2]:p2;i2+=v2(t2[o4][g3],p2)}o4<t2.length-1&&(!r3||0<u4&&!f3)&&(i2+=y3)}}return i2}function v2(e2,t2){if(e2==null)return"";if(e2.constructor===Date)return JSON.stringify(e2).slice(1,25);var r3=!1;o3&&typeof e2=="string"&&o3.test(e2)&&(e2="'"+e2,r3=!0);var i2=e2.toString().replace(u3,a2);return(r3=r3||n3===!0||typeof n3=="function"&&n3(e2,t2)||Array.isArray(n3)&&n3[t2]||function(e3,t3){for(var r4=0;r4<t3.length;r4++)if(-1<e3.indexOf(t3[r4]))return!0;return!1}(i2,b2.BAD_DELIMITERS)||-1<i2.indexOf(m2)||i2.charAt(0)===" "||i2.charAt(i2.length-1)===" ")?s3+i2+s3:i2}}};if(b2.RECORD_SEP="",b2.UNIT_SEP="",b2.BYTE_ORDER_MARK="\uFEFF",b2.BAD_DELIMITERS=["\r",`
|
|
@@ -662,7 +662,7 @@ list should be an Array.`),e3.length===0)return new f2(0);if(e3.length===1)retur
|
|
|
662
662
|
`);var FEATURE_NAME49="label";var adapter44=createResourceAdapter({sortComparer:sortByNameAndPublicIdComparer}),initialState49=adapter44.getInitialState(),reducer43=createReducer(initialState49,on(reset61,()=>__spreadValues({},initialState49)),on(addSuccess37,didAdd54,(state,{data})=>adapter44.upsertOne(data,state)),on(loadAll43,state=>__spreadProps(__spreadValues({},state),{allLoading:!0})),on(loadAllFailure43,state=>__spreadProps(__spreadValues({},state),{allLoading:!1})),on(loadAllSuccess44,(state,{data})=>adapter44.setAll(data,__spreadProps(__spreadValues({},state),{allLoading:!1,allLoaded:!0}))),on(removeSuccess38,didRemove49,(state,{publicId})=>adapter44.removeOne(publicId,state)),on(updateSuccess37,didUpdate50,(state,{data,publicId})=>adapter44.updateOne({id:publicId,changes:data},state))),feature43=createFeature({name:FEATURE_NAME49,reducer:reducer43});var selectAll43=createSelector(feature43.selectLabelState,adapter44.getSelectors().selectAll),{selectAllLoading:selectAllLoading33,selectAllLoaded:selectAllLoaded33,selectEntities:selectEntities36}=feature43;var FEATURE_NAME50="pageBuilderIsUpdating";var initialState50={isUpdating:!1},reducer44=createReducer(initialState50,on(update,update41,add,remove,state=>__spreadProps(__spreadValues({},state),{isUpdating:!0})),on(updateSuccess,updateSuccess41,addSuccess,removeSuccess,state=>__spreadProps(__spreadValues({},state),{isUpdating:!1}))),feature44=createFeature({name:FEATURE_NAME50,reducer:reducer44});var{selectIsUpdating}=feature44;var FEATURE_NAME51="pageBuilderErrors";var initialState51={manifests:[],templates:[],componentErrors:[]},reducer45=createReducer(initialState51,on(loadAllSuccess,(state,props2)=>{let templates=props2.data.map(template=>({publicId:template.publicId,sheetSettings:template.sheetSettings})),stateWithTemplates=__spreadProps(__spreadValues({},state),{templates});return state.componentErrors.length===0?stateWithTemplates:checkComponentsForErrors(stateWithTemplates)}),on(loadManySuccess,(state,{data})=>checkComponentsForErrors(__spreadProps(__spreadValues({},state),{manifests:data}))),on(loadDetailsSuccess3,(state,{data})=>addNewComponentErrors(__spreadProps(__spreadValues({},state),{componentErrors:[]}),data.draft?.components||[],data.draft?.publicId)),on(add,didAdd,(state,{data})=>addNewComponentErrors(state,[data])),on(didAddList,(state,{data})=>addNewComponentErrors(state,data)),on(remove,didRemove,(state,{publicId})=>removeComponentError(state,publicId)),on(didRemoveList,(state,{publicIdList})=>removeManyComponentErrors(state,publicIdList)),on(update,didUpdate,(state,{data})=>updateManyComponentErrors(state,[data])),on(updateMany,didUpdateList,(state,{data})=>updateManyComponentErrors(state,data)),on(discardDraft,resetPendingUpdates,state=>__spreadProps(__spreadValues({},state),{componentErrors:[]}))),feature45=createFeature({name:FEATURE_NAME51,reducer:reducer45});function dimensionErrors(component,template,manifest){if(component.dimensions?.type)switch(component.dimensions.type){case"card":return{type:"card",invalidMinHeight:!itemHasValid("min","height",component.dimensions,template,manifest),invalidMaxHeight:!itemHasValid("max","height",component.dimensions,template,manifest)};case"report":return{type:"report",invalidMinRows:!itemHasValid("min","rows",component.dimensions,template,manifest),invalidMinCols:!itemHasValid("min","cols",component.dimensions,template,manifest),invalidMaxRows:!itemHasValid("max","rows",component.dimensions,template,manifest),invalidMaxCols:!itemHasValid("max","cols",component.dimensions,template,manifest)};case"sheet":return{type:"sheet",invalidMinRows:!itemHasValid("min","rows",component.dimensions,template,manifest),invalidMinCols:!itemHasValid("min","cols",component.dimensions,template,manifest),invalidMaxRows:!itemHasValid("max","rows",component.dimensions,template,manifest),invalidMaxCols:!itemHasValid("max","cols",component.dimensions,template,manifest),invalidMobileMinRows:!itemHasValidMobileMinRows(component,template,manifest),invalidMobileMinCols:!itemHasValidMobileMinCols(component,template,manifest)}}}function checkComponentsForErrors(state){let componentErrors=state.componentErrors.map(componentError=>{let template=state.templates.find(template2=>template2.publicId===componentError.templateId),manifest=state.manifests.find(manifest2=>manifest2.template.publicId===componentError.templateId);return __spreadProps(__spreadValues({},componentError),{dimensionErrors:template?dimensionErrors(componentError.component,template,manifest):void 0,templateId:template?.publicId||null})});return __spreadProps(__spreadValues({},state),{componentErrors})}function updateManyComponentErrors(state,components){let componentErrors=state.componentErrors.map(componentError=>{let newValues=components.find(x=>x.publicId===componentError.component.publicId);if(newValues?.dimensions){let template=state.templates.find(template2=>template2.publicId===componentError.templateId),manifest=state.manifests.find(manifest2=>manifest2.template.publicId===componentError.templateId);return __spreadProps(__spreadValues({},componentError),{dimensionErrors:template?dimensionErrors(newValues,template,manifest):void 0})}return componentError});return __spreadProps(__spreadValues({},state),{componentErrors})}function addNewComponentErrors(state,components,providedPageVersionId){let alreadyCreatedComponents=state.componentErrors.map(a=>a.component.publicId),newComponentErrors=components.filter(component=>component.publicId&&!alreadyCreatedComponents.includes(component.publicId)).map(component=>{let templateId=component.template?.publicId||null,template=state.templates.find(template2=>template2.publicId===templateId),manifest=state.manifests.find(manifest2=>manifest2.template.publicId===templateId),pageVersionId=component.pageVersion?.publicId||providedPageVersionId||null;return template?{pageVersionId,component,templateId,dimensionErrors:dimensionErrors(component,template,manifest)}:{pageVersionId,component,templateId,dimensionErrors:void 0}}),componentErrors=[...state.componentErrors,...newComponentErrors];return __spreadProps(__spreadValues({},state),{componentErrors})}function removeComponentError(state,componentId){return __spreadProps(__spreadValues({},state),{componentErrors:state?.componentErrors?.filter(componentError=>componentError.component.publicId!==componentId)})}function removeManyComponentErrors(state,componentIdList){return __spreadProps(__spreadValues({},state),{componentErrors:state?.componentErrors?.filter(componentError=>!componentIdList.includes(componentError.component.publicId))})}var selectComponentErrorsForPageVersion=versionId2=>createSelector(feature45.selectComponentErrors,errors2=>errors2.filter(error2=>error2.pageVersionId===versionId2));var AbstractBuilderFacade=class{constructor(actions$,store,componentTemplatesFacade){this.actions$=actions$,this.store=store,this.componentTemplatesFacade=componentTemplatesFacade,this.busyUpdating$=this.store.select(selectIsUpdating).pipe(switchMap(isUpdating=>isUpdating?of(!0):timer(500).pipe(map(()=>!1))),distinctUntilChanged()),this.pageComponentAddSuccess$=this.actions$.pipe(ofType(addSuccess)),this.pageComponentRemoveSuccess$=this.actions$.pipe(ofType(removeSuccess))}componentTemplates(pageId){let templates$=this.componentTemplatesFacade?.templates$;return templates$?combineLatest([this.page(pageId),templates$]).pipe(map(([page,templates])=>orderBy_default(templates.filter(t=>this.isTemplateForBuilder(page,t,t.manifest)),"name"))):EMPTY}draftVersionComponentErrors(publicId){return this.store.select(selectComponentErrorsForPageVersion(publicId))}componentTemplate(component$){return component$.pipe(switchMap(component=>component?.template?.publicId?this.store.select(selectEntity(component.template.publicId)).pipe(map(template=>template||null)):of(null)))}defaultRefreshRate(pageId){return this.draftVersionByPageId(pageId).pipe(map(draft=>draft.defaultRefreshRate||0),distinctUntilChanged())}draftVersionByPageId(publicId){return combineLatest([this.store.select(selectEntity9(publicId)),this.store.select(selectEntities26),this.store.select(selectEntities32)]).pipe(mergeMap(([page,versionEntities,componentEntities])=>{if(page?.draft){let pageVersion=versionEntities[page.draft.publicId];if(pageVersion)return of(__spreadProps(__spreadValues({},pageVersion),{components:pageVersion.components?.map(c=>componentEntities[c.publicId]||c)}))}return EMPTY}))}page(publicId){return this.store.select(selectEntity9(publicId)).pipe(mergeMap(page=>page?of(page):EMPTY))}pageComponent(publicId){return this.store.select(selectEntity16(publicId))}pageComponentTemplate(componentId){return componentId?combineLatest([this.store.select(selectEntity16(componentId)),this.store.select(selectAll)]).pipe(map(([component,templates])=>templates.find(t=>t.publicId===component?.template?.publicId)||null),distinctUntilChanged((t1,t2)=>t1?.publicId===t2?.publicId)):of(null)}pageComponentTemplateManifest(componentId){return componentId?this.store.select(selectEntity16(componentId)).pipe(switchMap(pageComponent=>{let templateId=pageComponent?.template?.publicId;return templateId?this.store.select(selectEntity2(templateId)).pipe(map(m=>m??null)):of(null)})):of(null)}pageComponentTemplateWithManifest(pageComponentTemplatedId){return pageComponentTemplatedId?combineLatest([this.store.select(selectEntity(pageComponentTemplatedId)),this.store.select(selectEntities2)]).pipe(map(([template,manifests])=>template?manifests[template.publicId]?__spreadProps(__spreadValues({},template),{manifest:manifests[template.publicId]}):template:null),distinctUntilChanged((t1,t2)=>t1?.publicId===t2?.publicId)):of(null)}pageComponents(pageId){return combineLatest([this.draftVersionByPageId(pageId),this.store.select(selectAll)]).pipe(map(([pageVersion,templates])=>(pageVersion.components||[]).map(component=>component.template?__spreadProps(__spreadValues({},component),{pageVersion,template:templates.find(t=>t.publicId===component?.template?.publicId)||component.template}):component)))}pageLabels(pageId){return combineLatest([this.store.select(selectEntity9(pageId)),this.store.select(selectEntities36)]).pipe(map(([page,labelEntities])=>compact_default(page?.labels?.map(label=>labelEntities[label.publicId])).sort(sortByNameAndPublicIdComparer)))}periodSelectorEnabled(pageId){return this.draftVersionByPageId(pageId).pipe(map(draft=>!!draft.periodSelectorEnabled),distinctUntilChanged())}periodSpec(pageId){return this.draftVersionByPageId(pageId).pipe(map(draft=>draft.periodSpec||DEFAULT_PERIOD_SPEC),distinctUntilChanged())}loadAgents(){this.store.dispatch(ensureAllActive({fields:AGENT_LIST_FIELDS}))}loadAgentTemplates(){this.store.dispatch(ensureAll29({fields:AGENT_TEMPLATE_LIST_FIELDS}))}loadGroups(){this.store.dispatch(ensureAll9())}loadPageComponentTemplates(){this.store.dispatch(ensureAll())}loadPageComponentTemplateCategories(){this.store.dispatch(ensureAll47())}loadPage(publicId){this.store.dispatch(loadDetails3({publicId,fields:PAGE_DETAILS_FIELDS2}))}loadLabels(){this.store.dispatch(ensureAll37())}addComponent(component){this.store.dispatch(add({data:component}))}removeComponent(publicId){this.store.dispatch(remove({publicId}))}updateComponent(publicId,update46){this.store.dispatch(update({publicId,data:update46}))}updateComponentList(updates){this.store.dispatch(updateMany({data:updates}))}reset(){this.store.dispatch(resetPendingUpdates())}updatePageVersion(publicId,data){this.store.dispatch(update41({publicId,data}))}updatePage(publicId,data){this.store.dispatch(update38({publicId,data}))}pageVersionTitleTranslationKey(pageId){return this.draftVersionByPageId(pageId).pipe(switchMap(version3=>this.store.select(selectTitleTranslationKey(version3.publicId))))}};var PagePreviewDeviceFacade=(()=>{let _PagePreviewDeviceFacade=class _PagePreviewDeviceFacade{option(pageVersion$){return combineLatest([pageVersion$,this.options$]).pipe(map(([page,options])=>options.find(option=>option.publicId===(page?.previewAgent?.publicId||page?.previewAsset?.publicId))||null))}constructor(store,features2){this.store=store,this.features=features2,this.options$=combineLatest([this.store.select(selectAll2).pipe(map(agents=>agents.filter(isActive))),this.store.select(selectAllRoots)]).pipe(map(([agents,assets])=>[...agents.filter(isNotLinkedToAsset),...assets].sort(sortByNameAndPublicIdComparer)))}loadAssets(){this.features.instantCanUse("assets")&&this.store.dispatch(ensureAll5())}updatePreviewDevice(versionId2,publicId){publicId?this.store.select(selectEntity5(publicId)).pipe(take(1),map(asset=>asset?["Asset","Agent"]:["Agent","Asset"])).subscribe(([setType,unsetType])=>{let data={[`preview${setType}`]:{publicId},[`preview${unsetType}`]:null};this.store.dispatch(update41({publicId:versionId2,data}))}):this.store.dispatch(update41({publicId:versionId2,data:{previewAsset:null,previewAgent:null}}))}};_PagePreviewDeviceFacade.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PagePreviewDeviceFacade)(\u0275\u0275inject(Store),\u0275\u0275inject(PlatformFeaturesService))},_PagePreviewDeviceFacade.\u0275prov=\u0275\u0275defineInjectable({token:_PagePreviewDeviceFacade,factory:_PagePreviewDeviceFacade.\u0275fac,providedIn:"root"});let PagePreviewDeviceFacade2=_PagePreviewDeviceFacade;return PagePreviewDeviceFacade2})();var BuilderFacade=(()=>{let _BuilderFacade=class _BuilderFacade extends AbstractBuilderFacade{constructor(){super(inject(Actions),inject(Store)),this.previewDeviceFacade=inject(PagePreviewDeviceFacade),this.storage=inject(StorageService),this.selectedPeriodSpec$=new BehaviorSubject(null),this.previewAgentsOrAssets$=this.previewDeviceFacade.options$}isTemplateForBuilder(){throw"Not implemented in Simulator"}linkedDevicesCount(){return of(0)}linkedDeviceTemplatesCount(){return of(0)}reloadDimensions(pageId,applicationType){this.pageComponents(pageId).pipe(take(1)).subscribe(components=>{components.forEach(component=>{let publicId=component.publicId,dimensions=this.storage.get(`pc-dimensions:${applicationType}`,[]).find(item=>item.id===component.template?.publicId)?.dimensions;if(!dimensions)switch(applicationType){case"card":dimensions=DEFAULT_CARD_DIMENSIONS;break;case"report":dimensions=DEFAULT_REPORT_DIMENSIONS;break;case"sheet":dimensions=DEFAULT_SHEET_DIMENSIONS;break}this.updateComponent(publicId,{dimensions})})})}selectedPeriodSpec(pageId$){return combineLatest([pageId$.pipe(mergeMap(id=>id?this.periodSpec(id):EMPTY)),this.selectedPeriodSpec$]).pipe(map(([pageVersionPeriodSpec,selectedPeriodSpec])=>selectedPeriodSpec||pageVersionPeriodSpec||DEFAULT_PERIOD_SPEC))}updateSelectedPeriodSpec(periodSpec){this.selectedPeriodSpec$.next(periodSpec)}getComponent(pageId){return this.pageComponents(pageId).pipe(map(pageComponents=>pageComponents[0]))}getComponentName(pageId){return this.pageComponents(pageId).pipe(map(pageComponents=>{let url2=pageComponents[0]?.template?.url?.split("/");if(url2)return url2[url2.length-2]}))}loadAssets(){this.previewDeviceFacade.loadAssets()}loadRoles(){this.store.dispatch(loadAll8())}updatePreviewAgentOrAsset(versionId2,publicId){this.previewDeviceFacade.updatePreviewDevice(versionId2,publicId)}previewAgentOrAsset(pageVersion$){return this.previewDeviceFacade.option(pageVersion$)}};_BuilderFacade.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_BuilderFacade)},_BuilderFacade.\u0275prov=\u0275\u0275defineInjectable({token:_BuilderFacade,factory:_BuilderFacade.\u0275fac,providedIn:"root"});let BuilderFacade2=_BuilderFacade;return BuilderFacade2})();var _c013=["searchSelectInput"],_c14=["innerSelectSearch"],_c23=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],_c32=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"],_c4=(a0,a1)=>({"mat-select-search-inner-multiple":a0,"mat-select-search-inner-toggle-all":a1});function MatSelectSearchComponent_mat_checkbox_4_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-checkbox",12),\u0275\u0275listener("change",function($event){\u0275\u0275restoreView(_r2);let ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2._emitSelectAllBooleanToParent($event.checked))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r2=\u0275\u0275nextContext();\u0275\u0275property("color",ctx_r2.matFormField==null?null:ctx_r2.matFormField.color)("checked",ctx_r2.toggleAllCheckboxChecked)("indeterminate",ctx_r2.toggleAllCheckboxIndeterminate)("matTooltip",ctx_r2.toggleAllCheckboxTooltipMessage)("matTooltipPosition",ctx_r2.toggleAllCheckboxTooltipPosition)}}function MatSelectSearchComponent_mat_spinner_7_Template(rf,ctx){rf&1&&\u0275\u0275element(0,"mat-spinner",13)}function MatSelectSearchComponent_button_8_ng_content_1_Template(rf,ctx){rf&1&&\u0275\u0275projection(0,1,["*ngIf","clearIcon; else defaultIcon"])}function MatSelectSearchComponent_button_8_ng_template_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-icon",16),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r2=\u0275\u0275nextContext(2);\u0275\u0275property("svgIcon",ctx_r2.closeSvgIcon),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",ctx_r2.closeSvgIcon?null:ctx_r2.closeIcon," ")}}function MatSelectSearchComponent_button_8_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",14),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r4);let ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2._reset(!0))}),\u0275\u0275template(1,MatSelectSearchComponent_button_8_ng_content_1_Template,1,0,"ng-content",15)(2,MatSelectSearchComponent_button_8_ng_template_2_Template,2,2,"ng-template",null,2,\u0275\u0275templateRefExtractor),\u0275\u0275elementEnd()}if(rf&2){let defaultIcon_r5=\u0275\u0275reference(3),ctx_r2=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r2.clearIcon)("ngIfElse",defaultIcon_r5)}}function MatSelectSearchComponent_div_11_ng_content_1_Template(rf,ctx){rf&1&&\u0275\u0275projection(0,2,["*ngIf","noEntriesFound; else defaultNoEntriesFound"])}function MatSelectSearchComponent_div_11_ng_template_2_Template(rf,ctx){if(rf&1&&\u0275\u0275text(0),rf&2){let ctx_r2=\u0275\u0275nextContext(2);\u0275\u0275textInterpolate(ctx_r2.noEntriesFoundLabel)}}function MatSelectSearchComponent_div_11_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",17),\u0275\u0275template(1,MatSelectSearchComponent_div_11_ng_content_1_Template,1,0,"ng-content",15)(2,MatSelectSearchComponent_div_11_ng_template_2_Template,1,1,"ng-template",null,3,\u0275\u0275templateRefExtractor),\u0275\u0275elementEnd()),rf&2){let defaultNoEntriesFound_r6=\u0275\u0275reference(3),ctx_r2=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r2.noEntriesFound)("ngIfElse",defaultNoEntriesFound_r6)}}var MatSelectSearchClearDirective=(()=>{class MatSelectSearchClearDirective2{}return MatSelectSearchClearDirective2.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||MatSelectSearchClearDirective2)},MatSelectSearchClearDirective2.\u0275dir=\u0275\u0275defineDirective({type:MatSelectSearchClearDirective2,selectors:[["","ngxMatSelectSearchClear",""]]}),MatSelectSearchClearDirective2})(),configurableDefaultOptions=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],MAT_SELECTSEARCH_DEFAULT_OPTIONS=new InjectionToken("mat-selectsearch-default-options"),MatSelectNoEntriesFoundDirective=(()=>{class MatSelectNoEntriesFoundDirective2{}return MatSelectNoEntriesFoundDirective2.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||MatSelectNoEntriesFoundDirective2)},MatSelectNoEntriesFoundDirective2.\u0275dir=\u0275\u0275defineDirective({type:MatSelectNoEntriesFoundDirective2,selectors:[["","ngxMatSelectNoEntriesFound",""]]}),MatSelectNoEntriesFoundDirective2})(),MatSelectSearchComponent=(()=>{class MatSelectSearchComponent2{constructor(matSelect,changeDetectorRef,_viewportRuler,matOption,matFormField,defaultOptions2){this.matSelect=matSelect,this.changeDetectorRef=changeDetectorRef,this._viewportRuler=_viewportRuler,this.matOption=matOption,this.matFormField=matFormField,this.placeholderLabel="Suche",this.type="text",this.closeIcon="close",this.noEntriesFoundLabel="Keine Optionen gefunden",this.clearSearchInput=!0,this.searching=!1,this.disableInitialFocus=!1,this.enableClearOnEscapePressed=!1,this.preventHomeEndKeyPropagation=!1,this.disableScrollToActiveOnOptionsChanged=!1,this.ariaLabel="dropdown search",this.showToggleAllCheckbox=!1,this.toggleAllCheckboxChecked=!1,this.toggleAllCheckboxIndeterminate=!1,this.toggleAllCheckboxTooltipMessage="",this.toggleAllCheckboxTooltipPosition="below",this.hideClearSearchButton=!1,this.alwaysRestoreSelectedOptionsMulti=!1,this.recreateValuesArray=!1,this.toggleAll=new EventEmitter,this.onTouched=_=>{},this._options$=new BehaviorSubject(null),this.optionsList$=this._options$.pipe(switchMap(_options=>_options?_options.changes.pipe(map(options=>options.toArray()),startWith(_options.toArray())):of(null))),this.optionsLength$=this.optionsList$.pipe(map(options=>options?options.length:0)),this._formControl=new FormControl("",{nonNullable:!0}),this._showNoEntriesFound$=combineLatest([this._formControl.valueChanges,this.optionsLength$]).pipe(map(([value,optionsLength])=>!!(this.noEntriesFoundLabel&&value&&optionsLength===this.getOptionsLengthOffset()))),this._onDestroy=new Subject,this.applyDefaultOptions(defaultOptions2)}get value(){return this._formControl.value}set _options(_options){this._options$.next(_options)}get _options(){return this._options$.getValue()}applyDefaultOptions(defaultOptions2){if(defaultOptions2)for(let key of configurableDefaultOptions)defaultOptions2.hasOwnProperty(key)&&(this[key]=defaultOptions2[key])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("role","presentation")):console.error("<ngx-mat-select-search> must be placed inside a <mat-option> element"),this.matSelect.openedChange.pipe(delay(1),takeUntil(this._onDestroy)).subscribe(opened=>{opened?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(take(1),switchMap(_=>{this._options=this.matSelect.options;let previousFirstOption=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(tap(()=>{setTimeout(()=>{let options=this._options.toArray(),currentFirstOption=options[this.getOptionsLengthOffset()],keyManager=this.matSelect._keyManager;keyManager&&this.matSelect.panelOpen&¤tFirstOption&&((!previousFirstOption||!this.matSelect.compareWith(previousFirstOption.value,currentFirstOption.value)||!keyManager.activeItem||!options.find(option=>this.matSelect.compareWith(option.value,keyManager.activeItem?.value)))&&keyManager.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),previousFirstOption=currentFirstOption})}))})).pipe(takeUntil(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(takeUntil(this._onDestroy)).subscribe(showNoEntriesFound=>{this.matOption&&(showNoEntriesFound?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(takeUntil(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(takeUntil(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(state){this.toggleAll.emit(state)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(event2){(event2.key&&event2.key.length===1||this.preventHomeEndKeyPropagation&&(event2.key==="Home"||event2.key==="End"))&&event2.stopPropagation(),this.matSelect.multiple&&event2.key&&event2.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&event2.key==="Escape"&&this.value&&(this._reset(!0),event2.stopPropagation())}_handleKeyup(event2){if(event2.key==="ArrowUp"||event2.key==="ArrowDown"){let ariaActiveDescendantId=this.matSelect._getAriaActiveDescendant(),index=this._options.toArray().findIndex(item=>item.id===ariaActiveDescendantId);index!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[index]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",ariaActiveDescendantId))}}writeValue(value){this._lastExternalInputValue=value,this._formControl.setValue(value),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(fn2){this._formControl.valueChanges.pipe(filter(value=>value!==this._lastExternalInputValue),tap(()=>this._lastExternalInputValue=void 0),takeUntil(this._onDestroy)).subscribe(fn2)}registerOnTouched(fn2){this.onTouched=fn2}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let panel=this.matSelect.panel.nativeElement,scrollTop=panel.scrollTop;this.searchSelectInput.nativeElement.focus(),panel.scrollTop=scrollTop}_reset(focus){this._formControl.setValue(""),focus&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges&&this.matSelect.ngControl.valueChanges.pipe(takeUntil(this._onDestroy)).subscribe(values=>{let restoreSelectedValues=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!values||!Array.isArray(values))&&(values=[]);let optionValues=this.matSelect.options.map(option=>option.value);this.previousSelectedValues.forEach(previousValue=>{!values.some(v=>this.matSelect.compareWith(v,previousValue))&&!optionValues.some(v=>this.matSelect.compareWith(v,previousValue))&&(this.recreateValuesArray?values=[...values,previousValue]:values.push(previousValue),restoreSelectedValues=!0)})}this.previousSelectedValues=values,restoreSelectedValues&&this.matSelect._onChange(values)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let element=this.innerSelectSearch.nativeElement,panelElement=null;for(;element&&element.parentElement;)if(element=element.parentElement,element.classList.contains("mat-select-panel")){panelElement=element;break}panelElement&&(this.innerSelectSearch.nativeElement.style.width=panelElement.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}}return MatSelectSearchComponent2.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||MatSelectSearchComponent2)(\u0275\u0275directiveInject(MatSelect),\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(ViewportRuler),\u0275\u0275directiveInject(MatOption,8),\u0275\u0275directiveInject(MatFormField,8),\u0275\u0275directiveInject(MAT_SELECTSEARCH_DEFAULT_OPTIONS,8))},MatSelectSearchComponent2.\u0275cmp=\u0275\u0275defineComponent({type:MatSelectSearchComponent2,selectors:[["ngx-mat-select-search"]],contentQueries:function(rf,ctx,dirIndex){if(rf&1&&(\u0275\u0275contentQuery(dirIndex,MatSelectSearchClearDirective,5),\u0275\u0275contentQuery(dirIndex,MatSelectNoEntriesFoundDirective,5)),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.clearIcon=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.noEntriesFound=_t.first)}},viewQuery:function(rf,ctx){if(rf&1&&(\u0275\u0275viewQuery(_c013,7,ElementRef),\u0275\u0275viewQuery(_c14,7,ElementRef)),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.searchSelectInput=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.innerSelectSearch=_t.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti",recreateValuesArray:"recreateValuesArray"},outputs:{toggleAll:"toggleAll"},features:[\u0275\u0275ProvidersFeature([{provide:NG_VALUE_ACCESSOR,useExisting:forwardRef(()=>MatSelectSearchComponent2),multi:!0}])],ngContentSelectors:_c32,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["defaultIcon",""],["defaultNoEntriesFound",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],[1,"mat-select-search-inner-row"],["class","mat-select-search-toggle-all-checkbox","matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",3,"color","checked","indeterminate","matTooltip","matTooltipPosition","change",4,"ngIf"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["class","mat-select-search-spinner","diameter","16",4,"ngIf"],["mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["class","mat-select-search-no-entries-found",4,"ngIf"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[4,"ngIf","ngIfElse"],[3,"svgIcon"],[1,"mat-select-search-no-entries-found"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275projectionDef(_c23),\u0275\u0275element(0,"input",4),\u0275\u0275elementStart(1,"div",5,0)(3,"div",6),\u0275\u0275template(4,MatSelectSearchComponent_mat_checkbox_4_Template,1,5,"mat-checkbox",7),\u0275\u0275elementStart(5,"input",8,1),\u0275\u0275listener("keydown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._handleKeydown($event))})("keyup",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx._handleKeyup($event))})("blur",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.onBlur())}),\u0275\u0275elementEnd(),\u0275\u0275template(7,MatSelectSearchComponent_mat_spinner_7_Template,1,0,"mat-spinner",9)(8,MatSelectSearchComponent_button_8_Template,4,2,"button",10),\u0275\u0275projection(9),\u0275\u0275elementEnd(),\u0275\u0275element(10,"mat-divider"),\u0275\u0275elementEnd(),\u0275\u0275template(11,MatSelectSearchComponent_div_11_Template,4,2,"div",11),\u0275\u0275pipe(12,"async")}rf&2&&(\u0275\u0275advance(),\u0275\u0275property("ngClass",\u0275\u0275pureFunction2(11,_c4,ctx.matSelect.multiple,ctx._isToggleAllCheckboxVisible())),\u0275\u0275advance(3),\u0275\u0275property("ngIf",ctx._isToggleAllCheckboxVisible()),\u0275\u0275advance(),\u0275\u0275property("type",ctx.type)("formControl",ctx._formControl)("placeholder",ctx.placeholderLabel),\u0275\u0275attribute("aria-label",ctx.ariaLabel),\u0275\u0275advance(2),\u0275\u0275property("ngIf",ctx.searching),\u0275\u0275advance(),\u0275\u0275property("ngIf",!ctx.hideClearSearchButton&&ctx.value&&!ctx.searching),\u0275\u0275advance(3),\u0275\u0275property("ngIf",\u0275\u0275pipeBind1(12,9,ctx._showNoEntriesFound$)))},dependencies:[NgClass,NgIf,DefaultValueAccessor,NgControlStatus,FormControlDirective,MatIconButton,MatCheckbox,MatIcon,MatProgressSpinner,MatTooltip,MatDivider,AsyncPipe],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-select-panel-background-color)}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-select-panel-background-color);padding:0 44px 0 16px;height:calc(3em - 1px);line-height:calc(3em - 1px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-input[_ngcontent-%COMP%]::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mat-select-search-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0}),MatSelectSearchComponent2})();var NgxMatSelectSearchModule=(()=>{class NgxMatSelectSearchModule2{}return NgxMatSelectSearchModule2.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||NgxMatSelectSearchModule2)},NgxMatSelectSearchModule2.\u0275mod=\u0275\u0275defineNgModule({type:NgxMatSelectSearchModule2}),NgxMatSelectSearchModule2.\u0275inj=\u0275\u0275defineInjector({imports:[CommonModule,ReactiveFormsModule,MatButtonModule,MatCheckboxModule,MatIconModule,MatProgressSpinnerModule,MatTooltipModule,MatDividerModule]}),NgxMatSelectSearchModule2})();function AgentOrAssetSelectComponent_Case_0_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function AgentOrAssetSelectComponent_Case_0_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",10),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r2),\u0275\u0275nextContext();let previewAgentSelect_r3=\u0275\u0275reference(5);return \u0275\u0275resetView(previewAgentSelect_r3.open())}),\u0275\u0275template(1,AgentOrAssetSelectComponent_Case_0_ng_container_1_Template,1,0,"ng-container",11),\u0275\u0275elementEnd()}if(rf&2){\u0275\u0275nextContext();let buttonContent_r4=\u0275\u0275reference(14);\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",buttonContent_r4)}}function AgentOrAssetSelectComponent_Case_1_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function AgentOrAssetSelectComponent_Case_1_Template(rf,ctx){if(rf&1){let _r5=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",12),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r5),\u0275\u0275nextContext();let previewAgentSelect_r3=\u0275\u0275reference(5);return \u0275\u0275resetView(previewAgentSelect_r3.open())}),\u0275\u0275template(1,AgentOrAssetSelectComponent_Case_1_ng_container_1_Template,1,0,"ng-container",11),\u0275\u0275elementEnd()}if(rf&2){\u0275\u0275nextContext();let buttonContent_r4=\u0275\u0275reference(14);\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",buttonContent_r4)}}function AgentOrAssetSelectComponent_Case_2_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function AgentOrAssetSelectComponent_Case_2_Template(rf,ctx){if(rf&1){let _r6=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",13),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r6),\u0275\u0275nextContext();let previewAgentSelect_r3=\u0275\u0275reference(5);return \u0275\u0275resetView(previewAgentSelect_r3.open())}),\u0275\u0275template(1,AgentOrAssetSelectComponent_Case_2_ng_container_1_Template,1,0,"ng-container",11),\u0275\u0275elementEnd()}if(rf&2){\u0275\u0275nextContext();let buttonContent_r4=\u0275\u0275reference(14);\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",buttonContent_r4)}}function AgentOrAssetSelectComponent_Case_3_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function AgentOrAssetSelectComponent_Case_3_Template(rf,ctx){if(rf&1){let _r7=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",14),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r7),\u0275\u0275nextContext();let previewAgentSelect_r3=\u0275\u0275reference(5);return \u0275\u0275resetView(previewAgentSelect_r3.open())}),\u0275\u0275template(1,AgentOrAssetSelectComponent_Case_3_ng_container_1_Template,1,0,"ng-container",11),\u0275\u0275elementEnd()}if(rf&2){\u0275\u0275nextContext();let buttonContent_r4=\u0275\u0275reference(14);\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",buttonContent_r4)}}function AgentOrAssetSelectComponent_Conditional_10_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",9),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()),rf&2){let ctx_r7=\u0275\u0275nextContext();\u0275\u0275property("value",ctx_r7.noneValue),\u0275\u0275advance(),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2,2,"NONE"))}}function AgentOrAssetSelectComponent_For_12_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",9),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let option_r9=ctx.$implicit;\u0275\u0275property("value",option_r9.publicId),\u0275\u0275advance(),\u0275\u0275textInterpolate(option_r9.name)}}function AgentOrAssetSelectComponent_ng_template_13_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"span"),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r7=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r7.selectedOption.name)}}function AgentOrAssetSelectComponent_ng_template_13_Conditional_1_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"span",15),\u0275\u0275text(1,"SELECT_DEVICE_FOR_PREVIEW"),\u0275\u0275elementEnd())}function AgentOrAssetSelectComponent_ng_template_13_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,AgentOrAssetSelectComponent_ng_template_13_Conditional_0_Template,2,1,"span")(1,AgentOrAssetSelectComponent_ng_template_13_Conditional_1_Template,2,0,"span",15),rf&2){let ctx_r7=\u0275\u0275nextContext();\u0275\u0275conditional(ctx_r7.selectedOption?0:1)}}var AgentOrAssetSelectComponent=(()=>{let _AgentOrAssetSelectComponent=class _AgentOrAssetSelectComponent{constructor(cdRef){this.cdRef=cdRef,this.addNoneValue=!1,this.optionSelected=new EventEmitter,this.filteredOptions=[],this.queryFormControl=new FormControl("",{nonNullable:!0}),this.selectedFormControl=new FormControl(null),this.destroy=inject(DestroyRef)}ngOnInit(){this.queryFormControl.valueChanges.pipe(debounceTime(150),takeUntilDestroyed(this.destroy)).subscribe(value=>{this.filterAgents(value),this.cdRef.markForCheck()})}ngOnChanges(changes){changes.options&&this.filterAgents(this.queryFormControl.value),changes.selectedOption&&this.selectedFormControl.patchValue(this.selectedOption?.publicId||null)}filterAgents(query){query?this.filteredOptions=this.options.filter(option=>option.name?.toLowerCase().includes(query.toLowerCase())):this.filteredOptions=this.options}handleClosed(){let publicId=this.selectedFormControl.value;publicId&&this.optionSelected.emit(publicId)}};_AgentOrAssetSelectComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AgentOrAssetSelectComponent)(\u0275\u0275directiveInject(ChangeDetectorRef))},_AgentOrAssetSelectComponent.\u0275cmp=\u0275\u0275defineComponent({type:_AgentOrAssetSelectComponent,selectors:[["ix-agent-or-asset-select"]],inputs:{options:"options",matButtonType:"matButtonType",selectedOption:"selectedOption",addNoneValue:"addNoneValue",noneValue:"noneValue"},outputs:{optionSelected:"optionSelected"},features:[\u0275\u0275NgOnChangesFeature],decls:15,vars:10,consts:[["previewAgentSelect",""],["buttonContent",""],["mat-stroked-button","",1,"select-button"],["mat-flat-button","",1,"select-button"],["mat-raised-button","",1,"select-button"],["mat-button","",1,"select-button"],["panelClass","agent-or-asset-select-panel","disableRipple","","disableOptionCentering","",3,"closed","formControl"],[1,"search-option"],[3,"formControl","placeholderLabel","noEntriesFoundLabel"],[3,"value"],["mat-stroked-button","",1,"select-button",3,"click"],[4,"ngTemplateOutlet"],["mat-flat-button","",1,"select-button",3,"click"],["mat-raised-button","",1,"select-button",3,"click"],["mat-button","",1,"select-button",3,"click"],["translate",""]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275template(0,AgentOrAssetSelectComponent_Case_0_Template,2,1,"button",2)(1,AgentOrAssetSelectComponent_Case_1_Template,2,1,"button",3)(2,AgentOrAssetSelectComponent_Case_2_Template,2,1,"button",4)(3,AgentOrAssetSelectComponent_Case_3_Template,2,1,"button",5),\u0275\u0275elementStart(4,"mat-select",6,0),\u0275\u0275listener("closed",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.handleClosed())}),\u0275\u0275elementStart(6,"mat-option",7),\u0275\u0275element(7,"ngx-mat-select-search",8),\u0275\u0275pipe(8,"translate"),\u0275\u0275pipe(9,"translate"),\u0275\u0275elementEnd(),\u0275\u0275template(10,AgentOrAssetSelectComponent_Conditional_10_Template,3,4,"mat-option",9),\u0275\u0275repeaterCreate(11,AgentOrAssetSelectComponent_For_12_Template,2,2,"mat-option",9,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd(),\u0275\u0275template(13,AgentOrAssetSelectComponent_ng_template_13_Template,2,1,"ng-template",null,1,\u0275\u0275templateRefExtractor)}if(rf&2){let tmp_2_0;\u0275\u0275conditional((tmp_2_0=ctx.matButtonType)==="stroked"?0:tmp_2_0==="flat"?1:tmp_2_0==="raised"?2:3),\u0275\u0275advance(4),\u0275\u0275property("formControl",ctx.selectedFormControl),\u0275\u0275advance(3),\u0275\u0275property("formControl",ctx.queryFormControl)("placeholderLabel",\u0275\u0275pipeBind1(8,6,"SEARCH"))("noEntriesFoundLabel",\u0275\u0275pipeBind1(9,8,"NO_RESULTS_FOUND")),\u0275\u0275advance(3),\u0275\u0275conditional(ctx.addNoneValue?10:-1),\u0275\u0275advance(),\u0275\u0275repeater(ctx.filteredOptions)}},dependencies:[NgTemplateOutlet,NgControlStatus,FormControlDirective,TranslateDirective,MatOption,MatButton,MatSelect,MatSelectSearchComponent,TranslatePipe],styles:['[_nghost-%COMP%]{position:relative}[_nghost-%COMP%] .select-button[_ngcontent-%COMP%]{padding-left:8px;padding-right:24px!important;position:relative;max-width:100%;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .select-button[_ngcontent-%COMP%] .mdc-button__label :after{content:"";position:absolute;top:50%;right:8px;margin-top:-2px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid var(--body-color)}[_nghost-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]{opacity:0;position:absolute;top:32px;left:0;font-size:14px;font-weight:400}'],changeDetection:0});let AgentOrAssetSelectComponent3=_AgentOrAssetSelectComponent;return AgentOrAssetSelectComponent3})();var AgentOrAssetSelectModule=(()=>{let _AgentOrAssetSelectModule=class _AgentOrAssetSelectModule{};_AgentOrAssetSelectModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AgentOrAssetSelectModule)},_AgentOrAssetSelectModule.\u0275mod=\u0275\u0275defineNgModule({type:_AgentOrAssetSelectModule}),_AgentOrAssetSelectModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule,NgxMatSelectSearchModule]});let AgentOrAssetSelectModule2=_AgentOrAssetSelectModule;return AgentOrAssetSelectModule2})();function getLicenceTitle(usageType,licenceModel,sectorId){switch(usageType){case"agent-registration-profile":return"Device Registration Profiles";case"alarming":return licenceModel==="modules"?"Alarming":"Cloud Notify";case"api-integrations":return"API Integrations";case"app-engine-level-1":return"App Engine UI Components";case"app-engine-level-2":return"App Engine Cloud Functions";case"advanced-user-management":case"asset-management":case"card-view":case"connection-monitoring":case"custom-domain":case"custom-fields":case"landing-page":case"live-data":case"main-pages":case"remote-access":case"request-access":case"subgroups":case"temporary-access":return startCase_default(usageType);case"custom-branding":return"White-Labelling";case"custom-legal":return"Legal";case"custom-sso":return"Custom SSO";case"ixagent":return"Device Activation";case"logging":return licenceModel==="modules"&§orId!=="wYWd69AiJakk"?"Data Studio":"Cloud Logging";case"m2m-cloud-cluster":return"M2M Cloud Cluster";case"mobile-app":return licenceModel==="modules"?"White-Labelled Smartphone App":"White Label App maintenance";case"mqtt-device":return"MQTT device";case"object-storage":return"File Storage";case"premium-branding":return"White Label Premium";case"reporting":return"Report Generator";case"sla":return"Service Level Agreement";case"vpn-access-rule":return"LAN Access Management";case"vpn-usage":return"VPN Usage";default:return usageType}}var ObjectStorageBrokerDirective=(()=>{let _ObjectStorageBrokerDirective=class _ObjectStorageBrokerDirective{get scope(){return this.scopeRef?.value}constructor(scopeRef,storageProxy,serviceFactory,facade,features2,snackbar,translate){this.scopeRef=scopeRef,this.storageProxy=storageProxy,this.serviceFactory=serviceFactory,this.facade=facade,this.features=features2,this.snackbar=snackbar,this.translate=translate,this.ngUnsubscribe=new Subject}ngOnInit(){this.storageProxy.onGetList(this.scope).pipe(takeUntil(this.ngUnsubscribe),switchMap(e=>this.callService(e,s2=>s2.getList(e.detail.options)))).subscribe(([detail,result])=>{this.storageProxy.emitResult(result,ObjectStorageClientProxyEventType.GetListResult,detail.clientRef,this.scope)}),this.storageProxy.onGetBlob(this.scope).pipe(takeUntil(this.ngUnsubscribe),switchMap(e=>this.callService(e,s2=>s2.getBlob(e.detail.objectMeta,e.detail.options)))).subscribe(([detail,result])=>{this.storageProxy.emitResult(result,ObjectStorageClientProxyEventType.GetBlobResult,detail.clientRef,this.scope)}),this.storageProxy.onDelete(this.scope).pipe(takeUntil(this.ngUnsubscribe),switchMap(e=>this.callService(e,s2=>s2.delete(e.detail.objectMeta,e.detail.options)))).subscribe(([detail,result])=>{this.storageProxy.emitResult(result,ObjectStorageClientProxyEventType.DeleteResult,detail.clientRef,this.scope)}),this.storageProxy.onStore(this.scope).pipe(takeUntil(this.ngUnsubscribe),switchMap(e=>{if(!this.features.instantCanUse("object-storage")){let message=this.translate.instant("__TEXT__.LICENSE_REQUIRED",{name:getLicenceTitle("object-storage")});return this.snackbar.open(message,void 0,{duration:4e3}),this.storageProxy.emitResult(message,ObjectStorageClientProxyEventType.Error,e.detail.clientRef,this.scope),EMPTY}return this.callService(e,s2=>s2.store(e.detail.object,e.detail.options))})).subscribe(([detail,result])=>{this.storageProxy.emitResult(result,ObjectStorageClientProxyEventType.StoreResult,detail.clientRef,this.scope)})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}callService(event2,func){return combineLatest([this.facade.resolveTemplateFromPageComponent(event2.detail.pageComponentId),this._agentOrAssetResLink()]).pipe(take(1),switchMap(([templateId,agentOrAssetResLink])=>from(func(this.serviceFactory.createService(agentOrAssetResLink,templateId)))),catchError(err=>(this.storageProxy.emitResult(err,ObjectStorageClientProxyEventType.Error,event2.detail.clientRef,this.scope),EMPTY)),map(result=>[event2.detail,result]))}_agentOrAssetResLink(){return this.facade.findAgentAndAsset(of(this.agentOrAssetId||null)).pipe(map(value=>value[0]?{publicId:value[0]?.publicId,reference:{name:"Agent"}}:value[1]?{publicId:value[1]?.publicId,reference:{name:"Asset"}}:null))}};_ObjectStorageBrokerDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ObjectStorageBrokerDirective)(\u0275\u0275directiveInject(ComponentGridScopeDirective,8),\u0275\u0275directiveInject(ObjectStorageProxyService),\u0275\u0275directiveInject(ObjectStorageServiceFactory),\u0275\u0275directiveInject(BackendComponentBrokerFacade),\u0275\u0275directiveInject(PlatformFeaturesService),\u0275\u0275directiveInject(MatSnackBar),\u0275\u0275directiveInject(TranslateService))},_ObjectStorageBrokerDirective.\u0275dir=\u0275\u0275defineDirective({type:_ObjectStorageBrokerDirective,selectors:[["","ixObjectStorageBroker",""]],inputs:{agentOrAssetId:"agentOrAssetId"}});let ObjectStorageBrokerDirective3=_ObjectStorageBrokerDirective;return ObjectStorageBrokerDirective3})();var MAX_FILE_SIZE=1e7;function readFile(file,output){return new Observable(subscriber=>{let reader=createFileReader();reader.addEventListener("abort",onAbort),reader.addEventListener("error",onError),reader.addEventListener("load",onLoad),reader.addEventListener("progress",onProgress);let method=`readAs${upperFirst_default(output)}`;return reader[method]&&reader[method](file),()=>{reader.removeEventListener("abort",onAbort),reader.removeEventListener("error",onError),reader.removeEventListener("load",onLoad),reader.removeEventListener("progress",onProgress)};function onAbort(event2){subscriber.next({event:event2}),subscriber.complete()}function onProgress(event2){subscriber.next({event:event2})}function onError(event2){subscriber.error(event2),subscriber.complete()}function onLoad(event2){subscriber.next({event:event2,result:reader.result||void 0}),subscriber.complete()}})}function createFileReader(){let reader=new FileReader;return reader._realReader?reader._realReader:reader}function readFileAsDataURL(file){return readFile(file,"dataURL")}function getFileFromEvent(event2){let file;return file=get_default(event2,"target.files[0]",null),file||(file=get_default(event2,"dataTransfer.files[0]",null)),file}function mapMimeTypeToIcon(type2){if(type2.startsWith("image/"))return"image";if(type2.startsWith("audio/"))return"audio_file";if(type2.startsWith("video/"))return"video_file";switch(type2){case"application/x-cdf":return"audio_file";case"application/vnd.rar":case"application/x-7z-compressed":case"application/x-bzip":case"application/x-bzip2":case"application/x-freearc":case"application/x-tar":case"application/zip":case"application/gzip":return"folder_zip";case"application/pdf":return"picture_as_pdf";default:return"insert_drive_file"}}function getHeightAndWidthFromDataUrl(dataURL){return new Promise(resolve=>{let img=new Image;img.onload=()=>{resolve({height:img.height,width:img.width})},img.src=dataURL})}var _c014=["fileInput"],_c15=["*"];function FileUploadButtonComponent_Case_2_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function FileUploadButtonComponent_Case_2_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",8),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r2),\u0275\u0275nextContext();let fileInput_r3=\u0275\u0275reference(1);return \u0275\u0275resetView(fileInput_r3.click())}),\u0275\u0275template(1,FileUploadButtonComponent_Case_2_ng_container_1_Template,1,0,"ng-container",9),\u0275\u0275elementEnd()}if(rf&2){let ctx_r3=\u0275\u0275nextContext(),innerContent_r5=\u0275\u0275reference(8);\u0275\u0275property("color",ctx_r3.color),\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",innerContent_r5)}}function FileUploadButtonComponent_Case_3_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function FileUploadButtonComponent_Case_3_Template(rf,ctx){if(rf&1){let _r6=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",10),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r6),\u0275\u0275nextContext();let fileInput_r3=\u0275\u0275reference(1);return \u0275\u0275resetView(fileInput_r3.click())}),\u0275\u0275template(1,FileUploadButtonComponent_Case_3_ng_container_1_Template,1,0,"ng-container",9),\u0275\u0275elementEnd()}if(rf&2){let ctx_r3=\u0275\u0275nextContext(),innerContent_r5=\u0275\u0275reference(8);\u0275\u0275property("color",ctx_r3.color),\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",innerContent_r5)}}function FileUploadButtonComponent_Case_4_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function FileUploadButtonComponent_Case_4_Template(rf,ctx){if(rf&1){let _r7=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",11),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r7),\u0275\u0275nextContext();let fileInput_r3=\u0275\u0275reference(1);return \u0275\u0275resetView(fileInput_r3.click())}),\u0275\u0275template(1,FileUploadButtonComponent_Case_4_ng_container_1_Template,1,0,"ng-container",9),\u0275\u0275elementEnd()}if(rf&2){let ctx_r3=\u0275\u0275nextContext(),innerContent_r5=\u0275\u0275reference(8);\u0275\u0275property("color",ctx_r3.color),\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",innerContent_r5)}}function FileUploadButtonComponent_Case_5_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function FileUploadButtonComponent_Case_5_Template(rf,ctx){if(rf&1){let _r8=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",12),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r8),\u0275\u0275nextContext();let fileInput_r3=\u0275\u0275reference(1);return \u0275\u0275resetView(fileInput_r3.click())}),\u0275\u0275template(1,FileUploadButtonComponent_Case_5_ng_container_1_Template,1,0,"ng-container",9),\u0275\u0275elementEnd()}if(rf&2){\u0275\u0275nextContext();let innerContent_r5=\u0275\u0275reference(8);\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",innerContent_r5)}}function FileUploadButtonComponent_Case_6_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function FileUploadButtonComponent_Case_6_Template(rf,ctx){if(rf&1){let _r9=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",13),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r9),\u0275\u0275nextContext();let fileInput_r3=\u0275\u0275reference(1);return \u0275\u0275resetView(fileInput_r3.click())}),\u0275\u0275template(1,FileUploadButtonComponent_Case_6_ng_container_1_Template,1,0,"ng-container",9),\u0275\u0275elementEnd()}if(rf&2){let ctx_r3=\u0275\u0275nextContext(),innerContent_r5=\u0275\u0275reference(8);\u0275\u0275property("color",ctx_r3.color),\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",innerContent_r5)}}function FileUploadButtonComponent_ng_template_7_Template(rf,ctx){rf&1&&\u0275\u0275projection(0)}var FileUploadButtonComponent=(()=>{let _FileUploadButtonComponent=class _FileUploadButtonComponent{constructor(){this.color="primary",this.fileChange=new EventEmitter,this.snackBar=inject(MatSnackBar),this.translate=inject(TranslateService)}ngOnChanges(){this.label||(this.label=this.getDefaultLabel())}change(event2){return __async(this,null,function*(){let file=getFileFromEvent(event2);if(file){let{result:previewSrc}=yield firstValueFrom(readFileAsDataURL(file).pipe(filter(data=>data.event.type==="load")));if(file.type&&!this.isAllowedFileType(file.type)){let message=this.translate.instant("__MESSAGE__.INVALID_FILE_TYPE");this.snackBar.open(message,void 0,{duration:3e3}),this.clearFileInput(),this.fileChange.emit(null)}else if(file.size!==void 0&&!this.isAllowedFileSize(file.size)){let name=file.name,size=`${this.allowMaxFileSize/1e3/1e3}MB`,message=this.translate.instant("__MESSAGE__.MAX_FILE_SIZE",{name,size});this.snackBar.open(message,void 0,{duration:3e3}),this.clearFileInput(),this.fileChange.emit(null)}else if(this.imageSize&&this.isFileTypeImage(file)){let{height,width}=yield getHeightAndWidthFromDataUrl(previewSrc);if(this.isAllowedImageHeightAndWidth(height,width)){let actual=`${width} x ${height}px`,expected=`${this.imageSize?.width} x ${this.imageSize?.height}px`,message=this.translate.instant("__MESSAGE__.INVALID_IMAGE_SIZE",{actual,expected});this.snackBar.open(message,void 0,{duration:3e3}),this.clearFileInput(),this.fileChange.emit(null);return}else this.fileChange.emit({file,previewSrc})}else this.fileChange.emit({file,previewSrc})}else this.fileChange.emit(null)})}clearFileInput(){this.fileInputRef.nativeElement.value=null}getDefaultLabel(){return"Choose file"}isAllowedFileSize(fileSize){return fileSize<=this.allowMaxFileSize}isAllowedFileType(fileType){return this.allowedMimeTypes!==void 0?this.allowedMimeTypes.includes(fileType):!0}isAllowedImageHeightAndWidth(height,width){return this.imageSize===void 0?!0:!(this.imageSize.height===height&&this.imageSize.width===width)}isFileTypeImage(file){return file.type.includes("image")}get allowMaxFileSize(){return this.maxFileSize??MAX_FILE_SIZE}};_FileUploadButtonComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_FileUploadButtonComponent)},_FileUploadButtonComponent.\u0275cmp=\u0275\u0275defineComponent({type:_FileUploadButtonComponent,selectors:[["ix-file-upload-button"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(_c014,7),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.fileInputRef=_t.first)}},inputs:{allowedMimeTypes:"allowedMimeTypes",matButtonType:"matButtonType",color:"color",imageSize:"imageSize",label:"label",maxFileSize:"maxFileSize"},outputs:{fileChange:"fileChange"},standalone:!0,features:[\u0275\u0275NgOnChangesFeature,\u0275\u0275StandaloneFeature],ngContentSelectors:_c15,decls:9,vars:2,consts:[["fileInput",""],["innerContent",""],["type","file","hidden","","onclick","this.value = null",3,"change","accept"],["mat-raised-button","","type","button",3,"color"],["mat-stroked-button","","type","button",3,"color"],["mat-flat-button","","type","button",3,"color"],["mat-menu-item","","type","button"],["mat-button","","type","button",3,"color"],["mat-raised-button","","type","button",3,"click","color"],[4,"ngTemplateOutlet"],["mat-stroked-button","","type","button",3,"click","color"],["mat-flat-button","","type","button",3,"click","color"],["mat-menu-item","","type","button",3,"click"],["mat-button","","type","button",3,"click","color"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"input",2,0),\u0275\u0275listener("change",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.change($event))}),\u0275\u0275elementEnd(),\u0275\u0275template(2,FileUploadButtonComponent_Case_2_Template,2,2,"button",3)(3,FileUploadButtonComponent_Case_3_Template,2,2,"button",4)(4,FileUploadButtonComponent_Case_4_Template,2,2,"button",5)(5,FileUploadButtonComponent_Case_5_Template,2,1,"button",6)(6,FileUploadButtonComponent_Case_6_Template,2,2,"button",7)(7,FileUploadButtonComponent_ng_template_7_Template,1,0,"ng-template",null,1,\u0275\u0275templateRefExtractor)}if(rf&2){let tmp_3_0;\u0275\u0275property("accept",ctx.allowedMimeTypes),\u0275\u0275advance(2),\u0275\u0275conditional((tmp_3_0=ctx.matButtonType)==="raised"?2:tmp_3_0==="stroked"?3:tmp_3_0==="flat"?4:tmp_3_0==="menu"?5:6)}},dependencies:[NgTemplateOutlet,MatButtonModule,MatButton,MatFormFieldModule,MatMenuModule,MatMenuItem,MatSnackBarModule],styles:["[_nghost-%COMP%] .container[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%] .content[_ngcontent-%COMP%]{display:inline-block;margin:8px}[_nghost-%COMP%] input[type=file][_ngcontent-%COMP%]{appearance:initial;background-color:initial;cursor:default;align-items:baseline;color:inherit;text-align:start!important;padding:initial;border:initial}"],changeDetection:0});let FileUploadButtonComponent3=_FileUploadButtonComponent;return FileUploadButtonComponent3})();var PERIOD_SPEC_LIST=TIME_RANGE_OPTIONS.map(({code})=>code);var PeriodFieldsetModule=(()=>{let _PeriodFieldsetModule=class _PeriodFieldsetModule{};_PeriodFieldsetModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PeriodFieldsetModule)},_PeriodFieldsetModule.\u0275mod=\u0275\u0275defineNgModule({type:_PeriodFieldsetModule}),_PeriodFieldsetModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule]});let PeriodFieldsetModule2=_PeriodFieldsetModule;return PeriodFieldsetModule2})();var import_markdown_it=__toESM(require_markdown_it());var RenderMarkdownPipe=(()=>{let _RenderMarkdownPipe=class _RenderMarkdownPipe{constructor(){let md=new import_markdown_it.default({typographer:!0}),defaultRender=md.renderer.rules.link_open||function(tokens,idx,options,env,self2){return self2.renderToken(tokens,idx,options)};md.renderer.rules.link_open=function(tokens,idx,options,env,self2){return tokens[idx].attrPush(["target","_blank"]),defaultRender(tokens,idx,options,env,self2)},this.markdownIt=md}transform(value){return this.markdownIt.render(value||"")}};_RenderMarkdownPipe.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_RenderMarkdownPipe)},_RenderMarkdownPipe.\u0275pipe=\u0275\u0275definePipe({name:"renderMarkdown",type:_RenderMarkdownPipe,pure:!0});let RenderMarkdownPipe3=_RenderMarkdownPipe;return RenderMarkdownPipe3})();var MarkdownModule=(()=>{let _MarkdownModule=class _MarkdownModule{};_MarkdownModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_MarkdownModule)},_MarkdownModule.\u0275mod=\u0275\u0275defineNgModule({type:_MarkdownModule}),_MarkdownModule.\u0275inj=\u0275\u0275defineInjector({imports:[CommonModule]});let MarkdownModule2=_MarkdownModule;return MarkdownModule2})();var RawMetricInputFacade=(()=>{let _RawMetricInputFacade=class _RawMetricInputFacade{constructor(){this.store=inject(Store)}static groupAndSort(slugs){return orderBy_default(flatMap_default(groupBy_default(slugs,item=>item.groupSlug),(items,groupSlug)=>({items:orderBy_default(items,["label","asc"]),groupName:items[0]?.group||"",groupSlug})),["groupName","asc"])}selectorDataIsLoaded(field){return this._selectorDataIsLoaded(field,selectAllLoadedForAgent3)}selectors(target$,field){let allowedTypes=field.inputDescription.allowedTypes;return target$.pipe(withLatestFrom(this.store.select(selectEntity10(field.component.pageVersion?.publicId||null))),mergeMap(([target,version3])=>{if(target){if(target==="Agent#selected")return version3?.previewAgent?.publicId?this.selectorsForAgent(version3.previewAgent.publicId,target,allowedTypes):version3?.previewAsset?.publicId?this.selectorsForAsset(version3.previewAsset.publicId,target,allowedTypes):(console.error(new Error(`PageVersion${version3?"#"+version3.publicId:""} has no preview agent`)),of([]));{let agentId=target.slice(target.indexOf("#")+1);return this.selectorsForAgent(agentId,target,allowedTypes)}}else return EMPTY}),map(slugs=>_RawMetricInputFacade.groupAndSort(slugs)))}_selectorDataIsLoaded(field,isLoadedSelector){return this.store.select(selectEntity10(field.component.pageVersion?.publicId??null)).pipe(take(1),mergeMap(version3=>version3?.previewAgent?.publicId?this.store.select(isLoadedSelector(version3.previewAgent.publicId)):version3?.previewAsset?.publicId?this.store.select(selectEntity5(version3.previewAsset.publicId)).pipe(switchMap(asset=>asset?.agent?.publicId?this.store.select(isLoadedSelector(asset.agent.publicId)):of(!0))):of(!0)))}loadAgentDataTags(agentId){this.store.dispatch(ensureAll23({agentId,fields:AGENT_DATA_TAG_WITH_VARIABLE_LIST_FIELDS}))}selectorsForAgent(agentId,target,allowedTypes){return this.loadAgentDataTags(agentId),this._selectorsForAgent(agentId,target,selectAllForAgent3(agentId),{name:"tags",slug:"tag"},allowedTypes)}selectorsForAsset(assetId,target,allowedTypes){return this.store.select(selectEntity5(assetId)).pipe(switchMap(asset=>asset?.agent?.publicId?this.selectorsForAgent(asset.agent.publicId,target,allowedTypes):(console.error(new Error(`Asset#${assetId} has no linked agent`)),of([]))))}_selectorsForAgent(agentId,target,selectAll44,logType,allowedTypes){let typeAllowed=allowedTypes?.length?type2=>allowedTypes.some(t=>t===type2):()=>!0;return combineLatest([this.store.select(selectAll44).pipe(mergeMap(log2=>log2?of(log2):EMPTY)),this.store.select(selectEntities21),this.store.select(selectAllForAgent(agentId)).pipe(mergeMap(sources=>sources?of(sources):EMPTY))]).pipe(map(([logs,variableEntities,dataSources])=>logs.map(log2=>{let variableId="variable"in log2?log2.variable?.publicId:log2.publicId,variable=variableId?variableEntities[variableId]:void 0;return{log:log2,variable}}).filter(({variable})=>!variable?.internalUse&&!!variable?.forLogging&&typeAllowed(variable?.type)).map(({log:log2,variable})=>{let _escape=slug=>slug.replace(/[[\]]/g,"\\$&"),dataSource=dataSources.find(s2=>s2.publicId===log2.source?.publicId),pattern=new RegExp(_escape(dataSource?.slug||"")+"."+(logType.slug==="variable"?"(var|variable)":logType.slug)+"."+_escape(log2.slug??"")+"$");return{group:dataSource?.name||"",groupSlug:dataSource?.slug||"",label:log2.name||"",slug:log2.slug||"",value:target+":"+(dataSource?.slug||"")+"."+logType.slug+"."+log2.slug,pattern,variable}})))}};_RawMetricInputFacade.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_RawMetricInputFacade)},_RawMetricInputFacade.\u0275prov=\u0275\u0275defineInjectable({token:_RawMetricInputFacade,factory:_RawMetricInputFacade.\u0275fac,providedIn:"root"});let RawMetricInputFacade2=_RawMetricInputFacade;return RawMetricInputFacade2})();var SelectorDialogFacade=(()=>{let _SelectorDialogFacade=class _SelectorDialogFacade{constructor(){this.store=inject(Store)}hasPreviewAgent(pageVersionId){return this.store.select(selectEntity10(pageVersionId)).pipe(switchMap(pageVersion=>pageVersion?.previewAgent?of(!0):pageVersion?.previewAsset?this.store.select(selectEntity5(pageVersion.previewAsset.publicId)).pipe(map(asset=>!!asset?.agent)):of(!1)),distinctUntilChanged())}};_SelectorDialogFacade.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectorDialogFacade)},_SelectorDialogFacade.\u0275prov=\u0275\u0275defineInjectable({token:_SelectorDialogFacade,factory:_SelectorDialogFacade.\u0275fac,providedIn:"root"});let SelectorDialogFacade2=_SelectorDialogFacade;return SelectorDialogFacade2})();function SelectorDialogComponent_Conditional_3_For_10_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",10)(1,"span",1)(2,"span"),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"span",12),\u0275\u0275text(5),\u0275\u0275elementEnd()()()),rf&2){let selector_r1=ctx.$implicit;\u0275\u0275property("value",selector_r1.groupSlug),\u0275\u0275advance(3),\u0275\u0275textInterpolate(selector_r1.groupName),\u0275\u0275advance(2),\u0275\u0275textInterpolate(selector_r1.groupSlug)}}function SelectorDialogComponent_Conditional_3_Conditional_11_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function SelectorDialogComponent_Conditional_3_For_22_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",10)(1,"span",1)(2,"span"),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"span",12),\u0275\u0275text(5),\u0275\u0275elementEnd()()()),rf&2){let metricSelector_r2=ctx.$implicit;\u0275\u0275property("value",metricSelector_r2.slug),\u0275\u0275advance(3),\u0275\u0275textInterpolate(metricSelector_r2.label),\u0275\u0275advance(2),\u0275\u0275textInterpolate(metricSelector_r2.slug)}}function SelectorDialogComponent_Conditional_3_Conditional_23_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function SelectorDialogComponent_Conditional_3_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-form-field",3),\u0275\u0275element(1,"span",7),\u0275\u0275elementStart(2,"mat-label",5),\u0275\u0275text(3,"DATA_SOURCE"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"mat-select",8)(5,"mat-option"),\u0275\u0275element(6,"ngx-mat-select-search",9),\u0275\u0275pipe(7,"translate"),\u0275\u0275pipe(8,"translate"),\u0275\u0275elementEnd(),\u0275\u0275repeaterCreate(9,SelectorDialogComponent_Conditional_3_For_10_Template,6,3,"mat-option",10,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd(),\u0275\u0275template(11,SelectorDialogComponent_Conditional_3_Conditional_11_Template,2,0,"mat-error",5),\u0275\u0275elementEnd(),\u0275\u0275elementStart(12,"mat-form-field",3),\u0275\u0275element(13,"span",7),\u0275\u0275elementStart(14,"mat-label",5),\u0275\u0275text(15),\u0275\u0275elementEnd(),\u0275\u0275elementStart(16,"mat-select",11)(17,"mat-option"),\u0275\u0275element(18,"ngx-mat-select-search",9),\u0275\u0275pipe(19,"translate"),\u0275\u0275pipe(20,"translate"),\u0275\u0275elementEnd(),\u0275\u0275repeaterCreate(21,SelectorDialogComponent_Conditional_3_For_22_Template,6,3,"mat-option",10,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd(),\u0275\u0275template(23,SelectorDialogComponent_Conditional_3_Conditional_23_Template,2,0,"mat-error",5),\u0275\u0275elementEnd()),rf&2){let ctx_r2=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("innerHTML",ctx_r2.dataSourceInputMock,\u0275\u0275sanitizeHtml),\u0275\u0275advance(5),\u0275\u0275property("formControl",ctx_r2.dataSourceQueryFormControl)("placeholderLabel",\u0275\u0275pipeBind1(7,11,"SEARCH"))("noEntriesFoundLabel",\u0275\u0275pipeBind1(8,13,"NO_RESULTS_FOUND")),\u0275\u0275advance(3),\u0275\u0275repeater(ctx_r2.filteredDataSources),\u0275\u0275advance(2),\u0275\u0275conditional(ctx_r2.form.controls.dataSource.hasError("required")?11:-1),\u0275\u0275advance(2),\u0275\u0275property("innerHTML",ctx_r2.itemInputMock,\u0275\u0275sanitizeHtml),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r2.data.label),\u0275\u0275advance(3),\u0275\u0275property("formControl",ctx_r2.itemQueryFormControl)("placeholderLabel",\u0275\u0275pipeBind1(19,15,"SEARCH"))("noEntriesFoundLabel",\u0275\u0275pipeBind1(20,17,"NO_RESULTS_FOUND")),\u0275\u0275advance(3),\u0275\u0275repeater(ctx_r2.filteredItems),\u0275\u0275advance(2),\u0275\u0275conditional(ctx_r2.form.controls.item.hasError("required")?23:-1)}}function SelectorDialogComponent_Conditional_4_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",2)(1,"span",5),\u0275\u0275text(2,"NO_PREVIEW_DEVICE_SELECTED"),\u0275\u0275elementEnd()())}var SelectorDialogComponent=(()=>{let _SelectorDialogComponent=class _SelectorDialogComponent{constructor(){this.cdRef=inject(ChangeDetectorRef),this.destroy=inject(DestroyRef),this.dialogRef=inject(MatDialogRef),this.facade=inject(SelectorDialogFacade),this.data=inject(MAT_DIALOG_DATA),this.form=new FormGroup({dataSource:new FormControl("",{validators:[Validators.required],nonNullable:!0}),item:new FormControl({value:"",disabled:!0},{validators:[Validators.required],nonNullable:!0})}),this.dataSourceInputMock="",this.dataSourceQueryFormControl=new FormControl("",{nonNullable:!0}),this.filteredDataSources=[],this.filteredItems=[],this.itemInputMock="",this.itemQueryFormControl=new FormControl("",{nonNullable:!0})}ngOnInit(){this.facade.hasPreviewAgent(this.data.pageVersionId).pipe(takeUntilDestroyed(this.destroy)).subscribe(previewAgentSelected=>{this.previewAgentSelected=previewAgentSelected}),this.form.controls.dataSource.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>{this.setDatasourceInputMock(value)}),this.form.controls.item.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>{this.setItemInputMock(value)}),this.dataSourceQueryFormControl.valueChanges.pipe(debounceTime(100),takeUntilDestroyed(this.destroy)).subscribe(value=>{this.filteredDataSources=this.getFilteredDataSources(value),this.cdRef.markForCheck()}),this.itemQueryFormControl.valueChanges.pipe(debounceTime(100),takeUntilDestroyed(this.destroy)).subscribe(value=>{this.filteredItems=this.getFilteredItems(value),this.cdRef.markForCheck()}),this.setInitialFormValue(),this.filteredDataSources=this.data.selectors,this.filteredItems=this.data.selectors.find(selector3=>selector3.groupSlug===this.form.value.dataSource)?.items||[]}getFilteredDataSources(query){return query?this.data.selectors.filter(selector3=>{let lowerCaseQuery=query.toLowerCase(),label=deburr_default(selector3.groupName.toLowerCase()),slug=selector3.groupSlug.toLowerCase();if(label.includes(lowerCaseQuery)||slug.includes(lowerCaseQuery))return!0}):this.data.selectors}getFilteredItems(query){let items=this.data.selectors.find(selector3=>selector3.groupSlug===this.form.value.dataSource)?.items||[];return query?items.filter(item=>{let lowerCaseQuery=query.toLowerCase(),label=deburr_default(item.label.toLowerCase()),slug=item.slug.toLowerCase();if(label.includes(lowerCaseQuery)||slug.includes(lowerCaseQuery))return!0}):items}setDatasourceInputMock(value){this.dataSourceInputMock="";let datasource=this.data.selectors.find(selector3=>selector3.groupSlug===value);datasource&&(this.form.controls.item.enable(),this.dataSourceInputMock=`<span>${datasource.groupName}</span><span class="orange extra-margin-left">${datasource.groupSlug}</span>`,datasource?.items.find(item2=>item2.slug===this.form.value.item)||(this.itemInputMock="",this.form.controls.item.setValue(""),this.filteredItems=this.getFilteredItems(this.itemQueryFormControl.value))),this.cdRef.markForCheck()}setInitialFormValue(){let metric=this.data.formControl?.value?.split(".");metric[0]&&this.data.selectors.find(selector3=>selector3.groupSlug===metric[0])&&this.form.controls.dataSource.setValue(metric[0]),metric[2]&&this.data.selectors.find(selector3=>selector3.groupSlug===this.form.value.dataSource)?.items.find(item2=>item2.slug===metric[2])&&this.form.controls.item.setValue(metric[2])}setItemInputMock(value){this.itemInputMock="";let item=this.data.selectors.find(selector3=>selector3.groupSlug===this.form.value.dataSource)?.items.find(item2=>item2.slug===value);item&&(this.itemInputMock=`<span>${item.label}</span><span class="blue extra-margin-left">${item.slug}</span>`),this.cdRef.markForCheck()}submit(){let formValue=this.form.value,selectorType=this.data.label==="TAG"?"tag":"var";this.data.formControl.setValue(formValue.dataSource+`.${selectorType}.`+formValue.item),this.dialogRef.close()}};_SelectorDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectorDialogComponent)},_SelectorDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_SelectorDialogComponent,selectors:[["ix-selector-dialog"]],decls:13,vars:3,consts:[["autocomplete","off","fxLayout","column","fxFlex","",3,"ngSubmit","formGroup"],["fxLayout","column"],["fxFlex","","fxLayoutAlign","center center",1,"no-device-selected"],["fxFlex",""],["type","button","mat-button","","mat-dialog-close",""],["translate",""],["type","submit","mat-button","","color","primary",3,"disabled"],[1,"input-mock",3,"innerHTML"],["formControlName","dataSource","panelClass","select-datasource-selector-panel"],[3,"formControl","placeholderLabel","noEntriesFoundLabel"],[3,"value"],["formControlName","item","panelClass","select-datasource-selector-panel"],[1,"slug-label"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"form",0),\u0275\u0275listener("ngSubmit",function(){return ctx.submit()}),\u0275\u0275elementStart(1,"mat-dialog-content")(2,"div",1),\u0275\u0275template(3,SelectorDialogComponent_Conditional_3_Template,24,19)(4,SelectorDialogComponent_Conditional_4_Template,3,0,"div",2),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-dialog-actions"),\u0275\u0275element(6,"span",3),\u0275\u0275elementStart(7,"button",4)(8,"span",5),\u0275\u0275text(9,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(10,"button",6)(11,"span",5),\u0275\u0275text(12,"OK"),\u0275\u0275elementEnd()()()()),rf&2&&(\u0275\u0275property("formGroup",ctx.form),\u0275\u0275advance(3),\u0275\u0275conditional(ctx.previewAgentSelected?3:4),\u0275\u0275advance(7),\u0275\u0275property("disabled",ctx.form.pristine&&!ctx.form.valid))},dependencies:[DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,\u0275NgNoValidate,NgControlStatus,NgControlStatusGroup,FormControlDirective,FormGroupDirective,FormControlName,TranslateDirective,MatOption,MatButton,MatDialogClose,MatDialogActions,MatDialogContent,MatFormField,MatLabel,MatError,MatSelect,MatSelectSearchComponent,TranslatePipe],styles:["[_nghost-%COMP%]{display:block;min-width:448px;max-width:448px;min-height:170px}[_nghost-%COMP%] .mat-mdc-select[_ngcontent-%COMP%]{pointer-events:none}[_nghost-%COMP%] .mat-mdc-select[_ngcontent-%COMP%] .mat-mdc-select-value{visibility:hidden}[_nghost-%COMP%] .input-mock{width:100%;position:absolute;top:23px;left:0}[_nghost-%COMP%] .input-mock span{max-width:48%;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .input-mock .extra-margin-left{margin-left:8px}[_nghost-%COMP%] .input-mock .blue{color:#00569d}[_nghost-%COMP%] .input-mock .orange{color:#eb9b01}[_nghost-%COMP%] .no-device-selected[_ngcontent-%COMP%]{margin-top:25px} .mat-mdc-select-panel.select-datasource-selector-panel mat-option.mat-mdc-option{line-height:1em} .mat-mdc-select-panel.select-datasource-selector-panel mat-option.mat-mdc-option .slug-label{font-size:13px;color:#0000008a}"],changeDetection:0});let SelectorDialogComponent3=_SelectorDialogComponent;return SelectorDialogComponent3})();var TAG_SELECTOR_REGEX=/^([^\s]+)[.](tag)[.]([^\s]+)$/,VARIABLE_SELECTOR_REGEX=/^([^\s]+)[.](var|variable)[.]([^\s]+)$/;function createColoredInputMockSelector(value){let numberOfDots=value?.split(".").length,selectorInputMock="",[partOne,rest]=splitByFirstDot(value),[partTwo,partThree]=splitByFirstDot(rest);return partOne&&(selectorInputMock+=`<span class="orange">${partOne}</span>`),numberOfDots>1&&(selectorInputMock+="<span>.</span>"),partTwo&&(selectorInputMock+=`<span>${partTwo}</span>`),numberOfDots>2&&(selectorInputMock+="<span>.</span>"),partThree&&(selectorInputMock+=`<span class="blue">${partThree}</span>`),selectorInputMock}function splitByFirstDot(label){return label?.indexOf(".")>-1?[label.substring(0,label.indexOf(".")),label.substring(label.indexOf(".")+1)]:[label,""]}function createSelectorValidator(pattern){return control=>{let required=control.hasValidator(Validators.required),validator=Validators.pattern(pattern)(control);return required||control.value&&control.value!=="Agent#selected:"?validator:null}}var TagSelectorValidator=createSelectorValidator(TAG_SELECTOR_REGEX),VariableSelectorValidator=createSelectorValidator(VARIABLE_SELECTOR_REGEX);function SelectorInputComponent_Conditional_9_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",2),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}var SelectorInputComponent=(()=>{let _SelectorInputComponent=class _SelectorInputComponent{constructor(){this.dialog=inject(MatDialog),this.destroy=inject(DestroyRef),this.formControl=new FormControl("",{nonNullable:!0}),this.selectorInputFocused=!1,this.selectorInputMock=""}ngOnInit(){this.formControl.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>{this.selectorInputMock=createColoredInputMockSelector(value),this.selectorControl?.setValue("Agent#selected:"+value)});let validators=[];this.required&&validators.push(Validators.required),validators.push(this.label==="TAG"?TagSelectorValidator:VariableSelectorValidator),this.formControl?.setValidators(validators),this.selectorControl?.setValidators(validators),this.formControl.setValue(this.selectorControl?.value?.split(":")?.[1]||"")}ngOnChanges(changes){changes.disabled&&this.formControl[this.disabled?"disable":"enable"]()}openSelectorDialog(event2){event2.stopPropagation(),this.dialog.open(SelectorDialogComponent,{data:{formControl:this.formControl,label:this.label,pageVersionId:this.pageVersionId,selectors:this.selectors}})}};_SelectorInputComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectorInputComponent)},_SelectorInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_SelectorInputComponent,selectors:[["ix-selector-input"]],inputs:{label:"label",disabled:"disabled",required:"required",pageVersionId:"pageVersionId",selectorControl:"selectorControl",selectors:"selectors"},features:[\u0275\u0275NgOnChangesFeature],decls:10,vars:9,consts:[["fxFlex",""],[1,"selector-input-mock",3,"innerHTML"],["translate",""],["matInput","","autocomplete","off","spellcheck","false",1,"selector-input",3,"blur","focus","formControl"],["type","button","matIconSuffix","","mat-icon-button","",3,"click","disabled"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div")(1,"mat-form-field",0),\u0275\u0275element(2,"span",1),\u0275\u0275elementStart(3,"mat-label",2),\u0275\u0275text(4),\u0275\u0275elementEnd(),\u0275\u0275elementStart(5,"input",3),\u0275\u0275listener("blur",function(){return ctx.selectorInputFocused=!1})("focus",function(){return ctx.selectorInputFocused=!0}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(6,"button",4),\u0275\u0275listener("click",function($event){return ctx.openSelectorDialog($event)}),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"folder_open"),\u0275\u0275elementEnd()(),\u0275\u0275template(9,SelectorInputComponent_Conditional_9_Template,2,0,"mat-error",2),\u0275\u0275elementEnd()()),rf&2&&(\u0275\u0275advance(2),\u0275\u0275classProp("hidden",ctx.selectorInputFocused),\u0275\u0275property("innerHTML",ctx.selectorInputMock,\u0275\u0275sanitizeHtml),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx.label),\u0275\u0275advance(),\u0275\u0275classProp("hidden",!ctx.selectorInputFocused),\u0275\u0275property("formControl",ctx.formControl),\u0275\u0275advance(),\u0275\u0275property("disabled",ctx.disabled),\u0275\u0275advance(3),\u0275\u0275conditional(ctx.formControl.hasError("required")?9:-1))},dependencies:[DefaultFlexDirective,DefaultValueAccessor,NgControlStatus,FormControlDirective,TranslateDirective,MatIconButton,MatFormField,MatLabel,MatError,MatSuffix,MatIcon,MatInput],styles:["[_nghost-%COMP%] .selector-input[_ngcontent-%COMP%]{opacity:1}[_nghost-%COMP%] .selector-input.hidden[_ngcontent-%COMP%]{opacity:0}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix{padding:0 4px}[_nghost-%COMP%] .selector-input-mock{max-width:100%;opacity:1;overflow:hidden;pointer-events:none;position:absolute;text-overflow:ellipsis;white-space:nowrap}[_nghost-%COMP%] .selector-input-mock.hidden{opacity:0}[_nghost-%COMP%] .selector-input-mock .blue{color:#00569d}[_nghost-%COMP%] .selector-input-mock .orange{color:#eb9b01}"],changeDetection:0});let SelectorInputComponent3=_SelectorInputComponent;return SelectorInputComponent3})();var FormatConstantCaseDirective=(()=>{let _FormatConstantCaseDirective=class _FormatConstantCaseDirective{constructor(formControl){this.formControl=formControl,this.destroy=inject(DestroyRef)}ngOnInit(){this.formControl.control?.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>{let formattedValue=value?.toUpperCase().replace(/ /g,"_");this.formControl?.control&&formattedValue!==value&&this.formControl.control.patchValue(formattedValue,{emitEvent:!1})})}};_FormatConstantCaseDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_FormatConstantCaseDirective)(\u0275\u0275directiveInject(NgControl))},_FormatConstantCaseDirective.\u0275dir=\u0275\u0275defineDirective({type:_FormatConstantCaseDirective,selectors:[["","ixFormatConstantCase",""]]});let FormatConstantCaseDirective3=_FormatConstantCaseDirective;return FormatConstantCaseDirective3})();var FormatConstantCaseModule=(()=>{let _FormatConstantCaseModule=class _FormatConstantCaseModule{};_FormatConstantCaseModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_FormatConstantCaseModule)},_FormatConstantCaseModule.\u0275mod=\u0275\u0275defineNgModule({type:_FormatConstantCaseModule}),_FormatConstantCaseModule.\u0275inj=\u0275\u0275defineInjector({});let FormatConstantCaseModule2=_FormatConstantCaseModule;return FormatConstantCaseModule2})();var _forTrack0=($index,$item)=>$item.code;function TranslationFieldsetComponent_Conditional_5_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",2),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function TranslationFieldsetComponent_Conditional_6_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",2),\u0275\u0275text(1,"__MESSAGE__.INVALID_TRANSLATION_KEY"),\u0275\u0275elementEnd())}function TranslationFieldsetComponent_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",2),\u0275\u0275text(1,"__MESSAGE__.TRANSLATION_KEY_ALREADY_IN_USE"),\u0275\u0275elementEnd())}function TranslationFieldsetComponent_For_9_Conditional_1_Conditional_4_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",2),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function TranslationFieldsetComponent_For_9_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-form-field",1)(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275element(3,"textarea",4),\u0275\u0275template(4,TranslationFieldsetComponent_For_9_Conditional_1_Conditional_4_Template,2,0,"mat-error",2),\u0275\u0275elementEnd()),rf&2){let languageControl_r1=ctx,language_r2=\u0275\u0275nextContext().$implicit;\u0275\u0275advance(2),\u0275\u0275textInterpolate(language_r2.native),\u0275\u0275advance(),\u0275\u0275property("formControl",languageControl_r1),\u0275\u0275advance(),\u0275\u0275conditional(languageControl_r1.hasError("required")?4:-1)}}function TranslationFieldsetComponent_For_9_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div"),\u0275\u0275template(1,TranslationFieldsetComponent_For_9_Conditional_1_Template,5,3,"mat-form-field",1),\u0275\u0275elementEnd()),rf&2){let tmp_10_0,language_r2=ctx.$implicit,ctx_r2=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275conditional((tmp_10_0=ctx_r2.form.controls.languages.controls[language_r2.code])?1:-1,tmp_10_0)}}var TranslationFieldsetComponent=(()=>{let _TranslationFieldsetComponent=class _TranslationFieldsetComponent{};_TranslationFieldsetComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_TranslationFieldsetComponent)},_TranslationFieldsetComponent.\u0275cmp=\u0275\u0275defineComponent({type:_TranslationFieldsetComponent,selectors:[["ix-translation-fieldset"]],inputs:{form:"form",languages:"languages"},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:10,vars:4,consts:[["fxLayout","column","fxLayoutGap","16px"],["floatLabel","always","fxFlex","","appearance","fill"],["translate",""],["matInput","","cdkFocusInitial","","data-lpignore","true","ixFormatConstantCase","",3,"formControl"],["matInput","","data-lpignore","true","cdkTextareaAutosize","true","cdkAutosizeMinRows","1","cdkAutosizeMaxRows","15",3,"formControl"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-form-field",1)(2,"mat-label",2),\u0275\u0275text(3,"TRANSLATION_KEY"),\u0275\u0275elementEnd(),\u0275\u0275element(4,"input",3),\u0275\u0275template(5,TranslationFieldsetComponent_Conditional_5_Template,2,0,"mat-error",2)(6,TranslationFieldsetComponent_Conditional_6_Template,2,0,"mat-error",2)(7,TranslationFieldsetComponent_Conditional_7_Template,2,0,"mat-error",2),\u0275\u0275elementEnd(),\u0275\u0275repeaterCreate(8,TranslationFieldsetComponent_For_9_Template,2,1,"div",null,_forTrack0),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275advance(4),\u0275\u0275property("formControl",ctx.form.controls.key),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.key.hasError("required")?5:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.key.hasError("pattern")?6:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.key.hasError("keyInUse")?7:-1),\u0275\u0275advance(),\u0275\u0275repeater(ctx.languages))},dependencies:[A11yModule,FlexModule,DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultFlexDirective,FormatConstantCaseModule,FormatConstantCaseDirective,MatFormFieldModule,MatFormField,MatLabel,MatError,MatInputModule,MatInput,CdkTextareaAutosize,ReactiveFormsModule,DefaultValueAccessor,NgControlStatus,FormControlDirective,TranslateModule,TranslateDirective],changeDetection:0});let TranslationFieldsetComponent2=_TranslationFieldsetComponent;return TranslationFieldsetComponent2})();var LOADER_PATH=new InjectionToken("systems.translation.loader-path"),TranslationLoaderService=(()=>{let _TranslationLoaderService=class _TranslationLoaderService{constructor(loaderPath,http){this.loaderPath=loaderPath,this.http=http}getTranslation(lang){return this.http.get(`${this.loaderPath}${lang}.json`).pipe(catchError(()=>of({})))}};_TranslationLoaderService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_TranslationLoaderService)(\u0275\u0275inject(LOADER_PATH),\u0275\u0275inject(HttpClient))},_TranslationLoaderService.\u0275prov=\u0275\u0275defineInjectable({token:_TranslationLoaderService,factory:_TranslationLoaderService.\u0275fac,providedIn:"root"});let TranslationLoaderService2=_TranslationLoaderService;return TranslationLoaderService2})();var setLanguage=createAction("[Translation] Set Language",props());var FALLBACK_LANG="en",LANG_STORAGE_KEY="lang",LANGUAGES=[{code:"de",name:"German",native:"Deutsch"},{code:"en",name:"English",native:"English"},{code:"es",name:"Spanish",native:"Espa\xF1ol"},{code:"fr",name:"French",native:"Fran\xE7ais"},{code:"it",name:"Italian",native:"Italiano"},{code:"nl",name:"Dutch",native:"Nederlands"},{code:"pl",name:"Polish",native:"Polski"}];var TranslationEffects2=(()=>{let _TranslationEffects=class _TranslationEffects{constructor(actions$,storage,translate){this.actions$=actions$,this.storage=storage,this.translate=translate,this.setLanguage$=createEffect(()=>this.actions$.pipe(ofType(setLanguage),tap(({lang})=>this.translate.use(lang))),{dispatch:!1}),this.remember$=createEffect(()=>this.translate.onLangChange.pipe(tap(()=>this.storage.set(LANG_STORAGE_KEY,this.translate.currentLang))),{dispatch:!1}),this.userPreference$=createEffect(()=>this.actions$.pipe(ofType(logInSuccess,loadMeSuccess2,didUpdateMe),map(({data})=>get_default(data,"language",get_default(data,"user.language",void 0))),filter(lang=>lang!==void 0),distinctUntilChanged(),map(lang=>setLanguage({lang}))))}};_TranslationEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_TranslationEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(StorageService),\u0275\u0275inject(TranslateService))},_TranslationEffects.\u0275prov=\u0275\u0275defineInjectable({token:_TranslationEffects,factory:_TranslationEffects.\u0275fac});let TranslationEffects3=_TranslationEffects;return TranslationEffects3})();function initializerFactory(location2,translate,storage){return()=>{let queryString=location2.path().split("?").pop(),queryParams=new URLSearchParams(queryString),queryLang=validate2(queryParams.get("lang"));queryLang&&storage.set(LANG_STORAGE_KEY,queryLang);let defaultLang=validate2(navigator.language)||FALLBACK_LANG;return translate.setDefaultLang(FALLBACK_LANG),translate.use(storage.get(LANG_STORAGE_KEY,defaultLang))};function validate2(lang){if(lang){lang=lang.slice(0,2);let found=LANGUAGES.find(language=>language.code===lang);if(found)return found.code}return null}}function loaderFactory(capacitorPlatform){let isWeb=capacitorPlatform==="web",isSimulator=environment.appName==="Simulator";return environment.production&&environment.build!=="production"&&isWeb&&!isSimulator?`../i18n/${environment.build}/`:"../i18n/local/"}var TranslationRootModule=(()=>{let _TranslationRootModule=class _TranslationRootModule{};_TranslationRootModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_TranslationRootModule)},_TranslationRootModule.\u0275mod=\u0275\u0275defineNgModule({type:_TranslationRootModule}),_TranslationRootModule.\u0275inj=\u0275\u0275defineInjector({providers:[{provide:APP_INITIALIZER,multi:!0,useFactory:initializerFactory,deps:[Location,TranslateService,StorageService]},{provide:LOADER_PATH,useFactory:loaderFactory,deps:[CAPACITOR_PLATFORM]}],imports:[SharedModule,EffectsModule.forFeature([TranslationEffects2]),TranslateModule.forRoot({loader:{provide:TranslateLoader,useClass:TranslationLoaderService}})]});let TranslationRootModule2=_TranslationRootModule;return TranslationRootModule2})(),TranslationModule2=(()=>{let _TranslationModule=class _TranslationModule{static forRoot(){return{ngModule:TranslationRootModule,providers:[]}}};_TranslationModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_TranslationModule)},_TranslationModule.\u0275mod=\u0275\u0275defineNgModule({type:_TranslationModule}),_TranslationModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule,TranslateModule]});let TranslationModule3=_TranslationModule;return TranslationModule3})();var LinkTranslationDialogFacadeBase=class{constructor(){this.store=inject(Store),this.languages$=of([LANGUAGES.find(language=>language.code==="en"),...LANGUAGES.filter(language=>language.code!=="en")]),this.translations$=this.store.select(selectAll42)}};var UnlinkTranslationDialogFacade=(()=>{let _UnlinkTranslationDialogFacade=class _UnlinkTranslationDialogFacade extends LinkTranslationDialogFacadeBase{getTranslation(translationKey){return this.translations$.pipe(map(translations=>translations.find(translation=>`__TRANSLATION__.${translation.key}`===translationKey)))}};_UnlinkTranslationDialogFacade.\u0275fac=(()=>{let \u0275UnlinkTranslationDialogFacade_BaseFactory;return function(__ngFactoryType__){return(\u0275UnlinkTranslationDialogFacade_BaseFactory||(\u0275UnlinkTranslationDialogFacade_BaseFactory=\u0275\u0275getInheritedFactory(_UnlinkTranslationDialogFacade)))(__ngFactoryType__||_UnlinkTranslationDialogFacade)}})(),_UnlinkTranslationDialogFacade.\u0275prov=\u0275\u0275defineInjectable({token:_UnlinkTranslationDialogFacade,factory:_UnlinkTranslationDialogFacade.\u0275fac,providedIn:"root"});let UnlinkTranslationDialogFacade2=_UnlinkTranslationDialogFacade;return UnlinkTranslationDialogFacade2})();var UnlinkTranslationDialogComponent=(()=>{let _UnlinkTranslationDialogComponent=class _UnlinkTranslationDialogComponent{constructor(){this.data=inject(MAT_DIALOG_DATA),this.destroy=inject(DestroyRef),this.facade=inject(UnlinkTranslationDialogFacade),this.fb=inject(FormBuilder),this.form=this.fb.nonNullable.group({key:[{value:"",disabled:!0}],languages:this.fb.nonNullable.group({})}),this.languages=[]}ngOnInit(){combineLatest([this.facade.getTranslation(this.data.translationKey),this.facade.languages$]).pipe(takeUntilDestroyed(this.destroy)).subscribe(([translation,languages])=>{this.form.controls.key.setValue(translation?.key||trimNamespace(this.data.translationKey),{emitEvent:!1}),this.languages=languages,this.languages.forEach(language=>this.form.controls.languages.addControl(language.code,this.fb.nonNullable.control({value:translation?.languages?.[language.code]||"",disabled:!0}),{emitEvent:!1}))}),this.form.disable()}};_UnlinkTranslationDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_UnlinkTranslationDialogComponent)},_UnlinkTranslationDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_UnlinkTranslationDialogComponent,selectors:[["ix-unlink-translation-dialog"]],standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:13,vars:6,consts:[["fxLayout","row"],["fxFlex","","mat-dialog-title","","translate",""],["type","button","mat-icon-button","","mat-dialog-close","",3,"matTooltip"],[3,"form","languages"],["align","end"],["type","button","mat-button","","color","warn",3,"mat-dialog-close"],["translate",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"header",0)(1,"h1",1),\u0275\u0275text(2,"LINKED_TRANSLATION"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"button",2),\u0275\u0275pipe(4,"translate"),\u0275\u0275elementStart(5,"mat-icon"),\u0275\u0275text(6,"close"),\u0275\u0275elementEnd()()(),\u0275\u0275elementStart(7,"mat-dialog-content"),\u0275\u0275element(8,"ix-translation-fieldset",3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"mat-dialog-actions",4)(10,"button",5)(11,"span",6),\u0275\u0275text(12,"UNLINK"),\u0275\u0275elementEnd()()()),rf&2&&(\u0275\u0275advance(3),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(4,4,"CLOSE")),\u0275\u0275advance(5),\u0275\u0275property("form",ctx.form)("languages",ctx.languages),\u0275\u0275advance(2),\u0275\u0275property("mat-dialog-close",!0))},dependencies:[FlexModule,DefaultLayoutDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatIconButton,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,MatIconModule,MatIcon,MatTooltipModule,MatTooltip,TranslateModule,TranslatePipe,TranslateDirective,TranslationFieldsetComponent],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 24px) 24px 24px;border-bottom:1px solid rgba(0,0,0,.12)}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{padding-left:0;padding-bottom:0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]{--mdc-dialog-subhead-font: var(--font-family);--mdc-dialog-subhead-size: 17px}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(8px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] header[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:14px 14px 0 0}[_nghost-%COMP%] ix-translation-fieldset .mat-mdc-form-field .mat-mdc-form-field-subscript-wrapper{display:none}"],changeDetection:0});let UnlinkTranslationDialogComponent2=_UnlinkTranslationDialogComponent;return UnlinkTranslationDialogComponent2})();function translationKeyInUseValidator(control){return this.data.usedTranslationKeys?.includes(control.value)?{keyInUse:!0}:null}var AddTranslationDialogComponent=(()=>{let _AddTranslationDialogComponent=class _AddTranslationDialogComponent{constructor(){this.dialogRef=inject(MatDialogRef),this.fb=inject(FormBuilder),this.data=inject(MAT_DIALOG_DATA),this.form=this.fb.nonNullable.group({key:["",[Validators.pattern(/^[A-Z0-9_?.!]+$/),Validators.required,translationKeyInUseValidator.bind(this)]],languages:this.fb.nonNullable.group(this.data.languages.reduce((controls,language)=>__spreadProps(__spreadValues({},controls),{[language.code]:["",language.code==="en"?[Validators.required]:[]]}),{}))})}submit(){this.dialogRef.close(__spreadProps(__spreadValues({},this.form.value),{languages:omitBy_default(this.form.value.languages,isEmpty_default)}))}};_AddTranslationDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AddTranslationDialogComponent)},_AddTranslationDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_AddTranslationDialogComponent,selectors:[["ix-add-translation-dialog"]],standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:13,vars:4,consts:[["autocomplete","off",3,"ngSubmit","formGroup"],["mat-dialog-title","","translate",""],[3,"form","languages"],["fxFlex",""],["mat-button","","mat-dialog-close",""],["translate",""],["type","submit","mat-button","","mat-button","","color","primary",3,"disabled"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"form",0),\u0275\u0275listener("ngSubmit",function(){return ctx.submit()}),\u0275\u0275elementStart(1,"h1",1),\u0275\u0275text(2,"ADD_NEW_TRANSLATION"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"mat-dialog-content"),\u0275\u0275element(4,"ix-translation-fieldset",2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(5,"mat-dialog-actions"),\u0275\u0275element(6,"span",3),\u0275\u0275elementStart(7,"button",4)(8,"span",5),\u0275\u0275text(9,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(10,"button",6)(11,"span",5),\u0275\u0275text(12,"ADD"),\u0275\u0275elementEnd()()()()),rf&2&&(\u0275\u0275property("formGroup",ctx.form),\u0275\u0275advance(4),\u0275\u0275property("form",ctx.form)("languages",ctx.data.languages),\u0275\u0275advance(6),\u0275\u0275property("disabled",ctx.form.pristine||ctx.form.invalid))},dependencies:[ReactiveFormsModule,\u0275NgNoValidate,NgControlStatusGroup,FormGroupDirective,MatButtonModule,MatButton,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,FlexModule,DefaultFlexDirective,TranslateModule,TranslateDirective,TranslationFieldsetComponent],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 24px) 24px 24px;border-bottom:1px solid rgba(0,0,0,.12)}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{padding-left:0;padding-bottom:0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]{--mdc-dialog-subhead-font: var(--font-family);--mdc-dialog-subhead-size: 17px}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(8px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}"],changeDetection:0});let AddTranslationDialogComponent2=_AddTranslationDialogComponent;return AddTranslationDialogComponent2})();var EditTranslationDialogComponent=(()=>{let _EditTranslationDialogComponent=class _EditTranslationDialogComponent{constructor(){this.fb=inject(FormBuilder),this.dialogRef=inject(MatDialogRef),this.data=inject(MAT_DIALOG_DATA),this.form=this.fb.nonNullable.group({key:[{value:this.data.translation.key??"",disabled:!0},[Validators.required]],languages:this.fb.nonNullable.group(this.data.languages.reduce((controls,language)=>__spreadProps(__spreadValues({},controls),{[language.code]:[this.data.translation.languages?.[language.code]||"",language.code==="en"?[Validators.required]:[]]}),{}))})}submit(){this.dialogRef.close(__spreadProps(__spreadValues({},this.data.translation),{languages:omitBy_default(this.form.controls.languages.value,isEmpty_default)}))}};_EditTranslationDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_EditTranslationDialogComponent)},_EditTranslationDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_EditTranslationDialogComponent,selectors:[["ix-edit-translation-dialog"]],standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:13,vars:4,consts:[["autocomplete","off",3,"ngSubmit","formGroup"],["mat-dialog-title","","translate",""],[3,"form","languages"],["fxFlex",""],["mat-button","","mat-dialog-close",""],["translate",""],["type","submit","mat-button","","mat-button","","color","primary",3,"disabled"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"form",0),\u0275\u0275listener("ngSubmit",function(){return ctx.submit()}),\u0275\u0275elementStart(1,"h1",1),\u0275\u0275text(2,"EDIT_TRANSLATION"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"mat-dialog-content"),\u0275\u0275element(4,"ix-translation-fieldset",2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(5,"mat-dialog-actions"),\u0275\u0275element(6,"span",3),\u0275\u0275elementStart(7,"button",4)(8,"span",5),\u0275\u0275text(9,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(10,"button",6)(11,"span",5),\u0275\u0275text(12,"SAVE"),\u0275\u0275elementEnd()()()()),rf&2&&(\u0275\u0275property("formGroup",ctx.form),\u0275\u0275advance(4),\u0275\u0275property("form",ctx.form)("languages",ctx.data.languages),\u0275\u0275advance(6),\u0275\u0275property("disabled",ctx.form.pristine||ctx.form.invalid))},dependencies:[ReactiveFormsModule,\u0275NgNoValidate,NgControlStatusGroup,FormGroupDirective,MatButtonModule,MatButton,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,FlexModule,DefaultFlexDirective,TranslateModule,TranslateDirective,TranslationFieldsetComponent],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 24px) 24px 24px;border-bottom:1px solid rgba(0,0,0,.12)}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{padding-left:0;padding-bottom:0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]{--mdc-dialog-subhead-font: var(--font-family);--mdc-dialog-subhead-size: 17px}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(8px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}"],changeDetection:0});let EditTranslationDialogComponent2=_EditTranslationDialogComponent;return EditTranslationDialogComponent2})();function FlatSearchInputComponent_Conditional_5_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",3),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.clear())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2,"close"),\u0275\u0275elementEnd()()}}var FlatSearchInputComponent=(()=>{let _FlatSearchInputComponent=class _FlatSearchInputComponent{constructor(){this.showClearButtonWhenEmpty=!1,this.afterQueryChange=new EventEmitter,this.afterQueryClear=new EventEmitter,this.destroy=inject(DestroyRef)}ngOnInit(){this.query?.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>{this.afterQueryChange&&this.afterQueryChange.emit()})}clear(){this.query?.setValue(""),this.afterQueryClear&&this.afterQueryClear.emit()}};_FlatSearchInputComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_FlatSearchInputComponent)},_FlatSearchInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_FlatSearchInputComponent,selectors:[["ix-flat-search-input"]],inputs:{query:"query",showClearButtonWhenEmpty:[2,"showClearButtonWhenEmpty","showClearButtonWhenEmpty",booleanAttribute]},outputs:{afterQueryChange:"afterQueryChange",afterQueryClear:"afterQueryClear"},standalone:!0,features:[\u0275\u0275InputTransformsFeature,\u0275\u0275StandaloneFeature],decls:6,vars:5,consts:[["matIconPrefix",""],["id","flat-search-mat-input","matInput","","type","search",3,"formControl","placeholder"],["matIconSuffix","","type","button","mat-icon-button","",1,"close-icon"],["matIconSuffix","","type","button","mat-icon-button","",1,"close-icon",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-icon",0),\u0275\u0275text(2,"search"),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",1),\u0275\u0275pipe(4,"translate"),\u0275\u0275template(5,FlatSearchInputComponent_Conditional_5_Template,3,0,"button",2),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275advance(3),\u0275\u0275property("formControl",ctx.query)("placeholder",\u0275\u0275pipeBind1(4,3,"SEARCH")),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.showClearButtonWhenEmpty||ctx.query.value?5:-1))},dependencies:[ReactiveFormsModule,DefaultValueAccessor,NgControlStatus,FormControlDirective,MatButtonModule,MatIconButton,MatFormFieldModule,MatFormField,MatPrefix,MatSuffix,MatIconModule,MatIcon,MatInputModule,MatInput,TranslateModule,TranslatePipe],styles:["[_nghost-%COMP%]{--ix-flat-search-input-width: 200px;--ix-flat-search-input-height: 32px;display:block}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{--mdc-filled-text-field-container-color: rgb(0 0 0 / 4%);--mat-form-field-container-text-size: 14px;width:var(--ix-flat-search-input-width);height:var(--ix-flat-search-input-height)}[_nghost-%COMP%] .mat-mdc-form-field.mat-focused[_ngcontent-%COMP%] .mat-mdc-form-field-focus-overlay{opacity:.04}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mdc-text-field--filled{--mdc-filled-text-field-active-indicator-height: 0;--mdc-filled-text-field-focus-active-indicator-height: 0;--mdc-filled-text-field-input-text-color: rgb(0 0 0 / 67%);border-radius:calc(var(--ix-flat-search-input-height) * .5)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-flex{max-height:var(--ix-flat-search-input-height)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-prefix>.mat-icon{padding:calc((var(--ix-flat-search-input-height) - 20px) * .5)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix{width:auto;min-height:var(--ix-flat-search-input-height);padding:0!important}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix input{height:var(--ix-flat-search-input-height)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix input::placeholder{color:rgba(var(--body-color-rgb),.34)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix input[type=search]::-webkit-search-decoration, [_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-infix input[type=search]::-webkit-search-cancel-button{appearance:none}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-prefix{padding-right:max(36px - var(--ix-flat-search-input-height),0px)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix{padding-left:max(36px - var(--ix-flat-search-input-height),0px)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-icon-suffix .mat-mdc-icon-button{--mdc-icon-button-state-layer-size: var( --ix-flat-search-input-height );--mdc-icon-button-icon-size: min( calc(var(--ix-flat-search-input-height) - 12px), 20px );width:var(--ix-flat-search-input-height);height:var(--ix-flat-search-input-height)}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .mat-mdc-form-field-subscript-wrapper{display:none}"],changeDetection:0});let FlatSearchInputComponent2=_FlatSearchInputComponent;return FlatSearchInputComponent2})();var LinkTranslationDialogFacade=(()=>{let _LinkTranslationDialogFacade=class _LinkTranslationDialogFacade extends LinkTranslationDialogFacadeBase{addTranslation(translation){this.store.dispatch(addMany({data:[translation]}))}editTranslation(translation){this.store.dispatch(updateMany6({data:[translation]}))}};_LinkTranslationDialogFacade.\u0275fac=(()=>{let \u0275LinkTranslationDialogFacade_BaseFactory;return function(__ngFactoryType__){return(\u0275LinkTranslationDialogFacade_BaseFactory||(\u0275LinkTranslationDialogFacade_BaseFactory=\u0275\u0275getInheritedFactory(_LinkTranslationDialogFacade)))(__ngFactoryType__||_LinkTranslationDialogFacade)}})(),_LinkTranslationDialogFacade.\u0275prov=\u0275\u0275defineInjectable({token:_LinkTranslationDialogFacade,factory:_LinkTranslationDialogFacade.\u0275fac,providedIn:"root"});let LinkTranslationDialogFacade2=_LinkTranslationDialogFacade;return LinkTranslationDialogFacade2})();function LinkTranslationDialogComponent_For_13_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-list-option",8)(1,"div",16),\u0275\u0275element(2,"span",17),\u0275\u0275pipe(3,"highlightText"),\u0275\u0275elementStart(4,"button",18),\u0275\u0275pipe(5,"translate"),\u0275\u0275listener("click",function($event){let translation_r2=\u0275\u0275restoreView(_r1).$implicit,ctx_r2=\u0275\u0275nextContext();return $event.stopPropagation(),\u0275\u0275resetView(ctx_r2.openEditTranslationDialog(translation_r2))}),\u0275\u0275elementStart(6,"mat-icon"),\u0275\u0275text(7,"edit"),\u0275\u0275elementEnd()()()()}if(rf&2){let translation_r2=ctx.$implicit,ctx_r2=\u0275\u0275nextContext();\u0275\u0275property("value",translation_r2)("selected",translation_r2.key===(ctx_r2.selectedTranslation==null?null:ctx_r2.selectedTranslation.key)),\u0275\u0275advance(2),\u0275\u0275property("innerHTML",\u0275\u0275pipeBind3(3,4,ctx_r2.getTranslationLabel(translation_r2),ctx_r2.query.value,"35ch"),\u0275\u0275sanitizeHtml),\u0275\u0275advance(2),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(5,8,"EDIT_TRANSLATION"))}}function LinkTranslationDialogComponent_Conditional_15_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"p")(1,"span"),\u0275\u0275text(2),\u0275\u0275pipe(3,"translate"),\u0275\u0275elementEnd()()),rf&2){let ctx_r2=\u0275\u0275nextContext();\u0275\u0275advance(2),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(3,1,ctx_r2.query.value?"NO_MATCHING_RESULTS":"NO_TRANSLATIONS"))}}var LinkTranslationDialogComponent=(()=>{let _LinkTranslationDialogComponent=class _LinkTranslationDialogComponent{constructor(){this.cdRef=inject(ChangeDetectorRef),this.destroy=inject(DestroyRef),this.dialog=inject(MatDialog),this.facade=inject(LinkTranslationDialogFacade),this.fb=inject(FormBuilder),this.form=this.fb.nonNullable.group({key:[""],languages:this.fb.nonNullable.group({})}),this.query=this.fb.nonNullable.control(""),this.translations=[],this.languages=[],this.filteredTranslations$=this.query.valueChanges.pipe(startWith(""),map(value=>this._filter(value)),takeUntilDestroyed(this.destroy))}ngOnInit(){this.facade.translations$.pipe(takeUntilDestroyed(this.destroy)).subscribe(translations=>{this.translations=translations,this.query.setValue(this.query.value),this.selectedTranslation&&(this.selectedTranslation=this.translations.find(translation=>translation.key===this.selectedTranslation?.key),this.fillFormWithSelectedTranslation()),this.cdRef.markForCheck()}),this.facade.languages$.pipe(take(1)).subscribe(languages=>{this.languages=languages,this.languages.forEach(language=>this.form.controls.languages.addControl(language.code,this.fb.nonNullable.control(""),{emitEvent:!1})),this.form.disable()})}getTranslationLabel(translation){return translation.key+": "+Object.values(translation.languages||{}).join(", ")}selectTranslation(change){this.selectedTranslation=change.options[0].value,this.fillFormWithSelectedTranslation()}fillFormWithSelectedTranslation(){this.form.reset(),this.selectedTranslation&&this.form.patchValue(this.selectedTranslation),this.cdRef.markForCheck()}_filter(value){let filterValue=value?.toLowerCase().trim()||"";return this.translations.filter(option=>this.getTranslationLabel(option)?.toLowerCase().includes(filterValue))}openAddTranslationDialog(){this.dialog.open(AddTranslationDialogComponent,{autoFocus:!0,data:{languages:this.languages,usedTranslationKeys:this.translations.map(translation=>translation.key)},panelClass:"fullscreen"}).afterClosed().subscribe(translation=>{translation&&(this.selectedTranslation=translation,this.facade.addTranslation(translation))})}openEditTranslationDialog(translation){this.dialog.open(EditTranslationDialogComponent,{data:{languages:this.languages,translation},panelClass:"fullscreen"}).afterClosed().subscribe(updatedTranslation=>{updatedTranslation&&(this.selectedTranslation=updatedTranslation,this.facade.editTranslation(updatedTranslation))})}};_LinkTranslationDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LinkTranslationDialogComponent)},_LinkTranslationDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_LinkTranslationDialogComponent,selectors:[["ix-link-translation-dialog"]],standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:31,vars:18,consts:[["fxFlex","","fxLayout","row"],["fxFlex","40",1,"dialog-column"],[1,"header"],["fxFlex","","mat-dialog-title","","translate",""],["type","button","mat-icon-button","",3,"click","matTooltip"],[1,"ix-dialog__content"],[3,"query"],[3,"selectionChange","hideSingleSelectionIndicator","multiple"],[3,"value","selected"],["fxFlex","60","fxLayout","column",1,"dialog-column"],["fxFlex",""],["type","button","mat-icon-button","","mat-dialog-close","",3,"matTooltip"],[3,"form","languages"],["fxFlex","","fxLayoutAlign","start end"],["mat-button","","color","primary",3,"mat-dialog-close","disabled"],["translate",""],["fxLayout","row","fxLayoutAlign","start center"],["fxFlex","",3,"innerHTML"],["mat-icon-button","",3,"click","matTooltip"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),\u0275\u0275text(4,"TRANSLATIONS"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(5,"button",4),\u0275\u0275pipe(6,"translate"),\u0275\u0275listener("click",function(){return ctx.openAddTranslationDialog()}),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"add"),\u0275\u0275elementEnd()()(),\u0275\u0275elementStart(9,"div",5),\u0275\u0275element(10,"ix-flat-search-input",6),\u0275\u0275elementStart(11,"mat-selection-list",7),\u0275\u0275listener("selectionChange",function($event){return ctx.selectTranslation($event)}),\u0275\u0275repeaterCreate(12,LinkTranslationDialogComponent_For_13_Template,8,10,"mat-list-option",8,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275pipe(14,"async"),\u0275\u0275elementEnd(),\u0275\u0275template(15,LinkTranslationDialogComponent_Conditional_15_Template,4,3,"p"),\u0275\u0275pipe(16,"async"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(17,"div",9)(18,"div",2),\u0275\u0275element(19,"span",10),\u0275\u0275elementStart(20,"button",11),\u0275\u0275pipe(21,"translate"),\u0275\u0275elementStart(22,"mat-icon"),\u0275\u0275text(23,"close"),\u0275\u0275elementEnd()()(),\u0275\u0275elementStart(24,"div",5),\u0275\u0275element(25,"ix-translation-fieldset",12),\u0275\u0275elementEnd(),\u0275\u0275elementStart(26,"mat-dialog-actions",13),\u0275\u0275element(27,"span",10),\u0275\u0275elementStart(28,"button",14)(29,"span",15),\u0275\u0275text(30,"LINK"),\u0275\u0275elementEnd()()()()()),rf&2){let tmp_5_0;\u0275\u0275advance(5),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(6,10,"ADD_NEW_TRANSLATION")),\u0275\u0275advance(5),\u0275\u0275property("query",ctx.query),\u0275\u0275advance(),\u0275\u0275property("hideSingleSelectionIndicator",!0)("multiple",!1),\u0275\u0275advance(),\u0275\u0275repeater(\u0275\u0275pipeBind1(14,12,ctx.filteredTranslations$)),\u0275\u0275advance(3),\u0275\u0275conditional(((tmp_5_0=\u0275\u0275pipeBind1(16,14,ctx.filteredTranslations$))==null?null:tmp_5_0.length)===0?15:-1),\u0275\u0275advance(5),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(21,16,"CLOSE")),\u0275\u0275advance(5),\u0275\u0275property("form",ctx.form)("languages",ctx.languages),\u0275\u0275advance(3),\u0275\u0275property("mat-dialog-close",ctx.form.value)("disabled",!ctx.selectedTranslation)}},dependencies:[AsyncPipe,FlatSearchInputComponent,FlexModule,DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,HighlightTextPipe,MatButtonModule,MatButton,MatIconButton,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatIconModule,MatIcon,MatListModule,MatSelectionList,MatListOption,MatTooltipModule,MatTooltip,TranslateModule,TranslatePipe,TranslateDirective,TranslationFieldsetComponent],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1;min-width:860px!important;max-width:860px!important}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 24px) 24px 24px;border-bottom:1px solid rgba(0,0,0,.12)}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{padding-left:0;padding-bottom:0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]{--mdc-dialog-subhead-font: var(--font-family);--mdc-dialog-subhead-size: 17px}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(8px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .dialog-column[_ngcontent-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{max-height:calc(100vh - 200px)}[_nghost-%COMP%] .dialog-column[_ngcontent-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] ix-flat-search-input[_ngcontent-%COMP%]{--ix-flat-search-input-width: 100%;margin-bottom:16px}[_nghost-%COMP%] .dialog-column[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{height:60px;display:flex;place-content:center flex-start;align-items:center}[_nghost-%COMP%] .dialog-column[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%] .dialog-column[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .mat-mdc-icon-button[_ngcontent-%COMP%]{margin-right:12px}[_nghost-%COMP%] .dialog-column[_ngcontent-%COMP%]:first-of-type{border-right:1px solid rgba(0,0,0,.12)}@media (max-width: 959.9px){[_nghost-%COMP%] .dialog-column[_ngcontent-%COMP%]:first-of-type .mdc-dialog__content[_ngcontent-%COMP%]{border:0}}[_nghost-%COMP%] .dialog-column[_ngcontent-%COMP%] .mat-mdc-selection-list[_ngcontent-%COMP%]{padding-top:0;overflow-y:auto;margin-right:-24px;margin-left:-24px}[_nghost-%COMP%] .dialog-column[_ngcontent-%COMP%] .mat-mdc-selection-list[_ngcontent-%COMP%] .mat-mdc-list-option[_ngcontent-%COMP%]{height:40px;padding-left:24px;padding-right:12px}[_nghost-%COMP%] .dialog-column[_ngcontent-%COMP%] .mat-mdc-selection-list[_ngcontent-%COMP%] .mat-mdc-list-option[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .dialog-column[_ngcontent-%COMP%] .mat-mdc-selection-list[_ngcontent-%COMP%] .mat-mdc-list-option[_ngcontent-%COMP%]:hover button[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] .dialog-column[_ngcontent-%COMP%] .mat-mdc-selection-list[_ngcontent-%COMP%] .mat-mdc-list-option[_ngcontent-%COMP%] .mat-mdc-list-item-unscoped-content span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}[_nghost-%COMP%] ix-translation-fieldset .mat-mdc-form-field-subscript-wrapper{display:none}"],changeDetection:0});let LinkTranslationDialogComponent2=_LinkTranslationDialogComponent;return LinkTranslationDialogComponent2})();var TranslationIconButtonComponent=(()=>{let _TranslationIconButtonComponent=class _TranslationIconButtonComponent{constructor(){this.dialog=inject(MatDialog),this.elementRef=inject(ElementRef),this.platformId=inject(PLATFORM_ID),this.translate=inject(TranslateService),this.setTranslationKey=new EventEmitter}get active(){return this.key!==void 0}get icon(){return this.active?"translate_done":"translate"}get label(){return this.translate.instant(this.active?"EDIT_TRANSLATIONS":"TRANSLATIONS")}ngAfterViewInit(){if(isPlatformBrowser(this.platformId)){let siblings=this.elementRef.nativeElement.parentElement.children,input2=Array.from(siblings).find(elm=>elm.tagName==="INPUT"&&elm.classList.contains("mat-input-element"));input2&&input2.style.setProperty("width","calc(100% - 40px)")}}openTranslationDialog(){this.key?this.dialog.open(UnlinkTranslationDialogComponent,{data:{translationKey:this.key},panelClass:"fullscreen"}).afterClosed().subscribe(confirmUnlink=>{confirmUnlink&&this.setTranslationKey.emit()}):this.dialog.open(LinkTranslationDialogComponent,{panelClass:"fullscreen"}).afterClosed().subscribe(translation=>{translation&&this.setTranslationKey.emit("__TRANSLATION__."+translation.key)})}};_TranslationIconButtonComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_TranslationIconButtonComponent)},_TranslationIconButtonComponent.\u0275cmp=\u0275\u0275defineComponent({type:_TranslationIconButtonComponent,selectors:[["ix-translation-icon-button"]],hostVars:2,hostBindings:function(rf,ctx){rf&2&&\u0275\u0275classProp("active",ctx.active)},inputs:{key:"key"},outputs:{setTranslationKey:"setTranslationKey"},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:2,vars:4,consts:[["type","button","role","checkbox","tabindex","-1","mat-icon-button","",3,"click","matTooltip"],[3,"svgIcon"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"button",0),\u0275\u0275listener("click",function($event){return $event.stopPropagation(),ctx.openTranslationDialog()}),\u0275\u0275element(1,"mat-icon",1),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275property("matTooltip",ctx.label),\u0275\u0275attribute("aria-label",ctx.label)("aria-checked",ctx.active),\u0275\u0275advance(),\u0275\u0275property("svgIcon",ctx.icon))},dependencies:[MatButtonModule,MatIconButton,MatIconModule,MatIcon,MatTooltipModule,MatTooltip],styles:["[_nghost-%COMP%]{position:absolute;inset:8px -12px 0 auto;display:flex;align-items:flex-start;color:rgba(var(--body-color-rgb),.5);pointer-events:auto}@media (min-width: 1280px){[_nghost-%COMP%]{top:5px}}.active[_nghost-%COMP%]{color:var(--blue)}"],changeDetection:0});let TranslationIconButtonComponent2=_TranslationIconButtonComponent;return TranslationIconButtonComponent2})();var NumberInputValidatorDirective=(()=>{let _NumberInputValidatorDirective=class _NumberInputValidatorDirective{constructor(element){this.element=element}validate(){return this.element.nativeElement.validity.badInput?{number:!0,required:!1}:null}};_NumberInputValidatorDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_NumberInputValidatorDirective)(\u0275\u0275directiveInject(ElementRef))},_NumberInputValidatorDirective.\u0275dir=\u0275\u0275defineDirective({type:_NumberInputValidatorDirective,selectors:[["input","type","number"]],features:[\u0275\u0275ProvidersFeature([{provide:NG_VALIDATORS,useExisting:forwardRef(()=>_NumberInputValidatorDirective),multi:!0}])]});let NumberInputValidatorDirective3=_NumberInputValidatorDirective;return NumberInputValidatorDirective3})();var TrimTranslationNamespacePipe=(()=>{let _TrimTranslationNamespacePipe=class _TrimTranslationNamespacePipe{transform(string){return trimNamespace(string)}};_TrimTranslationNamespacePipe.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_TrimTranslationNamespacePipe)},_TrimTranslationNamespacePipe.\u0275pipe=\u0275\u0275definePipe({name:"trimTranslationNamespace",type:_TrimTranslationNamespacePipe,pure:!0,standalone:!0});let TrimTranslationNamespacePipe3=_TrimTranslationNamespacePipe;return TrimTranslationNamespacePipe3})();var _c015=a0=>({min:a0});function RawMetricInputComponent_Conditional_0_Conditional_3_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",1),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_5_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-error"),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()),rf&2){let tmp_3_0,ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind2(2,1,"__MESSAGE__.MIN",\u0275\u0275pureFunction1(4,_c015,ctx_r0.decimalsControl==null||(tmp_3_0=ctx_r0.decimalsControl.getError("min"))==null?null:tmp_3_0.min))," ")}}function RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_6_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.INTEGER"),\u0275\u0275elementEnd())}function RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.INVALID_NUMBER"),\u0275\u0275elementEnd())}function RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_8_Conditional_4_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-translation-icon-button",11),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r0.setUnitTranslationKey($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(4);\u0275\u0275property("key",ctx_r0.unitTranslationKey)}}function RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_8_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-form-field",5)(1,"mat-label",6),\u0275\u0275text(2,"UNIT"),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",9),\u0275\u0275template(4,RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_8_Conditional_4_Template,1,1,"ix-translation-icon-button",10),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275property("formGroupName",ctx_r0.field.inputDescription.key),\u0275\u0275advance(3),\u0275\u0275property("placeholder",ctx_r0.unitPlaceholder),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.translation?4:-1)}}function RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_9_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-label",6),\u0275\u0275text(2,"UNIT"),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",12),\u0275\u0275pipe(4,"translate"),\u0275\u0275pipe(5,"trimTranslationNamespace"),\u0275\u0275elementStart(6,"ix-translation-icon-button",11),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r3);let ctx_r0=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r0.setUnitTranslationKey($event))}),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275advance(3),\u0275\u0275property("value",ctx_r0.unitTranslationKey?\u0275\u0275pipeBind1(5,4,\u0275\u0275pipeBind1(4,2,ctx_r0.unitTranslationKey)):""),\u0275\u0275advance(3),\u0275\u0275property("key",ctx_r0.unitTranslationKey)}}function RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_14_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.INVALID_FACTOR"),\u0275\u0275elementEnd())}function RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_15_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.INVALID_NUMBER"),\u0275\u0275elementEnd())}function RawMetricInputComponent_Conditional_0_Conditional_6_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",4)(1,"mat-form-field",5)(2,"mat-label",6),\u0275\u0275text(3,"DECIMALS"),\u0275\u0275elementEnd(),\u0275\u0275element(4,"input",7),\u0275\u0275template(5,RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_5_Template,3,6,"mat-error")(6,RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_6_Template,2,0,"mat-error",6)(7,RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_7_Template,2,0,"mat-error",6),\u0275\u0275elementEnd(),\u0275\u0275template(8,RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_8_Template,5,3,"mat-form-field",5)(9,RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_9_Template,7,6,"mat-form-field"),\u0275\u0275elementStart(10,"mat-form-field",5)(11,"mat-label",6),\u0275\u0275text(12,"FACTOR"),\u0275\u0275elementEnd(),\u0275\u0275element(13,"input",8),\u0275\u0275template(14,RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_14_Template,2,0,"mat-error",6)(15,RawMetricInputComponent_Conditional_0_Conditional_6_Conditional_15_Template,2,0,"mat-error",6),\u0275\u0275elementEnd()()),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275property("formGroupName",ctx_r0.field.inputDescription.key),\u0275\u0275advance(4),\u0275\u0275conditional(ctx_r0.decimalsControl!=null&&ctx_r0.decimalsControl.hasError("min")?5:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.decimalsControl!=null&&ctx_r0.decimalsControl.hasError("integer")?6:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.decimalsControl!=null&&ctx_r0.decimalsControl.hasError("number")?7:-1),\u0275\u0275advance(),\u0275\u0275conditional(!ctx_r0.translation||!ctx_r0.unitTranslationKey?8:9),\u0275\u0275advance(2),\u0275\u0275property("formGroupName",ctx_r0.field.inputDescription.key),\u0275\u0275advance(3),\u0275\u0275property("placeholder",ctx_r0.factorPlaceholder||""),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.factorControl!=null&&ctx_r0.factorControl.hasError("decimals")?14:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.factorControl!=null&&ctx_r0.factorControl.hasError("number")?15:-1)}}function RawMetricInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"h3"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275template(3,RawMetricInputComponent_Conditional_0_Conditional_3_Template,2,3,"p",1),\u0275\u0275elementStart(4,"div",2),\u0275\u0275element(5,"ix-selector-input",3),\u0275\u0275elementEnd(),\u0275\u0275template(6,RawMetricInputComponent_Conditional_0_Conditional_6_Template,16,9,"div",4),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("formGroup",ctx_r0.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.field.inputDescription.description?3:-1),\u0275\u0275advance(2),\u0275\u0275property("pageVersionId",ctx_r0.field.component.pageVersion==null?null:ctx_r0.field.component.pageVersion.publicId)("selectorControl",ctx_r0.selectorControl)("selectors",ctx_r0.selectors)("disabled",!ctx_r0.selectorDataIsLoaded)("required",ctx_r0.required),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.showDecimalsUnitFactor?6:-1)}}var RawMetricInputComponent=(()=>{let _RawMetricInputComponent=class _RawMetricInputComponent extends ComponentInputComponent{constructor(){super(...arguments),this.destroy=inject(DestroyRef),this.facade=inject(RawMetricInputFacade),this.translate=inject(TranslateService),this.translation=environment.appName!=="Simulator",this.selectorDataIsLoaded=!1}get selectorControl(){return this.componentFormGroup.get([this.field.inputDescription.key,"selector"])}get selector(){return this.selectorControl?.value}get showDecimalsUnitFactor(){if(this.selectorDataIsLoaded&&this.selectedMetric)switch(this.selectedMetric.variable?.type){case"int":case"float":return!0;case"bool":case"str":default:return!1}return!1}get decimalsControl(){return this.componentFormGroup.get([this.field.inputDescription.key,"decimals"])}get unitControl(){return this.componentFormGroup.get([this.field.inputDescription.key,"unit"])}get unitPlaceholder(){return this.selectedMetric?.variable?.unit||""}get factorControl(){return this.componentFormGroup.get([this.field.inputDescription.key,"factor"])}get factorPlaceholder(){let factor=this.selectedMetric?.variable?.factor;return factor?Number(factor).toString():void 0}get required(){return this.field.inputDescription.required||!1}ngOnInit(){this.facade.selectors(of("Agent#selected"),this.field).pipe(takeUntilDestroyed(this.destroy)).subscribe(selectors10=>{this.selectors=selectors10,this.selectedMetric=selectors10.reduce((acc,sel)=>[...acc,...sel.items],[]).find(sel=>sel.pattern.test(this.field.value?.selector))||null}),this.facade.selectorDataIsLoaded(this.field).pipe(takeUntilDestroyed(this.destroy)).subscribe(loaded=>{this.selectorDataIsLoaded=loaded}),this.selectorControl?.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>{this.selectedMetric=this.selectors.reduce((acc,sel)=>[...acc,...sel.items],[]).find(sel=>sel.pattern.test(value))||null,this._setCorrectValuesForSelectorType(this.selectedMetric?.variable?.type)}),this.unitTranslationKey=this.unitControl?.value?.startsWith("__TRANSLATION__.")?this.unitControl.value:void 0}setUnitTranslationKey(translationKey){this.unitTranslationKey=translationKey,translationKey?this.unitControl?.setValue(this.unitTranslationKey):this.unitControl?.setValue(this.translate.instant(this.field.value.unit??""))}_setCorrectValuesForSelectorType(variableType){(variableType==="bool"||variableType==="str"||typeof variableType>"u")&&(this.decimalsControl?.setValue(null),this.unitControl?.setValue(null),this.factorControl?.setValue(null))}};_RawMetricInputComponent.\u0275fac=(()=>{let \u0275RawMetricInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275RawMetricInputComponent_BaseFactory||(\u0275RawMetricInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_RawMetricInputComponent)))(__ngFactoryType__||_RawMetricInputComponent)}})(),_RawMetricInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_RawMetricInputComponent,selectors:[["ix-raw-metric-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[[3,"formGroup"],[1,"description",3,"innerHTML"],["fxLayout","column"],["fxFlex","","label","TAG",3,"pageVersionId","selectorControl","selectors","disabled","required"],["fxLayout","row","fxLayoutGap","8px"],["fxFlex","",3,"formGroupName"],["translate",""],["formControlName","decimals","min","0","type","number","matInput",""],["formControlName","factor","type","number","matInput","",3,"placeholder"],["formControlName","unit","matInput","",3,"placeholder"],[3,"key"],[3,"setTranslationKey","key"],["matInput","","disabled","",3,"value"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,RawMetricInputComponent_Conditional_0_Template,7,9,"div",0),rf&2&&\u0275\u0275conditional(ctx.field.hidden?-1:0)},dependencies:[DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultFlexDirective,DefaultValueAccessor,NumberValueAccessor,NgControlStatus,NgControlStatusGroup,MinValidator,FormGroupDirective,FormControlName,FormGroupName,TranslateDirective,MatFormField,MatLabel,MatError,MatInput,SelectorInputComponent,TranslationIconButtonComponent,NumberInputValidatorDirective,TrimTranslationNamespacePipe,TranslatePipe,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font-size:11.5px!important;font-weight:500!important;text-transform:uppercase;letter-spacing:.8px;color:rgba(var(--body-color-rgb),.54)}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{display:block}"]});let RawMetricInputComponent3=_RawMetricInputComponent;return RawMetricInputComponent3})();var AggregatedMetricInputFacade=(()=>{let _AggregatedMetricInputFacade=class _AggregatedMetricInputFacade extends RawMetricInputFacade{};_AggregatedMetricInputFacade.\u0275fac=(()=>{let \u0275AggregatedMetricInputFacade_BaseFactory;return function(__ngFactoryType__){return(\u0275AggregatedMetricInputFacade_BaseFactory||(\u0275AggregatedMetricInputFacade_BaseFactory=\u0275\u0275getInheritedFactory(_AggregatedMetricInputFacade)))(__ngFactoryType__||_AggregatedMetricInputFacade)}})(),_AggregatedMetricInputFacade.\u0275prov=\u0275\u0275defineInjectable({token:_AggregatedMetricInputFacade,factory:_AggregatedMetricInputFacade.\u0275fac,providedIn:"root"});let AggregatedMetricInputFacade2=_AggregatedMetricInputFacade;return AggregatedMetricInputFacade2})();var _c016=a0=>({min:a0});function AggregatedMetricInputComponent_Conditional_0_Conditional_3_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",1),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function AggregatedMetricInputComponent_Conditional_0_For_11_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",7),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()),rf&2){let func_r2=ctx.$implicit,ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("value",func_r2.value),\u0275\u0275advance(),\u0275\u0275textInterpolate2(" ",\u0275\u0275pipeBind1(2,3,func_r2.label)," (",ctx_r0.displayFormula(func_r2.value),") ")}}function AggregatedMetricInputComponent_Conditional_0_Conditional_12_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_5_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-error"),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()),rf&2){let tmp_3_0,ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind2(2,1,"__MESSAGE__.MIN",\u0275\u0275pureFunction1(4,_c016,ctx_r0.decimalsControl==null||(tmp_3_0=ctx_r0.decimalsControl.getError("min"))==null?null:tmp_3_0.min))," ")}}function AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_6_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.INTEGER"),\u0275\u0275elementEnd())}function AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.INVALID_NUMBER"),\u0275\u0275elementEnd())}function AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_8_Conditional_4_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-translation-icon-button",14),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r3);let ctx_r0=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r0.setUnitTranslationKey($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(4);\u0275\u0275property("key",ctx_r0.unitTranslationKey)}}function AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_8_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-form-field",9)(1,"mat-label",5),\u0275\u0275text(2,"UNIT"),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",12),\u0275\u0275template(4,AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_8_Conditional_4_Template,1,1,"ix-translation-icon-button",13),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275property("formGroupName",ctx_r0.field.inputDescription.key),\u0275\u0275advance(3),\u0275\u0275property("placeholder",ctx_r0.unitPlaceholder),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.translation?4:-1)}}function AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_9_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-label",5),\u0275\u0275text(2,"UNIT"),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",15),\u0275\u0275pipe(4,"translate"),\u0275\u0275pipe(5,"trimTranslationNamespace"),\u0275\u0275elementStart(6,"ix-translation-icon-button",14),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r4);let ctx_r0=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r0.setUnitTranslationKey($event))}),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275advance(3),\u0275\u0275property("value",ctx_r0.unitTranslationKey?\u0275\u0275pipeBind1(5,4,\u0275\u0275pipeBind1(4,2,ctx_r0.unitTranslationKey)):""),\u0275\u0275advance(3),\u0275\u0275property("key",ctx_r0.unitTranslationKey)}}function AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_14_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.INVALID_FACTOR"),\u0275\u0275elementEnd())}function AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_15_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.INVALID_NUMBER"),\u0275\u0275elementEnd())}function AggregatedMetricInputComponent_Conditional_0_Conditional_13_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",8)(1,"mat-form-field",9)(2,"mat-label",5),\u0275\u0275text(3,"DECIMALS"),\u0275\u0275elementEnd(),\u0275\u0275element(4,"input",10),\u0275\u0275template(5,AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_5_Template,3,6,"mat-error")(6,AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_6_Template,2,0,"mat-error",5)(7,AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_7_Template,2,0,"mat-error",5),\u0275\u0275elementEnd(),\u0275\u0275template(8,AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_8_Template,5,3,"mat-form-field",9)(9,AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_9_Template,7,6,"mat-form-field"),\u0275\u0275elementStart(10,"mat-form-field",9)(11,"mat-label",5),\u0275\u0275text(12,"FACTOR"),\u0275\u0275elementEnd(),\u0275\u0275element(13,"input",11),\u0275\u0275template(14,AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_14_Template,2,0,"mat-error",5)(15,AggregatedMetricInputComponent_Conditional_0_Conditional_13_Conditional_15_Template,2,0,"mat-error",5),\u0275\u0275elementEnd()()),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275property("formGroupName",ctx_r0.field.inputDescription.key),\u0275\u0275advance(4),\u0275\u0275conditional(ctx_r0.decimalsControl!=null&&ctx_r0.decimalsControl.hasError("min")?5:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.decimalsControl!=null&&ctx_r0.decimalsControl.hasError("integer")?6:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.decimalsControl!=null&&ctx_r0.decimalsControl.hasError("number")?7:-1),\u0275\u0275advance(),\u0275\u0275conditional(!ctx_r0.translation||!ctx_r0.unitTranslationKey?8:9),\u0275\u0275advance(2),\u0275\u0275property("formGroupName",ctx_r0.field.inputDescription.key),\u0275\u0275advance(3),\u0275\u0275property("placeholder",ctx_r0.factorPlaceholder||""),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.factorControl!=null&&ctx_r0.factorControl.hasError("decimals")?14:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.factorControl!=null&&ctx_r0.factorControl.hasError("number")?15:-1)}}function AggregatedMetricInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"h3"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275template(3,AggregatedMetricInputComponent_Conditional_0_Conditional_3_Template,2,3,"p",1),\u0275\u0275elementStart(4,"div",2),\u0275\u0275element(5,"ix-selector-input",3),\u0275\u0275elementStart(6,"mat-form-field",4)(7,"mat-label",5),\u0275\u0275text(8,"AGGREGATOR"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"mat-select",6),\u0275\u0275repeaterCreate(10,AggregatedMetricInputComponent_Conditional_0_For_11_Template,3,5,"mat-option",7,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd(),\u0275\u0275template(12,AggregatedMetricInputComponent_Conditional_0_Conditional_12_Template,2,0,"mat-error",5),\u0275\u0275elementEnd()(),\u0275\u0275template(13,AggregatedMetricInputComponent_Conditional_0_Conditional_13_Template,16,9,"div",8),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("formGroup",ctx_r0.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.field.inputDescription.description?3:-1),\u0275\u0275advance(2),\u0275\u0275property("pageVersionId",ctx_r0.field.component.pageVersion==null?null:ctx_r0.field.component.pageVersion.publicId)("selectorControl",ctx_r0.selectorControl)("selectors",ctx_r0.selectors)("disabled",!ctx_r0.selectorDataIsLoaded)("required",ctx_r0.required),\u0275\u0275advance(4),\u0275\u0275property("formControl",ctx_r0.formula)("compareWith",ctx_r0.formulaCompare)("required",!0),\u0275\u0275advance(),\u0275\u0275repeater(ctx_r0.formulae),\u0275\u0275advance(2),\u0275\u0275conditional(ctx_r0.aggregatorControl!=null&&ctx_r0.aggregatorControl.hasError("required")?12:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.showDecimalsUnitFactor?13:-1)}}var AggregatedMetricInputComponent=(()=>{let _AggregatedMetricInputComponent=class _AggregatedMetricInputComponent extends RawMetricInputComponent{constructor(){super(...arguments),this.facade=inject(AggregatedMetricInputFacade),this.formula=new FormControl,this.formulae=[{value:{aggregator:"first"},label:"FORMULA_FIRST"},{value:{aggregator:"last"},label:"FORMULA_LAST"},{value:{aggregator:"mode"},label:"FORMULA_MODE"},{value:{aggregator:"max"},label:"FORMULA_MAX"},{value:{aggregator:"min"},label:"FORMULA_MIN"},{value:{aggregator:"mean"},label:"FORMULA_MEAN"},{value:{aggregator:"median"},label:"FORMULA_MEDIAN"},{value:{aggregator:"sum"},label:"FORMULA_SUM"},{value:{aggregator:"count"},label:"FORMULA_COUNT"},{value:{aggregator:"spread"},label:"FORMULA_RANGE"},{value:{aggregator:"last",transform:"difference"},label:"FORMULA_DIFFERENCE_LAST"}]}get aggregatorControl(){return this.componentFormGroup.get([this.field.inputDescription.key,"aggregator"])}get aggregator(){return this.aggregatorControl?.value}get transformControl(){return this.componentFormGroup.get([this.field.inputDescription.key,"transform"])}get transform(){return this.transformControl?.value}ngOnInit(){super.ngOnInit(),this.formula.setValue({aggregator:this.aggregator,transform:this.transform}),this.formula.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>{this.aggregatorControl?.setValue(value.aggregator),this.transformControl?.setValue(value.transform)}),this.selectorControl?.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>{let selector3=this.selectors.reduce((acc,sel)=>[...acc,...sel.items],[]).find(sel=>sel.value===value)||null;this.handleTypeChange(selector3?.variable?.type)})}formulaCompare(o1,o2){return o1.transform||o2.transform?o1.aggregator===o2.aggregator&&o1.transform===o2.transform:o1.aggregator===o2.aggregator}displayFormula(value){return value.transform?`${value.transform} - ${value.aggregator}`:value.aggregator}handleTypeChange(type2){type2==="str"?this.formulae=[{value:{aggregator:"first"},label:"FORMULA_FIRST"},{value:{aggregator:"last"},label:"FORMULA_LAST"},{value:{aggregator:"mode"},label:"FORMULA_MODE"},{value:{aggregator:"count"},label:"FORMULA_COUNT"}]:type2==="bool"?this.formulae=[{value:{aggregator:"first"},label:"FORMULA_FIRST"},{value:{aggregator:"last"},label:"FORMULA_LAST"},{value:{aggregator:"mode"},label:"FORMULA_MODE"},{value:{aggregator:"max"},label:"FORMULA_MAX"},{value:{aggregator:"min"},label:"FORMULA_MIN"},{value:{aggregator:"count"},label:"FORMULA_COUNT"}]:this.formulae=[{value:{aggregator:"first"},label:"FORMULA_FIRST"},{value:{aggregator:"last"},label:"FORMULA_LAST"},{value:{aggregator:"mode"},label:"FORMULA_MODE"},{value:{aggregator:"max"},label:"FORMULA_MAX"},{value:{aggregator:"min"},label:"FORMULA_MIN"},{value:{aggregator:"mean"},label:"FORMULA_MEAN"},{value:{aggregator:"median"},label:"FORMULA_MEDIAN"},{value:{aggregator:"sum"},label:"FORMULA_SUM"},{value:{aggregator:"count"},label:"FORMULA_COUNT"},{value:{aggregator:"spread"},label:"FORMULA_RANGE"},{value:{aggregator:"last",transform:"difference"},label:"FORMULA_DIFFERENCE_LAST"}],this.formulae.some(a=>this.formulaCompare(this,a.value))||(this.aggregatorControl?.setValue(""),this.aggregatorControl?.updateValueAndValidity(),this.transformControl?.setValue(null),this.transformControl?.updateValueAndValidity())}};_AggregatedMetricInputComponent.\u0275fac=(()=>{let \u0275AggregatedMetricInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275AggregatedMetricInputComponent_BaseFactory||(\u0275AggregatedMetricInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_AggregatedMetricInputComponent)))(__ngFactoryType__||_AggregatedMetricInputComponent)}})(),_AggregatedMetricInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_AggregatedMetricInputComponent,selectors:[["ix-aggregated-metric-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[[3,"formGroup"],[1,"description",3,"innerHTML"],["fxLayout","column"],["label","TAG",3,"pageVersionId","selectorControl","selectors","disabled","required"],["fxFlex",""],["translate",""],[3,"formControl","compareWith","required"],[3,"value"],["fxLayout","row","fxLayoutGap","8px"],["fxFlex","",3,"formGroupName"],["formControlName","decimals","min","0","type","number","matInput",""],["formControlName","factor","type","number","matInput","",3,"placeholder"],["formControlName","unit","matInput","",3,"placeholder"],[3,"key"],[3,"setTranslationKey","key"],["matInput","","disabled","",3,"value"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,AggregatedMetricInputComponent_Conditional_0_Template,14,13,"div",0),rf&2&&\u0275\u0275conditional(ctx.field.hidden?-1:0)},dependencies:[DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultFlexDirective,DefaultValueAccessor,NumberValueAccessor,NgControlStatus,NgControlStatusGroup,RequiredValidator,MinValidator,FormControlDirective,FormGroupDirective,FormControlName,FormGroupName,TranslateDirective,MatOption,MatFormField,MatLabel,MatError,MatInput,MatSelect,SelectorInputComponent,TranslationIconButtonComponent,NumberInputValidatorDirective,TrimTranslationNamespacePipe,TranslatePipe,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font-size:11.5px!important;font-weight:500!important;text-transform:uppercase;letter-spacing:.8px;color:rgba(var(--body-color-rgb),.54)}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{display:block}"]});let AggregatedMetricInputComponent3=_AggregatedMetricInputComponent;return AggregatedMetricInputComponent3})();var LiveMetricInputFacade=(()=>{let _LiveMetricInputFacade=class _LiveMetricInputFacade extends RawMetricInputFacade{selectorDataIsLoaded(field){return this._selectorDataIsLoaded(field,selectAllLoadedForAgent2)}loadAgentDataVariables(agentId){this.store.dispatch(ensureAll24({agentId}))}selectorsForAgent(agentId,target,allowedTypes){return this.loadAgentDataVariables(agentId),this._selectorsForAgent(agentId,target,selectAllForAgent2(agentId),{name:"variables",slug:"variable"},allowedTypes)}};_LiveMetricInputFacade.\u0275fac=(()=>{let \u0275LiveMetricInputFacade_BaseFactory;return function(__ngFactoryType__){return(\u0275LiveMetricInputFacade_BaseFactory||(\u0275LiveMetricInputFacade_BaseFactory=\u0275\u0275getInheritedFactory(_LiveMetricInputFacade)))(__ngFactoryType__||_LiveMetricInputFacade)}})(),_LiveMetricInputFacade.\u0275prov=\u0275\u0275defineInjectable({token:_LiveMetricInputFacade,factory:_LiveMetricInputFacade.\u0275fac,providedIn:"root"});let LiveMetricInputFacade2=_LiveMetricInputFacade;return LiveMetricInputFacade2})();var _c017=a0=>({min:a0});function LiveMetricInputComponent_Conditional_0_Conditional_3_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",1),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_5_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-error"),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()),rf&2){let tmp_3_0,ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind2(2,1,"__MESSAGE__.MIN",\u0275\u0275pureFunction1(4,_c017,ctx_r0.decimalsControl==null||(tmp_3_0=ctx_r0.decimalsControl.getError("min"))==null?null:tmp_3_0.min))," ")}}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_6_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.INTEGER"),\u0275\u0275elementEnd())}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.INVALID_NUMBER"),\u0275\u0275elementEnd())}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_8_Conditional_4_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-translation-icon-button",11),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r0.setUnitTranslationKey($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(4);\u0275\u0275property("key",ctx_r0.unitTranslationKey)}}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_8_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-form-field",5)(1,"mat-label",6),\u0275\u0275text(2,"UNIT"),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",9),\u0275\u0275template(4,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_8_Conditional_4_Template,1,1,"ix-translation-icon-button",10),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275property("formGroupName",ctx_r0.field.inputDescription.key),\u0275\u0275advance(3),\u0275\u0275property("placeholder",ctx_r0.unitPlaceholder),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.translation?4:-1)}}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_9_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-label",6),\u0275\u0275text(2,"UNIT"),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",12),\u0275\u0275pipe(4,"translate"),\u0275\u0275pipe(5,"trimTranslationNamespace"),\u0275\u0275elementStart(6,"ix-translation-icon-button",11),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r3);let ctx_r0=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r0.setUnitTranslationKey($event))}),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(3);\u0275\u0275advance(3),\u0275\u0275property("value",ctx_r0.unitTranslationKey?\u0275\u0275pipeBind1(5,4,\u0275\u0275pipeBind1(4,2,ctx_r0.unitTranslationKey)):""),\u0275\u0275advance(3),\u0275\u0275property("key",ctx_r0.unitTranslationKey)}}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_14_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.INVALID_FACTOR"),\u0275\u0275elementEnd())}function LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_15_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.INVALID_NUMBER"),\u0275\u0275elementEnd())}function LiveMetricInputComponent_Conditional_0_Conditional_6_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",4)(1,"mat-form-field",5)(2,"mat-label",6),\u0275\u0275text(3,"DECIMALS"),\u0275\u0275elementEnd(),\u0275\u0275element(4,"input",7),\u0275\u0275template(5,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_5_Template,3,6,"mat-error")(6,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_6_Template,2,0,"mat-error",6)(7,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_7_Template,2,0,"mat-error",6),\u0275\u0275elementEnd(),\u0275\u0275template(8,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_8_Template,5,3,"mat-form-field",5)(9,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_9_Template,7,6,"mat-form-field"),\u0275\u0275elementStart(10,"mat-form-field",5)(11,"mat-label",6),\u0275\u0275text(12,"FACTOR"),\u0275\u0275elementEnd(),\u0275\u0275element(13,"input",8),\u0275\u0275template(14,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_14_Template,2,0,"mat-error",6)(15,LiveMetricInputComponent_Conditional_0_Conditional_6_Conditional_15_Template,2,0,"mat-error",6),\u0275\u0275elementEnd()()),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275property("formGroupName",ctx_r0.field.inputDescription.key),\u0275\u0275advance(4),\u0275\u0275conditional(ctx_r0.decimalsControl!=null&&ctx_r0.decimalsControl.hasError("min")?5:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.decimalsControl!=null&&ctx_r0.decimalsControl.hasError("integer")?6:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.decimalsControl!=null&&ctx_r0.decimalsControl.hasError("number")?7:-1),\u0275\u0275advance(),\u0275\u0275conditional(!ctx_r0.translation||!ctx_r0.unitTranslationKey?8:9),\u0275\u0275advance(2),\u0275\u0275property("formGroupName",ctx_r0.field.inputDescription.key),\u0275\u0275advance(3),\u0275\u0275property("placeholder",ctx_r0.factorPlaceholder||""),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.factorControl!=null&&ctx_r0.factorControl.hasError("decimals")?14:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.factorControl!=null&&ctx_r0.factorControl.hasError("number")?15:-1)}}function LiveMetricInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"h3"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275template(3,LiveMetricInputComponent_Conditional_0_Conditional_3_Template,2,3,"p",1),\u0275\u0275elementStart(4,"div",2),\u0275\u0275element(5,"ix-selector-input",3),\u0275\u0275elementEnd(),\u0275\u0275template(6,LiveMetricInputComponent_Conditional_0_Conditional_6_Template,16,9,"div",4),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("formGroup",ctx_r0.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.field.inputDescription.description?3:-1),\u0275\u0275advance(2),\u0275\u0275property("pageVersionId",ctx_r0.field.component.pageVersion==null?null:ctx_r0.field.component.pageVersion.publicId)("selectorControl",ctx_r0.selectorControl)("selectors",ctx_r0.selectors)("disabled",!ctx_r0.selectorDataIsLoaded)("required",ctx_r0.required),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.showDecimalsUnitFactor?6:-1)}}var LiveMetricInputComponent=(()=>{let _LiveMetricInputComponent=class _LiveMetricInputComponent extends RawMetricInputComponent{constructor(){super(...arguments),this.facade=inject(LiveMetricInputFacade)}};_LiveMetricInputComponent.\u0275fac=(()=>{let \u0275LiveMetricInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275LiveMetricInputComponent_BaseFactory||(\u0275LiveMetricInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_LiveMetricInputComponent)))(__ngFactoryType__||_LiveMetricInputComponent)}})(),_LiveMetricInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_LiveMetricInputComponent,selectors:[["ix-live-metric-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[[3,"formGroup"],[1,"description",3,"innerHTML"],["fxLayout","column"],["fxFlex","","label","VARIABLE",3,"pageVersionId","selectorControl","selectors","disabled","required"],["fxLayout","row","fxLayoutGap","8px"],["fxFlex","",3,"formGroupName"],["translate",""],["formControlName","decimals","min","0","type","number","matInput",""],["formControlName","factor","type","number","matInput","",3,"placeholder"],["formControlName","unit","matInput","",3,"placeholder"],[3,"key"],[3,"setTranslationKey","key"],["matInput","","disabled","",3,"value"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,LiveMetricInputComponent_Conditional_0_Template,7,9,"div",0),rf&2&&\u0275\u0275conditional(ctx.field.hidden?-1:0)},dependencies:[DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultFlexDirective,DefaultValueAccessor,NumberValueAccessor,NgControlStatus,NgControlStatusGroup,MinValidator,FormGroupDirective,FormControlName,FormGroupName,TranslateDirective,MatFormField,MatLabel,MatError,MatInput,SelectorInputComponent,TranslationIconButtonComponent,NumberInputValidatorDirective,TrimTranslationNamespacePipe,TranslatePipe,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font-size:11.5px!important;font-weight:500!important;text-transform:uppercase;letter-spacing:.8px;color:rgba(var(--body-color-rgb),.54)}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{display:block}"]});let LiveMetricInputComponent3=_LiveMetricInputComponent;return LiveMetricInputComponent3})();function CheckboxInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}var CheckboxInputComponent=(()=>{let _CheckboxInputComponent=class _CheckboxInputComponent extends ComponentInputComponent{ngOnInit(){let value=this.componentFormGroup.get(this.field.inputName)?.value,newControl=new FormControl(value,{updateOn:"change"});this.componentFormGroup.setControl(this.field.inputName,newControl,{emitEvent:!1})}};_CheckboxInputComponent.\u0275fac=(()=>{let \u0275CheckboxInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275CheckboxInputComponent_BaseFactory||(\u0275CheckboxInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_CheckboxInputComponent)))(__ngFactoryType__||_CheckboxInputComponent)}})(),_CheckboxInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_CheckboxInputComponent,selectors:[["ix-checkbox-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:5,vars:4,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],[3,"formControlName"]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,CheckboxInputComponent_Conditional_0_Template,2,3,"p",0),\u0275\u0275elementStart(1,"div",1)(2,"mat-checkbox",2)(3,"mat-label"),\u0275\u0275text(4),\u0275\u0275elementEnd()()()),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.componentFormGroup),\u0275\u0275advance(),\u0275\u0275property("formControlName",ctx.field.inputName),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx.field.inputDescription.label))},dependencies:[NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,MatCheckbox,MatLabel,RenderMarkdownPipe],styles:["[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] div[_ngcontent-%COMP%]{margin-bottom:16px}[_nghost-%COMP%]:last-of-type div[_ngcontent-%COMP%]{margin-bottom:20px}"]});let CheckboxInputComponent3=_CheckboxInputComponent;return CheckboxInputComponent3})();var import_tinycolor22=__toESM(require_tinycolor());var ColorPickerPanelRef=class{constructor(overlayRef){this.overlayRef=overlayRef,this._afterClosed=new Subject}afterClosed(){return this._afterClosed.asObservable()}close(data){this.overlayRef.dispose(),data&&(this._afterClosed.next(data),this._afterClosed.complete())}};var _c018=["dialogPopup"],_c16=["hueSlider"],_c24=["alphaSlider"];function ColorPickerComponent_div_2_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"div"),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275classMapInterpolate1("arrow arrow-",ctx_r1.cpUsePosition,""),\u0275\u0275styleProp("left",ctx_r1.cpArrowPosition)("top",ctx_r1.arrowTop,"px")}}function ColorPickerComponent_div_3_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",28),\u0275\u0275listener("newValue",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onColorChange($event))})("dragStart",function(){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onDragStart("saturation-lightness"))})("dragEnd",function(){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onDragEnd("saturation-lightness"))}),\u0275\u0275element(1,"div",16),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275styleProp("background-color",ctx_r1.hueSliderColor),\u0275\u0275property("rgX",1)("rgY",1),\u0275\u0275advance(),\u0275\u0275styleProp("top",ctx_r1.slider==null?null:ctx_r1.slider.v,"px")("left",ctx_r1.slider==null?null:ctx_r1.slider.s,"px")}}function ColorPickerComponent__svg_svg_8_Template(rf,ctx){rf&1&&(\u0275\u0275namespaceSVG(),\u0275\u0275elementStart(0,"svg",29),\u0275\u0275element(1,"path",30)(2,"path",31),\u0275\u0275elementEnd())}function ColorPickerComponent_button_9_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",32),\u0275\u0275listener("click",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAddPresetColor($event,ctx_r1.selectedColor))}),\u0275\u0275text(1),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275classMap(ctx_r1.cpAddColorButtonClass),\u0275\u0275property("disabled",ctx_r1.cpPresetColors&&ctx_r1.cpPresetColors.length>=ctx_r1.cpMaxPresetColorsLength),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",ctx_r1.cpAddColorButtonText," ")}}function ColorPickerComponent_div_11_Template(rf,ctx){rf&1&&\u0275\u0275element(0,"div",33)}function ColorPickerComponent_div_21_input_6_Template(rf,ctx){if(rf&1){let _r6=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"input",39),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r6);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r6);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.onAlphaInput($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("rg",1)("value",ctx_r1.cmykText==null?null:ctx_r1.cmykText.a)}}function ColorPickerComponent_div_21_div_16_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div"),\u0275\u0275text(1,"A"),\u0275\u0275elementEnd())}function ColorPickerComponent_div_21_Template(rf,ctx){if(rf&1){let _r5=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",34)(1,"div",35)(2,"input",36),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onCyanInput($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"input",36),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onMagentaInput($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"input",36),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onYellowInput($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(5,"input",36),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onBlackInput($event))}),\u0275\u0275elementEnd(),\u0275\u0275template(6,ColorPickerComponent_div_21_input_6_Template,1,2,"input",37),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"div",35)(8,"div"),\u0275\u0275text(9,"C"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(10,"div"),\u0275\u0275text(11,"M"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(12,"div"),\u0275\u0275text(13,"Y"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(14,"div"),\u0275\u0275text(15,"K"),\u0275\u0275elementEnd(),\u0275\u0275template(16,ColorPickerComponent_div_21_div_16_Template,2,0,"div",38),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275styleProp("display",ctx_r1.format!==3?"none":"block"),\u0275\u0275advance(2),\u0275\u0275property("rg",100)("value",ctx_r1.cmykText==null?null:ctx_r1.cmykText.c),\u0275\u0275advance(),\u0275\u0275property("rg",100)("value",ctx_r1.cmykText==null?null:ctx_r1.cmykText.m),\u0275\u0275advance(),\u0275\u0275property("rg",100)("value",ctx_r1.cmykText==null?null:ctx_r1.cmykText.y),\u0275\u0275advance(),\u0275\u0275property("rg",100)("value",ctx_r1.cmykText==null?null:ctx_r1.cmykText.k),\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r1.cpAlphaChannel!=="disabled"),\u0275\u0275advance(10),\u0275\u0275property("ngIf",ctx_r1.cpAlphaChannel!=="disabled")}}function ColorPickerComponent_div_22_input_5_Template(rf,ctx){if(rf&1){let _r8=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"input",39),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r8);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r8);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.onAlphaInput($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("rg",1)("value",ctx_r1.hslaText==null?null:ctx_r1.hslaText.a)}}function ColorPickerComponent_div_22_div_13_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div"),\u0275\u0275text(1,"A"),\u0275\u0275elementEnd())}function ColorPickerComponent_div_22_Template(rf,ctx){if(rf&1){let _r7=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",40)(1,"div",35)(2,"input",41),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onHueInput($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"input",36),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onSaturationInput($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"input",36),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onLightnessInput($event))}),\u0275\u0275elementEnd(),\u0275\u0275template(5,ColorPickerComponent_div_22_input_5_Template,1,2,"input",37),\u0275\u0275elementEnd(),\u0275\u0275elementStart(6,"div",35)(7,"div"),\u0275\u0275text(8,"H"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"div"),\u0275\u0275text(10,"S"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(11,"div"),\u0275\u0275text(12,"L"),\u0275\u0275elementEnd(),\u0275\u0275template(13,ColorPickerComponent_div_22_div_13_Template,2,0,"div",38),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275styleProp("display",ctx_r1.format!==2?"none":"block"),\u0275\u0275advance(2),\u0275\u0275property("rg",360)("value",ctx_r1.hslaText==null?null:ctx_r1.hslaText.h),\u0275\u0275advance(),\u0275\u0275property("rg",100)("value",ctx_r1.hslaText==null?null:ctx_r1.hslaText.s),\u0275\u0275advance(),\u0275\u0275property("rg",100)("value",ctx_r1.hslaText==null?null:ctx_r1.hslaText.l),\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r1.cpAlphaChannel!=="disabled"),\u0275\u0275advance(8),\u0275\u0275property("ngIf",ctx_r1.cpAlphaChannel!=="disabled")}}function ColorPickerComponent_div_23_input_5_Template(rf,ctx){if(rf&1){let _r10=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"input",39),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.onAlphaInput($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("rg",1)("value",ctx_r1.rgbaText==null?null:ctx_r1.rgbaText.a)}}function ColorPickerComponent_div_23_div_13_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div"),\u0275\u0275text(1,"A"),\u0275\u0275elementEnd())}function ColorPickerComponent_div_23_Template(rf,ctx){if(rf&1){let _r9=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",42)(1,"div",35)(2,"input",43),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r9);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r9);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onRedInput($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"input",43),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r9);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r9);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onGreenInput($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"input",43),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r9);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r9);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onBlueInput($event))}),\u0275\u0275elementEnd(),\u0275\u0275template(5,ColorPickerComponent_div_23_input_5_Template,1,2,"input",37),\u0275\u0275elementEnd(),\u0275\u0275elementStart(6,"div",35)(7,"div"),\u0275\u0275text(8,"R"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"div"),\u0275\u0275text(10,"G"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(11,"div"),\u0275\u0275text(12,"B"),\u0275\u0275elementEnd(),\u0275\u0275template(13,ColorPickerComponent_div_23_div_13_Template,2,0,"div",38),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275styleProp("display",ctx_r1.format!==1?"none":"block"),\u0275\u0275advance(2),\u0275\u0275property("rg",255)("value",ctx_r1.rgbaText==null?null:ctx_r1.rgbaText.r),\u0275\u0275advance(),\u0275\u0275property("rg",255)("value",ctx_r1.rgbaText==null?null:ctx_r1.rgbaText.g),\u0275\u0275advance(),\u0275\u0275property("rg",255)("value",ctx_r1.rgbaText==null?null:ctx_r1.rgbaText.b),\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r1.cpAlphaChannel!=="disabled"),\u0275\u0275advance(8),\u0275\u0275property("ngIf",ctx_r1.cpAlphaChannel!=="disabled")}}function ColorPickerComponent_div_24_input_3_Template(rf,ctx){if(rf&1){let _r12=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"input",39),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r12);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r12);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.onAlphaInput($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("rg",1)("value",ctx_r1.hexAlpha)}}function ColorPickerComponent_div_24_div_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div"),\u0275\u0275text(1,"A"),\u0275\u0275elementEnd())}function ColorPickerComponent_div_24_Template(rf,ctx){if(rf&1){let _r11=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",44)(1,"div",35)(2,"input",45),\u0275\u0275listener("blur",function(){\u0275\u0275restoreView(_r11);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onHexInput(null))})("keyup.enter",function($event){\u0275\u0275restoreView(_r11);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r11);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onHexInput($event))}),\u0275\u0275elementEnd(),\u0275\u0275template(3,ColorPickerComponent_div_24_input_3_Template,1,2,"input",37),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"div",35)(5,"div"),\u0275\u0275text(6,"Hex"),\u0275\u0275elementEnd(),\u0275\u0275template(7,ColorPickerComponent_div_24_div_7_Template,2,0,"div",38),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275styleProp("display",ctx_r1.format!==0?"none":"block"),\u0275\u0275classProp("hex-alpha",ctx_r1.cpAlphaChannel==="forced"),\u0275\u0275advance(2),\u0275\u0275property("value",ctx_r1.hexText),\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r1.cpAlphaChannel==="forced"),\u0275\u0275advance(4),\u0275\u0275property("ngIf",ctx_r1.cpAlphaChannel==="forced")}}function ColorPickerComponent_div_25_input_3_Template(rf,ctx){if(rf&1){let _r14=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"input",39),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r14);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r14);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.onAlphaInput($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("rg",1)("value",ctx_r1.hslaText==null?null:ctx_r1.hslaText.a)}}function ColorPickerComponent_div_25_Template(rf,ctx){if(rf&1){let _r13=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",46)(1,"div",35)(2,"input",36),\u0275\u0275listener("keyup.enter",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))})("newValue",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onValueInput($event))}),\u0275\u0275elementEnd(),\u0275\u0275template(3,ColorPickerComponent_div_25_input_3_Template,1,2,"input",37),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"div",35)(5,"div"),\u0275\u0275text(6,"V"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"div"),\u0275\u0275text(8,"A"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(2),\u0275\u0275property("rg",100)("value",ctx_r1.hslaText==null?null:ctx_r1.hslaText.l),\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r1.cpAlphaChannel!=="disabled")}}function ColorPickerComponent_div_26_Template(rf,ctx){if(rf&1){let _r15=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",47)(1,"span",48),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r15);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onFormatToggle(-1))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(2,"span",48),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r15);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onFormatToggle(1))}),\u0275\u0275elementEnd()()}}function ColorPickerComponent_div_27_div_4_div_1_span_1_Template(rf,ctx){if(rf&1){let _r18=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"span",55),\u0275\u0275listener("click",function($event){\u0275\u0275restoreView(_r18);let color_r17=\u0275\u0275nextContext().$implicit,ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.onRemovePresetColor($event,color_r17))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(4);\u0275\u0275classMap(ctx_r1.cpRemoveColorButtonClass)}}function ColorPickerComponent_div_27_div_4_div_1_Template(rf,ctx){if(rf&1){let _r16=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",53),\u0275\u0275listener("click",function(){let color_r17=\u0275\u0275restoreView(_r16).$implicit,ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.setColorFromString(color_r17))}),\u0275\u0275template(1,ColorPickerComponent_div_27_div_4_div_1_span_1_Template,1,3,"span",54),\u0275\u0275elementEnd()}if(rf&2){let color_r17=ctx.$implicit,ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275styleProp("background-color",color_r17),\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r1.cpAddColorButton)}}function ColorPickerComponent_div_27_div_4_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div"),\u0275\u0275template(1,ColorPickerComponent_div_27_div_4_div_1_Template,2,3,"div",52),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275classMap(ctx_r1.cpPresetColorsClass),\u0275\u0275advance(),\u0275\u0275property("ngForOf",ctx_r1.cpPresetColors)}}function ColorPickerComponent_div_27_div_5_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div"),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275classMap(ctx_r1.cpPresetEmptyMessageClass),\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r1.cpPresetEmptyMessage)}}function ColorPickerComponent_div_27_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",49),\u0275\u0275element(1,"hr"),\u0275\u0275elementStart(2,"div",50),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275template(4,ColorPickerComponent_div_27_div_4_Template,2,4,"div",51)(5,ColorPickerComponent_div_27_div_5_Template,2,4,"div",51),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(3),\u0275\u0275textInterpolate(ctx_r1.cpPresetLabel),\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r1.cpPresetColors==null?null:ctx_r1.cpPresetColors.length),\u0275\u0275advance(),\u0275\u0275property("ngIf",!(ctx_r1.cpPresetColors!=null&&ctx_r1.cpPresetColors.length)&&ctx_r1.cpAddColorButton)}}function ColorPickerComponent_div_28_button_1_Template(rf,ctx){if(rf&1){let _r19=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",58),\u0275\u0275listener("click",function($event){\u0275\u0275restoreView(_r19);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.onCancelColor($event))}),\u0275\u0275text(1),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275classMap(ctx_r1.cpCancelButtonClass),\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r1.cpCancelButtonText)}}function ColorPickerComponent_div_28_button_2_Template(rf,ctx){if(rf&1){let _r20=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",58),\u0275\u0275listener("click",function($event){\u0275\u0275restoreView(_r20);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.onAcceptColor($event))}),\u0275\u0275text(1),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275classMap(ctx_r1.cpOKButtonClass),\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r1.cpOKButtonText)}}function ColorPickerComponent_div_28_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",56),\u0275\u0275template(1,ColorPickerComponent_div_28_button_1_Template,2,4,"button",57)(2,ColorPickerComponent_div_28_button_2_Template,2,4,"button",57),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r1.cpCancelButton),\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx_r1.cpOKButton)}}function ColorPickerComponent_div_29_ng_container_1_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function ColorPickerComponent_div_29_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",59),\u0275\u0275template(1,ColorPickerComponent_div_29_ng_container_1_Template,1,0,"ng-container",60),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",ctx_r1.cpExtraTemplate)}}var ColorFormats=function(ColorFormats2){return ColorFormats2[ColorFormats2.HEX=0]="HEX",ColorFormats2[ColorFormats2.RGBA=1]="RGBA",ColorFormats2[ColorFormats2.HSLA=2]="HSLA",ColorFormats2[ColorFormats2.CMYK=3]="CMYK",ColorFormats2}(ColorFormats||{}),Rgba=class{constructor(r,g2,b2,a){__publicField(this,"r");__publicField(this,"g");__publicField(this,"b");__publicField(this,"a");this.r=r,this.g=g2,this.b=b2,this.a=a}},Hsva=class{constructor(h,s2,v,a){__publicField(this,"h");__publicField(this,"s");__publicField(this,"v");__publicField(this,"a");this.h=h,this.s=s2,this.v=v,this.a=a}},Hsla=class{constructor(h,s2,l2,a){__publicField(this,"h");__publicField(this,"s");__publicField(this,"l");__publicField(this,"a");this.h=h,this.s=s2,this.l=l2,this.a=a}},Cmyk=class{constructor(c,m,y2,k,a=1){__publicField(this,"c");__publicField(this,"m");__publicField(this,"y");__publicField(this,"k");__publicField(this,"a");this.c=c,this.m=m,this.y=y2,this.k=k,this.a=a}};function calculateAutoPositioning(elBounds,triggerElBounds){let usePositionX="right",usePositionY="bottom",{height,width}=elBounds,{top:top2,left:left2}=triggerElBounds,bottom2=top2+triggerElBounds.height,right2=left2+triggerElBounds.width,collisionTop=top2-height<0,collisionBottom=bottom2+height>(window.innerHeight||document.documentElement.clientHeight),collisionLeft=left2-width<0,collisionRight=right2+width>(window.innerWidth||document.documentElement.clientWidth),collisionAll=collisionTop&&collisionBottom&&collisionLeft&&collisionRight;return collisionBottom&&(usePositionY="top"),collisionTop&&(usePositionY="bottom"),collisionLeft&&(usePositionX="right"),collisionRight&&(usePositionX="left"),collisionAll?["left","right","top","bottom"].reduce((prev,next)=>elBounds[prev]>elBounds[next]?prev:next):collisionLeft&&collisionRight?collisionTop?"bottom":collisionBottom||top2>bottom2?"top":"bottom":collisionTop&&collisionBottom?collisionLeft?"right":collisionRight||left2>right2?"left":"right":`${usePositionY}-${usePositionX}`}function detectIE(){let ua="";typeof navigator<"u"&&(ua=navigator.userAgent.toLowerCase());let msie=ua.indexOf("msie ");return msie>0?parseInt(ua.substring(msie+5,ua.indexOf(".",msie)),10):!1}var TextDirective=(()=>{let _TextDirective=class _TextDirective{constructor(){__publicField(this,"rg");__publicField(this,"text");__publicField(this,"newValue",new EventEmitter)}inputChange(event2){let value=event2.target.value;if(this.rg===void 0)this.newValue.emit(value);else{let numeric=parseFloat(value);this.newValue.emit({v:numeric,rg:this.rg})}}};__publicField(_TextDirective,"\u0275fac",function(__ngFactoryType__){return new(__ngFactoryType__||_TextDirective)}),__publicField(_TextDirective,"\u0275dir",\u0275\u0275defineDirective({type:_TextDirective,selectors:[["","text",""]],hostBindings:function(rf,ctx){rf&1&&\u0275\u0275listener("input",function($event){return ctx.inputChange($event)})},inputs:{rg:"rg",text:"text"},outputs:{newValue:"newValue"}}));let TextDirective2=_TextDirective;return TextDirective2})(),SliderDirective=(()=>{let _SliderDirective=class _SliderDirective{constructor(elRef){__publicField(this,"elRef");__publicField(this,"listenerMove");__publicField(this,"listenerStop");__publicField(this,"rgX");__publicField(this,"rgY");__publicField(this,"slider");__publicField(this,"dragEnd",new EventEmitter);__publicField(this,"dragStart",new EventEmitter);__publicField(this,"newValue",new EventEmitter);this.elRef=elRef,this.listenerMove=event2=>this.move(event2),this.listenerStop=()=>this.stop()}mouseDown(event2){this.start(event2)}touchStart(event2){this.start(event2)}move(event2){event2.preventDefault(),this.setCursor(event2)}start(event2){this.setCursor(event2),event2.stopPropagation(),document.addEventListener("mouseup",this.listenerStop),document.addEventListener("touchend",this.listenerStop),document.addEventListener("mousemove",this.listenerMove),document.addEventListener("touchmove",this.listenerMove),this.dragStart.emit()}stop(){document.removeEventListener("mouseup",this.listenerStop),document.removeEventListener("touchend",this.listenerStop),document.removeEventListener("mousemove",this.listenerMove),document.removeEventListener("touchmove",this.listenerMove),this.dragEnd.emit()}getX(event2){let position=this.elRef.nativeElement.getBoundingClientRect();return(event2.pageX!==void 0?event2.pageX:event2.touches[0].pageX)-position.left-window.pageXOffset}getY(event2){let position=this.elRef.nativeElement.getBoundingClientRect();return(event2.pageY!==void 0?event2.pageY:event2.touches[0].pageY)-position.top-window.pageYOffset}setCursor(event2){let width=this.elRef.nativeElement.offsetWidth,height=this.elRef.nativeElement.offsetHeight,x=Math.max(0,Math.min(this.getX(event2),width)),y2=Math.max(0,Math.min(this.getY(event2),height));this.rgX!==void 0&&this.rgY!==void 0?this.newValue.emit({s:x/width,v:1-y2/height,rgX:this.rgX,rgY:this.rgY}):this.rgX===void 0&&this.rgY!==void 0?this.newValue.emit({v:y2/height,rgY:this.rgY}):this.rgX!==void 0&&this.rgY===void 0&&this.newValue.emit({v:x/width,rgX:this.rgX})}};__publicField(_SliderDirective,"\u0275fac",function(__ngFactoryType__){return new(__ngFactoryType__||_SliderDirective)(\u0275\u0275directiveInject(ElementRef))}),__publicField(_SliderDirective,"\u0275dir",\u0275\u0275defineDirective({type:_SliderDirective,selectors:[["","slider",""]],hostBindings:function(rf,ctx){rf&1&&\u0275\u0275listener("mousedown",function($event){return ctx.mouseDown($event)})("touchstart",function($event){return ctx.touchStart($event)})},inputs:{rgX:"rgX",rgY:"rgY",slider:"slider"},outputs:{dragEnd:"dragEnd",dragStart:"dragStart",newValue:"newValue"}}));let SliderDirective2=_SliderDirective;return SliderDirective2})(),SliderPosition=class{constructor(h,s2,v,a){__publicField(this,"h");__publicField(this,"s");__publicField(this,"v");__publicField(this,"a");this.h=h,this.s=s2,this.v=v,this.a=a}},SliderDimension=class{constructor(h,s2,v,a){__publicField(this,"h");__publicField(this,"s");__publicField(this,"v");__publicField(this,"a");this.h=h,this.s=s2,this.v=v,this.a=a}},ColorPickerService=(()=>{let _ColorPickerService=class _ColorPickerService{constructor(){__publicField(this,"active",null)}setActive(active){this.active&&this.active!==active&&this.active.cpDialogDisplay!=="inline"&&this.active.closeDialog(),this.active=active}hsva2hsla(hsva){let h=hsva.h,s2=hsva.s,v=hsva.v,a=hsva.a;if(v===0)return new Hsla(h,0,0,a);if(s2===0&&v===1)return new Hsla(h,1,1,a);{let l2=v*(2-s2)/2;return new Hsla(h,v*s2/(1-Math.abs(2*l2-1)),l2,a)}}hsla2hsva(hsla){let h=Math.min(hsla.h,1),s2=Math.min(hsla.s,1),l2=Math.min(hsla.l,1),a=Math.min(hsla.a,1);if(l2===0)return new Hsva(h,0,0,a);{let v=l2+s2*(1-Math.abs(2*l2-1))/2;return new Hsva(h,2*(v-l2)/v,v,a)}}hsvaToRgba(hsva){let r,g2,b2,h=hsva.h,s2=hsva.s,v=hsva.v,a=hsva.a,i=Math.floor(h*6),f2=h*6-i,p=v*(1-s2),q=v*(1-f2*s2),t=v*(1-(1-f2)*s2);switch(i%6){case 0:r=v,g2=t,b2=p;break;case 1:r=q,g2=v,b2=p;break;case 2:r=p,g2=v,b2=t;break;case 3:r=p,g2=q,b2=v;break;case 4:r=t,g2=p,b2=v;break;case 5:r=v,g2=p,b2=q;break;default:r=0,g2=0,b2=0}return new Rgba(r,g2,b2,a)}cmykToRgb(cmyk){let r=(1-cmyk.c)*(1-cmyk.k),g2=(1-cmyk.m)*(1-cmyk.k),b2=(1-cmyk.y)*(1-cmyk.k);return new Rgba(r,g2,b2,cmyk.a)}rgbaToCmyk(rgba){let k=1-Math.max(rgba.r,rgba.g,rgba.b);if(k===1)return new Cmyk(0,0,0,1,rgba.a);{let c=(1-rgba.r-k)/(1-k),m=(1-rgba.g-k)/(1-k),y2=(1-rgba.b-k)/(1-k);return new Cmyk(c,m,y2,k,rgba.a)}}rgbaToHsva(rgba){let h,s2,r=Math.min(rgba.r,1),g2=Math.min(rgba.g,1),b2=Math.min(rgba.b,1),a=Math.min(rgba.a,1),max2=Math.max(r,g2,b2),min2=Math.min(r,g2,b2),v=max2,d2=max2-min2;if(s2=max2===0?0:d2/max2,max2===min2)h=0;else{switch(max2){case r:h=(g2-b2)/d2+(g2<b2?6:0);break;case g2:h=(b2-r)/d2+2;break;case b2:h=(r-g2)/d2+4;break;default:h=0}h/=6}return new Hsva(h,s2,v,a)}rgbaToHex(rgba,allowHex8){let hex="#"+(16777216|rgba.r<<16|rgba.g<<8|rgba.b).toString(16).substr(1);return allowHex8&&(hex+=(256|Math.round(rgba.a*255)).toString(16).substr(1)),hex}normalizeCMYK(cmyk){return new Cmyk(cmyk.c/100,cmyk.m/100,cmyk.y/100,cmyk.k/100,cmyk.a)}denormalizeCMYK(cmyk){return new Cmyk(Math.floor(cmyk.c*100),Math.floor(cmyk.m*100),Math.floor(cmyk.y*100),Math.floor(cmyk.k*100),cmyk.a)}denormalizeRGBA(rgba){return new Rgba(Math.round(rgba.r*255),Math.round(rgba.g*255),Math.round(rgba.b*255),rgba.a)}stringToHsva(colorString="",allowHex8=!1){let hsva=null;colorString=(colorString||"").toLowerCase();let stringParsers=[{re:/(rgb)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*%?,\s*(\d{1,3})\s*%?(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(execResult){return new Rgba(parseInt(execResult[2],10)/255,parseInt(execResult[3],10)/255,parseInt(execResult[4],10)/255,isNaN(parseFloat(execResult[5]))?1:parseFloat(execResult[5]))}},{re:/(hsl)a?\(\s*(\d{1,3})\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,parse:function(execResult){return new Hsla(parseInt(execResult[2],10)/360,parseInt(execResult[3],10)/100,parseInt(execResult[4],10)/100,isNaN(parseFloat(execResult[5]))?1:parseFloat(execResult[5]))}}];allowHex8?stringParsers.push({re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})?$/,parse:function(execResult){return new Rgba(parseInt(execResult[1],16)/255,parseInt(execResult[2],16)/255,parseInt(execResult[3],16)/255,parseInt(execResult[4]||"FF",16)/255)}}):stringParsers.push({re:/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})$/,parse:function(execResult){return new Rgba(parseInt(execResult[1],16)/255,parseInt(execResult[2],16)/255,parseInt(execResult[3],16)/255,1)}}),stringParsers.push({re:/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])$/,parse:function(execResult){return new Rgba(parseInt(execResult[1]+execResult[1],16)/255,parseInt(execResult[2]+execResult[2],16)/255,parseInt(execResult[3]+execResult[3],16)/255,1)}});for(let key in stringParsers)if(stringParsers.hasOwnProperty(key)){let parser=stringParsers[key],match2=parser.re.exec(colorString),color=match2&&parser.parse(match2);if(color)return color instanceof Rgba?hsva=this.rgbaToHsva(color):color instanceof Hsla&&(hsva=this.hsla2hsva(color)),hsva}return hsva}outputFormat(hsva,outputFormat,alphaChannel){switch(outputFormat==="auto"&&(outputFormat=hsva.a<1?"rgba":"hex"),outputFormat){case"hsla":let hsla=this.hsva2hsla(hsva),hslaText=new Hsla(Math.round(hsla.h*360),Math.round(hsla.s*100),Math.round(hsla.l*100),Math.round(hsla.a*100)/100);return hsva.a<1||alphaChannel==="always"?"hsla("+hslaText.h+","+hslaText.s+"%,"+hslaText.l+"%,"+hslaText.a+")":"hsl("+hslaText.h+","+hslaText.s+"%,"+hslaText.l+"%)";case"rgba":let rgba=this.denormalizeRGBA(this.hsvaToRgba(hsva));return hsva.a<1||alphaChannel==="always"?"rgba("+rgba.r+","+rgba.g+","+rgba.b+","+Math.round(rgba.a*100)/100+")":"rgb("+rgba.r+","+rgba.g+","+rgba.b+")";default:let allowHex8=alphaChannel==="always"||alphaChannel==="forced";return this.rgbaToHex(this.denormalizeRGBA(this.hsvaToRgba(hsva)),allowHex8)}}};__publicField(_ColorPickerService,"\u0275fac",function(__ngFactoryType__){return new(__ngFactoryType__||_ColorPickerService)}),__publicField(_ColorPickerService,"\u0275prov",\u0275\u0275defineInjectable({token:_ColorPickerService,factory:_ColorPickerService.\u0275fac,providedIn:"root"}));let ColorPickerService2=_ColorPickerService;return ColorPickerService2})(),SUPPORTS_TOUCH=typeof window<"u"&&"ontouchstart"in window,ColorPickerComponent=(()=>{let _ColorPickerComponent=class _ColorPickerComponent{constructor(ngZone,elRef,cdRef,document2,platformId,service){__publicField(this,"ngZone");__publicField(this,"elRef");__publicField(this,"cdRef");__publicField(this,"document");__publicField(this,"platformId");__publicField(this,"service");__publicField(this,"isIE10",!1);__publicField(this,"cmyk");__publicField(this,"hsva");__publicField(this,"width");__publicField(this,"height");__publicField(this,"cmykColor");__publicField(this,"outputColor");__publicField(this,"initialColor");__publicField(this,"fallbackColor");__publicField(this,"listenerResize");__publicField(this,"listenerMouseDown");__publicField(this,"directiveInstance");__publicField(this,"sliderH");__publicField(this,"sliderDimMax");__publicField(this,"directiveElementRef");__publicField(this,"dialogArrowSize",10);__publicField(this,"dialogArrowOffset",15);__publicField(this,"dialogInputFields",[ColorFormats.HEX,ColorFormats.RGBA,ColorFormats.HSLA,ColorFormats.CMYK]);__publicField(this,"useRootViewContainer",!1);__publicField(this,"show");__publicField(this,"hidden");__publicField(this,"top");__publicField(this,"left");__publicField(this,"position");__publicField(this,"format");__publicField(this,"slider");__publicField(this,"hexText");__publicField(this,"hexAlpha");__publicField(this,"cmykText");__publicField(this,"hslaText");__publicField(this,"rgbaText");__publicField(this,"arrowTop");__publicField(this,"selectedColor");__publicField(this,"hueSliderColor");__publicField(this,"alphaSliderColor");__publicField(this,"cpWidth");__publicField(this,"cpHeight");__publicField(this,"cpColorMode");__publicField(this,"cpCmykEnabled");__publicField(this,"cpAlphaChannel");__publicField(this,"cpOutputFormat");__publicField(this,"cpDisableInput");__publicField(this,"cpDialogDisplay");__publicField(this,"cpIgnoredElements");__publicField(this,"cpSaveClickOutside");__publicField(this,"cpCloseClickOutside");__publicField(this,"cpPosition");__publicField(this,"cpUsePosition");__publicField(this,"cpPositionOffset");__publicField(this,"cpOKButton");__publicField(this,"cpOKButtonText");__publicField(this,"cpOKButtonClass");__publicField(this,"cpCancelButton");__publicField(this,"cpCancelButtonText");__publicField(this,"cpCancelButtonClass");__publicField(this,"cpEyeDropper");__publicField(this,"eyeDropperSupported");__publicField(this,"cpPresetLabel");__publicField(this,"cpPresetColors");__publicField(this,"cpPresetColorsClass");__publicField(this,"cpMaxPresetColorsLength");__publicField(this,"cpPresetEmptyMessage");__publicField(this,"cpPresetEmptyMessageClass");__publicField(this,"cpAddColorButton");__publicField(this,"cpAddColorButtonText");__publicField(this,"cpAddColorButtonClass");__publicField(this,"cpRemoveColorButtonClass");__publicField(this,"cpArrowPosition");__publicField(this,"cpTriggerElement");__publicField(this,"cpExtraTemplate");__publicField(this,"dialogElement");__publicField(this,"hueSlider");__publicField(this,"alphaSlider");this.ngZone=ngZone,this.elRef=elRef,this.cdRef=cdRef,this.document=document2,this.platformId=platformId,this.service=service,this.eyeDropperSupported=isPlatformBrowser(this.platformId)&&"EyeDropper"in this.document.defaultView}handleEsc(event2){this.show&&this.cpDialogDisplay==="popup"&&this.onCancelColor(event2)}handleEnter(event2){this.show&&this.cpDialogDisplay==="popup"&&this.onAcceptColor(event2)}ngOnInit(){this.slider=new SliderPosition(0,0,0,0);let hueWidth=this.hueSlider.nativeElement.offsetWidth||140,alphaWidth=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new SliderDimension(hueWidth,this.cpWidth,130,alphaWidth),this.cpCmykEnabled?this.format=ColorFormats.CMYK:this.cpOutputFormat==="rgba"?this.format=ColorFormats.RGBA:this.cpOutputFormat==="hsla"?this.format=ColorFormats.HSLA:this.format=ColorFormats.HEX,this.listenerMouseDown=event2=>{this.onMouseDown(event2)},this.listenerResize=()=>{this.onResize()},this.openDialog(this.initialColor,!1)}ngOnDestroy(){this.closeDialog()}ngAfterViewInit(){if(this.cpWidth!==230||this.cpDialogDisplay==="inline"){let hueWidth=this.hueSlider.nativeElement.offsetWidth||140,alphaWidth=this.alphaSlider.nativeElement.offsetWidth||140;this.sliderDimMax=new SliderDimension(hueWidth,this.cpWidth,130,alphaWidth),this.updateColorPicker(!1),this.cdRef.detectChanges()}}openDialog(color,emit=!0){this.service.setActive(this),this.width||(this.cpWidth=this.directiveElementRef.nativeElement.offsetWidth),this.height||(this.height=320),this.setInitialColor(color),this.setColorFromString(color,emit),this.openColorPicker()}closeDialog(){this.closeColorPicker()}setupDialog(instance,elementRef,color,cpWidth,cpHeight,cpDialogDisplay,cpFallbackColor,cpColorMode,cpCmykEnabled,cpAlphaChannel,cpOutputFormat,cpDisableInput,cpIgnoredElements,cpSaveClickOutside,cpCloseClickOutside,cpUseRootViewContainer,cpPosition,cpPositionOffset,cpPositionRelativeToArrow,cpPresetLabel,cpPresetColors,cpPresetColorsClass,cpMaxPresetColorsLength,cpPresetEmptyMessage,cpPresetEmptyMessageClass,cpOKButton,cpOKButtonClass,cpOKButtonText,cpCancelButton,cpCancelButtonClass,cpCancelButtonText,cpAddColorButton,cpAddColorButtonClass,cpAddColorButtonText,cpRemoveColorButtonClass,cpEyeDropper,cpTriggerElement,cpExtraTemplate){this.setInitialColor(color),this.setColorMode(cpColorMode),this.isIE10=detectIE()===10,this.directiveInstance=instance,this.directiveElementRef=elementRef,this.cpDisableInput=cpDisableInput,this.cpCmykEnabled=cpCmykEnabled,this.cpAlphaChannel=cpAlphaChannel,this.cpOutputFormat=cpOutputFormat,this.cpDialogDisplay=cpDialogDisplay,this.cpIgnoredElements=cpIgnoredElements,this.cpSaveClickOutside=cpSaveClickOutside,this.cpCloseClickOutside=cpCloseClickOutside,this.useRootViewContainer=cpUseRootViewContainer,this.width=this.cpWidth=parseInt(cpWidth,10),this.height=this.cpHeight=parseInt(cpHeight,10),this.cpPosition=cpPosition,this.cpPositionOffset=parseInt(cpPositionOffset,10),this.cpOKButton=cpOKButton,this.cpOKButtonText=cpOKButtonText,this.cpOKButtonClass=cpOKButtonClass,this.cpCancelButton=cpCancelButton,this.cpCancelButtonText=cpCancelButtonText,this.cpCancelButtonClass=cpCancelButtonClass,this.cpEyeDropper=cpEyeDropper,this.fallbackColor=cpFallbackColor||"#fff",this.setPresetConfig(cpPresetLabel,cpPresetColors),this.cpPresetColorsClass=cpPresetColorsClass,this.cpMaxPresetColorsLength=cpMaxPresetColorsLength,this.cpPresetEmptyMessage=cpPresetEmptyMessage,this.cpPresetEmptyMessageClass=cpPresetEmptyMessageClass,this.cpAddColorButton=cpAddColorButton,this.cpAddColorButtonText=cpAddColorButtonText,this.cpAddColorButtonClass=cpAddColorButtonClass,this.cpRemoveColorButtonClass=cpRemoveColorButtonClass,this.cpTriggerElement=cpTriggerElement,this.cpExtraTemplate=cpExtraTemplate,cpPositionRelativeToArrow||(this.dialogArrowOffset=0),cpDialogDisplay==="inline"&&(this.dialogArrowSize=0,this.dialogArrowOffset=0),cpOutputFormat==="hex"&&cpAlphaChannel!=="always"&&cpAlphaChannel!=="forced"&&(this.cpAlphaChannel="disabled")}setColorMode(mode){switch(mode.toString().toUpperCase()){case"1":case"C":case"COLOR":this.cpColorMode=1;break;case"2":case"G":case"GRAYSCALE":this.cpColorMode=2;break;case"3":case"P":case"PRESETS":this.cpColorMode=3;break;default:this.cpColorMode=1}}setInitialColor(color){this.initialColor=color}setPresetConfig(cpPresetLabel,cpPresetColors){this.cpPresetLabel=cpPresetLabel,this.cpPresetColors=cpPresetColors}setColorFromString(value,emit=!0,update46=!0){let hsva;this.cpAlphaChannel==="always"||this.cpAlphaChannel==="forced"?(hsva=this.service.stringToHsva(value,!0),!hsva&&!this.hsva&&(hsva=this.service.stringToHsva(value,!1))):hsva=this.service.stringToHsva(value,!1),!hsva&&!this.hsva&&(hsva=this.service.stringToHsva(this.fallbackColor,!1)),hsva&&(this.hsva=hsva,this.sliderH=this.hsva.h,this.cpOutputFormat==="hex"&&this.cpAlphaChannel==="disabled"&&(this.hsva.a=1),this.updateColorPicker(emit,update46))}onResize(){this.position==="fixed"?this.setDialogPosition():this.cpDialogDisplay!=="inline"&&this.closeColorPicker()}onDragEnd(slider){this.directiveInstance.sliderDragEnd({slider,color:this.outputColor})}onDragStart(slider){this.directiveInstance.sliderDragStart({slider,color:this.outputColor})}onMouseDown(event2){this.show&&!this.isIE10&&this.cpDialogDisplay==="popup"&&event2.target!==this.directiveElementRef.nativeElement&&!this.isDescendant(this.elRef.nativeElement,event2.target)&&!this.isDescendant(this.directiveElementRef.nativeElement,event2.target)&&this.cpIgnoredElements.filter(item=>item===event2.target).length===0&&this.ngZone.run(()=>{this.cpSaveClickOutside?this.directiveInstance.colorSelected(this.outputColor):(this.hsva=null,this.setColorFromString(this.initialColor,!1),this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor),this.directiveInstance.colorCanceled()),this.cpCloseClickOutside&&this.closeColorPicker()})}onAcceptColor(event2){event2.stopPropagation(),this.outputColor&&this.directiveInstance.colorSelected(this.outputColor),this.cpDialogDisplay==="popup"&&this.closeColorPicker()}onCancelColor(event2){this.hsva=null,event2.stopPropagation(),this.directiveInstance.colorCanceled(),this.setColorFromString(this.initialColor,!0),this.cpDialogDisplay==="popup"&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.initialColor,!0),this.closeColorPicker())}onEyeDropper(){if(!this.eyeDropperSupported)return;new window.EyeDropper().open().then(eyeDropperResult=>{this.setColorFromString(eyeDropperResult.sRGBHex,!0)})}onFormatToggle(change){let availableFormats=this.dialogInputFields.length-(this.cpCmykEnabled?0:1),nextFormat=((this.dialogInputFields.indexOf(this.format)+change)%availableFormats+availableFormats)%availableFormats;this.format=this.dialogInputFields[nextFormat]}onColorChange(value){this.hsva.s=value.s/value.rgX,this.hsva.v=value.v/value.rgY,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"lightness",value:this.hsva.v,color:this.outputColor}),this.directiveInstance.sliderChanged({slider:"saturation",value:this.hsva.s,color:this.outputColor})}onHueChange(value){this.hsva.h=value.v/value.rgX,this.sliderH=this.hsva.h,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"hue",value:this.hsva.h,color:this.outputColor})}onValueChange(value){this.hsva.v=value.v/value.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"value",value:this.hsva.v,color:this.outputColor})}onAlphaChange(value){this.hsva.a=value.v/value.rgX,this.updateColorPicker(),this.directiveInstance.sliderChanged({slider:"alpha",value:this.hsva.a,color:this.outputColor})}onHexInput(value){if(value===null)this.updateColorPicker();else{value&&value[0]!=="#"&&(value="#"+value);let validHex=/^#([a-f0-9]{3}|[a-f0-9]{6})$/gi;this.cpAlphaChannel==="always"&&(validHex=/^#([a-f0-9]{3}|[a-f0-9]{6}|[a-f0-9]{8})$/gi);let valid=validHex.test(value);valid&&(value.length<5&&(value="#"+value.substring(1).split("").map(c=>c+c).join("")),this.cpAlphaChannel==="forced"&&(value+=Math.round(this.hsva.a*255).toString(16)),this.setColorFromString(value,!0,!1)),this.directiveInstance.inputChanged({input:"hex",valid,value,color:this.outputColor})}}onRedInput(value){let rgba=this.service.hsvaToRgba(this.hsva),valid=!isNaN(value.v)&&value.v>=0&&value.v<=value.rg;valid&&(rgba.r=value.v/value.rg,this.hsva=this.service.rgbaToHsva(rgba),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"red",valid,value:rgba.r,color:this.outputColor})}onBlueInput(value){let rgba=this.service.hsvaToRgba(this.hsva),valid=!isNaN(value.v)&&value.v>=0&&value.v<=value.rg;valid&&(rgba.b=value.v/value.rg,this.hsva=this.service.rgbaToHsva(rgba),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"blue",valid,value:rgba.b,color:this.outputColor})}onGreenInput(value){let rgba=this.service.hsvaToRgba(this.hsva),valid=!isNaN(value.v)&&value.v>=0&&value.v<=value.rg;valid&&(rgba.g=value.v/value.rg,this.hsva=this.service.rgbaToHsva(rgba),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"green",valid,value:rgba.g,color:this.outputColor})}onHueInput(value){let valid=!isNaN(value.v)&&value.v>=0&&value.v<=value.rg;valid&&(this.hsva.h=value.v/value.rg,this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"hue",valid,value:this.hsva.h,color:this.outputColor})}onValueInput(value){let valid=!isNaN(value.v)&&value.v>=0&&value.v<=value.rg;valid&&(this.hsva.v=value.v/value.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"value",valid,value:this.hsva.v,color:this.outputColor})}onAlphaInput(value){let valid=!isNaN(value.v)&&value.v>=0&&value.v<=value.rg;valid&&(this.hsva.a=value.v/value.rg,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"alpha",valid,value:this.hsva.a,color:this.outputColor})}onLightnessInput(value){let hsla=this.service.hsva2hsla(this.hsva),valid=!isNaN(value.v)&&value.v>=0&&value.v<=value.rg;valid&&(hsla.l=value.v/value.rg,this.hsva=this.service.hsla2hsva(hsla),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"lightness",valid,value:hsla.l,color:this.outputColor})}onSaturationInput(value){let hsla=this.service.hsva2hsla(this.hsva),valid=!isNaN(value.v)&&value.v>=0&&value.v<=value.rg;valid&&(hsla.s=value.v/value.rg,this.hsva=this.service.hsla2hsva(hsla),this.sliderH=this.hsva.h,this.updateColorPicker()),this.directiveInstance.inputChanged({input:"saturation",valid,value:hsla.s,color:this.outputColor})}onCyanInput(value){!isNaN(value.v)&&value.v>=0&&value.v<=value.rg&&(this.cmyk.c=value.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"cyan",valid:!0,value:this.cmyk.c,color:this.outputColor})}onMagentaInput(value){!isNaN(value.v)&&value.v>=0&&value.v<=value.rg&&(this.cmyk.m=value.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"magenta",valid:!0,value:this.cmyk.m,color:this.outputColor})}onYellowInput(value){!isNaN(value.v)&&value.v>=0&&value.v<=value.rg&&(this.cmyk.y=value.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"yellow",valid:!0,value:this.cmyk.y,color:this.outputColor})}onBlackInput(value){!isNaN(value.v)&&value.v>=0&&value.v<=value.rg&&(this.cmyk.k=value.v,this.updateColorPicker(!1,!0,!0)),this.directiveInstance.inputChanged({input:"black",valid:!0,value:this.cmyk.k,color:this.outputColor})}onAddPresetColor(event2,value){event2.stopPropagation(),this.cpPresetColors.filter(color=>color===value).length||(this.cpPresetColors=this.cpPresetColors.concat(value),this.directiveInstance.presetColorsChanged(this.cpPresetColors))}onRemovePresetColor(event2,value){event2.stopPropagation(),this.cpPresetColors=this.cpPresetColors.filter(color=>color!==value),this.directiveInstance.presetColorsChanged(this.cpPresetColors)}openColorPicker(){this.show||(this.show=!0,this.hidden=!0,setTimeout(()=>{this.hidden=!1,this.setDialogPosition(),this.cdRef.detectChanges()},0),this.directiveInstance.stateChanged(!0),this.isIE10||this.ngZone.runOutsideAngular(()=>{SUPPORTS_TOUCH?document.addEventListener("touchstart",this.listenerMouseDown):document.addEventListener("mousedown",this.listenerMouseDown)}),window.addEventListener("resize",this.listenerResize))}closeColorPicker(){this.show&&(this.show=!1,this.directiveInstance.stateChanged(!1),this.isIE10||(SUPPORTS_TOUCH?document.removeEventListener("touchstart",this.listenerMouseDown):document.removeEventListener("mousedown",this.listenerMouseDown)),window.removeEventListener("resize",this.listenerResize),this.cdRef.destroyed||this.cdRef.detectChanges())}updateColorPicker(emit=!0,update46=!0,cmykInput=!1){if(this.sliderDimMax){this.cpColorMode===2&&(this.hsva.s=0);let hue,hsla,rgba,lastOutput=this.outputColor;if(hsla=this.service.hsva2hsla(this.hsva),this.cpCmykEnabled?(cmykInput?(rgba=this.service.cmykToRgb(this.service.normalizeCMYK(this.cmyk)),this.hsva=this.service.rgbaToHsva(rgba)):(rgba=this.service.hsvaToRgba(this.hsva),this.cmyk=this.service.denormalizeCMYK(this.service.rgbaToCmyk(rgba))),rgba=this.service.denormalizeRGBA(rgba),this.sliderH=this.hsva.h):rgba=this.service.denormalizeRGBA(this.service.hsvaToRgba(this.hsva)),hue=this.service.denormalizeRGBA(this.service.hsvaToRgba(new Hsva(this.sliderH||this.hsva.h,1,1,1))),update46){this.hslaText=new Hsla(Math.round(hsla.h*360),Math.round(hsla.s*100),Math.round(hsla.l*100),Math.round(hsla.a*100)/100),this.rgbaText=new Rgba(rgba.r,rgba.g,rgba.b,Math.round(rgba.a*100)/100),this.cpCmykEnabled&&(this.cmykText=new Cmyk(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k,Math.round(this.cmyk.a*100)/100));let allowHex8=this.cpAlphaChannel==="always";this.hexText=this.service.rgbaToHex(rgba,allowHex8),this.hexAlpha=this.rgbaText.a}if(this.cpOutputFormat==="auto"&&this.format!==ColorFormats.RGBA&&this.format!==ColorFormats.CMYK&&this.format!==ColorFormats.HSLA&&this.hsva.a<1&&(this.format=this.hsva.a<1?ColorFormats.RGBA:ColorFormats.HEX),this.hueSliderColor="rgb("+hue.r+","+hue.g+","+hue.b+")",this.alphaSliderColor="rgb("+rgba.r+","+rgba.g+","+rgba.b+")",this.outputColor=this.service.outputFormat(this.hsva,this.cpOutputFormat,this.cpAlphaChannel),this.selectedColor=this.service.outputFormat(this.hsva,"rgba",null),this.format!==ColorFormats.CMYK)this.cmykColor="";else if(this.cpAlphaChannel==="always"||this.cpAlphaChannel==="enabled"||this.cpAlphaChannel==="forced"){let alpha=Math.round(this.cmyk.a*100)/100;this.cmykColor=`cmyka(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k},${alpha})`}else this.cmykColor=`cmyk(${this.cmyk.c},${this.cmyk.m},${this.cmyk.y},${this.cmyk.k})`;this.slider=new SliderPosition((this.sliderH||this.hsva.h)*this.sliderDimMax.h-8,this.hsva.s*this.sliderDimMax.s-8,(1-this.hsva.v)*this.sliderDimMax.v-8,this.hsva.a*this.sliderDimMax.a-8),emit&&lastOutput!==this.outputColor&&(this.cpCmykEnabled&&this.directiveInstance.cmykChanged(this.cmykColor),this.directiveInstance.colorChanged(this.outputColor))}}setDialogPosition(){if(this.cpDialogDisplay==="inline")this.position="relative";else{let position="static",transform="",style2,parentNode=null,transformNode=null,node=this.directiveElementRef.nativeElement.parentNode,dialogHeight=this.dialogElement.nativeElement.offsetHeight;for(;node!==null&&node.tagName!=="HTML";){if(style2=window.getComputedStyle(node),position=style2.getPropertyValue("position"),transform=style2.getPropertyValue("transform"),position!=="static"&&parentNode===null&&(parentNode=node),transform&&transform!=="none"&&transformNode===null&&(transformNode=node),position==="fixed"){parentNode=transformNode;break}node=node.parentNode}let boxDirective=this.createDialogBox(this.directiveElementRef.nativeElement,position!=="fixed");if(this.useRootViewContainer||position==="fixed"&&(!parentNode||parentNode instanceof HTMLUnknownElement))this.top=boxDirective.top,this.left=boxDirective.left;else{parentNode===null&&(parentNode=node);let boxParent=this.createDialogBox(parentNode,position!=="fixed");this.top=boxDirective.top-boxParent.top,this.left=boxDirective.left-boxParent.left}position==="fixed"&&(this.position="fixed");let usePosition=this.cpPosition,dialogBounds=this.dialogElement.nativeElement.getBoundingClientRect();if(this.cpPosition==="auto"){let triggerBounds=this.cpTriggerElement.nativeElement.getBoundingClientRect();usePosition=calculateAutoPositioning(dialogBounds,triggerBounds)}switch(this.arrowTop=usePosition==="top"?dialogHeight-1:void 0,this.cpArrowPosition=void 0,usePosition){case"top":this.top-=dialogHeight+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*boxDirective.width-this.dialogArrowOffset;break;case"bottom":this.top+=boxDirective.height+this.dialogArrowSize,this.left+=this.cpPositionOffset/100*boxDirective.width-this.dialogArrowOffset;break;case"top-left":case"left-top":this.top-=dialogHeight-boxDirective.height+boxDirective.height*this.cpPositionOffset/100,this.left-=this.cpWidth+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"top-right":case"right-top":this.top-=dialogHeight-boxDirective.height+boxDirective.height*this.cpPositionOffset/100,this.left+=boxDirective.width+this.dialogArrowSize-2-this.dialogArrowOffset;break;case"left":case"bottom-left":case"left-bottom":this.top+=boxDirective.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left-=this.cpWidth+this.dialogArrowSize-2;break;case"right":case"bottom-right":case"right-bottom":default:this.top+=boxDirective.height*this.cpPositionOffset/100-this.dialogArrowOffset,this.left+=boxDirective.width+this.dialogArrowSize-2;break}let windowInnerHeight=window.innerHeight,windowInnerWidth=window.innerWidth,elRefClientRect=this.elRef.nativeElement.getBoundingClientRect();this.top+dialogBounds.height>windowInnerHeight&&(this.top=windowInnerHeight-dialogBounds.height,this.cpArrowPosition=elRefClientRect.x/2-20),this.left+dialogBounds.width>windowInnerWidth&&(this.left=windowInnerWidth-dialogBounds.width,this.cpArrowPosition=elRefClientRect.x/2-20),this.cpUsePosition=usePosition}}isDescendant(parent,child){let node=child.parentNode;for(;node!==null;){if(node===parent)return!0;node=node.parentNode}return!1}createDialogBox(element,offset3){let{top:top2,left:left2}=element.getBoundingClientRect();return{top:top2+(offset3?window.pageYOffset:0),left:left2+(offset3?window.pageXOffset:0),width:element.offsetWidth,height:element.offsetHeight}}};__publicField(_ColorPickerComponent,"\u0275fac",function(__ngFactoryType__){return new(__ngFactoryType__||_ColorPickerComponent)(\u0275\u0275directiveInject(NgZone),\u0275\u0275directiveInject(ElementRef),\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(DOCUMENT),\u0275\u0275directiveInject(PLATFORM_ID),\u0275\u0275directiveInject(ColorPickerService))}),__publicField(_ColorPickerComponent,"\u0275cmp",\u0275\u0275defineComponent({type:_ColorPickerComponent,selectors:[["color-picker"]],viewQuery:function(rf,ctx){if(rf&1&&(\u0275\u0275viewQuery(_c018,7),\u0275\u0275viewQuery(_c16,7),\u0275\u0275viewQuery(_c24,7)),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.dialogElement=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.hueSlider=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.alphaSlider=_t.first)}},hostBindings:function(rf,ctx){rf&1&&\u0275\u0275listener("keyup.esc",function($event){return ctx.handleEsc($event)},!1,\u0275\u0275resolveDocument)("keyup.enter",function($event){return ctx.handleEnter($event)},!1,\u0275\u0275resolveDocument)},decls:30,vars:51,consts:[["dialogPopup",""],["hueSlider",""],["valueSlider",""],["alphaSlider",""],[1,"color-picker",3,"click"],[3,"left","class","top",4,"ngIf"],["class","saturation-lightness",3,"slider","rgX","rgY","background-color","newValue","dragStart","dragEnd",4,"ngIf"],[1,"hue-alpha","box"],[1,"left"],[1,"selected-color-background"],[1,"selected-color",3,"click"],["class","eyedropper-icon","xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",4,"ngIf"],["type","button",3,"class","disabled","click",4,"ngIf"],[1,"right"],["style","height: 16px;",4,"ngIf"],[1,"hue",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"cursor"],[1,"value",3,"newValue","dragStart","dragEnd","slider","rgX"],[1,"alpha",3,"newValue","dragStart","dragEnd","slider","rgX"],["class","cmyk-text",3,"display",4,"ngIf"],["class","hsla-text",3,"display",4,"ngIf"],["class","rgba-text",3,"display",4,"ngIf"],["class","hex-text",3,"hex-alpha","display",4,"ngIf"],["class","value-text",4,"ngIf"],["class","type-policy",4,"ngIf"],["class","preset-area",4,"ngIf"],["class","button-area",4,"ngIf"],["class","extra-template",4,"ngIf"],[1,"saturation-lightness",3,"newValue","dragStart","dragEnd","slider","rgX","rgY"],["xmlns","http://www.w3.org/2000/svg","height","24px","viewBox","0 0 24 24","width","24px","fill","#000000",1,"eyedropper-icon"],["d","M0 0h24v24H0V0z","fill","none"],["d","M17.66 5.41l.92.92-2.69 2.69-.92-.92 2.69-2.69M17.67 3c-.26 0-.51.1-.71.29l-3.12 3.12-1.93-1.91-1.41 1.41 1.42 1.42L3 16.25V21h4.75l8.92-8.92 1.42 1.42 1.41-1.41-1.92-1.92 3.12-3.12c.4-.4.4-1.03.01-1.42l-2.34-2.34c-.2-.19-.45-.29-.7-.29zM6.92 19L5 17.08l8.06-8.06 1.92 1.92L6.92 19z"],["type","button",3,"click","disabled"],[2,"height","16px"],[1,"cmyk-text"],[1,"box"],["type","number","pattern","[0-9]*","min","0","max","100",3,"keyup.enter","newValue","text","rg","value"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"text","rg","value","keyup.enter","newValue",4,"ngIf"],[4,"ngIf"],["type","number","pattern","[0-9]+([\\.,][0-9]{1,2})?","min","0","max","1","step","0.1",3,"keyup.enter","newValue","text","rg","value"],[1,"hsla-text"],["type","number","pattern","[0-9]*","min","0","max","360",3,"keyup.enter","newValue","text","rg","value"],[1,"rgba-text"],["type","number","pattern","[0-9]*","min","0","max","255",3,"keyup.enter","newValue","text","rg","value"],[1,"hex-text"],[3,"blur","keyup.enter","newValue","text","value"],[1,"value-text"],[1,"type-policy"],[1,"type-policy-arrow",3,"click"],[1,"preset-area"],[1,"preset-label"],[3,"class",4,"ngIf"],["class","preset-color",3,"backgroundColor","click",4,"ngFor","ngForOf"],[1,"preset-color",3,"click"],[3,"class","click",4,"ngIf"],[3,"click"],[1,"button-area"],["type","button",3,"class","click",4,"ngIf"],["type","button",3,"click"],[1,"extra-template"],[4,"ngTemplateOutlet"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",4,0),\u0275\u0275listener("click",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275template(2,ColorPickerComponent_div_2_Template,1,7,"div",5)(3,ColorPickerComponent_div_3_Template,2,8,"div",6),\u0275\u0275elementStart(4,"div",7)(5,"div",8),\u0275\u0275element(6,"div",9),\u0275\u0275elementStart(7,"div",10),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.eyeDropperSupported&&ctx.cpEyeDropper&&ctx.onEyeDropper())}),\u0275\u0275template(8,ColorPickerComponent__svg_svg_8_Template,3,0,"svg",11),\u0275\u0275elementEnd(),\u0275\u0275template(9,ColorPickerComponent_button_9_Template,2,5,"button",12),\u0275\u0275elementEnd(),\u0275\u0275elementStart(10,"div",13),\u0275\u0275template(11,ColorPickerComponent_div_11_Template,1,0,"div",14),\u0275\u0275elementStart(12,"div",15,1),\u0275\u0275listener("newValue",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.onHueChange($event))})("dragStart",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.onDragStart("hue"))})("dragEnd",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.onDragEnd("hue"))}),\u0275\u0275element(14,"div",16),\u0275\u0275elementEnd(),\u0275\u0275elementStart(15,"div",17,2),\u0275\u0275listener("newValue",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.onValueChange($event))})("dragStart",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.onDragStart("value"))})("dragEnd",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.onDragEnd("value"))}),\u0275\u0275element(17,"div",16),\u0275\u0275elementEnd(),\u0275\u0275elementStart(18,"div",18,3),\u0275\u0275listener("newValue",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.onAlphaChange($event))})("dragStart",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.onDragStart("alpha"))})("dragEnd",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.onDragEnd("alpha"))}),\u0275\u0275element(20,"div",16),\u0275\u0275elementEnd()()(),\u0275\u0275template(21,ColorPickerComponent_div_21_Template,17,12,"div",19)(22,ColorPickerComponent_div_22_Template,14,10,"div",20)(23,ColorPickerComponent_div_23_Template,14,10,"div",21)(24,ColorPickerComponent_div_24_Template,8,7,"div",22)(25,ColorPickerComponent_div_25_Template,9,3,"div",23)(26,ColorPickerComponent_div_26_Template,3,0,"div",24)(27,ColorPickerComponent_div_27_Template,6,3,"div",25)(28,ColorPickerComponent_div_28_Template,3,2,"div",26)(29,ColorPickerComponent_div_29_Template,2,1,"div",27),\u0275\u0275elementEnd()}rf&2&&(\u0275\u0275styleProp("display",ctx.show?"block":"none")("visibility",ctx.hidden?"hidden":"visible")("top",ctx.top,"px")("left",ctx.left,"px")("position",ctx.position)("height",ctx.cpHeight,"px")("width",ctx.cpWidth,"px"),\u0275\u0275classProp("open",ctx.show),\u0275\u0275advance(2),\u0275\u0275property("ngIf",ctx.cpDialogDisplay==="popup"),\u0275\u0275advance(),\u0275\u0275property("ngIf",(ctx.cpColorMode||1)===1),\u0275\u0275advance(4),\u0275\u0275styleProp("background-color",ctx.selectedColor)("cursor",ctx.eyeDropperSupported&&ctx.cpEyeDropper?"pointer":null),\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx.eyeDropperSupported&&ctx.cpEyeDropper),\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx.cpAddColorButton),\u0275\u0275advance(2),\u0275\u0275property("ngIf",ctx.cpAlphaChannel==="disabled"),\u0275\u0275advance(),\u0275\u0275styleProp("display",(ctx.cpColorMode||1)===1?"block":"none"),\u0275\u0275property("rgX",1),\u0275\u0275advance(2),\u0275\u0275styleProp("left",ctx.slider==null?null:ctx.slider.h,"px"),\u0275\u0275advance(),\u0275\u0275styleProp("display",(ctx.cpColorMode||1)===2?"block":"none"),\u0275\u0275property("rgX",1),\u0275\u0275advance(2),\u0275\u0275styleProp("right",ctx.slider==null?null:ctx.slider.v,"px"),\u0275\u0275advance(),\u0275\u0275styleProp("display",ctx.cpAlphaChannel==="disabled"?"none":"block")("background-color",ctx.alphaSliderColor),\u0275\u0275property("rgX",1),\u0275\u0275advance(2),\u0275\u0275styleProp("left",ctx.slider==null?null:ctx.slider.a,"px"),\u0275\u0275advance(),\u0275\u0275property("ngIf",!ctx.cpDisableInput&&(ctx.cpColorMode||1)===1),\u0275\u0275advance(),\u0275\u0275property("ngIf",!ctx.cpDisableInput&&(ctx.cpColorMode||1)===1),\u0275\u0275advance(),\u0275\u0275property("ngIf",!ctx.cpDisableInput&&(ctx.cpColorMode||1)===1),\u0275\u0275advance(),\u0275\u0275property("ngIf",!ctx.cpDisableInput&&(ctx.cpColorMode||1)===1),\u0275\u0275advance(),\u0275\u0275property("ngIf",!ctx.cpDisableInput&&(ctx.cpColorMode||1)===2),\u0275\u0275advance(),\u0275\u0275property("ngIf",!ctx.cpDisableInput&&(ctx.cpColorMode||1)===1),\u0275\u0275advance(),\u0275\u0275property("ngIf",(ctx.cpPresetColors==null?null:ctx.cpPresetColors.length)||ctx.cpAddColorButton),\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx.cpOKButton||ctx.cpCancelButton),\u0275\u0275advance(),\u0275\u0275property("ngIf",ctx.cpExtraTemplate))},dependencies:[NgForOf,NgIf,NgTemplateOutlet,TextDirective,SliderDirective],styles:[`.color-picker{position:absolute;z-index:1000;width:230px;height:auto;border:#777 solid 1px;cursor:default;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:#fff}.color-picker *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;font-size:11px}.color-picker input{width:0;height:26px;min-width:0;font-size:13px;text-align:center;color:#000}.color-picker input:invalid,.color-picker input:-moz-ui-invalid,.color-picker input:-moz-submit-invalid{box-shadow:none}.color-picker input::-webkit-inner-spin-button,.color-picker input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.color-picker .arrow{position:absolute;z-index:999999;width:0;height:0;border-style:solid}.color-picker .arrow.arrow-top{left:8px;border-width:10px 5px;border-color:#777 rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-bottom{top:-20px;left:8px;border-width:10px 5px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) #777 rgba(0,0,0,0)}.color-picker .arrow.arrow-top-left,.color-picker .arrow.arrow-left-top{right:-21px;bottom:8px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-top-right,.color-picker .arrow.arrow-right-top{bottom:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .arrow.arrow-left,.color-picker .arrow.arrow-left-bottom,.color-picker .arrow.arrow-bottom-left{top:8px;right:-21px;border-width:5px 10px;border-color:rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0) #777}.color-picker .arrow.arrow-right,.color-picker .arrow.arrow-right-bottom,.color-picker .arrow.arrow-bottom-right{top:8px;left:-20px;border-width:5px 10px;border-color:rgba(0,0,0,0) #777 rgba(0,0,0,0) rgba(0,0,0,0)}.color-picker .cursor{position:relative;width:16px;height:16px;border:#222 solid 2px;border-radius:50%;cursor:default}.color-picker .box{display:flex;padding:4px 8px}.color-picker .left{position:relative;padding:16px 8px}.color-picker .right{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;padding:12px 8px}.color-picker .button-area{padding:0 16px 16px;text-align:right}.color-picker .button-area button{margin-left:8px}.color-picker .preset-area{padding:4px 15px}.color-picker .preset-area .preset-label{overflow:hidden;width:100%;padding:4px;font-size:11px;white-space:nowrap;text-align:left;text-overflow:ellipsis;color:#555}.color-picker .preset-area .preset-color{position:relative;display:inline-block;width:18px;height:18px;margin:4px 6px 8px;border:#a9a9a9 solid 1px;border-radius:25%;cursor:pointer}.color-picker .preset-area .preset-empty-message{min-height:18px;margin-top:4px;margin-bottom:8px;font-style:italic;text-align:center}.color-picker .hex-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .hex-text .box{padding:0 24px 8px 8px}.color-picker .hex-text .box div{float:left;-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;text-align:center;color:#555;clear:left}.color-picker .hex-text .box input{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;padding:1px;border:#a9a9a9 solid 1px}.color-picker .hex-alpha .box div:first-child,.color-picker .hex-alpha .box input:first-child{flex-grow:3;margin-right:8px}.color-picker .cmyk-text,.color-picker .hsla-text,.color-picker .rgba-text,.color-picker .value-text{width:100%;padding:4px 8px;font-size:11px}.color-picker .cmyk-text .box,.color-picker .hsla-text .box,.color-picker .rgba-text .box{padding:0 24px 8px 8px}.color-picker .value-text .box{padding:0 8px 8px}.color-picker .cmyk-text .box div,.color-picker .hsla-text .box div,.color-picker .rgba-text .box div,.color-picker .value-text .box div{-webkit-flex:1 1 auto;-ms-flex:1 1 auto;flex:1 1 auto;margin-right:8px;text-align:center;color:#555}.color-picker .cmyk-text .box div:last-child,.color-picker .hsla-text .box div:last-child,.color-picker .rgba-text .box div:last-child,.color-picker .value-text .box div:last-child{margin-right:0}.color-picker .cmyk-text .box input,.color-picker .hsla-text .box input,.color-picker .rgba-text .box input,.color-picker .value-text .box input{float:left;-webkit-flex:1;-ms-flex:1;flex:1;padding:1px;margin:0 8px 0 0;border:#a9a9a9 solid 1px}.color-picker .cmyk-text .box input:last-child,.color-picker .hsla-text .box input:last-child,.color-picker .rgba-text .box input:last-child,.color-picker .value-text .box input:last-child{margin-right:0}.color-picker .hue-alpha{align-items:center;margin-bottom:3px}.color-picker .hue{direction:ltr;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwkUFWbCCAAAAFxJREFUaN7t0kEKg0AQAME2x83/n2qu5qCgD1iDhCoYdpnbQC9bbY1qVO/jvc6k3ad91s7/7F1/csgPrujuQ17BDYSFsBAWwgJhISyEBcJCWAgLhIWwEBYIi2f7Ar/1TCgFH2X9AAAAAElFTkSuQmCC)}.color-picker .value{direction:rtl;width:100%;height:16px;margin-bottom:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAACTklEQVR42u3SYUcrABhA4U2SkmRJMmWSJklKJiWZZpKUJJskKUmaTFImKZOUzMySpGRmliRNJilJSpKSJEtmSpIpmWmSdO736/6D+x7OP3gUCoWCv1cqlSQlJZGcnExKSgqpqamkpaWRnp5ORkYGmZmZqFQqsrKyyM7OJicnh9zcXNRqNXl5eeTn56PRaCgoKKCwsJCioiK0Wi3FxcWUlJRQWlpKWVkZ5eXlVFRUUFlZiU6no6qqiurqampqaqitraWurg69Xk99fT0GgwGj0UhDQwONjY00NTXR3NxMS0sLra2ttLW10d7ejslkwmw209HRQWdnJ11dXXR3d9PT00Nvby99fX309/czMDDA4OAgFouFoaEhrFYrw8PDjIyMMDo6ytjYGDabjfHxcSYmJpicnGRqagq73c709DQzMzPMzs4yNzfH/Pw8DocDp9OJy+XC7XazsLDA4uIiS0tLLC8vs7KywurqKmtra3g8HrxeLz6fD7/fz/r6OhsbG2xubrK1tcX29jaBQICdnR2CwSC7u7vs7e2xv7/PwcEBh4eHHB0dcXx8zMnJCaenp5ydnXF+fs7FxQWXl5dcXV1xfX3Nzc0Nt7e33N3dEQqFuL+/5+HhgXA4TCQS4fHxkaenJ56fn3l5eeH19ZVoNMrb2xvv7+98fHwQi8WIx+N8fn6SSCT4+vri+/ubn58ffn9/+VcKgSWwBJbAElgCS2AJLIElsASWwBJYAktgCSyBJbAElsASWAJLYAksgSWwBJbAElgCS2AJLIElsP4/WH8AmJ5Z6jHS4h8AAAAASUVORK5CYII=)}.color-picker .alpha{direction:ltr;width:100%;height:16px;border:none;cursor:pointer;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAQCAYAAAD06IYnAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwYQlZMa3gAAAWVJREFUaN7tmEGO6jAQRCsOArHgBpyAJYGjcGocxAm4A2IHpmoWE0eBH+ezmFlNvU06shJ3W6VEelWMUQAIIF9f6qZpimsA1LYtS2uF51/u27YVAFZVRUkEoGHdPV/sIcbIEIIkUdI/9Xa7neyv61+SWFUVAVCSct00TWn2fv6u3+Ecfd3tXzy/0+nEUu+SPjo/kqzrmiQpScN6v98XewfA8/lMkiLJ2WxGSUopcT6fM6U0NX9/frfbjev1WtfrlZfLhYfDQQHG/AIOlnGwjINlHCxjHCzjYJm/TJWdCwquJXseFFzGwDNNeiKMOJTO8xQdDQaeB29+K9efeLaBo9J7vdvtJj1RjFFjfiv7qv95tjx/7leSQgh93e1ffMeIp6O+YQjho/N791t1XVOSSI7N//K+4/GoxWLBx+PB5/Op5XLJ+/3OlJJWqxU3m83ovv5iGf8KjYNlHCxjHCzjYBkHy5gf5gusvQU7U37jTAAAAABJRU5ErkJggg==)}.color-picker .type-policy{position:absolute;top:218px;right:12px;width:16px;height:24px;background-size:8px 16px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAgCAYAAAAffCjxAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAACewAAAnsB01CO3AAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAIASURBVEiJ7ZY9axRRFIafsxMStrLQJpAgpBFhi+C9w1YSo00I6RZ/g9vZpBf/QOr4GyRgkSKNSrAadsZqQGwCkuAWyRZJsySwvhZ7N/vhzrgbLH3Ld8597jlzz50zJokyxXH8DqDVar0qi6v8BbItqSGpEcfxdlmsFWXkvX8AfAVWg3UKPEnT9GKujMzsAFgZsVaCN1VTQd77XUnrgE1kv+6935268WRpzrnHZvYRWC7YvC3pRZZl3wozqtVqiyH9IgjAspkd1Gq1xUJQtVrdB9ZKIAOthdg/Qc65LUk7wNIMoCVJO865rYFhkqjX6/d7vV4GPJwBMqofURS5JEk6FYBer/eeYb/Mo9WwFnPOvQbeAvfuAAK4BN4sAJtAG/gJIElmNuiJyba3EGNmZiPeZuEVmVell/Y/6N+CzDn3AXhEOOo7Hv/3BeAz8IzQkMPnJbuPx1wC+yYJ7/0nYIP5S/0FHKdp+rwCEEXRS/rf5Hl1Gtb2M0iSpCOpCZzPATmX1EySpHMLAsiy7MjMDoHrGSDXZnaYZdnRwBh7J91utwmczAA6CbG3GgPleX4jqUH/a1CktqRGnuc3hSCAMB32gKspkCtgb3KCQMmkjeP4WNJThrNNZval1WptTIsv7JtQ4tmIdRa8qSoEpWl6YWZNoAN0zKxZNPehpLSBZv2t+Q0CJ9lLnARQLAAAAABJRU5ErkJggg==);background-repeat:no-repeat;background-position:center}.color-picker .type-policy .type-policy-arrow{display:block;width:100%;height:50%}.color-picker .selected-color{position:absolute;top:16px;left:8px;width:40px;height:40px;border:1px solid #a9a9a9;border-radius:50%}.color-picker .selected-color-background{width:40px;height:40px;border-radius:50%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAh0lEQVRYR+2W0QlAMQgD60zdfwOdqa8TmI/wQMr5K0I5bZLIzLOa2nt37VVVbd+dDx5obgCC3KBLwJ2ff4PnVidkf+ucIhw80HQaCLo3DMH3CRK3iFsmAWVl6hPNDwt8EvNE5q+YuEXcMgkonVM6SdyCoEvAnZ8v1Hjx817MilmxSUB5rdLJDycZgUAZUch/AAAAAElFTkSuQmCC)}.color-picker .saturation-lightness{direction:ltr;width:100%;height:130px;border:none;cursor:pointer;touch-action:manipulation;background-size:100% 100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAACCCAYAAABSD7T3AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4AIWDwksPWR6lgAAIABJREFUeNrtnVuT47gRrAHN+P//Or/61Y5wONZ7mZ1u3XAeLMjJZGZVgdKsfc5xR3S0RIIUW+CHzCpc2McYo7XGv3ex7UiZd57rjyzzv+v+33X/R/+3r/f7vR386Y+TvKNcf/wdhTLPcv9qU2wZd74uth0t1821jkIZLPcsI/6nWa4XvutquU0Z85mnx80S/ZzgpnLnOtHNt7/ofx1TKXcSNzN/7qbMQ3ju7rNQmMYYd/4s2j9aa+P+gGaMcZrb1M/tdrvf7/d2v99P9/t93O/3cbvdxu12G9frdVwul3E+n8c///nP+2+//Xb66aefxl//+tfx5z//2YK5Al2rgvf4UsbpdGrB52bAvArXpuzjmiqAVSGz5eDmGYXzhbAZmCrnmzddpUU+8Y1dAOYeXCtDUwVwV7YCGH6uAmyMcZ9l5vkUaBPGMUZ7/J5w/792/fvv9Xq93263dr/fTxPECeME8nK5jM/Pz/HTTz/dv337dvrll1/GP/7xj/G3v/1t/OUvfwkVswongjdOp9PzH3U3D3zmWGnZVXn4jCqs7wC2BKP4/8tAzkZsoWx6XrqeHZymvp4ABCBJhTQwKfDT8gzrZCIqi5AhiACjBfEB2rP8/X63MM7f6/V6v9/v7Xa7bYC83W7jcrlsVHIq5ffv30+//fbb+OWXX8ZPP/00/v73v4+ff/75JSvbeu+bL2WMMaFbAlpBNM85QX+ct6qoSqkPAwuQlBVKqGNFSUOAA3Bmu7gC5hNOd15nSwvAOUW7C4giUCV8Sgn5L9hNFIqTsp0GxI0ysioyjAjkY/tGJVEpz+fz+OWXX+7fv38//f777+Pbt2/j119/HT///PP49ddfx8fHRwrmTjV779EXu2px2xhjwtdJZQcAWQIPLPISsMJaSwiD8gzIKrwSyATE5j5nAbR5c1dBUwBlsEWW0h6LqiYsqFPAQxCyRZ3wOSARxmlXMX5k64pQfvv27f75+dk+Pj5OHx8f4/v37+Pbt2/jt99+G9++fRsfHx/jcrmUFLO31gYDWblxRIs/TqfT7ousxJsAxXA2Gc7TA9XdgfdoHbFsj76X2+1WArgI1ageGwA3qupqoHsmcbI6Fu93quggFa9d7LeDtgKfAFHBJ+NEByIkcJ5KervdTmhhGcgJJSZ5vn//fj+fz+18Pp8+Pz/H5+fnmGD+/vvv4/v37+Pj42N8fn6O2+1Ws7JjjP6wraMI5E4RZ8x2vV5TSwkquotV7/d7Tz6HFWsD/qNcdw0CQ3q/321c686TwDVIdbuy73zNldhSHb8I2klZznm+InBS4U6n0302aBFsLhHDAKJVJVglfI9jhvu53W53sLANYNxAiDA6MCeUHx8f9+v12i6XS7tcLqcZW57P5yeY8/fz83Ocz+fnsSmYUyknWEG85WBst9stzSLyMdfr9Qi08iY15UZ0LlDGLhR3o5zK2j7OPUTD0E+nU3tk7Xb/16NFbhloAMuY1zjLUOO3BKeIDe+Z8s3/J4gFo4TM5jPmuRg28foUKKVSwo16TgA5npywcWLHgYl/Pz8/73/605/ab7/91m63W7tcLie0sZj4mao5gTyfz88E0f1+j8EcYzwTPEG2cqjyfHNF0M8fuqEiaOVnRzZZQNh5fwQyHg/HDGfJo89Q1zb/quu5XC6773I2XKfTqd/v9+d3wuqWva/YTdUdEV3fhIv/Viyps6YE3x3r43K5bJQS66zaxVGFsvd+//j4aF+/fm3fv39vt9utff36tf3+++/tdrudvn37ZuNLBaaCMgUzC+rZRiFowxUuJI8YMqcCp9Opq5vagaYU6lGJA1XQqejchw6Cj0Gw5nYBrGw01A2O206n04BGouNNyTfp/FwElhUey6nXrIKw7QQWddxuN2ldL5fL839gSPF8ahu/JvBO48CPSuqMf8Vp9/P53L58+dLu93s7n8/tfr8/39/v9/b5+TkhPJ3P56mQ436/j+/fv+/iSgbzer0+AZx/5+88bv6OMda6S5z6kd21fYC9dxv7cIJJ2d9AOS30fPMzyHiTM8B4DF6XUlYHp4KQW3W+1t77MNB1vGHxWq7Xa7vf78+y5/N5A+H1et29xuP5dbYtyaRu4AksbPq6936fjRzXRxBbPr/b+b18+fKljTHaBBBfn8/n0/1+H1++fBnn8zm0sB8fH5u4cr5GuBhMVk0EEn9RsctgVhM+ixlJtMA23R8B6yysAstBOgFXIKKCMIgToMqNEu2fYMH7ztc732dQKkCj1ytAZtY0Kx8pIr8GGJ+AT3V+2Hirhl++fBmXy2Wz73w+b17P8p+fn8/tUwGVleVkTyUb68DkfayWY4zxNRihU4EpLJPZVrK+u7J4/mgfKqeLW9X2REWlItL1diynbDDb3+jXgYjQqn0rrxWc+NkILP7F7xIbMvx7vV53x40xnlbWJF12ZSag/N0pW6t+ZzmOMzHjajKwDfond78zYTdfq18up97zr2q8v3IioBprRtBl0EZ9og5WBRGOdOHjIjXF7UotFbgOWnXzIJyzYvjG5IYgsmMOxHkz8OsMSrVNWeq5T8DaOcbEv1Od5rbs9aO7YvMet63EkF++fMExq+MRl4/L5bLZN/+ez+fnZ6KazuMqXSQVO5spJXflHAIzes/xJseckRJiDMog9d6VfRrqXMr6KpVV27jRwJacGovOAM1zMdQMnwK1AubK63kdCChvI1C7g0z9nf/D+Xze2Vj8H7Gx4P9duQlsYCrqyN8XqG3Hm/10Oj3jw/n+crlstuM+jPmmxT2dTuPz83Pzt2pn1XsEHX/bnPaVqVmh0xwOt0o6XLLAHePUU203wHfcrspCwmV3TryB5s0Mseeg97x/BwzCjBlbB+pRAPla0BVQuT6V6QHdBlj3d0KG147b+DqxQeUymDO43W4dQar+TIjwmAd0z8/h65vf0/yLv3Pb5XLpru/ydDo9s7ET0I+Pj6dKK9VUEIeKWQWPAOrJ8LKd4vE+t91Y3e7UFlWatg2VwJnb+HPmtvm/sfK59/OaWF3x/eP1UPHvA5DDYDpYXfb0drv1V2DkBkxtw/tEWVVlXWdC9pFYs5/jfh9dS/16vW7s6lTG+TfqsxSJHxkXXq/Xdr1eu4LsfD6P3vsT3N77DkL+zPm5jSdKL4zR3AxQd6rHkLkYlSowsrq7znzu6wSwdsMJOXmA5fBcjxtgMGBYHlr5zokhtsMCTgXLQOW4XC6dEyEMprL8mAQzXRgduix2yZzorxkYsDn3hB1VeMLGsXsVtgl2pW8S3svk0vw7R4hNaHvv4cACl5HFzwIH0Kc6zu4XjDPR/jpAVxWzO1Xk2DDb3vTcxeGU1iWZHkmIDWziWKvirCJ4Dravs6IJ/GG6cTqWdXDy+fArQDVVkLqkVjAoZIITdmmIqXwqa95N3+MGYoZQdRVNO53Y1xRkhO16vY7eu507Ca9lJnbGpxOemQhSw/AQsmmp5zU9BiU8G6wvX76M6/U6Pj4+do0Bz4CpgiknTUeDqwlKBmg3u4OVjrZ1A+rAcgaejWq6eJCvCYFDONSwOgHX4EQRw8lxbzDOdEK6gZ3Hk1b+8g2o1JFtKXyv/fEdTXuWjWXdAZiBp6ADeDrCFiim7B6ZFneeI7Gvm/PMkUDX67W7xI8b0D7/v8dA9qfN5oaCf74WZjH0mf1cmfY1Y0JUFmVrTWu8uzkNcLtEj7u5FXBTkfC6GOA5q8YMxO8KVvF6sAVGdcrUbsKODcQKkLMOMdmlxum642YrPm26AlhZW1YB1R+rrGswE8TaYAWeUMxdf+WjwSvZ2Ef3ytOyfn5+PpVPAaqOn43MtNBqvmjjxbjM4lZjZY4gqNMI5ktaW/sYKNwS+9lFQzGihmMCKPa7+Z0V6Eb0GRmobtpX8JljWu5FMLN5ja6hG9kwQgZqf5+1NH5UxzkFReCdWhJ8XdlGUkxO7HRlYRm4mVO43W7ter12TPJEw/rmEN3L5SKHIWZg9mz+pUoKOYq5bJTJdX2gme1UcxMZQFaEQIlHct32M+Y1BzGkGuzfiyAN9z+ugplZ1symCrDCYYkGxDTpI9RzBy0rHyeDUC1nWaeUaD9n4xkNyYMBDZtzZ3B++fJlY21XFDOcARJlabOyiS3uCpLI9jrZjCDkaVvcCCjwognKShWdzXZWlZMvVTgD8LpqlCLrqgbcB+qYwrgKYpT0ccCqbKyCValkEabn/FynogCrPKfqf51xJ7sGB2ZXcZmxoSOztjx300DZi7a0/2AIR0UlBag9SuDw6KcAzlaB7vHZvWpjK90dyrq6bKyDUZQbR0B05biLQkHIcSUmgIK+SwuqgHCnoio2RQU1yj+BnBy9pphVKLGyC7ZzFK1pxWK+E8IhVCWLN/uLtnUU4ayoYLoaANz8FdtaSvY4pV0BEW2ls61czqllBKpTyKgMAhrZ1cdc1RROtPmvWNkdcKZ7ZKxaWjiPLJMpp7OZKxA+rqG/oJLjxf0pnJlqLoDZo3gyU0mKGys2taKecj/d1C+rJSplBqlTyAqgR+D8KjKlmRL2gtUcAdCtsL+ijCNT1oqqqkH2OHEbG5sDFnUg5Aa+yLou2VU1ptj1S2ZQqv1ORZN9IWzRfgaRBxKoBE8UWyqlJFtrIc0AxNjSjed99CTY/XDfSzCz5M0IZoVEsWnPFNTsl8ooVC1TzbGgqFZNDSgVwKK+1sGDMKqxZCWGVMDysiEr1jVSQJUYwj5iHOlThdHt44SQg9CN+nl8D90NMIgAdgr46JqRiR9I8vRdFvbr17m/yxUMKjNLMiVUADwu2CWGhhi+F55TWM9M9cogzms1dnM4uOF/LAEYWdcqnM7yFmyq3IfwmOROd7Y1iFWtOjoY8To41mTV5IysgFFuRzsbWFGbNIIJCDv1dOo4lZG7jWBwRFtVTKuWyeCByJKOan8oZ3ep9XddNl0tDuaywLz9cXPYeDAA0SpkBO9sbVcTOVWldPv4uyzEkzxHtjvonHoSkFEWNoo1d8DhcQputd2ppNon4BzoAiJ1hBFQg0dVtdbGHHDQWushmNEQukLM2QO1G2Y8bgTXqFhcBJj7EjPgcPts8US8qPpPB/dXznOh5Z438tzH5ec6QgrOKrRRfKmysBmUDB+PhYabMlVPER+GCSITTzr7am2tArH3bgcEzPJm+cr5jJ4NnHNFDVrFXcI5Le9k5Jnw+bedbV+FfRzZIHaOOaOsLY0/7UGs58DjrGwKMIMFIGzOEW1/jGsdAtCN6hEAI4hBe9YXeRROBSVPAVPAqvIM5bx5hVKWAMP6zBRy3iescridVdFBinBxXDnG2GRY2XbCvp1lhvGtO9Bxu5h908XQu42lnSArMFdizMim8uwRCxPGnnOS8lwpnbOiDqTAjsrRN/PcoAScCbaACqVM40ylnjjTBs+bwWlAG23/UKbdkiwKWIQPGzWaczpoSlxPEj822cNWkpS7FyzsDrqpfgpG3jahw2vgbaSQAxuLWZYt7JzyNe8JoZpNAcvDFOdw0wqYT9AK1rZz/DdbSlLPp0ryIxgQJlK9AZlEq7IOXpohg9PIhrCng88JsOxiV4ZWAYfg4sikx/8ky2Z9l862uqwrfscIH8+ugTmVGyiddeVYUgEMn4GZzg14EwIsh9sx2cKKiWXReuOE5gzGOQgdlRKVVdlevqb279Xq0Qnsts2VDaBO0coezsruWtHApu6sKG4IBhN0aGU2kLrMKGRTN3HmbCDwKV14zvkMEDG4QfZVspVlaNU2mhc5TEZ3N1h/zqTheuLpW05ZWTGVjb3dbnNmxKZBnN8JqidaVLKAOyARNLS+MB54Z2+VaqoMLKroVBlngefnTPAcoHNWCSvlfA8CI0HEmBNBnBlXyMrzU7A7WVm94PPqQ2gmqKx+WDGsnvilmcSOBJqOK1nYyAIzuAyesq3UdSK3KfWcYKD95HmfYOU3qser2CtYEUA+FpfqdNvgPBZUBhDrGONRVlQsh8rLcaUCykHG0OOUwTlLBrsh5soEMGezi1E4HRVt1icp5wZEFXdibCkG8Y8vX75sbO4E0iom9z+hjSiOfy3DhpXItpVhE+UGQdvoWjtChmrGHf4YAzKgBNnGtuJxFCeGdhUAfQLLK8kBYAP6gvFJZajMG3Xkycy8KuC0q4Eyymwtwdxdv2M0mIBtK0LKnf640j00Auq4gUkdWGlhs22qJc6dZCsL19oxnlTJG4SYVRIGpD8TPFBuM6OElbS1pldid4mGAyN6ZIupbC5bXJN9fdpbThSxLUaI8IG1XIYBxW3Tjs6KQosKcxfxcQmdnwRGM10GnFcCy2XYunLMyAkdgk4mePiczsLygthcBut6goOqS7YVFXADLjaosB6s6ofcZWAZSIRYqSUkizYwttYab3vUOQ9w2HRxIIg8WwRVeE68xi4UtL3zRphxplzwuZrcqYCq1I3jPI5dnJIygEohMbPqVJSzrwzxBJTs5zN+ReUSgxikPQVF3JVBeNQxbHENrEMNvEdFZVV9lH9+ORGEsNZQpyTNc4C3AG7XF4ngzq+DrO2zbuaaOXgdaFcdkEotoSFBVX2qJ0C8OWZeG4KGlpghA0XfTOPCqV2qqwQ26QWfF2PMLhI2w1lVAa2aPsYd0za25MQRwgcZN6uQDCi+ZxiD4XEM2kZxOT41FnZnaRlcpZouzlRqqdbQVWopQoSB58RV50lBNrHi/AwXS5LrwDVlpY3Fc3ByiYGc52Trist6kOXdwInAQtJpp5QchyaquYOV7Su+fxVMaV3dc0RE2S6mUY0gLt2pMcYqrKIQ9w2l1gpQUMtQYcmmbt5DTNxdhnUCjQqtbK9SUSzvrC0mmhhE1e2FS2+oxypy/ZASutkmtjx3vcBC24PX65nbqkBCRhfjS9kIYPnee8cMagVOhI/3T1fAmdtAWZsCswTJCkQVNa0qWKSKPOpHAUhD9DrbVcyoYkwqhvh17vYAayXLQyKGYdxlUDFp494rBXRjYgO17DDYetNIUj/ezp6S0lnlpEwsWmJMkOwsKXeZKEAjIHn0EQJISaRBcO6UMINz7p/bEjjnw4ft+xmDvksxX4G2rIris7qaeKwAFMP2Oi7n4criuZwtpSUwpfLxSnORSrIqusc5ZFaXysqRWjiZ2DyAWEIL35tVSoQElFACjOeGGSE7AHEQgdo/LSvCOgGBvkxsmDbvlS3Fp5vhaB2TAGqRKrKKMrhLVpaGzEVjZ0OQxDhaCTA+QyRR1d15aQzrJntL3RibsipjG6jlgL4yqbS0sNYg1e84vhbBVrElK64CUcWYXDfKxhpIuxiVJZUxsbMy/uRBKTNRQ4kQ3LdRYLS0rJjRPlTPqY6gdJsEDc+aQXAn+HgsNUCbRuF0Oj0zwnA7bWDkbhO5Ens00qeQhS1laBMl5M/cAaxsLF8rKyql+Tf7ELLEGu/ixiimdCvo0TjfpjKwaggen4eh5v7LokLKbLuyvHhcZG8dhGrEDx7Hg93ZppJF7qBqO3iVveXEDQNInzeoe8Yq6ePaZBZ2JviM3W2UAGotekRCAGq4EkF1X3DOnR11yRsBL1tRa0PVcZiNFXZ2c34FskvomInQQ6lzpJoZbJxk43NwKJFBquJSsrByHydxKOnTxQASBmS3j+JMnsHSla3Ec6K9VWoJVn9zfjwOM7hqYAAqJQwE2a3nA48J2QGegRkpZNivSY+ys3EkKd4oJIwsvIHl3cWgLt5k4NH6OmtLWdpurOkwEMupYc7eMtDRhOcI2ui5JhVIzXzLyto/GAPuZoyo8wkoduVgJglCt7OhGbgID4Mq4si+63zUS1FuFFXFlqyaj2emHlLMcBqYu0FMuR28BbB7lOxRMSiCQXFhCKuwkhZ+pYDiGSgbsKKV8MiSRsuHSIWM9rklRiIlZZuqXjsQK8ooYJMgq3JKWVkhHbhsVxFUzthOWPkYijcbx54IKsSdT+uLr3crGKyoYgFiGR9iBk4kfloUX+JIlQRQqabmpgnhqtpQpb6RVQ1WH5DnrS4hEoGZqaerQ2dhFbz8XePxShmDbo70eISjoorO2vK8SJXI4SUmEU4zWKDzUDtWTYw7xXlbSTEj4FRg7zKnKoGRALv0Gs9Tgc1BpCywGZRQAtqVz2xrBcAMzEpfZwFSa2G5W0QBFjSMapWAEFa3HcGN7CxDzECyIkJ97qwrqWNTWVo876PPsjPkj2wvgroM5lLZKMETKVql/CvnWVFiFa/SzJUQwkoZsr67Y6vlSRV3/2tmNTOY3vnaxYwMuoPKqdzR1w7IqHymlPxaAThfU7Ko2ZXYj4AYJHL+kNdKwRQYESTRa5fsUZ/rVC1TMTyWVyYoqNtuzaHsMyv2tvoarxdfqwYgU1axFo/cnql1FGsqK+uAROV8BX4GU8WcZTATi2q7Qcyi0O0V+GhWBMNRUkn8H1SsWVE5By3Gi0ECqUeJoBfAtDa4amkdXG37AGP5Ggeb84p7UazpoKRzdFzeQ8HkoHGxprKy/Hpm5t12p47J6xTYDEz7uINEXSuxYXvFskYAc+ySxH9sf5ftKzU6IbwVBcUGg5e5FMCEXSErZR0wGayV19woM9guPjTqJdVTqR4uE4nJnLldWVkECCZLd2VLF+xtamex7IpiriSDUpvrpn9lrwGMCHyppMH+ps6LILsuFGUj1XEOXiqbqSHPUKnClpWV68kqtURVNDY4TNaocykoYeTU5ngGEQa/S1DnnE4AeXMcKjHPAmFVjCBENaeyLVNHfr3px8xUstJ94hIpfH4HKE/eDaArK6lSyVVFbdt1gxTIVk3pppVlFXi4pEhVBTObquohU85MLXn1iahvUkHJjSCMc01tLFveVVBx0DodM6jftCu7DOtIzYxrc0qp1JGP2ayYFz2Gb6HvMrO8cnGtV6Gjm3uImSfD2GpWK6uowbZGMxFKQCo1pOMtcMXFpRst+hXGoAomF3sSTBGgTglbBKWwsQ3tZqaYSp0Z1CimRDWFcCJUPYJ00BI5FkKYNoifuQxmN88SWVXWLMaUqqqgC0BmQJR6sk3u9NCf6jYLXxAfqsYEgVLAhRY2AtgtflZNFmFyhxdrLkAdWlk4D88M2ixHyepIdhMHrG/iR1ZGtq0MGpbDbRPYOXeSY1M6Ny4ZstvGSktK+XbFPATj2D371saPEsAMXhXrsZ0km/XStkhhMyBfsa6uXFZe2VCe+YMr1+GKgwrQyNYq1VRrB+EizAow6NsdNKcyVEkYeM73ys6q4kAHp6BiFklTkIrVC5oYV7uzwOGCz4UJ0Stq2lWMJy4wtb+RetL6tZFicnJmBw5UjCvXXMZVJX2MQkbf+XN5EWd78Vz8/JEsMZTBiKNzsm1inLRUQ74H4NidaqI68j5sAFgxcRveC7ieLJXfQYxjZZ2CsiWFewZXJmBIlZ1tdtrX4hSuateKso/RZOtOKW2nmq1oTzeK6dRWAWu2NRVb4hq0SXm1GvtugHrbr5IXqmSktg5CuDE2MSlPwsY5kNE2Wp3AqiZbWVLAxiBF+2iBZbuNj6MB6rsMLC7FyasaYDyo7KkoPyEtw3pEMXfPvxAJi2jAQQgjrz0rLIZSWZlIoNhwd5xK4AR9mYNjWAaLrnuImJeBVN9zBORObVvbr+mTTfFSEJLSRnHo7hEJoIi8MFqjxmvgmF5URZz4zLFgZZ8Ctu2X7ggVccKm9gVxIsOHqxXgNMKnFWZYnf1dBnOhayXq17QwFlWW09eNKyVJFmXqaONGA5aCegMbJ3UUkGY1ic3nKWgjq8qfVYGQG1gRt6rs62a6HiqqUOqdesK5NmX4nGofJoiE1d0dF9lVVkvT1/kEEaaCoYOwFpcVcoLM+7669PxC9rWqktH0sWUYld0VCpuBZ/stVRcGgy9WX2+U1Qthi9SzAqSxzZsy+OiFzBYnySGV6Gku44rD8BCOZBV3BvD5+AKRHNwMEsB6EzHnJpkTAeiUlEGkcECeB6GDZTp5YEJTlvdrknxYjTllMkfNtXwDjM7uVjK5JXUUn43rrqpK2jytaxHW0M5G8DC8rtHMYs7KSgduVQMGTYFqFvVS6rkD3sDJ46afdYFwoq11AOKCBLhvwoUgc8IGANycR6knZrdJPdsuxnyjfd3FovTlRMdEdtOl5CMV5EHsXQBis7TOwvIDZaGj2Vnpbh7cpK63VwYEMLwqbjzyl699sawFFkF1yqjUU31HfC6sW1ZFVFuXVXVgz9keEaw0ys1lWfm+azQAQSWA+hKYVfsZjPncAcUB9oIayy/UZXRNckDGji77GsWbvBo6tPrWPqOyVkBUq+INeqpzNdYs/u0ifh5qmpqIW+33JVSUcwY70KL4U9lYdU6ljtSls7lmfi9g3YzeQfVkaGFaV3ODCnaD2N8wsEDFklE3RzM3ZghdYkWHsszq70FIecnKkVkt8ezMzRq9bkGuKojRLBVSod3Y1yPqKgYW7JRQTPVyy5xIYLjOgxgT52RKJUY1dOrIiRd4futQx/A5AcSmEjz0vFWrkLzvbWAu9HOWbGgxFk1VNTpnBKk6TgwisI/HcxYXP1uAWO72ULFlBTq+aSu2VTUs6hrxM2CF+hEor1VIA9ZmFUaab1lSSgZsVs4sxzHlVLoJHr9H4DhONTkI1XC0/wiY2NoWAG5RlnHFnq6oLccpQddMuJ/O17JVA5OHLi0BqCztq7Y1++ucCd98qLI8MIHBV/cKjxQTme3hFBS3MyCqnDsuym2o80HjvFFTtrURmNaGJsmVahImjTsUXKtQZTAVs7Mvv8/+fzUrZAXcLJ6M4koe6XP0b6SmWWNDzyUpQ8bl+LtWx4tuqZ36cRYV3yuVxPNwvIiqiQCSmu7srgTzR6nkyhpCarXwFy1vGd5iP2cY06lFr5Njhhg1Y6+NB28ftbK83s8rf7kLJbKwDFPbLg25a0AdZJEiqr5phixKMDlRUtcssq1hriLqGoH+zeNgVm9OemjsETV8JdF0NHnkIFxWY1OB4Yrp7rtWJ7NgAAAPXklEQVQ3oNs5nplyVf8u2FoLu1JrHveaZWQjqAkshtFa2gzsSG3Zpkbvg3HafF9slPPlldjFlK80Gysm8Mr4MPhneNWENPGjAIpmilTPATdTRTXlCBYHYAQuPwA36xIpWtGN4q3Y2MhiGsUpuSSnlEJRD8PorC7CFYVw+F51qThgabxsTxWzCGY0ZSsb3lfqAy0OPNjNy8xiQQKsHYFQ2HBZVvVbBuq3m1oWKajqaonsM6uZUr6CjXWNZ0l5E3h3jURma6kP3MJIiy1Lm+kahQq41N2iZja5sjtlLYNZHZrH6qUGm4vMbDp6Rw2CFmvuyFkrBcCyMtFqBaECmsHoK9BZ2LA/lJcRqSaDqnaWbrZdGaz3DLgIvBln4woGztbyJGqslwxkhhHrTjTYFXCtOoKS8uLdofVdAbOylGU6nlYpXWZts4nXBq6WxJitMNokHUJnbnJplQm+aGpY2a5GMV2QD1hRubBPFKdumf5OHkLHz0F9luE5kjBjRa0nFE5CUGqHw32MmjZ6xkgINVnSnZ1VZStK2qKlRaLlQgK7uTq7JFXJwM+3SOEKyhZNI+tJ0I5qMYy9k2qJD7dVWdqKXa0CKNR0Ccjg+B2IYu2fcBZJZkMFgM11r0X92wilghFGgzVnexlqB7xL9mS29SiYUVY2nXOZjNBRsyDsQPRWW5hrZ4XcdC4HVWRbjgJr4sFofK5SzjQ7rhI1UebdPdEbj6sqIvTZQZ5va08rABsAW0UxeWytAk7A2KJ9ZpxzCioB24XFtYAeXYxr6anSqhLgppEqWbGwLunTgrV+IjWlL29ljaAl4EQMGsErp4apeZiquwRXLXAqOCeru32mmydc6oWTSWpFAGdzeTB8RTHVMEtlM90CbbQCYhPjq3egYr1FGdYIQjiuDGZ5zZ/AzobKGOyLxti6c4Rwtv2anyWlLICnlLhxJRXt6A5ebDBWFNONbxWZ2d02mnu4S9YECpeppV1zSWRBWxHYzVIv1CXSouwqqX3jBBBDZdYQbpTQW4ZQlS8r5kH4suSRmg2++3JN10x1PaAmEkmtYlEdeGpJEM6kOuCqCR22oSujj5IV2HdT0zj5prLKTjXFAPjdQlyq7xIBxAQP5yMczG4VxAKw0n6ilZ2QBce2pLulkuxxqnoIzFfgqyqjil9S1VNwBrFmeyeops8yOjZUybZdfS8CuaTIJumzs5tODaNtLpFDQ/PcJGweLhmeL1nB0KqiUDScsiUVD89Di3HtrKtSULw3RLiygZD+7sF8JTObgYsrGvDNUFRGl1iy0Ll1YkUc2aJYMog920I8qW6YDCg1Mqk0JHJFKXkbgbRreI+qpYNOZHrVcDUba7pjsphSJNtK6upgRNAVoOS0mugBeN4bIZgHhuPZ/s1ENaX6KsVr+YNrh1Nb7ipR0PE5zbNRegCbrHRUw6Yf07dLBJl1f8KB9as2V1nNqAsl62LBBhehwalerkHmB1JFIEZKSEusdl5JQj1nJlHXSCF342gJ9CYGrXelknJIXqVP8sD+qtplCR3XH2qfKq0ygMp+KnVkKxNlZ8m2YkIlVMiCnXUwl7qznBKSvQz3m3Pt6oQbXO5b5FixCh/fHxUQW/AEcK6zCNqKQnL9sywqmKuwvqSYzT/aPVNNpVyhvRW21aqciCsjdWvBwILUvh5VyCzbWoC1pJjJ680CWsl+udKB6T5RwG1mlohnlpbg47iz5U9ha0FGtmRLFYBtO99y97Ap0z+ZDTAog6kSLZsMHg/IFkkgp6CpvU2U0cYVSdnmkjwBdOmXbxTWNWzuIbipMioVxEckZEoahSOiy2M3K0jcC1LhVDwaqG0ZvkcWqCnrG4GIxykrqlbWdw6LQyBaZR8HmLRIhQWsHswD42ZXVLNkf9l+FlW0HVQ2lwFsC/Z1FdzlQR0KaPfo+Fdfu+/dwVRICu1CGR7AEIiAhc+AZUF0kOBaPxmUqg4i64vQnU4nFDYJ9Nz+1fVXveH9qmr+kPILx8oKcRV/BFbxbE0JMT0kSD4w6L/lNY8ocsqagVdU3A3MjxhxcGuqzsPH4irpaow1q6OyrVjvp9Npc59E91LldboYVzJWdimWfAW2SNEKcDaX2FmBLLA/uKxlmhh613Is1URQApbKfttwxL02q6Onx5pQxSbPojAg+v5hAnN6LHVRDXIsvKtRjiS0qJUyZTAXVbAK82ElFJWaQdVoqUC1Unt7BVaTQudM6SuqexjQJN4+0icaxv/utbKv83ETbT8H8gjcOKxOJmbUa6OOVXht3dFY6rHv9XoNzFLceEA1o8+pKm0LAHPHZ2rYKjFq0hfZFixsqHJgD3eD5n+U0kb1mFjXkn2lvMSSOsNE/CdIAKF0Sytq6urOHUN5gwg4GZosgbmggM5ucra2qrS2Ig1cbiBBcxYzgzUDNLCvL8GbZXNp6ORy3LmS+Kk83zRIAK6A1ioKa2I9NapIuiUFdfC9766PFZUtqUr6KbWk+zZU1a/ZrIXEztrjTOfz7hwKziCeXIaraHtbZIMz+2pGgazCmw4qWAFvEdhodYp0Xq0pV7G1YWYWbO4qhGq42+Z8BYtrLWvluNPpZAeaFFS1vubPgbgxsqcpnAaszBovKaFoDQ8BGtjfUOl4NAG2nmQV04feJgumvX2fsrQEWZghL0JnVdYkn3DOZIeRN86RqPWCmsvGVqEMRnwxQAxwS8EMYo3IzmY2+BCcLp4MKiuyuhImamlbZFcNoNl7tp+RHd18ZjQIRKyXdFRhN98/hyKqwXWNo7O1wiaXoHN108REZZWEq6grnIfjzeg8jdRf1XEL4kkXa5bBjKxoKaljBjeHlVxQ4GaycpW4lDOAKtnTxHAtOfzOtZwHAM7sqVXkV6yu6kap1nHkXKqWF/4XHqjenNKqBjpR3l1ch3Ejg1+EsgdQhsdG0B4FM9sWAVWpuAyiwTPleZxt9VyZVS2qXfReWqTAilpr9ApoWTjxymit7NwV4JTriZyOA9B0k7HFfULourmKYHVnRQvqGL5HMHdqFcR2qWpmcK6eTwx2dipWrviDilr+fKWq3OWRWdHKwA4eu8wjchbeRzFilqjjZN3ufCpfkJ0/scVpnYk6L0PI77lxdWCZ87WiWm7B/AGquQSnujGKsB8CJmiJq8q1pKIVWyqOiTK66r18BN8r74/AE71fdC3yPS2MxdOpnE1tlVxD9JmVOoggN+r4PjAXVFPa3Eg5jVJGFVUGNolH20GVrUB7BOySWq6WqYQdWR92pcFMYMwckbSgCKCqD67DiiWu1g8MQC9ByfcFqW1L+jL714qNCuznoSxt0da2gtWN1G8F0BK0NN0nuimelUF9dIdAfjO44UT3CjQLoUeLHJFTO3gmpRuIIOvwBQCbqNeo3qtZ9iF6xVK13GRlo4zqimq+CGdTiR1uRY8oqgE02hZBa79kZXPMquxRHKla2saZWN4mRqZUj0vLCKhkjKnqOQHNuSZVJoKvAqS1wpEquvWDC1B2ypwrCPsRMEPVTODMLJMDv6qeKXwi2JYV5Sq4qKyvgGsHCLiuj2jR59V8gMqSJ2FJZRXEHVRHj3sFPrct6OpqlW1GpatQdt0GvwfM6n63InsGVFhJGaBqgqqIV6IsXllZgySPq4R3bnt3wi5cv+cN2yqQLW1T95KYVsWWtKk4cB9W53WQQflQYR6Wl4HaJZjvVE0D5yvq+RKgZCs5qdBEP5sD94cAvQLlSgNaSMAtHx88BuNQ41zdFsX30zKbcs0MLD/ihkpQzl0wiTqKLTfbKmCmyYICnK0IbaieC4CG9iSyLQ7cIMGQwau6TKoq60Apl3WN40LZpca1CKKK9VQyyIEn8w0F8F6CL2h8o3ixGwC7s7EWzCOqmcApYxYD4jsAzVS0sl2t98pA7vrKophCVSonbYpgH6mvSn24pTBV4sdtV3BtMq5k82y+IADvUJ0uAlkCVTxIaPm+UNu/qkV4F1TzHXCGrXIAqItBKypqK99VtAOVs64O4ObX7pHLVCpYHcRmwvLR7TvYAKBBN58LGVzDuFz+hQbWgncQyCZAk+VbsPSouf93261iZgmfCpwRbAvqmSqriU2PwhjaoOyYqtIegVXViTsmyta6bGySpY3gyRrpIyAeaWDDxtpsXwKyalMDKNP7YBXMqEskUsi2uC8FNAPxAKTVfT1o6VzM0E0jF+1rWcUuHvdyg7vgoFplX8HpvHpMCOMRUPHzZkInsqlFKNX/EIO52E0SxSzOwob2VmRLW5D1XIU0rbgM1AzWgyC7fe8G7xUAK/taEBat7luqtyP7EmsaJQOj5F+mrnZfCuYCfBUAWwShyd6pMY/vAHG1UqOYpbI/gy5T0CMKm+UO3gFuC85dgfDVeguPDfITrIBLsLrcgdh3CFgFZjaKJ4Iv3F8ANEqvuxR1tVKOgLoCa1jxboBAkj6v7j/icFbA7f4rfRnQDLRViG13i0vqBQrYVqBbADZT0ZpiHoSzvQpopKIFS3sE1HfBWlHXd0H7LnArqvougMtljHBgZnh3Eoz/BKjLML4Z2Aq0+hEJr9jaVUBbvNzCIUiroC7AWmmFw4o5AK3MtB5VypZMSFgs05JyGVwlwBqsEGAAa2ZU1CjUexXGsE4rKriilBvFzOKKo3AuAroE6QFQU3u8YpNXwS5k+1TZt5UrwouN4KiUEw+k3ZWDp1RXHNRqXb21Ts39945yZSg3VnZFNQ9CF3XeZyr5DgBXKiwCMa2MxeTDYXgP1Fsf9QNKZc0k81RJk3r6EQ3rCmBVyLL75EjZ1pIVDHoFtiOAHoB0BdTVylqBsKKKS+AeBXJVLY+CXASuGvO/Auq7GuEjDfGKg1oKa1z/dmmi9I9SUGNhl0AtfulHAawoYrnSkmNXAVuGEhrEVXvUF+A5Ct2PqNOjDetyna4CmeUolmeXLN4Aq7C5Sj10Q7yjgl+t6CNxSRHmI5X+CpwreYB3Qfdqna4q21KdBuc4GoZsn49ZOOiVinwHqK9WzjvgeweEh2AU5+vtxZ9Cd9Wqkh49V18E5oj6vVyn0RStAyGIO5edXRKd5B0VGVXq2yr3xYp+5Ut+C4QJ4P1N339pQMjRejj4vb/Dcr6rQc3O/0rjmtZpeYCBiCHfCemRbNhbK/pNUPc3wfKy5f2D7OlL3/uPhve/oU4T0F8f+VNM2vyoiv0jK+KHQfdHq+0bncz4oz73/+Y6LbKw1o/5B7eOf1Rl/0du9B9tn/9bvrf/j+v0h6ttn2tp/r/4819y4/zv5391uvzzfwDifz6phT1MPgAAAABJRU5ErkJggg==)}.color-picker .cp-add-color-button-class{position:absolute;display:inline;padding:0;margin:3px -3px;border:0;cursor:pointer;background:transparent}.color-picker .cp-add-color-button-class:hover{text-decoration:underline}.color-picker .cp-add-color-button-class:disabled{cursor:not-allowed;color:#999}.color-picker .cp-add-color-button-class:disabled:hover{text-decoration:none}.color-picker .cp-remove-color-button-class{position:absolute;top:-5px;right:-5px;display:block;width:10px;height:10px;border-radius:50%;cursor:pointer;text-align:center;background:#fff;box-shadow:1px 1px 5px #333}.color-picker .cp-remove-color-button-class:before{content:"x";position:relative;bottom:3.5px;display:inline-block;font-size:10px}.color-picker .eyedropper-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);fill:#fff;mix-blend-mode:exclusion}
|
|
663
663
|
`],encapsulation:2}));let ColorPickerComponent2=_ColorPickerComponent;return ColorPickerComponent2})(),NG_DEV_MODE=!1,ColorPickerDirective=(()=>{let _ColorPickerDirective=class _ColorPickerDirective{constructor(injector,cfr,appRef,vcRef,elRef,_service){__publicField(this,"injector");__publicField(this,"cfr");__publicField(this,"appRef");__publicField(this,"vcRef");__publicField(this,"elRef");__publicField(this,"_service");__publicField(this,"dialog");__publicField(this,"dialogCreated",!1);__publicField(this,"ignoreChanges",!1);__publicField(this,"cmpRef");__publicField(this,"viewAttachedToAppRef",!1);__publicField(this,"colorPicker");__publicField(this,"cpWidth","230px");__publicField(this,"cpHeight","auto");__publicField(this,"cpToggle",!1);__publicField(this,"cpDisabled",!1);__publicField(this,"cpIgnoredElements",[]);__publicField(this,"cpFallbackColor","");__publicField(this,"cpColorMode","color");__publicField(this,"cpCmykEnabled",!1);__publicField(this,"cpOutputFormat","auto");__publicField(this,"cpAlphaChannel","enabled");__publicField(this,"cpDisableInput",!1);__publicField(this,"cpDialogDisplay","popup");__publicField(this,"cpSaveClickOutside",!0);__publicField(this,"cpCloseClickOutside",!0);__publicField(this,"cpUseRootViewContainer",!1);__publicField(this,"cpPosition","auto");__publicField(this,"cpPositionOffset","0%");__publicField(this,"cpPositionRelativeToArrow",!1);__publicField(this,"cpOKButton",!1);__publicField(this,"cpOKButtonText","OK");__publicField(this,"cpOKButtonClass","cp-ok-button-class");__publicField(this,"cpCancelButton",!1);__publicField(this,"cpCancelButtonText","Cancel");__publicField(this,"cpCancelButtonClass","cp-cancel-button-class");__publicField(this,"cpEyeDropper",!1);__publicField(this,"cpPresetLabel","Preset colors");__publicField(this,"cpPresetColors");__publicField(this,"cpPresetColorsClass","cp-preset-colors-class");__publicField(this,"cpMaxPresetColorsLength",6);__publicField(this,"cpPresetEmptyMessage","No colors added");__publicField(this,"cpPresetEmptyMessageClass","preset-empty-message");__publicField(this,"cpAddColorButton",!1);__publicField(this,"cpAddColorButtonText","Add color");__publicField(this,"cpAddColorButtonClass","cp-add-color-button-class");__publicField(this,"cpRemoveColorButtonClass","cp-remove-color-button-class");__publicField(this,"cpArrowPosition",0);__publicField(this,"cpExtraTemplate");__publicField(this,"cpInputChange",new EventEmitter(!0));__publicField(this,"cpToggleChange",new EventEmitter(!0));__publicField(this,"cpSliderChange",new EventEmitter(!0));__publicField(this,"cpSliderDragEnd",new EventEmitter(!0));__publicField(this,"cpSliderDragStart",new EventEmitter(!0));__publicField(this,"colorPickerOpen",new EventEmitter(!0));__publicField(this,"colorPickerClose",new EventEmitter(!0));__publicField(this,"colorPickerCancel",new EventEmitter(!0));__publicField(this,"colorPickerSelect",new EventEmitter(!0));__publicField(this,"colorPickerChange",new EventEmitter(!1));__publicField(this,"cpCmykColorChange",new EventEmitter(!0));__publicField(this,"cpPresetColorsChange",new EventEmitter(!0));this.injector=injector,this.cfr=cfr,this.appRef=appRef,this.vcRef=vcRef,this.elRef=elRef,this._service=_service}handleClick(){this.inputFocus()}handleFocus(){this.inputFocus()}handleInput(event2){this.inputChange(event2)}ngOnDestroy(){this.cmpRef!=null&&(this.viewAttachedToAppRef&&this.appRef.detachView(this.cmpRef.hostView),this.cmpRef.destroy(),this.cmpRef=null,this.dialog=null)}ngOnChanges(changes){changes.cpToggle&&!this.cpDisabled&&(changes.cpToggle.currentValue?this.openDialog():changes.cpToggle.currentValue||this.closeDialog()),changes.colorPicker&&(this.dialog&&!this.ignoreChanges&&(this.cpDialogDisplay==="inline"&&this.dialog.setInitialColor(changes.colorPicker.currentValue),this.dialog.setColorFromString(changes.colorPicker.currentValue,!1),this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"&&this.cmpRef.changeDetectorRef.detectChanges()),this.ignoreChanges=!1),(changes.cpPresetLabel||changes.cpPresetColors)&&this.dialog&&this.dialog.setPresetConfig(this.cpPresetLabel,this.cpPresetColors)}openDialog(){if(this.dialogCreated)this.dialog&&(this.cmpRef.instance.cpAlphaChannel=this.cpAlphaChannel,this.dialog.openDialog(this.colorPicker));else{let vcRef=this.vcRef;if(this.dialogCreated=!0,this.viewAttachedToAppRef=!1,this.cpUseRootViewContainer&&this.cpDialogDisplay!=="inline"){let classOfRootComponent=this.appRef.componentTypes[0],appInstance=this.injector.get(classOfRootComponent,Injector.NULL);appInstance!==Injector.NULL?(vcRef=appInstance.vcRef||appInstance.viewContainerRef||this.vcRef,NG_DEV_MODE&&vcRef===this.vcRef&&console.warn("You are using cpUseRootViewContainer, but the root component is not exposing viewContainerRef!Please expose it by adding 'public vcRef: ViewContainerRef' to the constructor.")):this.viewAttachedToAppRef=!0}let compFactory=this.cfr.resolveComponentFactory(ColorPickerComponent);if(this.viewAttachedToAppRef)this.cmpRef=compFactory.create(this.injector),this.appRef.attachView(this.cmpRef.hostView),document.body.appendChild(this.cmpRef.hostView.rootNodes[0]);else{let injector=Injector.create({providers:[],parent:vcRef.injector});this.cmpRef=vcRef.createComponent(compFactory,0,injector,[])}this.cmpRef.instance.setupDialog(this,this.elRef,this.colorPicker,this.cpWidth,this.cpHeight,this.cpDialogDisplay,this.cpFallbackColor,this.cpColorMode,this.cpCmykEnabled,this.cpAlphaChannel,this.cpOutputFormat,this.cpDisableInput,this.cpIgnoredElements,this.cpSaveClickOutside,this.cpCloseClickOutside,this.cpUseRootViewContainer,this.cpPosition,this.cpPositionOffset,this.cpPositionRelativeToArrow,this.cpPresetLabel,this.cpPresetColors,this.cpPresetColorsClass,this.cpMaxPresetColorsLength,this.cpPresetEmptyMessage,this.cpPresetEmptyMessageClass,this.cpOKButton,this.cpOKButtonClass,this.cpOKButtonText,this.cpCancelButton,this.cpCancelButtonClass,this.cpCancelButtonText,this.cpAddColorButton,this.cpAddColorButtonClass,this.cpAddColorButtonText,this.cpRemoveColorButtonClass,this.cpEyeDropper,this.elRef,this.cpExtraTemplate),this.dialog=this.cmpRef.instance,this.vcRef!==vcRef&&this.cmpRef.changeDetectorRef.detectChanges()}}closeDialog(){this.dialog&&this.cpDialogDisplay==="popup"&&this.dialog.closeDialog()}cmykChanged(value){this.cpCmykColorChange.emit(value)}stateChanged(state){this.cpToggleChange.emit(state),state?this.colorPickerOpen.emit(this.colorPicker):this.colorPickerClose.emit(this.colorPicker)}colorChanged(value,ignore=!0){this.ignoreChanges=ignore,this.colorPickerChange.emit(value)}colorSelected(value){this.colorPickerSelect.emit(value)}colorCanceled(){this.colorPickerCancel.emit()}inputFocus(){let element=this.elRef.nativeElement,ignored=this.cpIgnoredElements.filter(item=>item===element);!this.cpDisabled&&!ignored.length&&(typeof document<"u"&&element===document.activeElement?this.openDialog():!this.dialog||!this.dialog.show?this.openDialog():this.closeDialog())}inputChange(event2){this.dialog?this.dialog.setColorFromString(event2.target.value,!0):(this.colorPicker=event2.target.value,this.colorPickerChange.emit(this.colorPicker))}inputChanged(event2){this.cpInputChange.emit(event2)}sliderChanged(event2){this.cpSliderChange.emit(event2)}sliderDragEnd(event2){this.cpSliderDragEnd.emit(event2)}sliderDragStart(event2){this.cpSliderDragStart.emit(event2)}presetColorsChanged(value){this.cpPresetColorsChange.emit(value)}};__publicField(_ColorPickerDirective,"\u0275fac",function(__ngFactoryType__){return new(__ngFactoryType__||_ColorPickerDirective)(\u0275\u0275directiveInject(Injector),\u0275\u0275directiveInject(ComponentFactoryResolver$1),\u0275\u0275directiveInject(ApplicationRef),\u0275\u0275directiveInject(ViewContainerRef),\u0275\u0275directiveInject(ElementRef),\u0275\u0275directiveInject(ColorPickerService))}),__publicField(_ColorPickerDirective,"\u0275dir",\u0275\u0275defineDirective({type:_ColorPickerDirective,selectors:[["","colorPicker",""]],hostBindings:function(rf,ctx){rf&1&&\u0275\u0275listener("click",function(){return ctx.handleClick()})("focus",function(){return ctx.handleFocus()})("input",function($event){return ctx.handleInput($event)})},inputs:{colorPicker:"colorPicker",cpWidth:"cpWidth",cpHeight:"cpHeight",cpToggle:"cpToggle",cpDisabled:"cpDisabled",cpIgnoredElements:"cpIgnoredElements",cpFallbackColor:"cpFallbackColor",cpColorMode:"cpColorMode",cpCmykEnabled:"cpCmykEnabled",cpOutputFormat:"cpOutputFormat",cpAlphaChannel:"cpAlphaChannel",cpDisableInput:"cpDisableInput",cpDialogDisplay:"cpDialogDisplay",cpSaveClickOutside:"cpSaveClickOutside",cpCloseClickOutside:"cpCloseClickOutside",cpUseRootViewContainer:"cpUseRootViewContainer",cpPosition:"cpPosition",cpPositionOffset:"cpPositionOffset",cpPositionRelativeToArrow:"cpPositionRelativeToArrow",cpOKButton:"cpOKButton",cpOKButtonText:"cpOKButtonText",cpOKButtonClass:"cpOKButtonClass",cpCancelButton:"cpCancelButton",cpCancelButtonText:"cpCancelButtonText",cpCancelButtonClass:"cpCancelButtonClass",cpEyeDropper:"cpEyeDropper",cpPresetLabel:"cpPresetLabel",cpPresetColors:"cpPresetColors",cpPresetColorsClass:"cpPresetColorsClass",cpMaxPresetColorsLength:"cpMaxPresetColorsLength",cpPresetEmptyMessage:"cpPresetEmptyMessage",cpPresetEmptyMessageClass:"cpPresetEmptyMessageClass",cpAddColorButton:"cpAddColorButton",cpAddColorButtonText:"cpAddColorButtonText",cpAddColorButtonClass:"cpAddColorButtonClass",cpRemoveColorButtonClass:"cpRemoveColorButtonClass",cpArrowPosition:"cpArrowPosition",cpExtraTemplate:"cpExtraTemplate"},outputs:{cpInputChange:"cpInputChange",cpToggleChange:"cpToggleChange",cpSliderChange:"cpSliderChange",cpSliderDragEnd:"cpSliderDragEnd",cpSliderDragStart:"cpSliderDragStart",colorPickerOpen:"colorPickerOpen",colorPickerClose:"colorPickerClose",colorPickerCancel:"colorPickerCancel",colorPickerSelect:"colorPickerSelect",colorPickerChange:"colorPickerChange",cpCmykColorChange:"cpCmykColorChange",cpPresetColorsChange:"cpPresetColorsChange"},exportAs:["ngxColorPicker"],features:[\u0275\u0275NgOnChangesFeature]}));let ColorPickerDirective2=_ColorPickerDirective;return ColorPickerDirective2})(),ColorPickerModule=(()=>{let _ColorPickerModule=class _ColorPickerModule{};__publicField(_ColorPickerModule,"\u0275fac",function(__ngFactoryType__){return new(__ngFactoryType__||_ColorPickerModule)}),__publicField(_ColorPickerModule,"\u0275mod",\u0275\u0275defineNgModule({type:_ColorPickerModule})),__publicField(_ColorPickerModule,"\u0275inj",\u0275\u0275defineInjector({imports:[CommonModule]}));let ColorPickerModule2=_ColorPickerModule;return ColorPickerModule2})();var COLOR_PICKER_PANEL_DATA=new InjectionToken("color-picker-panel-data");var COLOR_SETS=[["#000000","#444444","#888888","#CCCCCC","#FFFFFF"],["#B5151D","#D5252C","#FB3633","#E86669","#F4B1AD"],["#FF561B","#FF6A22","#FF8B38","#FFA857","#FFC279"],["#E2A92A","#F7C333","#FFD741","#FFE95B","#FFF697"],["#2C7B30","#499C4A","#65B665","#89D388","#BFF0BE"],["#0058B8","#006BCF","#388CEB","#46AEF1","#ADDAF8"],["#5E1D8B","#83249C","#A058C2","#C38BDD","#DDB6E1"]];function ColorPickerPanelComponent_For_6_For_2_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",7),\u0275\u0275listener("click",function(){let color_r2=\u0275\u0275restoreView(_r1).$implicit,ctx_r2=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r2.applyColor(color_r2))}),\u0275\u0275element(1,"div",8),\u0275\u0275elementEnd()}if(rf&2){let color_r2=ctx.$implicit,ctx_r2=\u0275\u0275nextContext(2);\u0275\u0275classProp("selected",ctx_r2.isSelected(color_r2)),\u0275\u0275advance(),\u0275\u0275styleProp("background",color_r2),\u0275\u0275classProp("color-icon--outline",ctx_r2.hasOutline(color_r2))}}function ColorPickerPanelComponent_For_6_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",4),\u0275\u0275repeaterCreate(1,ColorPickerPanelComponent_For_6_For_2_Template,2,6,"div",6,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd()),rf&2){let colorSet_r4=ctx.$implicit;\u0275\u0275advance(),\u0275\u0275repeater(colorSet_r4)}}var ColorPickerPanelComponent=(()=>{let _ColorPickerPanelComponent=class _ColorPickerPanelComponent{constructor(){this.data=inject(COLOR_PICKER_PANEL_DATA),this.ref=inject(ColorPickerPanelRef),this.colorSets=[...COLOR_SETS],this.tabIndex=0}ngOnInit(){this.selectedColor=this.data.color,this.tabIndex=this.data.color?flatten_default(this.colorSets).some(color=>this.isSelected(color))?0:1:0}ngOnDestroy(){this.ref.close(this.selectedColor)}applyColor(color){this.selectedColor=color,this.ref.close(this.selectedColor)}hasOutline(color){return color==="#FFFFFF"}isSelected(color){return this.selectedColor?.toUpperCase()===color}onEscapeHandler(event2){event2.stopPropagation(),event2.preventDefault(),this.ref.close()}};_ColorPickerPanelComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ColorPickerPanelComponent)},_ColorPickerPanelComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ColorPickerPanelComponent,selectors:[["ix-color-picker-panel"]],hostBindings:function(rf,ctx){rf&1&&\u0275\u0275listener("keydown.escape",function($event){return ctx.onEscapeHandler($event)},!1,\u0275\u0275resolveDocument)},decls:11,vars:11,consts:[["mat-stretch-tabs","","dynamicHeight","",1,"example-stretched-tabs",3,"disablePagination","selectedIndex"],[3,"label"],[1,"content"],["fxLayout","column"],["fxFlex","","fxLayout","row",1,"color-set"],["cpAlphaChannel","disabled",3,"colorPickerChange","cpDialogDisplay","cpToggle","colorPicker"],[1,"color",3,"selected"],[1,"color",3,"click"],[1,"color-icon"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-tab-group",0)(1,"mat-tab",1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementStart(3,"div",2)(4,"div",3),\u0275\u0275repeaterCreate(5,ColorPickerPanelComponent_For_6_Template,3,0,"div",4,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd()()(),\u0275\u0275elementStart(7,"mat-tab",1),\u0275\u0275pipe(8,"translate"),\u0275\u0275elementStart(9,"div",2)(10,"span",5),\u0275\u0275listener("colorPickerChange",function($event){return ctx.selectedColor=$event}),\u0275\u0275elementEnd()()()()),rf&2){let tmp_7_0;\u0275\u0275property("disablePagination",!0)("selectedIndex",ctx.tabIndex),\u0275\u0275advance(),\u0275\u0275property("label",\u0275\u0275pipeBind1(2,7,"COLORS")),\u0275\u0275advance(4),\u0275\u0275repeater(ctx.colorSets),\u0275\u0275advance(2),\u0275\u0275property("label",\u0275\u0275pipeBind1(8,9,"CUSTOM")),\u0275\u0275advance(3),\u0275\u0275property("cpDialogDisplay","inline")("cpToggle",!0)("colorPicker",(tmp_7_0=ctx.selectedColor)!==null&&tmp_7_0!==void 0?tmp_7_0:"#FFFFFF")}},dependencies:[DefaultLayoutDirective,DefaultFlexDirective,MatTab,MatTabGroup,ColorPickerDirective,TranslatePipe],styles:["@keyframes _ngcontent-%COMP%_zoom-in{0%{transform:scale(.75);opacity:.9}to{transform:scale(1);opacity:1}}[_nghost-%COMP%]{min-width:262px;height:fit-content;background-color:var(--body-bg);color:var(--body-color);animation:_ngcontent-%COMP%_zoom-in .14s cubic-bezier(0,0,.2,1) both;border-radius:2px;box-shadow:0 1px 1px #00000024,0 2px 1px -1px #0000001f,0 1px 3px #0003;transform-origin:top left}[_nghost-%COMP%] .content[_ngcontent-%COMP%]{padding:16px 16px 8px}[_nghost-%COMP%] .color-set[_ngcontent-%COMP%]{display:block}[_nghost-%COMP%] .color-set[_ngcontent-%COMP%] .color[_ngcontent-%COMP%]{display:block;width:20%;cursor:pointer}[_nghost-%COMP%] .color-set[_ngcontent-%COMP%] .color[_ngcontent-%COMP%] .color-icon[_ngcontent-%COMP%]{display:block;height:24px;width:24px;border-radius:12px;margin:6px auto}[_nghost-%COMP%] .color-set[_ngcontent-%COMP%] .color[_ngcontent-%COMP%] .color-icon.color-icon--outline[_ngcontent-%COMP%]{box-shadow:0 0 0 1px rgba(var(--body-color-rgb),.12)}[_nghost-%COMP%] .color-set[_ngcontent-%COMP%] .color[_ngcontent-%COMP%]:hover .color-icon[_ngcontent-%COMP%], [_nghost-%COMP%] .color-set[_ngcontent-%COMP%] .color.selected[_ngcontent-%COMP%] .color-icon[_ngcontent-%COMP%]{box-shadow:0 0 0 5px rgba(var(--body-color-rgb),.08)}[_nghost-%COMP%] .actions[_ngcontent-%COMP%]{padding:8px}[_nghost-%COMP%] .color-picker{border:none!important}[_nghost-%COMP%] .mat-mdc-tab-label{height:40px;min-width:130px}"]});let ColorPickerPanelComponent3=_ColorPickerPanelComponent;return ColorPickerPanelComponent3})();var ColorPickerPanelService=(()=>{let _ColorPickerPanelService=class _ColorPickerPanelService{constructor(){this.injector=inject(Injector),this.overlay=inject(Overlay)}show(origin,data){let overlayRef=this.createOverlay(origin),instance=new ColorPickerPanelRef(overlayRef);return this.attachPanelContainer(overlayRef,instance,data),instance}createOverlay(origin){let overlayRef=this.overlay.create(this.getOverlayConfig(origin));return overlayRef.backdropClick().subscribe(()=>overlayRef.dispose()),overlayRef}createInjector(panelRef,data){let injectionTokens=new WeakMap;return injectionTokens.set(ColorPickerPanelRef,panelRef),injectionTokens.set(COLOR_PICKER_PANEL_DATA,data),new PortalInjector(this.injector,injectionTokens)}attachPanelContainer(overlayRef,panelRef,data){let injector=this.createInjector(panelRef,data),containerPortal=new ComponentPortal(ColorPickerPanelComponent,null,injector);return overlayRef.attach(containerPortal).instance}getOverlayConfig(origin){let positionStrategy=this.overlay.position().flexibleConnectedTo(origin).withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top",offsetY:-45},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",offsetY:-45}]);return new OverlayConfig({hasBackdrop:!0,backdropClass:"overlay-transparent-backdrop",panelClass:"ix-color-picker-container",minWidth:240,maxWidth:240,scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy})}};_ColorPickerPanelService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ColorPickerPanelService)},_ColorPickerPanelService.\u0275prov=\u0275\u0275defineInjectable({token:_ColorPickerPanelService,factory:_ColorPickerPanelService.\u0275fac});let ColorPickerPanelService3=_ColorPickerPanelService;return ColorPickerPanelService3})();var ColorPickerPanelModule=(()=>{let _ColorPickerPanelModule=class _ColorPickerPanelModule{};_ColorPickerPanelModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ColorPickerPanelModule)},_ColorPickerPanelModule.\u0275mod=\u0275\u0275defineNgModule({type:_ColorPickerPanelModule}),_ColorPickerPanelModule.\u0275inj=\u0275\u0275defineInjector({providers:[ColorPickerPanelService],imports:[SharedModule,ColorPickerModule]});let ColorPickerPanelModule2=_ColorPickerPanelModule;return ColorPickerPanelModule2})();var _c019=["button"],_c17=a0=>({"color--error":a0}),_c25=(a0,a1)=>({"color--error":a0,"color--outline":a1});function ColorInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",1),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r1.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function ColorInputComponent_Conditional_7_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"div",11),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275styleProp("background",ctx_r1.value),\u0275\u0275property("ngClass",\u0275\u0275pureFunction2(3,_c25,ctx_r1.hasError,ctx_r1.hasOutline))}}function ColorInputComponent_Conditional_8_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"div",7),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(1,_c17,ctx_r1.hasError))}}function ColorInputComponent_Conditional_9_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",12),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.clear())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2,"close"),\u0275\u0275elementEnd()()}}function ColorInputComponent_Conditional_11_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",10),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}var ColorInputComponent=(()=>{let _ColorInputComponent=class _ColorInputComponent extends ComponentInputComponent{get control(){return this.componentFormGroup.controls[this.field.inputName]}get required(){return this.control?.hasValidator(Validators.required)}get value(){return this.componentFormGroup.value[this.field.inputName]||null}constructor(cdRef,colorPickerPanelService){super(),this.cdRef=cdRef,this.colorPickerPanelService=colorPickerPanelService}ngOnInit(){this.hasOutline=this.testHasOutline(this.value),this.hasError=this.testHasError(this.control.status),this.control.statusChanges.subscribe(status=>{this.hasError=this.testHasError(status),this.cdRef.markForCheck()}),this.control.valueChanges.subscribe(value=>{this.hasOutline=this.testHasOutline(value),this.cdRef.markForCheck()})}clear(){this.control.setValue(null)}testHasError(status){return status==="INVALID"}testHasOutline(color){return color?(0,import_tinycolor22.default)(this.value).getLuminance()>.85:!0}toggleSelect(){this.colorPickerPanelService.show(this.buttonRef,{color:this.value}).afterClosed().subscribe(color=>{this.control.setValue(color)})}enterKeyDownHandler(event2){event2.target.blur()}};_ColorInputComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ColorInputComponent)(\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(ColorPickerPanelService))},_ColorInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ColorInputComponent,selectors:[["ix-color-input"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(_c019,5,ElementRef),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.buttonRef=_t.first)}},features:[\u0275\u0275InheritDefinitionFeature],decls:12,vars:8,consts:[["button",""],[1,"description",3,"innerHTML"],["fxLayout","column"],[1,"label",3,"ngClass"],["fxLayout","row"],["mat-icon-button","",1,"select-trigger-button",3,"keydown.enter","click"],[1,"color",3,"ngClass","background"],[1,"color","color--empty","color--outline",3,"ngClass"],["mat-icon-button",""],[1,"errors"],["translate",""],[1,"color",3,"ngClass"],["mat-icon-button","",3,"click"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275template(0,ColorInputComponent_Conditional_0_Template,2,3,"p",1),\u0275\u0275elementStart(1,"div",2)(2,"div",3),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"div",4)(5,"button",5,0),\u0275\u0275listener("keydown.enter",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.enterKeyDownHandler($event))})("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.toggleSelect())}),\u0275\u0275template(7,ColorInputComponent_Conditional_7_Template,1,6,"div",6)(8,ColorInputComponent_Conditional_8_Template,1,3,"div",7),\u0275\u0275elementEnd(),\u0275\u0275template(9,ColorInputComponent_Conditional_9_Template,3,0,"button",8),\u0275\u0275elementEnd(),\u0275\u0275elementStart(10,"div",9),\u0275\u0275template(11,ColorInputComponent_Conditional_11_Template,2,0,"mat-error",10),\u0275\u0275elementEnd()()}rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(2),\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(6,_c17,ctx.hasError)),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",ctx.field.inputDescription.label+(ctx.required?" *":"")," "),\u0275\u0275advance(4),\u0275\u0275conditional(ctx.value?7:8),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.value?9:-1),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.control.hasError("required")?11:-1))},dependencies:[NgClass,DefaultLayoutDirective,DefaultClassDirective,TranslateDirective,MatIconButton,MatError,MatIcon,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block;position:relative;padding-bottom:1.25em}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{margin-bottom:4px;transform-origin:top left;transform:scale(.75) perspective(100px) translateZ(.001px);font-size:14px;color:#0000008a}[_nghost-%COMP%] .label.color--error[_ngcontent-%COMP%]{color:var(--warn)}[_nghost-%COMP%] .errors[_ngcontent-%COMP%]{position:absolute;top:64px;left:0;font-size:10.5px}[_nghost-%COMP%] .mdc-icon-button[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .color[_ngcontent-%COMP%]{display:block;width:36px;height:36px;border-radius:18px;margin:2px}[_nghost-%COMP%] .color.color--outline[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 1px rgba(var(--body-color-rgb),.16)}[_nghost-%COMP%] .color.color--empty[_ngcontent-%COMP%]{background-image:linear-gradient(45deg,#ccc 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(45deg,transparent 75%,#ccc 75%),linear-gradient(45deg,#ccc 25%,#fff 25%);background-size:16px 16px;background-position:0 0,0 0,-8px -8px,8px 8px}[_nghost-%COMP%] .color.color--empty.color--outline[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 1px rgba(var(--body-color-rgb),.34)}[_nghost-%COMP%] .color.color--error[_ngcontent-%COMP%]{box-shadow:inset 0 0 0 1px var(--warn)!important}"]});let ColorInputComponent3=_ColorInputComponent;return ColorInputComponent3})();var ComponentPropertiesFormDirective=(()=>{let _ComponentPropertiesFormDirective=class _ComponentPropertiesFormDirective{constructor(viewContainerRef){this.viewContainerRef=viewContainerRef}};_ComponentPropertiesFormDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentPropertiesFormDirective)(\u0275\u0275directiveInject(ViewContainerRef))},_ComponentPropertiesFormDirective.\u0275dir=\u0275\u0275defineDirective({type:_ComponentPropertiesFormDirective,selectors:[["","ixComponentPropertiesForm",""]]});let ComponentPropertiesFormDirective3=_ComponentPropertiesFormDirective;return ComponentPropertiesFormDirective3})();var ComponentPropertiesFacade=(()=>{let _ComponentPropertiesFacade=class _ComponentPropertiesFacade{constructor(store){this.store=store}manifest(template){return this.store.select(selectEntity2(template.publicId)).pipe(mergeMap(manifest=>manifest?of(manifest):(this.store.dispatch(ensureOne({template})),EMPTY)))}};_ComponentPropertiesFacade.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentPropertiesFacade)(\u0275\u0275inject(Store))},_ComponentPropertiesFacade.\u0275prov=\u0275\u0275defineInjectable({token:_ComponentPropertiesFacade,factory:_ComponentPropertiesFacade.\u0275fac,providedIn:"root"});let ComponentPropertiesFacade3=_ComponentPropertiesFacade;return ComponentPropertiesFacade3})();var nonZero=control=>control.value!==null&&Number(control.value)===0?{nonZero:{value:control.value}}:null,integer=control=>control.value!==null&&control.value!==Math.floor(control.value)?{integer:{value:control.value}}:null;function decimal(precision,scale){if(precision<1||precision>15)throw"illegal decimal precision";if(scale<0||scale>14||scale>precision)throw"illegal decimal scale";return control=>{if(!control.value)return null;let value=numberToFloatingPointString(control.value),result=/-?(?<integer>[0-9]*)(\.(?<fraction>[0-9]*))?/.exec(value);if(result?.groups){let integer2=result.groups.integer,fraction=result.groups.fraction,valueScale=fraction?fraction.length:0,valuePrecision=integer2.length;if(precision-scale<valuePrecision||scale<valueScale)return{decimals:{scale,precision,value}}}return null}}var RawMetricInput=class extends ComponentPropertiesInput{constructor(input2,value,component,converter,level,injector){super(input2,value,component,converter,level),this.hidden=!injector.get(PlatformFeaturesService).instantCheck([{canInput:"historical-data"}]),this.translate=injector.get(TranslateService),this.setValue(value)}_getFormControls(){let required=this.inputDescription.required?Validators.required:null;return{selector:new FormControl(this.selector,required),decimals:new FormControl(this.decimals,[Validators.min(0),integer]),unit:new FormControl(this.unit),factor:new FormControl(this.factor,[nonZero,decimal(14,7)])}}toFormControl(){return new FormGroup(this._getFormControls())}setValue(value){super.setValue(value),this.selector=value?.selector,this.decimals=value?.decimals,this.unit=value?.unit,this.factor=value?.factor}transformValue(){return this.value?.unit?.startsWith("__TRANSLATION__.")?{[this.inputDescription.key]:__spreadProps(__spreadValues({},this.value),{unit:trimNamespace(this.translate.instant(this.value.unit))})}:super.transformValue()}};var AggregatedMetricInput=class extends RawMetricInput{constructor(input2,value,component,converter,level,injector){super(input2,value,component,converter,level,injector),this.setValue(value)}get formula(){return this.transform?`${this.transform} - ${this.aggregator}`:this.aggregator}_getFormControls(){let required=this.inputDescription.required?Validators.required:null;return __spreadProps(__spreadValues({},super._getFormControls()),{aggregator:new FormControl(this.aggregator,required),transform:new FormControl(this.transform)})}transformValue(){return{[this.inputDescription.key]:__spreadProps(__spreadValues({},super.transformValue()[this.inputDescription.key]),{formula:this.formula}),[`$${this.inputDescription.key}`]:{formula:this.formula}}}setValue(value){super.setValue(value),this.aggregator=value?.aggregator,this.transform=value?.transform}};function DateInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",1),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r1.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function DateInputComponent_Conditional_10_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}var DateInputComponent=(()=>{let _DateInputComponent=class _DateInputComponent extends ComponentInputComponent{constructor(){super(...arguments),this.formControl=new FormControl(""),this.destroy=inject(DestroyRef)}ngOnInit(){this.formControl.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(date=>{this.formControl.valid&&this.control?.setValue(DateTime.fromISO(date).set({millisecond:0}).toUTC().toISO({suppressMilliseconds:!0}))}),this.formControl.setValidators(this.getValidators());let value=this.inputControl?.value||this.field.inputDescription.defaultValue;this.formControl.setValue(value?DateTime.fromISO(value):""),this.field.inputDescription.disabled&&this.formControl.disable()}get control(){return this.componentFormGroup.controls[this.field.inputName]}getValidators(){let validators=[],{required}=this.field.inputDescription;return required&&validators.push(Validators.required),validators}enterKeyDownHandler(event2){event2.target.blur()}};_DateInputComponent.\u0275fac=(()=>{let \u0275DateInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275DateInputComponent_BaseFactory||(\u0275DateInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_DateInputComponent)))(__ngFactoryType__||_DateInputComponent)}})(),_DateInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_DateInputComponent,selectors:[["ix-date-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:11,vars:8,consts:[["picker",""],[1,"description",3,"innerHTML"],[3,"formGroup"],["matInput","","data-lpignore","true","autocomplete","off",3,"keydown.enter","formControl","matDatepicker"],["matIconSuffix","",3,"for"],["translate",""]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275template(0,DateInputComponent_Conditional_0_Template,2,3,"p",1),\u0275\u0275elementStart(1,"mat-form-field",2)(2,"mat-label"),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"input",3),\u0275\u0275listener("keydown.enter",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.enterKeyDownHandler($event))}),\u0275\u0275elementEnd(),\u0275\u0275element(5,"mat-datepicker-toggle",4)(6,"mat-datepicker",null,0),\u0275\u0275elementStart(8,"mat-hint"),\u0275\u0275text(9),\u0275\u0275elementEnd(),\u0275\u0275template(10,DateInputComponent_Conditional_10_Template,2,0,"mat-error",5),\u0275\u0275elementEnd()}if(rf&2){let picker_r3=\u0275\u0275reference(7);\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("formControl",ctx.formControl)("matDatepicker",picker_r3),\u0275\u0275advance(),\u0275\u0275property("for",picker_r3),\u0275\u0275advance(4),\u0275\u0275textInterpolate(ctx.field.inputDescription.hint),\u0275\u0275advance(),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("required")?10:-1)}},dependencies:[DefaultValueAccessor,NgControlStatus,NgControlStatusGroup,FormControlDirective,FormGroupDirective,TranslateDirective,MatDatepicker,MatDatepickerInput,MatDatepickerToggle,MatFormField,MatLabel,MatHint,MatError,MatSuffix,MatInput,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-datepicker-toggle[_ngcontent-%COMP%]{margin-right:4px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let DateInputComponent3=_DateInputComponent;return DateInputComponent3})();var _c020=["*"];function FileUploadDropContainerComponent_Conditional_4_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"img",3),rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("src",ctx_r1.filePreviewSrc,\u0275\u0275sanitizeUrl)}}var FileUploadDropContainerComponent=(()=>{let _FileUploadDropContainerComponent=class _FileUploadDropContainerComponent extends FileUploadButtonComponent{constructor(){super(...arguments),this.maxFileSize=MAX_FILE_SIZE,this.fileChange=new EventEmitter,this.cdRef=inject(ChangeDetectorRef),this.file=null}change(event2){return __async(this,null,function*(){this.file=getFileFromEvent(event2),this.cdRef.detectChanges(),yield __superGet(_FileUploadDropContainerComponent.prototype,this,"change").call(this,event2)})}dropHandler(event2){event2.preventDefault(),this.change(event2)}dragOverHandler(event2){event2.stopPropagation(),event2.preventDefault()}fileChangeHandler(event2){this.file=event2?.file||null,this.cdRef.detectChanges(),this.fileChange.emit(event2)}};_FileUploadDropContainerComponent.\u0275fac=(()=>{let \u0275FileUploadDropContainerComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275FileUploadDropContainerComponent_BaseFactory||(\u0275FileUploadDropContainerComponent_BaseFactory=\u0275\u0275getInheritedFactory(_FileUploadDropContainerComponent)))(__ngFactoryType__||_FileUploadDropContainerComponent)}})(),_FileUploadDropContainerComponent.\u0275cmp=\u0275\u0275defineComponent({type:_FileUploadDropContainerComponent,selectors:[["ix-file-upload-drop-container"]],inputs:{filePreviewSrc:"filePreviewSrc",maxFileSize:"maxFileSize"},outputs:{fileChange:"fileChange"},standalone:!0,features:[\u0275\u0275InheritDefinitionFeature,\u0275\u0275StandaloneFeature],ngContentSelectors:_c020,decls:17,vars:16,consts:[["content",""],["fxLayout","column","fxLayoutAlign","center center","data-testid","drop-container",1,"drop-container",3,"drop","dragover"],["fxLayout","column","fxLayoutAlign","center center"],[1,"image",3,"src"],["fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"icon"],["translate",""],[3,"fileChange","allowedMimeTypes","maxFileSize","imageSize","matButtonType","color"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"div",1),\u0275\u0275listener("drop",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.dropHandler($event))})("dragover",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.dragOverHandler($event))}),\u0275\u0275elementStart(1,"div",2,0),\u0275\u0275projection(3),\u0275\u0275elementEnd(),\u0275\u0275template(4,FileUploadDropContainerComponent_Conditional_4_Template,1,1,"img",3),\u0275\u0275elementStart(5,"span",4)(6,"mat-icon",5),\u0275\u0275text(7,"cloud_upload"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(8,"span",6),\u0275\u0275text(9,"DRAG_AND_DROP_TO_UPLOAD"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(10,"span"),\u0275\u0275text(11),\u0275\u0275pipe(12,"translate"),\u0275\u0275pipe(13,"lowercase"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(14,"ix-file-upload-button",7),\u0275\u0275listener("fileChange",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.fileChangeHandler($event))}),\u0275\u0275text(15),\u0275\u0275pipe(16,"translate"),\u0275\u0275elementEnd()()()}if(rf&2){let content_r3=\u0275\u0275reference(2);\u0275\u0275advance(4),\u0275\u0275conditional(ctx.filePreviewSrc&&!content_r3.children.length?4:-1),\u0275\u0275advance(),\u0275\u0275classProp("invisible",ctx.file!==null),\u0275\u0275advance(6),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(13,12,\u0275\u0275pipeBind1(12,10,"OR"))),\u0275\u0275advance(3),\u0275\u0275property("allowedMimeTypes",ctx.allowedMimeTypes)("maxFileSize",ctx.maxFileSize)("imageSize",ctx.imageSize)("matButtonType","stroked")("color",null),\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind1(16,14,"SELECT_FILE_TO_UPLOAD")," ")}},dependencies:[MatFormFieldModule,MatIconModule,MatIcon,MatSnackBarModule,FileUploadButtonComponent,FormsModule,TranslateModule,TranslatePipe,TranslateDirective,LowerCasePipe,FlexModule,DefaultLayoutDirective,DefaultLayoutAlignDirective],styles:["[_nghost-%COMP%] .drop-container[_ngcontent-%COMP%]{position:relative;min-height:300px;overflow:hidden;border-radius:6px;background:var(--card-border-color)}[_nghost-%COMP%] .drop-container[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{width:36px;height:36px;margin:4px 0;font-size:36px;color:var(--body-color)}[_nghost-%COMP%] .drop-container[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-bottom:4px}[_nghost-%COMP%] .drop-container[_ngcontent-%COMP%] .invisible[_ngcontent-%COMP%]{background:rgba(var(--card-border-color-rgb),.92);opacity:0;transition:opacity .1s ease-out;will-change:opacity}[_nghost-%COMP%] .drop-container[_ngcontent-%COMP%]:hover .invisible[_ngcontent-%COMP%], [_nghost-%COMP%] .drop-container[_ngcontent-%COMP%]:focus .invisible[_ngcontent-%COMP%]{opacity:1;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}[_nghost-%COMP%] .image[_ngcontent-%COMP%]{max-height:200px;max-width:200px}"],changeDetection:0});let FileUploadDropContainerComponent2=_FileUploadDropContainerComponent;return FileUploadDropContainerComponent2})();function formatBytesValue(value,locale,decimals=2){let chars=["","k","M","G","T","P"],i=0;for(;value>=950&&i<chars.length-1;)value/=1e3,i++;return`${new Intl.NumberFormat(locale,{maximumFractionDigits:decimals}).format(value)} ${chars[i]}B`}var ByteFormatPipe=(()=>{let _ByteFormatPipe=class _ByteFormatPipe{transform(bytes){return formatBytesValue(bytes,Settings.defaultLocale)}};_ByteFormatPipe.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ByteFormatPipe)},_ByteFormatPipe.\u0275pipe=\u0275\u0275definePipe({name:"byteFormat",type:_ByteFormatPipe,pure:!0,standalone:!0});let ByteFormatPipe3=_ByteFormatPipe;return ByteFormatPipe3})();function FileInputComponent_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-icon",1),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r0.icon)}}function FileInputComponent_Conditional_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"p",2),\u0275\u0275text(1),\u0275\u0275elementStart(2,"strong"),\u0275\u0275text(3),\u0275\u0275pipe(4,"byteFormat"),\u0275\u0275elementEnd(),\u0275\u0275text(5," ) "),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",ctx_r0.file.name," ( "),\u0275\u0275advance(2),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(4,2,ctx_r0.file.size))}}var FileInputComponent=(()=>{let _FileInputComponent=class _FileInputComponent extends ComponentInputComponent{constructor(){super(...arguments),this.componentFormGroup=new FormGroup({file:new FormControl(null)})}fileChange(changes){changes&&(this.inputControl?.setValue(changes.file),this.inputControl?.markAsDirty())}get icon(){if(this.inputControl?.value?.type)return mapMimeTypeToIcon(this.inputControl.value.type)}get maxSize(){return this.field.inputDescription.size?.max??MAX_FILE_SIZE}get file(){return this.componentFormGroup?.value?.file??null}};_FileInputComponent.\u0275fac=(()=>{let \u0275FileInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275FileInputComponent_BaseFactory||(\u0275FileInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_FileInputComponent)))(__ngFactoryType__||_FileInputComponent)}})(),_FileInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_FileInputComponent,selectors:[["ix-file-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:3,vars:4,consts:[["data-testid","drop-container",3,"fileChange","filePreviewSrc","maxFileSize"],[1,"icon"],["data-testid","file-info"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"ix-file-upload-drop-container",0),\u0275\u0275listener("fileChange",function($event){return ctx.fileChange($event)}),\u0275\u0275template(1,FileInputComponent_Conditional_1_Template,2,1,"mat-icon",1)(2,FileInputComponent_Conditional_2_Template,6,4,"p",2),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275property("filePreviewSrc",null)("maxFileSize",ctx.maxSize),\u0275\u0275advance(),\u0275\u0275conditional(ctx.icon?1:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.file?2:-1))},dependencies:[MatIcon,FileUploadDropContainerComponent,ByteFormatPipe],styles:["[_nghost-%COMP%] .icon[_ngcontent-%COMP%]{width:36px;height:36px;margin:4px 0;font-size:36px;color:var(--body-color)}[_nghost-%COMP%] span[_ngcontent-%COMP%]{margin-bottom:4px}"]});let FileInputComponent3=_FileInputComponent;return FileInputComponent3})();function GroupInputComponent_Conditional_0_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"h3"),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label)}}function GroupInputComponent_Conditional_0_Conditional_1_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"ix-group-input-summary",0),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("field",ctx_r0.field)("componentFormGroup",ctx_r0.componentFormGroup)}}function GroupInputComponent_Conditional_0_Conditional_2_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"ix-group-input-form",0),rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("field",ctx_r0.field)("componentFormGroup",ctx_r0.componentFormGroup)}}function GroupInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,GroupInputComponent_Conditional_0_Conditional_0_Template,2,1,"h3")(1,GroupInputComponent_Conditional_0_Conditional_1_Template,1,2,"ix-group-input-summary",0)(2,GroupInputComponent_Conditional_0_Conditional_2_Template,1,2,"ix-group-input-form",0),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275conditional(ctx_r0.field.level===0||!ctx_r0.isSummary()?0:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.isSummary()?1:2)}}var GroupInputComponent=(()=>{let _GroupInputComponent=class _GroupInputComponent extends ComponentInputComponent{isSummary(){return this.field.inputDescription.summary!==void 0}};_GroupInputComponent.\u0275fac=(()=>{let \u0275GroupInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275GroupInputComponent_BaseFactory||(\u0275GroupInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_GroupInputComponent)))(__ngFactoryType__||_GroupInputComponent)}})(),_GroupInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_GroupInputComponent,selectors:[["ix-group-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[[3,"field","componentFormGroup"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,GroupInputComponent_Conditional_0_Template,3,2),rf&2&&\u0275\u0275conditional(ctx.field.hidden?-1:0)},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font-size:11.5px!important;font-weight:500!important;text-transform:uppercase;letter-spacing:.8px;color:rgba(var(--body-color-rgb),.54)}[_nghost-%COMP%] .mat-divider[_ngcontent-%COMP%]{margin:0 -16px 16px}[_nghost-%COMP%] .mat-divider.mat-divider-inset[_ngcontent-%COMP%]{margin-left:0}"]});let GroupInputComponent2=_GroupInputComponent;return GroupInputComponent2})();var GroupInput=class extends ComponentPropertiesInput{constructor(input2,value,component,converter,level){super(input2,value,component,converter,level),this.converter=converter,this.children=input2.children?.map(child=>converter.convertInput(child,value,component,level+1))||[],this.hidden=this.children.some(child=>child.inputDescription.required&&child.hidden)}toFormControl(){return new FormGroup(this.converter.getFormControls(this.children))}transformValue(){return{[this.inputDescription.key]:this.children.reduce((obj,child)=>__spreadValues(__spreadValues({},obj),child.transformValue()),{})}}setValue(value){this.children.forEach(child=>child.setValue(value[child.inputDescription.key]))}};function IconInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function IconInputComponent_Conditional_13_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}var IconInputComponent=(()=>{let _IconInputComponent=class _IconInputComponent extends ComponentInputComponent{};_IconInputComponent.\u0275fac=(()=>{let \u0275IconInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275IconInputComponent_BaseFactory||(\u0275IconInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_IconInputComponent)))(__ngFactoryType__||_IconInputComponent)}})(),_IconInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_IconInputComponent,selectors:[["ix-icon-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:14,vars:7,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],[3,"formControlName","placeholder"],["value","warn"],["value","info"],["value","error"],["translate",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,IconInputComponent_Conditional_0_Template,2,3,"p",0),\u0275\u0275elementStart(1,"mat-form-field",1)(2,"mat-label"),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"mat-select",2)(5,"mat-option",3),\u0275\u0275text(6,"Warning"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"mat-option",4),\u0275\u0275text(8,"Info"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"mat-option",5),\u0275\u0275text(10,"Error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(11,"mat-hint"),\u0275\u0275text(12),\u0275\u0275elementEnd(),\u0275\u0275template(13,IconInputComponent_Conditional_13_Template,2,0,"mat-error",6),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("formControlName",ctx.field.inputName)("placeholder",ctx.field.inputDescription.placeholder||""),\u0275\u0275advance(8),\u0275\u0275textInterpolate(ctx.field.inputDescription.hint),\u0275\u0275advance(),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("required")?13:-1))},dependencies:[NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateDirective,MatOption,MatFormField,MatLabel,MatHint,MatError,MatSelect,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let IconInputComponent3=_IconInputComponent;return IconInputComponent3})();function ImageInputDialogComponent_Conditional_11_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",12),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.clear())}),\u0275\u0275elementStart(1,"span",10),\u0275\u0275text(2,"CLEAR"),\u0275\u0275elementEnd()()}}var ImageInputDialogComponent=(()=>{let _ImageInputDialogComponent=class _ImageInputDialogComponent{constructor(){this.data=inject(MAT_DIALOG_DATA),this.dialogRef=inject(MatDialogRef),this.formBuilder=inject(FormBuilder),this.allowedMimeTypes=["image/gif","image/jpeg","image/png","image/webp"]}ngOnInit(){this.form=this.formBuilder.group({image:[this.data.image]})}clear(){this.file=null,this.form.controls.image.reset(),this.form.controls.image.markAsDirty()}fileChange(changes){changes&&(this.file=changes.file,this.form.controls.image.setValue(changes.previewSrc),this.form.controls.image.markAsDirty())}submit(){this.dialogRef.close({image:this.form.controls.image.value,file:this.file})}};_ImageInputDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ImageInputDialogComponent)},_ImageInputDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ImageInputDialogComponent,selectors:[["ix-image-input-dialog"]],decls:19,vars:5,consts:[["autocomplete","off",3,"ngSubmit","formGroup"],[1,"ix-dialog__header"],["fxFlex","","mat-dialog-title",""],["mat-icon-button","","mat-dialog-close",""],["mat-dialog-content",""],[3,"fileChange","filePreviewSrc"],["mat-dialog-actions",""],["type","button","mat-button","","color","warn"],["fxFlex",""],["mat-button","","mat-dialog-close",""],["translate",""],["type","submit","mat-button","","color","primary",3,"disabled"],["type","button","mat-button","","color","warn",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"form",0),\u0275\u0275listener("ngSubmit",function(){return ctx.submit()}),\u0275\u0275elementStart(1,"div",1)(2,"mat-toolbar")(3,"h1",2),\u0275\u0275text(4),\u0275\u0275elementEnd(),\u0275\u0275elementStart(5,"button",3)(6,"mat-icon"),\u0275\u0275text(7,"close"),\u0275\u0275elementEnd()()()(),\u0275\u0275elementStart(8,"div",4)(9,"ix-file-upload-drop-container",5),\u0275\u0275listener("fileChange",function($event){return ctx.fileChange($event)}),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(10,"div",6),\u0275\u0275template(11,ImageInputDialogComponent_Conditional_11_Template,3,0,"button",7),\u0275\u0275element(12,"span",8),\u0275\u0275elementStart(13,"button",9)(14,"span",10),\u0275\u0275text(15,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(16,"button",11)(17,"span",10),\u0275\u0275text(18,"CONFIRM"),\u0275\u0275elementEnd()()()()),rf&2&&(\u0275\u0275property("formGroup",ctx.form),\u0275\u0275advance(4),\u0275\u0275textInterpolate(ctx.data.title),\u0275\u0275advance(5),\u0275\u0275property("filePreviewSrc",ctx.form.value.image),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.form.value.image?11:-1),\u0275\u0275advance(5),\u0275\u0275property("disabled",ctx.form.pristine||ctx.form.invalid))},dependencies:[DefaultFlexDirective,\u0275NgNoValidate,NgControlStatusGroup,FormGroupDirective,TranslateDirective,MatButton,MatIconButton,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,MatIcon,MatToolbar,FileUploadDropContainerComponent],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:528px;max-width:528px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 24px) 24px 24px;border-bottom:1px solid rgba(0,0,0,.12)}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{padding-left:0;padding-bottom:0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]{--mdc-dialog-subhead-font: var(--font-family);--mdc-dialog-subhead-size: 17px}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(8px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{padding-bottom:24px}"]});let ImageInputDialogComponent3=_ImageInputDialogComponent;return ImageInputDialogComponent3})();function ImageInputFormComponent_Conditional_0_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"img",0),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("src",ctx_r0.value,\u0275\u0275sanitizeUrl)}}var ImageInputFormComponent=(()=>{let _ImageInputFormComponent=class _ImageInputFormComponent{constructor(dialog,publicFileService){this.dialog=dialog,this.publicFileService=publicFileService,this.onChange=()=>{},this.onTouched=()=>{}}registerOnChange(fn2){this.onChange=fn2}registerOnTouched(fn2){this.onTouched=fn2}writeValue(obj){this.value=obj,this.onChange(this.value)}openDialog(){this.dialog.open(ImageInputDialogComponent,{panelClass:"fullscreen",data:{image:this.value,title:this.dialogTitle}}).afterClosed().pipe(filter(data=>!!data),mergeMap(result=>this.uploadFile(result.file))).subscribe(url2=>{this.writeValue(url2),this.componentFormGroup.controls[this.field.inputName].setValue(url2)})}uploadFile(file){return file?this.publicFileService.upload(file).pipe(map(response=>response.data.url)):of(null)}};_ImageInputFormComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ImageInputFormComponent)(\u0275\u0275directiveInject(MatDialog),\u0275\u0275directiveInject(PublicFileService))},_ImageInputFormComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ImageInputFormComponent,selectors:[["ix-image-input-form"]],inputs:{field:"field",componentFormGroup:"componentFormGroup",dialogTitle:"dialogTitle"},features:[\u0275\u0275ProvidersFeature([{provide:NG_VALUE_ACCESSOR,useExisting:_ImageInputFormComponent,multi:!0}])],decls:4,vars:1,consts:[["alt","uploaded image",3,"src"],["mat-stroked-button","","color","primary","type","button",3,"click"],["translate",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,ImageInputFormComponent_Conditional_0_Template,1,1,"img",0),\u0275\u0275elementStart(1,"button",1),\u0275\u0275listener("click",function(){return ctx.openDialog()}),\u0275\u0275elementStart(2,"span",2),\u0275\u0275text(3,"UPLOAD_FILE"),\u0275\u0275elementEnd()()),rf&2&&\u0275\u0275conditional(ctx.value?0:-1)},dependencies:[TranslateDirective,MatButton],styles:["[_nghost-%COMP%]{display:flex;place-content:center left;margin-bottom:16px}[_nghost-%COMP%] img[_ngcontent-%COMP%]{flex-grow:0;padding-right:8px;width:40px;height:40px;object-fit:contain}[_nghost-%COMP%] button[_ngcontent-%COMP%]{flex-grow:1}.ng-invalid[_nghost-%COMP%] button[_ngcontent-%COMP%]{border-color:var(--warn)}"]});let ImageInputFormComponent3=_ImageInputFormComponent;return ImageInputFormComponent3})();function ImageInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}var ImageInputComponent=(()=>{let _ImageInputComponent=class _ImageInputComponent extends ComponentInputComponent{};_ImageInputComponent.\u0275fac=(()=>{let \u0275ImageInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275ImageInputComponent_BaseFactory||(\u0275ImageInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_ImageInputComponent)))(__ngFactoryType__||_ImageInputComponent)}})(),_ImageInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ImageInputComponent,selectors:[["ix-image-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:3,vars:6,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],[3,"field","componentFormGroup","formControlName","dialogTitle"]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,ImageInputComponent_Conditional_0_Template,2,3,"p",0),\u0275\u0275elementStart(1,"div",1),\u0275\u0275element(2,"ix-image-input-form",2),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.componentFormGroup),\u0275\u0275advance(),\u0275\u0275property("field",ctx.field)("componentFormGroup",ctx.componentFormGroup)("formControlName",ctx.field.inputName)("dialogTitle",ctx.field.inputDescription.label||""))},dependencies:[NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,ImageInputFormComponent,RenderMarkdownPipe],styles:["[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}"]});let ImageInputComponent3=_ImageInputComponent;return ImageInputComponent3})();var GroupInputDialogComponent=(()=>{let _GroupInputDialogComponent=class _GroupInputDialogComponent{constructor(data){this.data=data}};_GroupInputDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_GroupInputDialogComponent)(\u0275\u0275directiveInject(MAT_DIALOG_DATA))},_GroupInputDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_GroupInputDialogComponent,selectors:[["ix-group-input-dialog"]],decls:11,vars:6,consts:[["mat-dialog-title",""],[3,"field","componentFormGroup"],["align","end"],["mat-button","",3,"mat-dialog-close"],["translate",""],["mat-button","",3,"mat-dialog-close","disabled"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"h1",0),\u0275\u0275text(1),\u0275\u0275elementEnd(),\u0275\u0275elementStart(2,"mat-dialog-content"),\u0275\u0275element(3,"ix-group-input-form",1),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"mat-dialog-actions",2)(5,"button",3)(6,"span",4),\u0275\u0275text(7,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(8,"button",5)(9,"span",4),\u0275\u0275text(10,"OK"),\u0275\u0275elementEnd()()()),rf&2&&(\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx.data.field.inputDescription.label),\u0275\u0275advance(2),\u0275\u0275property("field",ctx.data.field)("componentFormGroup",ctx.data.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275property("mat-dialog-close",!1),\u0275\u0275advance(3),\u0275\u0275property("mat-dialog-close",!0)("disabled",!ctx.data.componentFormGroup.valid))}});let GroupInputDialogComponent2=_GroupInputDialogComponent;return GroupInputDialogComponent2})();function moveItemInFormArray(array,fromIndex,toIndex){fromIndex=Math.max(0,Math.min(fromIndex,array.length-1)),toIndex=Math.max(0,Math.min(toIndex,array.length-1));let item=array.at(fromIndex);array.removeAt(fromIndex),array.insert(toIndex,item)}function ListItemComponent_ng_template_2_Template(rf,ctx){}var ListItemComponent=(()=>{let _ListItemComponent=class _ListItemComponent{constructor(inputConverter,cdRef){this.inputConverter=inputConverter,this.cdRef=cdRef,this.delete=new EventEmitter}ngAfterViewInit(){this.inputConverter.loadComponentInputs([this.item],this.componentFormGroup,this.formDirective.viewContainerRef),this.cdRef.detectChanges()}deleteItem(){this.delete.emit(this.index)}};_ListItemComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ListItemComponent)(\u0275\u0275directiveInject(INPUT_CONVERTER_TOKEN),\u0275\u0275directiveInject(ChangeDetectorRef))},_ListItemComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ListItemComponent,selectors:[["ix-list-item"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(ComponentPropertiesFormDirective,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.formDirective=_t.first)}},inputs:{item:"item",index:"index",componentFormGroup:"componentFormGroup"},outputs:{delete:"delete"},decls:9,vars:0,consts:[["fxLayout","row"],["fxFlex","",1,"list-item-content"],["ixComponentPropertiesForm",""],["mat-icon-button","","type","button","aria-label","Remove list item",1,"clear-button",3,"click"],["fxLayout","column","fxLayoutAlign","center end"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"div",1),\u0275\u0275template(2,ListItemComponent_ng_template_2_Template,0,0,"ng-template",2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"button",3),\u0275\u0275listener("click",function(){return ctx.deleteItem()}),\u0275\u0275elementStart(4,"mat-icon"),\u0275\u0275text(5,"clear"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(6,"div",4)(7,"mat-icon"),\u0275\u0275text(8,"drag_indicator"),\u0275\u0275elementEnd()()())},dependencies:[DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatIconButton,MatIcon,ComponentPropertiesFormDirective],styles:["[_nghost-%COMP%]{display:block;position:relative;font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}[_nghost-%COMP%] .clear-button[_ngcontent-%COMP%]{position:absolute;top:0;right:24px;bottom:0;opacity:0;transition:opacity .2s ease-in-out;will-change:opacity}[_nghost-%COMP%] .clear-button[_ngcontent-%COMP%]:hover{opacity:1!important}[_nghost-%COMP%] .list-item-content[_ngcontent-%COMP%]{overflow:hidden}[_nghost-%COMP%] .list-item-content[_ngcontent-%COMP%]:hover + .clear-button[_ngcontent-%COMP%]{opacity:1!important}.cdk-drag-preview[_nghost-%COMP%]{background-color:#fff}.cdk-drag-preview[_nghost-%COMP%] .clear-button[_ngcontent-%COMP%]{display:none}.cdk-drag-preview[_nghost-%COMP%] .list-item-content[_ngcontent-%COMP%]{box-sizing:border-box;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}"]});let ListItemComponent3=_ListItemComponent;return ListItemComponent3})();function ListInputComponent_Conditional_0_Conditional_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r1.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function ListInputComponent_Conditional_0_For_5_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-list-item",4),\u0275\u0275listener("delete",function(){let \u0275$index_11_r4=\u0275\u0275restoreView(_r3).$index,ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.deleteItem(\u0275$index_11_r4))}),\u0275\u0275elementEnd()}if(rf&2){let item_r5=ctx.$implicit,\u0275$index_11_r4=ctx.$index,ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("item",item_r5)("index",\u0275$index_11_r4)("componentFormGroup",ctx_r1.formGroupAt(\u0275$index_11_r4))}}function ListInputComponent_Conditional_0_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"h3"),\u0275\u0275text(1),\u0275\u0275elementEnd(),\u0275\u0275template(2,ListInputComponent_Conditional_0_Conditional_2_Template,2,3,"p",0),\u0275\u0275elementStart(3,"div",1),\u0275\u0275listener("cdkDropListDropped",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.drop($event))}),\u0275\u0275repeaterCreate(4,ListInputComponent_Conditional_0_For_5_Template,1,3,"ix-list-item",2,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd(),\u0275\u0275elementStart(6,"button",3),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.addItem())}),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"add"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"span"),\u0275\u0275text(10),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r1.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.field.inputDescription.description?2:-1),\u0275\u0275advance(2),\u0275\u0275repeater(ctx_r1.listInput.items),\u0275\u0275advance(6),\u0275\u0275textInterpolate(ctx_r1.addButtonText)}}var ListInputComponent=(()=>{let _ListInputComponent=class _ListInputComponent extends ComponentInputComponent{constructor(inputConverter,translate,cdRef,dialog){super(),this.inputConverter=inputConverter,this.translate=translate,this.cdRef=cdRef,this.dialog=dialog}get listInput(){return this.field}get formArray(){return this.componentFormGroup.get(this.field.inputDescription.key)}get addButtonText(){return this.field.inputDescription.itemType?.label?this.translate.instant("ADD_NAME",{name:this.field.inputDescription.itemType.label}):this.translate.instant("ADD_ANOTHER")}formGroupAt(index){return this.formArray.at(index)}addItem(){let itemType=this.listInput.inputDescription.itemType;if(itemType){let itemInput=this.inputConverter.convertInput(itemType,itemType.defaultValue,this.listInput.component,this.listInput.level+1),itemForm=new FormGroup({[itemType.key]:itemInput.toFormControl()});itemType.type==="Group"&&itemType.summary?this.dialog.open(GroupInputDialogComponent,{width:"500px",data:{field:itemInput,componentFormGroup:itemForm}}).afterClosed().subscribe(result=>{result&&(itemInput.setValue(itemForm.value[itemType.key]),this.listInput.push(itemInput),this.formArray.markAsDirty(),this.formArray.push(itemForm),this.cdRef.detectChanges())}):(this.listInput.push(itemInput),this.formArray.markAsDirty(),this.formArray.push(itemForm))}}deleteItem(index){this.listInput.removeAt(index),this.formArray.removeAt(index)}drop($event){moveItemInArray(this.listInput.items,$event.previousIndex,$event.currentIndex),moveItemInFormArray(this.formArray,$event.previousIndex,$event.currentIndex)}};_ListInputComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ListInputComponent)(\u0275\u0275directiveInject(INPUT_CONVERTER_TOKEN),\u0275\u0275directiveInject(TranslateService),\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(MatDialog))},_ListInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ListInputComponent,selectors:[["ix-list-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:1,vars:1,consts:[[1,"description",3,"innerHTML"],["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag","",3,"item","index","componentFormGroup"],["mat-stroked-button","","type","button","aria-label","Add list item",1,"add-button",3,"click"],["cdkDrag","",3,"delete","item","index","componentFormGroup"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,ListInputComponent_Conditional_0_Template,11,3),rf&2&&\u0275\u0275conditional(ctx.field.hidden?-1:0)},dependencies:[CdkDropList,CdkDrag,MatButton,MatIcon,ListItemComponent,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font-size:11.5px!important;font-weight:500!important;text-transform:uppercase;letter-spacing:.8px;color:rgba(var(--body-color-rgb),.54)}[_nghost-%COMP%] .add-button[_ngcontent-%COMP%]{width:100%;height:28px;line-height:1;padding:0 8px 0 4px;margin:16px 0 0;text-transform:uppercase}[_nghost-%COMP%] .cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}[_nghost-%COMP%] .cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .cdk-drag[_ngcontent-%COMP%]:last-child{border:none}[_nghost-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .cdk-drag[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}[_nghost-%COMP%] .cdk-drop-list-dragging[_ngcontent-%COMP%] .cdk-drag-placeholder[_ngcontent-%COMP%]{cursor:grabbing}[_nghost-%COMP%] .cdk-drag[_ngcontent-%COMP%]{cursor:grab}[_nghost-%COMP%] ix-list-item[_ngcontent-%COMP%] + ix-list-item[_ngcontent-%COMP%]{margin-top:8px}"]});let ListInputComponent3=_ListInputComponent;return ListInputComponent3})();var ListInput=class extends ComponentPropertiesInput{constructor(input2,value,component,converter,level){if(super(input2,value,component,converter,level),this.converter=converter,input2.itemType){let itemType=input2.itemType;this.items=isArray_default(value)?value.map(value2=>converter.convertInput(itemType,value2,component,level+1)):[],this.hidden=!!itemType.children?.some(item=>{let child=converter.convertInput(item,value,component,level+1);return child.inputDescription.required&&child.hidden})}}toFormControl(){return new FormArray(this.items.map(item=>new FormGroup({[item.inputDescription.key]:item.toFormControl()})))}transformValue(){return{[this.inputDescription.key]:this.items.map(item=>item.transformValue())}}setValue(value){value.length===this.items.length&&this.items.forEach((item,i)=>item.setValue(value[i][item.inputDescription.key]))}push(item){this.items.push(item)}removeAt(index){this.items.splice(index,1)}};var LiveMetricInput=class extends RawMetricInput{constructor(input2,value,component,converter,level,injector){super(input2,value,component,converter,level,injector),this.hidden=!injector.get(PlatformFeaturesService).instantCheck([{canInput:"live-data"}])}};var MaterialIconFieldsetFacade=(()=>{let _MaterialIconFieldsetFacade=class _MaterialIconFieldsetFacade{groups(appearance){return from(import("./chunk-LN4RP74Y.js")).pipe(map(({ICONS_METADATA})=>{let groupsDict=ICONS_METADATA.reduce((groups,icon)=>(appearance==="legacy"&&icon.unsupported_families.includes("Material Icons")||appearance==="symbols"&&icon.unsupported_families.includes("Material Symbols Outlined")||icon.categories.forEach(category=>{groups[category]||(groups[category]=[]),groups[category].push(icon)}),groups),{});return Object.keys(groupsDict).map(key=>({name:key,icons:groupsDict[key]}))}),map(groups=>groups.map(group=>__spreadProps(__spreadValues({},group),{popularity:Math.round(group.icons.reduce((acc,curr)=>acc+curr.popularity,0)/group.icons.length),icons:group.icons.sort((a,b2)=>b2.popularity-a.popularity)})).sort((a,b2)=>b2.popularity-a.popularity)))}};_MaterialIconFieldsetFacade.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_MaterialIconFieldsetFacade)},_MaterialIconFieldsetFacade.\u0275prov=\u0275\u0275defineInjectable({token:_MaterialIconFieldsetFacade,factory:_MaterialIconFieldsetFacade.\u0275fac,providedIn:"root"});let MaterialIconFieldsetFacade2=_MaterialIconFieldsetFacade;return MaterialIconFieldsetFacade2})();var _forTrack02=($index,$item)=>$item.name,_c021=a0=>({"with-errors":a0});function MaterialIconFieldsetComponent_For_7_For_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",13)(1,"mat-icon"),\u0275\u0275text(2),\u0275\u0275elementEnd()()),rf&2){let icon_r2=ctx.$implicit;\u0275\u0275property("value",icon_r2.name)("title",icon_r2.name),\u0275\u0275advance(2),\u0275\u0275textInterpolate(icon_r2.name)}}function MaterialIconFieldsetComponent_For_7_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-optgroup",4),\u0275\u0275repeaterCreate(1,MaterialIconFieldsetComponent_For_7_For_2_Template,3,3,"mat-option",13,_forTrack02),\u0275\u0275elementEnd()),rf&2){let group_r3=ctx.$implicit;\u0275\u0275property("label",group_r3.name),\u0275\u0275advance(),\u0275\u0275repeater(group_r3.icons)}}function MaterialIconFieldsetComponent_ng_container_15_Template(rf,ctx){rf&1&&\u0275\u0275elementContainer(0)}function MaterialIconFieldsetComponent_Conditional_16_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",14),\u0275\u0275pipe(1,"translate"),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r4);let ctx_r4=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r4.clear())}),\u0275\u0275elementStart(2,"mat-icon"),\u0275\u0275text(3,"close"),\u0275\u0275elementEnd()()}rf&2&&\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(1,1,"CLEAR"))}function MaterialIconFieldsetComponent_Conditional_18_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",12),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function MaterialIconFieldsetComponent_ng_template_19_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-icon",15),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r4=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r4.value)}}function MaterialIconFieldsetComponent_ng_template_21_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-icon",16),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r4=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx_r4.placeholderIcon)}}var MaterialIconFieldsetComponent=(()=>{let _MaterialIconFieldsetComponent=class _MaterialIconFieldsetComponent{constructor(){this.appearance="symbols",this.placeholderIcon="add_reaction",this.filteredIconGroups$=new ReplaySubject(1),this.queryFormControl=new FormControl(""),this.destroy=inject(DestroyRef),this.facade=inject(MaterialIconFieldsetFacade)}get required(){return this.form.hasValidator(Validators.required)}get value(){return this.form.value}ngOnInit(){this.facade.groups(this.appearance).pipe(takeUntilDestroyed(this.destroy)).subscribe(groups=>{this.groups=groups,this.filteredIconGroups$.next(this.copyIconGroups(this.groups))}),this.queryFormControl.valueChanges.pipe(debounceTime(100),takeUntilDestroyed(this.destroy)).subscribe(()=>{this.filterIconGroups()})}ngAfterViewInit(){this.select._calculateOverlayScroll=this._calculateOverlayScroll.bind(this)}clear(){this.form.setValue(null)}toggleSelect(){this.select.panelOpen?this.select.close():this.select.open()}filterIconGroups(){if(!this.groups)return;let query=this.queryFormControl.value||"",iconGroupsCopy=this.copyIconGroups(this.groups);if(!query){this.filteredIconGroups$.next(iconGroupsCopy);return}query=query.toLowerCase(),this.filteredIconGroups$.next(iconGroupsCopy.filter(iconGroup=>(iconGroup.name.toLowerCase().includes(query)||(iconGroup.icons=iconGroup.icons.filter(icon=>icon.name.toLowerCase().includes(query)||icon.tags.some(tag=>tag.toLowerCase().includes(query)))),iconGroup.icons.length>0)))}copyIconGroups(iconGroups){let iconGroupsCopy=[];return iconGroups.forEach(iconGroup=>{iconGroupsCopy.push({name:iconGroup.name,popularity:iconGroup.popularity,icons:iconGroup.icons.slice()})}),iconGroupsCopy}_calculateOverlayScroll(selectedIndex,scrollBuffer,maxScroll){let selectedLabel=this.select.selected?this.select.selected.group?.label:null,_selectedGroupIndex=selectedLabel?this.groups.findIndex(group=>group.name===selectedLabel):-1,_selectedIndex=selectedIndex-_selectedGroupIndex-2,itemHeight=40,optionOffsetFromScrollTop=itemHeight*Math.ceil(_selectedIndex/7)+Math.round((_selectedGroupIndex+1)*48),halfOptionHeight=itemHeight/2,optimalScrollPosition=optionOffsetFromScrollTop-scrollBuffer+halfOptionHeight;return Math.min(Math.max(0,optimalScrollPosition),maxScroll)}};_MaterialIconFieldsetComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_MaterialIconFieldsetComponent)},_MaterialIconFieldsetComponent.\u0275cmp=\u0275\u0275defineComponent({type:_MaterialIconFieldsetComponent,selectors:[["ix-material-icon-fieldset"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(MatSelect,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.select=_t.first)}},inputs:{appearance:"appearance",form:"form",label:"label",placeholderIcon:"placeholderIcon"},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:23,vars:20,consts:[["selectedIcon",""],["defaultIcon",""],["panelClass","material-icon-select-panel",1,"select",3,"formControl"],[3,"formControl","placeholderLabel","noEntriesFoundLabel"],[1,"icon-group",3,"label"],["fxLayout","column",3,"ngClass"],["data-testid","material-icon-fieldset-label",1,"label"],["fxLayout","row","fxLayoutAlign","start center"],["type","button","mat-icon-button","",1,"select-trigger-button",3,"click","disabled"],[4,"ngTemplateOutlet"],["type","button","mat-icon-button","",1,"clear-button",3,"matTooltip"],[1,"errors"],["translate",""],[1,"icon",3,"value","title"],["type","button","mat-icon-button","",1,"clear-button",3,"click","matTooltip"],["data-testid","material-icon-fieldset-selected-icon"],["data-testid","material-icon-fieldset-placeholder-icon"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-select",2)(2,"mat-option"),\u0275\u0275element(3,"ngx-mat-select-search",3),\u0275\u0275pipe(4,"translate"),\u0275\u0275pipe(5,"translate"),\u0275\u0275elementEnd(),\u0275\u0275repeaterCreate(6,MaterialIconFieldsetComponent_For_7_Template,3,1,"mat-optgroup",4,_forTrack02),\u0275\u0275pipe(8,"async"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(9,"div",5)(10,"div",6),\u0275\u0275text(11),\u0275\u0275pipe(12,"translate"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(13,"div",7)(14,"button",8),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.toggleSelect())}),\u0275\u0275template(15,MaterialIconFieldsetComponent_ng_container_15_Template,1,0,"ng-container",9),\u0275\u0275elementEnd(),\u0275\u0275template(16,MaterialIconFieldsetComponent_Conditional_16_Template,4,3,"button",10),\u0275\u0275elementEnd(),\u0275\u0275elementStart(17,"div",11),\u0275\u0275template(18,MaterialIconFieldsetComponent_Conditional_18_Template,2,0,"mat-error",12),\u0275\u0275elementEnd()(),\u0275\u0275template(19,MaterialIconFieldsetComponent_ng_template_19_Template,2,1,"ng-template",null,0,\u0275\u0275templateRefExtractor)(21,MaterialIconFieldsetComponent_ng_template_21_Template,2,1,"ng-template",null,1,\u0275\u0275templateRefExtractor)}if(rf&2){let selectedIcon_r6=\u0275\u0275reference(20),defaultIcon_r7=\u0275\u0275reference(22);\u0275\u0275advance(),\u0275\u0275property("formControl",ctx.form),\u0275\u0275advance(2),\u0275\u0275property("formControl",ctx.queryFormControl)("placeholderLabel",\u0275\u0275pipeBind1(4,10,"SEARCH"))("noEntriesFoundLabel",\u0275\u0275pipeBind1(5,12,"NO_RESULTS_FOUND")),\u0275\u0275advance(3),\u0275\u0275repeater(\u0275\u0275pipeBind1(8,14,ctx.filteredIconGroups$)),\u0275\u0275advance(3),\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(18,_c021,ctx.form.touched&&ctx.form.invalid)),\u0275\u0275advance(2),\u0275\u0275textInterpolate1(" ",(ctx.label||\u0275\u0275pipeBind1(12,16,"ICON"))+(ctx.required?" *":"")," "),\u0275\u0275advance(3),\u0275\u0275property("disabled",ctx.form.disabled),\u0275\u0275advance(),\u0275\u0275property("ngTemplateOutlet",ctx.value?selectedIcon_r6:defaultIcon_r7),\u0275\u0275advance(),\u0275\u0275conditional(ctx.value&&!ctx.form.disabled?16:-1),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.form.touched&&ctx.form.hasError("required")?18:-1)}},dependencies:[AsyncPipe,NgClass,NgTemplateOutlet,FormsModule,NgControlStatus,FlexLayoutModule,DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultClassDirective,ReactiveFormsModule,FormControlDirective,MatButtonModule,MatIconButton,MatFormFieldModule,MatFormField,MatError,MatIconModule,MatIcon,MatTooltipModule,MatTooltip,MatSelectModule,MatSelect,MatOption,MatOptgroup,NgxMatSelectSearchModule,MatSelectSearchComponent,TranslateModule,TranslatePipe,TranslateDirective],styles:["[_nghost-%COMP%]{display:block;position:relative;padding-bottom:1.25em}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{position:absolute;left:40px;visibility:hidden}[_nghost-%COMP%] .select-trigger-button[_ngcontent-%COMP%]{background-color:rgba(var(--body-color-rgb),.04)}[_nghost-%COMP%] .label[_ngcontent-%COMP%]{margin-bottom:4px;transform-origin:top left;transform:scale(.75) perspective(100px) translateZ(.001px);font-size:14px;color:#0000008a}[_nghost-%COMP%] .with-errors[_ngcontent-%COMP%] .label[_ngcontent-%COMP%], [_nghost-%COMP%] .with-errors[_ngcontent-%COMP%] .select-trigger-button[_ngcontent-%COMP%]{color:var(--warn)}[_nghost-%COMP%] .errors[_ngcontent-%COMP%]{position:absolute;top:66px;left:0;font-size:10.5px}[_nghost-%COMP%] .clear-button[_ngcontent-%COMP%]{--mdc-icon-button-state-layer-size: 32px;--mdc-icon-button-icon-size: 20px;margin-left:4px}"],changeDetection:0});let MaterialIconFieldsetComponent2=_MaterialIconFieldsetComponent;return MaterialIconFieldsetComponent2})();function MaterialIconInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}var MaterialIconInputComponent=(()=>{let _MaterialIconInputComponent=class _MaterialIconInputComponent extends ComponentInputComponent{get inputControl(){return super.inputControl}};_MaterialIconInputComponent.\u0275fac=(()=>{let \u0275MaterialIconInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275MaterialIconInputComponent_BaseFactory||(\u0275MaterialIconInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_MaterialIconInputComponent)))(__ngFactoryType__||_MaterialIconInputComponent)}})(),_MaterialIconInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_MaterialIconInputComponent,selectors:[["ix-material-icon-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:2,vars:3,consts:[[1,"description",3,"innerHTML"],["appearance","legacy",3,"form","label"]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,MaterialIconInputComponent_Conditional_0_Template,2,3,"p",0),\u0275\u0275element(1,"ix-material-icon-fieldset",1)),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("form",ctx.inputControl)("label",ctx.field.inputDescription.label||""))},dependencies:[MaterialIconFieldsetComponent,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}"]});let MaterialIconInputComponent3=_MaterialIconInputComponent;return MaterialIconInputComponent3})();var _c022=a0=>({min:a0}),_c18=a0=>({max:a0});function NumberInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function NumberInputComponent_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",3),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function NumberInputComponent_Conditional_8_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",3),\u0275\u0275text(1,"__MESSAGE__.INVALID_NUMBER"),\u0275\u0275elementEnd())}function NumberInputComponent_Conditional_9_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-error",4),\u0275\u0275text(1,"__MESSAGE__.MIN"),\u0275\u0275elementEnd()),rf&2){let tmp_1_0,ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("translateParams",\u0275\u0275pureFunction1(1,_c022,ctx_r0.inputControl==null||(tmp_1_0=ctx_r0.inputControl.getError("min"))==null?null:tmp_1_0.min))}}function NumberInputComponent_Conditional_10_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-error",4),\u0275\u0275text(1,"__MESSAGE__.MAX"),\u0275\u0275elementEnd()),rf&2){let tmp_1_0,ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("translateParams",\u0275\u0275pureFunction1(1,_c18,ctx_r0.inputControl==null||(tmp_1_0=ctx_r0.inputControl.getError("max"))==null?null:tmp_1_0.max))}}var NumberInputComponent=(()=>{let _NumberInputComponent=class _NumberInputComponent extends ComponentInputComponent{enterKeyDownHandler(event2){event2.target.blur()}};_NumberInputComponent.\u0275fac=(()=>{let \u0275NumberInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275NumberInputComponent_BaseFactory||(\u0275NumberInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_NumberInputComponent)))(__ngFactoryType__||_NumberInputComponent)}})(),_NumberInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_NumberInputComponent,selectors:[["ix-number-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:11,vars:11,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],["matInput","","type","number","autocomplete","off","data-lpignore","true",3,"keydown.enter","step","formControlName","placeholder"],["translate",""],["translate","",3,"translateParams"]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,NumberInputComponent_Conditional_0_Template,2,3,"p",0),\u0275\u0275elementStart(1,"mat-form-field",1)(2,"mat-label"),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"input",2),\u0275\u0275listener("keydown.enter",function($event){return ctx.enterKeyDownHandler($event)}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(5,"mat-hint"),\u0275\u0275text(6),\u0275\u0275elementEnd(),\u0275\u0275template(7,NumberInputComponent_Conditional_7_Template,2,0,"mat-error",3)(8,NumberInputComponent_Conditional_8_Template,2,0,"mat-error",3)(9,NumberInputComponent_Conditional_9_Template,2,3,"mat-error",4)(10,NumberInputComponent_Conditional_10_Template,2,3,"mat-error",4),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("step",ctx.field.inputDescription.step)("formControlName",ctx.field.inputName)("placeholder",ctx.field.inputDescription.placeholder||""),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx.field.inputDescription.hint),\u0275\u0275advance(),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("required")?7:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("number")?8:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("min")?9:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("max")?10:-1))},dependencies:[DefaultValueAccessor,NumberValueAccessor,NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateDirective,MatFormField,MatLabel,MatHint,MatError,MatInput,NumberInputValidatorDirective,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let NumberInputComponent3=_NumberInputComponent;return NumberInputComponent3})();var NumberInput=class extends ComponentPropertiesInput{toFormControl(){let value=this.value??this.inputDescription.defaultValue,validators=this.getValidators(),formControl=new FormControl(value,validators);return this.inputDescription.disabled&&formControl.disable(),formControl}getValidators(){let validators=[],{min:min2,max:max2,required}=this.inputDescription;return required&&validators.push(Validators.required),min2!==void 0&&validators.push(Validators.min(min2)),max2!==void 0&&validators.push(Validators.max(max2)),validators}};function SelectionInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function SelectionInputComponent_For_6_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"mat-option",3),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let option_r2=ctx.$implicit;\u0275\u0275property("value",option_r2.value),\u0275\u0275advance(),\u0275\u0275textInterpolate(option_r2.label)}}function SelectionInputComponent_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",4),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}var SelectionInputComponent=(()=>{let _SelectionInputComponent=class _SelectionInputComponent extends ComponentInputComponent{};_SelectionInputComponent.\u0275fac=(()=>{let \u0275SelectionInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275SelectionInputComponent_BaseFactory||(\u0275SelectionInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_SelectionInputComponent)))(__ngFactoryType__||_SelectionInputComponent)}})(),_SelectionInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_SelectionInputComponent,selectors:[["ix-selection-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:8,vars:5,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],[3,"formControlName"],[3,"value"],["translate",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,SelectionInputComponent_Conditional_0_Template,2,3,"p",0),\u0275\u0275elementStart(1,"mat-form-field",1)(2,"mat-label"),\u0275\u0275text(3),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"mat-select",2),\u0275\u0275repeaterCreate(5,SelectionInputComponent_For_6_Template,2,2,"mat-option",3,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd(),\u0275\u0275template(7,SelectionInputComponent_Conditional_7_Template,2,0,"mat-error",4),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("formControlName",ctx.field.inputName),\u0275\u0275advance(),\u0275\u0275repeater(ctx.field.inputDescription.options),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.inputControl!=null&&ctx.inputControl.hasError("required")?7:-1))},dependencies:[NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateDirective,MatOption,MatFormField,MatLabel,MatError,MatSelect,RenderMarkdownPipe],styles:["[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{display:block}"]});let SelectionInputComponent3=_SelectionInputComponent;return SelectionInputComponent3})();var SelectionInput=class extends ComponentPropertiesInput{constructor(input2,value,component,converter,level){super(input2,value,component,converter,level),this.setValue(value)}setValue(value){super.setValue(value)}transformValue(){let selectedOption=this.inputDescription.options?.find(v=>v.value===this.value);return selectedOption?__spreadProps(__spreadValues({},super.transformValue()),{["$"+this.inputDescription.key]:selectedOption}):super.transformValue()}};var StringInput=class extends ComponentPropertiesInput{constructor(input2,value,component,converter,level,injector){super(input2,value,component,converter,level),this.translate=injector.get(TranslateService),this.setValue(value)}transformValue(){return isString_default(this.value)&&this.value.startsWith("__TRANSLATION__.")?{[this.inputDescription.key]:trimNamespace(this.translate.instant(this.value))}:super.transformValue()}setValue(value){super.setValue(isNil_default(value)?value:String(value))}};function StringInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function StringInputComponent_Conditional_1_Conditional_4_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-translation-icon-button",5),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r3);let ctx_r0=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r0.setTranslationKey($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("key",ctx_r0.translationKey)}}function StringInputComponent_Conditional_1_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",4),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function StringInputComponent_Conditional_1_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field",1)(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"input",2),\u0275\u0275listener("keydown.enter",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.enterKeyDownHandler($event))}),\u0275\u0275elementEnd(),\u0275\u0275template(4,StringInputComponent_Conditional_1_Conditional_4_Template,1,1,"ix-translation-icon-button",3),\u0275\u0275elementStart(5,"mat-hint"),\u0275\u0275text(6),\u0275\u0275elementEnd(),\u0275\u0275template(7,StringInputComponent_Conditional_1_Conditional_7_Template,2,0,"mat-error",4),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("formGroup",ctx_r0.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("formControlName",ctx_r0.field.inputName)("placeholder",ctx_r0.field.inputDescription.placeholder||""),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.translation?4:-1),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.hint),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.inputControl!=null&&ctx_r0.inputControl.hasError("required")?7:-1)}}function StringInputComponent_Conditional_2_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275element(3,"input",6),\u0275\u0275pipe(4,"translate"),\u0275\u0275pipe(5,"trimTranslationNamespace"),\u0275\u0275elementStart(6,"ix-translation-icon-button",5),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r4);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.setTranslationKey($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"mat-hint"),\u0275\u0275text(8),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("value",ctx_r0.translationKey?\u0275\u0275pipeBind1(5,7,\u0275\u0275pipeBind1(4,5,ctx_r0.translationKey)):"")("placeholder",ctx_r0.field.inputDescription.placeholder||""),\u0275\u0275advance(3),\u0275\u0275property("key",ctx_r0.translationKey),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.hint)}}var StringInputComponent=(()=>{let _StringInputComponent=class _StringInputComponent extends ComponentInputComponent{constructor(){super(...arguments),this.translate=inject(TranslateService)}ngOnInit(){this.translation=environment.appName!=="Simulator"&&(this.field?.inputDescription?.translate??!0),this.translationKey=this.inputControl?.value?.startsWith("__TRANSLATION__.")?this.inputControl.value:void 0}setTranslationKey(translationKey){this.translationKey=translationKey,translationKey?this.inputControl?.setValue(this.translationKey):this.inputControl?.setValue(this.translate.instant(this.field.value))}enterKeyDownHandler(event2){event2.target.blur()}};_StringInputComponent.\u0275fac=(()=>{let \u0275StringInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275StringInputComponent_BaseFactory||(\u0275StringInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_StringInputComponent)))(__ngFactoryType__||_StringInputComponent)}})(),_StringInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_StringInputComponent,selectors:[["ix-string-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:3,vars:2,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],["matInput","","autocomplete","off","data-lpignore","true",3,"keydown.enter","formControlName","placeholder"],[3,"key"],["translate",""],[3,"setTranslationKey","key"],["matInput","","disabled","","autocomplete","off","data-lpignore","true",3,"value","placeholder"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,StringInputComponent_Conditional_0_Template,2,3,"p",0)(1,StringInputComponent_Conditional_1_Template,8,7,"mat-form-field",1)(2,StringInputComponent_Conditional_2_Template,9,9,"mat-form-field"),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275conditional(!ctx.translation||!ctx.translationKey?1:2))},dependencies:[DefaultValueAccessor,NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateDirective,MatFormField,MatLabel,MatHint,MatError,MatInput,TranslationIconButtonComponent,TrimTranslationNamespacePipe,TranslatePipe,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}"]});let StringInputComponent3=_StringInputComponent;return StringInputComponent3})();var TextInput=class extends StringInput{};function TextInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function TextInputComponent_Conditional_1_Conditional_4_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-translation-icon-button",5),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r3);let ctx_r0=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r0.setTranslationKey($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("key",ctx_r0.translationKey)}}function TextInputComponent_Conditional_1_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",4),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function TextInputComponent_Conditional_1_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field",1)(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"textarea",2),\u0275\u0275listener("keydown.enter",function($event){return \u0275\u0275restoreView(_r2),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementEnd(),\u0275\u0275template(4,TextInputComponent_Conditional_1_Conditional_4_Template,1,1,"ix-translation-icon-button",3),\u0275\u0275elementStart(5,"mat-hint"),\u0275\u0275text(6),\u0275\u0275elementEnd(),\u0275\u0275template(7,TextInputComponent_Conditional_1_Conditional_7_Template,2,0,"mat-error",4),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("formGroup",ctx_r0.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("formControlName",ctx_r0.field.inputName)("placeholder",ctx_r0.field.inputDescription.placeholder||""),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.translation?4:-1),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.hint),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.inputControl!=null&&ctx_r0.inputControl.hasError("required")?7:-1)}}function TextInputComponent_Conditional_2_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275element(3,"textarea",6),\u0275\u0275pipe(4,"translate"),\u0275\u0275pipe(5,"trimTranslationNamespace"),\u0275\u0275elementStart(6,"ix-translation-icon-button",5),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r4);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.setTranslationKey($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"mat-hint"),\u0275\u0275text(8),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("value",ctx_r0.translationKey?\u0275\u0275pipeBind1(5,7,\u0275\u0275pipeBind1(4,5,ctx_r0.translationKey)):"")("placeholder",ctx_r0.field.inputDescription.placeholder||""),\u0275\u0275advance(3),\u0275\u0275property("key",ctx_r0.translationKey),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.hint)}}var TextInputComponent=(()=>{let _TextInputComponent=class _TextInputComponent extends StringInputComponent{};_TextInputComponent.\u0275fac=(()=>{let \u0275TextInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275TextInputComponent_BaseFactory||(\u0275TextInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_TextInputComponent)))(__ngFactoryType__||_TextInputComponent)}})(),_TextInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_TextInputComponent,selectors:[["ix-text-input"]],features:[\u0275\u0275InheritDefinitionFeature],decls:3,vars:2,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],["matInput","","cdkTextareaAutosize","true","cdkAutosizeMinRows","2","cdkAutosizeMaxRows","15",3,"keydown.enter","formControlName","placeholder"],[3,"key"],["translate",""],[3,"setTranslationKey","key"],["matInput","","cdkTextareaAutosize","true","cdkAutosizeMinRows","2","cdkAutosizeMaxRows","15","disabled","",3,"value","placeholder"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,TextInputComponent_Conditional_0_Template,2,3,"p",0)(1,TextInputComponent_Conditional_1_Template,8,7,"mat-form-field",1)(2,TextInputComponent_Conditional_2_Template,9,9,"mat-form-field"),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275conditional(!ctx.translation||!ctx.translationKey?1:2))},dependencies:[DefaultValueAccessor,NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateDirective,MatFormField,MatLabel,MatHint,MatError,MatInput,CdkTextareaAutosize,TranslationIconButtonComponent,TrimTranslationNamespacePipe,TranslatePipe,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:calc(100% - 40px)}"]});let TextInputComponent3=_TextInputComponent;return TextInputComponent3})();var RichTextInput=class extends StringInput{};var defaultModules={toolbar:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image","video"],["table"]]},QUILL_CONFIG_TOKEN=new InjectionToken("config",{providedIn:"root",factory:()=>({modules:defaultModules})});var _c023=[[["","above-quill-editor-toolbar",""]],[["","quill-editor-toolbar",""]],[["","below-quill-editor-toolbar",""]]],_c19=["[above-quill-editor-toolbar]","[quill-editor-toolbar]","[below-quill-editor-toolbar]"];function QuillEditorComponent_Conditional_0_Template(rf,ctx){rf&1&&\u0275\u0275element(0,"div",0)}function QuillEditorComponent_Conditional_4_Template(rf,ctx){rf&1&&\u0275\u0275element(0,"div",0)}var getFormat=(format2,configFormat)=>format2||configFormat||"html",raf$=()=>new Observable(subscriber=>{let rafId=requestAnimationFrame(()=>{subscriber.next(),subscriber.complete()});return()=>cancelAnimationFrame(rafId)}),QuillService=(()=>{let _QuillService=class _QuillService{constructor(){this.config=inject(QUILL_CONFIG_TOKEN)||{modules:defaultModules},this.document=inject(DOCUMENT),this.quill$=defer(()=>__async(this,null,function*(){if(!this.Quill){let maybePatchedAddEventListener=this.document.addEventListener;this.document.addEventListener=this.document.__zone_symbol__addEventListener||this.document.addEventListener;let quillImport=yield import("./chunk-GTG5ESC5.js");this.document.addEventListener=maybePatchedAddEventListener,this.Quill=quillImport.default?.default??quillImport.default??quillImport}return this.config.customOptions?.forEach(customOption=>{let newCustomOption=this.Quill.import(customOption.import);newCustomOption.whitelist=customOption.whitelist,this.Quill.register(newCustomOption,!0,this.config.suppressGlobalRegisterWarning)}),firstValueFrom(this.registerCustomModules(this.Quill,this.config.customModules,this.config.suppressGlobalRegisterWarning))})).pipe(shareReplay({bufferSize:1,refCount:!1})),this.registeredModules=new Set}getQuill(){return this.quill$}beforeRender(Quill,customModules,beforeRender=this.config.beforeRender){let sources=[this.registerCustomModules(Quill,customModules)];return beforeRender&&sources.push(from(beforeRender())),forkJoin(sources).pipe(map(()=>Quill))}registerCustomModules(Quill,customModules,suppressGlobalRegisterWarning){if(!Array.isArray(customModules))return of(Quill);let sources=[];for(let customModule of customModules){let{path,implementation:maybeImplementation}=customModule;this.registeredModules.has(path)||(this.registeredModules.add(path),isObservable(maybeImplementation)?sources.push(maybeImplementation.pipe(tap(implementation=>{Quill.register(path,implementation,suppressGlobalRegisterWarning)}))):Quill.register(path,maybeImplementation,suppressGlobalRegisterWarning))}return sources.length>0?forkJoin(sources).pipe(map(()=>Quill)):of(Quill)}};_QuillService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_QuillService)},_QuillService.\u0275prov=\u0275\u0275defineInjectable({token:_QuillService,factory:_QuillService.\u0275fac,providedIn:"root"});let QuillService2=_QuillService;return QuillService2})(),QuillEditorBase=(()=>{let _QuillEditorBase=class _QuillEditorBase{constructor(){this.format=input(void 0),this.theme=input(void 0),this.modules=input(void 0),this.debug=input(!1),this.readOnly=input(!1),this.placeholder=input(void 0),this.maxLength=input(void 0),this.minLength=input(void 0),this.required=input(!1),this.formats=input(void 0),this.customToolbarPosition=input("top"),this.sanitize=input(void 0),this.beforeRender=input(void 0),this.styles=input(null),this.registry=input(void 0),this.bounds=input(void 0),this.customOptions=input([]),this.customModules=input([]),this.trackChanges=input(void 0),this.classes=input(void 0),this.trimOnValidation=input(!1),this.linkPlaceholder=input(void 0),this.compareValues=input(!1),this.filterNull=input(!1),this.debounceTime=input(void 0),this.defaultEmptyValue=input(null),this.onEditorCreated=new EventEmitter,this.onEditorChanged=new EventEmitter,this.onContentChanged=new EventEmitter,this.onSelectionChanged=new EventEmitter,this.onFocus=new EventEmitter,this.onBlur=new EventEmitter,this.onNativeFocus=new EventEmitter,this.onNativeBlur=new EventEmitter,this.disabled=!1,this.toolbarPosition=signal("top"),this.subscription=null,this.quillSubscription=null,this.elementRef=inject(ElementRef),this.document=inject(DOCUMENT),this.cd=inject(ChangeDetectorRef),this.domSanitizer=inject(DomSanitizer),this.platformId=inject(PLATFORM_ID),this.renderer=inject(Renderer2),this.zone=inject(NgZone),this.service=inject(QuillService),this.destroyRef=inject(DestroyRef),this.valueGetter=input(quillEditor=>{let html=quillEditor.getSemanticHTML();this.isEmptyValue(html)&&(html=this.defaultEmptyValue());let modelValue=html,format2=getFormat(this.format(),this.service.config.format);if(format2==="text")modelValue=quillEditor.getText();else if(format2==="object")modelValue=quillEditor.getContents();else if(format2==="json")try{modelValue=JSON.stringify(quillEditor.getContents())}catch{modelValue=quillEditor.getText()}return modelValue}),this.valueSetter=input((quillEditor,value)=>{let format2=getFormat(this.format(),this.service.config.format);if(format2==="html")return([!0,!1].includes(this.sanitize())?this.sanitize():this.service.config.sanitize||!1)&&(value=this.domSanitizer.sanitize(SecurityContext.HTML,value)),quillEditor.clipboard.convert({html:value});if(format2==="json")try{return JSON.parse(value)}catch{return[{insert:value}]}return value}),this.selectionChangeHandler=(range3,oldRange,source)=>{let trackChanges=this.trackChanges()||this.service.config.trackChanges,shouldTriggerOnModelTouched=!range3&&!!this.onModelTouched&&(source==="user"||trackChanges&&trackChanges==="all");!this.onBlur.observed&&!this.onFocus.observed&&!this.onSelectionChanged.observed&&!shouldTriggerOnModelTouched||this.zone.run(()=>{range3===null?this.onBlur.emit({editor:this.quillEditor,source}):oldRange===null&&this.onFocus.emit({editor:this.quillEditor,source}),this.onSelectionChanged.emit({editor:this.quillEditor,oldRange,range:range3,source}),shouldTriggerOnModelTouched&&this.onModelTouched(),this.cd.markForCheck()})},this.textChangeHandler=(delta,oldDelta,source)=>{let text=this.quillEditor.getText(),content=this.quillEditor.getContents(),html=this.quillEditor.getSemanticHTML();this.isEmptyValue(html)&&(html=this.defaultEmptyValue());let trackChanges=this.trackChanges()||this.service.config.trackChanges,shouldTriggerOnModelChange=(source==="user"||trackChanges&&trackChanges==="all")&&!!this.onModelChange;!this.onContentChanged.observed&&!shouldTriggerOnModelChange||this.zone.run(()=>{if(shouldTriggerOnModelChange){let valueGetter=this.valueGetter();this.onModelChange(valueGetter(this.quillEditor))}this.onContentChanged.emit({content,delta,editor:this.quillEditor,html,oldDelta,source,text}),this.cd.markForCheck()})},this.editorChangeHandler=(event2,current,old,source)=>{if(this.onEditorChanged.observed)if(event2==="text-change"){let text=this.quillEditor.getText(),content=this.quillEditor.getContents(),html=this.quillEditor.getSemanticHTML();this.isEmptyValue(html)&&(html=this.defaultEmptyValue()),this.zone.run(()=>{this.onEditorChanged.emit({content,delta:current,editor:this.quillEditor,event:event2,html,oldDelta:old,source,text}),this.cd.markForCheck()})}else this.zone.run(()=>{this.onEditorChanged.emit({editor:this.quillEditor,event:event2,oldRange:old,range:current,source}),this.cd.markForCheck()})}}static normalizeClassNames(classes){return classes.trim().split(" ").reduce((prev,cur)=>{let trimmed=cur.trim();return trimmed&&prev.push(trimmed),prev},[])}ngOnInit(){this.toolbarPosition.set(this.customToolbarPosition())}ngAfterViewInit(){isPlatformServer(this.platformId)||(this.quillSubscription=this.service.getQuill().pipe(mergeMap(Quill=>this.service.beforeRender(Quill,this.customModules(),this.beforeRender()))).subscribe(Quill=>{this.editorElem=this.elementRef.nativeElement.querySelector("[quill-editor-element]");let toolbarElem=this.elementRef.nativeElement.querySelector("[quill-editor-toolbar]"),modules=Object.assign({},this.modules()||this.service.config.modules);toolbarElem?modules.toolbar=toolbarElem:modules.toolbar===void 0&&(modules.toolbar=defaultModules.toolbar);let placeholder=this.placeholder()!==void 0?this.placeholder():this.service.config.placeholder;placeholder===void 0&&(placeholder="Insert text here ...");let styles=this.styles();styles&&Object.keys(styles).forEach(key=>{this.renderer.setStyle(this.editorElem,key,styles[key])}),this.classes()&&this.addClasses(this.classes()),this.customOptions().forEach(customOption=>{let newCustomOption=Quill.import(customOption.import);newCustomOption.whitelist=customOption.whitelist,Quill.register(newCustomOption,!0)});let bounds=this.bounds()&&this.bounds()==="self"?this.editorElem:this.bounds();bounds||(bounds=this.service.config.bounds?this.service.config.bounds:this.document.body);let debug=this.debug();!debug&&debug!==!1&&this.service.config.debug&&(debug=this.service.config.debug);let readOnly=this.readOnly();!readOnly&&this.readOnly()!==!1&&(readOnly=this.service.config.readOnly!==void 0?this.service.config.readOnly:!1);let formats=this.formats();if(!formats&&formats===void 0&&(formats=this.service.config.formats?[...this.service.config.formats]:this.service.config.formats===null?null:void 0),this.zone.runOutsideAngular(()=>{if(this.quillEditor=new Quill(this.editorElem,{bounds,debug,formats,modules,placeholder,readOnly,registry:this.registry(),theme:this.theme()||(this.service.config.theme?this.service.config.theme:"snow")}),this.onNativeBlur.observed){fromEvent(this.quillEditor.scroll.domNode,"blur").pipe(takeUntilDestroyed(this.destroyRef)).subscribe(()=>this.onNativeBlur.next({editor:this.quillEditor,source:"dom"}));let toolbar=this.quillEditor.getModule("toolbar");toolbar.container&&fromEvent(toolbar.container,"mousedown").pipe(takeUntilDestroyed(this.destroyRef)).subscribe(e=>e.preventDefault())}if(this.onNativeFocus.observed&&fromEvent(this.quillEditor.scroll.domNode,"focus").pipe(takeUntilDestroyed(this.destroyRef)).subscribe(()=>this.onNativeFocus.next({editor:this.quillEditor,source:"dom"})),this.linkPlaceholder()){let input2=this.quillEditor?.theme?.tooltip?.root?.querySelector("input[data-link]");input2?.dataset&&(input2.dataset.link=this.linkPlaceholder())}}),this.content){if(getFormat(this.format(),this.service.config.format)==="text")this.quillEditor.setText(this.content,"silent");else{let newValue=this.valueSetter()(this.quillEditor,this.content);this.quillEditor.setContents(newValue,"silent")}this.quillEditor.getModule("history").clear()}this.setDisabledState(),this.addQuillEventListeners(),!(!this.onEditorCreated.observed&&!this.onValidatorChanged)&&raf$().pipe(takeUntilDestroyed(this.destroyRef)).subscribe(()=>{this.onValidatorChanged&&this.onValidatorChanged(),this.onEditorCreated.emit(this.quillEditor)})}))}ngOnDestroy(){this.dispose(),this.quillSubscription?.unsubscribe(),this.quillSubscription=null}ngOnChanges(changes){if(this.quillEditor){if(changes.readOnly&&this.quillEditor.enable(!changes.readOnly.currentValue),changes.placeholder&&(this.quillEditor.root.dataset.placeholder=changes.placeholder.currentValue),changes.styles){let currentStyling=changes.styles.currentValue,previousStyling=changes.styles.previousValue;previousStyling&&Object.keys(previousStyling).forEach(key=>{this.renderer.removeStyle(this.editorElem,key)}),currentStyling&&Object.keys(currentStyling).forEach(key=>{this.renderer.setStyle(this.editorElem,key,this.styles()[key])})}if(changes.classes){let currentClasses=changes.classes.currentValue,previousClasses=changes.classes.previousValue;previousClasses&&this.removeClasses(previousClasses),currentClasses&&this.addClasses(currentClasses)}changes.debounceTime&&this.addQuillEventListeners()}}addClasses(classList){_QuillEditorBase.normalizeClassNames(classList).forEach(c=>{this.renderer.addClass(this.editorElem,c)})}removeClasses(classList){_QuillEditorBase.normalizeClassNames(classList).forEach(c=>{this.renderer.removeClass(this.editorElem,c)})}writeValue(currentValue){if(this.filterNull()&¤tValue===null||(this.content=currentValue,!this.quillEditor))return;let format2=getFormat(this.format(),this.service.config.format),newValue=this.valueSetter()(this.quillEditor,currentValue);if(this.compareValues()){let currentEditorValue=this.quillEditor.getContents();if(JSON.stringify(currentEditorValue)===JSON.stringify(newValue))return}if(currentValue){format2==="text"?this.quillEditor.setText(currentValue):this.quillEditor.setContents(newValue);return}this.quillEditor.setText("")}setDisabledState(isDisabled=this.disabled){this.disabled=isDisabled,this.quillEditor&&(isDisabled?(this.quillEditor.disable(),this.renderer.setAttribute(this.elementRef.nativeElement,"disabled","disabled")):(this.readOnly()||this.quillEditor.enable(),this.renderer.removeAttribute(this.elementRef.nativeElement,"disabled")))}registerOnChange(fn2){this.onModelChange=fn2}registerOnTouched(fn2){this.onModelTouched=fn2}registerOnValidatorChange(fn2){this.onValidatorChanged=fn2}validate(){if(!this.quillEditor)return null;let err={},valid=!0,text=this.quillEditor.getText(),textLength=this.trimOnValidation()?text.trim().length:text.length===1&&text.trim().length===0?0:text.length-1,deltaOperations=this.quillEditor.getContents().ops,onlyEmptyOperation=!!deltaOperations&&deltaOperations.length===1&&[`
|
|
664
664
|
`,""].includes(deltaOperations[0].insert?.toString());return this.minLength()&&textLength&&textLength<this.minLength()&&(err.minLengthError={given:textLength,minLength:this.minLength()},valid=!1),this.maxLength()&&textLength>this.maxLength()&&(err.maxLengthError={given:textLength,maxLength:this.maxLength()},valid=!1),this.required()&&!textLength&&onlyEmptyOperation&&(err.requiredError={empty:!0},valid=!1),valid?null:err}addQuillEventListeners(){this.dispose(),this.zone.runOutsideAngular(()=>{this.subscription=new Subscription,this.subscription.add(fromEvent(this.quillEditor,"selection-change").subscribe(([range3,oldRange,source])=>{this.selectionChangeHandler(range3,oldRange,source)}));let textChange$=fromEvent(this.quillEditor,"text-change"),editorChange$=fromEvent(this.quillEditor,"editor-change");typeof this.debounceTime()=="number"&&(textChange$=textChange$.pipe(debounceTime(this.debounceTime())),editorChange$=editorChange$.pipe(debounceTime(this.debounceTime()))),this.subscription.add(textChange$.subscribe(([delta,oldDelta,source])=>{this.textChangeHandler(delta,oldDelta,source)})),this.subscription.add(editorChange$.subscribe(([event2,current,old,source])=>{this.editorChangeHandler(event2,current,old,source)}))})}dispose(){this.subscription!==null&&(this.subscription.unsubscribe(),this.subscription=null)}isEmptyValue(html){return html==="<p></p>"||html==="<div></div>"||html==="<p><br></p>"||html==="<div><br></div>"}};_QuillEditorBase.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_QuillEditorBase)},_QuillEditorBase.\u0275dir=\u0275\u0275defineDirective({type:_QuillEditorBase,inputs:{format:[1,"format"],theme:[1,"theme"],modules:[1,"modules"],debug:[1,"debug"],readOnly:[1,"readOnly"],placeholder:[1,"placeholder"],maxLength:[1,"maxLength"],minLength:[1,"minLength"],required:[1,"required"],formats:[1,"formats"],customToolbarPosition:[1,"customToolbarPosition"],sanitize:[1,"sanitize"],beforeRender:[1,"beforeRender"],styles:[1,"styles"],registry:[1,"registry"],bounds:[1,"bounds"],customOptions:[1,"customOptions"],customModules:[1,"customModules"],trackChanges:[1,"trackChanges"],classes:[1,"classes"],trimOnValidation:[1,"trimOnValidation"],linkPlaceholder:[1,"linkPlaceholder"],compareValues:[1,"compareValues"],filterNull:[1,"filterNull"],debounceTime:[1,"debounceTime"],defaultEmptyValue:[1,"defaultEmptyValue"],valueGetter:[1,"valueGetter"],valueSetter:[1,"valueSetter"]},outputs:{onEditorCreated:"onEditorCreated",onEditorChanged:"onEditorChanged",onContentChanged:"onContentChanged",onSelectionChanged:"onSelectionChanged",onFocus:"onFocus",onBlur:"onBlur",onNativeFocus:"onNativeFocus",onNativeBlur:"onNativeBlur"},features:[\u0275\u0275NgOnChangesFeature]});let QuillEditorBase2=_QuillEditorBase;return QuillEditorBase2})(),QuillEditorComponent=(()=>{let _QuillEditorComponent=class _QuillEditorComponent extends QuillEditorBase{};_QuillEditorComponent.\u0275fac=(()=>{let \u0275QuillEditorComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275QuillEditorComponent_BaseFactory||(\u0275QuillEditorComponent_BaseFactory=\u0275\u0275getInheritedFactory(_QuillEditorComponent)))(__ngFactoryType__||_QuillEditorComponent)}})(),_QuillEditorComponent.\u0275cmp=\u0275\u0275defineComponent({type:_QuillEditorComponent,selectors:[["quill-editor"]],standalone:!0,features:[\u0275\u0275ProvidersFeature([{multi:!0,provide:NG_VALUE_ACCESSOR,useExisting:forwardRef(()=>_QuillEditorComponent)},{multi:!0,provide:NG_VALIDATORS,useExisting:forwardRef(()=>_QuillEditorComponent)}]),\u0275\u0275InheritDefinitionFeature,\u0275\u0275StandaloneFeature],ngContentSelectors:_c19,decls:5,vars:2,consts:[["quill-editor-element",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275projectionDef(_c023),\u0275\u0275template(0,QuillEditorComponent_Conditional_0_Template,1,0,"div",0),\u0275\u0275projection(1),\u0275\u0275projection(2,1),\u0275\u0275projection(3,2),\u0275\u0275template(4,QuillEditorComponent_Conditional_4_Template,1,0,"div",0)),rf&2&&(\u0275\u0275conditional(ctx.toolbarPosition()!=="top"?0:-1),\u0275\u0275advance(4),\u0275\u0275conditional(ctx.toolbarPosition()==="top"?4:-1))},styles:["[_nghost-%COMP%]{display:inline-block}"]});let QuillEditorComponent2=_QuillEditorComponent;return QuillEditorComponent2})();var import_markdown_it2=__toESM(require_markdown_it());function renderMarkdownToHtml(markdown){let markdownIt=new import_markdown_it2.default({typographer:!0}),defaultRender=markdownIt.renderer.rules.link_open||function(tokens,idx,options,env,self2){return self2.renderToken(tokens,idx,options)};return markdownIt.renderer.rules.link_open=function(tokens,idx,options,env,self2){return tokens[idx].attrPush(["target","_blank"]),defaultRender(tokens,idx,options,env,self2)},markdownIt.render(markdown)}var indentRegex=/^ql-indent-([0-9]+)/;function addStylingToQuillContent(content){let htmlObject=document.createElement("div");return htmlObject.innerHTML=content,addStylingToHtmlChildNodes(htmlObject.childNodes),htmlObject.innerHTML}function addStylingToHtmlChildNodes(children){children.forEach(child=>{let element=child;setCodeBlockStyling(element),setIndentStyling(element),setListStyling(element),setQuotesStyling(element),child.childNodes.length&&addStylingToHtmlChildNodes(child.childNodes)})}function setCodeBlockStyling(element){element.tagName==="PRE"&&(element.hasAttribute("data-language")||element.classList?.contains("ql-syntax"))&&(element.style.backgroundColor="#f6f8fa",element.style.color="initial",element.style.overflow="visible",element.style.padding="5px 10px")}function setIndentStyling(element){element.classList?.forEach(className=>{let matches=className.match(indentRegex);if(matches?.[1]){let identNumber=parseInt(matches?.[1]);element.style.paddingLeft=3*identNumber+"em"}})}function setListStyling(element){element.tagName==="OL"&&(element.style.paddingLeft="1.5em"),element.tagName==="LI"&&(element.style.listStylePosition="inside")}function setQuotesStyling(element){element.tagName==="BLOCKQUOTE"&&(element.style.borderLeft="4px solid #ccc",element.style.margin="5px 0",element.style.paddingLeft="16px")}function registerQuillModules(){registerAlignStyle(),registerBlock()}function registerAlignStyle(){let alignStyle=quill_default.import("attributors/style/align");quill_default.register(alignStyle,!0)}function registerBlock(){let block=quill_default.import("blots/block");block.tagName="DIV",quill_default.register(block)}var _c024=()=>({height:"400px"});function RichTextFormFieldComponent_Conditional_0_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"form",0)(1,"quill-editor",2),\u0275\u0275listener("onEditorCreated",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.onEditorCreated($event))})("keydown.backspace",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())})("keydown.delete",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(2,"div",3)(3,"span",4)(4,"select",5),\u0275\u0275element(5,"option",6)(6,"option",7)(7,"option",8)(8,"option",9)(9,"option",10)(10,"option",11),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(11,"span",4),\u0275\u0275element(12,"button",12)(13,"button",13)(14,"button",14)(15,"button",15),\u0275\u0275elementEnd(),\u0275\u0275elementStart(16,"span",4),\u0275\u0275element(17,"button",16)(18,"button",17),\u0275\u0275elementEnd(),\u0275\u0275elementStart(19,"span",4)(20,"select",18),\u0275\u0275element(21,"option",6)(22,"option",19)(23,"option",20)(24,"option",21),\u0275\u0275elementEnd(),\u0275\u0275element(25,"button",22)(26,"button",23),\u0275\u0275elementEnd(),\u0275\u0275elementStart(27,"span",4),\u0275\u0275element(28,"button",24)(29,"button",25),\u0275\u0275elementEnd(),\u0275\u0275elementStart(30,"span",4),\u0275\u0275element(31,"button",26)(32,"button",27)(33,"button",28),\u0275\u0275elementEnd()()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("formGroup",ctx_r1.form),\u0275\u0275advance(),\u0275\u0275property("styles",\u0275\u0275pureFunction0(16,_c024))("placeholder",ctx_r1.field.inputDescription.placeholder||""),\u0275\u0275advance(11),\u0275\u0275property("matTooltip","Bold"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Italic"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Underline"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Strike-through"),\u0275\u0275advance(2),\u0275\u0275property("matTooltip","Text color"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Highlight color"),\u0275\u0275advance(7),\u0275\u0275property("matTooltip","Decrease indent"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Increase indent"),\u0275\u0275advance(2),\u0275\u0275property("matTooltip","Bulleted list"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Numbered list"),\u0275\u0275advance(2),\u0275\u0275property("matTooltip","Blockquote"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Code Block"),\u0275\u0275advance(),\u0275\u0275property("matTooltip","Insert link")}}function RichTextFormFieldComponent_Conditional_1_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",1)(1,"textarea",29),\u0275\u0275listener("keydown.enter",function($event){return \u0275\u0275restoreView(_r3),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(2,"a",30),\u0275\u0275pipe(3,"translate"),\u0275\u0275elementStart(4,"mat-icon"),\u0275\u0275text(5,"markdown"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("formControl",ctx_r1.form.controls.editor)("placeholder",ctx_r1.field.inputDescription.placeholder||""),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(3,4,"MARKDOWN_IS_SUPPORTED"))("matTooltipPosition","left")}}var RichTextFormFieldComponent=(()=>{let _RichTextFormFieldComponent=class _RichTextFormFieldComponent{constructor(){this.mode="rich-text",this.modeChange=new EventEmitter,this.valueChange=new EventEmitter,this.destroy=inject(DestroyRef),this.dialog=inject(MatDialog),this.formBuilder=inject(FormBuilder),this.colorPickerPanelService=inject(ColorPickerPanelService),this.ngZone=inject(NgZone),this.translate=inject(TranslateService),this.activeMode="rich-text",this.modules={toolbar:{container:"#toolbar"}},this.form=this.formBuilder.nonNullable.group({editor:[""]})}blockPaste(e){e.stopPropagation()}blockCopy(e){e.stopPropagation()}blockCut(e){e.stopPropagation()}ngOnInit(){registerQuillModules(),typeof this.field.value=="string"&&this.form.setValue({editor:this.field.value}),this.form.controls.editor.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>this.valueChange.emit(this.mode==="rich-text"?addStylingToQuillContent(value):value))}ngOnChanges(changes){changes.mode.firstChange&&(this.activeMode=this.mode),changes.mode.previousValue==="plain-text"&&changes.mode.currentValue==="rich-text"&&this.switchFromPlainTextToRichText(),changes.mode.previousValue==="rich-text"&&changes.mode.currentValue==="plain-text"&&this.mode!==this.activeMode&&(this.previousFormValue=this.form.value,this.activeMode=this.mode)}onEditorCreated(editor){this.quill=editor;let toolbar=editor.getModule("toolbar"),backgroundButton=toolbar.container?.querySelector(".ql-background"),colorButton=toolbar.container?.querySelector(".ql-color");backgroundButton&&toolbar.addHandler("background",()=>this.openColorPicker(backgroundButton,"background")),colorButton&&toolbar.addHandler("color",()=>this.openColorPicker(colorButton,"color","#000000")),editor.on("selection-change",range3=>{range3&&(this.setColorButtonColor(range3),this.setBackgroundButtonColor(range3))})}openColorPicker(element,format2,defaultColor="#FFFFFF"){this.ngZone.run(()=>{let range3=this.quill.getSelection();if(range3){let currentColor=(this.quill.getFormat(range3)[format2]??defaultColor).toUpperCase(),colorPickerColor=currentColor==="TRANSPARENT"?defaultColor:currentColor;this.colorPickerPanelService.show(element,{color:colorPickerColor}).afterClosed().subscribe(color=>{color===defaultColor?this.quill.format(format2,!1,quill_default.sources.USER):this.quill.format(format2,color,quill_default.sources.USER)})}})}setColorButtonColor(range3){let color=this.quill.getFormat(range3)?.color?.toUpperCase(),colorLabel=this.quill.getModule("toolbar").container?.querySelector(".ql-color .ql-stroke");colorLabel&&(color&&color!=="TRANSPARENT"?colorLabel.style.stroke=color==="#FFFFFF"?"#E1E1E1":color:colorLabel.style.stroke="#000000")}setBackgroundButtonColor(range3){let color=this.quill.getFormat(range3)?.background?.toUpperCase(),colorLabel=this.quill.getModule("toolbar").container?.querySelector(".ql-background .ql-fill");colorLabel&&(color&&color!=="TRANSPARENT"?colorLabel.style.fill=color:colorLabel.style.fill="#E1E1E1")}switchFromPlainTextToRichText(){let formValue=this.form.value;formValue.editor!==""&&formValue.editor!==this.previousFormValue?.editor?this.dialog.open(ConfirmDialogComponent,{data:{title:this.translate.instant("WARNING"),message:this.translate.instant("__TEXT__.MARKDOWN_FORMATTING_TO_RICH_TEXT")}}).afterClosed().subscribe(confirmed=>{if(confirmed){if(this.activeMode="rich-text",this.modeChange.emit("rich-text"),formValue.editor){let html=renderMarkdownToHtml(formValue.editor),editor=addStylingToQuillContent(html);this.form.patchValue({editor})}}else this.modeChange.emit("plain-text")}):(this.activeMode="rich-text",this.modeChange.emit("rich-text"))}};_RichTextFormFieldComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_RichTextFormFieldComponent)},_RichTextFormFieldComponent.\u0275cmp=\u0275\u0275defineComponent({type:_RichTextFormFieldComponent,selectors:[["ix-rich-text-form-field"]],hostBindings:function(rf,ctx){rf&1&&\u0275\u0275listener("paste",function($event){return ctx.blockPaste($event)})("copy",function($event){return ctx.blockCopy($event)})("cut",function($event){return ctx.blockCut($event)})},inputs:{field:"field",mode:"mode"},outputs:{modeChange:"modeChange",valueChange:"valueChange"},standalone:!0,features:[\u0275\u0275NgOnChangesFeature,\u0275\u0275StandaloneFeature],decls:2,vars:1,consts:[[3,"formGroup"],[1,"plain-text"],["bounds","self","formControlName","editor",3,"onEditorCreated","keydown.backspace","keydown.delete","styles","placeholder"],["quill-editor-toolbar","","data-testid","rich-text-toolbar"],[1,"ql-formats"],[1,"ql-header"],["selected",""],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["matTooltipShowDelay","500",1,"ql-bold",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-italic",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-underline",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-strike",3,"matTooltip"],["matTooltipShowDelay","500","data-testid","rich-text-color-button",1,"ql-color",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-background",3,"matTooltip"],[1,"ql-align"],["value","center"],["value","right"],["value","justify"],["value","-1","matTooltipShowDelay","500",1,"ql-indent",3,"matTooltip"],["value","+1","matTooltipShowDelay","500",1,"ql-indent",3,"matTooltip"],["value","bullet","matTooltipShowDelay","500",1,"ql-list",3,"matTooltip"],["value","ordered","matTooltipShowDelay","500",1,"ql-list",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-blockquote",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-code-block",3,"matTooltip"],["matTooltipShowDelay","500",1,"ql-link",3,"matTooltip"],[3,"keydown.enter","formControl","placeholder"],["href","https://commonmark.org/help/","target","_blank","mat-icon-button","",1,"markdown-info-button",3,"matTooltip","matTooltipPosition"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,RichTextFormFieldComponent_Conditional_0_Template,34,17,"form",0)(1,RichTextFormFieldComponent_Conditional_1_Template,6,6,"div",1),rf&2&&\u0275\u0275conditional(ctx.activeMode==="rich-text"?0:1)},dependencies:[ReactiveFormsModule,\u0275NgNoValidate,NgSelectOption,\u0275NgSelectMultipleOption,DefaultValueAccessor,NgControlStatus,NgControlStatusGroup,FormControlDirective,FormGroupDirective,FormControlName,FlexLayoutModule,MatButtonModule,MatIconAnchor,MatDialogModule,MatFormFieldModule,MatIconModule,MatIcon,MatInputModule,MatTooltipModule,MatTooltip,ColorPickerPanelModule,QuillEditorComponent,TranslateModule,TranslatePipe],styles:['[_nghost-%COMP%]{display:block}[_nghost-%COMP%] quill-editor[_ngcontent-%COMP%]{width:100%;color:var(--body-color)}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] .plain-text[_ngcontent-%COMP%]{display:flex;position:relative;width:100%;font-family:Roboto,sans-serif;white-space:pre-wrap;overflow-wrap:break-word}[_nghost-%COMP%] .plain-text[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%;height:441px;max-height:441px;box-sizing:border-box;padding:12px;border-radius:4px 4px 0 0;background-color:#f5f5f5;border:none;border-bottom:1px solid rgba(0,0,0,.42);resize:none}[_nghost-%COMP%] .plain-text[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:focus-visible{outline:none}[_nghost-%COMP%] .plain-text[_ngcontent-%COMP%] .markdown-info-button[_ngcontent-%COMP%]{position:absolute;right:5px;bottom:5px}[_nghost-%COMP%] .ql-toolbar{border-radius:4px 4px 0 0}[_nghost-%COMP%] .ql-toolbar.ql-snow{display:flex;flex-flow:row wrap;row-gap:4px;background-color:#f5f5f5;border:none;border-bottom:1px solid rgba(0,0,0,.12)}[_nghost-%COMP%] .ql-toolbar.ql-snow button, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item{color:var(--body-color)}[_nghost-%COMP%] .ql-toolbar.ql-snow button .ql-fill, [_nghost-%COMP%] .ql-toolbar.ql-snow button .ql-stroke.ql-fill, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label .ql-fill, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label .ql-stroke.ql-fill, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item .ql-fill, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item .ql-stroke.ql-fill{fill:var(--body-color)}[_nghost-%COMP%] .ql-toolbar.ql-snow button .ql-stroke, [_nghost-%COMP%] .ql-toolbar.ql-snow button .ql-stroke-miter, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label .ql-stroke, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label .ql-stroke-miter, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item .ql-stroke, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item .ql-stroke-miter{stroke:var(--body-color)}[_nghost-%COMP%] .ql-toolbar.ql-snow button:hover, [_nghost-%COMP%] .ql-toolbar.ql-snow button:focus, [_nghost-%COMP%] .ql-toolbar.ql-snow button.ql-active, [_nghost-%COMP%] .ql-toolbar.ql-snow button.ql-selected, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label:hover, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label:focus, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label.ql-active, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-label.ql-selected, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item:hover, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item:focus, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item.ql-active, [_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker-item.ql-selected{background-color:#00000014;border-radius:4px}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:transparent}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker .ql-picker-options{border-radius:8px;border:none}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-label.ql-active:not(:hover, [_ngcontent-%COMP%]:focus){background-color:inherit}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-label>svg>polygon:nth-child(1){stroke-linejoin:initial;transform:translateY(-2px)}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-label>svg>polygon:nth-child(2){display:none}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-options{padding-left:0;padding-right:0}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-options .ql-picker-item{padding-left:8px;padding-right:8px;border-radius:0}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-options .ql-picker-item[data-value="1"]{padding-top:10px}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-picker.ql-header .ql-picker-options .ql-picker-item[data-value="2"]{padding-top:8px}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-align.ql-picker.ql-expanded .ql-picker-options{display:flex;padding:4px 4px 3px}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-align.ql-picker.ql-expanded .ql-picker-options .ql-picker-item{padding:4px}[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-color .ql-color-label.ql-stroke.ql-transparent{opacity:1;stroke-linecap:square;stroke-width:4}@media (min-resolution: 2dppx){[_nghost-%COMP%] .ql-toolbar.ql-snow .ql-color .ql-color-label.ql-stroke.ql-transparent{stroke-width:3}}[_nghost-%COMP%] .ql-snow{font-family:Roboto,sans-serif}[_nghost-%COMP%] .ql-snow a{color:var(--primary)}[_nghost-%COMP%] .ql-snow a:hover{color:var(--primary-palette-900)}[_nghost-%COMP%] .ql-snow .ql-code-block-container{background-color:#f6f8fa!important;border:1px solid rgba(0,0,0,.12);color:initial!important}[_nghost-%COMP%] .ql-container{border-radius:0}[_nghost-%COMP%] .ql-container.ql-snow{background-color:#f5f5f5;border:none;border-bottom:1px solid rgba(0,0,0,.42)}[_nghost-%COMP%] .ql-container .ql-editor.ql-blank:before{font-style:normal;color:#0000006b}']});let RichTextFormFieldComponent2=_RichTextFormFieldComponent;return RichTextFormFieldComponent2})();var RichTextDialogComponent=(()=>{let _RichTextDialogComponent=class _RichTextDialogComponent{constructor(){this.data=inject(MAT_DIALOG_DATA),this.destroy=inject(DestroyRef),this.dialog=inject(MatDialog),this.dialogRef=inject(MatDialogRef),this.modules={toolbar:{container:"#toolbar"}}}ngOnInit(){this.dialogRef.keydownEvents().pipe(takeUntilDestroyed(this.destroy)).subscribe(event2=>{event2.key==="Escape"&&this.openDiscardChangesWarningDialog()}),this.dialogRef.backdropClick().pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>this.openDiscardChangesWarningDialog())}get activeMode(){return this.formField?.activeMode??this.data.mode}submit(){let formValue=this.formField.form.value,editor=formValue.editor?addStylingToQuillContent(formValue.editor):null;this.dialogRef.close({value:editor})}toggleMode(){this.data.mode=this.data.mode==="rich-text"?"plain-text":"rich-text"}updateMode(mode){this.data.mode=mode}openDiscardChangesWarningDialog(){this.formField.form.dirty?this.dialog.open(DiscardChangesDialogComponent,{panelClass:"fullscreen"}).afterClosed().subscribe(result=>{result&&this.dialogRef.close()}):this.dialogRef.close()}};_RichTextDialogComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_RichTextDialogComponent)},_RichTextDialogComponent.\u0275cmp=\u0275\u0275defineComponent({type:_RichTextDialogComponent,selectors:[["ix-rich-text-dialog"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(RichTextFormFieldComponent,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.formField=_t.first)}},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:16,vars:8,consts:[["mat-dialog-title","","translate","","data-testid","rich-text-dialog-title"],["mat-dialog-content",""],[3,"modeChange","field","mode"],["type","button","mat-stroked-button","","data-testid","change-mode-button",1,"change-mode-button",3,"click"],["fxFlex",""],["mat-button","","mat-dialog-close",""],["translate",""],["mat-button","","color","primary",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"h1",0),\u0275\u0275text(1),\u0275\u0275pipe(2,"titlecase"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"div",1)(4,"ix-rich-text-form-field",2),\u0275\u0275listener("modeChange",function($event){return ctx.updateMode($event)}),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-dialog-actions")(6,"button",3),\u0275\u0275listener("click",function(){return ctx.toggleMode()}),\u0275\u0275text(7),\u0275\u0275pipe(8,"translate"),\u0275\u0275elementEnd(),\u0275\u0275element(9,"span",4),\u0275\u0275elementStart(10,"button",5)(11,"span",6),\u0275\u0275text(12,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(13,"button",7),\u0275\u0275listener("click",function(){return ctx.submit()}),\u0275\u0275elementStart(14,"span",6),\u0275\u0275text(15,"CONFIRM"),\u0275\u0275elementEnd()()()),rf&2&&(\u0275\u0275advance(),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(2,4,ctx.data.field.inputName)),\u0275\u0275advance(3),\u0275\u0275property("field",ctx.data.field)("mode",ctx.data.mode),\u0275\u0275advance(3),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind1(8,6,ctx.activeMode==="rich-text"?"SWITCH_TO_PLAIN_TEXT_EDITING":"SWITCH_TO_RICH_TEXT_EDITING")," "))},dependencies:[ColorPickerPanelModule,FlexLayoutModule,DefaultFlexDirective,MatButtonModule,MatButton,MatDialogModule,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,MatFormFieldModule,MatIconModule,MatInputModule,MatTooltipModule,TitleCasePipe,TranslateModule,TranslatePipe,TranslateDirective,RichTextFormFieldComponent],styles:["[_nghost-%COMP%]{width:100dvw;height:100dvh;display:flex;flex-direction:column;flex:1}@media (min-width: 960px){[_nghost-%COMP%]{height:auto;width:auto;min-width:908px;max-width:908px}}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%]{padding:calc(env(safe-area-inset-top,0) + 24px) 24px 24px;border-bottom:1px solid rgba(0,0,0,.12)}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar{height:48px;padding-left:0;padding-right:0}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title{padding-left:0;padding-bottom:0;color:inherit}[_nghost-%COMP%] .ix-dialog__header[_ngcontent-%COMP%] .mat-toolbar .mdc-dialog__title:before{display:none}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]{--mdc-dialog-subhead-font: var(--font-family);--mdc-dialog-subhead-size: 17px}[_nghost-%COMP%] .mdc-dialog__title[_ngcontent-%COMP%]:before{height:calc(env(safe-area-inset-top,0) + 40px)}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%]{padding:20px 24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .ix-list[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;place-content:stretch flex-start;align-items:stretch;flex:1 1 auto;max-height:none;overflow:auto;-webkit-overflow-scrolling:touch}[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%] > .mat-mdc-subheader[_ngcontent-%COMP%]{margin-left:0;margin-right:0}@media (min-width: 960px){[_nghost-%COMP%] .ix-dialog__content[_ngcontent-%COMP%], [_nghost-%COMP%] .mdc-dialog__content[_ngcontent-%COMP%]{max-height:calc(90dvh - 140px)}}@media (max-width: 959.9px){[_nghost-%COMP%] .mdc-dialog__actions[_ngcontent-%COMP%]{border-top:1px solid rgba(0,0,0,.12);padding-bottom:calc(8px + env(safe-area-inset-bottom,0))}}[_nghost-%COMP%] form[_ngcontent-%COMP%]{flex-direction:column;box-sizing:border-box;display:flex;flex:1 1 auto;height:inherit}[_nghost-%COMP%] form[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:1rem}[_nghost-%COMP%] .mat-mdc-dialog-content[_ngcontent-%COMP%]{padding-bottom:8px}[_nghost-%COMP%] .mat-mdc-dialog-actions[_ngcontent-%COMP%] .change-mode-button[_ngcontent-%COMP%]{--mdc-outlined-button-container-height: 30px;--mdc-outlined-button-label-text-size: 13px;margin-left:16px}"]});let RichTextDialogComponent2=_RichTextDialogComponent;return RichTextDialogComponent2})();function RichTextInputComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function RichTextInputComponent_Conditional_1_Template(rf,ctx){if(rf&1){let _r2=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-rich-text-form-field",2),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.updateValue($event))})("modeChange",function($event){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.updateMode($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(1,"button",3),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r2);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.toggleMode())}),\u0275\u0275text(2),\u0275\u0275pipe(3,"translate"),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("field",ctx_r0.field)("mode",ctx_r0.mode),\u0275\u0275advance(2),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind1(3,3,ctx_r0.activeMode==="rich-text"?"SWITCH_TO_PLAIN_TEXT_EDITING":"SWITCH_TO_RICH_TEXT_EDITING")," ")}}function RichTextInputComponent_Conditional_2_Conditional_4_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-translation-icon-button",7),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r4);let ctx_r0=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r0.setTranslationKey($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext(2);\u0275\u0275property("key",ctx_r0.translationKey)}}function RichTextInputComponent_Conditional_2_Conditional_7_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",6),\u0275\u0275text(1,"__MESSAGE__.REQUIRED"),\u0275\u0275elementEnd())}function RichTextInputComponent_Conditional_2_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field",1)(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"textarea",4),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r3);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.openEditRichTextDialog())}),\u0275\u0275elementEnd(),\u0275\u0275template(4,RichTextInputComponent_Conditional_2_Conditional_4_Template,1,1,"ix-translation-icon-button",5),\u0275\u0275elementStart(5,"mat-hint"),\u0275\u0275text(6),\u0275\u0275elementEnd(),\u0275\u0275template(7,RichTextInputComponent_Conditional_2_Conditional_7_Template,2,0,"mat-error",6),\u0275\u0275elementEnd()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("formGroup",ctx_r0.componentFormGroup),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("value",ctx_r0.text)("placeholder",ctx_r0.field.inputDescription.placeholder||""),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.translation?4:-1),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.hint),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r0.inputControl!=null&&ctx_r0.inputControl.hasError("required")?7:-1)}}function RichTextInputComponent_Conditional_3_Template(rf,ctx){if(rf&1){let _r5=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-form-field")(1,"mat-label"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275element(3,"textarea",8),\u0275\u0275pipe(4,"translate"),\u0275\u0275pipe(5,"trimTranslationNamespace"),\u0275\u0275elementStart(6,"ix-translation-icon-button",7),\u0275\u0275listener("setTranslationKey",function($event){\u0275\u0275restoreView(_r5);let ctx_r0=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r0.setTranslationKey($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"mat-hint"),\u0275\u0275text(8),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.label),\u0275\u0275advance(),\u0275\u0275property("value",ctx_r0.translationKey?\u0275\u0275pipeBind1(5,7,\u0275\u0275pipeBind1(4,5,ctx_r0.translationKey)):"")("placeholder",ctx_r0.field.inputDescription.placeholder||""),\u0275\u0275advance(3),\u0275\u0275property("key",ctx_r0.translationKey),\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r0.field.inputDescription.hint)}}var RichTextInputComponent=(()=>{let _RichTextInputComponent=class _RichTextInputComponent extends StringInputComponent{constructor(){super(...arguments),this.destroy=inject(DestroyRef),this.dialog=inject(MatDialog),this.dialogContainer=inject(MatDialogContainer,{optional:!0,skipSelf:!0}),this.domParser=new DOMParser,this.mode="rich-text"}get activeMode(){return this.formField?.activeMode??this.mode}get embedded(){return!!this.dialogContainer&&!this.translation}ngOnInit(){super.ngOnInit(),this.inputControl?.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(value=>this.field.setValue(value));let initialValue=this.inputControl?.value;this.field.setValue(initialValue),initialValue&&!this.isHtml(initialValue)&&(this.mode="plain-text")}openEditRichTextDialog(){this.dialog.open(RichTextDialogComponent,{data:{field:this.field,mode:this.mode},autoFocus:!0,disableClose:!0,panelClass:"fullscreen"}).afterClosed().subscribe(result=>{result&&this.updateValue(result.value)})}get text(){let value=this.field.value;return value?value.replace(/<[^>]+>/g," ").replace(/\s+/g," ").trim():""}toggleMode(){this.mode=this.mode==="rich-text"?"plain-text":"rich-text"}updateMode(mode){this.mode=mode}updateValue(value){this.inputControl?.setValue(value)}isHtml(value){let doc=this.domParser.parseFromString(value,"text/html");return Array.from(doc.body.childNodes).some(node=>node.nodeType===Node.ELEMENT_NODE)}};_RichTextInputComponent.\u0275fac=(()=>{let \u0275RichTextInputComponent_BaseFactory;return function(__ngFactoryType__){return(\u0275RichTextInputComponent_BaseFactory||(\u0275RichTextInputComponent_BaseFactory=\u0275\u0275getInheritedFactory(_RichTextInputComponent)))(__ngFactoryType__||_RichTextInputComponent)}})(),_RichTextInputComponent.\u0275cmp=\u0275\u0275defineComponent({type:_RichTextInputComponent,selectors:[["ix-rich-text-input"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(RichTextFormFieldComponent,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.formField=_t.first)}},standalone:!0,features:[\u0275\u0275InheritDefinitionFeature,\u0275\u0275StandaloneFeature],decls:4,vars:2,consts:[[1,"description",3,"innerHTML"],[3,"formGroup"],[3,"valueChange","modeChange","field","mode"],["type","button","mat-stroked-button","","data-testid","change-mode-button",1,"change-mode-button",3,"click"],["matInput","","cdkTextareaAutosize","true","cdkAutosizeMinRows","2","cdkAutosizeMaxRows","5","readonly","",3,"click","value","placeholder"],[3,"key"],["translate",""],[3,"setTranslationKey","key"],["matInput","","cdkTextareaAutosize","true","cdkAutosizeMinRows","2","cdkAutosizeMaxRows","15","disabled","",3,"value","placeholder"]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,RichTextInputComponent_Conditional_0_Template,2,3,"p",0)(1,RichTextInputComponent_Conditional_1_Template,4,5)(2,RichTextInputComponent_Conditional_2_Template,8,7,"mat-form-field",1)(3,RichTextInputComponent_Conditional_3_Template,9,9,"mat-form-field"),rf&2&&(\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.embedded?1:!ctx.translation||!ctx.translationKey?2:3))},dependencies:[TranslateModule,TranslatePipe,TranslateDirective,ReactiveFormsModule,NgControlStatusGroup,FormGroupDirective,MatButtonModule,MatButton,MatFormFieldModule,MatFormField,MatLabel,MatHint,MatError,MatInputModule,MatInput,CdkTextareaAutosize,TranslationIconButtonComponent,MarkdownModule,RenderMarkdownPipe,RichTextFormFieldComponent,TrimTranslationNamespacePipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] .hidden[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{overflow:hidden;width:calc(100% - 40px)}[_nghost-%COMP%] ix-rich-text-form-field[_ngcontent-%COMP%]{margin-bottom:12px}[_nghost-%COMP%] .change-mode-button[_ngcontent-%COMP%]{--mdc-outlined-button-container-height: 30px;--mdc-outlined-button-label-text-size: 13px;margin-bottom:22px}"]});let RichTextInputComponent2=_RichTextInputComponent;return RichTextInputComponent2})();function inputConstructor(input2){switch(input2.type){case"AggregatedMetric":return AggregatedMetricInput;case"LiveMetric":return LiveMetricInput;case"Number":return NumberInput;case"RawMetric":return RawMetricInput;case"Group":return GroupInput;case"List":return ListInput;case"RichText":return RichTextInput;case"Selection":return SelectionInput;case"String":return StringInput;case"Text":return TextInput;default:return ComponentPropertiesInput}}function getComponentType(field){switch(field.inputDescription.type){case"Text":return TextInputComponent;case"Color":return ColorInputComponent;case"Date":return DateInputComponent;case"File":return FileInputComponent;case"Icon":return IconInputComponent;case"MaterialIcon":return MaterialIconInputComponent;case"Number":return NumberInputComponent;case"Image":return ImageInputComponent;case"Checkbox":return CheckboxInputComponent;case"Selection":return SelectionInputComponent;case"AggregatedMetric":return AggregatedMetricInputComponent;case"LiveMetric":return LiveMetricInputComponent;case"RawMetric":return RawMetricInputComponent;case"RichText":return RichTextInputComponent;case"Group":return GroupInputComponent;case"List":return ListInputComponent;default:return StringInputComponent}}function getPendingFormValue(form){return Object.keys(form.controls).reduce((formValue,formControlName)=>{let _control=form.controls[formControlName];return _control instanceof FormGroup?__spreadProps(__spreadValues({},formValue),{[formControlName]:getPendingFormValue(_control)}):_control instanceof FormControl&&_control._pendingDirty?__spreadProps(__spreadValues({},formValue),{[formControlName]:_control._pendingValue}):formValue},form.value)}var ComponentPropertiesComponent=(()=>{let _ComponentPropertiesComponent=class _ComponentPropertiesComponent{constructor(cdRef,inputConverter,facade,contextService){this.cdRef=cdRef,this.inputConverter=inputConverter,this.facade=facade,this.contextService=contextService,this.afterViewInit$=new BehaviorSubject(!1),this.component$=new ReplaySubject(1),this.template$=new ReplaySubject(1),this.remove=new EventEmitter,this.update=new EventEmitter,this.unsavedChanges=new EventEmitter,this.form=new FormGroup({},{updateOn:"blur"}),this.destroy=inject(DestroyRef)}ngOnInit(){this.component$.pipe(distinctUntilChanged((a,b2)=>a.publicId===b2.publicId),pairwise(),takeUntilDestroyed(this.destroy)).subscribe(([previous])=>{this.emitPendingChanges(previous)}),combineLatest([this.component$,this.template$,this.afterViewInit$]).pipe(filter(([,,afterViewInit])=>afterViewInit),mergeMap(([component,template])=>combineLatest([of([component,template]),this.contextService.contextChanges.pipe(map(()=>this.inputConverter.hasFields(component)),distinctUntilChanged())])),filter(([,hasFields2])=>hasFields2),switchMap(([[component,template]])=>template?this.facade.manifest(template).pipe(map(manifest=>({component,manifest}))):of({component,manifest:null})),takeUntilDestroyed(this.destroy)).subscribe(({component,manifest})=>{if(this.currentComponentId===component.publicId)return;this.currentInputs=void 0,this.form.contains("inputs")&&this.form.removeControl("inputs"),this.fields=this.inputConverter.getFields(component,manifest);let formControls=this.inputConverter.getFormControls(this.fields),inputs=new FormGroup(formControls);this.form.markAsPristine(),this.form.addControl("inputs",inputs),this.formDirective&&(this.formDirective.viewContainerRef.clear(),this.inputConverter.loadComponentInputs(this.fields,inputs,this.formDirective.viewContainerRef)),this.currentComponentId=component.publicId}),this.form.statusChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>{this.unsavedChanges.emit(this.form.dirty&&this.form.invalid),this.cdRef.markForCheck()}),this.form.valueChanges.pipe(takeUntilDestroyed(this.destroy)).subscribe(data=>{let doSubmit=!1;if(!(!this.form.valid&&this.currentInputs!==void 0)){if("inputs"in data){this.fields.forEach(field=>field.setValue(data.inputs[field.inputDescription.key]));let inputsString=JSON.stringify(data.inputs);inputsString!==this.currentInputs&&(this.currentInputs!==void 0&&(doSubmit=!0),this.currentInputs=inputsString)}doSubmit&&this.submit()}})}ngOnChanges(changes){changes.template&&this.template$.next(this.template),changes.component&&this.component$.next(this.component)}ngAfterViewInit(){setTimeout(()=>{this.afterViewInit$.next(!0)},0)}ngOnDestroy(){this.emitPendingChanges(this.component),this.component$.complete(),this.template$.complete(),this.afterViewInit$.complete()}emitPendingChanges(component){if(component.inputs&&this.form.controls.inputs){let snapshot2=cloneDeep_default(this.form.value);this.form.patchValue({inputs:getPendingFormValue(this.form.controls.inputs)},{emitEvent:!1}),!this.form.invalid&&!isEqual_default(snapshot2,this.form.value)&&(isEqual_default(this.form.value.inputs,JSON.parse(component.inputs))||this.update.emit({publicId:component.publicId,inputs:JSON.stringify(this.form.value.inputs)}))}}submit(){let formValue=this.form.value.inputs?{inputs:JSON.stringify(this.form.value.inputs)}:{},component=__spreadValues(__spreadValues({},this.component),formValue);this.update.emit(component),this.form.markAsPristine()}};_ComponentPropertiesComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentPropertiesComponent)(\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(INPUT_CONVERTER_TOKEN),\u0275\u0275directiveInject(ComponentPropertiesFacade),\u0275\u0275directiveInject(ComponentContextService))},_ComponentPropertiesComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ComponentPropertiesComponent,selectors:[["ix-page-component-properties"]],viewQuery:function(rf,ctx){if(rf&1&&(\u0275\u0275viewQuery(ComponentPropertiesFormDirective,5),\u0275\u0275viewQuery(MatExpansionPanel,5)),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.formDirective=_t.first),\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.panelRefs=_t)}},inputs:{template:"template",component:"component"},outputs:{remove:"remove",update:"update",unsavedChanges:"unsavedChanges"},features:[\u0275\u0275NgOnChangesFeature],decls:3,vars:1,consts:[["autocomplete","off",3,"ngSubmit","formGroup"],["fxLayout","column",1,"more-actions"],["ixComponentPropertiesForm",""]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"form",0),\u0275\u0275listener("ngSubmit",function(){return ctx.submit()}),\u0275\u0275elementStart(1,"div",1),\u0275\u0275element(2,"div",2),\u0275\u0275elementEnd()()),rf&2&&\u0275\u0275property("formGroup",ctx.form)},dependencies:[DefaultLayoutDirective,\u0275NgNoValidate,NgControlStatusGroup,FormGroupDirective,ComponentPropertiesFormDirective],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] button[type=submit][_ngcontent-%COMP%]{margin:16px}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]{background-color:transparent;border-radius:0}[_nghost-%COMP%] .mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:var(--body-color)}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:not(.mat-expanded){box-shadow:none!important}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%]:not(.mat-expanded) + .mat-expansion-panel.mat-expanded[_ngcontent-%COMP%]{border-top-left-radius:8px;border-top-right-radius:8px}[_nghost-%COMP%] .mat-expansion-panel.mat-expanded[_ngcontent-%COMP%]{background-color:var(--basic)}[_nghost-%COMP%] .mat-expansion-panel.mat-expanded[_ngcontent-%COMP%] + .mat-expansion-panel.mat-expanded[_ngcontent-%COMP%]{border-top:1px solid var(--card-border-color)}[_nghost-%COMP%] .mat-expansion-panel.border-radius-bottom[_ngcontent-%COMP%]{border-bottom-left-radius:8px!important;border-bottom-right-radius:8px!important}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]{padding:0 20px 0 16px}[_nghost-%COMP%] .mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-body{padding:0 16px 16px}[_nghost-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{margin-bottom:8px}[_nghost-%COMP%] .more-actions[_ngcontent-%COMP%] .component-property-level-0{border-bottom:1px solid var(--card-border-color);padding:16px}[_nghost-%COMP%] .more-actions[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin-right:4px}"]});let ComponentPropertiesComponent3=_ComponentPropertiesComponent;return ComponentPropertiesComponent3})();function GroupInputFormComponent_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275element(0,"p",0),\u0275\u0275pipe(1,"renderMarkdown")),rf&2){let ctx_r0=\u0275\u0275nextContext();\u0275\u0275property("innerHTML",\u0275\u0275pipeBind1(1,1,ctx_r0.field.inputDescription.description),\u0275\u0275sanitizeHtml)}}function GroupInputFormComponent_ng_template_1_Template(rf,ctx){}var GroupInputFormComponent=(()=>{let _GroupInputFormComponent=class _GroupInputFormComponent extends ComponentInputComponent{constructor(cdRef,inputConverter){super(),this.cdRef=cdRef,this.inputConverter=inputConverter}ngAfterViewInit(){this.formDirective.viewContainerRef.clear(),this.inputConverter.loadComponentInputs(this.field.children,this.componentFormGroup.get(this.field.inputDescription.key),this.formDirective.viewContainerRef),this.cdRef.detectChanges()}};_GroupInputFormComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_GroupInputFormComponent)(\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(INPUT_CONVERTER_TOKEN))},_GroupInputFormComponent.\u0275cmp=\u0275\u0275defineComponent({type:_GroupInputFormComponent,selectors:[["ix-group-input-form"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(ComponentPropertiesFormDirective,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.formDirective=_t.first)}},inputs:{field:"field",componentFormGroup:"componentFormGroup"},features:[\u0275\u0275InheritDefinitionFeature],decls:2,vars:1,consts:[[1,"description",3,"innerHTML"],["ixComponentPropertiesForm",""]],template:function(rf,ctx){rf&1&&\u0275\u0275template(0,GroupInputFormComponent_Conditional_0_Template,2,3,"p",0)(1,GroupInputFormComponent_ng_template_1_Template,0,0,"ng-template",1),rf&2&&\u0275\u0275conditional(ctx.field.inputDescription.description?0:-1)},dependencies:[ComponentPropertiesFormDirective,RenderMarkdownPipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{font-size:11.5px!important;font-weight:500!important;text-transform:uppercase;letter-spacing:.8px;color:rgba(var(--body-color-rgb),.54)}[_nghost-%COMP%] .mat-divider[_ngcontent-%COMP%]{margin:0 -16px 16px}[_nghost-%COMP%] .mat-divider.mat-divider-inset[_ngcontent-%COMP%]{margin-left:0}[_nghost-%COMP%] + *[_ngcontent-%COMP%]{border-top:1px solid var(--card-border-color)}"]});let GroupInputFormComponent2=_GroupInputFormComponent;return GroupInputFormComponent2})();var GroupInputSummaryComponent=(()=>{let _GroupInputSummaryComponent=class _GroupInputSummaryComponent extends ComponentInputComponent{constructor(dialog,cdRef){super(),this.dialog=dialog,this.cdRef=cdRef}get fieldValue(){return this.componentFormGroup.value[this.field.inputDescription.key]}get hasValidationErrors(){let control=this.componentFormGroup.controls[this.field.inputDescription.key];return!this.isGroupValidRecursively(control)}get summary(){let labelTemplate=this.field.inputDescription?.summary?.label;if(labelTemplate)return mustache_default.render(labelTemplate,this.field.transformValue()[this.field.inputDescription.key],void 0,{escape:input2=>input2})}get summaryTooltipDisabled(){return(this.summary?.length||0)<20}get color(){let colorField=this.field.inputDescription?.summary?.colorField;if(colorField)return get_default(this.fieldValue,colorField)}openDialog(){let key=this.field.inputDescription.key,dialogForm=new FormGroup({[key]:this.field.toFormControl()});this.addDialogValuesWithoutNeedingRefreshAfterChange(dialogForm),this.dialog.open(GroupInputDialogComponent,{width:"500px",data:{field:this.field,componentFormGroup:dialogForm}}).afterClosed().subscribe(result=>{result&&(this.field.setValue(dialogForm.value[key]),this.componentFormGroup.markAsDirty(),this.componentFormGroup.setControl(key,dialogForm.controls[key]),this.cdRef.detectChanges())})}calculateStyle(){return{"background-color":this.color||"white"}}addDialogValuesWithoutNeedingRefreshAfterChange(dialogForm){dialogForm.patchValue(this.componentFormGroup.value)}isGroupValidRecursively(group){return group.valid&&Object.keys(group.controls).every(k=>{let subControl=group.controls[k];return subControl instanceof FormArray||subControl instanceof FormGroup?this.isGroupValidRecursively(subControl):subControl.valid})}};_GroupInputSummaryComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_GroupInputSummaryComponent)(\u0275\u0275directiveInject(MatDialog),\u0275\u0275directiveInject(ChangeDetectorRef))},_GroupInputSummaryComponent.\u0275cmp=\u0275\u0275defineComponent({type:_GroupInputSummaryComponent,selectors:[["ix-group-input-summary"]],hostVars:2,hostBindings:function(rf,ctx){rf&2&&\u0275\u0275classProp("has-validation-errors",ctx.hasValidationErrors)},inputs:{field:"field",componentFormGroup:"componentFormGroup"},features:[\u0275\u0275InheritDefinitionFeature],decls:7,vars:5,consts:[["mat-icon-button","","type","button",3,"click"],[1,"color-patch"],[1,"summary-wrapper"],[1,"summary",3,"matTooltip","matTooltipDisabled"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"button",0),\u0275\u0275listener("click",function(){return ctx.openDialog()}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2,"create"),\u0275\u0275elementEnd()(),\u0275\u0275element(3,"span",1),\u0275\u0275elementStart(4,"span",2)(5,"span",3),\u0275\u0275text(6),\u0275\u0275elementEnd()()),rf&2&&(\u0275\u0275advance(3),\u0275\u0275styleMap(ctx.calculateStyle()),\u0275\u0275advance(2),\u0275\u0275property("matTooltip",ctx.summary||"")("matTooltipDisabled",ctx.summaryTooltipDisabled),\u0275\u0275advance(),\u0275\u0275textInterpolate(ctx.summary))},dependencies:[MatIconButton,MatIcon,MatTooltip],styles:["[_nghost-%COMP%]{display:flex;background-color:rgba(var(--body-color-rgb),.04)}.has-validation-errors[_nghost-%COMP%]{border:thin solid var(--warn);color:var(--warn)}[_nghost-%COMP%] .description[_ngcontent-%COMP%]{font-size:11px}[_nghost-%COMP%] .color-patch[_ngcontent-%COMP%]{display:inline-block;vertical-align:top;height:40px;width:8px}[_nghost-%COMP%] .summary-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 8px;overflow:hidden;flex:1}[_nghost-%COMP%] .summary-wrapper[_ngcontent-%COMP%] .summary[_ngcontent-%COMP%]{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}"]});let GroupInputSummaryComponent2=_GroupInputSummaryComponent;return GroupInputSummaryComponent2})();var InputConverterService=(()=>{let _InputConverterService=class _InputConverterService{constructor(service,injector){this.service=service,this.injector=injector}convertInput(input2,values,component,level){let constructor=inputConstructor(input2);return new constructor(input2,values?.[input2.key],component,this,level,this.injector)}getFormControls(inputs){return inputs.reduce((acc,cur)=>__spreadProps(__spreadValues({},acc),{[cur.inputDescription.key]:cur.toFormControl()}),{})}getFields(component,manifest){let context5=this.service.getContext(component);if(context5===void 0)throw Error(`ComponentContext could not be found for component ${component.publicId}.`);let inputs=cloneDeep_default(context5.inputs)||{};return Object.keys(context5._translationKeys).forEach(key=>set_default(inputs,key,context5._translationKeys[key])),manifest?.inputs?.map(input2=>this.convertInput(input2,inputs,component,0))||[]}hasFields(component){return this.service.getContext(component)!==void 0}loadComponentInputs(fields,form,ref){for(let field of fields){let componentType=getComponentType(field),componentRef=ref.createComponent(componentType);componentRef.instance.field=field,componentRef.instance.componentFormGroup=form,componentRef.location.nativeElement.classList.add(`component-property-level-${field.level}`)}}};_InputConverterService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_InputConverterService)(\u0275\u0275inject(ComponentContextService),\u0275\u0275inject(Injector))},_InputConverterService.\u0275prov=\u0275\u0275defineInjectable({token:_InputConverterService,factory:_InputConverterService.\u0275fac,providedIn:"root"});let InputConverterService2=_InputConverterService;return InputConverterService2})();var SelectorDialogModule=(()=>{let _SelectorDialogModule=class _SelectorDialogModule{};_SelectorDialogModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectorDialogModule)},_SelectorDialogModule.\u0275mod=\u0275\u0275defineNgModule({type:_SelectorDialogModule}),_SelectorDialogModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule,NgxMatSelectSearchModule]});let SelectorDialogModule2=_SelectorDialogModule;return SelectorDialogModule2})();var SelectorInputModule=(()=>{let _SelectorInputModule=class _SelectorInputModule{};_SelectorInputModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_SelectorInputModule)},_SelectorInputModule.\u0275mod=\u0275\u0275defineNgModule({type:_SelectorInputModule}),_SelectorInputModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule,SelectorDialogModule]});let SelectorInputModule2=_SelectorInputModule;return SelectorInputModule2})();var MAT_LUXON_DATE_ADAPTER_OPTIONS=new InjectionToken("MAT_LUXON_DATE_ADAPTER_OPTIONS",{providedIn:"root",factory:MAT_LUXON_DATE_ADAPTER_OPTIONS_FACTORY});function MAT_LUXON_DATE_ADAPTER_OPTIONS_FACTORY(){return{useUtc:!1,firstDayOfWeek:0,defaultOutputCalendar:"gregory"}}function range2(length,valueFunction){let valuesArray=Array(length);for(let i=0;i<length;i++)valuesArray[i]=valueFunction(i);return valuesArray}var LuxonDateAdapter=(()=>{let _LuxonDateAdapter=class _LuxonDateAdapter extends DateAdapter{constructor(dateLocale,options){super(),this._useUTC=!!options?.useUtc,this._firstDayOfWeek=options?.firstDayOfWeek||0,this._defaultOutputCalendar=options?.defaultOutputCalendar||"gregory",this.setLocale(dateLocale||DateTime.local().locale)}getYear(date){return date.year}getMonth(date){return date.month-1}getDate(date){return date.day}getDayOfWeek(date){return date.weekday}getMonthNames(style2){return Info.months(style2,{locale:this.locale,outputCalendar:this._defaultOutputCalendar})}getDateNames(){let dtf=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return range2(31,i=>dtf.format(DateTime.utc(2017,1,i+1).toJSDate()))}getDayOfWeekNames(style2){let days=Info.weekdays(style2,{locale:this.locale});return days.unshift(days.pop()),days}getYearName(date){return date.toFormat("yyyy",this._getOptions())}getFirstDayOfWeek(){return this._firstDayOfWeek}getNumDaysInMonth(date){return date.daysInMonth}clone(date){return DateTime.fromObject(date.toObject(),this._getOptions())}createDate(year,month,date){let options=this._getOptions();if(month<0||month>11)throw Error(`Invalid month index "${month}". Month index has to be between 0 and 11.`);if(date<1)throw Error(`Invalid date "${date}". Date has to be greater than 0.`);let result=this._useUTC?DateTime.utc(year,month+1,date,options):DateTime.local(year,month+1,date,options);if(!this.isValid(result))throw Error(`Invalid date "${date}". Reason: "${result.invalidReason}".`);return result}today(){let options=this._getOptions();return this._useUTC?DateTime.utc(options):DateTime.local(options)}parse(value,parseFormat){let options=this._getOptions();if(typeof value=="string"&&value.length>0){let iso8601Date=DateTime.fromISO(value,options);if(this.isValid(iso8601Date))return iso8601Date;let formats=Array.isArray(parseFormat)?parseFormat:[parseFormat];if(!parseFormat.length)throw Error("Formats array must not be empty.");for(let format2 of formats){let fromFormat=DateTime.fromFormat(value,format2,options);if(this.isValid(fromFormat))return fromFormat}return this.invalid()}else{if(typeof value=="number")return DateTime.fromMillis(value,options);if(value instanceof Date)return DateTime.fromJSDate(value,options);if(value instanceof DateTime)return DateTime.fromMillis(value.toMillis(),options)}return null}format(date,displayFormat){if(!this.isValid(date))throw Error("LuxonDateAdapter: Cannot format invalid date.");return this._useUTC?date.setLocale(this.locale).setZone("utc").toFormat(displayFormat):date.setLocale(this.locale).toFormat(displayFormat)}addCalendarYears(date,years){return date.reconfigure(this._getOptions()).plus({years})}addCalendarMonths(date,months2){return date.reconfigure(this._getOptions()).plus({months:months2})}addCalendarDays(date,days){return date.reconfigure(this._getOptions()).plus({days})}toIso8601(date){return date.toISO()}deserialize(value){let options=this._getOptions(),date;if(value instanceof Date&&(date=DateTime.fromJSDate(value,options)),typeof value=="string"){if(!value)return null;date=DateTime.fromISO(value,options)}return date&&this.isValid(date)?date:super.deserialize(value)}isDateInstance(obj){return obj instanceof DateTime}isValid(date){return date.isValid}invalid(){return DateTime.invalid("Invalid Luxon DateTime object.")}_getOptions(){return{zone:this._useUTC?"utc":void 0,locale:this.locale,outputCalendar:this._defaultOutputCalendar}}};_LuxonDateAdapter.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LuxonDateAdapter)(\u0275\u0275inject(MAT_DATE_LOCALE,8),\u0275\u0275inject(MAT_LUXON_DATE_ADAPTER_OPTIONS,8))},_LuxonDateAdapter.\u0275prov=\u0275\u0275defineInjectable({token:_LuxonDateAdapter,factory:_LuxonDateAdapter.\u0275fac});let LuxonDateAdapter2=_LuxonDateAdapter;return LuxonDateAdapter2})(),MAT_LUXON_DATE_FORMATS={parse:{dateInput:"D"},display:{dateInput:"D",monthYearLabel:"LLL yyyy",dateA11yLabel:"DD",monthYearA11yLabel:"LLLL yyyy"}};var MatLuxonDateModule=(()=>{let _MatLuxonDateModule=class _MatLuxonDateModule{};_MatLuxonDateModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_MatLuxonDateModule)},_MatLuxonDateModule.\u0275mod=\u0275\u0275defineNgModule({type:_MatLuxonDateModule}),_MatLuxonDateModule.\u0275inj=\u0275\u0275defineInjector({providers:[provideLuxonDateAdapter()]});let MatLuxonDateModule2=_MatLuxonDateModule;return MatLuxonDateModule2})();function provideLuxonDateAdapter(formats=MAT_LUXON_DATE_FORMATS){return[{provide:DateAdapter,useClass:LuxonDateAdapter,deps:[MAT_DATE_LOCALE,MAT_LUXON_DATE_ADAPTER_OPTIONS]},{provide:MAT_DATE_FORMATS,useValue:formats}]}var NumberInputValidatorModule=(()=>{let _NumberInputValidatorModule=class _NumberInputValidatorModule{};_NumberInputValidatorModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_NumberInputValidatorModule)},_NumberInputValidatorModule.\u0275mod=\u0275\u0275defineNgModule({type:_NumberInputValidatorModule}),_NumberInputValidatorModule.\u0275inj=\u0275\u0275defineInjector({});let NumberInputValidatorModule2=_NumberInputValidatorModule;return NumberInputValidatorModule2})();var ComponentPropertiesModule=(()=>{let _ComponentPropertiesModule=class _ComponentPropertiesModule{};_ComponentPropertiesModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentPropertiesModule)},_ComponentPropertiesModule.\u0275mod=\u0275\u0275defineNgModule({type:_ComponentPropertiesModule}),_ComponentPropertiesModule.\u0275inj=\u0275\u0275defineInjector({providers:[{provide:INPUT_CONVERTER_TOKEN,useClass:InputConverterService}],imports:[SharedModule,FileUploadButtonComponent,NgxMatSelectSearchModule,PeriodFieldsetModule,MarkdownModule,ColorPickerPanelModule,SelectorInputModule,TranslationIconButtonComponent,MaterialIconFieldsetComponent,FileUploadDropContainerComponent,MatLuxonDateModule,NumberInputValidatorModule]});let ComponentPropertiesModule2=_ComponentPropertiesModule;return ComponentPropertiesModule2})();\u0275\u0275setComponentScope(GroupInputComponent,[GroupInputFormComponent,GroupInputSummaryComponent],[]);\u0275\u0275setComponentScope(GroupInputDialogComponent,[TranslateDirective,MatButton,MatDialogClose,MatDialogTitle,MatDialogActions,MatDialogContent,GroupInputFormComponent],[]);var ComponentContextCleanupDirective=(()=>{let _ComponentContextCleanupDirective=class _ComponentContextCleanupDirective{set agentOrAssetId(agentOrAssetId){this.agentOrAssetId$.next(agentOrAssetId)}set pageVersionId(pageVersionId){this.pageVersionId$.next(pageVersionId)}constructor(scopeRef,contextService){this.scopeRef=scopeRef,this.contextService=contextService,this.agentOrAssetId$=new ReplaySubject(1),this.pageVersionId$=new ReplaySubject(1),this.destroy=inject(DestroyRef)}ngOnInit(){combineLatest([this.agentOrAssetId$,this.pageVersionId$]).pipe(filter(ids=>ids.every(Boolean)),distinctUntilChanged(isEqual_default),skip(1),takeUntilDestroyed(this.destroy)).subscribe(()=>{this.contextService.destroyAll(this.scopeRef?.value)})}ngOnDestroy(){this.agentOrAssetId$.complete(),this.pageVersionId$.complete()}};_ComponentContextCleanupDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentContextCleanupDirective)(\u0275\u0275directiveInject(ComponentGridScopeDirective,8),\u0275\u0275directiveInject(ComponentContextService))},_ComponentContextCleanupDirective.\u0275dir=\u0275\u0275defineDirective({type:_ComponentContextCleanupDirective,selectors:[["","ixComponentContextCleanup",""]],inputs:{agentOrAssetId:"agentOrAssetId",pageVersionId:"pageVersionId"}});let ComponentContextCleanupDirective3=_ComponentContextCleanupDirective;return ComponentContextCleanupDirective3})();var setLocale=createAction("[Localization] Set Locale",props()),setTimeZone=createAction("[Localization] Set Time Zone",props());var LOCALE_STORAGE_KEY="locale";var LANGUAGE_TO_LOCALES=[{code:"nl",locale:"nl-NL"},{code:"de",locale:"de-DE"},{code:"en",locale:"en-US"}],TIME_ZONE_STORAGE_KEY="timezone";function mapLangToLocale(lang){return LANGUAGE_TO_LOCALES.find(map3=>map3.code===lang)?.locale||lang}var LocalizationService=(()=>{let _LocalizationService=class _LocalizationService{constructor(storage){this.storage=storage}getLocale(){if(this.storage.has(LOCALE_STORAGE_KEY)){let locale=this.storage.get(LOCALE_STORAGE_KEY);return locale.includes("_")&&(locale=locale.replace("_","-"),this.setLocale(locale)),locale}return mapLangToLocale(Intl.DateTimeFormat().resolvedOptions().locale)}getTimeZone(){return this.storage.has(TIME_ZONE_STORAGE_KEY)?this.storage.get(TIME_ZONE_STORAGE_KEY):Intl.DateTimeFormat().resolvedOptions().timeZone}setLocale(locale){locale!==null?(this.storage.forever(LOCALE_STORAGE_KEY,locale),Settings.defaultLocale=locale):(this.storage.forget(LOCALE_STORAGE_KEY),Settings.defaultLocale=mapLangToLocale(Intl.DateTimeFormat().resolvedOptions().locale))}setTimeZone(timeZone){timeZone!==null?(this.storage.forever(TIME_ZONE_STORAGE_KEY,timeZone),Settings.defaultZone=timeZone):(this.storage.forget(TIME_ZONE_STORAGE_KEY),Settings.defaultZone=Intl.DateTimeFormat().resolvedOptions().timeZone)}};_LocalizationService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LocalizationService)(\u0275\u0275inject(StorageService))},_LocalizationService.\u0275prov=\u0275\u0275defineInjectable({token:_LocalizationService,factory:_LocalizationService.\u0275fac,providedIn:"root"});let LocalizationService5=_LocalizationService;return LocalizationService5})();var LocalizationEffects=(()=>{let _LocalizationEffects=class _LocalizationEffects{constructor(actions$,service){this.actions$=actions$,this.service=service,this.setLocale$=createEffect(()=>this.actions$.pipe(ofType(setLocale),tap(({locale})=>this.service.setLocale(locale))),{dispatch:!1}),this.setTimeZone$=createEffect(()=>this.actions$.pipe(ofType(setTimeZone),tap(({timeZone})=>this.service.setTimeZone(timeZone))),{dispatch:!1}),this.setDefaultUserPreferences$=createEffect(()=>this.actions$.pipe(ofType(logInSuccess,loadMeSuccess2),map(({data})=>({localisation:get_default(data,"localisation",get_default(data,"user.localisation")),timeZone:get_default(data,"timeZone",get_default(data,"user.timeZone"))})),filter(({localisation,timeZone})=>isNil_default(localisation)||isNil_default(timeZone)),map(({localisation,timeZone})=>updateMe({data:__spreadValues(__spreadValues({},isNil_default(localisation)?{localisation:this.service.getLocale()}:{}),isNil_default(timeZone)?{timeZone:this.service.getTimeZone()}:{})})))),this.localeUserPreference$=createEffect(()=>this.actions$.pipe(ofType(logInSuccess,loadMeSuccess2,updateMeSuccess,didUpdateMe),map(({data})=>get_default(data,"localisation",get_default(data,"user.localisation"))),filter(locale=>locale!==void 0),distinctUntilChanged(),map(locale=>setLocale({locale})))),this.timeZoneUserPreference$=createEffect(()=>this.actions$.pipe(ofType(logInSuccess,loadMeSuccess2,updateMeSuccess,didUpdateMe),map(({data})=>get_default(data,"timeZone",get_default(data,"user.timeZone"))),filter(timeZone=>timeZone!==void 0),distinctUntilChanged(),map(timeZone=>setTimeZone({timeZone}))))}};_LocalizationEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LocalizationEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(LocalizationService))},_LocalizationEffects.\u0275prov=\u0275\u0275defineInjectable({token:_LocalizationEffects,factory:_LocalizationEffects.\u0275fac});let LocalizationEffects2=_LocalizationEffects;return LocalizationEffects2})();var LocalizationModule=(()=>{let _LocalizationModule=class _LocalizationModule{constructor(storage){Settings.defaultLocale=storage.get(LOCALE_STORAGE_KEY,mapLangToLocale(Intl.DateTimeFormat().resolvedOptions().locale)),Settings.defaultZone=storage.get(TIME_ZONE_STORAGE_KEY,Intl.DateTimeFormat().resolvedOptions().timeZone)}};_LocalizationModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LocalizationModule)(\u0275\u0275inject(StorageService))},_LocalizationModule.\u0275mod=\u0275\u0275defineNgModule({type:_LocalizationModule}),_LocalizationModule.\u0275inj=\u0275\u0275defineInjector({providers:[{provide:MAT_DATE_LOCALE,useFactory:service=>service.getLocale(),deps:[LocalizationService]}],imports:[StorageModule,EffectsModule.forFeature([LocalizationEffects])]});let LocalizationModule2=_LocalizationModule;return LocalizationModule2})();var LoggingDataPrefetcher=(()=>{let _LoggingDataPrefetcher=class _LoggingDataPrefetcher{constructor(store,actions$){this.store=store,this.actions$=actions$}forQueries(agentId,queries){let parsedSelectors=queries.map(query=>query.selector?parseSelector(query.selector):{type:"",target:"",dataSource:"",logType:"",logName:""}).filter(r=>r?.type==="Agent"&&r?.target==="selected"),uniqDataSourceSlugs=compact_default(uniq_default(parsedSelectors.map(r=>r?.dataSource))),uniqDataTagSlugs=compact_default(uniq_default(parsedSelectors.filter(r=>r?.logType==="tag").map(r=>r?.logName))),uniqDataVariableSlugs=compact_default(uniq_default(parsedSelectors.filter(r=>r?.logType==="variable").map(r=>r?.logName)));return combineLatest([this.handleDataSourceSlugs(agentId,uniqDataSourceSlugs),this.handleDataTagSlugs(agentId,uniqDataTagSlugs),this.handleDataVariableSlugs(agentId,uniqDataVariableSlugs)]).pipe(mergeMap(()=>of(queries)))}handleDataSourceSlugs(agentId,slugs){return agentId&&slugs.length?combineLatest([this.store.select(selectAllLoadedForAgent(agentId)),this.store.select(selectAllForAgent(agentId))]).pipe(take(1),mergeMap(([sourcesLoaded,sources])=>{if(sourcesLoaded&&sources.length===0)return of([]);let unmatchedSlugs=slugs.filter(slug=>!sources?.find(s2=>s2?.slug===slug));if(unmatchedSlugs.length){let filters=`in(slug,"${unmatchedSlugs.join('","')}")`,queryTooLarge=("?fields="+AGENT_DATA_SOURCE_LIST_FIELDS.join(",")+"&").length+filters.length+`&page-after=publicid0000&page-size=${4e3}`.length>4096,reference2=`${agentId}_${filters}`;return this.store.dispatch(loadAll2({agentId,filters:queryTooLarge?void 0:filters})),this.actions$.pipe(ofType(loadAllSuccess3,loadAllFailure2),filter(({agentId:agentId2,filters:filters2})=>`${agentId2}_${filters2}`===reference2||queryTooLarge),take(1),map(()=>[]))}return of([])}),map(()=>[])):of([])}handleDataTagSlugs(agentId,slugs){return agentId&&slugs.length?combineLatest([this.store.select(selectAllLoadedForAgent(agentId)),this.store.select(selectAllForAgent(agentId)),this.store.select(selectAllForAgent3(agentId))]).pipe(take(1),mergeMap(([sourcesLoaded,sources,tags2])=>{if(sourcesLoaded&&sources.length===0)return of([]);let unmatchedSlugs=slugs.filter(slug=>!tags2?.find(t=>t?.slug===slug));if(unmatchedSlugs.length){let filters=`in(slug,"${unmatchedSlugs.join('","')}")`,queryTooLarge=("?fields="+AGENT_DATA_TAG_WITH_VARIABLE_LIST_FIELDS.join(",")+"&").length+(filters?.length||0)+`&page-after=publicid0000&page-size=${4e3}`.length>4096,reference2=`${agentId}_${filters}`;return this.store.dispatch(loadAll27({agentId,fields:AGENT_DATA_TAG_WITH_VARIABLE_LIST_FIELDS,filters:queryTooLarge?void 0:filters})),this.actions$.pipe(ofType(loadAllSuccess28,loadAllFailure27),filter(({agentId:agentId2,filters:filters2})=>`${agentId2}_${filters2}`===reference2||queryTooLarge),take(1),map(()=>[]))}return of([])}),map(()=>[])):of([])}handleDataVariableSlugs(agentId,slugs){return agentId&&slugs.length?this.store.select(selectAllLoadedForAgent2(agentId)).pipe(take(1),mergeMap(loaded=>{if(!loaded){let reference2=agentId;return this.store.dispatch(loadAll28({agentId})),this.actions$.pipe(ofType(loadAllSuccess29,loadAllFailure28),filter(({agentId:agentId2})=>agentId2===reference2),take(1),map(()=>[]))}return of([])}),map(()=>[])):of([])}};_LoggingDataPrefetcher.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoggingDataPrefetcher)(\u0275\u0275inject(Store),\u0275\u0275inject(Actions))},_LoggingDataPrefetcher.\u0275prov=\u0275\u0275defineInjectable({token:_LoggingDataPrefetcher,factory:_LoggingDataPrefetcher.\u0275fac,providedIn:"root"});let LoggingDataPrefetcher3=_LoggingDataPrefetcher;return LoggingDataPrefetcher3})();var LoggingDataBrokerDirective=(()=>{let _LoggingDataBrokerDirective=class _LoggingDataBrokerDirective{constructor(scopeRef,store,activePeriodSpec,authTokenService,localization,loggingDataClient,loggingDataFetcherFactory,loggingDataPrefetcher){this.scopeRef=scopeRef,this.store=store,this.activePeriodSpec=activePeriodSpec,this.authTokenService=authTokenService,this.localization=localization,this.loggingDataClient=loggingDataClient,this.loggingDataFetcherFactory=loggingDataFetcherFactory,this.loggingDataPrefetcher=loggingDataPrefetcher,this.agentOrAssetId$=new ReplaySubject(1),this.agentId=null,this.agentId$=this.agentOrAssetId$.pipe(switchMap(agentOrAssetId=>this.store.select(selectEntities8).pipe(map(entities=>entities[agentOrAssetId]?findClosestAgentToAsset(agentOrAssetId,entities)?.publicId??null:agentOrAssetId),distinctUntilChanged()))),this._authToken$=combineLatest([timer(0,55*60*1e3),this.agentId$]).pipe(mergeMap(([,id])=>{let canUseLiveData=this.features.instantCanUse("live-data",{agentId:id}),canUseHistoricalData=this.features.instantCanUse("historical-data",{agentId:id});return id&&(canUseLiveData||canUseHistoricalData)?this.authTokenService.getForData({agents:[{publicId:id}],expiresIn:3600}).pipe(map(response=>response.data.secretId),catchError(()=>EMPTY)):EMPTY}),share()),this.authTokenRequired$=new ReplaySubject(1),this.authToken$=new ReplaySubject(1),this.dataSources$=this.agentId$.pipe(mergeMap(id=>this.store.select(selectAllForAgent(id)))),this.tags$=this.agentId$.pipe(mergeMap(id=>this.store.select(selectAllForAgent3(id)))),this.variables$=this.agentId$.pipe(mergeMap(id=>this.store.select(selectAllForAgent2(id)))),this.features=inject(PlatformFeaturesService),this.destroy=inject(DestroyRef)}ngOnInit(){this.agentId$.pipe(distinctUntilChanged()).subscribe(agentId=>this.agentId=agentId),this.fetcher=this.loggingDataFetcherFactory.create({agentId:this.agentId$.pipe(distinctUntilChanged()),authToken:this.authToken$.asObservable(),companyId:this.store.select(selectMyCompanyId),locale:this.localization.getLocale(),timeRange:this.activePeriodSpec.asTimeRange(this.scopeRef?.value),timeZone:of(Settings.defaultZone.name),dataSources:this.dataSources$,tags:this.tags$,variables:this.variables$,availabilityStrategy:LoggingDataConfigAvailabilityStrategy.Lazy,scope:this.scopeRef?.value,beforeFetch:queries=>this.agentId?this.loggingDataPrefetcher.forQueries(this.agentId,queries).pipe(mergeMap(queries2=>queries2.some(q=>q.selector?parseSelector(q.selector).logType==="variable":!1)?(this.authTokenRequired$.next(!0),this.authToken$.pipe(take(1),map(()=>queries2))):of(queries2))):of(queries)}),this.authTokenRequired$.pipe(distinctUntilChanged(),switchMap(required=>required?this._authToken$:EMPTY),takeUntilDestroyed(this.destroy)).subscribe(this.authToken$),merge(this.loggingDataClient.onQuery(this.scopeRef?.value),this.loggingDataClient.onDestroy(this.scopeRef?.value)).pipe(bufferDebounceTime(100),mergeMap(buffer2=>{let queries=[],destroyEvents=buffer2.filter(item=>item instanceof CustomEvent);return destroyEvents.length?queries=flatten_default(buffer2.filter(item=>!(item instanceof CustomEvent))).filter(q=>!destroyEvents.some(e=>q._clientRef?.startsWith(e.detail)&&(q._timeStamp?q._timeStamp<e.timeStamp:!0))):queries=flatten_default(buffer2),queries.length?of(queries):EMPTY}),mergeMap(queries=>this.fetcher.fetch(queries)),distinctUntilChanged(),takeUntilDestroyed(this.destroy)).subscribe(metrics=>{this.loggingDataClient.emitMetrics(metrics,this.scopeRef?.value)}),this.loggingDataClient.onExport(this.scopeRef?.value).pipe(mergeMap(({queries,csvDelimiter})=>this.fetcher.export(queries,csvDelimiter)),takeUntilDestroyed(this.destroy)).subscribe(blob=>{this.loggingDataClient.emitBlob(blob,this.scopeRef?.value)})}ngOnChanges(changes){changes.agentOrAssetId&&this.agentOrAssetId&&this.agentOrAssetId$.next(this.agentOrAssetId)}ngOnDestroy(){this.agentOrAssetId$.complete(),this.authToken$.complete(),this.authTokenRequired$.complete(),this.fetcher.destroy()}};_LoggingDataBrokerDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoggingDataBrokerDirective)(\u0275\u0275directiveInject(ComponentGridScopeDirective,8),\u0275\u0275directiveInject(Store),\u0275\u0275directiveInject(ActivePeriodSpec),\u0275\u0275directiveInject(AuthTokenService),\u0275\u0275directiveInject(LocalizationService),\u0275\u0275directiveInject(LoggingDataClientProxyService),\u0275\u0275directiveInject(LoggingDataFetcherFactory),\u0275\u0275directiveInject(LoggingDataPrefetcher))},_LoggingDataBrokerDirective.\u0275dir=\u0275\u0275defineDirective({type:_LoggingDataBrokerDirective,selectors:[["","ixLoggingDataBroker",""]],inputs:{agentOrAssetId:"agentOrAssetId"},features:[\u0275\u0275NgOnChangesFeature]});let LoggingDataBrokerDirective3=_LoggingDataBrokerDirective;return LoggingDataBrokerDirective3})();var ComponentGridFocusDirective=(()=>{let _ComponentGridFocusDirective=class _ComponentGridFocusDirective{constructor(){this.elRef=inject(ElementRef),this.service=inject(ComponentGridFocusService),this.destroy=inject(DestroyRef)}ngOnInit(){fromEvent(this.elRef.nativeElement,"mousedown").pipe(takeUntilDestroyed(this.destroy)).subscribe(()=>this.service.next())}};_ComponentGridFocusDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ComponentGridFocusDirective)},_ComponentGridFocusDirective.\u0275dir=\u0275\u0275defineDirective({type:_ComponentGridFocusDirective,selectors:[["","ixComponentGridFocus",""]],standalone:!0});let ComponentGridFocusDirective3=_ComponentGridFocusDirective;return ComponentGridFocusDirective3})();function PeriodBottomSheetComponent_For_4_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-list-item",11),\u0275\u0275listener("click",function(){let range_r2=\u0275\u0275restoreView(_r1).$implicit,ctx_r2=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r2.applyRange(range_r2.code))}),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()}if(rf&2){let range_r2=ctx.$implicit;\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind2(2,1,range_r2.translateKey,range_r2.translateParams)," ")}}function PeriodBottomSheetComponent_Conditional_12_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"FROM_MUST_BE_BEFORE_TO"),\u0275\u0275elementEnd())}function PeriodBottomSheetComponent_Conditional_13_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.MAX_DATE"),\u0275\u0275elementEnd())}function PeriodBottomSheetComponent_Conditional_18_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"TO_MUST_BE_AFTER_FROM"),\u0275\u0275elementEnd())}function PeriodBottomSheetComponent_Conditional_19_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.MAX_DATE"),\u0275\u0275elementEnd())}var PeriodBottomSheetComponent=(()=>{let _PeriodBottomSheetComponent=class _PeriodBottomSheetComponent{constructor(){this.data=inject(MAT_BOTTOM_SHEET_DATA),this.ref=inject(MatBottomSheetRef),this.ranges=TIME_RANGE_OPTIONS,this.maxDate=DateTime.now().endOf("day").toISO()}ngOnInit(){let timeRange=toTimeRange(this.data.periodSpec);this.form=new FormGroup({from:new FormControl(DateTime.fromMillis(timeRange.from).set({millisecond:0}).toISO({includeOffset:!1,suppressMilliseconds:!0}),{validators:[Validators.required,DateTimeValidators.maxDate(this.maxDate)],nonNullable:!0}),to:new FormControl(DateTime.fromMillis(timeRange.to).set({millisecond:0}).toISO({includeOffset:!1,suppressMilliseconds:!0}),{validators:[Validators.required,DateTimeValidators.maxDate(this.maxDate)],nonNullable:!0})},{validators:DateTimeValidators.fromToInverted()})}applyRange(range3){this.ref.dismiss(range3)}cancel(){this.ref.dismiss()}submit(){let periodSpec={from:DateTime.fromISO(this.form.controls.from.value).toMillis(),to:DateTime.fromISO(this.form.controls.to.value).toMillis()};this.ref.dismiss(periodSpec)}};_PeriodBottomSheetComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PeriodBottomSheetComponent)},_PeriodBottomSheetComponent.\u0275cmp=\u0275\u0275defineComponent({type:_PeriodBottomSheetComponent,selectors:[["ix-period-bottom-sheet"]],standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:27,vars:10,consts:[["fxLayout","column"],[1,"ranges"],["autocomplete","off",3,"ngSubmit","formGroup"],["fxLayout","row","fxLayoutGap","8px"],["fxFlex","grow"],["translate",""],["type","datetime-local","matInput","","formControlName","from","step","1",3,"max"],["type","datetime-local","matInput","","formControlName","to","step","1",3,"min","max"],["fxLayout","row","fxLayoutAlign","end center",1,"actions"],["type","button","mat-button","",3,"click"],["type","submit","mat-button","","color","primary",3,"disabled"],[3,"click"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"div",1)(2,"mat-action-list"),\u0275\u0275repeaterCreate(3,PeriodBottomSheetComponent_For_4_Template,3,4,"mat-list-item",null,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd()(),\u0275\u0275element(5,"mat-divider"),\u0275\u0275elementStart(6,"form",2),\u0275\u0275listener("ngSubmit",function(){return ctx.submit()}),\u0275\u0275elementStart(7,"fieldset",3)(8,"mat-form-field",4)(9,"mat-label",5),\u0275\u0275text(10,"FROM__DATE"),\u0275\u0275elementEnd(),\u0275\u0275element(11,"input",6),\u0275\u0275template(12,PeriodBottomSheetComponent_Conditional_12_Template,2,0,"mat-error",5)(13,PeriodBottomSheetComponent_Conditional_13_Template,2,0,"mat-error",5),\u0275\u0275elementEnd(),\u0275\u0275elementStart(14,"mat-form-field",4)(15,"mat-label",5),\u0275\u0275text(16,"TO__DATE"),\u0275\u0275elementEnd(),\u0275\u0275element(17,"input",7),\u0275\u0275template(18,PeriodBottomSheetComponent_Conditional_18_Template,2,0,"mat-error",5)(19,PeriodBottomSheetComponent_Conditional_19_Template,2,0,"mat-error",5),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(20,"div",8)(21,"button",9),\u0275\u0275listener("click",function(){return ctx.cancel()}),\u0275\u0275elementStart(22,"span",5),\u0275\u0275text(23,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(24,"button",10)(25,"span",5),\u0275\u0275text(26,"APPLY"),\u0275\u0275elementEnd()()()()()),rf&2){let tmp_2_0,tmp_6_0;\u0275\u0275advance(3),\u0275\u0275repeater(ctx.ranges),\u0275\u0275advance(3),\u0275\u0275property("formGroup",ctx.form),\u0275\u0275advance(5),\u0275\u0275property("max",(tmp_2_0=ctx.form.get("to"))==null?null:tmp_2_0.value)("max",ctx.maxDate),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.from.hasError("inverted")?12:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.from.hasError("maxDate")?13:-1),\u0275\u0275advance(4),\u0275\u0275property("min",(tmp_6_0=ctx.form.get("from"))==null?null:tmp_6_0.value)("max",ctx.maxDate),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.to.hasError("inverted")?18:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.to.hasError("maxDate")?19:-1),\u0275\u0275advance(5),\u0275\u0275property("disabled",ctx.form.invalid)}},dependencies:[FlexModule,DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatDividerModule,MatDivider,MatFormFieldModule,MatFormField,MatLabel,MatError,MatInputModule,MatInput,MatListModule,MatActionList,MatListItem,ReactiveFormsModule,\u0275NgNoValidate,DefaultValueAccessor,NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateModule,TranslatePipe,TranslateDirective],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%]{max-height:50vh;overflow-y:auto}[_nghost-%COMP%] form[_ngcontent-%COMP%]{display:block;padding-top:16px}[_nghost-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%]{margin:0;padding:0;border:none}[_nghost-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%] .mat-mdc-form-field[_ngcontent-%COMP%]{max-width:calc(50vw - 24px)!important}[_nghost-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%] input[type=datetime-local][_ngcontent-%COMP%]::-webkit-inner-spin-button, [_nghost-%COMP%] form[_ngcontent-%COMP%] fieldset[_ngcontent-%COMP%] input[type=datetime-local][_ngcontent-%COMP%]::-webkit-calendar-picker-indicator{appearance:none;display:none}[_nghost-%COMP%] .actions[_ngcontent-%COMP%]{padding-bottom:8px}[_nghost-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}"]});let PeriodBottomSheetComponent2=_PeriodBottomSheetComponent;return PeriodBottomSheetComponent2})();var PeriodPanelRef=class{constructor(overlayRef){this.overlayRef=overlayRef,this._afterClosed=new Subject}afterClosed(){return this._afterClosed.asObservable()}close(data){this.overlayRef.dispose(),data&&(this._afterClosed.next(data),this._afterClosed.complete())}};var PERIOD_PANEL_DATA=new InjectionToken("device-board-header-period-panel-data");var import_dayjs4=__toESM(require_dayjs_min()),import_utc=__toESM(require_utc()),import_timezone=__toESM(require_timezone());var _c025=a0=>({active:a0});function PeriodPanelComponent_Conditional_21_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"button",6)(1,"div",4)(2,"mat-icon",20),\u0275\u0275text(3,"public"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(4,"span"),\u0275\u0275text(5),\u0275\u0275pipe(6,"translate"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(7,"span"),\u0275\u0275text(8,":\xA0"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"span"),\u0275\u0275text(10),\u0275\u0275elementEnd(),\u0275\u0275elementStart(11,"mat-icon"),\u0275\u0275text(12,"arrow_drop_down"),\u0275\u0275elementEnd()()()),rf&2){let ctx_r1=\u0275\u0275nextContext(),timeZoneMenu_r3=\u0275\u0275reference(4);\u0275\u0275property("matMenuTriggerFor",timeZoneMenu_r3),\u0275\u0275advance(5),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(6,3,ctx_r1.timeZoneSpec==="device"?"DEVICE_TIME_ZONE":"MY_TIME_ZONE")),\u0275\u0275advance(5),\u0275\u0275textInterpolate(ctx_r1.timeZoneSpec==="device"?ctx_r1.deviceTimeZone:ctx_r1.myTimeZone)}}function PeriodPanelComponent_Conditional_32_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"FROM_MUST_BE_BEFORE_TO"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_33_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.MAX_DATE"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_34_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.INVALID_DATE_AND_TIME"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_35_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.INVALID_DATE_AND_TIME"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_41_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"TO_MUST_BE_AFTER_FROM"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_42_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.MAX_DATE"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_43_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.INVALID_DATE_AND_TIME"),\u0275\u0275elementEnd())}function PeriodPanelComponent_Conditional_44_Template(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"mat-error",5),\u0275\u0275text(1,"__MESSAGE__.INVALID_DATE_AND_TIME"),\u0275\u0275elementEnd())}function PeriodPanelComponent_For_55_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-list-item",21),\u0275\u0275listener("click",function(){let range_r5=\u0275\u0275restoreView(_r4).$implicit,ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.applyRange(range_r5.code))}),\u0275\u0275text(1),\u0275\u0275pipe(2,"translate"),\u0275\u0275elementEnd()}if(rf&2){let range_r5=ctx.$implicit;\u0275\u0275advance(),\u0275\u0275textInterpolate1(" ",\u0275\u0275pipeBind2(2,1,range_r5.translateKey,range_r5.translateParams)," ")}}import_dayjs4.default.extend(import_utc.default);import_dayjs4.default.extend(import_timezone.default);var PeriodPanelComponent=(()=>{let _PeriodPanelComponent=class _PeriodPanelComponent{constructor(data,formBuilder,localizationService,ref){this.data=data,this.formBuilder=formBuilder,this.localizationService=localizationService,this.ref=ref,this.browserTimeZone=Intl.DateTimeFormat().resolvedOptions().timeZone,this.locale={format:"YYYY-MM-DDTHH:mm:ss.SSSZ",displayFormat:"MM/DD/YYYY",direction:"ltr",weekLabel:"W",daysOfWeek:[Info.weekdays("short")[6],...Info.weekdays("short").slice(0,-1)],monthNames:Info.months("short"),firstDay:1},this.maxISO=DateTime.now().endOf("day").toISO(),this.ranges=TIME_RANGE_OPTIONS,this.myTimeZone=this.localizationService.getTimeZone()}ngOnInit(){this.deviceTimeZone=this.data.deviceTimeZone||null,this.timeZone=Settings.defaultZone.name,this.timeZoneSpec=this.data.timeZoneSpec||"user",this.processRange()}applyRange(range3){this.ref.close(range3)}cancel(){this.ref.close()}choosedDate(selection){this.form.setValue({from:DateTime.fromISO(selection.startDate.toISOString(),{zone:this.browserTimeZone}).setZone(this.timeZone,{keepLocalTime:!0}).toFormat("F"),to:DateTime.fromISO(selection.endDate.toISOString(),{zone:this.browserTimeZone}).setZone(this.timeZone,{keepLocalTime:!0}).toFormat("F")})}submit(){let periodSpec={from:DateTime.fromFormat(this.form.value.from,"F").toMillis(),to:DateTime.fromFormat(this.form.value.to,"F").toMillis()};this.ref.close(periodSpec)}setTimeZoneSpec(timeZoneSpec){this.timeZoneSpec=timeZoneSpec,this.timeZone=timeZoneSpec==="device"&&this.deviceTimeZone?this.deviceTimeZone:this.myTimeZone,this.processRange(),this.data.timeZoneSpecSelected?.emit({name:this.timeZone,spec:timeZoneSpec})}processRange(){let timeRange=toTimeRange(this.data.periodSpec||"yesterday");if(this.selected={startDate:(0,import_dayjs4.default)(DateTime.fromMillis(timeRange.from,{zone:this.timeZone}).setZone(this.browserTimeZone,{keepLocalTime:!0}).toMillis()),endDate:(0,import_dayjs4.default)(DateTime.fromMillis(timeRange.to,{zone:this.timeZone}).setZone(this.browserTimeZone,{keepLocalTime:!0}).toMillis())},this.form)this.form.setValue({from:DateTime.fromMillis(timeRange.from).toFormat("F"),to:DateTime.fromMillis(timeRange.to).toFormat("F")});else{let formatter=value=>DateTime.fromFormat(value,"F");this.form=this.formBuilder.group({from:[DateTime.fromMillis(timeRange.from).toFormat("F"),[Validators.required,DateTimeValidators.format(formatter),DateTimeValidators.maxDate(this.maxISO,formatter)]],to:[DateTime.fromMillis(timeRange.to).toFormat("F"),[Validators.required,DateTimeValidators.format(formatter),DateTimeValidators.maxDate(this.maxISO,formatter)]]},{validators:DateTimeValidators.fromToInverted(formatter)})}}onEscapeHandler(event2){event2.stopPropagation(),event2.preventDefault(),this.ref.close()}};_PeriodPanelComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PeriodPanelComponent)(\u0275\u0275directiveInject(PERIOD_PANEL_DATA),\u0275\u0275directiveInject(FormBuilder),\u0275\u0275directiveInject(LocalizationService),\u0275\u0275directiveInject(PeriodPanelRef))},_PeriodPanelComponent.\u0275cmp=\u0275\u0275defineComponent({type:_PeriodPanelComponent,selectors:[["ix-period-panel"]],hostBindings:function(rf,ctx){rf&1&&\u0275\u0275listener("keydown.escape",function($event){return ctx.onEscapeHandler($event)},!1,\u0275\u0275resolveDocument)},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:56,vars:31,consts:[["timeZoneMenu","matMenu"],["fxFlex","","translate",""],[1,"dense"],["mat-menu-item","",3,"click","ngClass"],["fxLayout","row","fxLayoutAlign","start center"],["translate",""],["mat-button","",1,"time-zone-select",3,"matMenuTriggerFor"],["fxLayout","row"],["fxFlex","",1,"picker"],[3,"choosedDate","autoApply","linkedCalendars","maxDate","locale","startDate","endDate"],["autocomplete","off",3,"ngSubmit","formGroup"],["fxlayout","row","fxLayoutGap","16px"],["fxFlex","grow"],["matInput","","formControlName","from",3,"placeholder"],["matInput","","formControlName","to",3,"placeholder"],["fxLayout","row","fxLayoutAlign","end center",1,"actions"],["type","button","mat-stroked-button","",3,"click"],["type","submit","mat-flat-button","","color","primary",3,"disabled"],[1,"ranges"],["dense",""],[1,"mr-1"],[3,"click"]],template:function(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-toolbar")(1,"span",1),\u0275\u0275text(2,"TIME_RANGE_SELECTION"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"mat-menu",2,0)(5,"button",3),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.setTimeZoneSpec("user"))}),\u0275\u0275elementStart(6,"div",4)(7,"span",5),\u0275\u0275text(8,"MY_TIME_ZONE"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(9,"span"),\u0275\u0275text(10,":\xA0"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(11,"span"),\u0275\u0275text(12),\u0275\u0275elementEnd()()(),\u0275\u0275elementStart(13,"button",3),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.setTimeZoneSpec("device"))}),\u0275\u0275elementStart(14,"div",4)(15,"span",5),\u0275\u0275text(16,"DEVICE_TIME_ZONE"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(17,"span"),\u0275\u0275text(18,":\xA0"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(19,"span"),\u0275\u0275text(20),\u0275\u0275elementEnd()()()(),\u0275\u0275template(21,PeriodPanelComponent_Conditional_21_Template,13,5,"button",6),\u0275\u0275elementEnd(),\u0275\u0275elementStart(22,"div",7)(23,"div",8)(24,"ngx-daterangepicker-material",9),\u0275\u0275listener("choosedDate",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.choosedDate($event))}),\u0275\u0275elementEnd(),\u0275\u0275elementStart(25,"form",10),\u0275\u0275listener("ngSubmit",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.submit())}),\u0275\u0275elementStart(26,"fieldset",11)(27,"mat-form-field",12)(28,"mat-label",5),\u0275\u0275text(29,"FROM__DATE"),\u0275\u0275elementEnd(),\u0275\u0275element(30,"input",13),\u0275\u0275pipe(31,"translate"),\u0275\u0275template(32,PeriodPanelComponent_Conditional_32_Template,2,0,"mat-error",5)(33,PeriodPanelComponent_Conditional_33_Template,2,0,"mat-error",5)(34,PeriodPanelComponent_Conditional_34_Template,2,0,"mat-error",5)(35,PeriodPanelComponent_Conditional_35_Template,2,0,"mat-error",5),\u0275\u0275elementEnd(),\u0275\u0275elementStart(36,"mat-form-field",12)(37,"mat-label",5),\u0275\u0275text(38,"TO__DATE"),\u0275\u0275elementEnd(),\u0275\u0275element(39,"input",14),\u0275\u0275pipe(40,"translate"),\u0275\u0275template(41,PeriodPanelComponent_Conditional_41_Template,2,0,"mat-error",5)(42,PeriodPanelComponent_Conditional_42_Template,2,0,"mat-error",5)(43,PeriodPanelComponent_Conditional_43_Template,2,0,"mat-error",5)(44,PeriodPanelComponent_Conditional_44_Template,2,0,"mat-error",5),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(45,"div",15)(46,"button",16),\u0275\u0275listener("click",function(){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView(ctx.cancel())}),\u0275\u0275elementStart(47,"span",5),\u0275\u0275text(48,"CANCEL"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(49,"button",17)(50,"span",5),\u0275\u0275text(51,"APPLY"),\u0275\u0275elementEnd()()()()(),\u0275\u0275elementStart(52,"div",18)(53,"mat-action-list",19),\u0275\u0275repeaterCreate(54,PeriodPanelComponent_For_55_Template,3,4,"mat-list-item",null,\u0275\u0275repeaterTrackByIdentity),\u0275\u0275elementEnd()()()}rf&2&&(\u0275\u0275advance(5),\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(27,_c025,ctx.timeZoneSpec==="user")),\u0275\u0275advance(7),\u0275\u0275textInterpolate(ctx.myTimeZone),\u0275\u0275advance(),\u0275\u0275property("ngClass",\u0275\u0275pureFunction1(29,_c025,ctx.timeZoneSpec==="device")),\u0275\u0275advance(7),\u0275\u0275textInterpolate(ctx.deviceTimeZone),\u0275\u0275advance(),\u0275\u0275conditional(ctx.deviceTimeZone&&ctx.deviceTimeZone!==ctx.myTimeZone?21:-1),\u0275\u0275advance(3),\u0275\u0275property("autoApply",!0)("linkedCalendars",!0)("maxDate",ctx.maxISO)("locale",ctx.locale)("startDate",ctx.selected.startDate)("endDate",ctx.selected.endDate||null),\u0275\u0275advance(),\u0275\u0275property("formGroup",ctx.form),\u0275\u0275advance(5),\u0275\u0275propertyInterpolate("placeholder",\u0275\u0275pipeBind1(31,23,"FROM__DATE")),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.form.controls.from.hasError("inverted")?32:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.from.hasError("maxDate")?33:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.from.hasError("unitOutOfRange")?34:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.from.hasError("unparsable")?35:-1),\u0275\u0275advance(4),\u0275\u0275propertyInterpolate("placeholder",\u0275\u0275pipeBind1(40,25,"TO__DATE")),\u0275\u0275advance(2),\u0275\u0275conditional(ctx.form.controls.to.hasError("inverted")?41:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.to.hasError("maxDate")?42:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.to.hasError("unitOutOfRange")?43:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx.form.controls.to.hasError("unparsable")?44:-1),\u0275\u0275advance(5),\u0275\u0275property("disabled",ctx.form.invalid),\u0275\u0275advance(5),\u0275\u0275repeater(ctx.ranges))},dependencies:[FlexModule,DefaultLayoutDirective,DefaultLayoutGapDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatFormFieldModule,MatFormField,MatLabel,MatError,MatIconModule,MatIcon,MatInputModule,MatInput,MatListModule,MatActionList,MatListItem,MatMenuModule,MatMenu,MatMenuItem,MatMenuTrigger,MatToolbarModule,MatToolbar,NgClass,NgxDaterangepickerMd,DaterangepickerComponent,ReactiveFormsModule,\u0275NgNoValidate,DefaultValueAccessor,NgControlStatus,NgControlStatusGroup,FormGroupDirective,FormControlName,TranslateModule,TranslatePipe,TranslateDirective],styles:["@keyframes _ngcontent-%COMP%_zoom-in{0%{transform:scale(.75);opacity:.9}to{transform:scale(1);opacity:1}}[_nghost-%COMP%]{min-width:754px;max-height:514px;background-color:var(--body-bg);color:var(--body-color);animation:_ngcontent-%COMP%_zoom-in .14s cubic-bezier(0,0,.2,1) both;border-radius:2px;box-shadow:0 2px 4px -1px #0003,0 4px 5px #00000024,0 1px 10px #0000001f;transform-origin:top right}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{border-bottom:1px solid var(--card-border-color);font-family:var(--font-family);font-size:14px}[_nghost-%COMP%] .time-zone-select[_ngcontent-%COMP%]{padding:0 4px 0 8px;font-size:12px;color:rgba(var(--body-color-rgb),.67)}[_nghost-%COMP%] .time-zone-select[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]:first-child{height:20px;width:20px;margin-right:4px;font-size:20px}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker{margin-top:0;background-color:var(--basic);box-shadow:none;border-radius:0}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td{transition-property:none;opacity:1}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker tbody tr td{height:32px}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.month{font-weight:500;color:#000000ab}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.next, [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker th.prev{min-width:28px}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker tr.week-days th{font-size:11px;font-weight:400;color:#00000061}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.off{color:#00000029}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.off.active:hover{background-color:#eee;border-radius:50%}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.in-range{background-color:rgba(var(--primary-rgb),.12);color:#000000de}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.today:not(.active, .in-range[_ngcontent-%COMP%], .off)[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.38)}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.active:not(.off), [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.active:not(.off):hover{background-color:var(--primary);color:var(--primary-color);border-radius:50%;opacity:1;transition-property:border-radius}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.active:not(.off).start-date:not(.end-date), [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.active:not(.off):hover.start-date:not(.end-date){border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.active:not(.off).end-date:not(.start-date), [_nghost-%COMP%] .picker[_ngcontent-%COMP%] .md-drppicker td.active:not(.off):hover.end-date:not(.start-date){border-top-left-radius:0;border-bottom-left-radius:0}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%]{border-left:1px solid var(--card-border-color);height:449px;width:200px;overflow-y:auto}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%] .mat-mdc-action-list[dense][_ngcontent-%COMP%]{padding:4px 0}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%] .mat-mdc-action-list[dense][_ngcontent-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%]{--mdc-list-list-item-one-line-container-height: auto;--mdc-list-list-item-label-text-line-height: 14px;--mdc-list-list-item-label-text-size: 12px;padding-top:6px;padding-bottom:6px}[_nghost-%COMP%] .ranges[_ngcontent-%COMP%] .mat-mdc-action-list[dense][_ngcontent-%COMP%] .mat-mdc-list-item[_ngcontent-%COMP%] .mdc-list-item__primary-text{white-space:normal}[_nghost-%COMP%] fieldset[_ngcontent-%COMP%]{margin:0;padding:0 16px;border:none}[_nghost-%COMP%] .actions[_ngcontent-%COMP%]{padding:12px 16px}[_nghost-%COMP%] .actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-left:8px}"]});let PeriodPanelComponent2=_PeriodPanelComponent;return PeriodPanelComponent2})();var DEFAULT_CONNECTED_POSITIONS=[{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top",offsetX:0,offsetY:-1}],PeriodPanelService=(()=>{let _PeriodPanelService=class _PeriodPanelService{constructor(injector,overlay){this.injector=injector,this.overlay=overlay}show(origin,data,positions){let overlayRef=this.createOverlay(origin,positions),instance=new PeriodPanelRef(overlayRef);return this.attachSnackBarContainer(overlayRef,instance,data,this.getTransformOrigin(positions)),instance}getTransformOrigin(positions){if(!positions)return;let positionOriginX=positions[0].originX,originX=positionOriginX==="start"?"left":positionOriginX==="end"?"right":"center",originY=positions[0].originY;return`${originX} ${originY}`}createOverlay(origin,positions){let overlayRef=this.overlay.create(this.getOverlayConfig(origin,positions));return overlayRef.backdropClick().subscribe(()=>overlayRef.dispose()),overlayRef}createInjector(snackBarRef,data){let injectionTokens=new WeakMap;return injectionTokens.set(PeriodPanelRef,snackBarRef),injectionTokens.set(PERIOD_PANEL_DATA,data),new PortalInjector(this.injector,injectionTokens)}attachSnackBarContainer(overlayRef,snackBarRef,data,transformOrigin){let injector=this.createInjector(snackBarRef,data),containerPortal=new ComponentPortal(PeriodPanelComponent,null,injector),containerRef=overlayRef.attach(containerPortal);if(transformOrigin){let panelElement=overlayRef.overlayElement.firstElementChild;panelElement.style.transformOrigin=transformOrigin}return containerRef.instance}getOverlayConfig(origin,positions){let positionStrategy=this.overlay.position().flexibleConnectedTo(origin).withPositions(positions||DEFAULT_CONNECTED_POSITIONS);return new OverlayConfig({hasBackdrop:!0,backdropClass:"overlay-transparent-backdrop",panelClass:"ix-period-panel-container",scrollStrategy:this.overlay.scrollStrategies.noop(),positionStrategy})}};_PeriodPanelService.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PeriodPanelService)(\u0275\u0275inject(Injector),\u0275\u0275inject(Overlay))},_PeriodPanelService.\u0275prov=\u0275\u0275defineInjectable({token:_PeriodPanelService,factory:_PeriodPanelService.\u0275fac,providedIn:"root"});let PeriodPanelService3=_PeriodPanelService;return PeriodPanelService3})();function PeriodControlsComponent_Conditional_0_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",2),\u0275\u0275pipe(1,"translate"),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.handleZoomOutButtonClick())}),\u0275\u0275elementStart(2,"mat-icon"),\u0275\u0275text(3,"zoom_out"),\u0275\u0275elementEnd()()}rf&2&&\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(1,1,"ZOOM_OUT"))}var PeriodControlsComponent=(()=>{let _PeriodControlsComponent=class _PeriodControlsComponent{get gtSm(){return this.bpObserver.isMatched("(min-width: 960px)")}constructor(bpObserver,bottomSheet,periodPanel,translate){this.bpObserver=bpObserver,this.bottomSheet=bottomSheet,this.periodPanel=periodPanel,this.translate=translate,this.periodSpecSelected=new EventEmitter,this.timeZoneSpecSelected=new EventEmitter}ngOnChanges(changes){changes.periodSpecs&&(this.periodButtonLabel=this.getPeriodButtonLabel(),this.zoomOutIsVisible=this.getZoomOutIsVisible())}handleZoomOutButtonClick(){this.zoomOut()}handlePeriodButtonClick(event2){return this.gtSm?this.openPeriodPanel(event2):this.openPeriodBottomSheet()}openPeriodBottomSheet(){this.periodSpecs&&this.bottomSheet.open(PeriodBottomSheetComponent,{data:{periodSpec:this.periodSpecs.active}}).afterDismissed().subscribe(periodSpec=>{periodSpec&&(this.periodSpecs=__spreadProps(__spreadValues({},this.periodSpecs),{selected:periodSpec}),this.periodSpecSelected.emit(periodSpec))})}openPeriodPanel(event2){this.periodSpecs&&this.periodPanel.show(event2.currentTarget,{periodSpec:this.periodSpecs.active||null,deviceTimeZone:this.deviceTimeZone,timeZoneSpec:this.timeZoneSpec,timeZoneSpecSelected:this.timeZoneSpecSelected}).afterClosed().subscribe(periodSpec=>{periodSpec&&(this.periodSpecs=__spreadProps(__spreadValues({},this.periodSpecs),{selected:periodSpec}),this.periodSpecSelected.emit(periodSpec))})}getPeriodButtonLabel(){return this.periodSpecs?.active?typeof this.periodSpecs.active=="string"?this.translate.instant(getTranslateKeyForPeriod(this.periodSpecs.active),getTranslateParamsForPeriod(this.periodSpecs.active)):toStringTimeRange(this.periodSpecs.active):""}getZoomOutIsVisible(){return this.periodSpecs?!isEqual_default(this.periodSpecs.active,this.periodSpecs.selected):!1}zoomOut(){this.periodSpecSelected.emit(this.periodSpecs.selected)}enterKeyDownHandler(event2){event2.target.blur()}};_PeriodControlsComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PeriodControlsComponent)(\u0275\u0275directiveInject(BreakpointObserver),\u0275\u0275directiveInject(MatBottomSheet),\u0275\u0275directiveInject(PeriodPanelService),\u0275\u0275directiveInject(TranslateService))},_PeriodControlsComponent.\u0275cmp=\u0275\u0275defineComponent({type:_PeriodControlsComponent,selectors:[["ix-period-controls"]],inputs:{deviceTimeZone:"deviceTimeZone",periodSpecs:"periodSpecs",timeZoneSpec:"timeZoneSpec",mobile:"mobile"},outputs:{periodSpecSelected:"periodSpecSelected",timeZoneSpecSelected:"timeZoneSpecSelected"},features:[\u0275\u0275NgOnChangesFeature],decls:3,vars:2,consts:[["mat-stroked-button","",1,"zoom-out-button",3,"matTooltip"],["mat-stroked-button","",3,"keydown.enter","click"],["mat-stroked-button","",1,"zoom-out-button",3,"click","matTooltip"]],template:function(rf,ctx){rf&1&&(\u0275\u0275template(0,PeriodControlsComponent_Conditional_0_Template,4,3,"button",0),\u0275\u0275elementStart(1,"button",1),\u0275\u0275listener("keydown.enter",function($event){return ctx.enterKeyDownHandler($event)})("click",function($event){return ctx.handlePeriodButtonClick($event)}),\u0275\u0275text(2),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275conditional(ctx.zoomOutIsVisible?0:-1),\u0275\u0275advance(2),\u0275\u0275textInterpolate1(" ",ctx.periodButtonLabel,`
|
|
665
|
-
`))},dependencies:[MatButton,MatIcon,MatTooltip,TranslatePipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .zoom-out-button[_ngcontent-%COMP%]{min-width:0;padding:0 7px;margin-right:8px}[_nghost-%COMP%] .zoom-out-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin:0}"],changeDetection:0});let PeriodControlsComponent3=_PeriodControlsComponent;return PeriodControlsComponent3})();var BackendComponentBrokerDirective=(()=>{let _BackendComponentBrokerDirective=class _BackendComponentBrokerDirective{set agentOrAssetId(agentOrAssetId){this.agentOrAssetId$.next(agentOrAssetId)}constructor(scopeRef,callerFactory,facade,clientProxy){this.scopeRef=scopeRef,this.callerFactory=callerFactory,this.facade=facade,this.clientProxy=clientProxy,this.myCompany$=this.facade.myCompany$,this.myUser$=this.facade.myUser$,this.agentOrAssetId$=new ReplaySubject(1),this.ngUnsubscribe=new Subject}ngOnInit(){combineLatest([this.facade.findAgentAndAsset(this.agentOrAssetId$),this.facade.myCompany$,this.facade.myUser$]).pipe(filter(([,myCompany,myUser])=>!!myCompany&&!!myUser),takeUntil(this.ngUnsubscribe)).subscribe(([[agent,asset],myCompany,myUser])=>{this.caller=this.callerFactory.create({agent,asset,myCompany,myUser})}),this.clientProxy.onCall(this.scopeRef?.value).pipe(mergeMap(call=>this.facade.resolveTemplateFromPageComponent(call.pageComponentId).pipe(first(),map(result=>({call:call.call,template:{publicId:result}})))),mergeMap(call=>this.caller?this.caller.call(call).pipe(map(result=>({result,call})),catchError(()=>EMPTY)):EMPTY),takeUntil(this.ngUnsubscribe)).subscribe(({result,call})=>{this.clientProxy.emitResult({call:call.call,data:result.value},this.scopeRef?.value)})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}};_BackendComponentBrokerDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_BackendComponentBrokerDirective)(\u0275\u0275directiveInject(ComponentGridScopeDirective,8),\u0275\u0275directiveInject(BackendComponentCallerServiceFactory),\u0275\u0275directiveInject(BackendComponentBrokerFacade),\u0275\u0275directiveInject(BackendComponentClientProxyService))},_BackendComponentBrokerDirective.\u0275dir=\u0275\u0275defineDirective({type:_BackendComponentBrokerDirective,selectors:[["","ixBackendComponentBroker",""]],inputs:{agentOrAssetId:"agentOrAssetId"}});let BackendComponentBrokerDirective3=_BackendComponentBrokerDirective;return BackendComponentBrokerDirective3})();var PagesModule=(()=>{let _PagesModule=class _PagesModule{};_PagesModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PagesModule)},_PagesModule.\u0275mod=\u0275\u0275defineNgModule({type:_PagesModule}),_PagesModule.\u0275inj=\u0275\u0275defineInjector({providers:[ComponentContextService],imports:[SharedModule,NgxDaterangepickerMd,ComponentGridModule,ComponentPropertiesModule,FileSaveModule,PeriodBottomSheetComponent,PeriodPanelComponent,ComponentGridModule,ComponentPropertiesModule]});let PagesModule2=_PagesModule;return PagesModule2})();function resizeObservableFactory(element,config3){return new Observable(subscriber=>{let observer=new ResizeObserver(entries=>{subscriber.next(entries)});return observer.observe(element,config3),function(){observer.unobserve(element)}})}var _c026=["*"],ButtonToggleComponent=(()=>{let _ButtonToggleComponent=class _ButtonToggleComponent{constructor(){this.elRef=inject(ElementRef),this.color="basic",this.disabled=!1,this.valueChange=new EventEmitter}getWidth(){return this.elRef.nativeElement.clientWidth??0}getOffset(){return this.elRef.nativeElement.offsetLeft??0}select(){this.selected=!0}unselect(){this.selected=!1}};_ButtonToggleComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ButtonToggleComponent)},_ButtonToggleComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ButtonToggleComponent,selectors:[["ix-button-toggle"]],inputs:{value:"value",color:"color",disabled:"disabled"},outputs:{valueChange:"valueChange"},standalone:!0,features:[\u0275\u0275StandaloneFeature],ngContentSelectors:_c026,decls:2,vars:6,consts:[["role","tab","tabindex","0",1,"button",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"div",0),\u0275\u0275listener("click",function(){return ctx.valueChange.emit(ctx.value)}),\u0275\u0275projection(1),\u0275\u0275elementEnd()),rf&2&&\u0275\u0275classProp("color",ctx.color)("disabled",ctx.disabled)("selected",ctx.selected)},styles:["[_nghost-%COMP%] .button[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:0 12px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;cursor:pointer;font-size:14px;max-width:100%;position:relative;height:34px;color:rgba(var(--body-color-rgb),.34);transition:box-shadow .2s cubic-bezier(.4,1,.75,.9);-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .button.selected[_ngcontent-%COMP%]{color:#727272;font-weight:500;z-index:1}.button-list.primary [_nghost-%COMP%] .button.selected[_ngcontent-%COMP%]{color:var(--primary)}[_nghost-%COMP%] .button.disabled[_ngcontent-%COMP%]{color:#dadada;pointer-events:none}[_nghost-%COMP%] .button[_ngcontent-%COMP%]:focus{outline:none;outline-offset:0;-moz-outline-radius:0}[_nghost-%COMP%]:hover [_ngcontent-%COMP%]:not(.selected, .disabled)[_ngcontent-%COMP%]{border-bottom:none;color:#787878;background-color:rgba(var(--body-color-rgb),.04)!important;border-radius:4px;box-shadow:none!important;transition:all .2s cubic-bezier(.4,1,.75,.9)}"]});let ButtonToggleComponent3=_ButtonToggleComponent;return ButtonToggleComponent3})();var _c027=["*"],ButtonToggleGroupComponent=(()=>{let _ButtonToggleGroupComponent=class _ButtonToggleGroupComponent{constructor(){this.cdRef=inject(ChangeDetectorRef),this.elRef=inject(ElementRef),this.destroy=inject(DestroyRef),this.color="default",this.indicatorStyle=null,this._animate=!1,this.mutationObserver=new MutationObserver(mutations=>{mutations.forEach(()=>{this.animate(),this.cdRef.detectChanges()})}),this.mutationObserver.observe(this.elRef.nativeElement,{childList:!0})}ngOnChanges(changes){changes.value&&!changes.value.isFirstChange()&&this.animate()}ngAfterContentInit(){resizeObservableFactory(this.elRef.nativeElement).pipe(skip(1),takeUntilDestroyed(this.destroy)).subscribe(()=>{this.animate(),this.cdRef.detectChanges()}),this.animate()}ngOnDestroy(){this.mutationObserver.disconnect()}animate(){this._active=this._buttons?.find(segment=>segment.value===this.value)??null,this._active?.select(),this._buttons?.filter(s2=>s2!==this._active).forEach(s2=>s2.unselect()),this.indicatorStyle=this._active?{width:`${this._active.getWidth()}px`,transform:`translateX(${this._active.getOffset()}px)`}:null,this._active&&!this._animate&&setTimeout(()=>this._animate=!0,0)}};_ButtonToggleGroupComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ButtonToggleGroupComponent)},_ButtonToggleGroupComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ButtonToggleGroupComponent,selectors:[["ix-button-toggle-group"]],contentQueries:function(rf,ctx,dirIndex){if(rf&1&&\u0275\u0275contentQuery(dirIndex,ButtonToggleComponent,4),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._buttons=_t)}},hostVars:2,hostBindings:function(rf,ctx){rf&2&&\u0275\u0275classProp("animate",ctx._animate)},inputs:{value:"value",color:"color"},standalone:!0,features:[\u0275\u0275NgOnChangesFeature,\u0275\u0275StandaloneFeature],ngContentSelectors:_c027,decls:3,vars:4,consts:[["role","tablist",1,"button-list"],[1,"active-indicator"]],template:function(rf,ctx){rf&1&&(\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"div",0),\u0275\u0275element(1,"div",1),\u0275\u0275projection(2),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275classProp("primary",ctx.color==="primary"),\u0275\u0275advance(),\u0275\u0275styleMap(ctx.indicatorStyle))},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .button-list[_ngcontent-%COMP%]{align-items:flex-end;border:none;display:flex;flex:0 0 auto;list-style:none;margin:0;padding:0;position:relative;background-color:var(--button-toggle-bg, --body-bg);box-shadow:0 0 0 1px var(--card-border-color);border-radius:4px}[_nghost-%COMP%] .button-list[_ngcontent-%COMP%] .active-indicator[_ngcontent-%COMP%]{left:0;pointer-events:none;position:absolute;top:0;transform:translate(0);transition:height,transform,width;transition-duration:0;transition-timing-function:cubic-bezier(.4,1,.75,.9);border-radius:4px;box-shadow:0 0 0 2px #8f8f8f;height:34px;background-color:var(--button-toggle-bg, --body-bg);z-index:1}[_nghost-%COMP%] .button-list.primary[_ngcontent-%COMP%] .active-indicator[_ngcontent-%COMP%]{box-shadow:0 0 0 2px var(--primary)}.animate[_nghost-%COMP%] .button-list[_ngcontent-%COMP%] .active-indicator[_ngcontent-%COMP%]{transition-duration:.2s}"],changeDetection:0});let ButtonToggleGroupComponent3=_ButtonToggleGroupComponent;return ButtonToggleGroupComponent3})();var ButtonToggleModule=(()=>{let _ButtonToggleModule=class _ButtonToggleModule{};_ButtonToggleModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ButtonToggleModule)},_ButtonToggleModule.\u0275mod=\u0275\u0275defineNgModule({type:_ButtonToggleModule}),_ButtonToggleModule.\u0275inj=\u0275\u0275defineInjector({});let ButtonToggleModule2=_ButtonToggleModule;return ButtonToggleModule2})();var ReloadOnValueChangeDirective=(()=>{let _ReloadOnValueChangeDirective=class _ReloadOnValueChangeDirective{constructor(cdRef,templateRef,viewContainer){this.cdRef=cdRef,this.templateRef=templateRef,this.viewContainer=viewContainer,this.changes=new ReplaySubject,this.destroy=inject(DestroyRef)}ngOnInit(){this.viewContainer.createEmbeddedView(this.templateRef),this.changes.pipe(distinctUntilChanged(isEqual_default),takeUntilDestroyed(this.destroy)).subscribe(()=>{this.viewContainer.clear(),this.viewContainer.createEmbeddedView(this.templateRef),this.cdRef.markForCheck()})}ngOnChanges(changes){changes.value.isFirstChange()||this.changes.next(changes.value.currentValue)}ngOnDestroy(){this.changes.complete()}};_ReloadOnValueChangeDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ReloadOnValueChangeDirective)(\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(TemplateRef),\u0275\u0275directiveInject(ViewContainerRef))},_ReloadOnValueChangeDirective.\u0275dir=\u0275\u0275defineDirective({type:_ReloadOnValueChangeDirective,selectors:[["","ixReloadOnValueChange",""]],inputs:{value:[0,"ixReloadOnValueChange","value"]},features:[\u0275\u0275NgOnChangesFeature]});let ReloadOnValueChangeDirective3=_ReloadOnValueChangeDirective;return ReloadOnValueChangeDirective3})();var ReloadTriggerModule=(()=>{let _ReloadTriggerModule=class _ReloadTriggerModule{};_ReloadTriggerModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ReloadTriggerModule)},_ReloadTriggerModule.\u0275mod=\u0275\u0275defineNgModule({type:_ReloadTriggerModule}),_ReloadTriggerModule.\u0275inj=\u0275\u0275defineInjector({imports:[CommonModule]});let ReloadTriggerModule2=_ReloadTriggerModule;return ReloadTriggerModule2})();var AlertDialogModule=(()=>{let _AlertDialogModule=class _AlertDialogModule{};_AlertDialogModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AlertDialogModule)},_AlertDialogModule.\u0275mod=\u0275\u0275defineNgModule({type:_AlertDialogModule}),_AlertDialogModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule]});let AlertDialogModule2=_AlertDialogModule;return AlertDialogModule2})();var _c028=()=>[],_c110=(a0,a1)=>({"locked-drawer":a0,"open-drawer":a1}),_c26=(a0,a1)=>({desktop:a0,mobile:a1});function BuilderComponent_Conditional_0_Conditional_4_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"span"),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275textInterpolate1(" - ",ctx_r1.componentName,"")}}function BuilderComponent_Conditional_0_Conditional_16_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-button-toggle-group",24),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r3),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(1,"ix-button-toggle",25),\u0275\u0275pipe(2,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setPreviewMode($event))}),\u0275\u0275elementStart(3,"mat-icon"),\u0275\u0275text(4,"desktop_windows"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"ix-button-toggle",26),\u0275\u0275pipe(6,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setPreviewMode($event))}),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"smartphone"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("value",ctx_r1.previewMode),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(2,3,"DESKTOP_VIEW")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(6,5,"MOBILE_VIEW"))}}function BuilderComponent_Conditional_0_Conditional_17_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-button-toggle-group",27),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r4),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(1,"ix-button-toggle",28),\u0275\u0275pipe(2,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setOrientation($event))}),\u0275\u0275elementStart(3,"mat-icon"),\u0275\u0275text(4,"crop_portrait"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"ix-button-toggle",29),\u0275\u0275pipe(6,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setOrientation($event))}),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"crop_landscape"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("value",ctx_r1.orientation),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(2,3,"PORTRAIT_ORIENTATION")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(6,5,"LANDSCAPE_ORIENTATION"))}}function BuilderComponent_Conditional_0_Conditional_18_Template(rf,ctx){if(rf&1){let _r5=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",30),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.toggleMode())})("mousedown",function($event){return \u0275\u0275restoreView(_r5),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"span"),\u0275\u0275text(4),\u0275\u0275pipe(5,"translate"),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r1.mode==="preview"?"edit":"visibility"),\u0275\u0275advance(2),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(5,2,ctx_r1.mode==="preview"?"EDIT":"PREVIEW"))}}function BuilderComponent_Conditional_0_Conditional_38_Conditional_0_Template(rf,ctx){if(rf&1){let _r6=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-toolbar")(1,"h1"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275element(3,"span",3),\u0275\u0275elementStart(4,"button",32),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r6);let ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.toggleDrawerLock())}),\u0275\u0275elementStart(5,"mat-icon"),\u0275\u0275text(6,"keyboard_arrow_right"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r1.selectedComponentTemplate==null?null:ctx_r1.selectedComponentTemplate.name)}}function BuilderComponent_Conditional_0_Conditional_38_Conditional_2_Template(rf,ctx){if(rf&1){let _r7=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-page-component-properties",33),\u0275\u0275listener("update",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.updateComponent($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("component",ctx_r1.selectedComponent)("template",ctx_r1.selectedComponentTemplate)}}function BuilderComponent_Conditional_0_Conditional_38_Template(rf,ctx){if(rf&1&&(\u0275\u0275template(0,BuilderComponent_Conditional_0_Conditional_38_Conditional_0_Template,7,1,"mat-toolbar"),\u0275\u0275elementStart(1,"div",19),\u0275\u0275template(2,BuilderComponent_Conditional_0_Conditional_38_Conditional_2_Template,1,2,"ix-page-component-properties",31),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275conditional(ctx_r1.selectedComponentTemplate!=null&&ctx_r1.selectedComponentTemplate.name?0:-1),\u0275\u0275advance(2),\u0275\u0275conditional(ctx_r1.selectedComponent?2:-1)}}function BuilderComponent_Conditional_0_Conditional_39_Template(rf,ctx){if(rf&1){let _r8=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",32),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r8);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.toggleDrawerLock())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2,"keyboard_arrow_left"),\u0275\u0275elementEnd()()}}function BuilderComponent_Conditional_0_Case_41_Template(rf,ctx){if(rf&1&&\u0275\u0275elementContainer(0,23),rf&2){\u0275\u0275nextContext();let standaloneContent_r9=\u0275\u0275reference(44);\u0275\u0275property("ngTemplateOutlet",standaloneContent_r9)}}function BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_1_Template(rf,ctx){if(rf&1){let _r10=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-component-grid",39),\u0275\u0275listener("selectionChange",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.handleSelectionChange($event))})("componentChanges",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.handleComponentChanges($event))})("movingGridItem",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.setDrawerIsOpen($event))}),\u0275\u0275elementEnd()}if(rf&2){let pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("mobile",ctx_r1.previewMode==="mobile")("pageVersionId",pageVersion_r11.publicId)("selectedComponentId",(ctx_r1.selectedComponent==null?null:ctx_r1.selectedComponent.publicId)||null)("ngClass",\u0275\u0275pureFunction2(6,_c26,ctx_r1.previewMode!=="mobile",ctx_r1.previewMode==="mobile"))}}function BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_2_Template(rf,ctx){if(rf&1){let _r12=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-card-component-grid",40),\u0275\u0275listener("componentResize",function($event){\u0275\u0275restoreView(_r12);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.updateComponentSize($event))})("selectionChange",function($event){\u0275\u0275restoreView(_r12);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.handleSelectionChange($event))}),\u0275\u0275elementEnd()}if(rf&2){let tmp_7_0,tmp_9_0,pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(tmp_7_0=ctx_r1.previewAgentOrAsset==null?null:ctx_r1.previewAgentOrAsset.publicId)!==null&&tmp_7_0!==void 0?tmp_7_0:null)("pageVersionId",pageVersion_r11.publicId)("selectedComponentId",(tmp_9_0=ctx_r1.selectedComponent==null?null:ctx_r1.selectedComponent.publicId)!==null&&tmp_9_0!==void 0?tmp_9_0:null)}}function BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_3_ix_component_grid_0_Template(rf,ctx){if(rf&1){let _r13=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-component-grid",42),\u0275\u0275listener("selectionChange",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext(5);return \u0275\u0275resetView(ctx_r1.handleSelectionChange($event))})("componentChanges",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext(5);return \u0275\u0275resetView(ctx_r1.handleComponentChanges($event))})("movingGridItem",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext(5);return \u0275\u0275resetView(ctx_r1.setDrawerIsOpen($event))}),\u0275\u0275elementEnd()}if(rf&2){let tmp_10_0,pageVersion_r11=\u0275\u0275nextContext(4),ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("pageVersionId",pageVersion_r11.publicId)("selectedComponentId",(tmp_10_0=ctx_r1.selectedComponent==null?null:ctx_r1.selectedComponent.publicId)!==null&&tmp_10_0!==void 0?tmp_10_0:null)("ngClass",ctx_r1.orientation)("orientation",ctx_r1.orientation)("mobile",!1)}}function BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_3_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_3_ix_component_grid_0_Template,1,7,"ix-component-grid",41),rf&2){let ctx_r1=\u0275\u0275nextContext(4);\u0275\u0275property("ixReloadOnValueChange",ctx_r1.orientation)}}function BuilderComponent_Conditional_0_Case_42_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",34),\u0275\u0275template(1,BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_1_Template,1,9,"ix-component-grid",36)(2,BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_2_Template,1,4,"ix-card-component-grid",37)(3,BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_3_Template,1,1,"ix-component-grid",38),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("ngClass",ctx_r1.gridClasses),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"?1:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="card"?2:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="report"?3:-1)}}function BuilderComponent_Conditional_0_Case_42_Conditional_1_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",43),\u0275\u0275element(1,"ix-simple-component-grid",45),\u0275\u0275elementEnd()),rf&2){let pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("mobile",ctx_r1.previewMode==="mobile")("pageVersionId",pageVersion_r11.publicId)("ngClass",ctx_r1.previewMode)}}function BuilderComponent_Conditional_0_Case_42_Conditional_1_Conditional_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",44),\u0275\u0275element(1,"ix-simple-card-component-grid",46),\u0275\u0275elementEnd()),rf&2){let pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("pageVersionId",pageVersion_r11.publicId)}}function BuilderComponent_Conditional_0_Case_42_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",35),\u0275\u0275template(1,BuilderComponent_Conditional_0_Case_42_Conditional_1_Conditional_1_Template,2,5,"div",43)(2,BuilderComponent_Conditional_0_Case_42_Conditional_1_Conditional_2_Template,2,3,"div",44),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("ngClass",ctx_r1.applicationType),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"?1:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="card"?2:-1)}}function BuilderComponent_Conditional_0_Case_42_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,BuilderComponent_Conditional_0_Case_42_Conditional_0_Template,4,4,"div",34)(1,BuilderComponent_Conditional_0_Case_42_Conditional_1_Template,3,3,"div",35),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275conditional(ctx_r1.mode==="edit"?0:1)}}function BuilderComponent_Conditional_0_ng_template_43_Conditional_0_ix_component_loader_2_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"ix-component-loader",50),rf&2){let component_r15=\u0275\u0275nextContext();\u0275\u0275property("component",component_r15)}}function BuilderComponent_Conditional_0_ng_template_43_Conditional_0_Template(rf,ctx){if(rf&1){let _r14=\u0275\u0275getCurrentView();\u0275\u0275elementContainerStart(0,47),\u0275\u0275elementStart(1,"div",48),\u0275\u0275listener("click",function(){let component_r15=\u0275\u0275restoreView(_r14),ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.handleSelectionChange(component_r15.publicId))}),\u0275\u0275template(2,BuilderComponent_Conditional_0_ng_template_43_Conditional_0_ix_component_loader_2_Template,1,1,"ix-component-loader",49),\u0275\u0275elementEnd(),\u0275\u0275elementContainerEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope),\u0275\u0275advance(),\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope),\u0275\u0275advance(),\u0275\u0275property("ixReloadOnValueChange",ctx)}}function BuilderComponent_Conditional_0_ng_template_43_Template(rf,ctx){if(rf&1&&(\u0275\u0275template(0,BuilderComponent_Conditional_0_ng_template_43_Conditional_0_Template,3,3,"ng-container",47),\u0275\u0275pipe(1,"async")),rf&2){let tmp_4_0,ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275conditional((tmp_4_0=\u0275\u0275pipeBind1(1,1,ctx_r1.component$))?0:-1,tmp_4_0)}}function BuilderComponent_Conditional_0_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",1)(1,"mat-toolbar",2)(2,"h1"),\u0275\u0275text(3," Simulator "),\u0275\u0275template(4,BuilderComponent_Conditional_0_Conditional_4_Template,2,1,"span"),\u0275\u0275elementEnd(),\u0275\u0275element(5,"span",3),\u0275\u0275elementStart(6,"button",4)(7,"mat-icon"),\u0275\u0275text(8,"settings"),\u0275\u0275elementEnd()()(),\u0275\u0275elementStart(9,"mat-toolbar",5)(10,"mat-form-field",6),\u0275\u0275element(11,"input",7),\u0275\u0275elementEnd(),\u0275\u0275elementStart(12,"ix-agent-or-asset-select",8),\u0275\u0275pipe(13,"async"),\u0275\u0275listener("optionSelected",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.selectPreviewAgentOrAsset($event))})("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementEnd(),\u0275\u0275element(14,"div",3),\u0275\u0275elementStart(15,"ix-period-controls",9),\u0275\u0275listener("periodSpecSelected",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.updateSelectedPeriodSpec($event))})("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementEnd(),\u0275\u0275template(16,BuilderComponent_Conditional_0_Conditional_16_Template,9,7,"ix-button-toggle-group",10)(17,BuilderComponent_Conditional_0_Conditional_17_Template,9,7,"ix-button-toggle-group",11)(18,BuilderComponent_Conditional_0_Conditional_18_Template,6,4,"button",12),\u0275\u0275elementStart(19,"ix-button-toggle-group",13),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(20,"ix-button-toggle",14),\u0275\u0275pipe(21,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275elementStart(22,"mat-icon"),\u0275\u0275text(23,"dashboard"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(24,"ix-button-toggle",15),\u0275\u0275pipe(25,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275element(26,"mat-icon",16),\u0275\u0275elementEnd(),\u0275\u0275elementStart(27,"ix-button-toggle",17),\u0275\u0275pipe(28,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275elementStart(29,"mat-icon"),\u0275\u0275text(30,"draft"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(31,"ix-button-toggle",18),\u0275\u0275pipe(32,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275elementStart(33,"mat-icon"),\u0275\u0275text(34,"fit_screen"),\u0275\u0275elementEnd()()()(),\u0275\u0275elementStart(35,"div",19)(36,"mat-drawer-container")(37,"mat-drawer",20),\u0275\u0275template(38,BuilderComponent_Conditional_0_Conditional_38_Template,3,2,"div",19)(39,BuilderComponent_Conditional_0_Conditional_39_Template,3,0,"button",21),\u0275\u0275elementEnd(),\u0275\u0275elementStart(40,"mat-drawer-content",22),\u0275\u0275template(41,BuilderComponent_Conditional_0_Case_41_Template,1,1,"ng-container",23)(42,BuilderComponent_Conditional_0_Case_42_Template,2,1)(43,BuilderComponent_Conditional_0_ng_template_43_Template,2,3,"ng-template",null,0,\u0275\u0275templateRefExtractor),\u0275\u0275elementEnd()()()()}if(rf&2){let tmp_20_0,ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(4),\u0275\u0275conditional(ctx_r1.componentName?4:-1),\u0275\u0275advance(8),\u0275\u0275property("selectedOption",ctx_r1.previewAgentOrAsset)("addNoneValue",!0)("options",\u0275\u0275pipeBind1(13,18,ctx_r1.previewAgentsOrAssets$)||\u0275\u0275pureFunction0(28,_c028)),\u0275\u0275advance(3),\u0275\u0275property("deviceTimeZone",null)("periodSpecs",ctx_r1.periodSpecs),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"?16:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="report"?17:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"||ctx_r1.applicationType==="card"?18:-1),\u0275\u0275advance(),\u0275\u0275property("value",ctx_r1.applicationType),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(21,20,"PAGE")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(25,22,"CARD")),\u0275\u0275advance(3),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(28,24,"REPORT")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(32,26,"STANDALONE")),\u0275\u0275advance(6),\u0275\u0275property("opened",ctx_r1.selectedComponent&&ctx_r1.drawerIsOpen&&ctx_r1.mode==="edit")("ngClass",\u0275\u0275pureFunction2(29,_c110,ctx_r1.drawerLockedClose,ctx_r1.selectedComponent&&!ctx_r1.drawerLockedClose)),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.selectedComponent&&!ctx_r1.drawerLockedClose?38:39),\u0275\u0275advance(3),\u0275\u0275conditional((tmp_20_0=ctx_r1.applicationType)==="standalone"?41:42)}}var BuilderComponent=(()=>{let _BuilderComponent=class _BuilderComponent{constructor(){this.activePeriodSpec=inject(ActivePeriodSpec),this.cdRef=inject(ChangeDetectorRef),this.destroy=inject(DestroyRef),this.facade=inject(BuilderFacade),this.sessionStorage=inject(SESSION_STORAGE),this.applicationType=this.sessionStorage.getItem("application-type")||"sheet",this.orientation=this.sessionStorage.getItem("orientation")||"portrait",this.drawerLockedClose=!1,this.gridScope="simulator",this.mode=this.sessionStorage.getItem("mode")||"edit",this.previewMode=this.sessionStorage.getItem("preview-mode")||"desktop",this.drawerIsOpen=!0,this.selectedComponentId$=new BehaviorSubject(null),this.busyUpdating$=this.facade.busyUpdating$,this.component$=this.facade.getComponent(this.pageId),this.pageVersion$=this.facade.draftVersionByPageId(this.pageId),this.previewAgentsOrAssets$=this.facade.previewAgentsOrAssets$,this.previewAgentOrAsset$=this.facade.previewAgentOrAsset(this.pageVersion$)}get gridClasses(){return this.previewMode==="mobile"?["mobile"]:[]}get pageId(){return"page"}ngOnInit(){this.pageVersion$.pipe(takeUntilDestroyed(this.destroy)).subscribe(pageVersion=>{this.pageVersion=pageVersion,this.pageVersionId=pageVersion.publicId}),this.facade.selectedPeriodSpec(of(this.pageId)).pipe(takeUntilDestroyed(this.destroy)).subscribe(periodSpec=>{this.periodSpecs=__spreadProps(__spreadValues({},this.periodSpecs),{selected:periodSpec}),this.activePeriodSpec.setPeriodSpec(periodSpec,this.gridScope),this.zoomOutIsVisible=this.getZoomOutIsVisible(),this.cdRef.markForCheck()}),this.activePeriodSpec.inScopeOf(this.gridScope).pipe(takeUntilDestroyed(this.destroy)).subscribe(periodSpec=>{this.periodSpecs=__spreadProps(__spreadValues({},this.periodSpecs),{active:periodSpec}),this.zoomOutIsVisible=this.getZoomOutIsVisible(),this.cdRef.markForCheck()}),this.selectedComponentId$.pipe(distinctUntilChanged(),switchMap(id=>combineLatest([this.facade.pageComponent(id),this.facade.pageComponentTemplate(id)])),takeUntilDestroyed(this.destroy)).subscribe(([component,template])=>{this.selectedComponent=component,this.selectedComponentTemplate=template,this.cdRef.markForCheck()}),this.previewAgentOrAsset$.pipe(takeUntilDestroyed(this.destroy)).subscribe(agentOrAsset=>{this.previewAgentOrAsset=agentOrAsset,this.cdRef.markForCheck()}),this.facade.getComponentName(this.pageId).pipe(takeUntilDestroyed(this.destroy)).subscribe(name=>{this.componentName=name}),this.facade.loadAgents(),this.facade.loadAssets(),this.facade.loadGroups(),this.facade.loadPageComponentTemplates(),this.facade.loadPage(this.pageId),this.facade.loadRoles(),this.destroy.onDestroy(()=>{this.facade.reset()})}handleSelectionChange(componentId){this.selectedComponentId$.next(componentId)}handleComponentChanges(components){let updates=components.reduce((acc,component)=>this.previewMode==="desktop"&&component.dimensions?.type==="sheet"?[...acc,pick_default(component,["publicId","dimensions.type","dimensions.left","dimensions.top","dimensions.rows","dimensions.cols"])]:this.previewMode==="mobile"&&component.dimensions?.type==="sheet"?[...acc,pick_default(component,["publicId","dimensions.type","dimensions.mobileCols","dimensions.mobileHeight","dimensions.mobileLeft","dimensions.mobileOrder"])]:component.dimensions?.type==="report"?[...acc,pick_default(component,["publicId","dimensions.type","dimensions.left","dimensions.top","dimensions.rows","dimensions.cols"])]:acc,[]);updates.length>0&&(updates.length===1?this.facade.updateComponent(updates[0].publicId,omit_default(updates[0],["publicId"])):this.facade.updateComponentList(updates))}updateComponent(component){this.facade.updateComponent(component.publicId,omit_default(component,["publicId"]))}updateComponentSize({componentId,height}){this.facade.updateComponent(componentId,{dimensions:{type:"card",height}})}selectPreviewAgentOrAsset(publicId){this.previewAgentOrAsset?.publicId!==publicId&&this.facade.updatePreviewAgentOrAsset(this.pageVersionId,publicId==="none"?null:publicId)}setApplicationType(newApplicationType){this.applicationType=newApplicationType,this.sessionStorage.setItem("application-type",newApplicationType),this.facade.reloadDimensions(this.pageId,newApplicationType);let mode=null,remember=!0;switch(newApplicationType){case"report":mode="edit",remember=!1;break;case"standalone":mode="preview",remember=!1;break}mode||(mode=this.sessionStorage.getItem("mode")||null),mode&&this.setMode(mode,remember)}setPreviewMode(newPreviewMode){this.previewMode=newPreviewMode,this.sessionStorage.setItem("preview-mode",newPreviewMode)}setOrientation(newOrientation){this.orientation=newOrientation,this.sessionStorage.setItem("orientation",newOrientation);let component=this.pageVersion.components?.[0];component?.dimensions?.type==="report"&&this.facade.updateComponent(component.publicId,{dimensions:__spreadProps(__spreadValues({},component.dimensions),{type:"report",left:0,top:3,cols:newOrientation==="landscape"?8:6,rows:6})})}getZoomOutIsVisible(){return this.periodSpecs?!isEqual_default(this.periodSpecs.active,this.periodSpecs.selected):!1}setMode(newMode,rememberMode=!0){this.mode=newMode,rememberMode&&this.sessionStorage.setItem("mode",newMode)}setDrawerIsOpen(gridItemIsMoving){this.drawerIsOpen=!gridItemIsMoving}toggleDrawerLock(){this.drawerLockedClose=!this.drawerLockedClose}toggleMode(){this.setMode(this.mode==="preview"?"edit":"preview")}updateSelectedPeriodSpec(periodSpec){this.facade.updateSelectedPeriodSpec(periodSpec)}};_BuilderComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_BuilderComponent)},_BuilderComponent.\u0275cmp=\u0275\u0275defineComponent({type:_BuilderComponent,selectors:[["ix-builder"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(ComponentGridComponent,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.componentGrid=_t.first)}},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:2,vars:3,consts:[["standaloneContent",""],["fxFlex","","fxLayout","column",1,"ix-surface"],["ixComponentGridFocus",""],["fxFlex",""],["mat-icon-button","","routerLink","/settings","matTooltip","Settings"],["ixComponentGridFocus","",1,"second"],["hidden",""],["matInput",""],["matButtonType","stroked","noneValue","none",3,"optionSelected","mousedown","selectedOption","addNoneValue","options"],[3,"periodSpecSelected","mousedown","deviceTimeZone","periodSpecs"],[1,"screen-toggle-group",3,"value"],[1,"orientation-toggle-group",3,"value"],["mat-stroked-button","","type","button",1,"mode-button"],[1,"application-type-toggle-group",3,"mousedown","value"],["value","sheet",3,"valueChange","matTooltip"],["value","card",3,"valueChange","matTooltip"],["svgIcon","card_outline"],["value","report",3,"valueChange","matTooltip"],["value","standalone",3,"valueChange","matTooltip"],["fxFlex","",1,"ix-content"],["mode","over","position","end",3,"opened","ngClass"],["mat-icon-button","","disableRipple","true"],["fxLayout","column"],[3,"ngTemplateOutlet"],[1,"screen-toggle-group",3,"mousedown","value"],["value","desktop",3,"valueChange","matTooltip"],["value","mobile",3,"valueChange","matTooltip"],[1,"orientation-toggle-group",3,"mousedown","value"],["value","portrait",3,"valueChange","matTooltip"],["value","landscape",3,"valueChange","matTooltip"],["mat-stroked-button","","type","button",1,"mode-button",3,"click","mousedown"],[3,"component","template"],["mat-icon-button","","disableRipple","true",3,"click"],[3,"update","component","template"],["ixComponentGridFocus","",1,"grid-container",3,"ngClass"],[1,"preview-grid-container",3,"ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage",3,"ixComponentGridScope","agentOrAssetId","mobile","pageVersionId","selectedComponentId","ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","edit","pagePageId","pagepage",3,"ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage","applicationType","report",1,"report-grid",3,"ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId","ngClass","orientation","mobile"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage",3,"selectionChange","componentChanges","movingGridItem","ixComponentGridScope","agentOrAssetId","mobile","pageVersionId","selectedComponentId","ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","edit","pagePageId","pagepage",3,"componentResize","selectionChange","ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage","class","report-grid","applicationType","report",3,"ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId","ngClass","orientation","mobile","selectionChange","componentChanges","movingGridItem",4,"ixReloadOnValueChange"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage","applicationType","report",1,"report-grid",3,"selectionChange","componentChanges","movingGridItem","ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId","ngClass","orientation","mobile"],[1,"ix-large-section","preview"],[1,"preview"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","view",3,"ixComponentGridScope","agentOrAssetId","mobile","pageVersionId","ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","view",3,"ixComponentGridScope","agentOrAssetId","pageVersionId"],[3,"ixComponentGridScope"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","",1,"standalone",3,"click","ixComponentGridScope"],[3,"component",4,"ixReloadOnValueChange"],[3,"component"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275template(0,BuilderComponent_Conditional_0_Template,45,32,"div",1),\u0275\u0275pipe(1,"async")),rf&2){let tmp_0_0;\u0275\u0275conditional((tmp_0_0=\u0275\u0275pipeBind1(1,1,ctx.pageVersion$))?0:-1,tmp_0_0)}},dependencies:[AgentOrAssetSelectModule,AgentOrAssetSelectComponent,AlertDialogModule,AsyncPipe,ButtonToggleModule,ButtonToggleComponent,ButtonToggleGroupComponent,ComponentLoaderModule,ComponentLoaderComponent,FlexModule,DefaultLayoutDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatIconButton,MatFormFieldModule,MatFormField,MatIconModule,MatIcon,MatInputModule,MatInput,MatSidenavModule,MatDrawer,MatDrawerContainer,MatDrawerContent,MatToolbarModule,MatToolbar,MatTooltipModule,MatTooltip,NgClass,NgTemplateOutlet,PagesModule,ComponentGridComponent,CardComponentGridComponent,SimpleComponentGridComponent,SimpleCardComponentGridComponent,ComponentPropertiesComponent,ComponentGridModeDirective,ComponentGridScopeDirective,ComponentContextCleanupDirective,BackendComponentBrokerDirective,LoggingDataBrokerDirective,ObjectStorageBrokerDirective,ResourceDataBrokerDirective,PeriodControlsComponent,ComponentGridFocusDirective,PeriodFieldsetModule,ReloadTriggerModule,ReloadOnValueChangeDirective,RouterModule,RouterLink,TranslateModule,TranslatePipe],styles:["[_nghost-%COMP%]{height:100%;width:100%}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{border-bottom:1px solid var(--card-border-color)}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{padding-right:16px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] ix-agent-or-asset-select[_ngcontent-%COMP%]{margin-right:8px;max-width:calc(100% - 340px)}[_nghost-%COMP%] .mat-toolbar.second[_ngcontent-%COMP%]{height:56px;border-bottom:1px solid var(--card-border-color)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer-backdrop{display:none}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%]{height:100%;width:300px;background-color:var(--body-bg)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-drawer-inner-container{height:100%;flex-direction:column}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-drawer-inner-container>.mat-toolbar{height:40px!important}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-drawer-inner-container>.mat-toolbar h1{color:var(--body-color);font-size:16px;font-weight:400}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer.locked-drawer[_ngcontent-%COMP%]{width:50px;height:40px;border-top-left-radius:25px;border-bottom-left-radius:25px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-mdc-icon-button[_ngcontent-%COMP%] .mat-mdc-button-focus-overlay{display:none}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%]{height:100%;overflow-x:auto;background-color:rgba(var(--body-color-rgb),.04)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] .grid[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{margin:0 auto;height:100%}@media (min-width: 960px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:970px}}@media (min-width: 1280px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:1200px}}@media (min-width: 1920px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:1600px}}@media screen and (min-width: 2251px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:2000px}}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid.desktop[_ngcontent-%COMP%]{min-width:970px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid.mobile[_ngcontent-%COMP%]{max-width:480px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%]{height:100%;width:100%;box-sizing:border-box;overflow-x:auto;display:flex;flex-direction:column;place-content:top}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container.card[_ngcontent-%COMP%]{place-content:center}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container.card[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{display:flex;place-items:center}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-component-grid[_ngcontent-%COMP%]{height:100%;box-sizing:border-box;margin:0 auto}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-component-grid.desktop[_ngcontent-%COMP%]{min-width:970px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-component-grid.mobile[_ngcontent-%COMP%]{max-width:480px;border-left:1px solid rgba(0,0,0,.08);border-right:1px solid rgba(0,0,0,.08)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-card-component-grid[_ngcontent-%COMP%]{width:300px;padding:0;margin:0 auto;box-sizing:border-box;background-color:var(--basic);border:1px solid var(--card-border-color);border-radius:8px;box-shadow:0 2px 4px var(--card-border-color)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .standalone[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .standalone[_ngcontent-%COMP%] ix-component-loader[_ngcontent-%COMP%]{overflow:auto}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] ix-page-properties[_ngcontent-%COMP%]{padding:20px 16px}[_nghost-%COMP%] .select-button[_ngcontent-%COMP%]{padding-left:8px;padding-right:2px;margin-right:8px}[_nghost-%COMP%] .select-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]:first-child{margin-right:6px}[_nghost-%COMP%] .screen-toggle-group[_ngcontent-%COMP%], [_nghost-%COMP%] .orientation-toggle-group[_ngcontent-%COMP%], [_nghost-%COMP%] .application-type-toggle-group[_ngcontent-%COMP%]{margin-left:12px}[_nghost-%COMP%] .mode-button[_ngcontent-%COMP%]{margin-left:12px}[_nghost-%COMP%] .mode-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]:first-child{margin-right:6px}.report-grid[_ngcontent-%COMP%]{margin:0 auto;height:842px!important;width:595px!important}.report-grid.landscape[_ngcontent-%COMP%]{height:595px!important;width:842px!important}"],changeDetection:0});let BuilderComponent2=_BuilderComponent;return BuilderComponent2})();var BuilderGuard=(()=>{let _BuilderGuard=class _BuilderGuard{constructor(store){this.store=store}canActivate(){return forkJoin([this.getMyUser(),this.getMyCompany()]).pipe(map(()=>!0),take(1))}getMyUser(){return this._loadIfAbsent(selectMyUser,loadMe2())}getMyCompany(){return this._loadIfAbsent(selectMyCompany,loadMe3())}_loadIfAbsent(selector3,action5){return this.store.select(selector3).pipe(tap(entity=>{entity||this.store.dispatch(action5)}),first(entity=>!!entity),map(()=>!0))}};_BuilderGuard.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_BuilderGuard)(\u0275\u0275inject(Store))},_BuilderGuard.\u0275prov=\u0275\u0275defineInjectable({token:_BuilderGuard,factory:_BuilderGuard.\u0275fac,providedIn:"root"});let BuilderGuard2=_BuilderGuard;return BuilderGuard2})();var LoginExpiredComponent=(()=>{let _LoginExpiredComponent=class _LoginExpiredComponent{constructor(document2,storage){this.document=document2,this.storage=storage}useMockData(){this.storage.forget("api-data-provider"),this.storage.forget("company"),this.reload()}reload(){this.document.location.href="/"}};_LoginExpiredComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoginExpiredComponent)(\u0275\u0275directiveInject(DOCUMENT),\u0275\u0275directiveInject(StorageService))},_LoginExpiredComponent.\u0275cmp=\u0275\u0275defineComponent({type:_LoginExpiredComponent,selectors:[["ix-login-expired"]],decls:18,vars:0,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"ix-status-card"],[1,"ix-status-card__icon"],["type","button","mat-button","","color","primary",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"div",2)(3,"mat-icon"),\u0275\u0275text(4,"error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-card-header")(6,"mat-card-title"),\u0275\u0275text(7,"Login expired"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(8,"mat-card-subtitle"),\u0275\u0275text(9," Please re-authenticate via the command line "),\u0275\u0275elementStart(10,"pre"),\u0275\u0275text(11,"npx cdk login"),\u0275\u0275elementEnd(),\u0275\u0275text(12," and reload or revert to using API mock data. "),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(13,"mat-card-actions")(14,"button",3),\u0275\u0275listener("click",function(){return ctx.useMockData()}),\u0275\u0275text(15,"Use mock data"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(16,"button",3),\u0275\u0275listener("click",function(){return ctx.reload()}),\u0275\u0275text(17,"Reload"),\u0275\u0275elementEnd()()()())},dependencies:[DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatButton,MatCard,MatCardActions,MatCardHeader,MatCardSubtitle,MatCardTitle,MatIcon],styles:["[_nghost-%COMP%]{width:100%;height:100%}"],changeDetection:0});let LoginExpiredComponent3=_LoginExpiredComponent;return LoginExpiredComponent3})();var LoginExpiredCanActivateGuard=(()=>{let _LoginExpiredCanActivateGuard=class _LoginExpiredCanActivateGuard{constructor(router,storage){this.router=router,this.storage=storage}canActivate(route){return this.isAuthenticated(route)}isAuthenticated(route){return of(this.storage.has("auth")).pipe(tap(authenticated=>{if(authenticated)if(route.queryParamMap.has("next")){let next=route.queryParams.next;this.router.navigateByUrl(next).then(success=>{success||this.router.navigate(["/"])})}else this.router.navigate(["/"])}),map(authenticated=>!authenticated))}};_LoginExpiredCanActivateGuard.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoginExpiredCanActivateGuard)(\u0275\u0275inject(Router),\u0275\u0275inject(StorageService))},_LoginExpiredCanActivateGuard.\u0275prov=\u0275\u0275defineInjectable({token:_LoginExpiredCanActivateGuard,factory:_LoginExpiredCanActivateGuard.\u0275fac,providedIn:"root"});let LoginExpiredCanActivateGuard2=_LoginExpiredCanActivateGuard;return LoginExpiredCanActivateGuard2})();var LoginExpiredModule=(()=>{let _LoginExpiredModule=class _LoginExpiredModule{};_LoginExpiredModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoginExpiredModule)},_LoginExpiredModule.\u0275mod=\u0275\u0275defineNgModule({type:_LoginExpiredModule}),_LoginExpiredModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule]});let LoginExpiredModule2=_LoginExpiredModule;return LoginExpiredModule2})();var ManifestInvalidComponent=(()=>{let _ManifestInvalidComponent=class _ManifestInvalidComponent{};_ManifestInvalidComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ManifestInvalidComponent)},_ManifestInvalidComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ManifestInvalidComponent,selectors:[["ix-manifest-invalid"]],decls:13,vars:0,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"ix-status-card"],[1,"ix-status-card__icon"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"div",2)(3,"mat-icon"),\u0275\u0275text(4,"error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-card-header")(6,"mat-card-title"),\u0275\u0275text(7,"Manifest invalid"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(8,"mat-card-subtitle"),\u0275\u0275text(9," Schema validation for the "),\u0275\u0275elementStart(10,"pre"),\u0275\u0275text(11,"manifest.json"),\u0275\u0275elementEnd(),\u0275\u0275text(12," file failed. "),\u0275\u0275elementEnd()()()())},dependencies:[DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatCard,MatCardHeader,MatCardSubtitle,MatCardTitle,MatIcon],styles:["[_nghost-%COMP%]{width:100%;height:100%}"],changeDetection:0});let ManifestInvalidComponent3=_ManifestInvalidComponent;return ManifestInvalidComponent3})();var TwoFactorAuthRequiredComponent=(()=>{let _TwoFactorAuthRequiredComponent=class _TwoFactorAuthRequiredComponent{constructor(document2,storage){this.document=document2,this.storage=storage}switchCompany(){this.storage.forget("api-data-provider"),this.storage.forget("company"),this.document.location.href="/settings/general"}useMockData(){this.storage.forget("api-data-provider"),this.storage.forget("company"),this.document.location.href="/"}};_TwoFactorAuthRequiredComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_TwoFactorAuthRequiredComponent)(\u0275\u0275directiveInject(DOCUMENT),\u0275\u0275directiveInject(StorageService))},_TwoFactorAuthRequiredComponent.\u0275cmp=\u0275\u0275defineComponent({type:_TwoFactorAuthRequiredComponent,selectors:[["ix-two-factor-auth-required"]],standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:13,vars:0,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"ix-status-card"],[1,"ix-status-card__icon"],["type","button","mat-button","","color","primary",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"div",2)(3,"mat-icon"),\u0275\u0275text(4,"error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-card-header")(6,"mat-card-title"),\u0275\u0275text(7,"Two-factor authentication is required"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(8,"mat-card-actions")(9,"button",3),\u0275\u0275listener("click",function(){return ctx.useMockData()}),\u0275\u0275text(10,"Use mock data"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(11,"button",3),\u0275\u0275listener("click",function(){return ctx.switchCompany()}),\u0275\u0275text(12,"Switch company"),\u0275\u0275elementEnd()()()())},dependencies:[FlexModule,DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatCardModule,MatCard,MatCardActions,MatCardHeader,MatCardTitle,MatIconModule,MatIcon],styles:["[_nghost-%COMP%]{width:100%;height:100%}"],changeDetection:0});let TwoFactorAuthRequiredComponent2=_TwoFactorAuthRequiredComponent;return TwoFactorAuthRequiredComponent2})();var routes=[{path:"",canActivate:[AppGuard2],children:[{path:"",component:BuilderComponent,canActivate:__use_api_mocks__?[BuilderGuard]:[AuthCompanyGuard,BuilderGuard]},{path:"settings",loadChildren:()=>import("./chunk-3GXK7ZJD.js").then(m=>m.SettingsModule)},...__use_api_mocks__?[]:[{path:"login",component:LoginExpiredComponent,canActivate:[LoginExpiredCanActivateGuard]},{path:"my-companies",redirectTo:"settings"},{path:"two-factor-auth-required",component:TwoFactorAuthRequiredComponent}]]},{path:"manifest-invalid",component:ManifestInvalidComponent},{path:"**",redirectTo:""}];var AppRoutingConfig={routerState:RouterState?.Minimal,serializer:CustomRouterStateSerializer};var AppRoutingModule=(()=>{let _AppRoutingModule=class _AppRoutingModule{};_AppRoutingModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppRoutingModule)},_AppRoutingModule.\u0275mod=\u0275\u0275defineNgModule({type:_AppRoutingModule}),_AppRoutingModule.\u0275inj=\u0275\u0275defineInjector({imports:[RouterModule.forRoot(routes,{onSameUrlNavigation:"reload",preloadingStrategy:CustomPreloadingStrategy}),StoreRouterConnectingModule.forRoot(AppRoutingConfig),RouterModule]});let AppRoutingModule2=_AppRoutingModule;return AppRoutingModule2})();var PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING",PerformAction=class{constructor(action5,timestamp){if(this.action=action5,this.timestamp=timestamp,this.type=PERFORM_ACTION,typeof action5.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},Refresh=class{constructor(){this.type=REFRESH}},Reset=class{constructor(timestamp){this.timestamp=timestamp,this.type=RESET}},Rollback=class{constructor(timestamp){this.timestamp=timestamp,this.type=ROLLBACK}},Commit=class{constructor(timestamp){this.timestamp=timestamp,this.type=COMMIT}},Sweep=class{constructor(){this.type=SWEEP}},ToggleAction=class{constructor(id){this.id=id,this.type=TOGGLE_ACTION}};var JumpToState=class{constructor(index){this.index=index,this.type=JUMP_TO_STATE}},JumpToAction=class{constructor(actionId){this.actionId=actionId,this.type=JUMP_TO_ACTION}},ImportState=class{constructor(nextLiftedState){this.nextLiftedState=nextLiftedState,this.type=IMPORT_STATE}},LockChanges=class{constructor(status){this.status=status,this.type=LOCK_CHANGES}},PauseRecording=class{constructor(status){this.status=status,this.type=PAUSE_RECORDING}};var STORE_DEVTOOLS_CONFIG=new InjectionToken("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new InjectionToken("@ngrx/store-devtools Initial Config");function noMonitor(){return null}var DEFAULT_NAME="NgRx Store DevTools";function createConfig(optionsInput){let DEFAULT_OPTIONS2={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},options=typeof optionsInput=="function"?optionsInput():optionsInput,logOnly=options.logOnly?{pause:!0,export:!0,test:!0}:!1,features2=options.features||logOnly||DEFAULT_OPTIONS2.features;features2.import===!0&&(features2.import="custom");let config3=Object.assign({},DEFAULT_OPTIONS2,{features:features2},options);if(config3.maxAge&&config3.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${config3.maxAge}`);return config3}function difference(first2,second){return first2.filter(item=>second.indexOf(item)<0)}function unliftState(liftedState){let{computedStates,currentStateIndex}=liftedState;if(currentStateIndex>=computedStates.length){let{state:state2}=computedStates[computedStates.length-1];return state2}let{state}=computedStates[currentStateIndex];return state}function liftAction(action5){return new PerformAction(action5,+Date.now())}function sanitizeActions(actionSanitizer,actions){return Object.keys(actions).reduce((sanitizedActions,actionIdx)=>{let idx=Number(actionIdx);return sanitizedActions[idx]=sanitizeAction(actionSanitizer,actions[idx],idx),sanitizedActions},{})}function sanitizeAction(actionSanitizer,action5,actionIdx){return __spreadProps(__spreadValues({},action5),{action:actionSanitizer(action5.action,actionIdx)})}function sanitizeStates(stateSanitizer,states){return states.map((computedState,idx)=>({state:sanitizeState(stateSanitizer,computedState.state,idx),error:computedState.error}))}function sanitizeState(stateSanitizer,state,stateIdx){return stateSanitizer(state,stateIdx)}function shouldFilterActions(config3){return config3.predicate||config3.actionsSafelist||config3.actionsBlocklist}function filterLiftedState(liftedState,predicate,safelist,blocklist){let filteredStagedActionIds=[],filteredActionsById={},filteredComputedStates=[];return liftedState.stagedActionIds.forEach((id,idx)=>{let liftedAction=liftedState.actionsById[id];liftedAction&&(idx&&isActionFiltered(liftedState.computedStates[idx],liftedAction,predicate,safelist,blocklist)||(filteredActionsById[id]=liftedAction,filteredStagedActionIds.push(id),filteredComputedStates.push(liftedState.computedStates[idx])))}),__spreadProps(__spreadValues({},liftedState),{stagedActionIds:filteredStagedActionIds,actionsById:filteredActionsById,computedStates:filteredComputedStates})}function isActionFiltered(state,action5,predicate,safelist,blockedlist){let predicateMatch=predicate&&!predicate(state,action5.action),safelistMatch=safelist&&!action5.action.type.match(safelist.map(s2=>escapeRegExp(s2)).join("|")),blocklistMatch=blockedlist&&action5.action.type.match(blockedlist.map(s2=>escapeRegExp(s2)).join("|"));return predicateMatch||safelistMatch||blocklistMatch}function escapeRegExp(s2){return s2.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function injectZoneConfig(connectInZone){return{ngZone:connectInZone?inject(NgZone):null,connectInZone}}var DevtoolsDispatcher=(()=>{let _DevtoolsDispatcher=class _DevtoolsDispatcher extends ActionsSubject{};_DevtoolsDispatcher.\u0275fac=(()=>{let \u0275DevtoolsDispatcher_BaseFactory;return function(__ngFactoryType__){return(\u0275DevtoolsDispatcher_BaseFactory||(\u0275DevtoolsDispatcher_BaseFactory=\u0275\u0275getInheritedFactory(_DevtoolsDispatcher)))(__ngFactoryType__||_DevtoolsDispatcher)}})(),_DevtoolsDispatcher.\u0275prov=\u0275\u0275defineInjectable({token:_DevtoolsDispatcher,factory:_DevtoolsDispatcher.\u0275fac});let DevtoolsDispatcher2=_DevtoolsDispatcher;return DevtoolsDispatcher2})(),ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new InjectionToken("@ngrx/store-devtools Redux Devtools Extension"),DevtoolsExtension=(()=>{let _DevtoolsExtension=class _DevtoolsExtension{constructor(devtoolsExtension,config3,dispatcher){this.config=config3,this.dispatcher=dispatcher,this.zoneConfig=injectZoneConfig(this.config.connectInZone),this.devtoolsExtension=devtoolsExtension,this.createActionStreams()}notify(action5,state){if(this.devtoolsExtension)if(action5.type===PERFORM_ACTION){if(state.isLocked||state.isPaused)return;let currentState=unliftState(state);if(shouldFilterActions(this.config)&&isActionFiltered(currentState,action5,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let sanitizedState=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,currentState,state.currentStateIndex):currentState,sanitizedAction=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,action5,state.nextActionId):action5;this.sendToReduxDevtools(()=>this.extensionConnection.send(sanitizedAction,sanitizedState))}else{let sanitizedLiftedState=__spreadProps(__spreadValues({},state),{stagedActionIds:state.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,state.actionsById):state.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,state.computedStates):state.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,sanitizedLiftedState,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new Observable(subscriber=>{let connection=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=connection,connection.init(),connection.subscribe(change=>subscriber.next(change)),connection.unsubscribe}):EMPTY}createActionStreams(){let changes$=this.createChangesObservable().pipe(share()),start$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.START)),stop$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.STOP)),liftedActions$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.DISPATCH),map(change=>this.unwrapAction(change.payload)),concatMap(action5=>action5.type===IMPORT_STATE?this.dispatcher.pipe(filter(action6=>action6.type===UPDATE),timeout(1e3),debounceTime(1e3),map(()=>action5),catchError(()=>of(action5)),take(1)):of(action5))),actionsUntilStop$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.ACTION),map(change=>this.unwrapAction(change.payload))).pipe(takeUntil(stop$)),liftedUntilStop$=liftedActions$.pipe(takeUntil(stop$));this.start$=start$.pipe(takeUntil(stop$)),this.actions$=this.start$.pipe(switchMap(()=>actionsUntilStop$)),this.liftedActions$=this.start$.pipe(switchMap(()=>liftedUntilStop$))}unwrapAction(action5){return typeof action5=="string"?(0,eval)(`(${action5})`):action5}getExtensionConfig(config3){let extensionOptions={name:config3.name,features:config3.features,serialize:config3.serialize,autoPause:config3.autoPause??!1,trace:config3.trace??!1,traceLimit:config3.traceLimit??75};return config3.maxAge!==!1&&(extensionOptions.maxAge=config3.maxAge),extensionOptions}sendToReduxDevtools(send){try{send()}catch(err){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",err)}}};_DevtoolsExtension.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_DevtoolsExtension)(\u0275\u0275inject(REDUX_DEVTOOLS_EXTENSION),\u0275\u0275inject(STORE_DEVTOOLS_CONFIG),\u0275\u0275inject(DevtoolsDispatcher))},_DevtoolsExtension.\u0275prov=\u0275\u0275defineInjectable({token:_DevtoolsExtension,factory:_DevtoolsExtension.\u0275fac});let DevtoolsExtension2=_DevtoolsExtension;return DevtoolsExtension2})(),INIT_ACTION={type:INIT},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(reducer46,action5,state,error2,errorHandler){if(error2)return{state,error:"Interrupted by an error up the chain"};let nextState=state,nextError;try{nextState=reducer46(state,action5)}catch(err){nextError=err.toString(),errorHandler.handleError(err)}return{state:nextState,error:nextError}}function recomputeStates(computedStates,minInvalidatedStateIndex,reducer46,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused){if(minInvalidatedStateIndex>=computedStates.length&&computedStates.length===stagedActionIds.length)return computedStates;let nextComputedStates=computedStates.slice(0,minInvalidatedStateIndex),lastIncludedActionId=stagedActionIds.length-(isPaused?1:0);for(let i=minInvalidatedStateIndex;i<lastIncludedActionId;i++){let actionId=stagedActionIds[i],action5=actionsById[actionId].action,previousEntry=nextComputedStates[i-1],previousState=previousEntry?previousEntry.state:committedState,previousError=previousEntry?previousEntry.error:void 0,entry=skippedActionIds.indexOf(actionId)>-1?previousEntry:computeNextEntry(reducer46,action5,previousState,previousError,errorHandler);nextComputedStates.push(entry)}return isPaused&&nextComputedStates.push(computedStates[computedStates.length-1]),nextComputedStates}function liftInitialState(initialCommittedState,monitorReducer){return{monitorState:monitorReducer(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:initialCommittedState,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(initialCommittedState,initialLiftedState,errorHandler,monitorReducer,options={}){return reducer46=>(liftedState,liftedAction)=>{let{monitorState,actionsById,nextActionId,stagedActionIds,skippedActionIds,committedState,currentStateIndex,computedStates,isLocked,isPaused}=liftedState||initialLiftedState;liftedState||(actionsById=Object.create(actionsById));function commitExcessActions(n2){let excess=n2,idsToDelete=stagedActionIds.slice(1,excess+1);for(let i=0;i<idsToDelete.length;i++)if(computedStates[i+1].error){excess=i,idsToDelete=stagedActionIds.slice(1,excess+1);break}else delete actionsById[idsToDelete[i]];skippedActionIds=skippedActionIds.filter(id=>idsToDelete.indexOf(id)===-1),stagedActionIds=[0,...stagedActionIds.slice(excess+1)],committedState=computedStates[excess].state,computedStates=computedStates.slice(excess),currentStateIndex=currentStateIndex>excess?currentStateIndex-excess:0}function commitChanges(){actionsById={0:liftAction(INIT_ACTION)},nextActionId=1,stagedActionIds=[0],skippedActionIds=[],committedState=computedStates[currentStateIndex].state,currentStateIndex=0,computedStates=[]}let minInvalidatedStateIndex=0;switch(liftedAction.type){case LOCK_CHANGES:{isLocked=liftedAction.status,minInvalidatedStateIndex=1/0;break}case PAUSE_RECORDING:{isPaused=liftedAction.status,isPaused?(stagedActionIds=[...stagedActionIds,nextActionId],actionsById[nextActionId]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),nextActionId++,minInvalidatedStateIndex=stagedActionIds.length-1,computedStates=computedStates.concat(computedStates[computedStates.length-1]),currentStateIndex===stagedActionIds.length-2&¤tStateIndex++,minInvalidatedStateIndex=1/0):commitChanges();break}case RESET:{actionsById={0:liftAction(INIT_ACTION)},nextActionId=1,stagedActionIds=[0],skippedActionIds=[],committedState=initialCommittedState,currentStateIndex=0,computedStates=[];break}case COMMIT:{commitChanges();break}case ROLLBACK:{actionsById={0:liftAction(INIT_ACTION)},nextActionId=1,stagedActionIds=[0],skippedActionIds=[],currentStateIndex=0,computedStates=[];break}case TOGGLE_ACTION:{let{id:actionId}=liftedAction;skippedActionIds.indexOf(actionId)===-1?skippedActionIds=[actionId,...skippedActionIds]:skippedActionIds=skippedActionIds.filter(id=>id!==actionId),minInvalidatedStateIndex=stagedActionIds.indexOf(actionId);break}case SET_ACTIONS_ACTIVE:{let{start:start3,end:end2,active}=liftedAction,actionIds=[];for(let i=start3;i<end2;i++)actionIds.push(i);active?skippedActionIds=difference(skippedActionIds,actionIds):skippedActionIds=[...skippedActionIds,...actionIds],minInvalidatedStateIndex=stagedActionIds.indexOf(start3);break}case JUMP_TO_STATE:{currentStateIndex=liftedAction.index,minInvalidatedStateIndex=1/0;break}case JUMP_TO_ACTION:{let index=stagedActionIds.indexOf(liftedAction.actionId);index!==-1&&(currentStateIndex=index),minInvalidatedStateIndex=1/0;break}case SWEEP:{stagedActionIds=difference(stagedActionIds,skippedActionIds),skippedActionIds=[],currentStateIndex=Math.min(currentStateIndex,stagedActionIds.length-1);break}case PERFORM_ACTION:{if(isLocked)return liftedState||initialLiftedState;if(isPaused||liftedState&&isActionFiltered(liftedState.computedStates[currentStateIndex],liftedAction,options.predicate,options.actionsSafelist,options.actionsBlocklist)){let lastState=computedStates[computedStates.length-1];computedStates=[...computedStates.slice(0,-1),computeNextEntry(reducer46,liftedAction.action,lastState.state,lastState.error,errorHandler)],minInvalidatedStateIndex=1/0;break}options.maxAge&&stagedActionIds.length===options.maxAge&&commitExcessActions(1),currentStateIndex===stagedActionIds.length-1&¤tStateIndex++;let actionId=nextActionId++;actionsById[actionId]=liftedAction,stagedActionIds=[...stagedActionIds,actionId],minInvalidatedStateIndex=stagedActionIds.length-1;break}case IMPORT_STATE:{({monitorState,actionsById,nextActionId,stagedActionIds,skippedActionIds,committedState,currentStateIndex,computedStates,isLocked,isPaused}=liftedAction.nextLiftedState);break}case INIT:{minInvalidatedStateIndex=0,options.maxAge&&stagedActionIds.length>options.maxAge&&(computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer46,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused),commitExcessActions(stagedActionIds.length-options.maxAge),minInvalidatedStateIndex=1/0);break}case UPDATE:{if(computedStates.filter(state=>state.error).length>0)minInvalidatedStateIndex=0,options.maxAge&&stagedActionIds.length>options.maxAge&&(computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer46,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused),commitExcessActions(stagedActionIds.length-options.maxAge),minInvalidatedStateIndex=1/0);else{if(!isPaused&&!isLocked){currentStateIndex===stagedActionIds.length-1&¤tStateIndex++;let actionId=nextActionId++;actionsById[actionId]=new PerformAction(liftedAction,+Date.now()),stagedActionIds=[...stagedActionIds,actionId],minInvalidatedStateIndex=stagedActionIds.length-1,computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer46,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused)}computedStates=computedStates.map(cmp=>__spreadProps(__spreadValues({},cmp),{state:reducer46(cmp.state,RECOMPUTE_ACTION)})),currentStateIndex=stagedActionIds.length-1,options.maxAge&&stagedActionIds.length>options.maxAge&&commitExcessActions(stagedActionIds.length-options.maxAge),minInvalidatedStateIndex=1/0}break}default:{minInvalidatedStateIndex=1/0;break}}return computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer46,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused),monitorState=monitorReducer(monitorState,liftedAction),{monitorState,actionsById,nextActionId,stagedActionIds,skippedActionIds,committedState,currentStateIndex,computedStates,isLocked,isPaused}}}var StoreDevtools=(()=>{let _StoreDevtools=class _StoreDevtools{constructor(dispatcher,actions$,reducers$,extension,scannedActions,errorHandler,initialState52,config3){let liftedInitialState=liftInitialState(initialState52,config3.monitor),liftReducer=liftReducerWith(initialState52,liftedInitialState,errorHandler,config3.monitor,config3),liftedAction$=merge(merge(actions$.asObservable().pipe(skip(1)),extension.actions$).pipe(map(liftAction)),dispatcher,extension.liftedActions$).pipe(observeOn(queueScheduler)),liftedReducer$=reducers$.pipe(map(liftReducer)),zoneConfig=injectZoneConfig(config3.connectInZone),liftedStateSubject=new ReplaySubject(1);this.liftedStateSubscription=liftedAction$.pipe(withLatestFrom(liftedReducer$),emitInZone(zoneConfig),scan(({state:liftedState},[action5,reducer46])=>{let reducedLiftedState=reducer46(liftedState,action5);return action5.type!==PERFORM_ACTION&&shouldFilterActions(config3)&&(reducedLiftedState=filterLiftedState(reducedLiftedState,config3.predicate,config3.actionsSafelist,config3.actionsBlocklist)),extension.notify(action5,reducedLiftedState),{state:reducedLiftedState,action:action5}},{state:liftedInitialState,action:null})).subscribe(({state,action:action5})=>{if(liftedStateSubject.next(state),action5.type===PERFORM_ACTION){let unliftedAction=action5.action;scannedActions.next(unliftedAction)}}),this.extensionStartSubscription=extension.start$.pipe(emitInZone(zoneConfig)).subscribe(()=>{this.refresh()});let liftedState$=liftedStateSubject.asObservable(),state$=liftedState$.pipe(map(unliftState));Object.defineProperty(state$,"state",{value:toSignal(state$,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=dispatcher,this.liftedState=liftedState$,this.state=state$}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(action5){this.dispatcher.next(action5)}next(action5){this.dispatcher.next(action5)}error(error2){}complete(){}performAction(action5){this.dispatch(new PerformAction(action5,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(id){this.dispatch(new ToggleAction(id))}jumpToAction(actionId){this.dispatch(new JumpToAction(actionId))}jumpToState(index){this.dispatch(new JumpToState(index))}importState(nextLiftedState){this.dispatch(new ImportState(nextLiftedState))}lockChanges(status){this.dispatch(new LockChanges(status))}pauseRecording(status){this.dispatch(new PauseRecording(status))}};_StoreDevtools.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_StoreDevtools)(\u0275\u0275inject(DevtoolsDispatcher),\u0275\u0275inject(ActionsSubject),\u0275\u0275inject(ReducerObservable),\u0275\u0275inject(DevtoolsExtension),\u0275\u0275inject(ScannedActionsSubject),\u0275\u0275inject(ErrorHandler),\u0275\u0275inject(INITIAL_STATE),\u0275\u0275inject(STORE_DEVTOOLS_CONFIG))},_StoreDevtools.\u0275prov=\u0275\u0275defineInjectable({token:_StoreDevtools,factory:_StoreDevtools.\u0275fac});let StoreDevtools2=_StoreDevtools;return StoreDevtools2})();function emitInZone({ngZone,connectInZone}){return source=>connectInZone?new Observable(subscriber=>source.subscribe({next:value=>ngZone.run(()=>subscriber.next(value)),error:error2=>ngZone.run(()=>subscriber.error(error2)),complete:()=>ngZone.run(()=>subscriber.complete())})):source}var IS_EXTENSION_OR_MONITOR_PRESENT=new InjectionToken("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(extension,config3){return!!extension||config3.monitor!==noMonitor}function createReduxDevtoolsExtension(){let extensionKey="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[extensionKey]<"u"?window[extensionKey]:null}function provideStoreDevtools(options={}){return makeEnvironmentProviders([DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:options},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:StateObservable,deps:[StoreDevtools],useFactory:createStateObservable},{provide:ReducerManagerDispatcher,useExisting:DevtoolsDispatcher}])}function createStateObservable(devtools){return devtools.state}var StoreDevtoolsModule=(()=>{let _StoreDevtoolsModule=class _StoreDevtoolsModule{static instrument(options={}){return{ngModule:_StoreDevtoolsModule,providers:[provideStoreDevtools(options)]}}};_StoreDevtoolsModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_StoreDevtoolsModule)},_StoreDevtoolsModule.\u0275mod=\u0275\u0275defineNgModule({type:_StoreDevtoolsModule}),_StoreDevtoolsModule.\u0275inj=\u0275\u0275defineInjector({});let StoreDevtoolsModule2=_StoreDevtoolsModule;return StoreDevtoolsModule2})();var SDK_VERSION2="8.41.0";var GLOBAL_OBJ=globalThis;function getGlobalSingleton(name,creator,obj){let gbl=obj||GLOBAL_OBJ,__SENTRY__=gbl.__SENTRY__=gbl.__SENTRY__||{},versionedCarrier=__SENTRY__[SDK_VERSION2]=__SENTRY__[SDK_VERSION2]||{};return versionedCarrier[name]||(versionedCarrier[name]=creator())}var DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var PREFIX="Sentry Logger ",CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],originalConsoleMethods={};function consoleSandbox(callback){if(!("console"in GLOBAL_OBJ))return callback();let console2=GLOBAL_OBJ.console,wrappedFuncs={},wrappedLevels=Object.keys(originalConsoleMethods);wrappedLevels.forEach(level=>{let originalConsoleMethod=originalConsoleMethods[level];wrappedFuncs[level]=console2[level],console2[level]=originalConsoleMethod});try{return callback()}finally{wrappedLevels.forEach(level=>{console2[level]=wrappedFuncs[level]})}}function makeLogger(){let enabled2=!1,logger4={enable:()=>{enabled2=!0},disable:()=>{enabled2=!1},isEnabled:()=>enabled2};return DEBUG_BUILD?CONSOLE_LEVELS.forEach(name=>{logger4[name]=(...args)=>{enabled2&&consoleSandbox(()=>{GLOBAL_OBJ.console[name](`${PREFIX}[${name}]:`,...args)})}}):CONSOLE_LEVELS.forEach(name=>{logger4[name]=()=>{}}),logger4}var logger3=getGlobalSingleton("logger",makeLogger);function getMainCarrier(){return getSentryCarrier(GLOBAL_OBJ),GLOBAL_OBJ}function getSentryCarrier(carrier){let __SENTRY__=carrier.__SENTRY__=carrier.__SENTRY__||{};return __SENTRY__.version=__SENTRY__.version||SDK_VERSION2,__SENTRY__[SDK_VERSION2]=__SENTRY__[SDK_VERSION2]||{}}var objectToString=Object.prototype.toString;function isBuiltin(wat,className){return objectToString.call(wat)===`[object ${className}]`}function isPlainObject(wat){return isBuiltin(wat,"Object")}function isThenable(wat){return!!(wat&&wat.then&&typeof wat.then=="function")}function addNonEnumerableProperty(obj,name,value){try{Object.defineProperty(obj,name,{value,writable:!0,configurable:!0})}catch{DEBUG_BUILD&&logger3.log(`Failed to add non-enumerable property "${name}" to object`,obj)}}var ONE_SECOND_IN_MS=1e3;function dateTimestampInSeconds(){return Date.now()/ONE_SECOND_IN_MS}function createUnixTimestampInSecondsFunc(){let{performance:performance2}=GLOBAL_OBJ;if(!performance2||!performance2.now)return dateTimestampInSeconds;let approxStartingTimeOrigin=Date.now()-performance2.now(),timeOrigin=performance2.timeOrigin==null?approxStartingTimeOrigin:performance2.timeOrigin;return()=>(timeOrigin+performance2.now())/ONE_SECOND_IN_MS}var timestampInSeconds=createUnixTimestampInSecondsFunc(),_browserPerformanceTimeOriginMode,browserPerformanceTimeOrigin=(()=>{let{performance:performance2}=GLOBAL_OBJ;if(!performance2||!performance2.now){_browserPerformanceTimeOriginMode="none";return}let threshold=3600*1e3,performanceNow=performance2.now(),dateNow=Date.now(),timeOriginDelta=performance2.timeOrigin?Math.abs(performance2.timeOrigin+performanceNow-dateNow):threshold,timeOriginIsReliable=timeOriginDelta<threshold,navigationStart=performance2.timing&&performance2.timing.navigationStart,navigationStartDelta=typeof navigationStart=="number"?Math.abs(navigationStart+performanceNow-dateNow):threshold,navigationStartIsReliable=navigationStartDelta<threshold;return timeOriginIsReliable||navigationStartIsReliable?timeOriginDelta<=navigationStartDelta?(_browserPerformanceTimeOriginMode="timeOrigin",performance2.timeOrigin):(_browserPerformanceTimeOriginMode="navigationStart",navigationStart):(_browserPerformanceTimeOriginMode="dateNow",dateNow)})();function uuid4(){let gbl=GLOBAL_OBJ,crypto2=gbl.crypto||gbl.msCrypto,getRandomByte=()=>Math.random()*16;try{if(crypto2&&crypto2.randomUUID)return crypto2.randomUUID().replace(/-/g,"");crypto2&&crypto2.getRandomValues&&(getRandomByte=()=>{let typedArray=new Uint8Array(1);return crypto2.getRandomValues(typedArray),typedArray[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,c=>(c^(getRandomByte()&15)>>c/4).toString(16))}function updateSession(session,context5={}){if(context5.user&&(!session.ipAddress&&context5.user.ip_address&&(session.ipAddress=context5.user.ip_address),!session.did&&!context5.did&&(session.did=context5.user.id||context5.user.email||context5.user.username)),session.timestamp=context5.timestamp||timestampInSeconds(),context5.abnormal_mechanism&&(session.abnormal_mechanism=context5.abnormal_mechanism),context5.ignoreDuration&&(session.ignoreDuration=context5.ignoreDuration),context5.sid&&(session.sid=context5.sid.length===32?context5.sid:uuid4()),context5.init!==void 0&&(session.init=context5.init),!session.did&&context5.did&&(session.did=`${context5.did}`),typeof context5.started=="number"&&(session.started=context5.started),session.ignoreDuration)session.duration=void 0;else if(typeof context5.duration=="number")session.duration=context5.duration;else{let duration2=session.timestamp-session.started;session.duration=duration2>=0?duration2:0}context5.release&&(session.release=context5.release),context5.environment&&(session.environment=context5.environment),!session.ipAddress&&context5.ipAddress&&(session.ipAddress=context5.ipAddress),!session.userAgent&&context5.userAgent&&(session.userAgent=context5.userAgent),typeof context5.errors=="number"&&(session.errors=context5.errors),context5.status&&(session.status=context5.status)}function generatePropagationContext(){return{traceId:uuid4(),spanId:uuid4().substring(16)}}function merge2(initialObj,mergeObj,levels=2){if(!mergeObj||typeof mergeObj!="object"||levels<=0)return mergeObj;if(initialObj&&mergeObj&&Object.keys(mergeObj).length===0)return initialObj;let output=__spreadValues({},initialObj);for(let key in mergeObj)Object.prototype.hasOwnProperty.call(mergeObj,key)&&(output[key]=merge2(output[key],mergeObj[key],levels-1));return output}var SCOPE_SPAN_FIELD="_sentrySpan";function _setSpanForScope(scope,span){span?addNonEnumerableProperty(scope,SCOPE_SPAN_FIELD,span):delete scope[SCOPE_SPAN_FIELD]}function _getSpanForScope(scope){return scope[SCOPE_SPAN_FIELD]}var DEFAULT_MAX_BREADCRUMBS=100,ScopeClass=class _ScopeClass{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=generatePropagationContext()}clone(){let newScope=new _ScopeClass;return newScope._breadcrumbs=[...this._breadcrumbs],newScope._tags=__spreadValues({},this._tags),newScope._extra=__spreadValues({},this._extra),newScope._contexts=__spreadValues({},this._contexts),newScope._user=this._user,newScope._level=this._level,newScope._session=this._session,newScope._transactionName=this._transactionName,newScope._fingerprint=this._fingerprint,newScope._eventProcessors=[...this._eventProcessors],newScope._requestSession=this._requestSession,newScope._attachments=[...this._attachments],newScope._sdkProcessingMetadata=__spreadValues({},this._sdkProcessingMetadata),newScope._propagationContext=__spreadValues({},this._propagationContext),newScope._client=this._client,newScope._lastEventId=this._lastEventId,_setSpanForScope(newScope,_getSpanForScope(this)),newScope}setClient(client){this._client=client}setLastEventId(lastEventId2){this._lastEventId=lastEventId2}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(callback){this._scopeListeners.push(callback)}addEventProcessor(callback){return this._eventProcessors.push(callback),this}setUser(user){return this._user=user||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&updateSession(this._session,{user}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(requestSession){return this._requestSession=requestSession,this}setTags(tags2){return this._tags=__spreadValues(__spreadValues({},this._tags),tags2),this._notifyScopeListeners(),this}setTag(key,value){return this._tags=__spreadProps(__spreadValues({},this._tags),{[key]:value}),this._notifyScopeListeners(),this}setExtras(extras){return this._extra=__spreadValues(__spreadValues({},this._extra),extras),this._notifyScopeListeners(),this}setExtra(key,extra){return this._extra=__spreadProps(__spreadValues({},this._extra),{[key]:extra}),this._notifyScopeListeners(),this}setFingerprint(fingerprint){return this._fingerprint=fingerprint,this._notifyScopeListeners(),this}setLevel(level){return this._level=level,this._notifyScopeListeners(),this}setTransactionName(name){return this._transactionName=name,this._notifyScopeListeners(),this}setContext(key,context5){return context5===null?delete this._contexts[key]:this._contexts[key]=context5,this._notifyScopeListeners(),this}setSession(session){return session?this._session=session:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(captureContext){if(!captureContext)return this;let scopeToMerge=typeof captureContext=="function"?captureContext(this):captureContext,[scopeInstance,requestSession]=scopeToMerge instanceof Scope?[scopeToMerge.getScopeData(),scopeToMerge.getRequestSession()]:isPlainObject(scopeToMerge)?[captureContext,captureContext.requestSession]:[],{tags:tags2,extra,user,contexts,level,fingerprint=[],propagationContext}=scopeInstance||{};return this._tags=__spreadValues(__spreadValues({},this._tags),tags2),this._extra=__spreadValues(__spreadValues({},this._extra),extra),this._contexts=__spreadValues(__spreadValues({},this._contexts),contexts),user&&Object.keys(user).length&&(this._user=user),level&&(this._level=level),fingerprint.length&&(this._fingerprint=fingerprint),propagationContext&&(this._propagationContext=propagationContext),requestSession&&(this._requestSession=requestSession),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,_setSpanForScope(this,void 0),this._attachments=[],this._propagationContext=generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(breadcrumb,maxBreadcrumbs){let maxCrumbs=typeof maxBreadcrumbs=="number"?maxBreadcrumbs:DEFAULT_MAX_BREADCRUMBS;if(maxCrumbs<=0)return this;let mergedBreadcrumb=__spreadValues({timestamp:dateTimestampInSeconds()},breadcrumb),breadcrumbs=this._breadcrumbs;return breadcrumbs.push(mergedBreadcrumb),this._breadcrumbs=breadcrumbs.length>maxCrumbs?breadcrumbs.slice(-maxCrumbs):breadcrumbs,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(attachment){return this._attachments.push(attachment),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_getSpanForScope(this)}}setSDKProcessingMetadata(newData){return this._sdkProcessingMetadata=merge2(this._sdkProcessingMetadata,newData,2),this}setPropagationContext(context5){return this._propagationContext=context5,this}getPropagationContext(){return this._propagationContext}captureException(exception,hint){let eventId=hint&&hint.event_id?hint.event_id:uuid4();if(!this._client)return logger3.warn("No client configured on scope - will not capture exception!"),eventId;let syntheticException=new Error("Sentry syntheticException");return this._client.captureException(exception,__spreadProps(__spreadValues({originalException:exception,syntheticException},hint),{event_id:eventId}),this),eventId}captureMessage(message,level,hint){let eventId=hint&&hint.event_id?hint.event_id:uuid4();if(!this._client)return logger3.warn("No client configured on scope - will not capture message!"),eventId;let syntheticException=new Error(message);return this._client.captureMessage(message,level,__spreadProps(__spreadValues({originalException:message,syntheticException},hint),{event_id:eventId}),this),eventId}captureEvent(event2,hint){let eventId=hint&&hint.event_id?hint.event_id:uuid4();return this._client?(this._client.captureEvent(event2,__spreadProps(__spreadValues({},hint),{event_id:eventId}),this),eventId):(logger3.warn("No client configured on scope - will not capture event!"),eventId)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(callback=>{callback(this)}),this._notifyingListeners=!1)}},Scope=ScopeClass;function getDefaultCurrentScope(){return getGlobalSingleton("defaultCurrentScope",()=>new Scope)}function getDefaultIsolationScope(){return getGlobalSingleton("defaultIsolationScope",()=>new Scope)}var AsyncContextStack=class{constructor(scope,isolationScope){let assignedScope;scope?assignedScope=scope:assignedScope=new Scope;let assignedIsolationScope;isolationScope?assignedIsolationScope=isolationScope:assignedIsolationScope=new Scope,this._stack=[{scope:assignedScope}],this._isolationScope=assignedIsolationScope}withScope(callback){let scope=this._pushScope(),maybePromiseResult;try{maybePromiseResult=callback(scope)}catch(e){throw this._popScope(),e}return isThenable(maybePromiseResult)?maybePromiseResult.then(res=>(this._popScope(),res),e=>{throw this._popScope(),e}):(this._popScope(),maybePromiseResult)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let scope=this.getScope().clone();return this._stack.push({client:this.getClient(),scope}),scope}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function getAsyncContextStack(){let registry=getMainCarrier(),sentry=getSentryCarrier(registry);return sentry.stack=sentry.stack||new AsyncContextStack(getDefaultCurrentScope(),getDefaultIsolationScope())}function withScope(callback){return getAsyncContextStack().withScope(callback)}function withSetScope(scope,callback){let stack=getAsyncContextStack();return stack.withScope(()=>(stack.getStackTop().scope=scope,callback(scope)))}function withIsolationScope(callback){return getAsyncContextStack().withScope(()=>callback(getAsyncContextStack().getIsolationScope()))}function getStackAsyncContextStrategy(){return{withIsolationScope,withScope,withSetScope,withSetIsolationScope:(_isolationScope,callback)=>withIsolationScope(callback),getCurrentScope:()=>getAsyncContextStack().getScope(),getIsolationScope:()=>getAsyncContextStack().getIsolationScope()}}function getAsyncContextStrategy(carrier){let sentry=getSentryCarrier(carrier);return sentry.acs?sentry.acs:getStackAsyncContextStrategy()}function getCurrentScope(){let carrier=getMainCarrier();return getAsyncContextStrategy(carrier).getCurrentScope()}function getIsolationScope(){let carrier=getMainCarrier();return getAsyncContextStrategy(carrier).getIsolationScope()}function getClient(){return getCurrentScope().getClient()}var DEFAULT_BREADCRUMBS=100;function addBreadcrumb(breadcrumb,hint){let client=getClient(),isolationScope=getIsolationScope();if(!client)return;let{beforeBreadcrumb=null,maxBreadcrumbs=DEFAULT_BREADCRUMBS}=client.getOptions();if(maxBreadcrumbs<=0)return;let timestamp=dateTimestampInSeconds(),mergedBreadcrumb=__spreadValues({timestamp},breadcrumb),finalBreadcrumb=beforeBreadcrumb?consoleSandbox(()=>beforeBreadcrumb(mergedBreadcrumb,hint)):mergedBreadcrumb;finalBreadcrumb!==null&&(client.emit&&client.emit("beforeAddBreadcrumb",finalBreadcrumb,hint),isolationScope.addBreadcrumb(finalBreadcrumb,maxBreadcrumbs))}function sentryNgrxMetaReducer(reducer46){return function(state,action5){return addBreadcrumb({category:"ngrx",message:action5.type,level:"info"}),reducer46(state,action5)}}var reducers={router:routerReducer},metaReducers=environment.production?[sentryNgrxMetaReducer]:[];var AppEffects=(()=>{let _AppEffects=class _AppEffects{constructor(actions$,location2,router){this.actions$=actions$,this.location=location2,this.router=router,this.company2faRequired$=createEffect(()=>this.actions$.pipe(ofType(loadMeFailure3),mergeMap(({errors:errors2})=>errors2.some(error2=>error2.message===IxApiRequestErrorMessages.TWO_FACTOR_AUTH_REQUIRED)?of(redirectTo2faRequired()):EMPTY))),this.redirectTo2faRequired$=createEffect(()=>this.actions$.pipe(ofType(redirectTo2faRequired),tap(()=>{this.router.navigate(["/two-factor-auth-required"],{skipLocationChange:!0})})),{dispatch:!1})}};_AppEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(Location),\u0275\u0275inject(Router))},_AppEffects.\u0275prov=\u0275\u0275defineInjectable({token:_AppEffects,factory:_AppEffects.\u0275fac});let AppEffects2=_AppEffects;return AppEffects2})();var AppStateModule=(()=>{let _AppStateModule=class _AppStateModule{};_AppStateModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppStateModule)},_AppStateModule.\u0275mod=\u0275\u0275defineNgModule({type:_AppStateModule}),_AppStateModule.\u0275inj=\u0275\u0275defineInjector({imports:[TranslateModule,StoreModule.forRoot(reducers,{metaReducers,runtimeChecks:{strictStateImmutability:!0,strictActionImmutability:!0,strictStateSerializability:!0,strictActionSerializability:!1}}),environment.production?[]:[StoreDevtoolsModule.instrument({maxAge:50,connectInZone:!0})],EffectsModule.forRoot([AppEffects])]});let AppStateModule2=_AppStateModule;return AppStateModule2})();function generateBanner(metadata2,translate){let header=document.createElement("div");return header.innerHTML=`
|
|
665
|
+
`))},dependencies:[MatButton,MatIcon,MatTooltip,TranslatePipe],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .zoom-out-button[_ngcontent-%COMP%]{min-width:0;padding:0 7px;margin-right:8px}[_nghost-%COMP%] .zoom-out-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{margin:0}"],changeDetection:0});let PeriodControlsComponent3=_PeriodControlsComponent;return PeriodControlsComponent3})();var BackendComponentBrokerDirective=(()=>{let _BackendComponentBrokerDirective=class _BackendComponentBrokerDirective{set agentOrAssetId(agentOrAssetId){this.agentOrAssetId$.next(agentOrAssetId)}constructor(scopeRef,callerFactory,facade,clientProxy){this.scopeRef=scopeRef,this.callerFactory=callerFactory,this.facade=facade,this.clientProxy=clientProxy,this.myCompany$=this.facade.myCompany$,this.myUser$=this.facade.myUser$,this.agentOrAssetId$=new ReplaySubject(1),this.ngUnsubscribe=new Subject}ngOnInit(){combineLatest([this.facade.findAgentAndAsset(this.agentOrAssetId$),this.facade.myCompany$,this.facade.myUser$]).pipe(filter(([,myCompany,myUser])=>!!myCompany&&!!myUser),takeUntil(this.ngUnsubscribe)).subscribe(([[agent,asset],myCompany,myUser])=>{this.caller=this.callerFactory.create({agent,asset,myCompany,myUser})}),this.clientProxy.onCall(this.scopeRef?.value).pipe(mergeMap(call=>this.facade.resolveTemplateFromPageComponent(call.pageComponentId).pipe(first(),map(result=>({call:call.call,template:{publicId:result}})))),mergeMap(call=>this.caller?this.caller.call(call).pipe(map(result=>({result,call})),catchError(()=>EMPTY)):EMPTY),takeUntil(this.ngUnsubscribe)).subscribe(({result,call})=>{this.clientProxy.emitResult({call:call.call,data:result.value},this.scopeRef?.value)})}ngOnDestroy(){this.ngUnsubscribe.next(),this.ngUnsubscribe.complete()}};_BackendComponentBrokerDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_BackendComponentBrokerDirective)(\u0275\u0275directiveInject(ComponentGridScopeDirective,8),\u0275\u0275directiveInject(BackendComponentCallerServiceFactory),\u0275\u0275directiveInject(BackendComponentBrokerFacade),\u0275\u0275directiveInject(BackendComponentClientProxyService))},_BackendComponentBrokerDirective.\u0275dir=\u0275\u0275defineDirective({type:_BackendComponentBrokerDirective,selectors:[["","ixBackendComponentBroker",""]],inputs:{agentOrAssetId:"agentOrAssetId"}});let BackendComponentBrokerDirective3=_BackendComponentBrokerDirective;return BackendComponentBrokerDirective3})();var PagesModule=(()=>{let _PagesModule=class _PagesModule{};_PagesModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_PagesModule)},_PagesModule.\u0275mod=\u0275\u0275defineNgModule({type:_PagesModule}),_PagesModule.\u0275inj=\u0275\u0275defineInjector({providers:[ComponentContextService],imports:[SharedModule,NgxDaterangepickerMd,ComponentGridModule,ComponentPropertiesModule,FileSaveModule,PeriodBottomSheetComponent,PeriodPanelComponent,ComponentGridModule,ComponentPropertiesModule]});let PagesModule2=_PagesModule;return PagesModule2})();function resizeObservableFactory(element,config3){return new Observable(subscriber=>{let observer=new ResizeObserver(entries=>{subscriber.next(entries)});return observer.observe(element,config3),function(){observer.unobserve(element)}})}var _c026=["*"],ButtonToggleComponent=(()=>{let _ButtonToggleComponent=class _ButtonToggleComponent{constructor(){this.elRef=inject(ElementRef),this.color="basic",this.disabled=!1,this.valueChange=new EventEmitter}getWidth(){return this.elRef.nativeElement.clientWidth??0}getOffset(){return this.elRef.nativeElement.offsetLeft??0}select(){this.selected=!0}unselect(){this.selected=!1}};_ButtonToggleComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ButtonToggleComponent)},_ButtonToggleComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ButtonToggleComponent,selectors:[["ix-button-toggle"]],inputs:{value:"value",color:"color",disabled:"disabled"},outputs:{valueChange:"valueChange"},standalone:!0,features:[\u0275\u0275StandaloneFeature],ngContentSelectors:_c026,decls:2,vars:6,consts:[["role","tab","tabindex","0",1,"button",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"div",0),\u0275\u0275listener("click",function(){return ctx.valueChange.emit(ctx.value)}),\u0275\u0275projection(1),\u0275\u0275elementEnd()),rf&2&&\u0275\u0275classProp("color",ctx.color)("disabled",ctx.disabled)("selected",ctx.selected)},styles:["[_nghost-%COMP%] .button[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:0 12px;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;word-wrap:normal;cursor:pointer;font-size:14px;max-width:100%;position:relative;height:34px;color:rgba(var(--body-color-rgb),.34);transition:box-shadow .2s cubic-bezier(.4,1,.75,.9);-webkit-user-select:none;user-select:none}[_nghost-%COMP%] .button.selected[_ngcontent-%COMP%]{color:#727272;font-weight:500;z-index:1}.button-list.primary [_nghost-%COMP%] .button.selected[_ngcontent-%COMP%]{color:var(--primary)}[_nghost-%COMP%] .button.disabled[_ngcontent-%COMP%]{color:#dadada;pointer-events:none}[_nghost-%COMP%] .button[_ngcontent-%COMP%]:focus{outline:none;outline-offset:0;-moz-outline-radius:0}[_nghost-%COMP%]:hover [_ngcontent-%COMP%]:not(.selected, .disabled)[_ngcontent-%COMP%]{border-bottom:none;color:#787878;background-color:rgba(var(--body-color-rgb),.04)!important;border-radius:4px;box-shadow:none!important;transition:all .2s cubic-bezier(.4,1,.75,.9)}"]});let ButtonToggleComponent3=_ButtonToggleComponent;return ButtonToggleComponent3})();var _c027=["*"],ButtonToggleGroupComponent=(()=>{let _ButtonToggleGroupComponent=class _ButtonToggleGroupComponent{constructor(){this.cdRef=inject(ChangeDetectorRef),this.elRef=inject(ElementRef),this.destroy=inject(DestroyRef),this.color="default",this.indicatorStyle=null,this._animate=!1,this.mutationObserver=new MutationObserver(mutations=>{mutations.forEach(()=>{this.animate(),this.cdRef.detectChanges()})}),this.mutationObserver.observe(this.elRef.nativeElement,{childList:!0})}ngOnChanges(changes){changes.value&&!changes.value.isFirstChange()&&this.animate()}ngAfterContentInit(){resizeObservableFactory(this.elRef.nativeElement).pipe(skip(1),takeUntilDestroyed(this.destroy)).subscribe(()=>{this.animate(),this.cdRef.detectChanges()}),this.animate()}ngOnDestroy(){this.mutationObserver.disconnect()}animate(){this._active=this._buttons?.find(segment=>segment.value===this.value)??null,this._active?.select(),this._buttons?.filter(s2=>s2!==this._active).forEach(s2=>s2.unselect()),this.indicatorStyle=this._active?{width:`${this._active.getWidth()}px`,transform:`translateX(${this._active.getOffset()}px)`}:null,this._active&&!this._animate&&setTimeout(()=>this._animate=!0,0)}};_ButtonToggleGroupComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ButtonToggleGroupComponent)},_ButtonToggleGroupComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ButtonToggleGroupComponent,selectors:[["ix-button-toggle-group"]],contentQueries:function(rf,ctx,dirIndex){if(rf&1&&\u0275\u0275contentQuery(dirIndex,ButtonToggleComponent,4),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx._buttons=_t)}},hostVars:2,hostBindings:function(rf,ctx){rf&2&&\u0275\u0275classProp("animate",ctx._animate)},inputs:{value:"value",color:"color"},standalone:!0,features:[\u0275\u0275NgOnChangesFeature,\u0275\u0275StandaloneFeature],ngContentSelectors:_c027,decls:3,vars:4,consts:[["role","tablist",1,"button-list"],[1,"active-indicator"]],template:function(rf,ctx){rf&1&&(\u0275\u0275projectionDef(),\u0275\u0275elementStart(0,"div",0),\u0275\u0275element(1,"div",1),\u0275\u0275projection(2),\u0275\u0275elementEnd()),rf&2&&(\u0275\u0275classProp("primary",ctx.color==="primary"),\u0275\u0275advance(),\u0275\u0275styleMap(ctx.indicatorStyle))},styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .button-list[_ngcontent-%COMP%]{align-items:flex-end;border:none;display:flex;flex:0 0 auto;list-style:none;margin:0;padding:0;position:relative;background-color:var(--button-toggle-bg, --body-bg);box-shadow:0 0 0 1px var(--card-border-color);border-radius:4px}[_nghost-%COMP%] .button-list[_ngcontent-%COMP%] .active-indicator[_ngcontent-%COMP%]{left:0;pointer-events:none;position:absolute;top:0;transform:translate(0);transition:height,transform,width;transition-duration:0;transition-timing-function:cubic-bezier(.4,1,.75,.9);border-radius:4px;box-shadow:0 0 0 2px #8f8f8f;height:34px;background-color:var(--button-toggle-bg, --body-bg);z-index:1}[_nghost-%COMP%] .button-list.primary[_ngcontent-%COMP%] .active-indicator[_ngcontent-%COMP%]{box-shadow:0 0 0 2px var(--primary)}.animate[_nghost-%COMP%] .button-list[_ngcontent-%COMP%] .active-indicator[_ngcontent-%COMP%]{transition-duration:.2s}"],changeDetection:0});let ButtonToggleGroupComponent3=_ButtonToggleGroupComponent;return ButtonToggleGroupComponent3})();var ButtonToggleModule=(()=>{let _ButtonToggleModule=class _ButtonToggleModule{};_ButtonToggleModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ButtonToggleModule)},_ButtonToggleModule.\u0275mod=\u0275\u0275defineNgModule({type:_ButtonToggleModule}),_ButtonToggleModule.\u0275inj=\u0275\u0275defineInjector({});let ButtonToggleModule2=_ButtonToggleModule;return ButtonToggleModule2})();var ReloadOnValueChangeDirective=(()=>{let _ReloadOnValueChangeDirective=class _ReloadOnValueChangeDirective{constructor(cdRef,templateRef,viewContainer){this.cdRef=cdRef,this.templateRef=templateRef,this.viewContainer=viewContainer,this.changes=new ReplaySubject,this.destroy=inject(DestroyRef)}ngOnInit(){this.viewContainer.createEmbeddedView(this.templateRef),this.changes.pipe(distinctUntilChanged(isEqual_default),takeUntilDestroyed(this.destroy)).subscribe(()=>{this.viewContainer.clear(),this.viewContainer.createEmbeddedView(this.templateRef),this.cdRef.markForCheck()})}ngOnChanges(changes){changes.value.isFirstChange()||this.changes.next(changes.value.currentValue)}ngOnDestroy(){this.changes.complete()}};_ReloadOnValueChangeDirective.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ReloadOnValueChangeDirective)(\u0275\u0275directiveInject(ChangeDetectorRef),\u0275\u0275directiveInject(TemplateRef),\u0275\u0275directiveInject(ViewContainerRef))},_ReloadOnValueChangeDirective.\u0275dir=\u0275\u0275defineDirective({type:_ReloadOnValueChangeDirective,selectors:[["","ixReloadOnValueChange",""]],inputs:{value:[0,"ixReloadOnValueChange","value"]},features:[\u0275\u0275NgOnChangesFeature]});let ReloadOnValueChangeDirective3=_ReloadOnValueChangeDirective;return ReloadOnValueChangeDirective3})();var ReloadTriggerModule=(()=>{let _ReloadTriggerModule=class _ReloadTriggerModule{};_ReloadTriggerModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ReloadTriggerModule)},_ReloadTriggerModule.\u0275mod=\u0275\u0275defineNgModule({type:_ReloadTriggerModule}),_ReloadTriggerModule.\u0275inj=\u0275\u0275defineInjector({imports:[CommonModule]});let ReloadTriggerModule2=_ReloadTriggerModule;return ReloadTriggerModule2})();var AlertDialogModule=(()=>{let _AlertDialogModule=class _AlertDialogModule{};_AlertDialogModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AlertDialogModule)},_AlertDialogModule.\u0275mod=\u0275\u0275defineNgModule({type:_AlertDialogModule}),_AlertDialogModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule]});let AlertDialogModule2=_AlertDialogModule;return AlertDialogModule2})();var _c028=()=>[],_c110=(a0,a1)=>({"locked-drawer":a0,"open-drawer":a1}),_c26=(a0,a1)=>({desktop:a0,mobile:a1});function BuilderComponent_Conditional_0_Conditional_4_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"span"),\u0275\u0275text(1),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275advance(),\u0275\u0275textInterpolate1(" - ",ctx_r1.componentName,"")}}function BuilderComponent_Conditional_0_Conditional_16_Template(rf,ctx){if(rf&1){let _r3=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-button-toggle-group",24),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r3),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(1,"ix-button-toggle",25),\u0275\u0275pipe(2,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setPreviewMode($event))}),\u0275\u0275elementStart(3,"mat-icon"),\u0275\u0275text(4,"desktop_windows"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"ix-button-toggle",26),\u0275\u0275pipe(6,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r3);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setPreviewMode($event))}),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"smartphone"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("value",ctx_r1.previewMode),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(2,3,"DESKTOP_VIEW")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(6,5,"MOBILE_VIEW"))}}function BuilderComponent_Conditional_0_Conditional_17_Template(rf,ctx){if(rf&1){let _r4=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-button-toggle-group",27),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r4),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(1,"ix-button-toggle",28),\u0275\u0275pipe(2,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setOrientation($event))}),\u0275\u0275elementStart(3,"mat-icon"),\u0275\u0275text(4,"crop_portrait"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"ix-button-toggle",29),\u0275\u0275pipe(6,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r4);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.setOrientation($event))}),\u0275\u0275elementStart(7,"mat-icon"),\u0275\u0275text(8,"crop_landscape"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275property("value",ctx_r1.orientation),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(2,3,"PORTRAIT_ORIENTATION")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(6,5,"LANDSCAPE_ORIENTATION"))}}function BuilderComponent_Conditional_0_Conditional_18_Template(rf,ctx){if(rf&1){let _r5=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",30),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r5);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.toggleMode())})("mousedown",function($event){return \u0275\u0275restoreView(_r5),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275elementStart(3,"span"),\u0275\u0275text(4),\u0275\u0275pipe(5,"translate"),\u0275\u0275elementEnd()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r1.mode==="preview"?"edit":"visibility"),\u0275\u0275advance(2),\u0275\u0275textInterpolate(\u0275\u0275pipeBind1(5,2,ctx_r1.mode==="preview"?"EDIT":"PREVIEW"))}}function BuilderComponent_Conditional_0_Conditional_38_Conditional_0_Template(rf,ctx){if(rf&1){let _r6=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"mat-toolbar")(1,"h1"),\u0275\u0275text(2),\u0275\u0275elementEnd(),\u0275\u0275element(3,"span",3),\u0275\u0275elementStart(4,"button",32),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r6);let ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.toggleDrawerLock())}),\u0275\u0275elementStart(5,"mat-icon"),\u0275\u0275text(6,"keyboard_arrow_right"),\u0275\u0275elementEnd()()()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275advance(2),\u0275\u0275textInterpolate(ctx_r1.selectedComponentTemplate==null?null:ctx_r1.selectedComponentTemplate.name)}}function BuilderComponent_Conditional_0_Conditional_38_Conditional_2_Template(rf,ctx){if(rf&1){let _r7=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-page-component-properties",33),\u0275\u0275listener("update",function($event){\u0275\u0275restoreView(_r7);let ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.updateComponent($event))}),\u0275\u0275elementEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("component",ctx_r1.selectedComponent)("template",ctx_r1.selectedComponentTemplate)}}function BuilderComponent_Conditional_0_Conditional_38_Template(rf,ctx){if(rf&1&&(\u0275\u0275template(0,BuilderComponent_Conditional_0_Conditional_38_Conditional_0_Template,7,1,"mat-toolbar"),\u0275\u0275elementStart(1,"div",19),\u0275\u0275template(2,BuilderComponent_Conditional_0_Conditional_38_Conditional_2_Template,1,2,"ix-page-component-properties",31),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275conditional(ctx_r1.selectedComponentTemplate!=null&&ctx_r1.selectedComponentTemplate.name?0:-1),\u0275\u0275advance(2),\u0275\u0275conditional(ctx_r1.selectedComponent?2:-1)}}function BuilderComponent_Conditional_0_Conditional_39_Template(rf,ctx){if(rf&1){let _r8=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"button",32),\u0275\u0275listener("click",function(){\u0275\u0275restoreView(_r8);let ctx_r1=\u0275\u0275nextContext(2);return \u0275\u0275resetView(ctx_r1.toggleDrawerLock())}),\u0275\u0275elementStart(1,"mat-icon"),\u0275\u0275text(2,"keyboard_arrow_left"),\u0275\u0275elementEnd()()}}function BuilderComponent_Conditional_0_Case_41_Template(rf,ctx){if(rf&1&&\u0275\u0275elementContainer(0,23),rf&2){\u0275\u0275nextContext();let standaloneContent_r9=\u0275\u0275reference(44);\u0275\u0275property("ngTemplateOutlet",standaloneContent_r9)}}function BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_1_Template(rf,ctx){if(rf&1){let _r10=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-component-grid",39),\u0275\u0275listener("selectionChange",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.handleSelectionChange($event))})("componentChanges",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.handleComponentChanges($event))})("movingGridItem",function($event){\u0275\u0275restoreView(_r10);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.setDrawerIsOpen($event))}),\u0275\u0275elementEnd()}if(rf&2){let pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("mobile",ctx_r1.previewMode==="mobile")("pageVersionId",pageVersion_r11.publicId)("selectedComponentId",(ctx_r1.selectedComponent==null?null:ctx_r1.selectedComponent.publicId)||null)("ngClass",\u0275\u0275pureFunction2(6,_c26,ctx_r1.previewMode!=="mobile",ctx_r1.previewMode==="mobile"))}}function BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_2_Template(rf,ctx){if(rf&1){let _r12=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-card-component-grid",40),\u0275\u0275listener("componentResize",function($event){\u0275\u0275restoreView(_r12);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.updateComponentSize($event))})("selectionChange",function($event){\u0275\u0275restoreView(_r12);let ctx_r1=\u0275\u0275nextContext(4);return \u0275\u0275resetView(ctx_r1.handleSelectionChange($event))}),\u0275\u0275elementEnd()}if(rf&2){let tmp_7_0,tmp_9_0,pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(tmp_7_0=ctx_r1.previewAgentOrAsset==null?null:ctx_r1.previewAgentOrAsset.publicId)!==null&&tmp_7_0!==void 0?tmp_7_0:null)("pageVersionId",pageVersion_r11.publicId)("selectedComponentId",(tmp_9_0=ctx_r1.selectedComponent==null?null:ctx_r1.selectedComponent.publicId)!==null&&tmp_9_0!==void 0?tmp_9_0:null)}}function BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_3_ix_component_grid_0_Template(rf,ctx){if(rf&1){let _r13=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"ix-component-grid",42),\u0275\u0275listener("selectionChange",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext(5);return \u0275\u0275resetView(ctx_r1.handleSelectionChange($event))})("componentChanges",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext(5);return \u0275\u0275resetView(ctx_r1.handleComponentChanges($event))})("movingGridItem",function($event){\u0275\u0275restoreView(_r13);let ctx_r1=\u0275\u0275nextContext(5);return \u0275\u0275resetView(ctx_r1.setDrawerIsOpen($event))}),\u0275\u0275elementEnd()}if(rf&2){let tmp_10_0,pageVersion_r11=\u0275\u0275nextContext(4),ctx_r1=\u0275\u0275nextContext();\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("pageVersionId",pageVersion_r11.publicId)("selectedComponentId",(tmp_10_0=ctx_r1.selectedComponent==null?null:ctx_r1.selectedComponent.publicId)!==null&&tmp_10_0!==void 0?tmp_10_0:null)("ngClass",ctx_r1.orientation)("orientation",ctx_r1.orientation)("mobile",!1)}}function BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_3_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_3_ix_component_grid_0_Template,1,7,"ix-component-grid",41),rf&2){let ctx_r1=\u0275\u0275nextContext(4);\u0275\u0275property("ixReloadOnValueChange",ctx_r1.orientation)}}function BuilderComponent_Conditional_0_Case_42_Conditional_0_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",34),\u0275\u0275template(1,BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_1_Template,1,9,"ix-component-grid",36)(2,BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_2_Template,1,4,"ix-card-component-grid",37)(3,BuilderComponent_Conditional_0_Case_42_Conditional_0_Conditional_3_Template,1,1,"ix-component-grid",38),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("ngClass",ctx_r1.gridClasses),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"?1:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="card"?2:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="report"?3:-1)}}function BuilderComponent_Conditional_0_Case_42_Conditional_1_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",43),\u0275\u0275element(1,"ix-simple-component-grid",45),\u0275\u0275elementEnd()),rf&2){let pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("mobile",ctx_r1.previewMode==="mobile")("pageVersionId",pageVersion_r11.publicId)("ngClass",ctx_r1.previewMode)}}function BuilderComponent_Conditional_0_Case_42_Conditional_1_Conditional_2_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",44),\u0275\u0275element(1,"ix-simple-card-component-grid",46),\u0275\u0275elementEnd()),rf&2){let pageVersion_r11=\u0275\u0275nextContext(3),ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(),\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope)("agentOrAssetId",(pageVersion_r11.previewAgent==null?null:pageVersion_r11.previewAgent.publicId)||(pageVersion_r11.previewAsset==null?null:pageVersion_r11.previewAsset.publicId)||null)("pageVersionId",pageVersion_r11.publicId)}}function BuilderComponent_Conditional_0_Case_42_Conditional_1_Template(rf,ctx){if(rf&1&&(\u0275\u0275elementStart(0,"div",35),\u0275\u0275template(1,BuilderComponent_Conditional_0_Case_42_Conditional_1_Conditional_1_Template,2,5,"div",43)(2,BuilderComponent_Conditional_0_Case_42_Conditional_1_Conditional_2_Template,2,3,"div",44),\u0275\u0275elementEnd()),rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("ngClass",ctx_r1.applicationType),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"?1:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="card"?2:-1)}}function BuilderComponent_Conditional_0_Case_42_Template(rf,ctx){if(rf&1&&\u0275\u0275template(0,BuilderComponent_Conditional_0_Case_42_Conditional_0_Template,4,4,"div",34)(1,BuilderComponent_Conditional_0_Case_42_Conditional_1_Template,3,3,"div",35),rf&2){let ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275conditional(ctx_r1.mode==="edit"?0:1)}}function BuilderComponent_Conditional_0_ng_template_43_Conditional_0_ix_component_loader_2_Template(rf,ctx){if(rf&1&&\u0275\u0275element(0,"ix-component-loader",50),rf&2){let component_r15=\u0275\u0275nextContext();\u0275\u0275property("component",component_r15)}}function BuilderComponent_Conditional_0_ng_template_43_Conditional_0_Template(rf,ctx){if(rf&1){let _r14=\u0275\u0275getCurrentView();\u0275\u0275elementContainerStart(0,47),\u0275\u0275elementStart(1,"div",48),\u0275\u0275listener("click",function(){let component_r15=\u0275\u0275restoreView(_r14),ctx_r1=\u0275\u0275nextContext(3);return \u0275\u0275resetView(ctx_r1.handleSelectionChange(component_r15.publicId))}),\u0275\u0275template(2,BuilderComponent_Conditional_0_ng_template_43_Conditional_0_ix_component_loader_2_Template,1,1,"ix-component-loader",49),\u0275\u0275elementEnd(),\u0275\u0275elementContainerEnd()}if(rf&2){let ctx_r1=\u0275\u0275nextContext(3);\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope),\u0275\u0275advance(),\u0275\u0275property("ixComponentGridScope",ctx_r1.gridScope),\u0275\u0275advance(),\u0275\u0275property("ixReloadOnValueChange",ctx)}}function BuilderComponent_Conditional_0_ng_template_43_Template(rf,ctx){if(rf&1&&(\u0275\u0275template(0,BuilderComponent_Conditional_0_ng_template_43_Conditional_0_Template,3,3,"ng-container",47),\u0275\u0275pipe(1,"async")),rf&2){let tmp_4_0,ctx_r1=\u0275\u0275nextContext(2);\u0275\u0275conditional((tmp_4_0=\u0275\u0275pipeBind1(1,1,ctx_r1.component$))?0:-1,tmp_4_0)}}function BuilderComponent_Conditional_0_Template(rf,ctx){if(rf&1){let _r1=\u0275\u0275getCurrentView();\u0275\u0275elementStart(0,"div",1)(1,"mat-toolbar",2)(2,"h1"),\u0275\u0275text(3," Simulator "),\u0275\u0275template(4,BuilderComponent_Conditional_0_Conditional_4_Template,2,1,"span"),\u0275\u0275elementEnd(),\u0275\u0275element(5,"span",3),\u0275\u0275elementStart(6,"button",4)(7,"mat-icon"),\u0275\u0275text(8,"settings"),\u0275\u0275elementEnd()()(),\u0275\u0275elementStart(9,"mat-toolbar",5)(10,"mat-form-field",6),\u0275\u0275element(11,"input",7),\u0275\u0275elementEnd(),\u0275\u0275elementStart(12,"ix-agent-or-asset-select",8),\u0275\u0275pipe(13,"async"),\u0275\u0275listener("optionSelected",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.selectPreviewAgentOrAsset($event))})("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementEnd(),\u0275\u0275element(14,"div",3),\u0275\u0275elementStart(15,"ix-period-controls",9),\u0275\u0275listener("periodSpecSelected",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.updateSelectedPeriodSpec($event))})("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementEnd(),\u0275\u0275template(16,BuilderComponent_Conditional_0_Conditional_16_Template,9,7,"ix-button-toggle-group",10)(17,BuilderComponent_Conditional_0_Conditional_17_Template,9,7,"ix-button-toggle-group",11)(18,BuilderComponent_Conditional_0_Conditional_18_Template,6,4,"button",12),\u0275\u0275elementStart(19,"ix-button-toggle-group",13),\u0275\u0275listener("mousedown",function($event){return \u0275\u0275restoreView(_r1),\u0275\u0275resetView($event.stopPropagation())}),\u0275\u0275elementStart(20,"ix-button-toggle",14),\u0275\u0275pipe(21,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275elementStart(22,"mat-icon"),\u0275\u0275text(23,"dashboard"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(24,"ix-button-toggle",15),\u0275\u0275pipe(25,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275element(26,"mat-icon",16),\u0275\u0275elementEnd(),\u0275\u0275elementStart(27,"ix-button-toggle",17),\u0275\u0275pipe(28,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275elementStart(29,"mat-icon"),\u0275\u0275text(30,"draft"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(31,"ix-button-toggle",18),\u0275\u0275pipe(32,"translate"),\u0275\u0275listener("valueChange",function($event){\u0275\u0275restoreView(_r1);let ctx_r1=\u0275\u0275nextContext();return \u0275\u0275resetView(ctx_r1.setApplicationType($event))}),\u0275\u0275elementStart(33,"mat-icon"),\u0275\u0275text(34,"fit_screen"),\u0275\u0275elementEnd()()()(),\u0275\u0275elementStart(35,"div",19)(36,"mat-drawer-container")(37,"mat-drawer",20),\u0275\u0275template(38,BuilderComponent_Conditional_0_Conditional_38_Template,3,2,"div",19)(39,BuilderComponent_Conditional_0_Conditional_39_Template,3,0,"button",21),\u0275\u0275elementEnd(),\u0275\u0275elementStart(40,"mat-drawer-content",22),\u0275\u0275template(41,BuilderComponent_Conditional_0_Case_41_Template,1,1,"ng-container",23)(42,BuilderComponent_Conditional_0_Case_42_Template,2,1)(43,BuilderComponent_Conditional_0_ng_template_43_Template,2,3,"ng-template",null,0,\u0275\u0275templateRefExtractor),\u0275\u0275elementEnd()()()()}if(rf&2){let tmp_20_0,ctx_r1=\u0275\u0275nextContext();\u0275\u0275advance(4),\u0275\u0275conditional(ctx_r1.componentName?4:-1),\u0275\u0275advance(8),\u0275\u0275property("selectedOption",ctx_r1.previewAgentOrAsset)("addNoneValue",!0)("options",\u0275\u0275pipeBind1(13,18,ctx_r1.previewAgentsOrAssets$)||\u0275\u0275pureFunction0(28,_c028)),\u0275\u0275advance(3),\u0275\u0275property("deviceTimeZone",null)("periodSpecs",ctx_r1.periodSpecs),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"?16:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="report"?17:-1),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.applicationType==="sheet"||ctx_r1.applicationType==="card"?18:-1),\u0275\u0275advance(),\u0275\u0275property("value",ctx_r1.applicationType),\u0275\u0275advance(),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(21,20,"PAGE")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(25,22,"CARD")),\u0275\u0275advance(3),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(28,24,"REPORT")),\u0275\u0275advance(4),\u0275\u0275property("matTooltip",\u0275\u0275pipeBind1(32,26,"STANDALONE")),\u0275\u0275advance(6),\u0275\u0275property("opened",ctx_r1.selectedComponent&&ctx_r1.drawerIsOpen&&ctx_r1.mode==="edit")("ngClass",\u0275\u0275pureFunction2(29,_c110,ctx_r1.drawerLockedClose,ctx_r1.selectedComponent&&!ctx_r1.drawerLockedClose)),\u0275\u0275advance(),\u0275\u0275conditional(ctx_r1.selectedComponent&&!ctx_r1.drawerLockedClose?38:39),\u0275\u0275advance(3),\u0275\u0275conditional((tmp_20_0=ctx_r1.applicationType)==="standalone"?41:42)}}var BuilderComponent=(()=>{let _BuilderComponent=class _BuilderComponent{constructor(){this.activePeriodSpec=inject(ActivePeriodSpec),this.cdRef=inject(ChangeDetectorRef),this.destroy=inject(DestroyRef),this.facade=inject(BuilderFacade),this.sessionStorage=inject(SESSION_STORAGE),this.applicationType=this.sessionStorage.getItem("application-type")||"sheet",this.orientation=this.sessionStorage.getItem("orientation")||"portrait",this.drawerLockedClose=!1,this.gridScope="simulator",this.mode=this.sessionStorage.getItem("mode")||"edit",this.previewMode=this.sessionStorage.getItem("preview-mode")||"desktop",this.drawerIsOpen=!0,this.selectedComponentId$=new BehaviorSubject(null),this.busyUpdating$=this.facade.busyUpdating$,this.component$=this.facade.getComponent(this.pageId),this.pageVersion$=this.facade.draftVersionByPageId(this.pageId),this.previewAgentsOrAssets$=this.facade.previewAgentsOrAssets$,this.previewAgentOrAsset$=this.facade.previewAgentOrAsset(this.pageVersion$)}get gridClasses(){return this.previewMode==="mobile"?["mobile"]:[]}get pageId(){return"page"}ngOnInit(){this.pageVersion$.pipe(takeUntilDestroyed(this.destroy)).subscribe(pageVersion=>{this.pageVersion=pageVersion,this.pageVersionId=pageVersion.publicId}),this.facade.selectedPeriodSpec(of(this.pageId)).pipe(takeUntilDestroyed(this.destroy)).subscribe(periodSpec=>{this.periodSpecs=__spreadProps(__spreadValues({},this.periodSpecs),{selected:periodSpec}),this.activePeriodSpec.setPeriodSpec(periodSpec,this.gridScope),this.zoomOutIsVisible=this.getZoomOutIsVisible(),this.cdRef.markForCheck()}),this.activePeriodSpec.inScopeOf(this.gridScope).pipe(takeUntilDestroyed(this.destroy)).subscribe(periodSpec=>{this.periodSpecs=__spreadProps(__spreadValues({},this.periodSpecs),{active:periodSpec}),this.zoomOutIsVisible=this.getZoomOutIsVisible(),this.cdRef.markForCheck()}),this.selectedComponentId$.pipe(distinctUntilChanged(),switchMap(id=>combineLatest([this.facade.pageComponent(id),this.facade.pageComponentTemplate(id)])),takeUntilDestroyed(this.destroy)).subscribe(([component,template])=>{this.selectedComponent=component,this.selectedComponentTemplate=template,this.cdRef.markForCheck()}),this.previewAgentOrAsset$.pipe(takeUntilDestroyed(this.destroy)).subscribe(agentOrAsset=>{this.previewAgentOrAsset=agentOrAsset,this.cdRef.markForCheck()}),this.facade.getComponentName(this.pageId).pipe(takeUntilDestroyed(this.destroy)).subscribe(name=>{this.componentName=name}),this.facade.loadAgents(),this.facade.loadAssets(),this.facade.loadGroups(),this.facade.loadPageComponentTemplates(),this.facade.loadPage(this.pageId),this.facade.loadRoles(),this.destroy.onDestroy(()=>{this.facade.reset()})}handleSelectionChange(componentId){this.selectedComponentId$.next(componentId)}handleComponentChanges(components){let updates=components.reduce((acc,component)=>this.previewMode==="desktop"&&component.dimensions?.type==="sheet"?[...acc,pick_default(component,["publicId","dimensions.type","dimensions.left","dimensions.top","dimensions.rows","dimensions.cols"])]:this.previewMode==="mobile"&&component.dimensions?.type==="sheet"?[...acc,pick_default(component,["publicId","dimensions.type","dimensions.mobileCols","dimensions.mobileHeight","dimensions.mobileLeft","dimensions.mobileOrder"])]:component.dimensions?.type==="report"?[...acc,pick_default(component,["publicId","dimensions.type","dimensions.left","dimensions.top","dimensions.rows","dimensions.cols"])]:acc,[]);updates.length>0&&(updates.length===1?this.facade.updateComponent(updates[0].publicId,omit_default(updates[0],["publicId"])):this.facade.updateComponentList(updates))}updateComponent(component){this.facade.updateComponent(component.publicId,omit_default(component,["publicId"]))}updateComponentSize({componentId,height}){this.facade.updateComponent(componentId,{dimensions:{type:"card",height}})}selectPreviewAgentOrAsset(publicId){this.previewAgentOrAsset?.publicId!==publicId&&this.facade.updatePreviewAgentOrAsset(this.pageVersionId,publicId==="none"?null:publicId)}setApplicationType(newApplicationType){this.applicationType=newApplicationType,this.sessionStorage.setItem("application-type",newApplicationType),this.facade.reloadDimensions(this.pageId,newApplicationType);let mode=null,remember=!0;switch(newApplicationType){case"report":mode="edit",remember=!1;break;case"standalone":mode="preview",remember=!1;break}mode||(mode=this.sessionStorage.getItem("mode")||null),mode&&this.setMode(mode,remember)}setPreviewMode(newPreviewMode){this.previewMode=newPreviewMode,this.sessionStorage.setItem("preview-mode",newPreviewMode)}setOrientation(newOrientation){this.orientation=newOrientation,this.sessionStorage.setItem("orientation",newOrientation);let component=this.pageVersion.components?.[0];component?.dimensions?.type==="report"&&this.facade.updateComponent(component.publicId,{dimensions:__spreadProps(__spreadValues({},component.dimensions),{type:"report",left:0,top:3,cols:newOrientation==="landscape"?8:6,rows:6})})}getZoomOutIsVisible(){return this.periodSpecs?!isEqual_default(this.periodSpecs.active,this.periodSpecs.selected):!1}setMode(newMode,rememberMode=!0){this.mode=newMode,rememberMode&&this.sessionStorage.setItem("mode",newMode)}setDrawerIsOpen(gridItemIsMoving){this.drawerIsOpen=!gridItemIsMoving}toggleDrawerLock(){this.drawerLockedClose=!this.drawerLockedClose}toggleMode(){this.setMode(this.mode==="preview"?"edit":"preview")}updateSelectedPeriodSpec(periodSpec){this.facade.updateSelectedPeriodSpec(periodSpec)}};_BuilderComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_BuilderComponent)},_BuilderComponent.\u0275cmp=\u0275\u0275defineComponent({type:_BuilderComponent,selectors:[["ix-builder"]],viewQuery:function(rf,ctx){if(rf&1&&\u0275\u0275viewQuery(ComponentGridComponent,5),rf&2){let _t;\u0275\u0275queryRefresh(_t=\u0275\u0275loadQuery())&&(ctx.componentGrid=_t.first)}},standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:2,vars:3,consts:[["standaloneContent",""],["fxFlex","","fxLayout","column",1,"ix-surface"],["ixComponentGridFocus",""],["fxFlex",""],["mat-icon-button","","routerLink","/settings","matTooltip","Settings"],["ixComponentGridFocus","",1,"second"],["hidden",""],["matInput",""],["matButtonType","stroked","noneValue","none",3,"optionSelected","mousedown","selectedOption","addNoneValue","options"],[3,"periodSpecSelected","mousedown","deviceTimeZone","periodSpecs"],[1,"screen-toggle-group",3,"value"],[1,"orientation-toggle-group",3,"value"],["mat-stroked-button","","type","button",1,"mode-button"],[1,"application-type-toggle-group",3,"mousedown","value"],["value","sheet",3,"valueChange","matTooltip"],["value","card",3,"valueChange","matTooltip"],["svgIcon","card_outline"],["value","report",3,"valueChange","matTooltip"],["value","standalone",3,"valueChange","matTooltip"],["fxFlex","",1,"ix-content"],["mode","over","position","end",3,"opened","ngClass"],["mat-icon-button","","disableRipple","true"],["fxLayout","column"],[3,"ngTemplateOutlet"],[1,"screen-toggle-group",3,"mousedown","value"],["value","desktop",3,"valueChange","matTooltip"],["value","mobile",3,"valueChange","matTooltip"],[1,"orientation-toggle-group",3,"mousedown","value"],["value","portrait",3,"valueChange","matTooltip"],["value","landscape",3,"valueChange","matTooltip"],["mat-stroked-button","","type","button",1,"mode-button",3,"click","mousedown"],[3,"component","template"],["mat-icon-button","","disableRipple","true",3,"click"],[3,"update","component","template"],["ixComponentGridFocus","",1,"grid-container",3,"ngClass"],[1,"preview-grid-container",3,"ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage",3,"ixComponentGridScope","agentOrAssetId","mobile","pageVersionId","selectedComponentId","ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","edit","pagePageId","pagepage",3,"ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage","applicationType","report",1,"report-grid",3,"ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId","ngClass","orientation","mobile"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage",3,"selectionChange","componentChanges","movingGridItem","ixComponentGridScope","agentOrAssetId","mobile","pageVersionId","selectedComponentId","ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","edit","pagePageId","pagepage",3,"componentResize","selectionChange","ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage","class","report-grid","applicationType","report",3,"ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId","ngClass","orientation","mobile","selectionChange","componentChanges","movingGridItem",4,"ixReloadOnValueChange"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentGridMode","edit","ixComponentContextCleanup","","pagePageId","pagepage","applicationType","report",1,"report-grid",3,"selectionChange","componentChanges","movingGridItem","ixComponentGridScope","agentOrAssetId","pageVersionId","selectedComponentId","ngClass","orientation","mobile"],[1,"ix-large-section","preview"],[1,"preview"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","view",3,"ixComponentGridScope","agentOrAssetId","mobile","pageVersionId","ngClass"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","","ixComponentGridMode","view",3,"ixComponentGridScope","agentOrAssetId","pageVersionId"],[3,"ixComponentGridScope"],["ixBackendComponentBroker","","ixLoggingDataBroker","","ixResourceDataBroker","","ixObjectStorageBroker","","ixComponentContextCleanup","",1,"standalone",3,"click","ixComponentGridScope"],[3,"component",4,"ixReloadOnValueChange"],[3,"component"]],template:function(rf,ctx){if(rf&1&&(\u0275\u0275template(0,BuilderComponent_Conditional_0_Template,45,32,"div",1),\u0275\u0275pipe(1,"async")),rf&2){let tmp_0_0;\u0275\u0275conditional((tmp_0_0=\u0275\u0275pipeBind1(1,1,ctx.pageVersion$))?0:-1,tmp_0_0)}},dependencies:[AgentOrAssetSelectModule,AgentOrAssetSelectComponent,AlertDialogModule,AsyncPipe,ButtonToggleModule,ButtonToggleComponent,ButtonToggleGroupComponent,ComponentLoaderModule,ComponentLoaderComponent,FlexModule,DefaultLayoutDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatIconButton,MatFormFieldModule,MatFormField,MatIconModule,MatIcon,MatInputModule,MatInput,MatSidenavModule,MatDrawer,MatDrawerContainer,MatDrawerContent,MatToolbarModule,MatToolbar,MatTooltipModule,MatTooltip,NgClass,NgTemplateOutlet,PagesModule,ComponentGridComponent,CardComponentGridComponent,SimpleComponentGridComponent,SimpleCardComponentGridComponent,ComponentPropertiesComponent,ComponentGridModeDirective,ComponentGridScopeDirective,ComponentContextCleanupDirective,BackendComponentBrokerDirective,LoggingDataBrokerDirective,ObjectStorageBrokerDirective,ResourceDataBrokerDirective,PeriodControlsComponent,ComponentGridFocusDirective,PeriodFieldsetModule,ReloadTriggerModule,ReloadOnValueChangeDirective,RouterModule,RouterLink,TranslateModule,TranslatePipe],styles:["[_nghost-%COMP%]{height:100%;width:100%}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%]{border-bottom:1px solid var(--card-border-color)}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{padding-right:16px}[_nghost-%COMP%] .mat-toolbar[_ngcontent-%COMP%] ix-agent-or-asset-select[_ngcontent-%COMP%]{margin-right:8px;max-width:calc(100% - 340px)}[_nghost-%COMP%] .mat-toolbar.second[_ngcontent-%COMP%]{height:56px;border-bottom:1px solid var(--card-border-color)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer-backdrop{display:none}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%]{height:100%;width:300px;background-color:var(--body-bg)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-drawer-inner-container{height:100%;flex-direction:column}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-drawer-inner-container>.mat-toolbar{height:40px!important}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-drawer-inner-container>.mat-toolbar h1{color:var(--body-color);font-size:16px;font-weight:400}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer.locked-drawer[_ngcontent-%COMP%]{width:50px;height:40px;border-top-left-radius:25px;border-bottom-left-radius:25px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .mat-drawer[_ngcontent-%COMP%] .mat-mdc-icon-button[_ngcontent-%COMP%] .mat-mdc-button-focus-overlay{display:none}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%]{height:100%;overflow-x:auto;background-color:rgba(var(--body-color-rgb),.04)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] .grid[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{margin:0 auto;height:100%}@media (min-width: 960px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:970px}}@media (min-width: 1280px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:1200px}}@media (min-width: 1920px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:1600px}}@media screen and (min-width: 2251px){[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid[_ngcontent-%COMP%]{max-width:2000px}}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid.desktop[_ngcontent-%COMP%]{min-width:970px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .grid-container[_ngcontent-%COMP%] ix-component-grid.mobile[_ngcontent-%COMP%]{max-width:480px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%]{height:100%;width:100%;box-sizing:border-box;overflow-x:auto;display:flex;flex-direction:column;place-content:top}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container.card[_ngcontent-%COMP%]{place-content:center}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container.card[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{display:flex;place-items:center}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-component-grid[_ngcontent-%COMP%]{height:100%;box-sizing:border-box;margin:0 auto}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-component-grid.desktop[_ngcontent-%COMP%]{min-width:970px}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-component-grid.mobile[_ngcontent-%COMP%]{max-width:480px;border-left:1px solid rgba(0,0,0,.08);border-right:1px solid rgba(0,0,0,.08)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .preview-grid-container[_ngcontent-%COMP%] .preview[_ngcontent-%COMP%] ix-simple-card-component-grid[_ngcontent-%COMP%]{width:300px;padding:0;margin:0 auto;box-sizing:border-box;background-color:var(--basic);border:1px solid var(--card-border-color);border-radius:8px;box-shadow:0 2px 4px var(--card-border-color)}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .standalone[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] .standalone[_ngcontent-%COMP%] ix-component-loader[_ngcontent-%COMP%]{overflow:auto}[_nghost-%COMP%] .mat-drawer-container[_ngcontent-%COMP%] ix-page-properties[_ngcontent-%COMP%]{padding:20px 16px}[_nghost-%COMP%] .select-button[_ngcontent-%COMP%]{padding-left:8px;padding-right:2px;margin-right:8px}[_nghost-%COMP%] .select-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]:first-child{margin-right:6px}[_nghost-%COMP%] .screen-toggle-group[_ngcontent-%COMP%], [_nghost-%COMP%] .orientation-toggle-group[_ngcontent-%COMP%], [_nghost-%COMP%] .application-type-toggle-group[_ngcontent-%COMP%]{margin-left:12px}[_nghost-%COMP%] .mode-button[_ngcontent-%COMP%]{margin-left:12px}[_nghost-%COMP%] .mode-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]:first-child{margin-right:6px}.report-grid[_ngcontent-%COMP%]{margin:0 auto;height:842px!important;width:595px!important}.report-grid.landscape[_ngcontent-%COMP%]{height:595px!important;width:842px!important}"],changeDetection:0});let BuilderComponent2=_BuilderComponent;return BuilderComponent2})();var BuilderGuard=(()=>{let _BuilderGuard=class _BuilderGuard{constructor(store){this.store=store}canActivate(){return forkJoin([this.getMyUser(),this.getMyCompany()]).pipe(map(()=>!0),take(1))}getMyUser(){return this._loadIfAbsent(selectMyUser,loadMe2())}getMyCompany(){return this._loadIfAbsent(selectMyCompany,loadMe3())}_loadIfAbsent(selector3,action5){return this.store.select(selector3).pipe(tap(entity=>{entity||this.store.dispatch(action5)}),first(entity=>!!entity),map(()=>!0))}};_BuilderGuard.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_BuilderGuard)(\u0275\u0275inject(Store))},_BuilderGuard.\u0275prov=\u0275\u0275defineInjectable({token:_BuilderGuard,factory:_BuilderGuard.\u0275fac,providedIn:"root"});let BuilderGuard2=_BuilderGuard;return BuilderGuard2})();var LoginExpiredComponent=(()=>{let _LoginExpiredComponent=class _LoginExpiredComponent{constructor(document2,storage){this.document=document2,this.storage=storage}useMockData(){this.storage.forget("api-data-provider"),this.storage.forget("company"),this.reload()}reload(){this.document.location.href="/"}};_LoginExpiredComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoginExpiredComponent)(\u0275\u0275directiveInject(DOCUMENT),\u0275\u0275directiveInject(StorageService))},_LoginExpiredComponent.\u0275cmp=\u0275\u0275defineComponent({type:_LoginExpiredComponent,selectors:[["ix-login-expired"]],decls:18,vars:0,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"ix-status-card"],[1,"ix-status-card__icon"],["type","button","mat-button","","color","primary",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"div",2)(3,"mat-icon"),\u0275\u0275text(4,"error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-card-header")(6,"mat-card-title"),\u0275\u0275text(7,"Login expired"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(8,"mat-card-subtitle"),\u0275\u0275text(9," Please re-authenticate via the command line "),\u0275\u0275elementStart(10,"pre"),\u0275\u0275text(11,"npx cdk login"),\u0275\u0275elementEnd(),\u0275\u0275text(12," and reload or revert to using API mock data. "),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(13,"mat-card-actions")(14,"button",3),\u0275\u0275listener("click",function(){return ctx.useMockData()}),\u0275\u0275text(15,"Use mock data"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(16,"button",3),\u0275\u0275listener("click",function(){return ctx.reload()}),\u0275\u0275text(17,"Reload"),\u0275\u0275elementEnd()()()())},dependencies:[DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatButton,MatCard,MatCardActions,MatCardHeader,MatCardSubtitle,MatCardTitle,MatIcon],styles:["[_nghost-%COMP%]{width:100%;height:100%}"],changeDetection:0});let LoginExpiredComponent3=_LoginExpiredComponent;return LoginExpiredComponent3})();var LoginExpiredCanActivateGuard=(()=>{let _LoginExpiredCanActivateGuard=class _LoginExpiredCanActivateGuard{constructor(router,storage){this.router=router,this.storage=storage}canActivate(route){return this.isAuthenticated(route)}isAuthenticated(route){return of(this.storage.has("auth")).pipe(tap(authenticated=>{if(authenticated)if(route.queryParamMap.has("next")){let next=route.queryParams.next;this.router.navigateByUrl(next).then(success=>{success||this.router.navigate(["/"])})}else this.router.navigate(["/"])}),map(authenticated=>!authenticated))}};_LoginExpiredCanActivateGuard.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoginExpiredCanActivateGuard)(\u0275\u0275inject(Router),\u0275\u0275inject(StorageService))},_LoginExpiredCanActivateGuard.\u0275prov=\u0275\u0275defineInjectable({token:_LoginExpiredCanActivateGuard,factory:_LoginExpiredCanActivateGuard.\u0275fac,providedIn:"root"});let LoginExpiredCanActivateGuard2=_LoginExpiredCanActivateGuard;return LoginExpiredCanActivateGuard2})();var LoginExpiredModule=(()=>{let _LoginExpiredModule=class _LoginExpiredModule{};_LoginExpiredModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_LoginExpiredModule)},_LoginExpiredModule.\u0275mod=\u0275\u0275defineNgModule({type:_LoginExpiredModule}),_LoginExpiredModule.\u0275inj=\u0275\u0275defineInjector({imports:[SharedModule]});let LoginExpiredModule2=_LoginExpiredModule;return LoginExpiredModule2})();var ManifestInvalidComponent=(()=>{let _ManifestInvalidComponent=class _ManifestInvalidComponent{};_ManifestInvalidComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_ManifestInvalidComponent)},_ManifestInvalidComponent.\u0275cmp=\u0275\u0275defineComponent({type:_ManifestInvalidComponent,selectors:[["ix-manifest-invalid"]],decls:13,vars:0,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"ix-status-card"],[1,"ix-status-card__icon"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"div",2)(3,"mat-icon"),\u0275\u0275text(4,"error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-card-header")(6,"mat-card-title"),\u0275\u0275text(7,"Manifest invalid"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(8,"mat-card-subtitle"),\u0275\u0275text(9," Schema validation for the "),\u0275\u0275elementStart(10,"pre"),\u0275\u0275text(11,"manifest.json"),\u0275\u0275elementEnd(),\u0275\u0275text(12," file failed. "),\u0275\u0275elementEnd()()()())},dependencies:[DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatCard,MatCardHeader,MatCardSubtitle,MatCardTitle,MatIcon],styles:["[_nghost-%COMP%]{width:100%;height:100%}"],changeDetection:0});let ManifestInvalidComponent3=_ManifestInvalidComponent;return ManifestInvalidComponent3})();var TwoFactorAuthRequiredComponent=(()=>{let _TwoFactorAuthRequiredComponent=class _TwoFactorAuthRequiredComponent{constructor(document2,storage){this.document=document2,this.storage=storage}switchCompany(){this.storage.forget("api-data-provider"),this.storage.forget("company"),this.document.location.href="/settings/general"}useMockData(){this.storage.forget("api-data-provider"),this.storage.forget("company"),this.document.location.href="/"}};_TwoFactorAuthRequiredComponent.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_TwoFactorAuthRequiredComponent)(\u0275\u0275directiveInject(DOCUMENT),\u0275\u0275directiveInject(StorageService))},_TwoFactorAuthRequiredComponent.\u0275cmp=\u0275\u0275defineComponent({type:_TwoFactorAuthRequiredComponent,selectors:[["ix-two-factor-auth-required"]],standalone:!0,features:[\u0275\u0275StandaloneFeature],decls:13,vars:0,consts:[["fxFlex","","fxLayout","column","fxLayoutAlign","center center",1,"ix-surface"],[1,"ix-status-card"],[1,"ix-status-card__icon"],["type","button","mat-button","","color","primary",3,"click"]],template:function(rf,ctx){rf&1&&(\u0275\u0275elementStart(0,"div",0)(1,"mat-card",1)(2,"div",2)(3,"mat-icon"),\u0275\u0275text(4,"error"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(5,"mat-card-header")(6,"mat-card-title"),\u0275\u0275text(7,"Two-factor authentication is required"),\u0275\u0275elementEnd()(),\u0275\u0275elementStart(8,"mat-card-actions")(9,"button",3),\u0275\u0275listener("click",function(){return ctx.useMockData()}),\u0275\u0275text(10,"Use mock data"),\u0275\u0275elementEnd(),\u0275\u0275elementStart(11,"button",3),\u0275\u0275listener("click",function(){return ctx.switchCompany()}),\u0275\u0275text(12,"Switch company"),\u0275\u0275elementEnd()()()())},dependencies:[FlexModule,DefaultLayoutDirective,DefaultLayoutAlignDirective,DefaultFlexDirective,MatButtonModule,MatButton,MatCardModule,MatCard,MatCardActions,MatCardHeader,MatCardTitle,MatIconModule,MatIcon],styles:["[_nghost-%COMP%]{width:100%;height:100%}"],changeDetection:0});let TwoFactorAuthRequiredComponent2=_TwoFactorAuthRequiredComponent;return TwoFactorAuthRequiredComponent2})();var routes=[{path:"",canActivate:[AppGuard2],children:[{path:"",component:BuilderComponent,canActivate:__use_api_mocks__?[BuilderGuard]:[AuthCompanyGuard,BuilderGuard]},{path:"settings",loadChildren:()=>import("./chunk-YOCWMJPJ.js").then(m=>m.SettingsModule)},...__use_api_mocks__?[]:[{path:"login",component:LoginExpiredComponent,canActivate:[LoginExpiredCanActivateGuard]},{path:"my-companies",redirectTo:"settings"},{path:"two-factor-auth-required",component:TwoFactorAuthRequiredComponent}]]},{path:"manifest-invalid",component:ManifestInvalidComponent},{path:"**",redirectTo:""}];var AppRoutingConfig={routerState:RouterState?.Minimal,serializer:CustomRouterStateSerializer};var AppRoutingModule=(()=>{let _AppRoutingModule=class _AppRoutingModule{};_AppRoutingModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppRoutingModule)},_AppRoutingModule.\u0275mod=\u0275\u0275defineNgModule({type:_AppRoutingModule}),_AppRoutingModule.\u0275inj=\u0275\u0275defineInjector({imports:[RouterModule.forRoot(routes,{onSameUrlNavigation:"reload",preloadingStrategy:CustomPreloadingStrategy}),StoreRouterConnectingModule.forRoot(AppRoutingConfig),RouterModule]});let AppRoutingModule2=_AppRoutingModule;return AppRoutingModule2})();var PERFORM_ACTION="PERFORM_ACTION",REFRESH="REFRESH",RESET="RESET",ROLLBACK="ROLLBACK",COMMIT="COMMIT",SWEEP="SWEEP",TOGGLE_ACTION="TOGGLE_ACTION",SET_ACTIONS_ACTIVE="SET_ACTIONS_ACTIVE",JUMP_TO_STATE="JUMP_TO_STATE",JUMP_TO_ACTION="JUMP_TO_ACTION",IMPORT_STATE="IMPORT_STATE",LOCK_CHANGES="LOCK_CHANGES",PAUSE_RECORDING="PAUSE_RECORDING",PerformAction=class{constructor(action5,timestamp){if(this.action=action5,this.timestamp=timestamp,this.type=PERFORM_ACTION,typeof action5.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},Refresh=class{constructor(){this.type=REFRESH}},Reset=class{constructor(timestamp){this.timestamp=timestamp,this.type=RESET}},Rollback=class{constructor(timestamp){this.timestamp=timestamp,this.type=ROLLBACK}},Commit=class{constructor(timestamp){this.timestamp=timestamp,this.type=COMMIT}},Sweep=class{constructor(){this.type=SWEEP}},ToggleAction=class{constructor(id){this.id=id,this.type=TOGGLE_ACTION}};var JumpToState=class{constructor(index){this.index=index,this.type=JUMP_TO_STATE}},JumpToAction=class{constructor(actionId){this.actionId=actionId,this.type=JUMP_TO_ACTION}},ImportState=class{constructor(nextLiftedState){this.nextLiftedState=nextLiftedState,this.type=IMPORT_STATE}},LockChanges=class{constructor(status){this.status=status,this.type=LOCK_CHANGES}},PauseRecording=class{constructor(status){this.status=status,this.type=PAUSE_RECORDING}};var STORE_DEVTOOLS_CONFIG=new InjectionToken("@ngrx/store-devtools Options"),INITIAL_OPTIONS=new InjectionToken("@ngrx/store-devtools Initial Config");function noMonitor(){return null}var DEFAULT_NAME="NgRx Store DevTools";function createConfig(optionsInput){let DEFAULT_OPTIONS2={maxAge:!1,monitor:noMonitor,actionSanitizer:void 0,stateSanitizer:void 0,name:DEFAULT_NAME,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},options=typeof optionsInput=="function"?optionsInput():optionsInput,logOnly=options.logOnly?{pause:!0,export:!0,test:!0}:!1,features2=options.features||logOnly||DEFAULT_OPTIONS2.features;features2.import===!0&&(features2.import="custom");let config3=Object.assign({},DEFAULT_OPTIONS2,{features:features2},options);if(config3.maxAge&&config3.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${config3.maxAge}`);return config3}function difference(first2,second){return first2.filter(item=>second.indexOf(item)<0)}function unliftState(liftedState){let{computedStates,currentStateIndex}=liftedState;if(currentStateIndex>=computedStates.length){let{state:state2}=computedStates[computedStates.length-1];return state2}let{state}=computedStates[currentStateIndex];return state}function liftAction(action5){return new PerformAction(action5,+Date.now())}function sanitizeActions(actionSanitizer,actions){return Object.keys(actions).reduce((sanitizedActions,actionIdx)=>{let idx=Number(actionIdx);return sanitizedActions[idx]=sanitizeAction(actionSanitizer,actions[idx],idx),sanitizedActions},{})}function sanitizeAction(actionSanitizer,action5,actionIdx){return __spreadProps(__spreadValues({},action5),{action:actionSanitizer(action5.action,actionIdx)})}function sanitizeStates(stateSanitizer,states){return states.map((computedState,idx)=>({state:sanitizeState(stateSanitizer,computedState.state,idx),error:computedState.error}))}function sanitizeState(stateSanitizer,state,stateIdx){return stateSanitizer(state,stateIdx)}function shouldFilterActions(config3){return config3.predicate||config3.actionsSafelist||config3.actionsBlocklist}function filterLiftedState(liftedState,predicate,safelist,blocklist){let filteredStagedActionIds=[],filteredActionsById={},filteredComputedStates=[];return liftedState.stagedActionIds.forEach((id,idx)=>{let liftedAction=liftedState.actionsById[id];liftedAction&&(idx&&isActionFiltered(liftedState.computedStates[idx],liftedAction,predicate,safelist,blocklist)||(filteredActionsById[id]=liftedAction,filteredStagedActionIds.push(id),filteredComputedStates.push(liftedState.computedStates[idx])))}),__spreadProps(__spreadValues({},liftedState),{stagedActionIds:filteredStagedActionIds,actionsById:filteredActionsById,computedStates:filteredComputedStates})}function isActionFiltered(state,action5,predicate,safelist,blockedlist){let predicateMatch=predicate&&!predicate(state,action5.action),safelistMatch=safelist&&!action5.action.type.match(safelist.map(s2=>escapeRegExp(s2)).join("|")),blocklistMatch=blockedlist&&action5.action.type.match(blockedlist.map(s2=>escapeRegExp(s2)).join("|"));return predicateMatch||safelistMatch||blocklistMatch}function escapeRegExp(s2){return s2.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function injectZoneConfig(connectInZone){return{ngZone:connectInZone?inject(NgZone):null,connectInZone}}var DevtoolsDispatcher=(()=>{let _DevtoolsDispatcher=class _DevtoolsDispatcher extends ActionsSubject{};_DevtoolsDispatcher.\u0275fac=(()=>{let \u0275DevtoolsDispatcher_BaseFactory;return function(__ngFactoryType__){return(\u0275DevtoolsDispatcher_BaseFactory||(\u0275DevtoolsDispatcher_BaseFactory=\u0275\u0275getInheritedFactory(_DevtoolsDispatcher)))(__ngFactoryType__||_DevtoolsDispatcher)}})(),_DevtoolsDispatcher.\u0275prov=\u0275\u0275defineInjectable({token:_DevtoolsDispatcher,factory:_DevtoolsDispatcher.\u0275fac});let DevtoolsDispatcher2=_DevtoolsDispatcher;return DevtoolsDispatcher2})(),ExtensionActionTypes={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},REDUX_DEVTOOLS_EXTENSION=new InjectionToken("@ngrx/store-devtools Redux Devtools Extension"),DevtoolsExtension=(()=>{let _DevtoolsExtension=class _DevtoolsExtension{constructor(devtoolsExtension,config3,dispatcher){this.config=config3,this.dispatcher=dispatcher,this.zoneConfig=injectZoneConfig(this.config.connectInZone),this.devtoolsExtension=devtoolsExtension,this.createActionStreams()}notify(action5,state){if(this.devtoolsExtension)if(action5.type===PERFORM_ACTION){if(state.isLocked||state.isPaused)return;let currentState=unliftState(state);if(shouldFilterActions(this.config)&&isActionFiltered(currentState,action5,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let sanitizedState=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,currentState,state.currentStateIndex):currentState,sanitizedAction=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,action5,state.nextActionId):action5;this.sendToReduxDevtools(()=>this.extensionConnection.send(sanitizedAction,sanitizedState))}else{let sanitizedLiftedState=__spreadProps(__spreadValues({},state),{stagedActionIds:state.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,state.actionsById):state.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,state.computedStates):state.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,sanitizedLiftedState,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new Observable(subscriber=>{let connection=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=connection,connection.init(),connection.subscribe(change=>subscriber.next(change)),connection.unsubscribe}):EMPTY}createActionStreams(){let changes$=this.createChangesObservable().pipe(share()),start$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.START)),stop$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.STOP)),liftedActions$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.DISPATCH),map(change=>this.unwrapAction(change.payload)),concatMap(action5=>action5.type===IMPORT_STATE?this.dispatcher.pipe(filter(action6=>action6.type===UPDATE),timeout(1e3),debounceTime(1e3),map(()=>action5),catchError(()=>of(action5)),take(1)):of(action5))),actionsUntilStop$=changes$.pipe(filter(change=>change.type===ExtensionActionTypes.ACTION),map(change=>this.unwrapAction(change.payload))).pipe(takeUntil(stop$)),liftedUntilStop$=liftedActions$.pipe(takeUntil(stop$));this.start$=start$.pipe(takeUntil(stop$)),this.actions$=this.start$.pipe(switchMap(()=>actionsUntilStop$)),this.liftedActions$=this.start$.pipe(switchMap(()=>liftedUntilStop$))}unwrapAction(action5){return typeof action5=="string"?(0,eval)(`(${action5})`):action5}getExtensionConfig(config3){let extensionOptions={name:config3.name,features:config3.features,serialize:config3.serialize,autoPause:config3.autoPause??!1,trace:config3.trace??!1,traceLimit:config3.traceLimit??75};return config3.maxAge!==!1&&(extensionOptions.maxAge=config3.maxAge),extensionOptions}sendToReduxDevtools(send){try{send()}catch(err){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",err)}}};_DevtoolsExtension.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_DevtoolsExtension)(\u0275\u0275inject(REDUX_DEVTOOLS_EXTENSION),\u0275\u0275inject(STORE_DEVTOOLS_CONFIG),\u0275\u0275inject(DevtoolsDispatcher))},_DevtoolsExtension.\u0275prov=\u0275\u0275defineInjectable({token:_DevtoolsExtension,factory:_DevtoolsExtension.\u0275fac});let DevtoolsExtension2=_DevtoolsExtension;return DevtoolsExtension2})(),INIT_ACTION={type:INIT},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(reducer46,action5,state,error2,errorHandler){if(error2)return{state,error:"Interrupted by an error up the chain"};let nextState=state,nextError;try{nextState=reducer46(state,action5)}catch(err){nextError=err.toString(),errorHandler.handleError(err)}return{state:nextState,error:nextError}}function recomputeStates(computedStates,minInvalidatedStateIndex,reducer46,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused){if(minInvalidatedStateIndex>=computedStates.length&&computedStates.length===stagedActionIds.length)return computedStates;let nextComputedStates=computedStates.slice(0,minInvalidatedStateIndex),lastIncludedActionId=stagedActionIds.length-(isPaused?1:0);for(let i=minInvalidatedStateIndex;i<lastIncludedActionId;i++){let actionId=stagedActionIds[i],action5=actionsById[actionId].action,previousEntry=nextComputedStates[i-1],previousState=previousEntry?previousEntry.state:committedState,previousError=previousEntry?previousEntry.error:void 0,entry=skippedActionIds.indexOf(actionId)>-1?previousEntry:computeNextEntry(reducer46,action5,previousState,previousError,errorHandler);nextComputedStates.push(entry)}return isPaused&&nextComputedStates.push(computedStates[computedStates.length-1]),nextComputedStates}function liftInitialState(initialCommittedState,monitorReducer){return{monitorState:monitorReducer(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:initialCommittedState,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(initialCommittedState,initialLiftedState,errorHandler,monitorReducer,options={}){return reducer46=>(liftedState,liftedAction)=>{let{monitorState,actionsById,nextActionId,stagedActionIds,skippedActionIds,committedState,currentStateIndex,computedStates,isLocked,isPaused}=liftedState||initialLiftedState;liftedState||(actionsById=Object.create(actionsById));function commitExcessActions(n2){let excess=n2,idsToDelete=stagedActionIds.slice(1,excess+1);for(let i=0;i<idsToDelete.length;i++)if(computedStates[i+1].error){excess=i,idsToDelete=stagedActionIds.slice(1,excess+1);break}else delete actionsById[idsToDelete[i]];skippedActionIds=skippedActionIds.filter(id=>idsToDelete.indexOf(id)===-1),stagedActionIds=[0,...stagedActionIds.slice(excess+1)],committedState=computedStates[excess].state,computedStates=computedStates.slice(excess),currentStateIndex=currentStateIndex>excess?currentStateIndex-excess:0}function commitChanges(){actionsById={0:liftAction(INIT_ACTION)},nextActionId=1,stagedActionIds=[0],skippedActionIds=[],committedState=computedStates[currentStateIndex].state,currentStateIndex=0,computedStates=[]}let minInvalidatedStateIndex=0;switch(liftedAction.type){case LOCK_CHANGES:{isLocked=liftedAction.status,minInvalidatedStateIndex=1/0;break}case PAUSE_RECORDING:{isPaused=liftedAction.status,isPaused?(stagedActionIds=[...stagedActionIds,nextActionId],actionsById[nextActionId]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),nextActionId++,minInvalidatedStateIndex=stagedActionIds.length-1,computedStates=computedStates.concat(computedStates[computedStates.length-1]),currentStateIndex===stagedActionIds.length-2&¤tStateIndex++,minInvalidatedStateIndex=1/0):commitChanges();break}case RESET:{actionsById={0:liftAction(INIT_ACTION)},nextActionId=1,stagedActionIds=[0],skippedActionIds=[],committedState=initialCommittedState,currentStateIndex=0,computedStates=[];break}case COMMIT:{commitChanges();break}case ROLLBACK:{actionsById={0:liftAction(INIT_ACTION)},nextActionId=1,stagedActionIds=[0],skippedActionIds=[],currentStateIndex=0,computedStates=[];break}case TOGGLE_ACTION:{let{id:actionId}=liftedAction;skippedActionIds.indexOf(actionId)===-1?skippedActionIds=[actionId,...skippedActionIds]:skippedActionIds=skippedActionIds.filter(id=>id!==actionId),minInvalidatedStateIndex=stagedActionIds.indexOf(actionId);break}case SET_ACTIONS_ACTIVE:{let{start:start3,end:end2,active}=liftedAction,actionIds=[];for(let i=start3;i<end2;i++)actionIds.push(i);active?skippedActionIds=difference(skippedActionIds,actionIds):skippedActionIds=[...skippedActionIds,...actionIds],minInvalidatedStateIndex=stagedActionIds.indexOf(start3);break}case JUMP_TO_STATE:{currentStateIndex=liftedAction.index,minInvalidatedStateIndex=1/0;break}case JUMP_TO_ACTION:{let index=stagedActionIds.indexOf(liftedAction.actionId);index!==-1&&(currentStateIndex=index),minInvalidatedStateIndex=1/0;break}case SWEEP:{stagedActionIds=difference(stagedActionIds,skippedActionIds),skippedActionIds=[],currentStateIndex=Math.min(currentStateIndex,stagedActionIds.length-1);break}case PERFORM_ACTION:{if(isLocked)return liftedState||initialLiftedState;if(isPaused||liftedState&&isActionFiltered(liftedState.computedStates[currentStateIndex],liftedAction,options.predicate,options.actionsSafelist,options.actionsBlocklist)){let lastState=computedStates[computedStates.length-1];computedStates=[...computedStates.slice(0,-1),computeNextEntry(reducer46,liftedAction.action,lastState.state,lastState.error,errorHandler)],minInvalidatedStateIndex=1/0;break}options.maxAge&&stagedActionIds.length===options.maxAge&&commitExcessActions(1),currentStateIndex===stagedActionIds.length-1&¤tStateIndex++;let actionId=nextActionId++;actionsById[actionId]=liftedAction,stagedActionIds=[...stagedActionIds,actionId],minInvalidatedStateIndex=stagedActionIds.length-1;break}case IMPORT_STATE:{({monitorState,actionsById,nextActionId,stagedActionIds,skippedActionIds,committedState,currentStateIndex,computedStates,isLocked,isPaused}=liftedAction.nextLiftedState);break}case INIT:{minInvalidatedStateIndex=0,options.maxAge&&stagedActionIds.length>options.maxAge&&(computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer46,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused),commitExcessActions(stagedActionIds.length-options.maxAge),minInvalidatedStateIndex=1/0);break}case UPDATE:{if(computedStates.filter(state=>state.error).length>0)minInvalidatedStateIndex=0,options.maxAge&&stagedActionIds.length>options.maxAge&&(computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer46,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused),commitExcessActions(stagedActionIds.length-options.maxAge),minInvalidatedStateIndex=1/0);else{if(!isPaused&&!isLocked){currentStateIndex===stagedActionIds.length-1&¤tStateIndex++;let actionId=nextActionId++;actionsById[actionId]=new PerformAction(liftedAction,+Date.now()),stagedActionIds=[...stagedActionIds,actionId],minInvalidatedStateIndex=stagedActionIds.length-1,computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer46,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused)}computedStates=computedStates.map(cmp=>__spreadProps(__spreadValues({},cmp),{state:reducer46(cmp.state,RECOMPUTE_ACTION)})),currentStateIndex=stagedActionIds.length-1,options.maxAge&&stagedActionIds.length>options.maxAge&&commitExcessActions(stagedActionIds.length-options.maxAge),minInvalidatedStateIndex=1/0}break}default:{minInvalidatedStateIndex=1/0;break}}return computedStates=recomputeStates(computedStates,minInvalidatedStateIndex,reducer46,committedState,actionsById,stagedActionIds,skippedActionIds,errorHandler,isPaused),monitorState=monitorReducer(monitorState,liftedAction),{monitorState,actionsById,nextActionId,stagedActionIds,skippedActionIds,committedState,currentStateIndex,computedStates,isLocked,isPaused}}}var StoreDevtools=(()=>{let _StoreDevtools=class _StoreDevtools{constructor(dispatcher,actions$,reducers$,extension,scannedActions,errorHandler,initialState52,config3){let liftedInitialState=liftInitialState(initialState52,config3.monitor),liftReducer=liftReducerWith(initialState52,liftedInitialState,errorHandler,config3.monitor,config3),liftedAction$=merge(merge(actions$.asObservable().pipe(skip(1)),extension.actions$).pipe(map(liftAction)),dispatcher,extension.liftedActions$).pipe(observeOn(queueScheduler)),liftedReducer$=reducers$.pipe(map(liftReducer)),zoneConfig=injectZoneConfig(config3.connectInZone),liftedStateSubject=new ReplaySubject(1);this.liftedStateSubscription=liftedAction$.pipe(withLatestFrom(liftedReducer$),emitInZone(zoneConfig),scan(({state:liftedState},[action5,reducer46])=>{let reducedLiftedState=reducer46(liftedState,action5);return action5.type!==PERFORM_ACTION&&shouldFilterActions(config3)&&(reducedLiftedState=filterLiftedState(reducedLiftedState,config3.predicate,config3.actionsSafelist,config3.actionsBlocklist)),extension.notify(action5,reducedLiftedState),{state:reducedLiftedState,action:action5}},{state:liftedInitialState,action:null})).subscribe(({state,action:action5})=>{if(liftedStateSubject.next(state),action5.type===PERFORM_ACTION){let unliftedAction=action5.action;scannedActions.next(unliftedAction)}}),this.extensionStartSubscription=extension.start$.pipe(emitInZone(zoneConfig)).subscribe(()=>{this.refresh()});let liftedState$=liftedStateSubject.asObservable(),state$=liftedState$.pipe(map(unliftState));Object.defineProperty(state$,"state",{value:toSignal(state$,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=dispatcher,this.liftedState=liftedState$,this.state=state$}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(action5){this.dispatcher.next(action5)}next(action5){this.dispatcher.next(action5)}error(error2){}complete(){}performAction(action5){this.dispatch(new PerformAction(action5,+Date.now()))}refresh(){this.dispatch(new Refresh)}reset(){this.dispatch(new Reset(+Date.now()))}rollback(){this.dispatch(new Rollback(+Date.now()))}commit(){this.dispatch(new Commit(+Date.now()))}sweep(){this.dispatch(new Sweep)}toggleAction(id){this.dispatch(new ToggleAction(id))}jumpToAction(actionId){this.dispatch(new JumpToAction(actionId))}jumpToState(index){this.dispatch(new JumpToState(index))}importState(nextLiftedState){this.dispatch(new ImportState(nextLiftedState))}lockChanges(status){this.dispatch(new LockChanges(status))}pauseRecording(status){this.dispatch(new PauseRecording(status))}};_StoreDevtools.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_StoreDevtools)(\u0275\u0275inject(DevtoolsDispatcher),\u0275\u0275inject(ActionsSubject),\u0275\u0275inject(ReducerObservable),\u0275\u0275inject(DevtoolsExtension),\u0275\u0275inject(ScannedActionsSubject),\u0275\u0275inject(ErrorHandler),\u0275\u0275inject(INITIAL_STATE),\u0275\u0275inject(STORE_DEVTOOLS_CONFIG))},_StoreDevtools.\u0275prov=\u0275\u0275defineInjectable({token:_StoreDevtools,factory:_StoreDevtools.\u0275fac});let StoreDevtools2=_StoreDevtools;return StoreDevtools2})();function emitInZone({ngZone,connectInZone}){return source=>connectInZone?new Observable(subscriber=>source.subscribe({next:value=>ngZone.run(()=>subscriber.next(value)),error:error2=>ngZone.run(()=>subscriber.error(error2)),complete:()=>ngZone.run(()=>subscriber.complete())})):source}var IS_EXTENSION_OR_MONITOR_PRESENT=new InjectionToken("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function createIsExtensionOrMonitorPresent(extension,config3){return!!extension||config3.monitor!==noMonitor}function createReduxDevtoolsExtension(){let extensionKey="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[extensionKey]<"u"?window[extensionKey]:null}function provideStoreDevtools(options={}){return makeEnvironmentProviders([DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:options},{provide:IS_EXTENSION_OR_MONITOR_PRESENT,deps:[REDUX_DEVTOOLS_EXTENSION,STORE_DEVTOOLS_CONFIG],useFactory:createIsExtensionOrMonitorPresent},{provide:REDUX_DEVTOOLS_EXTENSION,useFactory:createReduxDevtoolsExtension},{provide:STORE_DEVTOOLS_CONFIG,deps:[INITIAL_OPTIONS],useFactory:createConfig},{provide:StateObservable,deps:[StoreDevtools],useFactory:createStateObservable},{provide:ReducerManagerDispatcher,useExisting:DevtoolsDispatcher}])}function createStateObservable(devtools){return devtools.state}var StoreDevtoolsModule=(()=>{let _StoreDevtoolsModule=class _StoreDevtoolsModule{static instrument(options={}){return{ngModule:_StoreDevtoolsModule,providers:[provideStoreDevtools(options)]}}};_StoreDevtoolsModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_StoreDevtoolsModule)},_StoreDevtoolsModule.\u0275mod=\u0275\u0275defineNgModule({type:_StoreDevtoolsModule}),_StoreDevtoolsModule.\u0275inj=\u0275\u0275defineInjector({});let StoreDevtoolsModule2=_StoreDevtoolsModule;return StoreDevtoolsModule2})();var SDK_VERSION2="8.41.0";var GLOBAL_OBJ=globalThis;function getGlobalSingleton(name,creator,obj){let gbl=obj||GLOBAL_OBJ,__SENTRY__=gbl.__SENTRY__=gbl.__SENTRY__||{},versionedCarrier=__SENTRY__[SDK_VERSION2]=__SENTRY__[SDK_VERSION2]||{};return versionedCarrier[name]||(versionedCarrier[name]=creator())}var DEBUG_BUILD=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;var PREFIX="Sentry Logger ",CONSOLE_LEVELS=["debug","info","warn","error","log","assert","trace"],originalConsoleMethods={};function consoleSandbox(callback){if(!("console"in GLOBAL_OBJ))return callback();let console2=GLOBAL_OBJ.console,wrappedFuncs={},wrappedLevels=Object.keys(originalConsoleMethods);wrappedLevels.forEach(level=>{let originalConsoleMethod=originalConsoleMethods[level];wrappedFuncs[level]=console2[level],console2[level]=originalConsoleMethod});try{return callback()}finally{wrappedLevels.forEach(level=>{console2[level]=wrappedFuncs[level]})}}function makeLogger(){let enabled2=!1,logger4={enable:()=>{enabled2=!0},disable:()=>{enabled2=!1},isEnabled:()=>enabled2};return DEBUG_BUILD?CONSOLE_LEVELS.forEach(name=>{logger4[name]=(...args)=>{enabled2&&consoleSandbox(()=>{GLOBAL_OBJ.console[name](`${PREFIX}[${name}]:`,...args)})}}):CONSOLE_LEVELS.forEach(name=>{logger4[name]=()=>{}}),logger4}var logger3=getGlobalSingleton("logger",makeLogger);function getMainCarrier(){return getSentryCarrier(GLOBAL_OBJ),GLOBAL_OBJ}function getSentryCarrier(carrier){let __SENTRY__=carrier.__SENTRY__=carrier.__SENTRY__||{};return __SENTRY__.version=__SENTRY__.version||SDK_VERSION2,__SENTRY__[SDK_VERSION2]=__SENTRY__[SDK_VERSION2]||{}}var objectToString=Object.prototype.toString;function isBuiltin(wat,className){return objectToString.call(wat)===`[object ${className}]`}function isPlainObject(wat){return isBuiltin(wat,"Object")}function isThenable(wat){return!!(wat&&wat.then&&typeof wat.then=="function")}function addNonEnumerableProperty(obj,name,value){try{Object.defineProperty(obj,name,{value,writable:!0,configurable:!0})}catch{DEBUG_BUILD&&logger3.log(`Failed to add non-enumerable property "${name}" to object`,obj)}}var ONE_SECOND_IN_MS=1e3;function dateTimestampInSeconds(){return Date.now()/ONE_SECOND_IN_MS}function createUnixTimestampInSecondsFunc(){let{performance:performance2}=GLOBAL_OBJ;if(!performance2||!performance2.now)return dateTimestampInSeconds;let approxStartingTimeOrigin=Date.now()-performance2.now(),timeOrigin=performance2.timeOrigin==null?approxStartingTimeOrigin:performance2.timeOrigin;return()=>(timeOrigin+performance2.now())/ONE_SECOND_IN_MS}var timestampInSeconds=createUnixTimestampInSecondsFunc(),_browserPerformanceTimeOriginMode,browserPerformanceTimeOrigin=(()=>{let{performance:performance2}=GLOBAL_OBJ;if(!performance2||!performance2.now){_browserPerformanceTimeOriginMode="none";return}let threshold=3600*1e3,performanceNow=performance2.now(),dateNow=Date.now(),timeOriginDelta=performance2.timeOrigin?Math.abs(performance2.timeOrigin+performanceNow-dateNow):threshold,timeOriginIsReliable=timeOriginDelta<threshold,navigationStart=performance2.timing&&performance2.timing.navigationStart,navigationStartDelta=typeof navigationStart=="number"?Math.abs(navigationStart+performanceNow-dateNow):threshold,navigationStartIsReliable=navigationStartDelta<threshold;return timeOriginIsReliable||navigationStartIsReliable?timeOriginDelta<=navigationStartDelta?(_browserPerformanceTimeOriginMode="timeOrigin",performance2.timeOrigin):(_browserPerformanceTimeOriginMode="navigationStart",navigationStart):(_browserPerformanceTimeOriginMode="dateNow",dateNow)})();function uuid4(){let gbl=GLOBAL_OBJ,crypto2=gbl.crypto||gbl.msCrypto,getRandomByte=()=>Math.random()*16;try{if(crypto2&&crypto2.randomUUID)return crypto2.randomUUID().replace(/-/g,"");crypto2&&crypto2.getRandomValues&&(getRandomByte=()=>{let typedArray=new Uint8Array(1);return crypto2.getRandomValues(typedArray),typedArray[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,c=>(c^(getRandomByte()&15)>>c/4).toString(16))}function updateSession(session,context5={}){if(context5.user&&(!session.ipAddress&&context5.user.ip_address&&(session.ipAddress=context5.user.ip_address),!session.did&&!context5.did&&(session.did=context5.user.id||context5.user.email||context5.user.username)),session.timestamp=context5.timestamp||timestampInSeconds(),context5.abnormal_mechanism&&(session.abnormal_mechanism=context5.abnormal_mechanism),context5.ignoreDuration&&(session.ignoreDuration=context5.ignoreDuration),context5.sid&&(session.sid=context5.sid.length===32?context5.sid:uuid4()),context5.init!==void 0&&(session.init=context5.init),!session.did&&context5.did&&(session.did=`${context5.did}`),typeof context5.started=="number"&&(session.started=context5.started),session.ignoreDuration)session.duration=void 0;else if(typeof context5.duration=="number")session.duration=context5.duration;else{let duration2=session.timestamp-session.started;session.duration=duration2>=0?duration2:0}context5.release&&(session.release=context5.release),context5.environment&&(session.environment=context5.environment),!session.ipAddress&&context5.ipAddress&&(session.ipAddress=context5.ipAddress),!session.userAgent&&context5.userAgent&&(session.userAgent=context5.userAgent),typeof context5.errors=="number"&&(session.errors=context5.errors),context5.status&&(session.status=context5.status)}function generatePropagationContext(){return{traceId:uuid4(),spanId:uuid4().substring(16)}}function merge2(initialObj,mergeObj,levels=2){if(!mergeObj||typeof mergeObj!="object"||levels<=0)return mergeObj;if(initialObj&&mergeObj&&Object.keys(mergeObj).length===0)return initialObj;let output=__spreadValues({},initialObj);for(let key in mergeObj)Object.prototype.hasOwnProperty.call(mergeObj,key)&&(output[key]=merge2(output[key],mergeObj[key],levels-1));return output}var SCOPE_SPAN_FIELD="_sentrySpan";function _setSpanForScope(scope,span){span?addNonEnumerableProperty(scope,SCOPE_SPAN_FIELD,span):delete scope[SCOPE_SPAN_FIELD]}function _getSpanForScope(scope){return scope[SCOPE_SPAN_FIELD]}var DEFAULT_MAX_BREADCRUMBS=100,ScopeClass=class _ScopeClass{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=generatePropagationContext()}clone(){let newScope=new _ScopeClass;return newScope._breadcrumbs=[...this._breadcrumbs],newScope._tags=__spreadValues({},this._tags),newScope._extra=__spreadValues({},this._extra),newScope._contexts=__spreadValues({},this._contexts),newScope._user=this._user,newScope._level=this._level,newScope._session=this._session,newScope._transactionName=this._transactionName,newScope._fingerprint=this._fingerprint,newScope._eventProcessors=[...this._eventProcessors],newScope._requestSession=this._requestSession,newScope._attachments=[...this._attachments],newScope._sdkProcessingMetadata=__spreadValues({},this._sdkProcessingMetadata),newScope._propagationContext=__spreadValues({},this._propagationContext),newScope._client=this._client,newScope._lastEventId=this._lastEventId,_setSpanForScope(newScope,_getSpanForScope(this)),newScope}setClient(client){this._client=client}setLastEventId(lastEventId2){this._lastEventId=lastEventId2}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(callback){this._scopeListeners.push(callback)}addEventProcessor(callback){return this._eventProcessors.push(callback),this}setUser(user){return this._user=user||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&updateSession(this._session,{user}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(requestSession){return this._requestSession=requestSession,this}setTags(tags2){return this._tags=__spreadValues(__spreadValues({},this._tags),tags2),this._notifyScopeListeners(),this}setTag(key,value){return this._tags=__spreadProps(__spreadValues({},this._tags),{[key]:value}),this._notifyScopeListeners(),this}setExtras(extras){return this._extra=__spreadValues(__spreadValues({},this._extra),extras),this._notifyScopeListeners(),this}setExtra(key,extra){return this._extra=__spreadProps(__spreadValues({},this._extra),{[key]:extra}),this._notifyScopeListeners(),this}setFingerprint(fingerprint){return this._fingerprint=fingerprint,this._notifyScopeListeners(),this}setLevel(level){return this._level=level,this._notifyScopeListeners(),this}setTransactionName(name){return this._transactionName=name,this._notifyScopeListeners(),this}setContext(key,context5){return context5===null?delete this._contexts[key]:this._contexts[key]=context5,this._notifyScopeListeners(),this}setSession(session){return session?this._session=session:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(captureContext){if(!captureContext)return this;let scopeToMerge=typeof captureContext=="function"?captureContext(this):captureContext,[scopeInstance,requestSession]=scopeToMerge instanceof Scope?[scopeToMerge.getScopeData(),scopeToMerge.getRequestSession()]:isPlainObject(scopeToMerge)?[captureContext,captureContext.requestSession]:[],{tags:tags2,extra,user,contexts,level,fingerprint=[],propagationContext}=scopeInstance||{};return this._tags=__spreadValues(__spreadValues({},this._tags),tags2),this._extra=__spreadValues(__spreadValues({},this._extra),extra),this._contexts=__spreadValues(__spreadValues({},this._contexts),contexts),user&&Object.keys(user).length&&(this._user=user),level&&(this._level=level),fingerprint.length&&(this._fingerprint=fingerprint),propagationContext&&(this._propagationContext=propagationContext),requestSession&&(this._requestSession=requestSession),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,_setSpanForScope(this,void 0),this._attachments=[],this._propagationContext=generatePropagationContext(),this._notifyScopeListeners(),this}addBreadcrumb(breadcrumb,maxBreadcrumbs){let maxCrumbs=typeof maxBreadcrumbs=="number"?maxBreadcrumbs:DEFAULT_MAX_BREADCRUMBS;if(maxCrumbs<=0)return this;let mergedBreadcrumb=__spreadValues({timestamp:dateTimestampInSeconds()},breadcrumb),breadcrumbs=this._breadcrumbs;return breadcrumbs.push(mergedBreadcrumb),this._breadcrumbs=breadcrumbs.length>maxCrumbs?breadcrumbs.slice(-maxCrumbs):breadcrumbs,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(attachment){return this._attachments.push(attachment),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:_getSpanForScope(this)}}setSDKProcessingMetadata(newData){return this._sdkProcessingMetadata=merge2(this._sdkProcessingMetadata,newData,2),this}setPropagationContext(context5){return this._propagationContext=context5,this}getPropagationContext(){return this._propagationContext}captureException(exception,hint){let eventId=hint&&hint.event_id?hint.event_id:uuid4();if(!this._client)return logger3.warn("No client configured on scope - will not capture exception!"),eventId;let syntheticException=new Error("Sentry syntheticException");return this._client.captureException(exception,__spreadProps(__spreadValues({originalException:exception,syntheticException},hint),{event_id:eventId}),this),eventId}captureMessage(message,level,hint){let eventId=hint&&hint.event_id?hint.event_id:uuid4();if(!this._client)return logger3.warn("No client configured on scope - will not capture message!"),eventId;let syntheticException=new Error(message);return this._client.captureMessage(message,level,__spreadProps(__spreadValues({originalException:message,syntheticException},hint),{event_id:eventId}),this),eventId}captureEvent(event2,hint){let eventId=hint&&hint.event_id?hint.event_id:uuid4();return this._client?(this._client.captureEvent(event2,__spreadProps(__spreadValues({},hint),{event_id:eventId}),this),eventId):(logger3.warn("No client configured on scope - will not capture event!"),eventId)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(callback=>{callback(this)}),this._notifyingListeners=!1)}},Scope=ScopeClass;function getDefaultCurrentScope(){return getGlobalSingleton("defaultCurrentScope",()=>new Scope)}function getDefaultIsolationScope(){return getGlobalSingleton("defaultIsolationScope",()=>new Scope)}var AsyncContextStack=class{constructor(scope,isolationScope){let assignedScope;scope?assignedScope=scope:assignedScope=new Scope;let assignedIsolationScope;isolationScope?assignedIsolationScope=isolationScope:assignedIsolationScope=new Scope,this._stack=[{scope:assignedScope}],this._isolationScope=assignedIsolationScope}withScope(callback){let scope=this._pushScope(),maybePromiseResult;try{maybePromiseResult=callback(scope)}catch(e){throw this._popScope(),e}return isThenable(maybePromiseResult)?maybePromiseResult.then(res=>(this._popScope(),res),e=>{throw this._popScope(),e}):(this._popScope(),maybePromiseResult)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let scope=this.getScope().clone();return this._stack.push({client:this.getClient(),scope}),scope}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function getAsyncContextStack(){let registry=getMainCarrier(),sentry=getSentryCarrier(registry);return sentry.stack=sentry.stack||new AsyncContextStack(getDefaultCurrentScope(),getDefaultIsolationScope())}function withScope(callback){return getAsyncContextStack().withScope(callback)}function withSetScope(scope,callback){let stack=getAsyncContextStack();return stack.withScope(()=>(stack.getStackTop().scope=scope,callback(scope)))}function withIsolationScope(callback){return getAsyncContextStack().withScope(()=>callback(getAsyncContextStack().getIsolationScope()))}function getStackAsyncContextStrategy(){return{withIsolationScope,withScope,withSetScope,withSetIsolationScope:(_isolationScope,callback)=>withIsolationScope(callback),getCurrentScope:()=>getAsyncContextStack().getScope(),getIsolationScope:()=>getAsyncContextStack().getIsolationScope()}}function getAsyncContextStrategy(carrier){let sentry=getSentryCarrier(carrier);return sentry.acs?sentry.acs:getStackAsyncContextStrategy()}function getCurrentScope(){let carrier=getMainCarrier();return getAsyncContextStrategy(carrier).getCurrentScope()}function getIsolationScope(){let carrier=getMainCarrier();return getAsyncContextStrategy(carrier).getIsolationScope()}function getClient(){return getCurrentScope().getClient()}var DEFAULT_BREADCRUMBS=100;function addBreadcrumb(breadcrumb,hint){let client=getClient(),isolationScope=getIsolationScope();if(!client)return;let{beforeBreadcrumb=null,maxBreadcrumbs=DEFAULT_BREADCRUMBS}=client.getOptions();if(maxBreadcrumbs<=0)return;let timestamp=dateTimestampInSeconds(),mergedBreadcrumb=__spreadValues({timestamp},breadcrumb),finalBreadcrumb=beforeBreadcrumb?consoleSandbox(()=>beforeBreadcrumb(mergedBreadcrumb,hint)):mergedBreadcrumb;finalBreadcrumb!==null&&(client.emit&&client.emit("beforeAddBreadcrumb",finalBreadcrumb,hint),isolationScope.addBreadcrumb(finalBreadcrumb,maxBreadcrumbs))}function sentryNgrxMetaReducer(reducer46){return function(state,action5){return addBreadcrumb({category:"ngrx",message:action5.type,level:"info"}),reducer46(state,action5)}}var reducers={router:routerReducer},metaReducers=environment.production?[sentryNgrxMetaReducer]:[];var AppEffects=(()=>{let _AppEffects=class _AppEffects{constructor(actions$,location2,router){this.actions$=actions$,this.location=location2,this.router=router,this.company2faRequired$=createEffect(()=>this.actions$.pipe(ofType(loadMeFailure3),mergeMap(({errors:errors2})=>errors2.some(error2=>error2.message===IxApiRequestErrorMessages.TWO_FACTOR_AUTH_REQUIRED)?of(redirectTo2faRequired()):EMPTY))),this.redirectTo2faRequired$=createEffect(()=>this.actions$.pipe(ofType(redirectTo2faRequired),tap(()=>{this.router.navigate(["/two-factor-auth-required"],{skipLocationChange:!0})})),{dispatch:!1})}};_AppEffects.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppEffects)(\u0275\u0275inject(Actions),\u0275\u0275inject(Location),\u0275\u0275inject(Router))},_AppEffects.\u0275prov=\u0275\u0275defineInjectable({token:_AppEffects,factory:_AppEffects.\u0275fac});let AppEffects2=_AppEffects;return AppEffects2})();var AppStateModule=(()=>{let _AppStateModule=class _AppStateModule{};_AppStateModule.\u0275fac=function(__ngFactoryType__){return new(__ngFactoryType__||_AppStateModule)},_AppStateModule.\u0275mod=\u0275\u0275defineNgModule({type:_AppStateModule}),_AppStateModule.\u0275inj=\u0275\u0275defineInjector({imports:[TranslateModule,StoreModule.forRoot(reducers,{metaReducers,runtimeChecks:{strictStateImmutability:!0,strictActionImmutability:!0,strictStateSerializability:!0,strictActionSerializability:!1}}),environment.production?[]:[StoreDevtoolsModule.instrument({maxAge:50,connectInZone:!0})],EffectsModule.forRoot([AppEffects])]});let AppStateModule2=_AppStateModule;return AppStateModule2})();function generateBanner(metadata2,translate){let header=document.createElement("div");return header.innerHTML=`
|
|
666
666
|
<div id="appBanner" style="display: flex; top: 0; left: 0; width: 100%; height: 80px; position: absolute; justify-content: center; background-color: #f2f2f2;">
|
|
667
667
|
<div style="display: flex; justify-content: flex-start; width: 100vw; color: black;">
|
|
668
668
|
<div style="justify-content: flex-start; max-width: 330px; display: flex; align-items: center; flex: 1;">
|